@maptiler/geocoding-control 2.1.3-rc1 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/leaflet.js +914 -931
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +13 -13
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +911 -928
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +13 -13
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +912 -929
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +13 -13
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +932 -949
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +13 -13
- package/openlayers.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +642 -659
- package/react.js.map +1 -1
- package/react.umd.js +13 -13
- package/react.umd.js.map +1 -1
- package/svelte/FeatureItem.svelte +1 -1
- package/svelte/GeocodingControl.svelte +17 -45
- package/svelte/GeocodingControl.svelte.d.ts +0 -1
- package/svelte/info.json +1 -1
- package/svelte/types.d.ts +0 -1
- package/types.d.ts +0 -1
- package/vanilla.js +770 -787
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +12 -12
- package/vanilla.umd.js.map +1 -1
package/openlayers.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Zn = Object.defineProperty;
|
|
2
|
+
var _i = (i) => {
|
|
3
3
|
throw TypeError(i);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var R = (i, e, t) =>
|
|
7
|
-
var
|
|
8
|
-
import { Control as
|
|
9
|
-
import
|
|
10
|
-
import { Feature as
|
|
11
|
-
import { Point as
|
|
12
|
-
import
|
|
13
|
-
import { fromLonLat as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
5
|
+
var Kn = (i, e, t) => e in i ? Zn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
6
|
+
var R = (i, e, t) => Kn(i, typeof e != "symbol" ? e + "" : e, t), xi = (i, e, t) => e.has(i) || _i("Cannot " + t);
|
|
7
|
+
var ue = (i, e, t) => (xi(i, e, "read from private field"), t ? t.call(i) : e.get(i)), $t = (i, e, t) => e.has(i) ? _i("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), ei = (i, e, t, n) => (xi(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
|
|
8
|
+
import { Control as Yn } from "ol/control";
|
|
9
|
+
import Xe from "ol/events/Event";
|
|
10
|
+
import { Feature as ze } from "ol";
|
|
11
|
+
import { Point as ti, Polygon as Ti, MultiPolygon as Mi, GeometryCollection as Qn, LineString as Ni, MultiLineString as Ci } from "ol/geom";
|
|
12
|
+
import Xn from "ol/layer/Vector";
|
|
13
|
+
import { fromLonLat as Nt, transformExtent as Jn, toLonLat as ki, getUserProjection as $n } from "ol/proj";
|
|
14
|
+
import er from "ol/source/Vector";
|
|
15
|
+
import Oi from "ol/style/Fill";
|
|
16
|
+
import tr from "ol/style/Icon";
|
|
17
|
+
import Ri from "ol/style/Stroke";
|
|
18
|
+
import ir from "ol/style/Style";
|
|
19
|
+
import nr from "ol/style/Text";
|
|
20
20
|
function re() {
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function rr(i, e) {
|
|
23
23
|
for (const t in e) i[t] = e[t];
|
|
24
24
|
return (
|
|
25
25
|
/** @type {T & S} */
|
|
26
26
|
i
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function un(i) {
|
|
30
30
|
return i();
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Pi() {
|
|
33
33
|
return /* @__PURE__ */ Object.create(null);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
i.forEach(
|
|
35
|
+
function Ve(i) {
|
|
36
|
+
i.forEach(un);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function an(i) {
|
|
39
39
|
return typeof i == "function";
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function rt(i, e) {
|
|
42
42
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
43
43
|
}
|
|
44
|
-
let
|
|
45
|
-
function
|
|
46
|
-
return i === e ? !0 : (
|
|
44
|
+
let Ct;
|
|
45
|
+
function pe(i, e) {
|
|
46
|
+
return i === e ? !0 : (Ct || (Ct = document.createElement("a")), Ct.href = e, i === Ct.href);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function sr(i) {
|
|
49
49
|
return Object.keys(i).length === 0;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function or(i, e, t, n) {
|
|
52
52
|
if (i) {
|
|
53
|
-
const r =
|
|
53
|
+
const r = fn(i, e, t, n);
|
|
54
54
|
return i[0](r);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return i[1] && n ?
|
|
57
|
+
function fn(i, e, t, n) {
|
|
58
|
+
return i[1] && n ? rr(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function lr(i, e, t, n) {
|
|
61
61
|
return i[2], e.dirty;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ur(i, e, t, n, r, u) {
|
|
64
64
|
if (r) {
|
|
65
|
-
const a =
|
|
65
|
+
const a = fn(e, t, n, u);
|
|
66
66
|
i.p(a, r);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ar(i) {
|
|
70
70
|
if (i.ctx.length > 32) {
|
|
71
71
|
const e = [], t = i.ctx.length / 32;
|
|
72
72
|
for (let n = 0; n < t; n++)
|
|
@@ -75,7 +75,7 @@ function dr(i) {
|
|
|
75
75
|
}
|
|
76
76
|
return -1;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Wt(i) {
|
|
79
79
|
return i ?? "";
|
|
80
80
|
}
|
|
81
81
|
function j(i, e) {
|
|
@@ -84,28 +84,28 @@ function j(i, e) {
|
|
|
84
84
|
function te(i, e, t) {
|
|
85
85
|
i.insertBefore(e, t || null);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function $(i) {
|
|
88
88
|
i.parentNode && i.parentNode.removeChild(i);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function X(i) {
|
|
91
91
|
return document.createElement(i);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Fe(i) {
|
|
94
94
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Ye(i) {
|
|
97
97
|
return document.createTextNode(i);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
return
|
|
99
|
+
function Le() {
|
|
100
|
+
return Ye(" ");
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
return
|
|
102
|
+
function fr() {
|
|
103
|
+
return Ye("");
|
|
104
104
|
}
|
|
105
105
|
function he(i, e, t, n) {
|
|
106
106
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function cr(i) {
|
|
109
109
|
return function(e) {
|
|
110
110
|
return e.preventDefault(), i.call(this, e);
|
|
111
111
|
};
|
|
@@ -113,39 +113,39 @@ function mr(i) {
|
|
|
113
113
|
function x(i, e, t) {
|
|
114
114
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function hr(i) {
|
|
117
117
|
return Array.from(i.childNodes);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function _t(i, e) {
|
|
120
120
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
121
121
|
e);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ii(i, e) {
|
|
124
124
|
i.value = e ?? "";
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function ct(i, e, t) {
|
|
127
127
|
i.classList.toggle(e, !!t);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function dr(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
130
130
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
131
131
|
}
|
|
132
|
-
let
|
|
133
|
-
function
|
|
134
|
-
|
|
132
|
+
let xt;
|
|
133
|
+
function St(i) {
|
|
134
|
+
xt = i;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
if (!
|
|
138
|
-
return
|
|
136
|
+
function cn() {
|
|
137
|
+
if (!xt) throw new Error("Function called outside component initialization");
|
|
138
|
+
return xt;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
140
|
+
function gr(i) {
|
|
141
|
+
cn().$$.on_destroy.push(i);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
const i =
|
|
143
|
+
function hn() {
|
|
144
|
+
const i = cn();
|
|
145
145
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
146
146
|
const r = i.$$.callbacks[e];
|
|
147
147
|
if (r) {
|
|
148
|
-
const u =
|
|
148
|
+
const u = dr(
|
|
149
149
|
/** @type {string} */
|
|
150
150
|
e,
|
|
151
151
|
t,
|
|
@@ -158,90 +158,90 @@ function mn() {
|
|
|
158
158
|
return !0;
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function mr(i, e) {
|
|
162
162
|
const t = i.$$.callbacks[e.type];
|
|
163
163
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
let
|
|
167
|
-
const
|
|
168
|
-
let
|
|
169
|
-
function
|
|
170
|
-
|
|
165
|
+
const ft = [], si = [];
|
|
166
|
+
let ht = [];
|
|
167
|
+
const Ai = [], pr = /* @__PURE__ */ Promise.resolve();
|
|
168
|
+
let oi = !1;
|
|
169
|
+
function yr() {
|
|
170
|
+
oi || (oi = !0, pr.then(dn));
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
|
|
172
|
+
function li(i) {
|
|
173
|
+
ht.push(i);
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
let
|
|
177
|
-
function
|
|
178
|
-
if (
|
|
175
|
+
const ii = /* @__PURE__ */ new Set();
|
|
176
|
+
let at = 0;
|
|
177
|
+
function dn() {
|
|
178
|
+
if (at !== 0)
|
|
179
179
|
return;
|
|
180
|
-
const i =
|
|
180
|
+
const i = xt;
|
|
181
181
|
do {
|
|
182
182
|
try {
|
|
183
|
-
for (;
|
|
184
|
-
const e =
|
|
185
|
-
|
|
183
|
+
for (; at < ft.length; ) {
|
|
184
|
+
const e = ft[at];
|
|
185
|
+
at++, St(e), br(e.$$);
|
|
186
186
|
}
|
|
187
187
|
} catch (e) {
|
|
188
|
-
throw
|
|
188
|
+
throw ft.length = 0, at = 0, e;
|
|
189
189
|
}
|
|
190
|
-
for (
|
|
191
|
-
for (let e = 0; e <
|
|
192
|
-
const t =
|
|
193
|
-
|
|
190
|
+
for (St(null), ft.length = 0, at = 0; si.length; ) si.pop()();
|
|
191
|
+
for (let e = 0; e < ht.length; e += 1) {
|
|
192
|
+
const t = ht[e];
|
|
193
|
+
ii.has(t) || (ii.add(t), t());
|
|
194
194
|
}
|
|
195
|
-
|
|
196
|
-
} while (
|
|
197
|
-
for (;
|
|
198
|
-
|
|
199
|
-
|
|
195
|
+
ht.length = 0;
|
|
196
|
+
} while (ft.length);
|
|
197
|
+
for (; Ai.length; )
|
|
198
|
+
Ai.pop()();
|
|
199
|
+
oi = !1, ii.clear(), St(i);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function br(i) {
|
|
202
202
|
if (i.fragment !== null) {
|
|
203
|
-
i.update(),
|
|
203
|
+
i.update(), Ve(i.before_update);
|
|
204
204
|
const e = i.dirty;
|
|
205
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
205
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(li);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function vr(i) {
|
|
209
209
|
const e = [], t = [];
|
|
210
|
-
|
|
210
|
+
ht.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), ht = e;
|
|
211
211
|
}
|
|
212
|
-
const
|
|
213
|
-
let
|
|
214
|
-
function
|
|
215
|
-
|
|
212
|
+
const Pt = /* @__PURE__ */ new Set();
|
|
213
|
+
let it;
|
|
214
|
+
function It() {
|
|
215
|
+
it = {
|
|
216
216
|
r: 0,
|
|
217
217
|
c: [],
|
|
218
|
-
p:
|
|
218
|
+
p: it
|
|
219
219
|
// parent group
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
|
|
222
|
+
function At() {
|
|
223
|
+
it.r || Ve(it.c), it = it.p;
|
|
224
224
|
}
|
|
225
225
|
function oe(i, e) {
|
|
226
|
-
i && i.i && (
|
|
226
|
+
i && i.i && (Pt.delete(i), i.i(e));
|
|
227
227
|
}
|
|
228
228
|
function de(i, e, t, n) {
|
|
229
229
|
if (i && i.o) {
|
|
230
|
-
if (
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
if (Pt.has(i)) return;
|
|
231
|
+
Pt.add(i), it.c.push(() => {
|
|
232
|
+
Pt.delete(i), n && (t && i.d(1), n());
|
|
233
233
|
}), i.o(e);
|
|
234
234
|
} else n && n();
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Bi(i) {
|
|
237
237
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function wr(i, e) {
|
|
240
240
|
de(i, 1, 1, () => {
|
|
241
241
|
e.delete(i.key);
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Er(i, e, t, n, r, u, a, o, g, h, v, S) {
|
|
245
245
|
let M = i.length, k = u.length, N = M;
|
|
246
246
|
const C = {};
|
|
247
247
|
for (; N--; ) C[i[N].key] = N;
|
|
@@ -251,41 +251,41 @@ function xr(i, e, t, n, r, u, a, o, g, h, v, S) {
|
|
|
251
251
|
let l = a.get(s);
|
|
252
252
|
l ? P.push(() => l.p(G, e)) : (l = h(s, G), l.c()), I.set(s, O[N] = l), s in C && _.set(s, Math.abs(N - C[s]));
|
|
253
253
|
}
|
|
254
|
-
const z = /* @__PURE__ */ new Set(),
|
|
254
|
+
const z = /* @__PURE__ */ new Set(), Z = /* @__PURE__ */ new Set();
|
|
255
255
|
function H(G) {
|
|
256
256
|
oe(G, 1), G.m(o, v), a.set(G.key, G), v = G.first, k--;
|
|
257
257
|
}
|
|
258
258
|
for (; M && k; ) {
|
|
259
259
|
const G = O[k - 1], s = i[M - 1], l = G.key, f = s.key;
|
|
260
|
-
G === s ? (v = G.first, M--, k--) : I.has(f) ? !a.has(l) || z.has(l) ? H(G) :
|
|
260
|
+
G === s ? (v = G.first, M--, k--) : I.has(f) ? !a.has(l) || z.has(l) ? H(G) : Z.has(f) ? M-- : _.get(l) > _.get(f) ? (Z.add(l), H(G)) : (z.add(f), M--) : (g(s, a), M--);
|
|
261
261
|
}
|
|
262
262
|
for (; M--; ) {
|
|
263
263
|
const G = i[M];
|
|
264
264
|
I.has(G.key) || g(G, a);
|
|
265
265
|
}
|
|
266
266
|
for (; k; ) H(O[k - 1]);
|
|
267
|
-
return
|
|
267
|
+
return Ve(P), O;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Qe(i) {
|
|
270
270
|
i && i.c();
|
|
271
271
|
}
|
|
272
272
|
function Ue(i, e, t) {
|
|
273
273
|
const { fragment: n, after_update: r } = i.$$;
|
|
274
|
-
n && n.m(e, t),
|
|
275
|
-
const u = i.$$.on_mount.map(
|
|
276
|
-
i.$$.on_destroy ? i.$$.on_destroy.push(...u) :
|
|
277
|
-
}), r.forEach(
|
|
274
|
+
n && n.m(e, t), li(() => {
|
|
275
|
+
const u = i.$$.on_mount.map(un).filter(an);
|
|
276
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...u) : Ve(u), i.$$.on_mount = [];
|
|
277
|
+
}), r.forEach(li);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function qe(i, e) {
|
|
280
280
|
const t = i.$$;
|
|
281
|
-
t.fragment !== null && (
|
|
281
|
+
t.fragment !== null && (vr(t.after_update), Ve(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
i.$$.dirty[0] === -1 && (
|
|
283
|
+
function Lr(i, e) {
|
|
284
|
+
i.$$.dirty[0] === -1 && (ft.push(i), yr(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
const g =
|
|
288
|
-
|
|
286
|
+
function st(i, e, t, n, r, u, a = null, o = [-1]) {
|
|
287
|
+
const g = xt;
|
|
288
|
+
St(i);
|
|
289
289
|
const h = i.$$ = {
|
|
290
290
|
fragment: null,
|
|
291
291
|
ctx: [],
|
|
@@ -293,7 +293,7 @@ function lt(i, e, t, n, r, u, a = null, o = [-1]) {
|
|
|
293
293
|
props: u,
|
|
294
294
|
update: re,
|
|
295
295
|
not_equal: r,
|
|
296
|
-
bound:
|
|
296
|
+
bound: Pi(),
|
|
297
297
|
// lifecycle
|
|
298
298
|
on_mount: [],
|
|
299
299
|
on_destroy: [],
|
|
@@ -302,7 +302,7 @@ function lt(i, e, t, n, r, u, a = null, o = [-1]) {
|
|
|
302
302
|
after_update: [],
|
|
303
303
|
context: new Map(e.context || (g ? g.$$.context : [])),
|
|
304
304
|
// everything else
|
|
305
|
-
callbacks:
|
|
305
|
+
callbacks: Pi(),
|
|
306
306
|
dirty: o,
|
|
307
307
|
skip_bound: !1,
|
|
308
308
|
root: e.target || g.$$.root
|
|
@@ -311,18 +311,18 @@ function lt(i, e, t, n, r, u, a = null, o = [-1]) {
|
|
|
311
311
|
let v = !1;
|
|
312
312
|
if (h.ctx = t ? t(i, e.props || {}, (S, M, ...k) => {
|
|
313
313
|
const N = k.length ? k[0] : M;
|
|
314
|
-
return h.ctx && r(h.ctx[S], h.ctx[S] = N) && (!h.skip_bound && h.bound[S] && h.bound[S](N), v &&
|
|
315
|
-
}) : [], h.update(), v = !0,
|
|
314
|
+
return h.ctx && r(h.ctx[S], h.ctx[S] = N) && (!h.skip_bound && h.bound[S] && h.bound[S](N), v && Lr(i, S)), M;
|
|
315
|
+
}) : [], h.update(), v = !0, Ve(h.before_update), h.fragment = n ? n(h.ctx) : !1, e.target) {
|
|
316
316
|
if (e.hydrate) {
|
|
317
|
-
const S =
|
|
318
|
-
h.fragment && h.fragment.l(S), S.forEach(
|
|
317
|
+
const S = hr(e.target);
|
|
318
|
+
h.fragment && h.fragment.l(S), S.forEach($);
|
|
319
319
|
} else
|
|
320
320
|
h.fragment && h.fragment.c();
|
|
321
|
-
e.intro && oe(i.$$.fragment), Ue(i, e.target, e.anchor),
|
|
321
|
+
e.intro && oe(i.$$.fragment), Ue(i, e.target, e.anchor), dn();
|
|
322
322
|
}
|
|
323
|
-
|
|
323
|
+
St(g);
|
|
324
324
|
}
|
|
325
|
-
class
|
|
325
|
+
class ot {
|
|
326
326
|
constructor() {
|
|
327
327
|
/**
|
|
328
328
|
* ### PRIVATE API
|
|
@@ -343,7 +343,7 @@ class ut {
|
|
|
343
343
|
}
|
|
344
344
|
/** @returns {void} */
|
|
345
345
|
$destroy() {
|
|
346
|
-
|
|
346
|
+
qe(this, 1), this.$destroy = re;
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
349
349
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -352,7 +352,7 @@ class ut {
|
|
|
352
352
|
* @returns {() => void}
|
|
353
353
|
*/
|
|
354
354
|
$on(e, t) {
|
|
355
|
-
if (!
|
|
355
|
+
if (!an(t))
|
|
356
356
|
return re;
|
|
357
357
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
358
358
|
return n.push(t), () => {
|
|
@@ -365,16 +365,16 @@ class ut {
|
|
|
365
365
|
* @returns {void}
|
|
366
366
|
*/
|
|
367
367
|
$set(e) {
|
|
368
|
-
this.$$set && !
|
|
368
|
+
this.$$set && !sr(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
const
|
|
372
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
373
|
-
function
|
|
371
|
+
const Sr = "4";
|
|
372
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
|
|
373
|
+
function _r(i) {
|
|
374
374
|
let e, t;
|
|
375
375
|
return {
|
|
376
376
|
c() {
|
|
377
|
-
e =
|
|
377
|
+
e = Fe("svg"), t = Fe("path"), x(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), x(e, "viewBox", "0 0 14 14"), x(e, "width", "13"), x(e, "height", "13"), x(e, "class", "svelte-en2qvf");
|
|
378
378
|
},
|
|
379
379
|
m(n, r) {
|
|
380
380
|
te(n, e, r), j(e, t);
|
|
@@ -383,20 +383,20 @@ function Nr(i) {
|
|
|
383
383
|
i: re,
|
|
384
384
|
o: re,
|
|
385
385
|
d(n) {
|
|
386
|
-
n &&
|
|
386
|
+
n && $(e);
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
|
-
class
|
|
390
|
+
class gn extends ot {
|
|
391
391
|
constructor(e) {
|
|
392
|
-
super(),
|
|
392
|
+
super(), st(this, e, null, _r, rt, {});
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function xr(i) {
|
|
396
396
|
let e, t;
|
|
397
397
|
return {
|
|
398
398
|
c() {
|
|
399
|
-
e =
|
|
399
|
+
e = Fe("svg"), t = Fe("path"), x(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), x(e, "viewBox", "0 0 30 30"), x(e, "fill", "none"), x(e, "xmlns", "http://www.w3.org/2000/svg"), x(e, "class", "svelte-d2loi5");
|
|
400
400
|
},
|
|
401
401
|
m(n, r) {
|
|
402
402
|
te(n, e, r), j(e, t);
|
|
@@ -405,20 +405,20 @@ function Cr(i) {
|
|
|
405
405
|
i: re,
|
|
406
406
|
o: re,
|
|
407
407
|
d(n) {
|
|
408
|
-
n &&
|
|
408
|
+
n && $(e);
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
class
|
|
412
|
+
class mn extends ot {
|
|
413
413
|
constructor(e) {
|
|
414
|
-
super(),
|
|
414
|
+
super(), st(this, e, null, xr, rt, {});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Tr(i) {
|
|
418
418
|
let e, t;
|
|
419
419
|
return {
|
|
420
420
|
c() {
|
|
421
|
-
e =
|
|
421
|
+
e = X("img"), pe(e.src, t = /*iconsBaseUrl*/
|
|
422
422
|
i[3] + "area.svg") || x(e, "src", t), x(
|
|
423
423
|
e,
|
|
424
424
|
"alt",
|
|
@@ -436,7 +436,7 @@ function kr(i) {
|
|
|
436
436
|
},
|
|
437
437
|
p(n, r) {
|
|
438
438
|
r & /*iconsBaseUrl*/
|
|
439
|
-
8 && !
|
|
439
|
+
8 && !pe(e.src, t = /*iconsBaseUrl*/
|
|
440
440
|
n[3] + "area.svg") && x(e, "src", t), r & /*placeType*/
|
|
441
441
|
128 && x(
|
|
442
442
|
e,
|
|
@@ -452,15 +452,15 @@ function kr(i) {
|
|
|
452
452
|
);
|
|
453
453
|
},
|
|
454
454
|
d(n) {
|
|
455
|
-
n &&
|
|
455
|
+
n && $(e);
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function Mr(i) {
|
|
460
460
|
let e, t;
|
|
461
461
|
return {
|
|
462
462
|
c() {
|
|
463
|
-
e =
|
|
463
|
+
e = X("img"), pe(e.src, t = /*iconsBaseUrl*/
|
|
464
464
|
i[3] + "reverse.svg") || x(e, "src", t), x(
|
|
465
465
|
e,
|
|
466
466
|
"alt",
|
|
@@ -478,7 +478,7 @@ function Or(i) {
|
|
|
478
478
|
},
|
|
479
479
|
p(n, r) {
|
|
480
480
|
r & /*iconsBaseUrl*/
|
|
481
|
-
8 && !
|
|
481
|
+
8 && !pe(e.src, t = /*iconsBaseUrl*/
|
|
482
482
|
n[3] + "reverse.svg") && x(e, "src", t), r & /*placeType*/
|
|
483
483
|
128 && x(
|
|
484
484
|
e,
|
|
@@ -494,15 +494,15 @@ function Or(i) {
|
|
|
494
494
|
);
|
|
495
495
|
},
|
|
496
496
|
d(n) {
|
|
497
|
-
n &&
|
|
497
|
+
n && $(e);
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function Nr(i) {
|
|
502
502
|
let e, t;
|
|
503
503
|
return {
|
|
504
504
|
c() {
|
|
505
|
-
e =
|
|
505
|
+
e = X("img"), pe(e.src, t = /*iconsBaseUrl*/
|
|
506
506
|
i[3] + "poi.svg") || x(e, "src", t), x(
|
|
507
507
|
e,
|
|
508
508
|
"alt",
|
|
@@ -520,7 +520,7 @@ function Rr(i) {
|
|
|
520
520
|
},
|
|
521
521
|
p(n, r) {
|
|
522
522
|
r & /*iconsBaseUrl*/
|
|
523
|
-
8 && !
|
|
523
|
+
8 && !pe(e.src, t = /*iconsBaseUrl*/
|
|
524
524
|
n[3] + "poi.svg") && x(e, "src", t), r & /*placeType*/
|
|
525
525
|
128 && x(
|
|
526
526
|
e,
|
|
@@ -536,15 +536,15 @@ function Rr(i) {
|
|
|
536
536
|
);
|
|
537
537
|
},
|
|
538
538
|
d(n) {
|
|
539
|
-
n &&
|
|
539
|
+
n && $(e);
|
|
540
540
|
}
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Cr(i) {
|
|
544
544
|
let e, t;
|
|
545
545
|
return {
|
|
546
546
|
c() {
|
|
547
|
-
e =
|
|
547
|
+
e = X("img"), pe(e.src, t = /*iconsBaseUrl*/
|
|
548
548
|
i[3] + "postal_code.svg") || x(e, "src", t), x(
|
|
549
549
|
e,
|
|
550
550
|
"alt",
|
|
@@ -562,7 +562,7 @@ function Pr(i) {
|
|
|
562
562
|
},
|
|
563
563
|
p(n, r) {
|
|
564
564
|
r & /*iconsBaseUrl*/
|
|
565
|
-
8 && !
|
|
565
|
+
8 && !pe(e.src, t = /*iconsBaseUrl*/
|
|
566
566
|
n[3] + "postal_code.svg") && x(e, "src", t), r & /*placeType*/
|
|
567
567
|
128 && x(
|
|
568
568
|
e,
|
|
@@ -578,15 +578,15 @@ function Pr(i) {
|
|
|
578
578
|
);
|
|
579
579
|
},
|
|
580
580
|
d(n) {
|
|
581
|
-
n &&
|
|
581
|
+
n && $(e);
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function kr(i) {
|
|
586
586
|
let e, t;
|
|
587
587
|
return {
|
|
588
588
|
c() {
|
|
589
|
-
e =
|
|
589
|
+
e = X("img"), pe(e.src, t = /*iconsBaseUrl*/
|
|
590
590
|
i[3] + "street.svg") || x(e, "src", t), x(
|
|
591
591
|
e,
|
|
592
592
|
"alt",
|
|
@@ -604,7 +604,7 @@ function Ir(i) {
|
|
|
604
604
|
},
|
|
605
605
|
p(n, r) {
|
|
606
606
|
r & /*iconsBaseUrl*/
|
|
607
|
-
8 && !
|
|
607
|
+
8 && !pe(e.src, t = /*iconsBaseUrl*/
|
|
608
608
|
n[3] + "street.svg") && x(e, "src", t), r & /*placeType*/
|
|
609
609
|
128 && x(
|
|
610
610
|
e,
|
|
@@ -620,15 +620,15 @@ function Ir(i) {
|
|
|
620
620
|
);
|
|
621
621
|
},
|
|
622
622
|
d(n) {
|
|
623
|
-
n &&
|
|
623
|
+
n && $(e);
|
|
624
624
|
}
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function Or(i) {
|
|
628
628
|
let e, t;
|
|
629
629
|
return {
|
|
630
630
|
c() {
|
|
631
|
-
e =
|
|
631
|
+
e = X("img"), pe(e.src, t = /*iconsBaseUrl*/
|
|
632
632
|
i[3] + "road.svg") || x(e, "src", t), x(
|
|
633
633
|
e,
|
|
634
634
|
"alt",
|
|
@@ -646,7 +646,7 @@ function Ar(i) {
|
|
|
646
646
|
},
|
|
647
647
|
p(n, r) {
|
|
648
648
|
r & /*iconsBaseUrl*/
|
|
649
|
-
8 && !
|
|
649
|
+
8 && !pe(e.src, t = /*iconsBaseUrl*/
|
|
650
650
|
n[3] + "road.svg") && x(e, "src", t), r & /*placeType*/
|
|
651
651
|
128 && x(
|
|
652
652
|
e,
|
|
@@ -662,15 +662,15 @@ function Ar(i) {
|
|
|
662
662
|
);
|
|
663
663
|
},
|
|
664
664
|
d(n) {
|
|
665
|
-
n &&
|
|
665
|
+
n && $(e);
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function Rr(i) {
|
|
670
670
|
let e, t;
|
|
671
671
|
return {
|
|
672
672
|
c() {
|
|
673
|
-
e =
|
|
673
|
+
e = X("img"), pe(e.src, t = /*iconsBaseUrl*/
|
|
674
674
|
i[3] + "housenumber.svg") || x(e, "src", t), x(
|
|
675
675
|
e,
|
|
676
676
|
"alt",
|
|
@@ -688,7 +688,7 @@ function Br(i) {
|
|
|
688
688
|
},
|
|
689
689
|
p(n, r) {
|
|
690
690
|
r & /*iconsBaseUrl*/
|
|
691
|
-
8 && !
|
|
691
|
+
8 && !pe(e.src, t = /*iconsBaseUrl*/
|
|
692
692
|
n[3] + "housenumber.svg") && x(e, "src", t), r & /*placeType*/
|
|
693
693
|
128 && x(
|
|
694
694
|
e,
|
|
@@ -704,15 +704,15 @@ function Br(i) {
|
|
|
704
704
|
);
|
|
705
705
|
},
|
|
706
706
|
d(n) {
|
|
707
|
-
n &&
|
|
707
|
+
n && $(e);
|
|
708
708
|
}
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Pr(i) {
|
|
712
712
|
let e, t, n, r;
|
|
713
713
|
return {
|
|
714
714
|
c() {
|
|
715
|
-
e =
|
|
715
|
+
e = X("img"), pe(e.src, t = /*imageUrl*/
|
|
716
716
|
i[5]) || x(e, "src", t), x(
|
|
717
717
|
e,
|
|
718
718
|
"alt",
|
|
@@ -735,7 +735,7 @@ function Gr(i) {
|
|
|
735
735
|
},
|
|
736
736
|
p(u, a) {
|
|
737
737
|
a & /*imageUrl*/
|
|
738
|
-
32 && !
|
|
738
|
+
32 && !pe(e.src, t = /*imageUrl*/
|
|
739
739
|
u[5]) && x(e, "src", t), a & /*category*/
|
|
740
740
|
16 && x(
|
|
741
741
|
e,
|
|
@@ -751,25 +751,25 @@ function Gr(i) {
|
|
|
751
751
|
);
|
|
752
752
|
},
|
|
753
753
|
d(u) {
|
|
754
|
-
u &&
|
|
754
|
+
u && $(e), n = !1, r();
|
|
755
755
|
}
|
|
756
756
|
};
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function Ir(i) {
|
|
759
759
|
let e, t;
|
|
760
760
|
return {
|
|
761
761
|
c() {
|
|
762
|
-
e =
|
|
762
|
+
e = X("div"), x(e, "class", "sprite-icon svelte-w9y5n9"), x(e, "style", t = `
|
|
763
763
|
width: ${/*spriteIcon*/
|
|
764
764
|
i[6].width / _e}px;
|
|
765
765
|
height: ${/*spriteIcon*/
|
|
766
766
|
i[6].height / _e}px;
|
|
767
767
|
background-image: url(${/*iconsBaseUrl*/
|
|
768
|
-
i[3]}sprite${
|
|
768
|
+
i[3]}sprite${ui}.png);
|
|
769
769
|
background-position: -${/*spriteIcon*/
|
|
770
770
|
i[6].x / _e}px -${/*spriteIcon*/
|
|
771
771
|
i[6].y / _e}px;
|
|
772
|
-
background-size: ${
|
|
772
|
+
background-size: ${ke.width / _e}px ${ke.height / _e}px;
|
|
773
773
|
`), x(
|
|
774
774
|
e,
|
|
775
775
|
"title",
|
|
@@ -788,11 +788,11 @@ function Wr(i) {
|
|
|
788
788
|
height: ${/*spriteIcon*/
|
|
789
789
|
n[6].height / _e}px;
|
|
790
790
|
background-image: url(${/*iconsBaseUrl*/
|
|
791
|
-
n[3]}sprite${
|
|
791
|
+
n[3]}sprite${ui}.png);
|
|
792
792
|
background-position: -${/*spriteIcon*/
|
|
793
793
|
n[6].x / _e}px -${/*spriteIcon*/
|
|
794
794
|
n[6].y / _e}px;
|
|
795
|
-
background-size: ${
|
|
795
|
+
background-size: ${ke.width / _e}px ${ke.height / _e}px;
|
|
796
796
|
`) && x(e, "style", t), r & /*placeType*/
|
|
797
797
|
128 && x(
|
|
798
798
|
e,
|
|
@@ -802,15 +802,15 @@ function Wr(i) {
|
|
|
802
802
|
);
|
|
803
803
|
},
|
|
804
804
|
d(n) {
|
|
805
|
-
n &&
|
|
805
|
+
n && $(e);
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Gi(i) {
|
|
810
810
|
let e, t;
|
|
811
811
|
return {
|
|
812
812
|
c() {
|
|
813
|
-
e =
|
|
813
|
+
e = X("span"), t = Ye(
|
|
814
814
|
/*placeType*/
|
|
815
815
|
i[7]
|
|
816
816
|
), x(e, "class", "secondary svelte-w9y5n9");
|
|
@@ -820,18 +820,18 @@ function Di(i) {
|
|
|
820
820
|
},
|
|
821
821
|
p(n, r) {
|
|
822
822
|
r & /*placeType*/
|
|
823
|
-
128 &&
|
|
823
|
+
128 && _t(
|
|
824
824
|
t,
|
|
825
825
|
/*placeType*/
|
|
826
826
|
n[7]
|
|
827
827
|
);
|
|
828
828
|
},
|
|
829
829
|
d(n) {
|
|
830
|
-
n &&
|
|
830
|
+
n && $(e);
|
|
831
831
|
}
|
|
832
832
|
};
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Ar(i) {
|
|
835
835
|
let e, t, n, r, u, a, o, g, h, v = (
|
|
836
836
|
/*isReverse*/
|
|
837
837
|
(i[8] ? (
|
|
@@ -858,40 +858,40 @@ function zr(i) {
|
|
|
858
858
|
/*feature*/
|
|
859
859
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
860
860
|
)) + ""
|
|
861
|
-
), I, _, P, z,
|
|
861
|
+
), I, _, P, z, Z, H;
|
|
862
862
|
function G(m, c) {
|
|
863
863
|
return c & /*feature*/
|
|
864
864
|
1 && (t = null), c & /*feature*/
|
|
865
865
|
1 && (n = null), c & /*feature*/
|
|
866
866
|
1 && (r = null), c & /*feature*/
|
|
867
|
-
1 && (u = null),
|
|
868
|
-
m[6] ?
|
|
867
|
+
1 && (u = null), ke && /*spriteIcon*/
|
|
868
|
+
m[6] ? Ir : (
|
|
869
869
|
/*imageUrl*/
|
|
870
|
-
m[5] ?
|
|
870
|
+
m[5] ? Pr : (
|
|
871
871
|
/*feature*/
|
|
872
|
-
m[0].address ?
|
|
873
|
-
m[0].id.startsWith("road.")), t ?
|
|
874
|
-
m[0].id.startsWith("address.")), n ?
|
|
875
|
-
m[0].id.startsWith("postal_code.")), r ?
|
|
876
|
-
m[0].id.startsWith("poi.")), u ?
|
|
872
|
+
m[0].address ? Rr : (t == null && (t = !!/*feature*/
|
|
873
|
+
m[0].id.startsWith("road.")), t ? Or : (n == null && (n = !!/*feature*/
|
|
874
|
+
m[0].id.startsWith("address.")), n ? kr : (r == null && (r = !!/*feature*/
|
|
875
|
+
m[0].id.startsWith("postal_code.")), r ? Cr : (u == null && (u = !!/*feature*/
|
|
876
|
+
m[0].id.startsWith("poi.")), u ? Nr : (
|
|
877
877
|
/*isReverse*/
|
|
878
|
-
m[8] ?
|
|
878
|
+
m[8] ? Mr : Tr
|
|
879
879
|
)))))
|
|
880
880
|
)
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
|
-
let s = G(i, -1), l = s(i), f = k &&
|
|
883
|
+
let s = G(i, -1), l = s(i), f = k && Gi(i);
|
|
884
884
|
return {
|
|
885
885
|
c() {
|
|
886
|
-
e =
|
|
886
|
+
e = X("li"), l.c(), a = Le(), o = X("span"), g = X("span"), h = X("span"), S = Ye(v), M = Le(), f && f.c(), N = Le(), C = X("span"), I = Ye(O), x(h, "class", "primary svelte-w9y5n9"), x(g, "class", "svelte-w9y5n9"), x(C, "class", "line2 svelte-w9y5n9"), x(o, "class", "texts svelte-w9y5n9"), x(e, "tabindex", "-1"), x(e, "role", "option"), x(e, "aria-selected", _ = /*style*/
|
|
887
887
|
i[1] === "selected"), x(e, "aria-checked", P = /*style*/
|
|
888
|
-
i[1] === "picked"), x(e, "class", z =
|
|
888
|
+
i[1] === "picked"), x(e, "class", z = Wt(
|
|
889
889
|
/*style*/
|
|
890
890
|
i[1]
|
|
891
891
|
) + " svelte-w9y5n9");
|
|
892
892
|
},
|
|
893
893
|
m(m, c) {
|
|
894
|
-
te(m, e, c), l.m(e, null), j(e, a), j(e, o), j(o, g), j(g, h), j(h, S), j(g, M), f && f.m(g, null), j(o, N), j(o, C), j(C, I),
|
|
894
|
+
te(m, e, c), l.m(e, null), j(e, a), j(e, o), j(o, g), j(g, h), j(h, S), j(g, M), f && f.m(g, null), j(o, N), j(o, C), j(C, I), Z || (H = [
|
|
895
895
|
he(
|
|
896
896
|
e,
|
|
897
897
|
"mouseenter",
|
|
@@ -910,7 +910,7 @@ function zr(i) {
|
|
|
910
910
|
/*click_handler*/
|
|
911
911
|
i[16]
|
|
912
912
|
)
|
|
913
|
-
],
|
|
913
|
+
], Z = !0);
|
|
914
914
|
},
|
|
915
915
|
p(m, [c]) {
|
|
916
916
|
s === (s = G(m, c)) && l ? l.p(m, c) : (l.d(1), l = s(m), l && (l.c(), l.m(e, a))), c & /*isReverse, feature*/
|
|
@@ -921,7 +921,7 @@ function zr(i) {
|
|
|
921
921
|
) : (
|
|
922
922
|
/*feature*/
|
|
923
923
|
m[0].place_name.replace(/,.*/, "")
|
|
924
|
-
)) + "") &&
|
|
924
|
+
)) + "") && _t(S, v), c & /*showPlaceType, feature, imageUrl, isReverse*/
|
|
925
925
|
293 && (k = /*showPlaceType*/
|
|
926
926
|
m[2] === "always" || /*showPlaceType*/
|
|
927
927
|
m[2] !== "never" && !/*feature*/
|
|
@@ -931,17 +931,17 @@ function zr(i) {
|
|
|
931
931
|
m[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
932
932
|
m[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
933
933
|
m[5]) && !/*isReverse*/
|
|
934
|
-
m[8]), k ? f ? f.p(m, c) : (f =
|
|
934
|
+
m[8]), k ? f ? f.p(m, c) : (f = Gi(m), f.c(), f.m(g, null)) : f && (f.d(1), f = null), c & /*isReverse, feature*/
|
|
935
935
|
257 && O !== (O = /*isReverse*/
|
|
936
936
|
(m[8] ? "" : (
|
|
937
937
|
/*feature*/
|
|
938
938
|
m[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
939
|
-
)) + "") &&
|
|
939
|
+
)) + "") && _t(I, O), c & /*style*/
|
|
940
940
|
2 && _ !== (_ = /*style*/
|
|
941
941
|
m[1] === "selected") && x(e, "aria-selected", _), c & /*style*/
|
|
942
942
|
2 && P !== (P = /*style*/
|
|
943
943
|
m[1] === "picked") && x(e, "aria-checked", P), c & /*style*/
|
|
944
|
-
2 && z !== (z =
|
|
944
|
+
2 && z !== (z = Wt(
|
|
945
945
|
/*style*/
|
|
946
946
|
m[1]
|
|
947
947
|
) + " svelte-w9y5n9") && x(e, "class", z);
|
|
@@ -949,40 +949,40 @@ function zr(i) {
|
|
|
949
949
|
i: re,
|
|
950
950
|
o: re,
|
|
951
951
|
d(m) {
|
|
952
|
-
m &&
|
|
952
|
+
m && $(e), l.d(), f && f.d(), Z = !1, Ve(H);
|
|
953
953
|
}
|
|
954
954
|
};
|
|
955
955
|
}
|
|
956
|
-
const
|
|
957
|
-
let
|
|
958
|
-
function
|
|
956
|
+
const pn = devicePixelRatio > 1.25, ui = pn ? "@2x" : "", _e = pn ? 2 : 1;
|
|
957
|
+
let ke, kt;
|
|
958
|
+
function Br(i, e, t) {
|
|
959
959
|
let n, r, u, { feature: a } = e, { style: o = "default" } = e, { showPlaceType: g } = e, { missingIconsCache: h } = e, { iconsBaseUrl: v } = e;
|
|
960
|
-
const S =
|
|
960
|
+
const S = hn();
|
|
961
961
|
let M, k, N, C;
|
|
962
962
|
function O() {
|
|
963
|
-
|
|
964
|
-
|
|
963
|
+
kt ?? (kt = fetch(`${v}sprite${ui}.json`).then((s) => s.json()).then((s) => {
|
|
964
|
+
ke = s;
|
|
965
965
|
}).catch(() => {
|
|
966
|
-
|
|
966
|
+
ke = null;
|
|
967
967
|
}));
|
|
968
968
|
}
|
|
969
969
|
function I() {
|
|
970
970
|
k && h.add(k), _();
|
|
971
971
|
}
|
|
972
972
|
function _() {
|
|
973
|
-
|
|
973
|
+
ke !== void 0 ? P() : (O(), kt == null || kt.then(P));
|
|
974
974
|
}
|
|
975
975
|
function P() {
|
|
976
976
|
do {
|
|
977
|
-
if (C--, t(4, M = n == null ? void 0 : n[C]), t(6, N = M ?
|
|
977
|
+
if (C--, t(4, M = n == null ? void 0 : n[C]), t(6, N = M ? ke == null ? void 0 : ke.icons[M] : void 0), N)
|
|
978
978
|
break;
|
|
979
979
|
t(5, k = M ? v + M.replace(/ /g, "_") + ".svg" : void 0);
|
|
980
980
|
} while (C > -1 && (!k || h.has(k)));
|
|
981
981
|
}
|
|
982
982
|
function z(s) {
|
|
983
|
-
|
|
983
|
+
mr.call(this, i, s);
|
|
984
984
|
}
|
|
985
|
-
const
|
|
985
|
+
const Z = () => I(), H = () => S("select", void 0), G = (s) => {
|
|
986
986
|
document.activeElement !== s.target && S("select", void 0);
|
|
987
987
|
};
|
|
988
988
|
return i.$$set = (s) => {
|
|
@@ -1009,14 +1009,14 @@ function Dr(i, e, t) {
|
|
|
1009
1009
|
h,
|
|
1010
1010
|
n,
|
|
1011
1011
|
z,
|
|
1012
|
-
|
|
1012
|
+
Z,
|
|
1013
1013
|
H,
|
|
1014
1014
|
G
|
|
1015
1015
|
];
|
|
1016
1016
|
}
|
|
1017
|
-
class
|
|
1017
|
+
class Gr extends ot {
|
|
1018
1018
|
constructor(e) {
|
|
1019
|
-
super(),
|
|
1019
|
+
super(), st(this, e, Br, Ar, rt, {
|
|
1020
1020
|
feature: 0,
|
|
1021
1021
|
style: 1,
|
|
1022
1022
|
showPlaceType: 2,
|
|
@@ -1025,11 +1025,11 @@ class Ur extends ut {
|
|
|
1025
1025
|
});
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function Wr(i) {
|
|
1029
1029
|
let e;
|
|
1030
1030
|
return {
|
|
1031
1031
|
c() {
|
|
1032
|
-
e =
|
|
1032
|
+
e = X("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', x(e, "class", "svelte-7cmwmc");
|
|
1033
1033
|
},
|
|
1034
1034
|
m(t, n) {
|
|
1035
1035
|
te(t, e, n);
|
|
@@ -1038,20 +1038,20 @@ function Fr(i) {
|
|
|
1038
1038
|
i: re,
|
|
1039
1039
|
o: re,
|
|
1040
1040
|
d(t) {
|
|
1041
|
-
t &&
|
|
1041
|
+
t && $(e);
|
|
1042
1042
|
}
|
|
1043
1043
|
};
|
|
1044
1044
|
}
|
|
1045
|
-
class
|
|
1045
|
+
class zr extends ot {
|
|
1046
1046
|
constructor(e) {
|
|
1047
|
-
super(),
|
|
1047
|
+
super(), st(this, e, null, Wr, rt, {});
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Dr(i) {
|
|
1051
1051
|
let e, t;
|
|
1052
1052
|
return {
|
|
1053
1053
|
c() {
|
|
1054
|
-
e =
|
|
1054
|
+
e = Fe("svg"), t = Fe("path"), x(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), x(e, "viewBox", "0 0 60.006 21.412"), x(e, "width", "14"), x(e, "height", "20"), x(e, "class", "svelte-en2qvf");
|
|
1055
1055
|
},
|
|
1056
1056
|
m(n, r) {
|
|
1057
1057
|
te(n, e, r), j(e, t);
|
|
@@ -1060,20 +1060,20 @@ function jr(i) {
|
|
|
1060
1060
|
i: re,
|
|
1061
1061
|
o: re,
|
|
1062
1062
|
d(n) {
|
|
1063
|
-
n &&
|
|
1063
|
+
n && $(e);
|
|
1064
1064
|
}
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
|
-
class
|
|
1067
|
+
class Fr extends ot {
|
|
1068
1068
|
constructor(e) {
|
|
1069
|
-
super(),
|
|
1069
|
+
super(), st(this, e, null, Dr, rt, {});
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Ur(i) {
|
|
1073
1073
|
let e, t, n;
|
|
1074
1074
|
return {
|
|
1075
1075
|
c() {
|
|
1076
|
-
e =
|
|
1076
|
+
e = Fe("svg"), t = Fe("circle"), n = Fe("path"), x(t, "cx", "4.789"), x(t, "cy", "4.787"), x(t, "r", "3.85"), x(t, "class", "svelte-1aq105l"), x(n, "d", "M12.063 12.063 7.635 7.635"), x(n, "class", "svelte-1aq105l"), x(e, "xmlns", "http://www.w3.org/2000/svg"), x(e, "width", "13"), x(e, "height", "13"), x(e, "viewBox", "0 0 13 13"), x(e, "class", "svelte-1aq105l");
|
|
1077
1077
|
},
|
|
1078
1078
|
m(r, u) {
|
|
1079
1079
|
te(r, e, u), j(e, t), j(e, n);
|
|
@@ -1082,35 +1082,35 @@ function Hr(i) {
|
|
|
1082
1082
|
i: re,
|
|
1083
1083
|
o: re,
|
|
1084
1084
|
d(r) {
|
|
1085
|
-
r &&
|
|
1085
|
+
r && $(e);
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
1088
1088
|
}
|
|
1089
|
-
class
|
|
1089
|
+
class qr extends ot {
|
|
1090
1090
|
constructor(e) {
|
|
1091
|
-
super(),
|
|
1091
|
+
super(), st(this, e, null, Ur, rt, {});
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function jr(i, e, t) {
|
|
1095
1095
|
const n = e[1], r = e[0], u = n - r;
|
|
1096
1096
|
return i === n && t ? i : ((i - r) % u + u) % u + r;
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function zt(i) {
|
|
1099
1099
|
const e = [...i];
|
|
1100
1100
|
return e[2] < e[0] && (Math.abs((e[0] + e[2] + 360) / 2) > Math.abs((e[0] - 360 + e[2]) / 2) ? e[0] -= 360 : e[2] += 360), e;
|
|
1101
1101
|
}
|
|
1102
|
-
let
|
|
1103
|
-
async function
|
|
1102
|
+
let yt;
|
|
1103
|
+
async function Vr(i, e, t) {
|
|
1104
1104
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
1105
1105
|
for (const r of e ?? [])
|
|
1106
1106
|
if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
|
|
1107
1107
|
if (r.type === "fixed")
|
|
1108
1108
|
return r.coordinates.join(",");
|
|
1109
1109
|
e: if (r.type === "client-geolocation") {
|
|
1110
|
-
if (
|
|
1111
|
-
if (!
|
|
1110
|
+
if (yt && r.cachedLocationExpiry && yt.time + r.cachedLocationExpiry > Date.now()) {
|
|
1111
|
+
if (!yt.coords)
|
|
1112
1112
|
break e;
|
|
1113
|
-
return
|
|
1113
|
+
return yt.coords;
|
|
1114
1114
|
}
|
|
1115
1115
|
let u;
|
|
1116
1116
|
try {
|
|
@@ -1131,7 +1131,7 @@ async function Yr(i, e, t) {
|
|
|
1131
1131
|
}), u;
|
|
1132
1132
|
} catch {
|
|
1133
1133
|
} finally {
|
|
1134
|
-
r.cachedLocationExpiry && (
|
|
1134
|
+
r.cachedLocationExpiry && (yt = {
|
|
1135
1135
|
time: Date.now(),
|
|
1136
1136
|
coords: u
|
|
1137
1137
|
});
|
|
@@ -1145,8 +1145,8 @@ async function Yr(i, e, t) {
|
|
|
1145
1145
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
|
-
const
|
|
1149
|
-
function
|
|
1148
|
+
const Hr = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, Wi = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, zi = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, Di = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, Fi = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Ui = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
|
|
1149
|
+
function Zr(i) {
|
|
1150
1150
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
1151
1151
|
throw new Error("invalid format specified");
|
|
1152
1152
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
@@ -1155,7 +1155,7 @@ function Xr(i) {
|
|
|
1155
1155
|
i == "DD" && (g = `${r}° ${a}, ${u}° ${o}`);
|
|
1156
1156
|
const h = Math.floor(r), v = Math.floor(u), S = (r - h) * 60, M = (u - v) * 60;
|
|
1157
1157
|
if (i == "DM") {
|
|
1158
|
-
let k =
|
|
1158
|
+
let k = qi(S, 3).toFixed(3).padStart(6, "0"), N = qi(M, 3).toFixed(3).padStart(6, "0");
|
|
1159
1159
|
k.endsWith(".000") && N.endsWith(".000") && (k = k.replace(/\.000$/, ""), N = N.replace(/\.000$/, "")), g = `${h}° ${k}' ${a}, ${v}° ${N}' ${o}`;
|
|
1160
1160
|
}
|
|
1161
1161
|
if (i == "DMS") {
|
|
@@ -1168,22 +1168,22 @@ function Xr(i) {
|
|
|
1168
1168
|
} else
|
|
1169
1169
|
throw new Error("no decimal coordinates to convert");
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function qi(i, e) {
|
|
1172
1172
|
const t = Math.pow(10, e);
|
|
1173
1173
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function gi(i, e) {
|
|
1176
1176
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1177
1177
|
let t = null, n = null, r = "", u = "", a = null, o = [], g = !1;
|
|
1178
|
-
if (
|
|
1178
|
+
if (Hr.test(i))
|
|
1179
1179
|
throw new Error("invalid coordinate value");
|
|
1180
|
-
if (
|
|
1181
|
-
if (o =
|
|
1180
|
+
if (Wi.test(i))
|
|
1181
|
+
if (o = Wi.exec(i), g = bt(o), g)
|
|
1182
1182
|
t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), a = "DM";
|
|
1183
1183
|
else
|
|
1184
1184
|
throw new Error("invalid coordinate format");
|
|
1185
|
-
else if (
|
|
1186
|
-
if (o =
|
|
1185
|
+
else if (zi.test(i))
|
|
1186
|
+
if (o = zi.exec(i), g = bt(o), g) {
|
|
1187
1187
|
if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), a = "DD", Number(Math.round(t)) == Number(t))
|
|
1188
1188
|
throw new Error("integer only coordinate provided");
|
|
1189
1189
|
if (Number(Math.round(n)) == Number(n))
|
|
@@ -1191,18 +1191,18 @@ function pi(i, e) {
|
|
|
1191
1191
|
o[1] ? (r = o[1], u = o[5]) : o[4] && (r = o[4], u = o[8]);
|
|
1192
1192
|
} else
|
|
1193
1193
|
throw new Error("invalid decimal coordinate format");
|
|
1194
|
-
else if (
|
|
1195
|
-
if (o =
|
|
1194
|
+
else if (Di.test(i))
|
|
1195
|
+
if (o = Di.exec(i), g = bt(o), g)
|
|
1196
1196
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, a = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, a = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[8]) : o[7] && (r = o[7], u = o[14]);
|
|
1197
1197
|
else
|
|
1198
1198
|
throw new Error("invalid DMS coordinates format");
|
|
1199
|
-
else if (
|
|
1200
|
-
if (o =
|
|
1199
|
+
else if (Fi.test(i))
|
|
1200
|
+
if (o = Fi.exec(i), g = bt(o), g)
|
|
1201
1201
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, a = "DM"), o[6] && (t += o[6] / 3600, a = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]);
|
|
1202
1202
|
else
|
|
1203
1203
|
throw new Error("invalid DMS coordinates format");
|
|
1204
|
-
else if (
|
|
1205
|
-
if (o =
|
|
1204
|
+
else if (Ui.test(i)) {
|
|
1205
|
+
if (o = Ui.exec(i), g = bt(o), o.filter((h) => h).length <= 5)
|
|
1206
1206
|
throw new Error("invalid coordinates format");
|
|
1207
1207
|
if (g)
|
|
1208
1208
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, a = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, a = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]);
|
|
@@ -1256,13 +1256,13 @@ function pi(i, e) {
|
|
|
1256
1256
|
decimalLongitude: n,
|
|
1257
1257
|
decimalCoordinates: `${t},${n}`,
|
|
1258
1258
|
originalFormat: a,
|
|
1259
|
-
closeEnough:
|
|
1260
|
-
toCoordinateFormat:
|
|
1259
|
+
closeEnough: Kr,
|
|
1260
|
+
toCoordinateFormat: Zr
|
|
1261
1261
|
});
|
|
1262
1262
|
} else
|
|
1263
1263
|
throw new Error("coordinates pattern match failed");
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1265
|
+
function bt(i) {
|
|
1266
1266
|
if (!isNaN(i[0]))
|
|
1267
1267
|
return !1;
|
|
1268
1268
|
const e = [...i];
|
|
@@ -1281,28 +1281,28 @@ function wt(i) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
return !0;
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function ji(i, e) {
|
|
1285
1285
|
const t = Math.abs(i - e);
|
|
1286
1286
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function Kr(i) {
|
|
1289
1289
|
if (!i)
|
|
1290
1290
|
throw new Error("coords must be provided");
|
|
1291
1291
|
if (i.includes(",")) {
|
|
1292
1292
|
const e = i.split(",");
|
|
1293
1293
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1294
1294
|
throw new Error("coords are not valid decimals");
|
|
1295
|
-
return
|
|
1295
|
+
return ji(this.decimalLatitude, Number(e[0])) && ji(this.decimalLongitude, e[1]);
|
|
1296
1296
|
} else
|
|
1297
1297
|
throw new Error("coords being tested must be separated by a comma");
|
|
1298
1298
|
}
|
|
1299
|
-
const
|
|
1299
|
+
const Yr = Object.freeze({
|
|
1300
1300
|
DMS: "DMS",
|
|
1301
1301
|
DM: "DM",
|
|
1302
1302
|
DD: "DD"
|
|
1303
1303
|
});
|
|
1304
|
-
|
|
1305
|
-
const
|
|
1304
|
+
gi.to = Yr;
|
|
1305
|
+
const Qr = [
|
|
1306
1306
|
{
|
|
1307
1307
|
verbatimCoordinates: "40.123, -74.123",
|
|
1308
1308
|
verbatimLatitude: "40.123",
|
|
@@ -1443,10 +1443,10 @@ const es = [
|
|
|
1443
1443
|
verbatimLatitude: "40 7 22.8",
|
|
1444
1444
|
verbatimLongitude: "-74 7 22.8"
|
|
1445
1445
|
}
|
|
1446
|
-
],
|
|
1446
|
+
], Xr = {
|
|
1447
1447
|
decimalLatitude: 40.123,
|
|
1448
1448
|
decimalLongitude: -74.123
|
|
1449
|
-
},
|
|
1449
|
+
}, Jr = [
|
|
1450
1450
|
{
|
|
1451
1451
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1452
1452
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1531,7 +1531,7 @@ const es = [
|
|
|
1531
1531
|
decimalLatitude: -18.4,
|
|
1532
1532
|
decimalLongitude: 22.75
|
|
1533
1533
|
}
|
|
1534
|
-
],
|
|
1534
|
+
], $r = [
|
|
1535
1535
|
{
|
|
1536
1536
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1537
1537
|
verbatimLatitude: "10.432342S",
|
|
@@ -1666,24 +1666,24 @@ const es = [
|
|
|
1666
1666
|
decimalLongitude: 18.33453
|
|
1667
1667
|
}
|
|
1668
1668
|
];
|
|
1669
|
-
function
|
|
1669
|
+
function es() {
|
|
1670
1670
|
const i = [];
|
|
1671
|
-
return
|
|
1672
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1673
|
-
}), [...i, ...
|
|
1674
|
-
}
|
|
1675
|
-
const
|
|
1676
|
-
|
|
1677
|
-
const
|
|
1678
|
-
function
|
|
1671
|
+
return Qr.forEach((e) => {
|
|
1672
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...Xr });
|
|
1673
|
+
}), [...i, ...Jr, ...$r];
|
|
1674
|
+
}
|
|
1675
|
+
const ts = es();
|
|
1676
|
+
gi.formats = ts.map((i) => i.verbatimCoordinates);
|
|
1677
|
+
const is = gi;
|
|
1678
|
+
function Vi(i, e, t) {
|
|
1679
1679
|
const n = i.slice();
|
|
1680
|
-
return n[
|
|
1680
|
+
return n[97] = e[t], n[99] = t, n;
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function Hi(i) {
|
|
1683
1683
|
let e, t;
|
|
1684
|
-
return e = new
|
|
1684
|
+
return e = new zr({}), {
|
|
1685
1685
|
c() {
|
|
1686
|
-
|
|
1686
|
+
Qe(e.$$.fragment);
|
|
1687
1687
|
},
|
|
1688
1688
|
m(n, r) {
|
|
1689
1689
|
Ue(e, n, r), t = !0;
|
|
@@ -1695,20 +1695,20 @@ function Yi(i) {
|
|
|
1695
1695
|
de(e.$$.fragment, n), t = !1;
|
|
1696
1696
|
},
|
|
1697
1697
|
d(n) {
|
|
1698
|
-
|
|
1698
|
+
qe(e, n);
|
|
1699
1699
|
}
|
|
1700
1700
|
};
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function Zi(i) {
|
|
1703
1703
|
let e, t, n, r, u;
|
|
1704
|
-
return t = new
|
|
1704
|
+
return t = new Fr({}), {
|
|
1705
1705
|
c() {
|
|
1706
|
-
e =
|
|
1706
|
+
e = X("button"), Qe(t.$$.fragment), x(e, "type", "button"), x(
|
|
1707
1707
|
e,
|
|
1708
1708
|
"title",
|
|
1709
1709
|
/*reverseButtonTitle*/
|
|
1710
1710
|
i[10]
|
|
1711
|
-
), x(e, "class", "svelte-bz0zu3"),
|
|
1711
|
+
), x(e, "class", "svelte-bz0zu3"), ct(
|
|
1712
1712
|
e,
|
|
1713
1713
|
"active",
|
|
1714
1714
|
/*reverseActive*/
|
|
@@ -1720,7 +1720,7 @@ function Qi(i) {
|
|
|
1720
1720
|
e,
|
|
1721
1721
|
"click",
|
|
1722
1722
|
/*click_handler_3*/
|
|
1723
|
-
i[
|
|
1723
|
+
i[79]
|
|
1724
1724
|
), r = !0);
|
|
1725
1725
|
},
|
|
1726
1726
|
p(a, o) {
|
|
@@ -1731,7 +1731,7 @@ function Qi(i) {
|
|
|
1731
1731
|
/*reverseButtonTitle*/
|
|
1732
1732
|
a[10]
|
|
1733
1733
|
), (!n || o[0] & /*reverseActive*/
|
|
1734
|
-
1) &&
|
|
1734
|
+
1) && ct(
|
|
1735
1735
|
e,
|
|
1736
1736
|
"active",
|
|
1737
1737
|
/*reverseActive*/
|
|
@@ -1745,28 +1745,28 @@ function Qi(i) {
|
|
|
1745
1745
|
de(t.$$.fragment, a), n = !1;
|
|
1746
1746
|
},
|
|
1747
1747
|
d(a) {
|
|
1748
|
-
a &&
|
|
1748
|
+
a && $(e), qe(t), r = !1, u();
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1753
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), r, u, a, o =
|
|
1752
|
+
function ns(i) {
|
|
1753
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, u, a, o = Bi(
|
|
1754
1754
|
/*listFeatures*/
|
|
1755
1755
|
i[13]
|
|
1756
1756
|
);
|
|
1757
1757
|
const g = (h) => (
|
|
1758
1758
|
/*feature*/
|
|
1759
|
-
h[
|
|
1760
|
-
(h[
|
|
1761
|
-
h[
|
|
1759
|
+
h[97].id + /*feature*/
|
|
1760
|
+
(h[97].address ? "," + /*feature*/
|
|
1761
|
+
h[97].address : "")
|
|
1762
1762
|
);
|
|
1763
1763
|
for (let h = 0; h < o.length; h += 1) {
|
|
1764
|
-
let v =
|
|
1765
|
-
n.set(S, t[h] =
|
|
1764
|
+
let v = Vi(i, o, h), S = g(v);
|
|
1765
|
+
n.set(S, t[h] = Ki(S, v));
|
|
1766
1766
|
}
|
|
1767
1767
|
return {
|
|
1768
1768
|
c() {
|
|
1769
|
-
e =
|
|
1769
|
+
e = X("ul");
|
|
1770
1770
|
for (let h = 0; h < t.length; h += 1)
|
|
1771
1771
|
t[h].c();
|
|
1772
1772
|
x(e, "class", "options svelte-bz0zu3"), x(e, "role", "listbox");
|
|
@@ -1786,7 +1786,7 @@ function ls(i) {
|
|
|
1786
1786
|
e,
|
|
1787
1787
|
"blur",
|
|
1788
1788
|
/*blur_handler_1*/
|
|
1789
|
-
i[
|
|
1789
|
+
i[83]
|
|
1790
1790
|
),
|
|
1791
1791
|
he(
|
|
1792
1792
|
e,
|
|
@@ -1798,10 +1798,10 @@ function ls(i) {
|
|
|
1798
1798
|
},
|
|
1799
1799
|
p(h, v) {
|
|
1800
1800
|
v[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
|
|
1801
|
-
102823936 && (o =
|
|
1801
|
+
102823936 && (o = Bi(
|
|
1802
1802
|
/*listFeatures*/
|
|
1803
1803
|
h[13]
|
|
1804
|
-
),
|
|
1804
|
+
), It(), t = Er(t, v, g, 1, h, o, n, e, wr, Ki, null, Vi), At());
|
|
1805
1805
|
},
|
|
1806
1806
|
i(h) {
|
|
1807
1807
|
if (!r) {
|
|
@@ -1816,18 +1816,18 @@ function ls(i) {
|
|
|
1816
1816
|
r = !1;
|
|
1817
1817
|
},
|
|
1818
1818
|
d(h) {
|
|
1819
|
-
h &&
|
|
1819
|
+
h && $(e);
|
|
1820
1820
|
for (let v = 0; v < t.length; v += 1)
|
|
1821
1821
|
t[v].d();
|
|
1822
|
-
u = !1,
|
|
1822
|
+
u = !1, Ve(a);
|
|
1823
1823
|
}
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1826
|
+
function rs(i) {
|
|
1827
1827
|
let e, t, n, r, u, a;
|
|
1828
|
-
return t = new
|
|
1828
|
+
return t = new mn({}), {
|
|
1829
1829
|
c() {
|
|
1830
|
-
e =
|
|
1830
|
+
e = X("div"), Qe(t.$$.fragment), n = Le(), r = X("div"), u = Ye(
|
|
1831
1831
|
/*noResultsMessage*/
|
|
1832
1832
|
i[8]
|
|
1833
1833
|
), x(r, "class", "svelte-bz0zu3"), x(e, "class", "no-results svelte-bz0zu3");
|
|
@@ -1837,7 +1837,7 @@ function us(i) {
|
|
|
1837
1837
|
},
|
|
1838
1838
|
p(o, g) {
|
|
1839
1839
|
(!a || g[0] & /*noResultsMessage*/
|
|
1840
|
-
256) &&
|
|
1840
|
+
256) && _t(
|
|
1841
1841
|
u,
|
|
1842
1842
|
/*noResultsMessage*/
|
|
1843
1843
|
o[8]
|
|
@@ -1850,15 +1850,15 @@ function us(i) {
|
|
|
1850
1850
|
de(t.$$.fragment, o), a = !1;
|
|
1851
1851
|
},
|
|
1852
1852
|
d(o) {
|
|
1853
|
-
o &&
|
|
1853
|
+
o && $(e), qe(t);
|
|
1854
1854
|
}
|
|
1855
1855
|
};
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function ss(i) {
|
|
1858
1858
|
let e = "", t;
|
|
1859
1859
|
return {
|
|
1860
1860
|
c() {
|
|
1861
|
-
t =
|
|
1861
|
+
t = Ye(e);
|
|
1862
1862
|
},
|
|
1863
1863
|
m(n, r) {
|
|
1864
1864
|
te(n, t, r);
|
|
@@ -1867,30 +1867,30 @@ function as(i) {
|
|
|
1867
1867
|
i: re,
|
|
1868
1868
|
o: re,
|
|
1869
1869
|
d(n) {
|
|
1870
|
-
n &&
|
|
1870
|
+
n && $(t);
|
|
1871
1871
|
}
|
|
1872
1872
|
};
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function os(i) {
|
|
1875
1875
|
let e, t, n, r, u, a, o, g, h, v, S;
|
|
1876
|
-
return t = new
|
|
1876
|
+
return t = new mn({}), g = new gn({}), {
|
|
1877
1877
|
c() {
|
|
1878
|
-
e =
|
|
1878
|
+
e = X("div"), Qe(t.$$.fragment), n = Le(), r = X("div"), u = Ye(
|
|
1879
1879
|
/*errorMessage*/
|
|
1880
1880
|
i[7]
|
|
1881
|
-
), a =
|
|
1881
|
+
), a = Le(), o = X("button"), Qe(g.$$.fragment), x(r, "class", "svelte-bz0zu3"), x(o, "class", "svelte-bz0zu3"), x(e, "class", "error svelte-bz0zu3");
|
|
1882
1882
|
},
|
|
1883
1883
|
m(M, k) {
|
|
1884
1884
|
te(M, e, k), Ue(t, e, null), j(e, n), j(e, r), j(r, u), j(e, a), j(e, o), Ue(g, o, null), h = !0, v || (S = he(
|
|
1885
1885
|
o,
|
|
1886
1886
|
"click",
|
|
1887
1887
|
/*click_handler_4*/
|
|
1888
|
-
i[
|
|
1888
|
+
i[80]
|
|
1889
1889
|
), v = !0);
|
|
1890
1890
|
},
|
|
1891
1891
|
p(M, k) {
|
|
1892
1892
|
(!h || k[0] & /*errorMessage*/
|
|
1893
|
-
128) &&
|
|
1893
|
+
128) && _t(
|
|
1894
1894
|
u,
|
|
1895
1895
|
/*errorMessage*/
|
|
1896
1896
|
M[7]
|
|
@@ -1903,36 +1903,36 @@ function fs(i) {
|
|
|
1903
1903
|
de(t.$$.fragment, M), de(g.$$.fragment, M), h = !1;
|
|
1904
1904
|
},
|
|
1905
1905
|
d(M) {
|
|
1906
|
-
M &&
|
|
1906
|
+
M && $(e), qe(t), qe(g), v = !1, S();
|
|
1907
1907
|
}
|
|
1908
1908
|
};
|
|
1909
1909
|
}
|
|
1910
|
-
function
|
|
1910
|
+
function Ki(i, e) {
|
|
1911
1911
|
var o;
|
|
1912
1912
|
let t, n, r;
|
|
1913
1913
|
function u() {
|
|
1914
1914
|
return (
|
|
1915
1915
|
/*mouseenter_handler*/
|
|
1916
|
-
e[
|
|
1916
|
+
e[81](
|
|
1917
1917
|
/*i*/
|
|
1918
|
-
e[
|
|
1918
|
+
e[99]
|
|
1919
1919
|
)
|
|
1920
1920
|
);
|
|
1921
1921
|
}
|
|
1922
1922
|
function a() {
|
|
1923
1923
|
return (
|
|
1924
1924
|
/*select_handler*/
|
|
1925
|
-
e[
|
|
1925
|
+
e[82](
|
|
1926
1926
|
/*feature*/
|
|
1927
|
-
e[
|
|
1927
|
+
e[97]
|
|
1928
1928
|
)
|
|
1929
1929
|
);
|
|
1930
1930
|
}
|
|
1931
|
-
return n = new
|
|
1931
|
+
return n = new Gr({
|
|
1932
1932
|
props: {
|
|
1933
1933
|
feature: (
|
|
1934
1934
|
/*feature*/
|
|
1935
|
-
e[
|
|
1935
|
+
e[97]
|
|
1936
1936
|
),
|
|
1937
1937
|
showPlaceType: (
|
|
1938
1938
|
/*showPlaceType*/
|
|
@@ -1941,10 +1941,10 @@ function Xi(i, e) {
|
|
|
1941
1941
|
style: (
|
|
1942
1942
|
/*selectedItemIndex*/
|
|
1943
1943
|
e[15] === /*i*/
|
|
1944
|
-
e[
|
|
1944
|
+
e[99] ? "selected" : (
|
|
1945
1945
|
/*picked*/
|
|
1946
1946
|
((o = e[14]) == null ? void 0 : o.id) === /*feature*/
|
|
1947
|
-
e[
|
|
1947
|
+
e[97].id ? "picked" : "default"
|
|
1948
1948
|
)
|
|
1949
1949
|
),
|
|
1950
1950
|
missingIconsCache: (
|
|
@@ -1960,7 +1960,7 @@ function Xi(i, e) {
|
|
|
1960
1960
|
key: i,
|
|
1961
1961
|
first: null,
|
|
1962
1962
|
c() {
|
|
1963
|
-
t =
|
|
1963
|
+
t = fr(), Qe(n.$$.fragment), this.first = t;
|
|
1964
1964
|
},
|
|
1965
1965
|
m(g, h) {
|
|
1966
1966
|
te(g, t, h), Ue(n, g, h), r = !0;
|
|
@@ -1971,15 +1971,15 @@ function Xi(i, e) {
|
|
|
1971
1971
|
const v = {};
|
|
1972
1972
|
h[0] & /*listFeatures*/
|
|
1973
1973
|
8192 && (v.feature = /*feature*/
|
|
1974
|
-
e[
|
|
1974
|
+
e[97]), h[0] & /*showPlaceType*/
|
|
1975
1975
|
2048 && (v.showPlaceType = /*showPlaceType*/
|
|
1976
1976
|
e[11]), h[0] & /*selectedItemIndex, listFeatures, picked*/
|
|
1977
1977
|
57344 && (v.style = /*selectedItemIndex*/
|
|
1978
1978
|
e[15] === /*i*/
|
|
1979
|
-
e[
|
|
1979
|
+
e[99] ? "selected" : (
|
|
1980
1980
|
/*picked*/
|
|
1981
1981
|
((S = e[14]) == null ? void 0 : S.id) === /*feature*/
|
|
1982
|
-
e[
|
|
1982
|
+
e[97].id ? "picked" : "default"
|
|
1983
1983
|
)), h[0] & /*iconsBaseUrl*/
|
|
1984
1984
|
4096 && (v.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1985
1985
|
e[12]), n.$set(v);
|
|
@@ -1991,30 +1991,30 @@ function Xi(i, e) {
|
|
|
1991
1991
|
de(n.$$.fragment, g), r = !1;
|
|
1992
1992
|
},
|
|
1993
1993
|
d(g) {
|
|
1994
|
-
g &&
|
|
1994
|
+
g && $(t), qe(n, g);
|
|
1995
1995
|
}
|
|
1996
1996
|
};
|
|
1997
1997
|
}
|
|
1998
|
-
function
|
|
1999
|
-
let e, t, n, r, u, a, o, g, h, v, S, M, k, N, C, O, I, _, P, z,
|
|
2000
|
-
u = new
|
|
1998
|
+
function ls(i) {
|
|
1999
|
+
let e, t, n, r, u, a, o, g, h, v, S, M, k, N, C, O, I, _, P, z, Z, H = !1;
|
|
2000
|
+
u = new qr({}), S = new gn({});
|
|
2001
2001
|
let G = (
|
|
2002
2002
|
/*abortController*/
|
|
2003
|
-
i[20] &&
|
|
2003
|
+
i[20] && Hi()
|
|
2004
2004
|
), s = (
|
|
2005
2005
|
/*enableReverse*/
|
|
2006
|
-
i[6] === "button" &&
|
|
2006
|
+
i[6] === "button" && Zi(i)
|
|
2007
2007
|
);
|
|
2008
2008
|
const l = (
|
|
2009
2009
|
/*#slots*/
|
|
2010
|
-
i[
|
|
2011
|
-
), f =
|
|
2010
|
+
i[70].default
|
|
2011
|
+
), f = or(
|
|
2012
2012
|
l,
|
|
2013
2013
|
i,
|
|
2014
2014
|
/*$$scope*/
|
|
2015
|
-
i[
|
|
2015
|
+
i[69],
|
|
2016
2016
|
null
|
|
2017
|
-
), m = [
|
|
2017
|
+
), m = [os, ss, rs, ns], c = [];
|
|
2018
2018
|
function b(p, d) {
|
|
2019
2019
|
var y, w;
|
|
2020
2020
|
return (
|
|
@@ -2034,7 +2034,7 @@ function cs(i) {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
return ~(O = b(i)) && (I = c[O] = m[O](i)), {
|
|
2036
2036
|
c() {
|
|
2037
|
-
e =
|
|
2037
|
+
e = Le(), t = X("form"), n = X("div"), r = X("button"), Qe(u.$$.fragment), a = Le(), o = X("input"), g = Le(), h = X("div"), v = X("button"), Qe(S.$$.fragment), M = Le(), G && G.c(), k = Le(), s && s.c(), N = Le(), f && f.c(), C = Le(), I && I.c(), x(r, "class", "search-button svelte-bz0zu3"), x(r, "type", "button"), x(
|
|
2038
2038
|
o,
|
|
2039
2039
|
"placeholder",
|
|
2040
2040
|
/*placeholder*/
|
|
@@ -2049,15 +2049,15 @@ function cs(i) {
|
|
|
2049
2049
|
"title",
|
|
2050
2050
|
/*clearButtonTitle*/
|
|
2051
2051
|
i[3]
|
|
2052
|
-
), x(v, "class", "svelte-bz0zu3"), x(h, "class", "clear-button-container svelte-bz0zu3"),
|
|
2052
|
+
), x(v, "class", "svelte-bz0zu3"), x(h, "class", "clear-button-container svelte-bz0zu3"), ct(
|
|
2053
2053
|
h,
|
|
2054
2054
|
"displayable",
|
|
2055
2055
|
/*searchValue*/
|
|
2056
2056
|
i[1] !== ""
|
|
2057
|
-
), x(n, "class", "input-group svelte-bz0zu3"), x(t, "class", _ =
|
|
2057
|
+
), x(n, "class", "input-group svelte-bz0zu3"), x(t, "class", _ = Wt(
|
|
2058
2058
|
/*className*/
|
|
2059
2059
|
i[2]
|
|
2060
|
-
) + " svelte-bz0zu3"),
|
|
2060
|
+
) + " svelte-bz0zu3"), ct(
|
|
2061
2061
|
t,
|
|
2062
2062
|
"can-collapse",
|
|
2063
2063
|
/*collapsed*/
|
|
@@ -2066,40 +2066,40 @@ function cs(i) {
|
|
|
2066
2066
|
);
|
|
2067
2067
|
},
|
|
2068
2068
|
m(p, d) {
|
|
2069
|
-
te(p, e, d), te(p, t, d), j(t, n), j(n, r), Ue(u, r, null), j(n, a), j(n, o), i[
|
|
2069
|
+
te(p, e, d), te(p, t, d), j(t, n), j(n, r), Ue(u, r, null), j(n, a), j(n, o), i[72](o), Ii(
|
|
2070
2070
|
o,
|
|
2071
2071
|
/*searchValue*/
|
|
2072
2072
|
i[1]
|
|
2073
|
-
), j(n, g), j(n, h), j(h, v), Ue(S, v, null), j(h, M), G && G.m(h, null), j(n, k), s && s.m(n, null), j(n, N), f && f.m(n, null), j(t, C), ~O && c[O].m(t, null), P = !0, z || (
|
|
2073
|
+
), j(n, g), j(n, h), j(h, v), Ue(S, v, null), j(h, M), G && G.m(h, null), j(n, k), s && s.m(n, null), j(n, N), f && f.m(n, null), j(t, C), ~O && c[O].m(t, null), P = !0, z || (Z = [
|
|
2074
2074
|
he(
|
|
2075
2075
|
r,
|
|
2076
2076
|
"click",
|
|
2077
2077
|
/*click_handler*/
|
|
2078
|
-
i[
|
|
2078
|
+
i[71]
|
|
2079
2079
|
),
|
|
2080
2080
|
he(
|
|
2081
2081
|
o,
|
|
2082
2082
|
"input",
|
|
2083
2083
|
/*input_1_input_handler*/
|
|
2084
|
-
i[
|
|
2084
|
+
i[73]
|
|
2085
2085
|
),
|
|
2086
2086
|
he(
|
|
2087
2087
|
o,
|
|
2088
2088
|
"focus",
|
|
2089
2089
|
/*focus_handler*/
|
|
2090
|
-
i[
|
|
2090
|
+
i[74]
|
|
2091
2091
|
),
|
|
2092
2092
|
he(
|
|
2093
2093
|
o,
|
|
2094
2094
|
"blur",
|
|
2095
2095
|
/*blur_handler*/
|
|
2096
|
-
i[
|
|
2096
|
+
i[75]
|
|
2097
2097
|
),
|
|
2098
2098
|
he(
|
|
2099
2099
|
o,
|
|
2100
2100
|
"click",
|
|
2101
2101
|
/*click_handler_1*/
|
|
2102
|
-
i[
|
|
2102
|
+
i[76]
|
|
2103
2103
|
),
|
|
2104
2104
|
he(
|
|
2105
2105
|
o,
|
|
@@ -2117,15 +2117,15 @@ function cs(i) {
|
|
|
2117
2117
|
o,
|
|
2118
2118
|
"change",
|
|
2119
2119
|
/*change_handler*/
|
|
2120
|
-
i[
|
|
2120
|
+
i[77]
|
|
2121
2121
|
),
|
|
2122
2122
|
he(
|
|
2123
2123
|
v,
|
|
2124
2124
|
"click",
|
|
2125
2125
|
/*click_handler_2*/
|
|
2126
|
-
i[
|
|
2126
|
+
i[78]
|
|
2127
2127
|
),
|
|
2128
|
-
he(t, "submit",
|
|
2128
|
+
he(t, "submit", cr(
|
|
2129
2129
|
/*handleSubmit*/
|
|
2130
2130
|
i[22]
|
|
2131
2131
|
))
|
|
@@ -2146,7 +2146,7 @@ function cs(i) {
|
|
|
2146
2146
|
p[9]
|
|
2147
2147
|
), d[0] & /*searchValue*/
|
|
2148
2148
|
2 && o.value !== /*searchValue*/
|
|
2149
|
-
p[1] &&
|
|
2149
|
+
p[1] && Ii(
|
|
2150
2150
|
o,
|
|
2151
2151
|
/*searchValue*/
|
|
2152
2152
|
p[1]
|
|
@@ -2158,46 +2158,46 @@ function cs(i) {
|
|
|
2158
2158
|
p[3]
|
|
2159
2159
|
), /*abortController*/
|
|
2160
2160
|
p[20] ? G ? d[0] & /*abortController*/
|
|
2161
|
-
1048576 && oe(G, 1) : (G =
|
|
2161
|
+
1048576 && oe(G, 1) : (G = Hi(), G.c(), oe(G, 1), G.m(h, null)) : G && (It(), de(G, 1, 1, () => {
|
|
2162
2162
|
G = null;
|
|
2163
|
-
}),
|
|
2164
|
-
2) &&
|
|
2163
|
+
}), At()), (!P || d[0] & /*searchValue*/
|
|
2164
|
+
2) && ct(
|
|
2165
2165
|
h,
|
|
2166
2166
|
"displayable",
|
|
2167
2167
|
/*searchValue*/
|
|
2168
2168
|
p[1] !== ""
|
|
2169
2169
|
), /*enableReverse*/
|
|
2170
2170
|
p[6] === "button" ? s ? (s.p(p, d), d[0] & /*enableReverse*/
|
|
2171
|
-
64 && oe(s, 1)) : (s =
|
|
2171
|
+
64 && oe(s, 1)) : (s = Zi(p), s.c(), oe(s, 1), s.m(n, N)) : s && (It(), de(s, 1, 1, () => {
|
|
2172
2172
|
s = null;
|
|
2173
|
-
}),
|
|
2174
|
-
|
|
2173
|
+
}), At()), f && f.p && (!P || d[2] & /*$$scope*/
|
|
2174
|
+
128) && ur(
|
|
2175
2175
|
f,
|
|
2176
2176
|
l,
|
|
2177
2177
|
p,
|
|
2178
2178
|
/*$$scope*/
|
|
2179
|
-
p[
|
|
2180
|
-
P ?
|
|
2179
|
+
p[69],
|
|
2180
|
+
P ? lr(
|
|
2181
2181
|
l,
|
|
2182
2182
|
/*$$scope*/
|
|
2183
|
-
p[
|
|
2183
|
+
p[69],
|
|
2184
2184
|
d,
|
|
2185
2185
|
null
|
|
2186
|
-
) :
|
|
2186
|
+
) : ar(
|
|
2187
2187
|
/*$$scope*/
|
|
2188
|
-
p[
|
|
2188
|
+
p[69]
|
|
2189
2189
|
),
|
|
2190
2190
|
null
|
|
2191
2191
|
);
|
|
2192
2192
|
let y = O;
|
|
2193
|
-
O = b(p), O === y ? ~O && c[O].p(p, d) : (I && (
|
|
2193
|
+
O = b(p), O === y ? ~O && c[O].p(p, d) : (I && (It(), de(c[y], 1, 1, () => {
|
|
2194
2194
|
c[y] = null;
|
|
2195
|
-
}),
|
|
2196
|
-
4 && _ !== (_ =
|
|
2195
|
+
}), At()), ~O ? (I = c[O], I ? I.p(p, d) : (I = c[O] = m[O](p), I.c()), oe(I, 1), I.m(t, null)) : I = null), (!P || d[0] & /*className*/
|
|
2196
|
+
4 && _ !== (_ = Wt(
|
|
2197
2197
|
/*className*/
|
|
2198
2198
|
p[2]
|
|
2199
2199
|
) + " svelte-bz0zu3")) && x(t, "class", _), (!P || d[0] & /*className, collapsed, searchValue*/
|
|
2200
|
-
38) &&
|
|
2200
|
+
38) && ct(
|
|
2201
2201
|
t,
|
|
2202
2202
|
"can-collapse",
|
|
2203
2203
|
/*collapsed*/
|
|
@@ -2212,11 +2212,11 @@ function cs(i) {
|
|
|
2212
2212
|
de(H), de(u.$$.fragment, p), de(S.$$.fragment, p), de(G), de(s), de(f, p), de(I), P = !1;
|
|
2213
2213
|
},
|
|
2214
2214
|
d(p) {
|
|
2215
|
-
p && (
|
|
2215
|
+
p && ($(e), $(t)), qe(u), i[72](null), qe(S), G && G.d(), s && s.d(), f && f.d(p), ~O && c[O].d(), z = !1, Ve(Z);
|
|
2216
2216
|
}
|
|
2217
2217
|
};
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2219
|
+
function us(i, e, t) {
|
|
2220
2220
|
let n, r, u, { $$slots: a = {}, $$scope: o } = e;
|
|
2221
2221
|
const g = {
|
|
2222
2222
|
continental_marine: 4,
|
|
@@ -2242,273 +2242,259 @@ function hs(i, e, t) {
|
|
|
2242
2242
|
"poi.restaurant": 18,
|
|
2243
2243
|
"poi.aerodrome": 13
|
|
2244
2244
|
};
|
|
2245
|
-
let { class: h = void 0 } = e, { apiKey: v } = e, { bbox: S = void 0 } = e, { clearButtonTitle: M = "clear" } = e, { clearOnBlur: k = !1 } = e, { clearListOnPick: N = !1 } = e, { keepListOpen: C = !1 } = e, { collapsed: O = !1 } = e, { country: I = void 0 } = e, { debounceSearch: _ = 200 } = e, { enableReverse: P = "never" } = e, { errorMessage: z = "Something went wrong…" } = e, { filter:
|
|
2245
|
+
let { class: h = void 0 } = e, { apiKey: v } = e, { bbox: S = void 0 } = e, { clearButtonTitle: M = "clear" } = e, { clearOnBlur: k = !1 } = e, { clearListOnPick: N = !1 } = e, { keepListOpen: C = !1 } = e, { collapsed: O = !1 } = e, { country: I = void 0 } = e, { debounceSearch: _ = 200 } = e, { enableReverse: P = "never" } = e, { errorMessage: z = "Something went wrong…" } = e, { filter: Z = () => !0 } = e, { flyTo: H = !0 } = e, { fuzzyMatch: G = !0 } = e, { language: s = void 0 } = e, { limit: l = void 0 } = e;
|
|
2246
2246
|
const f = 41415112612;
|
|
2247
|
-
let { reverseGeocodingLimit: m = f } = e, { mapController: c = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: p = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: d = "Search" } = e, { proximity: y = [{ type: "server-geolocation" }] } = e, { reverseActive: w = P === "always" } = e, { reverseButtonTitle: E = "toggle reverse geocoding" } = e, { searchValue: T = "" } = e, { pickedResultStyle: A = "full-geometry" } = e, { showPlaceType: B = "if-needed" } = e, { showResultsWhileTyping: q = !0 } = e, {
|
|
2248
|
-
const
|
|
2249
|
-
let { reverseGeocodingTypes:
|
|
2250
|
-
const
|
|
2251
|
-
let { reverseGeocodingExcludeTypes:
|
|
2252
|
-
} } = e, { adjustUrl:
|
|
2247
|
+
let { reverseGeocodingLimit: m = f } = e, { mapController: c = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: p = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: d = "Search" } = e, { proximity: y = [{ type: "server-geolocation" }] } = e, { reverseActive: w = P === "always" } = e, { reverseButtonTitle: E = "toggle reverse geocoding" } = e, { searchValue: T = "" } = e, { pickedResultStyle: A = "full-geometry" } = e, { showPlaceType: B = "if-needed" } = e, { showResultsWhileTyping: q = !0 } = e, { selectFirst: K = !0 } = e, { flyToSelected: ee = !1 } = e, { markerOnSelected: U = !0 } = e, { types: V = void 0 } = e;
|
|
2248
|
+
const fe = [];
|
|
2249
|
+
let { reverseGeocodingTypes: Ge = fe } = e, { exhaustiveReverseGeocoding: Je = !1 } = e, { excludeTypes: $e = !1 } = e;
|
|
2250
|
+
const be = void 0;
|
|
2251
|
+
let { reverseGeocodingExcludeTypes: Oe = be } = e, { zoom: ge = g } = e, { apiUrl: ce = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: J = {} } = e, { iconsBaseUrl: yi = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.3/icons/" } = e, { adjustUrlQuery: Vt = () => {
|
|
2252
|
+
} } = e, { adjustUrl: Ht = () => {
|
|
2253
2253
|
} } = e;
|
|
2254
|
-
function
|
|
2254
|
+
function _n(L) {
|
|
2255
2255
|
Ne.focus(L);
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function xn() {
|
|
2258
2258
|
Ne.blur();
|
|
2259
2259
|
}
|
|
2260
|
-
function
|
|
2261
|
-
t(1, T = L), ie ? (t(15,
|
|
2260
|
+
function bi(L, ie = !0, se = !1) {
|
|
2261
|
+
t(1, T = L), ie ? (t(15, Y = -1), wi()) : (Ei(void 0, !se, se), setTimeout(() => {
|
|
2262
2262
|
Ne.focus(), Ne.select();
|
|
2263
2263
|
}));
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2266
|
-
t(13,
|
|
2267
|
-
}
|
|
2268
|
-
function kn() {
|
|
2269
|
-
t(65, ae = []), t(14, W = void 0);
|
|
2265
|
+
function Tn() {
|
|
2266
|
+
t(13, F = void 0), t(14, W = void 0), t(15, Y = -1);
|
|
2270
2267
|
}
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
function Rn() {
|
|
2274
|
-
return !!Le;
|
|
2268
|
+
function Mn() {
|
|
2269
|
+
t(64, le = []), t(14, W = void 0);
|
|
2275
2270
|
}
|
|
2276
|
-
|
|
2271
|
+
let F, le, W, vi = "", Ne, Y = -1, Re, Tt = [], et, lt, ut, Zt, We = !1;
|
|
2272
|
+
const Nn = /* @__PURE__ */ new Set(), He = hn();
|
|
2273
|
+
gr(() => {
|
|
2277
2274
|
c && (c.setEventHandler(void 0), c.indicateReverse(!1), c.setSelectedMarker(-1), c.setFeatures(void 0, void 0, !1));
|
|
2278
2275
|
});
|
|
2279
|
-
function
|
|
2280
|
-
if (t(17,
|
|
2281
|
-
|
|
2282
|
-
return;
|
|
2283
|
-
}
|
|
2284
|
-
if (Z > -1 && U)
|
|
2285
|
-
t(14, W = U[Z]), t(1, T = W.place_type[0] === "reverse" ? W.place_name : W.place_name.replace(/,.*/, "")), t(19, Re = void 0), t(65, ae = void 0), t(15, Z = -1);
|
|
2276
|
+
function wi(L) {
|
|
2277
|
+
if (t(17, We = !1), lt && (clearTimeout(lt), lt = void 0), Y > -1 && F)
|
|
2278
|
+
t(14, W = F[Y]), t(1, T = W.place_type[0] === "reverse" ? W.place_name : W.place_name.replace(/,.*/, "")), t(19, Re = void 0), t(64, le = void 0), t(15, Y = -1);
|
|
2286
2279
|
else if (T) {
|
|
2287
|
-
const ie = L || !
|
|
2288
|
-
|
|
2289
|
-
t(
|
|
2280
|
+
const ie = L || !Kt(T);
|
|
2281
|
+
Yt(T, { exact: !0 }).then(() => {
|
|
2282
|
+
t(64, le = F), t(14, W = void 0), ie && Cn();
|
|
2290
2283
|
}).catch((se) => t(19, Re = se));
|
|
2291
2284
|
}
|
|
2292
2285
|
}
|
|
2293
|
-
function
|
|
2286
|
+
function Kt(L) {
|
|
2294
2287
|
try {
|
|
2295
|
-
return
|
|
2288
|
+
return is(L, 6);
|
|
2296
2289
|
} catch {
|
|
2297
2290
|
return !1;
|
|
2298
2291
|
}
|
|
2299
2292
|
}
|
|
2300
|
-
async function
|
|
2301
|
-
var
|
|
2302
|
-
t(19, Re = void 0),
|
|
2303
|
-
const
|
|
2304
|
-
t(20,
|
|
2293
|
+
async function Yt(L, { byId: ie = !1, exact: se = !1 } = {}) {
|
|
2294
|
+
var we, Pe, Ze;
|
|
2295
|
+
t(19, Re = void 0), et == null || et.abort();
|
|
2296
|
+
const ve = new AbortController();
|
|
2297
|
+
t(20, et = ve);
|
|
2305
2298
|
try {
|
|
2306
|
-
const
|
|
2299
|
+
const Q = Kt(L), gt = new URL(ce + "/" + encodeURIComponent(Q ? Q.decimalLongitude + "," + Q.decimalLatitude : L) + ".json"), Se = gt.searchParams;
|
|
2307
2300
|
s !== void 0 && Se.set("language", Array.isArray(s) ? s.join(",") : s ?? "");
|
|
2308
|
-
const [
|
|
2309
|
-
let Ie = (
|
|
2301
|
+
const [Jt] = (c == null ? void 0 : c.getCenterAndZoom()) ?? [];
|
|
2302
|
+
let Ie = (we = !Q || Ge === fe ? V : Ge) == null ? void 0 : we.map((me) => typeof me == "string" ? me : Jt === void 0 || (me[0] ?? 0) <= Jt && Jt < (me[1] ?? 1 / 0) ? me[2] : void 0).filter((me) => me !== void 0);
|
|
2310
2303
|
Ie && (Ie = [...new Set(Ie)], Se.set("types", Ie.join(",")));
|
|
2311
|
-
const
|
|
2312
|
-
if (
|
|
2313
|
-
const
|
|
2314
|
-
|
|
2304
|
+
const Si = !Q || Oe === be ? $e : Oe;
|
|
2305
|
+
if (Si && Se.set("excludeTypes", String(Si)), S && Se.set("bbox", S.map((me) => me.toFixed(6)).join(",")), I && Se.set("country", Array.isArray(I) ? I.join(",") : I), !ie && !Q) {
|
|
2306
|
+
const me = await Vr(c, y, ve);
|
|
2307
|
+
me && Se.set("proximity", me), (se || !q) && Se.set("autocomplete", "false"), Se.set("fuzzyMatch", String(G));
|
|
2315
2308
|
}
|
|
2316
|
-
const
|
|
2317
|
-
|
|
2318
|
-
const
|
|
2319
|
-
if (
|
|
2320
|
-
ie ? (N && t(13,
|
|
2309
|
+
const mt = m === f ? l : m;
|
|
2310
|
+
mt !== void 0 && mt > 1 && (Ie == null ? void 0 : Ie.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), Q ? (mt === 1 || mt !== void 0 && (Je || (Ie == null ? void 0 : Ie.length) === 1)) && Se.set("limit", String(mt)) : l !== void 0 && Se.set("limit", String(l)), Se.set("key", v), Vt(Se), Ht(gt);
|
|
2311
|
+
const Hn = gt.searchParams.get("types") === "" && gt.searchParams.get("excludeTypes") !== "true", Mt = gt.toString();
|
|
2312
|
+
if (Mt === vi) {
|
|
2313
|
+
ie ? (N && t(13, F = void 0), t(14, W = Tt[0])) : (t(13, F = Tt), ((Pe = F[Y]) == null ? void 0 : Pe.id) !== (r == null ? void 0 : r.id) && t(15, Y = -1));
|
|
2321
2314
|
return;
|
|
2322
2315
|
}
|
|
2323
|
-
|
|
2324
|
-
let
|
|
2325
|
-
if (
|
|
2326
|
-
|
|
2316
|
+
vi = Mt;
|
|
2317
|
+
let pt;
|
|
2318
|
+
if (Hn)
|
|
2319
|
+
pt = { type: "FeatureCollection", features: [] };
|
|
2327
2320
|
else {
|
|
2328
|
-
const
|
|
2329
|
-
if (!
|
|
2330
|
-
throw new Error(await
|
|
2331
|
-
|
|
2321
|
+
const me = await fetch(Mt, { signal: ve.signal, ...J });
|
|
2322
|
+
if (!me.ok)
|
|
2323
|
+
throw new Error(await me.text());
|
|
2324
|
+
pt = await me.json();
|
|
2332
2325
|
}
|
|
2333
|
-
|
|
2326
|
+
He("response", { url: Mt, featureCollection: pt }), ie ? (N && t(13, F = void 0), t(14, W = pt.features[0]), Tt = [W]) : (t(13, F = pt.features.filter(Z)), Q && F.unshift({
|
|
2334
2327
|
type: "Feature",
|
|
2335
2328
|
properties: {},
|
|
2336
|
-
id: "reverse_" +
|
|
2337
|
-
text:
|
|
2338
|
-
place_name:
|
|
2329
|
+
id: "reverse_" + Q.decimalLongitude + "_" + Q.decimalLatitude,
|
|
2330
|
+
text: Q.decimalLatitude + ", " + Q.decimalLongitude,
|
|
2331
|
+
place_name: Q.decimalLatitude + ", " + Q.decimalLongitude,
|
|
2339
2332
|
place_type: ["reverse"],
|
|
2340
|
-
center: [
|
|
2333
|
+
center: [Q.decimalLongitude, Q.decimalLatitude],
|
|
2341
2334
|
bbox: [
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2335
|
+
Q.decimalLongitude,
|
|
2336
|
+
Q.decimalLatitude,
|
|
2337
|
+
Q.decimalLongitude,
|
|
2338
|
+
Q.decimalLatitude
|
|
2346
2339
|
],
|
|
2347
2340
|
geometry: {
|
|
2348
2341
|
type: "Point",
|
|
2349
|
-
coordinates: [
|
|
2342
|
+
coordinates: [Q.decimalLongitude, Q.decimalLatitude]
|
|
2350
2343
|
}
|
|
2351
|
-
}),
|
|
2352
|
-
} catch (
|
|
2353
|
-
if (
|
|
2344
|
+
}), Tt = F, ((Ze = F[Y]) == null ? void 0 : Ze.id) !== (r == null ? void 0 : r.id) && t(15, Y = -1), Q && Ne.focus());
|
|
2345
|
+
} catch (Q) {
|
|
2346
|
+
if (Q && typeof Q == "object" && "name" in Q && Q.name === "AbortError")
|
|
2354
2347
|
return;
|
|
2355
|
-
throw
|
|
2348
|
+
throw Q;
|
|
2356
2349
|
} finally {
|
|
2357
|
-
|
|
2350
|
+
ve === et && t(20, et = void 0);
|
|
2358
2351
|
}
|
|
2359
2352
|
}
|
|
2360
|
-
function
|
|
2361
|
-
var
|
|
2362
|
-
if (!(
|
|
2353
|
+
function Cn() {
|
|
2354
|
+
var ve;
|
|
2355
|
+
if (!(le != null && le.length) || !H)
|
|
2363
2356
|
return;
|
|
2364
|
-
const L = [180, 90, -180, -90], ie = !
|
|
2357
|
+
const L = [180, 90, -180, -90], ie = !le.some((we) => !we.matching_text);
|
|
2365
2358
|
let se;
|
|
2366
|
-
for (const
|
|
2367
|
-
const Pe =
|
|
2368
|
-
if (se = se === void 0 ? Pe : Pe === void 0 ? se : Math.max(se, Pe), ie || !
|
|
2369
|
-
for (const
|
|
2370
|
-
L[
|
|
2359
|
+
for (const we of le) {
|
|
2360
|
+
const Pe = dt(we);
|
|
2361
|
+
if (se = se === void 0 ? Pe : Pe === void 0 ? se : Math.max(se, Pe), ie || !we.matching_text)
|
|
2362
|
+
for (const Ze of [0, 1, 2, 3])
|
|
2363
|
+
L[Ze] = Math[Ze < 2 ? "min" : "max"](L[Ze], ((ve = we.bbox) == null ? void 0 : ve[Ze]) ?? we.center[Ze % 2]);
|
|
2371
2364
|
}
|
|
2372
|
-
c &&
|
|
2365
|
+
c && le.length > 0 && (W && L[0] === L[2] && L[1] === L[3] ? c.flyTo(W.center, dt(W)) : c.fitBounds(zt(L), 50, se));
|
|
2373
2366
|
}
|
|
2374
|
-
function
|
|
2375
|
-
!W || !c || (!W.bbox || W.bbox[0] === W.bbox[2] && W.bbox[1] === W.bbox[3] ? c.flyTo(W.center,
|
|
2367
|
+
function Qt() {
|
|
2368
|
+
!W || !c || (!W.bbox || W.bbox[0] === W.bbox[2] && W.bbox[1] === W.bbox[3] ? c.flyTo(W.center, dt(W)) : c.fitBounds(zt(W.bbox), 50, dt(W)));
|
|
2376
2369
|
}
|
|
2377
|
-
function
|
|
2370
|
+
function dt(L) {
|
|
2378
2371
|
var se;
|
|
2379
2372
|
if (!L.bbox || L.bbox[0] !== L.bbox[2] && L.bbox[1] !== L.bbox[3])
|
|
2380
2373
|
return;
|
|
2381
2374
|
const ie = L.id.replace(/\..*/, "");
|
|
2382
2375
|
return (Array.isArray((se = L.properties) == null ? void 0 : se.categories) ? L.properties.categories.reduce(
|
|
2383
|
-
(
|
|
2384
|
-
const Pe =
|
|
2385
|
-
return
|
|
2376
|
+
(ve, we) => {
|
|
2377
|
+
const Pe = ge[ie + "." + we];
|
|
2378
|
+
return ve === void 0 ? Pe : Pe === void 0 ? ve : Math.max(ve, Pe);
|
|
2386
2379
|
},
|
|
2387
2380
|
void 0
|
|
2388
|
-
) : void 0) ??
|
|
2381
|
+
) : void 0) ?? ge[ie];
|
|
2389
2382
|
}
|
|
2390
|
-
function
|
|
2391
|
-
t(0, w = P === "always"), t(13,
|
|
2383
|
+
function kn(L) {
|
|
2384
|
+
t(0, w = P === "always"), t(13, F = void 0), t(14, W = void 0), t(15, Y = -1), bi(L[1].toFixed(6) + ", " + jr(L[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2392
2385
|
}
|
|
2393
|
-
function
|
|
2394
|
-
if (!
|
|
2386
|
+
function On(L) {
|
|
2387
|
+
if (!F)
|
|
2395
2388
|
return;
|
|
2396
2389
|
let ie = L.key === "ArrowDown" ? 1 : L.key === "ArrowUp" ? -1 : 0;
|
|
2397
|
-
ie && (Ne.focus(), t(17,
|
|
2390
|
+
ie && (Ne.focus(), t(17, We = !0), L.preventDefault(), W && Y === -1 && t(15, Y = F.findIndex((se) => se.id === (W == null ? void 0 : W.id))), Y === (W || K ? 0 : -1) && ie === -1 && t(15, Y = F.length), t(15, Y += ie), Y >= F.length && t(15, Y = -1), Y < 0 && (W || K) && t(15, Y = 0));
|
|
2398
2391
|
}
|
|
2399
|
-
function
|
|
2400
|
-
if (t(19, Re = void 0), t(14, W = void 0), t(17,
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
()
|
|
2412
|
-
t(66, Le = void 0), gt(Ce, { appendSpace: !0 }).catch((me) => t(19, Re = me));
|
|
2413
|
-
},
|
|
2414
|
-
J
|
|
2415
|
-
));
|
|
2392
|
+
function Ei(L, ie = !0, se = !1) {
|
|
2393
|
+
if (t(19, Re = void 0), t(14, W = void 0), t(17, We = !0), q || se) {
|
|
2394
|
+
if (lt && clearTimeout(lt), T.length < b)
|
|
2395
|
+
return;
|
|
2396
|
+
const ve = T;
|
|
2397
|
+
lt = window.setTimeout(
|
|
2398
|
+
() => {
|
|
2399
|
+
Yt(ve).catch((we) => t(19, Re = we));
|
|
2400
|
+
},
|
|
2401
|
+
ie ? _ : 0
|
|
2402
|
+
);
|
|
2403
|
+
} else
|
|
2404
|
+
t(13, F = void 0), t(19, Re = void 0);
|
|
2416
2405
|
}
|
|
2417
|
-
function
|
|
2418
|
-
W && (W == null ? void 0 : W.id) === (L == null ? void 0 : L.id) ?
|
|
2406
|
+
function Xt(L) {
|
|
2407
|
+
W && (W == null ? void 0 : W.id) === (L == null ? void 0 : L.id) ? Qt() : (t(14, W = L), t(1, T = L.place_name));
|
|
2419
2408
|
}
|
|
2420
|
-
function
|
|
2421
|
-
t(15,
|
|
2409
|
+
function Li(L) {
|
|
2410
|
+
t(15, Y = L);
|
|
2422
2411
|
}
|
|
2423
|
-
function
|
|
2424
|
-
(!
|
|
2412
|
+
function Rn() {
|
|
2413
|
+
(!K || W) && t(15, Y = -1), ee && Qt();
|
|
2425
2414
|
}
|
|
2426
|
-
const
|
|
2427
|
-
function
|
|
2428
|
-
|
|
2415
|
+
const Pn = () => Ne.focus();
|
|
2416
|
+
function In(L) {
|
|
2417
|
+
si[L ? "unshift" : "push"](() => {
|
|
2429
2418
|
Ne = L, t(18, Ne);
|
|
2430
2419
|
});
|
|
2431
2420
|
}
|
|
2432
|
-
function
|
|
2433
|
-
T = this.value, t(1, T), t(17,
|
|
2421
|
+
function An() {
|
|
2422
|
+
T = this.value, t(1, T), t(17, We), t(31, k), t(16, ut);
|
|
2434
2423
|
}
|
|
2435
|
-
const
|
|
2424
|
+
const Bn = () => t(17, We = !0), Gn = () => t(17, We = !1), Wn = () => t(17, We = !0), zn = () => t(14, W = void 0), Dn = () => {
|
|
2436
2425
|
t(1, T = ""), t(14, W = void 0), Ne.focus();
|
|
2437
|
-
},
|
|
2426
|
+
}, Fn = () => t(0, w = !w), Un = () => t(19, Re = void 0), qn = (L) => Li(L), jn = (L) => Xt(L), Vn = () => {
|
|
2438
2427
|
};
|
|
2439
2428
|
return i.$$set = (L) => {
|
|
2440
|
-
"class" in L && t(2, h = L.class), "apiKey" in L && t(29, v = L.apiKey), "bbox" in L && t(30, S = L.bbox), "clearButtonTitle" in L && t(3, M = L.clearButtonTitle), "clearOnBlur" in L && t(31, k = L.clearOnBlur), "clearListOnPick" in L && t(32, N = L.clearListOnPick), "keepListOpen" in L && t(4, C = L.keepListOpen), "collapsed" in L && t(5, O = L.collapsed), "country" in L && t(33, I = L.country), "debounceSearch" in L && t(34, _ = L.debounceSearch), "enableReverse" in L && t(6, P = L.enableReverse), "errorMessage" in L && t(7, z = L.errorMessage), "filter" in L && t(35,
|
|
2429
|
+
"class" in L && t(2, h = L.class), "apiKey" in L && t(29, v = L.apiKey), "bbox" in L && t(30, S = L.bbox), "clearButtonTitle" in L && t(3, M = L.clearButtonTitle), "clearOnBlur" in L && t(31, k = L.clearOnBlur), "clearListOnPick" in L && t(32, N = L.clearListOnPick), "keepListOpen" in L && t(4, C = L.keepListOpen), "collapsed" in L && t(5, O = L.collapsed), "country" in L && t(33, I = L.country), "debounceSearch" in L && t(34, _ = L.debounceSearch), "enableReverse" in L && t(6, P = L.enableReverse), "errorMessage" in L && t(7, z = L.errorMessage), "filter" in L && t(35, Z = L.filter), "flyTo" in L && t(36, H = L.flyTo), "fuzzyMatch" in L && t(37, G = L.fuzzyMatch), "language" in L && t(38, s = L.language), "limit" in L && t(39, l = L.limit), "reverseGeocodingLimit" in L && t(40, m = L.reverseGeocodingLimit), "mapController" in L && t(41, c = L.mapController), "minLength" in L && t(42, b = L.minLength), "noResultsMessage" in L && t(8, p = L.noResultsMessage), "placeholder" in L && t(9, d = L.placeholder), "proximity" in L && t(43, y = L.proximity), "reverseActive" in L && t(0, w = L.reverseActive), "reverseButtonTitle" in L && t(10, E = L.reverseButtonTitle), "searchValue" in L && t(1, T = L.searchValue), "pickedResultStyle" in L && t(44, A = L.pickedResultStyle), "showPlaceType" in L && t(11, B = L.showPlaceType), "showResultsWhileTyping" in L && t(45, q = L.showResultsWhileTyping), "selectFirst" in L && t(46, K = L.selectFirst), "flyToSelected" in L && t(47, ee = L.flyToSelected), "markerOnSelected" in L && t(48, U = L.markerOnSelected), "types" in L && t(49, V = L.types), "reverseGeocodingTypes" in L && t(50, Ge = L.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in L && t(51, Je = L.exhaustiveReverseGeocoding), "excludeTypes" in L && t(52, $e = L.excludeTypes), "reverseGeocodingExcludeTypes" in L && t(53, Oe = L.reverseGeocodingExcludeTypes), "zoom" in L && t(54, ge = L.zoom), "apiUrl" in L && t(55, ce = L.apiUrl), "fetchParameters" in L && t(56, J = L.fetchParameters), "iconsBaseUrl" in L && t(12, yi = L.iconsBaseUrl), "adjustUrlQuery" in L && t(57, Vt = L.adjustUrlQuery), "adjustUrl" in L && t(58, Ht = L.adjustUrl), "$$scope" in L && t(69, o = L.$$scope);
|
|
2441
2430
|
}, i.$$.update = () => {
|
|
2442
2431
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2443
2432
|
64 && t(0, w = P === "always"), i.$$.dirty[0] & /*picked*/
|
|
2444
2433
|
16384 | i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2445
|
-
8192 && A !== "marker-only" && W && !W.address && W.geometry.type === "Point" && W.place_type[0] !== "reverse" &&
|
|
2434
|
+
8192 && A !== "marker-only" && W && !W.address && W.geometry.type === "Point" && W.place_type[0] !== "reverse" && Yt(W.id, { byId: !0 }).catch((L) => t(19, Re = L)), i.$$.dirty[0] & /*picked*/
|
|
2446
2435
|
16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
|
|
2447
2436
|
1058 | i.$$.dirty[2] & /*prevIdToFly*/
|
|
2448
|
-
|
|
2437
|
+
8 && (c && W && W.id !== Zt && H && (Qt(), N && t(13, F = void 0), t(64, le = void 0), t(15, Y = -1)), t(65, Zt = W == null ? void 0 : W.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
|
|
2449
2438
|
196608 | i.$$.dirty[1] & /*clearOnBlur*/
|
|
2450
2439
|
1 && setTimeout(() => {
|
|
2451
|
-
t(16,
|
|
2440
|
+
t(16, ut = We), k && !ut && t(1, T = "");
|
|
2452
2441
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2453
2442
|
8194 | i.$$.dirty[1] & /*minLength*/
|
|
2454
|
-
2048 && T.length < b && (t(13,
|
|
2455
|
-
8192 | i.$$.dirty[1] & /*selectFirst*/
|
|
2456
|
-
65536 && X && U != null && U.length && (Rn() || t(15, Z = 0)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2443
|
+
2048 && T.length < b && (t(13, F = void 0), t(19, Re = void 0), t(64, le = F)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2457
2444
|
57344 | i.$$.dirty[1] & /*selectFirst*/
|
|
2458
|
-
|
|
2445
|
+
32768 && K && F != null && F.length && Y == -1 && !W && t(15, Y = 0), i.$$.dirty[0] & /*listFeatures*/
|
|
2459
2446
|
8192 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2460
|
-
|
|
2447
|
+
4 && le !== F && t(64, le = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2461
2448
|
73729 | i.$$.dirty[1] & /*mapController*/
|
|
2462
2449
|
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2463
|
-
|
|
2450
|
+
4 && c && c.setEventHandler((L) => {
|
|
2464
2451
|
switch (L.type) {
|
|
2465
2452
|
case "mapClick":
|
|
2466
|
-
w &&
|
|
2453
|
+
w && kn(L.coordinates);
|
|
2467
2454
|
break;
|
|
2468
2455
|
case "markerClick":
|
|
2469
2456
|
{
|
|
2470
|
-
const ie =
|
|
2471
|
-
ie &&
|
|
2457
|
+
const ie = F == null ? void 0 : F.find((se) => se.id === L.id);
|
|
2458
|
+
ie && Xt(ie);
|
|
2472
2459
|
}
|
|
2473
2460
|
break;
|
|
2474
2461
|
case "markerMouseEnter":
|
|
2475
|
-
|
|
2462
|
+
le && t(15, Y = ut ? (F == null ? void 0 : F.findIndex((ie) => ie.id === L.id)) ?? -1 : -1);
|
|
2476
2463
|
break;
|
|
2477
2464
|
case "markerMouseLeave":
|
|
2478
|
-
|
|
2465
|
+
le && t(15, Y = -1);
|
|
2479
2466
|
break;
|
|
2480
2467
|
}
|
|
2481
2468
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2482
|
-
40960 && t(
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
8192 && t(
|
|
2486
|
-
|
|
2487
|
-
|
|
2469
|
+
40960 && t(66, r = F == null ? void 0 : F[Y]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
|
|
2470
|
+
66592 | i.$$.dirty[2] & /*selected*/
|
|
2471
|
+
16 && c && r && H && ee && c.flyTo(r.center, dt(r)), i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2472
|
+
8192 && t(68, n = A === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2473
|
+
132096 | i.$$.dirty[2] & /*showPolygonMarker*/
|
|
2474
|
+
64 && (U || c == null || c.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
|
|
2488
2475
|
16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
|
|
2489
|
-
|
|
2490
|
-
|
|
2476
|
+
132096 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
|
|
2477
|
+
84 && c && U && !le && (c.setFeatures(r ? [r] : void 0, W, n), c.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
|
|
2491
2478
|
16384 | i.$$.dirty[1] & /*mapController*/
|
|
2492
2479
|
1024 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
|
|
2493
|
-
|
|
2480
|
+
68 && c && c.setFeatures(le, W, n), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2494
2481
|
32768 | i.$$.dirty[1] & /*mapController*/
|
|
2495
2482
|
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2496
|
-
|
|
2497
|
-
80 && r && (window.clearTimeout(Le), t(66, Le = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2483
|
+
4 && le && c && c.setSelectedMarker(Y), i.$$.dirty[0] & /*searchValue*/
|
|
2498
2484
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2499
2485
|
1024 && c) {
|
|
2500
|
-
const L =
|
|
2486
|
+
const L = Kt(T);
|
|
2501
2487
|
c.setReverseMarker(L ? [L.decimalLongitude, L.decimalLatitude] : void 0);
|
|
2502
2488
|
}
|
|
2503
2489
|
i.$$.dirty[2] & /*selected*/
|
|
2504
|
-
|
|
2505
|
-
16384 &&
|
|
2506
|
-
73744 && t(
|
|
2507
|
-
|
|
2508
|
-
8192 &&
|
|
2509
|
-
|
|
2510
|
-
1 &&
|
|
2511
|
-
2 &&
|
|
2490
|
+
16 && He("select", { feature: r }), i.$$.dirty[0] & /*picked*/
|
|
2491
|
+
16384 && He("pick", { feature: W }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
|
|
2492
|
+
73744 && t(67, u = !!(F != null && F.length) && (ut || C)), i.$$.dirty[2] & /*optionsVisible*/
|
|
2493
|
+
32 && He("optionsvisibilitychange", { optionsVisible: u }), i.$$.dirty[0] & /*listFeatures*/
|
|
2494
|
+
8192 && He("featureslisted", { features: F }), i.$$.dirty[2] & /*markedFeatures*/
|
|
2495
|
+
4 && He("featuresmarked", { features: le }), i.$$.dirty[0] & /*reverseActive*/
|
|
2496
|
+
1 && He("reversetoggle", { reverse: w }), i.$$.dirty[0] & /*searchValue*/
|
|
2497
|
+
2 && He("querychange", { query: T }), i.$$.dirty[0] & /*reverseActive*/
|
|
2512
2498
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2513
2499
|
1024 && c && c.indicateReverse(w);
|
|
2514
2500
|
}, [
|
|
@@ -2524,22 +2510,22 @@ function hs(i, e, t) {
|
|
|
2524
2510
|
d,
|
|
2525
2511
|
E,
|
|
2526
2512
|
B,
|
|
2527
|
-
|
|
2528
|
-
|
|
2513
|
+
yi,
|
|
2514
|
+
F,
|
|
2529
2515
|
W,
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2516
|
+
Y,
|
|
2517
|
+
ut,
|
|
2518
|
+
We,
|
|
2533
2519
|
Ne,
|
|
2534
2520
|
Re,
|
|
2535
|
-
|
|
2521
|
+
et,
|
|
2522
|
+
Nn,
|
|
2523
|
+
wi,
|
|
2536
2524
|
On,
|
|
2525
|
+
Ei,
|
|
2526
|
+
Xt,
|
|
2537
2527
|
Li,
|
|
2538
|
-
|
|
2539
|
-
Si,
|
|
2540
|
-
$t,
|
|
2541
|
-
_i,
|
|
2542
|
-
Bn,
|
|
2528
|
+
Rn,
|
|
2543
2529
|
g,
|
|
2544
2530
|
v,
|
|
2545
2531
|
S,
|
|
@@ -2547,7 +2533,7 @@ function hs(i, e, t) {
|
|
|
2547
2533
|
N,
|
|
2548
2534
|
I,
|
|
2549
2535
|
_,
|
|
2550
|
-
|
|
2536
|
+
Z,
|
|
2551
2537
|
H,
|
|
2552
2538
|
G,
|
|
2553
2539
|
s,
|
|
@@ -2558,56 +2544,54 @@ function hs(i, e, t) {
|
|
|
2558
2544
|
y,
|
|
2559
2545
|
A,
|
|
2560
2546
|
q,
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2547
|
+
K,
|
|
2548
|
+
ee,
|
|
2549
|
+
U,
|
|
2564
2550
|
V,
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2551
|
+
Ge,
|
|
2552
|
+
Je,
|
|
2553
|
+
$e,
|
|
2554
|
+
Oe,
|
|
2569
2555
|
ge,
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2556
|
+
ce,
|
|
2557
|
+
J,
|
|
2558
|
+
Vt,
|
|
2559
|
+
Ht,
|
|
2560
|
+
_n,
|
|
2561
|
+
xn,
|
|
2562
|
+
bi,
|
|
2563
|
+
Tn,
|
|
2575
2564
|
Mn,
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
Cn,
|
|
2579
|
-
kn,
|
|
2580
|
-
ae,
|
|
2581
|
-
Le,
|
|
2582
|
-
Qt,
|
|
2565
|
+
le,
|
|
2566
|
+
Zt,
|
|
2583
2567
|
r,
|
|
2584
2568
|
u,
|
|
2585
2569
|
n,
|
|
2586
2570
|
o,
|
|
2587
2571
|
a,
|
|
2572
|
+
Pn,
|
|
2573
|
+
In,
|
|
2574
|
+
An,
|
|
2575
|
+
Bn,
|
|
2588
2576
|
Gn,
|
|
2589
2577
|
Wn,
|
|
2590
2578
|
zn,
|
|
2591
2579
|
Dn,
|
|
2592
|
-
Un,
|
|
2593
2580
|
Fn,
|
|
2581
|
+
Un,
|
|
2594
2582
|
qn,
|
|
2595
2583
|
jn,
|
|
2596
|
-
Vn
|
|
2597
|
-
Hn,
|
|
2598
|
-
Zn,
|
|
2599
|
-
Kn,
|
|
2600
|
-
Yn
|
|
2584
|
+
Vn
|
|
2601
2585
|
];
|
|
2602
2586
|
}
|
|
2603
|
-
let
|
|
2587
|
+
let as = class extends ot {
|
|
2604
2588
|
constructor(e) {
|
|
2605
|
-
super(),
|
|
2589
|
+
super(), st(
|
|
2606
2590
|
this,
|
|
2607
2591
|
e,
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2592
|
+
us,
|
|
2593
|
+
ls,
|
|
2594
|
+
rt,
|
|
2611
2595
|
{
|
|
2612
2596
|
ZOOM_DEFAULTS: 28,
|
|
2613
2597
|
class: 2,
|
|
@@ -2639,26 +2623,25 @@ let ds = class extends ut {
|
|
|
2639
2623
|
pickedResultStyle: 44,
|
|
2640
2624
|
showPlaceType: 11,
|
|
2641
2625
|
showResultsWhileTyping: 45,
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
fetchParameters: 57,
|
|
2626
|
+
selectFirst: 46,
|
|
2627
|
+
flyToSelected: 47,
|
|
2628
|
+
markerOnSelected: 48,
|
|
2629
|
+
types: 49,
|
|
2630
|
+
reverseGeocodingTypes: 50,
|
|
2631
|
+
exhaustiveReverseGeocoding: 51,
|
|
2632
|
+
excludeTypes: 52,
|
|
2633
|
+
reverseGeocodingExcludeTypes: 53,
|
|
2634
|
+
zoom: 54,
|
|
2635
|
+
apiUrl: 55,
|
|
2636
|
+
fetchParameters: 56,
|
|
2654
2637
|
iconsBaseUrl: 12,
|
|
2655
|
-
adjustUrlQuery:
|
|
2656
|
-
adjustUrl:
|
|
2657
|
-
focus:
|
|
2658
|
-
blur:
|
|
2659
|
-
setQuery:
|
|
2660
|
-
clearList:
|
|
2661
|
-
clearMap:
|
|
2638
|
+
adjustUrlQuery: 57,
|
|
2639
|
+
adjustUrl: 58,
|
|
2640
|
+
focus: 59,
|
|
2641
|
+
blur: 60,
|
|
2642
|
+
setQuery: 61,
|
|
2643
|
+
clearList: 62,
|
|
2644
|
+
clearMap: 63
|
|
2662
2645
|
},
|
|
2663
2646
|
null,
|
|
2664
2647
|
[-1, -1, -1, -1]
|
|
@@ -2668,26 +2651,26 @@ let ds = class extends ut {
|
|
|
2668
2651
|
return this.$$.ctx[28];
|
|
2669
2652
|
}
|
|
2670
2653
|
get focus() {
|
|
2671
|
-
return this.$$.ctx[
|
|
2654
|
+
return this.$$.ctx[59];
|
|
2672
2655
|
}
|
|
2673
2656
|
get blur() {
|
|
2674
|
-
return this.$$.ctx[
|
|
2657
|
+
return this.$$.ctx[60];
|
|
2675
2658
|
}
|
|
2676
2659
|
get setQuery() {
|
|
2677
|
-
return this.$$.ctx[
|
|
2660
|
+
return this.$$.ctx[61];
|
|
2678
2661
|
}
|
|
2679
2662
|
get clearList() {
|
|
2680
|
-
return this.$$.ctx[
|
|
2663
|
+
return this.$$.ctx[62];
|
|
2681
2664
|
}
|
|
2682
2665
|
get clearMap() {
|
|
2683
|
-
return this.$$.ctx[
|
|
2666
|
+
return this.$$.ctx[63];
|
|
2684
2667
|
}
|
|
2685
2668
|
};
|
|
2686
|
-
function
|
|
2669
|
+
function Dt(i, e, t = {}) {
|
|
2687
2670
|
const n = { type: "Feature" };
|
|
2688
2671
|
return (t.id === 0 || t.id) && (n.id = t.id), t.bbox && (n.bbox = t.bbox), n.properties = e || {}, n.geometry = i, n;
|
|
2689
2672
|
}
|
|
2690
|
-
function
|
|
2673
|
+
function mi(i, e, t = {}) {
|
|
2691
2674
|
for (const r of i) {
|
|
2692
2675
|
if (r.length < 4)
|
|
2693
2676
|
throw new Error(
|
|
@@ -2699,22 +2682,22 @@ function yi(i, e, t = {}) {
|
|
|
2699
2682
|
if (r[r.length - 1][u] !== r[0][u])
|
|
2700
2683
|
throw new Error("First and last Position are not equivalent.");
|
|
2701
2684
|
}
|
|
2702
|
-
return
|
|
2685
|
+
return Dt({
|
|
2703
2686
|
type: "Polygon",
|
|
2704
2687
|
coordinates: i
|
|
2705
2688
|
}, e, t);
|
|
2706
2689
|
}
|
|
2707
|
-
function
|
|
2690
|
+
function ai(i, e = {}) {
|
|
2708
2691
|
const t = { type: "FeatureCollection" };
|
|
2709
2692
|
return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = i, t;
|
|
2710
2693
|
}
|
|
2711
|
-
function
|
|
2712
|
-
return
|
|
2694
|
+
function yn(i, e, t = {}) {
|
|
2695
|
+
return Dt({
|
|
2713
2696
|
type: "MultiPolygon",
|
|
2714
2697
|
coordinates: i
|
|
2715
2698
|
}, e, t);
|
|
2716
2699
|
}
|
|
2717
|
-
function
|
|
2700
|
+
function bn(i, e, t) {
|
|
2718
2701
|
if (i !== null)
|
|
2719
2702
|
for (var n, r, u, a, o, g, h, v = 0, S = 0, M, k = i.type, N = k === "FeatureCollection", C = k === "Feature", O = N ? i.features.length : 1, I = 0; I < O; I++) {
|
|
2720
2703
|
h = N ? i.features[I].geometry : C ? i.geometry : i, M = h ? h.type === "GeometryCollection" : !1, o = M ? h.geometries.length : 1;
|
|
@@ -2722,8 +2705,8 @@ function En(i, e, t) {
|
|
|
2722
2705
|
var P = 0, z = 0;
|
|
2723
2706
|
if (a = M ? h.geometries[_] : h, a !== null) {
|
|
2724
2707
|
g = a.coordinates;
|
|
2725
|
-
var
|
|
2726
|
-
switch (v = 0,
|
|
2708
|
+
var Z = a.type;
|
|
2709
|
+
switch (v = 0, Z) {
|
|
2727
2710
|
case null:
|
|
2728
2711
|
break;
|
|
2729
2712
|
case "Point":
|
|
@@ -2748,9 +2731,9 @@ function En(i, e, t) {
|
|
|
2748
2731
|
z
|
|
2749
2732
|
) === !1)
|
|
2750
2733
|
return !1;
|
|
2751
|
-
S++,
|
|
2734
|
+
S++, Z === "MultiPoint" && P++;
|
|
2752
2735
|
}
|
|
2753
|
-
|
|
2736
|
+
Z === "LineString" && P++;
|
|
2754
2737
|
break;
|
|
2755
2738
|
case "Polygon":
|
|
2756
2739
|
case "MultiLineString":
|
|
@@ -2766,9 +2749,9 @@ function En(i, e, t) {
|
|
|
2766
2749
|
return !1;
|
|
2767
2750
|
S++;
|
|
2768
2751
|
}
|
|
2769
|
-
|
|
2752
|
+
Z === "MultiLineString" && P++, Z === "Polygon" && z++;
|
|
2770
2753
|
}
|
|
2771
|
-
|
|
2754
|
+
Z === "Polygon" && P++;
|
|
2772
2755
|
break;
|
|
2773
2756
|
case "MultiPolygon":
|
|
2774
2757
|
for (n = 0; n < g.length; n++) {
|
|
@@ -2791,7 +2774,7 @@ function En(i, e, t) {
|
|
|
2791
2774
|
break;
|
|
2792
2775
|
case "GeometryCollection":
|
|
2793
2776
|
for (n = 0; n < a.geometries.length; n++)
|
|
2794
|
-
if (
|
|
2777
|
+
if (bn(a.geometries[n], e) === !1)
|
|
2795
2778
|
return !1;
|
|
2796
2779
|
break;
|
|
2797
2780
|
default:
|
|
@@ -2801,7 +2784,7 @@ function En(i, e, t) {
|
|
|
2801
2784
|
}
|
|
2802
2785
|
}
|
|
2803
2786
|
}
|
|
2804
|
-
function
|
|
2787
|
+
function pi(i, e) {
|
|
2805
2788
|
var t, n, r, u, a, o, g, h, v, S, M = 0, k = i.type === "FeatureCollection", N = i.type === "Feature", C = k ? i.features.length : 1;
|
|
2806
2789
|
for (t = 0; t < C; t++) {
|
|
2807
2790
|
for (o = k ? i.features[t].geometry : N ? i.geometry : i, h = k ? i.features[t].properties : N ? i.properties : {}, v = k ? i.features[t].bbox : N ? i.bbox : void 0, S = k ? i.features[t].id : N ? i.id : void 0, g = o ? o.type === "GeometryCollection" : !1, a = g ? o.geometries.length : 1, r = 0; r < a; r++) {
|
|
@@ -2852,8 +2835,8 @@ function bi(i, e) {
|
|
|
2852
2835
|
M++;
|
|
2853
2836
|
}
|
|
2854
2837
|
}
|
|
2855
|
-
function
|
|
2856
|
-
|
|
2838
|
+
function fs(i, e) {
|
|
2839
|
+
pi(i, function(t, n, r, u, a) {
|
|
2857
2840
|
var o = t === null ? null : t.type;
|
|
2858
2841
|
switch (o) {
|
|
2859
2842
|
case null:
|
|
@@ -2861,7 +2844,7 @@ function gs(i, e) {
|
|
|
2861
2844
|
case "LineString":
|
|
2862
2845
|
case "Polygon":
|
|
2863
2846
|
return e(
|
|
2864
|
-
|
|
2847
|
+
Dt(t, r, { bbox: u, id: a }),
|
|
2865
2848
|
n,
|
|
2866
2849
|
0
|
|
2867
2850
|
) === !1 ? !1 : void 0;
|
|
@@ -2883,21 +2866,21 @@ function gs(i, e) {
|
|
|
2883
2866
|
type: g,
|
|
2884
2867
|
coordinates: v
|
|
2885
2868
|
};
|
|
2886
|
-
if (e(
|
|
2869
|
+
if (e(Dt(S, r), n, h) === !1)
|
|
2887
2870
|
return !1;
|
|
2888
2871
|
}
|
|
2889
2872
|
});
|
|
2890
2873
|
}
|
|
2891
|
-
function
|
|
2874
|
+
function cs(i, e = {}) {
|
|
2892
2875
|
if (i.bbox != null && e.recompute !== !0)
|
|
2893
2876
|
return i.bbox;
|
|
2894
2877
|
const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
2895
|
-
return
|
|
2878
|
+
return bn(i, (n) => {
|
|
2896
2879
|
t[0] > n[0] && (t[0] = n[0]), t[1] > n[1] && (t[1] = n[1]), t[2] < n[0] && (t[2] = n[0]), t[3] < n[1] && (t[3] = n[1]);
|
|
2897
2880
|
}), t;
|
|
2898
2881
|
}
|
|
2899
|
-
var
|
|
2900
|
-
function
|
|
2882
|
+
var Yi = cs, hs = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, ni = Math.ceil, Te = Math.floor, ye = "[BigNumber Error] ", Qi = ye + "Number primitive has more than 15 significant digits: ", Ce = 1e14, D = 14, Xi = 9007199254740991, ri = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ke = 1e7, Ee = 1e9;
|
|
2883
|
+
function vn(i) {
|
|
2901
2884
|
var e, t, n, r = _.prototype = { constructor: _, toString: null, valueOf: null }, u = new _(1), a = 20, o = 4, g = -7, h = 21, v = -1e7, S = 1e7, M = !1, k = 1, N = 0, C = {
|
|
2902
2885
|
prefix: "",
|
|
2903
2886
|
groupSize: 3,
|
|
@@ -2925,7 +2908,7 @@ function Ln(i) {
|
|
|
2925
2908
|
}
|
|
2926
2909
|
w = String(s);
|
|
2927
2910
|
} else {
|
|
2928
|
-
if (!
|
|
2911
|
+
if (!hs.test(w = String(s))) return n(E, w, d);
|
|
2929
2912
|
E.s = w.charCodeAt(0) == 45 ? (w = w.slice(1), -1) : 1;
|
|
2930
2913
|
}
|
|
2931
2914
|
(b = w.indexOf(".")) > -1 && (w = w.replace(".", "")), (p = w.search(/e/i)) > 0 ? (b < 0 && (b = p), b += +w.slice(p + 1), w = w.substring(0, p)) : b < 0 && (b = w.length);
|
|
@@ -2935,7 +2918,7 @@ function Ln(i) {
|
|
|
2935
2918
|
if (w = String(s), d = typeof s == "number") {
|
|
2936
2919
|
if (s * 0 != 0) return n(E, w, d, l);
|
|
2937
2920
|
if (E.s = 1 / s < 0 ? (w = w.slice(1), -1) : 1, _.DEBUG && w.replace(/^0\.0*|\./, "").length > 15)
|
|
2938
|
-
throw Error(
|
|
2921
|
+
throw Error(Qi + s);
|
|
2939
2922
|
} else
|
|
2940
2923
|
E.s = w.charCodeAt(0) === 45 ? (w = w.slice(1), -1) : 1;
|
|
2941
2924
|
for (f = O.slice(0, l), b = p = 0, y = w.length; p < y; p++)
|
|
@@ -2956,8 +2939,8 @@ function Ln(i) {
|
|
|
2956
2939
|
for (p = 0; w.charCodeAt(p) === 48; p++) ;
|
|
2957
2940
|
for (y = w.length; w.charCodeAt(--y) === 48; ) ;
|
|
2958
2941
|
if (w = w.slice(p, ++y)) {
|
|
2959
|
-
if (y -= p, d && _.DEBUG && y > 15 && (s >
|
|
2960
|
-
throw Error(
|
|
2942
|
+
if (y -= p, d && _.DEBUG && y > 15 && (s > Xi || s !== Te(s)))
|
|
2943
|
+
throw Error(Qi + E.s * s);
|
|
2961
2944
|
if ((b = b - p - 1) > S)
|
|
2962
2945
|
E.c = E.e = null;
|
|
2963
2946
|
else if (b < v)
|
|
@@ -2975,38 +2958,38 @@ function Ln(i) {
|
|
|
2975
2958
|
} else
|
|
2976
2959
|
E.c = [E.e = 0];
|
|
2977
2960
|
}
|
|
2978
|
-
_.clone =
|
|
2961
|
+
_.clone = vn, _.ROUND_UP = 0, _.ROUND_DOWN = 1, _.ROUND_CEIL = 2, _.ROUND_FLOOR = 3, _.ROUND_HALF_UP = 4, _.ROUND_HALF_DOWN = 5, _.ROUND_HALF_EVEN = 6, _.ROUND_HALF_CEIL = 7, _.ROUND_HALF_FLOOR = 8, _.EUCLID = 9, _.config = _.set = function(s) {
|
|
2979
2962
|
var l, f;
|
|
2980
2963
|
if (s != null)
|
|
2981
2964
|
if (typeof s == "object") {
|
|
2982
|
-
if (s.hasOwnProperty(l = "DECIMAL_PLACES") && (f = s[l], ne(f, 0,
|
|
2965
|
+
if (s.hasOwnProperty(l = "DECIMAL_PLACES") && (f = s[l], ne(f, 0, Ee, l), a = f), s.hasOwnProperty(l = "ROUNDING_MODE") && (f = s[l], ne(f, 0, 8, l), o = f), s.hasOwnProperty(l = "EXPONENTIAL_AT") && (f = s[l], f && f.pop ? (ne(f[0], -1e9, 0, l), ne(f[1], 0, Ee, l), g = f[0], h = f[1]) : (ne(f, -1e9, Ee, l), g = -(h = f < 0 ? -f : f))), s.hasOwnProperty(l = "RANGE"))
|
|
2983
2966
|
if (f = s[l], f && f.pop)
|
|
2984
|
-
ne(f[0], -1e9, -1, l), ne(f[1], 1,
|
|
2985
|
-
else if (ne(f, -1e9,
|
|
2967
|
+
ne(f[0], -1e9, -1, l), ne(f[1], 1, Ee, l), v = f[0], S = f[1];
|
|
2968
|
+
else if (ne(f, -1e9, Ee, l), f)
|
|
2986
2969
|
v = -(S = f < 0 ? -f : f);
|
|
2987
2970
|
else
|
|
2988
|
-
throw Error(
|
|
2971
|
+
throw Error(ye + l + " cannot be zero: " + f);
|
|
2989
2972
|
if (s.hasOwnProperty(l = "CRYPTO"))
|
|
2990
2973
|
if (f = s[l], f === !!f)
|
|
2991
2974
|
if (f)
|
|
2992
2975
|
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
2993
2976
|
M = f;
|
|
2994
2977
|
else
|
|
2995
|
-
throw M = !f, Error(
|
|
2978
|
+
throw M = !f, Error(ye + "crypto unavailable");
|
|
2996
2979
|
else
|
|
2997
2980
|
M = f;
|
|
2998
2981
|
else
|
|
2999
|
-
throw Error(
|
|
3000
|
-
if (s.hasOwnProperty(l = "MODULO_MODE") && (f = s[l], ne(f, 0, 9, l), k = f), s.hasOwnProperty(l = "POW_PRECISION") && (f = s[l], ne(f, 0,
|
|
2982
|
+
throw Error(ye + l + " not true or false: " + f);
|
|
2983
|
+
if (s.hasOwnProperty(l = "MODULO_MODE") && (f = s[l], ne(f, 0, 9, l), k = f), s.hasOwnProperty(l = "POW_PRECISION") && (f = s[l], ne(f, 0, Ee, l), N = f), s.hasOwnProperty(l = "FORMAT"))
|
|
3001
2984
|
if (f = s[l], typeof f == "object") C = f;
|
|
3002
|
-
else throw Error(
|
|
2985
|
+
else throw Error(ye + l + " not an object: " + f);
|
|
3003
2986
|
if (s.hasOwnProperty(l = "ALPHABET"))
|
|
3004
2987
|
if (f = s[l], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f))
|
|
3005
2988
|
I = f.slice(0, 10) == "0123456789", O = f;
|
|
3006
2989
|
else
|
|
3007
|
-
throw Error(
|
|
2990
|
+
throw Error(ye + l + " invalid: " + f);
|
|
3008
2991
|
} else
|
|
3009
|
-
throw Error(
|
|
2992
|
+
throw Error(ye + "Object expected: " + s);
|
|
3010
2993
|
return {
|
|
3011
2994
|
DECIMAL_PLACES: a,
|
|
3012
2995
|
ROUNDING_MODE: o,
|
|
@@ -3023,20 +3006,20 @@ function Ln(i) {
|
|
|
3023
3006
|
if (!_.DEBUG) return !0;
|
|
3024
3007
|
var l, f, m = s.c, c = s.e, b = s.s;
|
|
3025
3008
|
e: if ({}.toString.call(m) == "[object Array]") {
|
|
3026
|
-
if ((b === 1 || b === -1) && c >= -1e9 && c <=
|
|
3009
|
+
if ((b === 1 || b === -1) && c >= -1e9 && c <= Ee && c === Te(c)) {
|
|
3027
3010
|
if (m[0] === 0) {
|
|
3028
3011
|
if (c === 0 && m.length === 1) return !0;
|
|
3029
3012
|
break e;
|
|
3030
3013
|
}
|
|
3031
3014
|
if (l = (c + 1) % D, l < 1 && (l += D), String(m[0]).length == l) {
|
|
3032
3015
|
for (l = 0; l < m.length; l++)
|
|
3033
|
-
if (f = m[l], f < 0 || f >=
|
|
3016
|
+
if (f = m[l], f < 0 || f >= Ce || f !== Te(f)) break e;
|
|
3034
3017
|
if (f !== 0) return !0;
|
|
3035
3018
|
}
|
|
3036
3019
|
}
|
|
3037
3020
|
} else if (m === null && c === null && (b === null || b === 1 || b === -1))
|
|
3038
3021
|
return !0;
|
|
3039
|
-
throw Error(
|
|
3022
|
+
throw Error(ye + "Invalid BigNumber: " + s);
|
|
3040
3023
|
}, _.maximum = _.max = function() {
|
|
3041
3024
|
return z(arguments, -1);
|
|
3042
3025
|
}, _.minimum = _.min = function() {
|
|
@@ -3049,7 +3032,7 @@ function Ln(i) {
|
|
|
3049
3032
|
};
|
|
3050
3033
|
return function(f) {
|
|
3051
3034
|
var m, c, b, p, d, y = 0, w = [], E = new _(u);
|
|
3052
|
-
if (f == null ? f = a : ne(f, 0,
|
|
3035
|
+
if (f == null ? f = a : ne(f, 0, Ee), p = ni(f / D), M)
|
|
3053
3036
|
if (crypto.getRandomValues) {
|
|
3054
3037
|
for (m = crypto.getRandomValues(new Uint32Array(p *= 2)); y < p; )
|
|
3055
3038
|
d = m[y] * 131072 + (m[y + 1] >>> 11), d >= 9e15 ? (c = crypto.getRandomValues(new Uint32Array(2)), m[y] = c[0], m[y + 1] = c[1]) : (w.push(d % 1e14), y += 2);
|
|
@@ -3059,11 +3042,11 @@ function Ln(i) {
|
|
|
3059
3042
|
d = (m[y] & 31) * 281474976710656 + m[y + 1] * 1099511627776 + m[y + 2] * 4294967296 + m[y + 3] * 16777216 + (m[y + 4] << 16) + (m[y + 5] << 8) + m[y + 6], d >= 9e15 ? crypto.randomBytes(7).copy(m, y) : (w.push(d % 1e14), y += 7);
|
|
3060
3043
|
y = p / 7;
|
|
3061
3044
|
} else
|
|
3062
|
-
throw M = !1, Error(
|
|
3045
|
+
throw M = !1, Error(ye + "crypto unavailable");
|
|
3063
3046
|
if (!M)
|
|
3064
3047
|
for (; y < p; )
|
|
3065
3048
|
d = l(), d < 9e15 && (w[y++] = d % 1e14);
|
|
3066
|
-
for (p = w[--y], f %= D, p && f && (d =
|
|
3049
|
+
for (p = w[--y], f %= D, p && f && (d = ri[D - f], w[y] = Te(p / d) * d); w[y] === 0; w.pop(), y--) ;
|
|
3067
3050
|
if (y < 0)
|
|
3068
3051
|
w = [b = 0];
|
|
3069
3052
|
else {
|
|
@@ -3087,31 +3070,31 @@ function Ln(i) {
|
|
|
3087
3070
|
return d.reverse();
|
|
3088
3071
|
}
|
|
3089
3072
|
return function(f, m, c, b, p) {
|
|
3090
|
-
var d, y, w, E, T, A, B, q,
|
|
3091
|
-
for (
|
|
3092
|
-
|
|
3073
|
+
var d, y, w, E, T, A, B, q, K = f.indexOf("."), ee = a, U = o;
|
|
3074
|
+
for (K >= 0 && (E = N, N = 0, f = f.replace(".", ""), q = new _(m), A = q.pow(f.length - K), N = E, q.c = l(
|
|
3075
|
+
De(xe(A.c), A.e, "0"),
|
|
3093
3076
|
10,
|
|
3094
3077
|
c,
|
|
3095
3078
|
s
|
|
3096
3079
|
), q.e = q.c.length), B = l(f, m, c, p ? (d = O, s) : (d = s, O)), w = E = B.length; B[--E] == 0; B.pop()) ;
|
|
3097
3080
|
if (!B[0]) return d.charAt(0);
|
|
3098
|
-
if (
|
|
3099
|
-
f = T ?
|
|
3081
|
+
if (K < 0 ? --w : (A.c = B, A.e = w, A.s = b, A = e(A, q, ee, U, c), B = A.c, T = A.r, w = A.e), y = w + ee + 1, K = B[y], E = c / 2, T = T || y < 0 || B[y + 1] != null, T = U < 4 ? (K != null || T) && (U == 0 || U == (A.s < 0 ? 3 : 2)) : K > E || K == E && (U == 4 || T || U == 6 && B[y - 1] & 1 || U == (A.s < 0 ? 8 : 7)), y < 1 || !B[0])
|
|
3082
|
+
f = T ? De(d.charAt(1), -ee, d.charAt(0)) : d.charAt(0);
|
|
3100
3083
|
else {
|
|
3101
3084
|
if (B.length = y, T)
|
|
3102
3085
|
for (--c; ++B[--y] > c; )
|
|
3103
3086
|
B[y] = 0, y || (++w, B = [1].concat(B));
|
|
3104
3087
|
for (E = B.length; !B[--E]; ) ;
|
|
3105
|
-
for (
|
|
3106
|
-
f =
|
|
3088
|
+
for (K = 0, f = ""; K <= E; f += d.charAt(B[K++])) ;
|
|
3089
|
+
f = De(f, w, d.charAt(0));
|
|
3107
3090
|
}
|
|
3108
3091
|
return f;
|
|
3109
3092
|
};
|
|
3110
3093
|
}(), e = /* @__PURE__ */ function() {
|
|
3111
3094
|
function s(m, c, b) {
|
|
3112
|
-
var p, d, y, w, E = 0, T = m.length, A = c %
|
|
3095
|
+
var p, d, y, w, E = 0, T = m.length, A = c % Ke, B = c / Ke | 0;
|
|
3113
3096
|
for (m = m.slice(); T--; )
|
|
3114
|
-
y = m[T] %
|
|
3097
|
+
y = m[T] % Ke, w = m[T] / Ke | 0, p = B * y + w * A, d = A * y + p % Ke * Ke + E, E = (d / b | 0) + (p / Ke | 0) + B * w, m[T] = d % b;
|
|
3115
3098
|
return E && (m = [E].concat(m)), m;
|
|
3116
3099
|
}
|
|
3117
3100
|
function l(m, c, b, p) {
|
|
@@ -3132,53 +3115,53 @@ function Ln(i) {
|
|
|
3132
3115
|
for (; !m[0] && m.length > 1; m.splice(0, 1)) ;
|
|
3133
3116
|
}
|
|
3134
3117
|
return function(m, c, b, p, d) {
|
|
3135
|
-
var y, w, E, T, A, B, q,
|
|
3136
|
-
if (!
|
|
3118
|
+
var y, w, E, T, A, B, q, K, ee, U, V, fe, Ge, Je, $e, be, Oe, ge = m.s == c.s ? 1 : -1, ce = m.c, J = c.c;
|
|
3119
|
+
if (!ce || !ce[0] || !J || !J[0])
|
|
3137
3120
|
return new _(
|
|
3138
3121
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
3139
|
-
!m.s || !c.s || (
|
|
3122
|
+
!m.s || !c.s || (ce ? J && ce[0] == J[0] : !J) ? NaN : (
|
|
3140
3123
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
3141
|
-
|
|
3124
|
+
ce && ce[0] == 0 || !J ? ge * 0 : ge / 0
|
|
3142
3125
|
)
|
|
3143
3126
|
);
|
|
3144
|
-
for (
|
|
3145
|
-
if (
|
|
3146
|
-
|
|
3127
|
+
for (K = new _(ge), ee = K.c = [], w = m.e - c.e, ge = b + w + 1, d || (d = Ce, w = Me(m.e / D) - Me(c.e / D), ge = ge / D | 0), E = 0; J[E] == (ce[E] || 0); E++) ;
|
|
3128
|
+
if (J[E] > (ce[E] || 0) && w--, ge < 0)
|
|
3129
|
+
ee.push(1), T = !0;
|
|
3147
3130
|
else {
|
|
3148
|
-
for (
|
|
3149
|
-
|
|
3131
|
+
for (Je = ce.length, be = J.length, E = 0, ge += 2, A = Te(d / (J[0] + 1)), A > 1 && (J = s(J, A, d), ce = s(ce, A, d), be = J.length, Je = ce.length), Ge = be, U = ce.slice(0, be), V = U.length; V < be; U[V++] = 0) ;
|
|
3132
|
+
Oe = J.slice(), Oe = [0].concat(Oe), $e = J[0], J[1] >= d / 2 && $e++;
|
|
3150
3133
|
do {
|
|
3151
|
-
if (A = 0, y = l(
|
|
3152
|
-
if (
|
|
3153
|
-
for (A >= d && (A = d - 1), B = s(
|
|
3154
|
-
A--, f(B, be < q ?
|
|
3134
|
+
if (A = 0, y = l(J, U, be, V), y < 0) {
|
|
3135
|
+
if (fe = U[0], be != V && (fe = fe * d + (U[1] || 0)), A = Te(fe / $e), A > 1)
|
|
3136
|
+
for (A >= d && (A = d - 1), B = s(J, A, d), q = B.length, V = U.length; l(B, U, q, V) == 1; )
|
|
3137
|
+
A--, f(B, be < q ? Oe : J, q, d), q = B.length, y = 1;
|
|
3155
3138
|
else
|
|
3156
|
-
A == 0 && (y = A = 1), B =
|
|
3157
|
-
if (q < V && (B = [0].concat(B)), f(
|
|
3158
|
-
for (; l(
|
|
3159
|
-
A++, f(
|
|
3160
|
-
} else y === 0 && (A++,
|
|
3161
|
-
|
|
3162
|
-
} while ((
|
|
3163
|
-
T =
|
|
3139
|
+
A == 0 && (y = A = 1), B = J.slice(), q = B.length;
|
|
3140
|
+
if (q < V && (B = [0].concat(B)), f(U, B, V, d), V = U.length, y == -1)
|
|
3141
|
+
for (; l(J, U, be, V) < 1; )
|
|
3142
|
+
A++, f(U, be < V ? Oe : J, V, d), V = U.length;
|
|
3143
|
+
} else y === 0 && (A++, U = [0]);
|
|
3144
|
+
ee[E++] = A, U[0] ? U[V++] = ce[Ge] || 0 : (U = [ce[Ge]], V = 1);
|
|
3145
|
+
} while ((Ge++ < Je || U[0] != null) && ge--);
|
|
3146
|
+
T = U[0] != null, ee[0] || ee.splice(0, 1);
|
|
3164
3147
|
}
|
|
3165
|
-
if (d ==
|
|
3166
|
-
for (E = 1, ge =
|
|
3167
|
-
H(
|
|
3148
|
+
if (d == Ce) {
|
|
3149
|
+
for (E = 1, ge = ee[0]; ge >= 10; ge /= 10, E++) ;
|
|
3150
|
+
H(K, b + (K.e = E + w * D - 1) + 1, p, T);
|
|
3168
3151
|
} else
|
|
3169
|
-
|
|
3170
|
-
return
|
|
3152
|
+
K.e = w, K.r = +T;
|
|
3153
|
+
return K;
|
|
3171
3154
|
};
|
|
3172
3155
|
}();
|
|
3173
3156
|
function P(s, l, f, m) {
|
|
3174
3157
|
var c, b, p, d, y;
|
|
3175
3158
|
if (f == null ? f = o : ne(f, 0, 8), !s.c) return s.toString();
|
|
3176
3159
|
if (c = s.c[0], p = s.e, l == null)
|
|
3177
|
-
y = xe(s.c), y = m == 1 || m == 2 && (p <= g || p >= h) ?
|
|
3160
|
+
y = xe(s.c), y = m == 1 || m == 2 && (p <= g || p >= h) ? Rt(y, p) : De(y, p, "0");
|
|
3178
3161
|
else if (s = H(new _(s), l, f), b = s.e, y = xe(s.c), d = y.length, m == 1 || m == 2 && (l <= b || b <= g)) {
|
|
3179
3162
|
for (; d < l; y += "0", d++) ;
|
|
3180
|
-
y =
|
|
3181
|
-
} else if (l -= p, y =
|
|
3163
|
+
y = Rt(y, b);
|
|
3164
|
+
} else if (l -= p, y = De(y, b, "0"), b + 1 > d) {
|
|
3182
3165
|
if (--l > 0) for (y += "."; l--; y += "0") ;
|
|
3183
3166
|
} else if (l += b - d, l > 0)
|
|
3184
3167
|
for (b + 1 == d && (y += "."); l--; y += "0") ;
|
|
@@ -3186,10 +3169,10 @@ function Ln(i) {
|
|
|
3186
3169
|
}
|
|
3187
3170
|
function z(s, l) {
|
|
3188
3171
|
for (var f, m, c = 1, b = new _(s[0]); c < s.length; c++)
|
|
3189
|
-
m = new _(s[c]), (!m.s || (f =
|
|
3172
|
+
m = new _(s[c]), (!m.s || (f = tt(b, m)) === l || f === 0 && b.s === l) && (b = m);
|
|
3190
3173
|
return b;
|
|
3191
3174
|
}
|
|
3192
|
-
function
|
|
3175
|
+
function Z(s, l, f) {
|
|
3193
3176
|
for (var m = 1, c = l.length; !l[--c]; l.pop()) ;
|
|
3194
3177
|
for (c = l[0]; c >= 10; c /= 10, m++) ;
|
|
3195
3178
|
return (f = m + f * D - 1) > S ? s.c = s.e = null : f < v ? s.c = [s.e = 0] : (s.e = f, s.c = l), s;
|
|
@@ -3206,20 +3189,20 @@ function Ln(i) {
|
|
|
3206
3189
|
}), y && (w = y, E = E.replace(l, "$1").replace(f, "0.$1")), p != E))
|
|
3207
3190
|
return new _(E, w);
|
|
3208
3191
|
if (_.DEBUG)
|
|
3209
|
-
throw Error(
|
|
3192
|
+
throw Error(ye + "Not a" + (y ? " base " + y : "") + " number: " + p);
|
|
3210
3193
|
b.s = null;
|
|
3211
3194
|
}
|
|
3212
3195
|
b.c = b.e = null;
|
|
3213
3196
|
};
|
|
3214
3197
|
}();
|
|
3215
3198
|
function H(s, l, f, m) {
|
|
3216
|
-
var c, b, p, d, y, w, E, T = s.c, A =
|
|
3199
|
+
var c, b, p, d, y, w, E, T = s.c, A = ri;
|
|
3217
3200
|
if (T) {
|
|
3218
3201
|
e: {
|
|
3219
3202
|
for (c = 1, d = T[0]; d >= 10; d /= 10, c++) ;
|
|
3220
3203
|
if (b = l - c, b < 0)
|
|
3221
3204
|
b += D, p = l, y = T[w = 0], E = Te(y / A[c - p - 1] % 10);
|
|
3222
|
-
else if (w =
|
|
3205
|
+
else if (w = ni((b + 1) / D), w >= T.length)
|
|
3223
3206
|
if (m) {
|
|
3224
3207
|
for (; T.length <= w; T.push(0)) ;
|
|
3225
3208
|
y = E = 0, c = 1, b %= D, p = b - D + 1;
|
|
@@ -3240,10 +3223,10 @@ function Ln(i) {
|
|
|
3240
3223
|
if (w == 0) {
|
|
3241
3224
|
for (b = 1, p = T[0]; p >= 10; p /= 10, b++) ;
|
|
3242
3225
|
for (p = T[0] += d, d = 1; p >= 10; p /= 10, d++) ;
|
|
3243
|
-
b != d && (s.e++, T[0] ==
|
|
3226
|
+
b != d && (s.e++, T[0] == Ce && (T[0] = 1));
|
|
3244
3227
|
break;
|
|
3245
3228
|
} else {
|
|
3246
|
-
if (T[w] += d, T[w] !=
|
|
3229
|
+
if (T[w] += d, T[w] != Ce) break;
|
|
3247
3230
|
T[w--] = 0, d = 1;
|
|
3248
3231
|
}
|
|
3249
3232
|
for (b = T.length; T[--b] === 0; T.pop()) ;
|
|
@@ -3254,17 +3237,17 @@ function Ln(i) {
|
|
|
3254
3237
|
}
|
|
3255
3238
|
function G(s) {
|
|
3256
3239
|
var l, f = s.e;
|
|
3257
|
-
return f === null ? s.toString() : (l = xe(s.c), l = f <= g || f >= h ?
|
|
3240
|
+
return f === null ? s.toString() : (l = xe(s.c), l = f <= g || f >= h ? Rt(l, f) : De(l, f, "0"), s.s < 0 ? "-" + l : l);
|
|
3258
3241
|
}
|
|
3259
3242
|
return r.absoluteValue = r.abs = function() {
|
|
3260
3243
|
var s = new _(this);
|
|
3261
3244
|
return s.s < 0 && (s.s = 1), s;
|
|
3262
3245
|
}, r.comparedTo = function(s, l) {
|
|
3263
|
-
return
|
|
3246
|
+
return tt(this, new _(s, l));
|
|
3264
3247
|
}, r.decimalPlaces = r.dp = function(s, l) {
|
|
3265
3248
|
var f, m, c, b = this;
|
|
3266
3249
|
if (s != null)
|
|
3267
|
-
return ne(s, 0,
|
|
3250
|
+
return ne(s, 0, Ee), l == null ? l = o : ne(l, 0, 8), H(new _(b), s + b.e + 1, l);
|
|
3268
3251
|
if (!(f = b.c)) return null;
|
|
3269
3252
|
if (m = ((c = f.length - 1) - Me(this.e / D)) * D, c = f[c]) for (; c % 10 == 0; c /= 10, m--) ;
|
|
3270
3253
|
return m < 0 && (m = 0), m;
|
|
@@ -3275,18 +3258,18 @@ function Ln(i) {
|
|
|
3275
3258
|
}, r.exponentiatedBy = r.pow = function(s, l) {
|
|
3276
3259
|
var f, m, c, b, p, d, y, w, E, T = this;
|
|
3277
3260
|
if (s = new _(s), s.c && !s.isInteger())
|
|
3278
|
-
throw Error(
|
|
3261
|
+
throw Error(ye + "Exponent not an integer: " + G(s));
|
|
3279
3262
|
if (l != null && (l = new _(l)), d = s.e > 14, !T.c || !T.c[0] || T.c[0] == 1 && !T.e && T.c.length == 1 || !s.c || !s.c[0])
|
|
3280
|
-
return E = new _(Math.pow(+G(T), d ? s.s * (2 -
|
|
3263
|
+
return E = new _(Math.pow(+G(T), d ? s.s * (2 - Ot(s)) : +G(s))), l ? E.mod(l) : E;
|
|
3281
3264
|
if (y = s.s < 0, l) {
|
|
3282
3265
|
if (l.c ? !l.c[0] : !l.s) return new _(NaN);
|
|
3283
3266
|
m = !y && T.isInteger() && l.isInteger(), m && (T = T.mod(l));
|
|
3284
3267
|
} else {
|
|
3285
3268
|
if (s.e > 9 && (T.e > 0 || T.e < -1 || (T.e == 0 ? T.c[0] > 1 || d && T.c[1] >= 24e7 : T.c[0] < 8e13 || d && T.c[0] <= 9999975e7)))
|
|
3286
|
-
return b = T.s < 0 &&
|
|
3287
|
-
N && (b =
|
|
3269
|
+
return b = T.s < 0 && Ot(s) ? -0 : 0, T.e > -1 && (b = 1 / b), new _(y ? 1 / b : b);
|
|
3270
|
+
N && (b = ni(N / D + 2));
|
|
3288
3271
|
}
|
|
3289
|
-
for (d ? (f = new _(0.5), y && (s.s = 1), w =
|
|
3272
|
+
for (d ? (f = new _(0.5), y && (s.s = 1), w = Ot(s)) : (c = Math.abs(+G(s)), w = c % 2), E = new _(u); ; ) {
|
|
3290
3273
|
if (w) {
|
|
3291
3274
|
if (E = E.times(T), !E.c) break;
|
|
3292
3275
|
b ? E.c.length > b && (E.c.length = b) : m && (E = E.mod(l));
|
|
@@ -3295,7 +3278,7 @@ function Ln(i) {
|
|
|
3295
3278
|
if (c = Te(c / 2), c === 0) break;
|
|
3296
3279
|
w = c % 2;
|
|
3297
3280
|
} else if (s = s.times(f), H(s, s.e + 1, 1), s.e > 14)
|
|
3298
|
-
w =
|
|
3281
|
+
w = Ot(s);
|
|
3299
3282
|
else {
|
|
3300
3283
|
if (c = +G(s), c === 0) break;
|
|
3301
3284
|
w = c % 2;
|
|
@@ -3307,19 +3290,19 @@ function Ln(i) {
|
|
|
3307
3290
|
var l = new _(this);
|
|
3308
3291
|
return s == null ? s = o : ne(s, 0, 8), H(l, l.e + 1, s);
|
|
3309
3292
|
}, r.isEqualTo = r.eq = function(s, l) {
|
|
3310
|
-
return
|
|
3293
|
+
return tt(this, new _(s, l)) === 0;
|
|
3311
3294
|
}, r.isFinite = function() {
|
|
3312
3295
|
return !!this.c;
|
|
3313
3296
|
}, r.isGreaterThan = r.gt = function(s, l) {
|
|
3314
|
-
return
|
|
3297
|
+
return tt(this, new _(s, l)) > 0;
|
|
3315
3298
|
}, r.isGreaterThanOrEqualTo = r.gte = function(s, l) {
|
|
3316
|
-
return (l =
|
|
3299
|
+
return (l = tt(this, new _(s, l))) === 1 || l === 0;
|
|
3317
3300
|
}, r.isInteger = function() {
|
|
3318
3301
|
return !!this.c && Me(this.e / D) > this.c.length - 2;
|
|
3319
3302
|
}, r.isLessThan = r.lt = function(s, l) {
|
|
3320
|
-
return
|
|
3303
|
+
return tt(this, new _(s, l)) < 0;
|
|
3321
3304
|
}, r.isLessThanOrEqualTo = r.lte = function(s, l) {
|
|
3322
|
-
return (l =
|
|
3305
|
+
return (l = tt(this, new _(s, l))) === -1 || l === 0;
|
|
3323
3306
|
}, r.isNaN = function() {
|
|
3324
3307
|
return !this.s;
|
|
3325
3308
|
}, r.isNegative = function() {
|
|
@@ -3352,29 +3335,29 @@ function Ln(i) {
|
|
|
3352
3335
|
break;
|
|
3353
3336
|
}
|
|
3354
3337
|
if (b && (c = E, E = T, T = c, s.s = -s.s), l = (m = T.length) - (f = E.length), l > 0) for (; l--; E[f++] = 0) ;
|
|
3355
|
-
for (l =
|
|
3338
|
+
for (l = Ce - 1; m > d; ) {
|
|
3356
3339
|
if (E[--m] < T[m]) {
|
|
3357
3340
|
for (f = m; f && !E[--f]; E[f] = l) ;
|
|
3358
|
-
--E[f], E[m] +=
|
|
3341
|
+
--E[f], E[m] += Ce;
|
|
3359
3342
|
}
|
|
3360
3343
|
E[m] -= T[m];
|
|
3361
3344
|
}
|
|
3362
3345
|
for (; E[0] == 0; E.splice(0, 1), --w) ;
|
|
3363
|
-
return E[0] ?
|
|
3346
|
+
return E[0] ? Z(s, E, w) : (s.s = o == 3 ? -1 : 1, s.c = [s.e = 0], s);
|
|
3364
3347
|
}, r.modulo = r.mod = function(s, l) {
|
|
3365
3348
|
var f, m, c = this;
|
|
3366
3349
|
return s = new _(s, l), !c.c || !s.s || s.c && !s.c[0] ? new _(NaN) : !s.c || c.c && !c.c[0] ? new _(c) : (k == 9 ? (m = s.s, s.s = 1, f = e(c, s, 0, 3), s.s = m, f.s *= m) : f = e(c, s, 0, k), s = c.minus(f.times(s)), !s.c[0] && k == 1 && (s.s = c.s), s);
|
|
3367
3350
|
}, r.multipliedBy = r.times = function(s, l) {
|
|
3368
|
-
var f, m, c, b, p, d, y, w, E, T, A, B, q,
|
|
3369
|
-
if (!V || !
|
|
3370
|
-
return !
|
|
3371
|
-
for (m = Me(
|
|
3372
|
-
for (
|
|
3373
|
-
for (f = 0, A =
|
|
3374
|
-
w = V[--p] %
|
|
3351
|
+
var f, m, c, b, p, d, y, w, E, T, A, B, q, K, ee, U = this, V = U.c, fe = (s = new _(s, l)).c;
|
|
3352
|
+
if (!V || !fe || !V[0] || !fe[0])
|
|
3353
|
+
return !U.s || !s.s || V && !V[0] && !fe || fe && !fe[0] && !V ? s.c = s.e = s.s = null : (s.s *= U.s, !V || !fe ? s.c = s.e = null : (s.c = [0], s.e = 0)), s;
|
|
3354
|
+
for (m = Me(U.e / D) + Me(s.e / D), s.s *= U.s, y = V.length, T = fe.length, y < T && (q = V, V = fe, fe = q, c = y, y = T, T = c), c = y + T, q = []; c--; q.push(0)) ;
|
|
3355
|
+
for (K = Ce, ee = Ke, c = T; --c >= 0; ) {
|
|
3356
|
+
for (f = 0, A = fe[c] % ee, B = fe[c] / ee | 0, p = y, b = c + p; b > c; )
|
|
3357
|
+
w = V[--p] % ee, E = V[p] / ee | 0, d = B * w + E * A, w = A * w + d % ee * ee + q[b] + f, f = (w / K | 0) + (d / ee | 0) + B * E, q[b--] = w % K;
|
|
3375
3358
|
q[b] = f;
|
|
3376
3359
|
}
|
|
3377
|
-
return f ? ++m : q.splice(0, 1),
|
|
3360
|
+
return f ? ++m : q.splice(0, 1), Z(s, q, m);
|
|
3378
3361
|
}, r.negated = function() {
|
|
3379
3362
|
var s = new _(this);
|
|
3380
3363
|
return s.s = -s.s || null, s;
|
|
@@ -3393,12 +3376,12 @@ function Ln(i) {
|
|
|
3393
3376
|
f.reverse();
|
|
3394
3377
|
}
|
|
3395
3378
|
for (c = d.length, l = y.length, c - l < 0 && (f = y, y = d, d = f, l = c), c = 0; l; )
|
|
3396
|
-
c = (d[--l] = d[l] + y[l] + c) /
|
|
3397
|
-
return c && (d = [c].concat(d), ++p),
|
|
3379
|
+
c = (d[--l] = d[l] + y[l] + c) / Ce | 0, d[l] = Ce === d[l] ? 0 : d[l] % Ce;
|
|
3380
|
+
return c && (d = [c].concat(d), ++p), Z(s, d, p);
|
|
3398
3381
|
}, r.precision = r.sd = function(s, l) {
|
|
3399
3382
|
var f, m, c, b = this;
|
|
3400
3383
|
if (s != null && s !== !!s)
|
|
3401
|
-
return ne(s, 1,
|
|
3384
|
+
return ne(s, 1, Ee), l == null ? l = o : ne(l, 0, 8), H(new _(b), s, l);
|
|
3402
3385
|
if (!(f = b.c)) return null;
|
|
3403
3386
|
if (c = f.length - 1, m = c * D + 1, c = f[c]) {
|
|
3404
3387
|
for (; c % 10 == 0; c /= 10, m--) ;
|
|
@@ -3406,7 +3389,7 @@ function Ln(i) {
|
|
|
3406
3389
|
}
|
|
3407
3390
|
return s && b.e + 1 > m && (m = b.e + 1), m;
|
|
3408
3391
|
}, r.shiftedBy = function(s) {
|
|
3409
|
-
return ne(s, -9007199254740991,
|
|
3392
|
+
return ne(s, -9007199254740991, Xi), this.times("1e" + s);
|
|
3410
3393
|
}, r.squareRoot = r.sqrt = function() {
|
|
3411
3394
|
var s, l, f, m, c, b = this, p = b.c, d = b.s, y = b.e, w = a + 4, E = new _("0.5");
|
|
3412
3395
|
if (d !== 1 || !p || !p[0])
|
|
@@ -3427,15 +3410,15 @@ function Ln(i) {
|
|
|
3427
3410
|
}
|
|
3428
3411
|
return H(f, f.e + a + 1, o, s);
|
|
3429
3412
|
}, r.toExponential = function(s, l) {
|
|
3430
|
-
return s != null && (ne(s, 0,
|
|
3413
|
+
return s != null && (ne(s, 0, Ee), s++), P(this, s, l, 1);
|
|
3431
3414
|
}, r.toFixed = function(s, l) {
|
|
3432
|
-
return s != null && (ne(s, 0,
|
|
3415
|
+
return s != null && (ne(s, 0, Ee), s = s + this.e + 1), P(this, s, l);
|
|
3433
3416
|
}, r.toFormat = function(s, l, f) {
|
|
3434
3417
|
var m, c = this;
|
|
3435
3418
|
if (f == null)
|
|
3436
3419
|
s != null && l && typeof l == "object" ? (f = l, l = null) : s && typeof s == "object" ? (f = s, s = l = null) : f = C;
|
|
3437
3420
|
else if (typeof f != "object")
|
|
3438
|
-
throw Error(
|
|
3421
|
+
throw Error(ye + "Argument not an object: " + f);
|
|
3439
3422
|
if (m = c.toFixed(s, l), c.c) {
|
|
3440
3423
|
var b, p = m.split("."), d = +f.groupSize, y = +f.secondaryGroupSize, w = f.groupSeparator || "", E = p[0], T = p[1], A = c.s < 0, B = A ? E.slice(1) : E, q = B.length;
|
|
3441
3424
|
if (y && (b = d, d = y, y = b, q -= b), d > 0 && q > 0) {
|
|
@@ -3451,9 +3434,9 @@ function Ln(i) {
|
|
|
3451
3434
|
}, r.toFraction = function(s) {
|
|
3452
3435
|
var l, f, m, c, b, p, d, y, w, E, T, A, B = this, q = B.c;
|
|
3453
3436
|
if (s != null && (d = new _(s), !d.isInteger() && (d.c || d.s !== 1) || d.lt(u)))
|
|
3454
|
-
throw Error(
|
|
3437
|
+
throw Error(ye + "Argument " + (d.isInteger() ? "out of range: " : "not an integer: ") + G(d));
|
|
3455
3438
|
if (!q) return new _(B);
|
|
3456
|
-
for (l = new _(u), w = f = new _(u), m = y = new _(u), A = xe(q), b = l.e = A.length - B.e - 1, l.c[0] =
|
|
3439
|
+
for (l = new _(u), w = f = new _(u), m = y = new _(u), A = xe(q), b = l.e = A.length - B.e - 1, l.c[0] = ri[(p = b % D) < 0 ? D + p : p], s = !s || d.comparedTo(l) > 0 ? b > 0 ? l : w : d, p = S, S = 1 / 0, d = new _(A), y.c[0] = 0; E = e(d, l, 0, 1), c = f.plus(E.times(m)), c.comparedTo(s) != 1; )
|
|
3457
3440
|
f = m, m = c, w = y.plus(E.times(c = w)), y = c, l = d.minus(E.times(c = l)), d = c;
|
|
3458
3441
|
return c = e(s.minus(f), m, 0, 1), y = y.plus(c.times(w)), f = f.plus(c.times(m)), y.s = w.s = B.s, b = b * 2, T = e(w, m, b, o).minus(B).abs().comparedTo(
|
|
3459
3442
|
e(y, f, b, o).minus(B).abs()
|
|
@@ -3461,10 +3444,10 @@ function Ln(i) {
|
|
|
3461
3444
|
}, r.toNumber = function() {
|
|
3462
3445
|
return +G(this);
|
|
3463
3446
|
}, r.toPrecision = function(s, l) {
|
|
3464
|
-
return s != null && ne(s, 1,
|
|
3447
|
+
return s != null && ne(s, 1, Ee), P(this, s, l, 2);
|
|
3465
3448
|
}, r.toString = function(s) {
|
|
3466
3449
|
var l, f = this, m = f.s, c = f.e;
|
|
3467
|
-
return c === null ? m ? (l = "Infinity", m < 0 && (l = "-" + l)) : l = "NaN" : (s == null ? l = c <= g || c >= h ?
|
|
3450
|
+
return c === null ? m ? (l = "Infinity", m < 0 && (l = "-" + l)) : l = "NaN" : (s == null ? l = c <= g || c >= h ? Rt(xe(f.c), c) : De(xe(f.c), c, "0") : s === 10 && I ? (f = H(new _(f), a + c + 1, o), l = De(xe(f.c), f.e, "0")) : (ne(s, 2, O.length, "Base"), l = t(De(xe(f.c), c, "0"), 10, s, m, !0)), m < 0 && f.c[0] && (l = "-" + l)), l;
|
|
3468
3451
|
}, r.valueOf = r.toJSON = function() {
|
|
3469
3452
|
return G(this);
|
|
3470
3453
|
}, r._isBigNumber = !0, r[Symbol.toStringTag] = "BigNumber", r[Symbol.for("nodejs.util.inspect.custom")] = r.valueOf, i != null && _.set(i), _;
|
|
@@ -3481,7 +3464,7 @@ function xe(i) {
|
|
|
3481
3464
|
for (r = u.length; u.charCodeAt(--r) === 48; ) ;
|
|
3482
3465
|
return u.slice(0, r + 1 || 1);
|
|
3483
3466
|
}
|
|
3484
|
-
function
|
|
3467
|
+
function tt(i, e) {
|
|
3485
3468
|
var t, n, r = i.c, u = e.c, a = i.s, o = e.s, g = i.e, h = e.e;
|
|
3486
3469
|
if (!a || !o) return null;
|
|
3487
3470
|
if (t = r && !r[0], n = u && !u[0], t || n) return t ? n ? 0 : -o : a;
|
|
@@ -3493,16 +3476,16 @@ function nt(i, e) {
|
|
|
3493
3476
|
}
|
|
3494
3477
|
function ne(i, e, t, n) {
|
|
3495
3478
|
if (i < e || i > t || i !== Te(i))
|
|
3496
|
-
throw Error(
|
|
3479
|
+
throw Error(ye + (n || "Argument") + (typeof i == "number" ? i < e || i > t ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(i));
|
|
3497
3480
|
}
|
|
3498
|
-
function
|
|
3481
|
+
function Ot(i) {
|
|
3499
3482
|
var e = i.c.length - 1;
|
|
3500
3483
|
return Me(i.e / D) == e && i.c[e] % 2 != 0;
|
|
3501
3484
|
}
|
|
3502
|
-
function
|
|
3485
|
+
function Rt(i, e) {
|
|
3503
3486
|
return (i.length > 1 ? i.charAt(0) + "." + i.slice(1) : i) + (e < 0 ? "e" : "e+") + e;
|
|
3504
3487
|
}
|
|
3505
|
-
function
|
|
3488
|
+
function De(i, e, t) {
|
|
3506
3489
|
var n, r;
|
|
3507
3490
|
if (e < 0) {
|
|
3508
3491
|
for (r = t + "."; ++e; r += t) ;
|
|
@@ -3513,18 +3496,18 @@ function ze(i, e, t) {
|
|
|
3513
3496
|
} else e < n && (i = i.slice(0, e) + "." + i.slice(e));
|
|
3514
3497
|
return i;
|
|
3515
3498
|
}
|
|
3516
|
-
var Be =
|
|
3499
|
+
var Be = vn(), ds = class {
|
|
3517
3500
|
constructor(i) {
|
|
3518
3501
|
R(this, "key");
|
|
3519
3502
|
R(this, "left", null);
|
|
3520
3503
|
R(this, "right", null);
|
|
3521
3504
|
this.key = i;
|
|
3522
3505
|
}
|
|
3523
|
-
},
|
|
3506
|
+
}, vt = class extends ds {
|
|
3524
3507
|
constructor(i) {
|
|
3525
3508
|
super(i);
|
|
3526
3509
|
}
|
|
3527
|
-
},
|
|
3510
|
+
}, gs = class {
|
|
3528
3511
|
constructor() {
|
|
3529
3512
|
R(this, "size", 0);
|
|
3530
3513
|
R(this, "modificationCount", 0);
|
|
@@ -3622,13 +3605,13 @@ var Be = Ln(), ys = class {
|
|
|
3622
3605
|
has: (i) => this.has(i)
|
|
3623
3606
|
};
|
|
3624
3607
|
}
|
|
3625
|
-
},
|
|
3608
|
+
}, on, ln, Ft = class Et extends gs {
|
|
3626
3609
|
constructor(t, n) {
|
|
3627
3610
|
super();
|
|
3628
3611
|
R(this, "root", null);
|
|
3629
3612
|
R(this, "compare");
|
|
3630
3613
|
R(this, "validKey");
|
|
3631
|
-
R(this,
|
|
3614
|
+
R(this, on, "[object Set]");
|
|
3632
3615
|
this.compare = t ?? this.defaultCompare(), this.validKey = n ?? ((r) => r != null && r != null);
|
|
3633
3616
|
}
|
|
3634
3617
|
delete(t) {
|
|
@@ -3646,11 +3629,11 @@ var Be = Ln(), ys = class {
|
|
|
3646
3629
|
}
|
|
3647
3630
|
add(t) {
|
|
3648
3631
|
const n = this.splay(t);
|
|
3649
|
-
return n != 0 && this.addNewRoot(new
|
|
3632
|
+
return n != 0 && this.addNewRoot(new vt(t), n), this;
|
|
3650
3633
|
}
|
|
3651
3634
|
addAndReturn(t) {
|
|
3652
3635
|
const n = this.splay(t);
|
|
3653
|
-
return n != 0 && this.addNewRoot(new
|
|
3636
|
+
return n != 0 && this.addNewRoot(new vt(t), n), this.root.key;
|
|
3654
3637
|
}
|
|
3655
3638
|
addAll(t) {
|
|
3656
3639
|
for (const n of t)
|
|
@@ -3698,7 +3681,7 @@ var Be = Ln(), ys = class {
|
|
|
3698
3681
|
return r.key;
|
|
3699
3682
|
}
|
|
3700
3683
|
retainAll(t) {
|
|
3701
|
-
const n = new
|
|
3684
|
+
const n = new Et(this.compare, this.validKey), r = this.modificationCount;
|
|
3702
3685
|
for (const u of t) {
|
|
3703
3686
|
if (r != this.modificationCount)
|
|
3704
3687
|
throw "Concurrent modification during iteration.";
|
|
@@ -3710,13 +3693,13 @@ var Be = Ln(), ys = class {
|
|
|
3710
3693
|
return !this.validKey(t) || this.splay(t) != 0 ? null : this.root.key;
|
|
3711
3694
|
}
|
|
3712
3695
|
intersection(t) {
|
|
3713
|
-
const n = new
|
|
3696
|
+
const n = new Et(this.compare, this.validKey);
|
|
3714
3697
|
for (const r of this)
|
|
3715
3698
|
t.has(r) && n.add(r);
|
|
3716
3699
|
return n;
|
|
3717
3700
|
}
|
|
3718
3701
|
difference(t) {
|
|
3719
|
-
const n = new
|
|
3702
|
+
const n = new Et(this.compare, this.validKey);
|
|
3720
3703
|
for (const r of this)
|
|
3721
3704
|
t.has(r) || n.add(r);
|
|
3722
3705
|
return n;
|
|
@@ -3726,7 +3709,7 @@ var Be = Ln(), ys = class {
|
|
|
3726
3709
|
return n.addAll(t), n;
|
|
3727
3710
|
}
|
|
3728
3711
|
clone() {
|
|
3729
|
-
const t = new
|
|
3712
|
+
const t = new Et(this.compare, this.validKey);
|
|
3730
3713
|
return t.size = this.size, t.root = this.copyNode(this.root), t;
|
|
3731
3714
|
}
|
|
3732
3715
|
copyNode(t) {
|
|
@@ -3735,23 +3718,23 @@ var Be = Ln(), ys = class {
|
|
|
3735
3718
|
let o, g;
|
|
3736
3719
|
do {
|
|
3737
3720
|
if (o = u.left, g = u.right, o != null) {
|
|
3738
|
-
const h = new
|
|
3721
|
+
const h = new vt(o.key);
|
|
3739
3722
|
a.left = h, n(o, h);
|
|
3740
3723
|
}
|
|
3741
3724
|
if (g != null) {
|
|
3742
|
-
const h = new
|
|
3725
|
+
const h = new vt(g.key);
|
|
3743
3726
|
a.right = h, u = g, a = h;
|
|
3744
3727
|
}
|
|
3745
3728
|
} while (g != null);
|
|
3746
3729
|
}
|
|
3747
|
-
const r = new
|
|
3730
|
+
const r = new vt(t.key);
|
|
3748
3731
|
return n(t, r), r;
|
|
3749
3732
|
}
|
|
3750
3733
|
toSet() {
|
|
3751
3734
|
return this.clone();
|
|
3752
3735
|
}
|
|
3753
3736
|
entries() {
|
|
3754
|
-
return new
|
|
3737
|
+
return new ps(this.wrap());
|
|
3755
3738
|
}
|
|
3756
3739
|
keys() {
|
|
3757
3740
|
return this[Symbol.iterator]();
|
|
@@ -3759,10 +3742,10 @@ var Be = Ln(), ys = class {
|
|
|
3759
3742
|
values() {
|
|
3760
3743
|
return this[Symbol.iterator]();
|
|
3761
3744
|
}
|
|
3762
|
-
[(
|
|
3763
|
-
return new
|
|
3745
|
+
[(ln = Symbol.iterator, on = Symbol.toStringTag, ln)]() {
|
|
3746
|
+
return new ms(this.wrap());
|
|
3764
3747
|
}
|
|
3765
|
-
},
|
|
3748
|
+
}, wn = class {
|
|
3766
3749
|
constructor(i) {
|
|
3767
3750
|
R(this, "tree");
|
|
3768
3751
|
R(this, "path", new Array());
|
|
@@ -3811,65 +3794,65 @@ var Be = Ln(), ys = class {
|
|
|
3811
3794
|
i = this.path.pop();
|
|
3812
3795
|
return this.path.length > 0;
|
|
3813
3796
|
}
|
|
3814
|
-
},
|
|
3797
|
+
}, ms = class extends wn {
|
|
3815
3798
|
getValue(i) {
|
|
3816
3799
|
return i.key;
|
|
3817
3800
|
}
|
|
3818
|
-
},
|
|
3801
|
+
}, ps = class extends wn {
|
|
3819
3802
|
getValue(i) {
|
|
3820
3803
|
return [i.key, i.key];
|
|
3821
3804
|
}
|
|
3822
|
-
},
|
|
3823
|
-
const e = i ? (t, n) => n.minus(t).abs().isLessThanOrEqualTo(i) :
|
|
3805
|
+
}, En = (i) => () => i, fi = (i) => {
|
|
3806
|
+
const e = i ? (t, n) => n.minus(t).abs().isLessThanOrEqualTo(i) : En(!1);
|
|
3824
3807
|
return (t, n) => e(t, n) ? 0 : t.comparedTo(n);
|
|
3825
3808
|
};
|
|
3826
|
-
function
|
|
3809
|
+
function ys(i) {
|
|
3827
3810
|
const e = i ? (t, n, r, u, a) => t.exponentiatedBy(2).isLessThanOrEqualTo(
|
|
3828
3811
|
u.minus(n).exponentiatedBy(2).plus(a.minus(r).exponentiatedBy(2)).times(i)
|
|
3829
|
-
) :
|
|
3812
|
+
) : En(!1);
|
|
3830
3813
|
return (t, n, r) => {
|
|
3831
3814
|
const u = t.x, a = t.y, o = r.x, g = r.y, h = a.minus(g).times(n.x.minus(o)).minus(u.minus(o).times(n.y.minus(g)));
|
|
3832
3815
|
return e(h, u, a, o, g) ? 0 : h.comparedTo(0);
|
|
3833
3816
|
};
|
|
3834
3817
|
}
|
|
3835
|
-
var
|
|
3818
|
+
var bs = (i) => i, vs = (i) => {
|
|
3836
3819
|
if (i) {
|
|
3837
|
-
const e = new
|
|
3820
|
+
const e = new Ft(fi(i)), t = new Ft(fi(i)), n = (u, a) => a.addAndReturn(u), r = (u) => ({
|
|
3838
3821
|
x: n(u.x, e),
|
|
3839
3822
|
y: n(u.y, t)
|
|
3840
3823
|
});
|
|
3841
3824
|
return r({ x: new Be(0), y: new Be(0) }), r;
|
|
3842
3825
|
}
|
|
3843
|
-
return
|
|
3844
|
-
},
|
|
3826
|
+
return bs;
|
|
3827
|
+
}, ci = (i) => ({
|
|
3845
3828
|
set: (e) => {
|
|
3846
|
-
|
|
3829
|
+
je = ci(e);
|
|
3847
3830
|
},
|
|
3848
|
-
reset: () =>
|
|
3849
|
-
compare:
|
|
3850
|
-
snap:
|
|
3851
|
-
orient:
|
|
3852
|
-
}),
|
|
3831
|
+
reset: () => ci(i),
|
|
3832
|
+
compare: fi(i),
|
|
3833
|
+
snap: vs(i),
|
|
3834
|
+
orient: ys(i)
|
|
3835
|
+
}), je = ci(), wt = (i, e) => i.ll.x.isLessThanOrEqualTo(e.x) && e.x.isLessThanOrEqualTo(i.ur.x) && i.ll.y.isLessThanOrEqualTo(e.y) && e.y.isLessThanOrEqualTo(i.ur.y), hi = (i, e) => {
|
|
3853
3836
|
if (e.ur.x.isLessThan(i.ll.x) || i.ur.x.isLessThan(e.ll.x) || e.ur.y.isLessThan(i.ll.y) || i.ur.y.isLessThan(e.ll.y))
|
|
3854
3837
|
return null;
|
|
3855
3838
|
const t = i.ll.x.isLessThan(e.ll.x) ? e.ll.x : i.ll.x, n = i.ur.x.isLessThan(e.ur.x) ? i.ur.x : e.ur.x, r = i.ll.y.isLessThan(e.ll.y) ? e.ll.y : i.ll.y, u = i.ur.y.isLessThan(e.ur.y) ? i.ur.y : e.ur.y;
|
|
3856
3839
|
return { ll: { x: t, y: r }, ur: { x: n, y: u } };
|
|
3857
|
-
},
|
|
3840
|
+
}, Bt = (i, e) => i.x.times(e.y).minus(i.y.times(e.x)), Ln = (i, e) => i.x.times(e.x).plus(i.y.times(e.y)), Ut = (i) => Ln(i, i).sqrt(), ws = (i, e, t) => {
|
|
3858
3841
|
const n = { x: e.x.minus(i.x), y: e.y.minus(i.y) }, r = { x: t.x.minus(i.x), y: t.y.minus(i.y) };
|
|
3859
|
-
return
|
|
3860
|
-
},
|
|
3842
|
+
return Bt(r, n).div(Ut(r)).div(Ut(n));
|
|
3843
|
+
}, Es = (i, e, t) => {
|
|
3861
3844
|
const n = { x: e.x.minus(i.x), y: e.y.minus(i.y) }, r = { x: t.x.minus(i.x), y: t.y.minus(i.y) };
|
|
3862
|
-
return
|
|
3863
|
-
},
|
|
3864
|
-
if (e.x.isZero()) return
|
|
3865
|
-
if (n.x.isZero()) return
|
|
3866
|
-
if (e.y.isZero()) return
|
|
3867
|
-
if (n.y.isZero()) return
|
|
3868
|
-
const r =
|
|
3845
|
+
return Ln(r, n).div(Ut(r)).div(Ut(n));
|
|
3846
|
+
}, Ji = (i, e, t) => e.y.isZero() ? null : { x: i.x.plus(e.x.div(e.y).times(t.minus(i.y))), y: t }, $i = (i, e, t) => e.x.isZero() ? null : { x: t, y: i.y.plus(e.y.div(e.x).times(t.minus(i.x))) }, Ls = (i, e, t, n) => {
|
|
3847
|
+
if (e.x.isZero()) return $i(t, n, i.x);
|
|
3848
|
+
if (n.x.isZero()) return $i(i, e, t.x);
|
|
3849
|
+
if (e.y.isZero()) return Ji(t, n, i.y);
|
|
3850
|
+
if (n.y.isZero()) return Ji(i, e, t.y);
|
|
3851
|
+
const r = Bt(e, n);
|
|
3869
3852
|
if (r.isZero()) return null;
|
|
3870
|
-
const u = { x: t.x.minus(i.x), y: t.y.minus(i.y) }, a =
|
|
3853
|
+
const u = { x: t.x.minus(i.x), y: t.y.minus(i.y) }, a = Bt(u, e).div(r), o = Bt(u, n).div(r), g = i.x.plus(o.times(e.x)), h = t.x.plus(a.times(n.x)), v = i.y.plus(o.times(e.y)), S = t.y.plus(a.times(n.y)), M = g.plus(h).div(2), k = v.plus(S).div(2);
|
|
3871
3854
|
return { x: M, y: k };
|
|
3872
|
-
}, Ae = class
|
|
3855
|
+
}, Ae = class Sn {
|
|
3873
3856
|
// Warning: 'point' input will be modified and re-used (for performance)
|
|
3874
3857
|
constructor(e, t) {
|
|
3875
3858
|
R(this, "point");
|
|
@@ -3881,8 +3864,8 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
3881
3864
|
}
|
|
3882
3865
|
// for ordering sweep events in the sweep event queue
|
|
3883
3866
|
static compare(e, t) {
|
|
3884
|
-
const n =
|
|
3885
|
-
return n !== 0 ? n : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 :
|
|
3867
|
+
const n = Sn.comparePoints(e.point, t.point);
|
|
3868
|
+
return n !== 0 ? n : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 : jt.compare(e.segment, t.segment));
|
|
3886
3869
|
}
|
|
3887
3870
|
// for ordering points in sweep line order
|
|
3888
3871
|
static comparePoints(e, t) {
|
|
@@ -3933,8 +3916,8 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
3933
3916
|
const t = /* @__PURE__ */ new Map(), n = (r) => {
|
|
3934
3917
|
const u = r.otherSE;
|
|
3935
3918
|
t.set(r, {
|
|
3936
|
-
sine:
|
|
3937
|
-
cosine:
|
|
3919
|
+
sine: ws(this.point, e.point, u.point),
|
|
3920
|
+
cosine: Es(this.point, e.point, u.point)
|
|
3938
3921
|
});
|
|
3939
3922
|
};
|
|
3940
3923
|
return (r, u) => {
|
|
@@ -3943,7 +3926,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
3943
3926
|
return a.isGreaterThanOrEqualTo(0) && g.isGreaterThanOrEqualTo(0) ? o.isLessThan(h) ? 1 : o.isGreaterThan(h) ? -1 : 0 : a.isLessThan(0) && g.isLessThan(0) ? o.isLessThan(h) ? -1 : o.isGreaterThan(h) ? 1 : 0 : g.isLessThan(a) ? -1 : g.isGreaterThan(a) ? 1 : 0;
|
|
3944
3927
|
};
|
|
3945
3928
|
}
|
|
3946
|
-
},
|
|
3929
|
+
}, Ss = class di {
|
|
3947
3930
|
constructor(e) {
|
|
3948
3931
|
R(this, "events");
|
|
3949
3932
|
R(this, "poly");
|
|
@@ -3984,7 +3967,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
3984
3967
|
}
|
|
3985
3968
|
if (k !== null) {
|
|
3986
3969
|
const C = S.splice(k)[0], O = h.splice(C.index);
|
|
3987
|
-
O.unshift(O[0].otherSE), t.push(new
|
|
3970
|
+
O.unshift(O[0].otherSE), t.push(new di(O.reverse()));
|
|
3988
3971
|
continue;
|
|
3989
3972
|
}
|
|
3990
3973
|
S.push({
|
|
@@ -3995,7 +3978,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
3995
3978
|
g = M.sort(N)[0].otherSE;
|
|
3996
3979
|
break;
|
|
3997
3980
|
}
|
|
3998
|
-
t.push(new
|
|
3981
|
+
t.push(new di(h));
|
|
3999
3982
|
}
|
|
4000
3983
|
return t;
|
|
4001
3984
|
}
|
|
@@ -4004,11 +3987,11 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4004
3987
|
const t = [e];
|
|
4005
3988
|
for (let h = 1, v = this.events.length - 1; h < v; h++) {
|
|
4006
3989
|
const S = this.events[h].point, M = this.events[h + 1].point;
|
|
4007
|
-
|
|
3990
|
+
je.orient(S, e, M) !== 0 && (t.push(S), e = S);
|
|
4008
3991
|
}
|
|
4009
3992
|
if (t.length === 1) return null;
|
|
4010
3993
|
const n = t[0], r = t[1];
|
|
4011
|
-
|
|
3994
|
+
je.orient(n, e, r) === 0 && t.shift(), t.push(t[0]);
|
|
4012
3995
|
const u = this.isExteriorRing() ? 1 : -1, a = this.isExteriorRing() ? 0 : t.length - 1, o = this.isExteriorRing() ? t.length : -1, g = [];
|
|
4013
3996
|
for (let h = a; h != o; h += u)
|
|
4014
3997
|
g.push([t[h].x.toNumber(), t[h].y.toNumber()]);
|
|
@@ -4041,7 +4024,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4041
4024
|
t = n.prevInResult(), n = t ? t.prevInResult() : null;
|
|
4042
4025
|
}
|
|
4043
4026
|
}
|
|
4044
|
-
},
|
|
4027
|
+
}, en = class {
|
|
4045
4028
|
constructor(i) {
|
|
4046
4029
|
R(this, "exteriorRing");
|
|
4047
4030
|
R(this, "interiorRings");
|
|
@@ -4060,7 +4043,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4060
4043
|
}
|
|
4061
4044
|
return e;
|
|
4062
4045
|
}
|
|
4063
|
-
},
|
|
4046
|
+
}, _s = class {
|
|
4064
4047
|
constructor(i) {
|
|
4065
4048
|
R(this, "rings");
|
|
4066
4049
|
R(this, "polys");
|
|
@@ -4080,20 +4063,20 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4080
4063
|
for (let n = 0, r = i.length; n < r; n++) {
|
|
4081
4064
|
const u = i[n];
|
|
4082
4065
|
if (!u.poly)
|
|
4083
|
-
if (u.isExteriorRing()) e.push(new
|
|
4066
|
+
if (u.isExteriorRing()) e.push(new en(u));
|
|
4084
4067
|
else {
|
|
4085
4068
|
const a = u.enclosingRing();
|
|
4086
|
-
a != null && a.poly || e.push(new
|
|
4069
|
+
a != null && a.poly || e.push(new en(a)), (t = a == null ? void 0 : a.poly) == null || t.addInterior(u);
|
|
4087
4070
|
}
|
|
4088
4071
|
}
|
|
4089
4072
|
return e;
|
|
4090
4073
|
}
|
|
4091
|
-
},
|
|
4092
|
-
constructor(i, e =
|
|
4074
|
+
}, xs = class {
|
|
4075
|
+
constructor(i, e = jt.compare) {
|
|
4093
4076
|
R(this, "queue");
|
|
4094
4077
|
R(this, "tree");
|
|
4095
4078
|
R(this, "segments");
|
|
4096
|
-
this.queue = i, this.tree = new
|
|
4079
|
+
this.queue = i, this.tree = new Ft(e), this.segments = [];
|
|
4097
4080
|
}
|
|
4098
4081
|
process(i) {
|
|
4099
4082
|
const e = i.segment, t = [];
|
|
@@ -4166,35 +4149,35 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4166
4149
|
const n = i.split(e);
|
|
4167
4150
|
return n.push(t), i.consumedBy === void 0 && this.tree.add(i), n;
|
|
4168
4151
|
}
|
|
4169
|
-
},
|
|
4152
|
+
}, Ts = class {
|
|
4170
4153
|
constructor() {
|
|
4171
4154
|
R(this, "type");
|
|
4172
4155
|
R(this, "numMultiPolys");
|
|
4173
4156
|
}
|
|
4174
4157
|
run(i, e, t) {
|
|
4175
|
-
|
|
4176
|
-
const n = [new
|
|
4158
|
+
Lt.type = i;
|
|
4159
|
+
const n = [new nn(e, !0)];
|
|
4177
4160
|
for (let h = 0, v = t.length; h < v; h++)
|
|
4178
|
-
n.push(new
|
|
4179
|
-
if (
|
|
4161
|
+
n.push(new nn(t[h], !1));
|
|
4162
|
+
if (Lt.numMultiPolys = n.length, Lt.type === "difference") {
|
|
4180
4163
|
const h = n[0];
|
|
4181
4164
|
let v = 1;
|
|
4182
4165
|
for (; v < n.length; )
|
|
4183
|
-
|
|
4166
|
+
hi(n[v].bbox, h.bbox) !== null ? v++ : n.splice(v, 1);
|
|
4184
4167
|
}
|
|
4185
|
-
if (
|
|
4168
|
+
if (Lt.type === "intersection")
|
|
4186
4169
|
for (let h = 0, v = n.length; h < v; h++) {
|
|
4187
4170
|
const S = n[h];
|
|
4188
4171
|
for (let M = h + 1, k = n.length; M < k; M++)
|
|
4189
|
-
if (
|
|
4172
|
+
if (hi(S.bbox, n[M].bbox) === null) return [];
|
|
4190
4173
|
}
|
|
4191
|
-
const r = new
|
|
4174
|
+
const r = new Ft(Ae.compare);
|
|
4192
4175
|
for (let h = 0, v = n.length; h < v; h++) {
|
|
4193
4176
|
const S = n[h].getSweepEvents();
|
|
4194
4177
|
for (let M = 0, k = S.length; M < k; M++)
|
|
4195
4178
|
r.add(S[M]);
|
|
4196
4179
|
}
|
|
4197
|
-
const u = new
|
|
4180
|
+
const u = new xs(r);
|
|
4198
4181
|
let a = null;
|
|
4199
4182
|
for (r.size != 0 && (a = r.first(), r.delete(a)); a; ) {
|
|
4200
4183
|
const h = u.process(a);
|
|
@@ -4204,11 +4187,11 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4204
4187
|
}
|
|
4205
4188
|
r.size != 0 ? (a = r.first(), r.delete(a)) : a = null;
|
|
4206
4189
|
}
|
|
4207
|
-
|
|
4208
|
-
const o =
|
|
4209
|
-
return new
|
|
4190
|
+
je.reset();
|
|
4191
|
+
const o = Ss.factory(u.segments);
|
|
4192
|
+
return new _s(o).getGeom();
|
|
4210
4193
|
}
|
|
4211
|
-
},
|
|
4194
|
+
}, Lt = new Ts(), qt = Lt, Ms = 0, jt = class Gt {
|
|
4212
4195
|
/* Warning: a reference to ringWindings input will be stored,
|
|
4213
4196
|
* and possibly will be later modified */
|
|
4214
4197
|
constructor(e, t, n, r) {
|
|
@@ -4224,7 +4207,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4224
4207
|
R(this, "_beforeState");
|
|
4225
4208
|
R(this, "_afterState");
|
|
4226
4209
|
R(this, "_isInResult");
|
|
4227
|
-
this.id = ++
|
|
4210
|
+
this.id = ++Ms, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
|
|
4228
4211
|
}
|
|
4229
4212
|
/* This compare() function is for ordering segments in the sweep
|
|
4230
4213
|
* line tree, and does so according to the following criteria:
|
|
@@ -4291,7 +4274,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4291
4274
|
`Tried to create degenerate segment at [${e.x}, ${e.y}]`
|
|
4292
4275
|
);
|
|
4293
4276
|
const g = new Ae(r, !0), h = new Ae(u, !1);
|
|
4294
|
-
return new
|
|
4277
|
+
return new Gt(g, h, [n], [a]);
|
|
4295
4278
|
}
|
|
4296
4279
|
/* When a segment is split, the rightSE is replaced with a new sweep event */
|
|
4297
4280
|
replaceRightSE(e) {
|
|
@@ -4328,7 +4311,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4328
4311
|
* -1: point lies below the segment (to the right of vertical)
|
|
4329
4312
|
*/
|
|
4330
4313
|
comparePoint(e) {
|
|
4331
|
-
return
|
|
4314
|
+
return je.orient(this.leftSE.point, e, this.rightSE.point);
|
|
4332
4315
|
}
|
|
4333
4316
|
/**
|
|
4334
4317
|
* Given another segment, returns the first non-trivial intersection
|
|
@@ -4346,9 +4329,9 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4346
4329
|
* Else, return null.
|
|
4347
4330
|
*/
|
|
4348
4331
|
getIntersection(e) {
|
|
4349
|
-
const t = this.bbox(), n = e.bbox(), r =
|
|
4332
|
+
const t = this.bbox(), n = e.bbox(), r = hi(t, n);
|
|
4350
4333
|
if (r === null) return null;
|
|
4351
|
-
const u = this.leftSE.point, a = this.rightSE.point, o = e.leftSE.point, g = e.rightSE.point, h =
|
|
4334
|
+
const u = this.leftSE.point, a = this.rightSE.point, o = e.leftSE.point, g = e.rightSE.point, h = wt(t, o) && this.comparePoint(o) === 0, v = wt(n, u) && e.comparePoint(u) === 0, S = wt(t, g) && this.comparePoint(g) === 0, M = wt(n, a) && e.comparePoint(a) === 0;
|
|
4352
4335
|
if (v && h)
|
|
4353
4336
|
return M && !S ? a : !M && S ? g : null;
|
|
4354
4337
|
if (v)
|
|
@@ -4358,8 +4341,8 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4358
4341
|
if (M && S) return null;
|
|
4359
4342
|
if (M) return a;
|
|
4360
4343
|
if (S) return g;
|
|
4361
|
-
const k =
|
|
4362
|
-
return k === null || !
|
|
4344
|
+
const k = Ls(u, this.vector(), o, e.vector());
|
|
4345
|
+
return k === null || !wt(r, k) ? null : je.snap(k);
|
|
4363
4346
|
}
|
|
4364
4347
|
/**
|
|
4365
4348
|
* Split the given segment into multiple segments on the given points.
|
|
@@ -4376,7 +4359,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4376
4359
|
split(e) {
|
|
4377
4360
|
const t = [], n = e.events !== void 0, r = new Ae(e, !0), u = new Ae(e, !1), a = this.rightSE;
|
|
4378
4361
|
this.replaceRightSE(u), t.push(u), t.push(r);
|
|
4379
|
-
const o = new
|
|
4362
|
+
const o = new Gt(
|
|
4380
4363
|
r,
|
|
4381
4364
|
a,
|
|
4382
4365
|
this.rings.slice(),
|
|
@@ -4397,7 +4380,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4397
4380
|
let t = this, n = e;
|
|
4398
4381
|
for (; t.consumedBy; ) t = t.consumedBy;
|
|
4399
4382
|
for (; n.consumedBy; ) n = n.consumedBy;
|
|
4400
|
-
const r =
|
|
4383
|
+
const r = Gt.compare(t, n);
|
|
4401
4384
|
if (r !== 0) {
|
|
4402
4385
|
if (r > 0) {
|
|
4403
4386
|
const u = t;
|
|
@@ -4468,7 +4451,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4468
4451
|
if (this.consumedBy) return !1;
|
|
4469
4452
|
if (this._isInResult !== void 0) return this._isInResult;
|
|
4470
4453
|
const e = this.beforeState().multiPolys, t = this.afterState().multiPolys;
|
|
4471
|
-
switch (
|
|
4454
|
+
switch (qt.type) {
|
|
4472
4455
|
case "union": {
|
|
4473
4456
|
const n = e.length === 0, r = t.length === 0;
|
|
4474
4457
|
this._isInResult = n !== r;
|
|
@@ -4476,7 +4459,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4476
4459
|
}
|
|
4477
4460
|
case "intersection": {
|
|
4478
4461
|
let n, r;
|
|
4479
|
-
e.length < t.length ? (n = e.length, r = t.length) : (n = t.length, r = e.length), this._isInResult = r ===
|
|
4462
|
+
e.length < t.length ? (n = e.length, r = t.length) : (n = t.length, r = e.length), this._isInResult = r === qt.numMultiPolys && n < r;
|
|
4480
4463
|
break;
|
|
4481
4464
|
}
|
|
4482
4465
|
case "xor": {
|
|
@@ -4492,7 +4475,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4492
4475
|
}
|
|
4493
4476
|
return this._isInResult;
|
|
4494
4477
|
}
|
|
4495
|
-
},
|
|
4478
|
+
}, tn = class {
|
|
4496
4479
|
constructor(i, e, t) {
|
|
4497
4480
|
R(this, "poly");
|
|
4498
4481
|
R(this, "isExterior");
|
|
@@ -4502,7 +4485,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4502
4485
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4503
4486
|
if (this.poly = e, this.isExterior = t, this.segments = [], typeof i[0][0] != "number" || typeof i[0][1] != "number")
|
|
4504
4487
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4505
|
-
const n =
|
|
4488
|
+
const n = je.snap({ x: new Be(i[0][0]), y: new Be(i[0][1]) });
|
|
4506
4489
|
this.bbox = {
|
|
4507
4490
|
ll: { x: n.x, y: n.y },
|
|
4508
4491
|
ur: { x: n.x, y: n.y }
|
|
@@ -4511,10 +4494,10 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4511
4494
|
for (let u = 1, a = i.length; u < a; u++) {
|
|
4512
4495
|
if (typeof i[u][0] != "number" || typeof i[u][1] != "number")
|
|
4513
4496
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4514
|
-
const o =
|
|
4515
|
-
o.x.eq(r.x) && o.y.eq(r.y) || (this.segments.push(
|
|
4497
|
+
const o = je.snap({ x: new Be(i[u][0]), y: new Be(i[u][1]) });
|
|
4498
|
+
o.x.eq(r.x) && o.y.eq(r.y) || (this.segments.push(jt.fromRing(r, o, this)), o.x.isLessThan(this.bbox.ll.x) && (this.bbox.ll.x = o.x), o.y.isLessThan(this.bbox.ll.y) && (this.bbox.ll.y = o.y), o.x.isGreaterThan(this.bbox.ur.x) && (this.bbox.ur.x = o.x), o.y.isGreaterThan(this.bbox.ur.y) && (this.bbox.ur.y = o.y), r = o);
|
|
4516
4499
|
}
|
|
4517
|
-
(!n.x.eq(r.x) || !n.y.eq(r.y)) && this.segments.push(
|
|
4500
|
+
(!n.x.eq(r.x) || !n.y.eq(r.y)) && this.segments.push(jt.fromRing(r, n, this));
|
|
4518
4501
|
}
|
|
4519
4502
|
getSweepEvents() {
|
|
4520
4503
|
const i = [];
|
|
@@ -4524,7 +4507,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4524
4507
|
}
|
|
4525
4508
|
return i;
|
|
4526
4509
|
}
|
|
4527
|
-
},
|
|
4510
|
+
}, Ns = class {
|
|
4528
4511
|
constructor(i, e) {
|
|
4529
4512
|
R(this, "multiPoly");
|
|
4530
4513
|
R(this, "exteriorRing");
|
|
@@ -4532,12 +4515,12 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4532
4515
|
R(this, "bbox");
|
|
4533
4516
|
if (!Array.isArray(i))
|
|
4534
4517
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4535
|
-
this.exteriorRing = new
|
|
4518
|
+
this.exteriorRing = new tn(i[0], this, !0), this.bbox = {
|
|
4536
4519
|
ll: { x: this.exteriorRing.bbox.ll.x, y: this.exteriorRing.bbox.ll.y },
|
|
4537
4520
|
ur: { x: this.exteriorRing.bbox.ur.x, y: this.exteriorRing.bbox.ur.y }
|
|
4538
4521
|
}, this.interiorRings = [];
|
|
4539
4522
|
for (let t = 1, n = i.length; t < n; t++) {
|
|
4540
|
-
const r = new
|
|
4523
|
+
const r = new tn(i[t], this, !1);
|
|
4541
4524
|
r.bbox.ll.x.isLessThan(this.bbox.ll.x) && (this.bbox.ll.x = r.bbox.ll.x), r.bbox.ll.y.isLessThan(this.bbox.ll.y) && (this.bbox.ll.y = r.bbox.ll.y), r.bbox.ur.x.isGreaterThan(this.bbox.ur.x) && (this.bbox.ur.x = r.bbox.ur.x), r.bbox.ur.y.isGreaterThan(this.bbox.ur.y) && (this.bbox.ur.y = r.bbox.ur.y), this.interiorRings.push(r);
|
|
4542
4525
|
}
|
|
4543
4526
|
this.multiPoly = e;
|
|
@@ -4551,7 +4534,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4551
4534
|
}
|
|
4552
4535
|
return i;
|
|
4553
4536
|
}
|
|
4554
|
-
},
|
|
4537
|
+
}, nn = class {
|
|
4555
4538
|
constructor(i, e) {
|
|
4556
4539
|
R(this, "isSubject");
|
|
4557
4540
|
R(this, "polys");
|
|
@@ -4567,7 +4550,7 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4567
4550
|
ur: { x: new Be(Number.NEGATIVE_INFINITY), y: new Be(Number.NEGATIVE_INFINITY) }
|
|
4568
4551
|
};
|
|
4569
4552
|
for (let t = 0, n = i.length; t < n; t++) {
|
|
4570
|
-
const r = new
|
|
4553
|
+
const r = new Ns(i[t], this);
|
|
4571
4554
|
r.bbox.ll.x.isLessThan(this.bbox.ll.x) && (this.bbox.ll.x = r.bbox.ll.x), r.bbox.ll.y.isLessThan(this.bbox.ll.y) && (this.bbox.ll.y = r.bbox.ll.y), r.bbox.ur.x.isGreaterThan(this.bbox.ur.x) && (this.bbox.ur.x = r.bbox.ur.x), r.bbox.ur.y.isGreaterThan(this.bbox.ur.y) && (this.bbox.ur.y = r.bbox.ur.y), this.polys.push(r);
|
|
4572
4555
|
}
|
|
4573
4556
|
this.isSubject = e;
|
|
@@ -4581,40 +4564,40 @@ var Ls = (i) => i, Ss = (i) => {
|
|
|
4581
4564
|
}
|
|
4582
4565
|
return i;
|
|
4583
4566
|
}
|
|
4584
|
-
},
|
|
4585
|
-
|
|
4586
|
-
function
|
|
4567
|
+
}, Cs = (i, ...e) => qt.run("union", i, e), ks = (i, ...e) => qt.run("difference", i, e);
|
|
4568
|
+
je.set;
|
|
4569
|
+
function Os(i) {
|
|
4587
4570
|
const e = [];
|
|
4588
|
-
if (
|
|
4571
|
+
if (pi(i, (r) => {
|
|
4589
4572
|
e.push(r.coordinates);
|
|
4590
4573
|
}), e.length < 2)
|
|
4591
4574
|
throw new Error("Must have at least two features");
|
|
4592
|
-
const t = i.features[0].properties || {}, n =
|
|
4593
|
-
return n.length === 0 ? null : n.length === 1 ?
|
|
4575
|
+
const t = i.features[0].properties || {}, n = ks(e[0], ...e.slice(1));
|
|
4576
|
+
return n.length === 0 ? null : n.length === 1 ? mi(n[0], t) : yn(n, t);
|
|
4594
4577
|
}
|
|
4595
|
-
var
|
|
4596
|
-
function
|
|
4578
|
+
var Rs = Os;
|
|
4579
|
+
function Ps(i) {
|
|
4597
4580
|
if (!i) throw new Error("geojson is required");
|
|
4598
4581
|
var e = [];
|
|
4599
|
-
return
|
|
4582
|
+
return fs(i, function(t) {
|
|
4600
4583
|
e.push(t);
|
|
4601
|
-
}),
|
|
4584
|
+
}), ai(e);
|
|
4602
4585
|
}
|
|
4603
|
-
var
|
|
4604
|
-
function
|
|
4586
|
+
var Is = Ps;
|
|
4587
|
+
function As(i, e = {}) {
|
|
4605
4588
|
const t = [];
|
|
4606
|
-
if (
|
|
4589
|
+
if (pi(i, (r) => {
|
|
4607
4590
|
t.push(r.coordinates);
|
|
4608
4591
|
}), t.length < 2)
|
|
4609
4592
|
throw new Error("Must have at least 2 geometries");
|
|
4610
|
-
const n =
|
|
4611
|
-
return n.length === 0 ? null : n.length === 1 ?
|
|
4612
|
-
}
|
|
4613
|
-
var
|
|
4614
|
-
function
|
|
4615
|
-
const t =
|
|
4616
|
-
|
|
4617
|
-
|
|
4593
|
+
const n = Cs(t[0], ...t.slice(1));
|
|
4594
|
+
return n.length === 0 ? null : n.length === 1 ? mi(n[0], e.properties) : yn(n, e.properties);
|
|
4595
|
+
}
|
|
4596
|
+
var Bs = As;
|
|
4597
|
+
function rn(i, e) {
|
|
4598
|
+
const t = Rs(
|
|
4599
|
+
ai([
|
|
4600
|
+
mi([
|
|
4618
4601
|
[
|
|
4619
4602
|
[180, 90],
|
|
4620
4603
|
[-180, 90],
|
|
@@ -4629,10 +4612,10 @@ function ln(i, e) {
|
|
|
4629
4612
|
if (!t)
|
|
4630
4613
|
return;
|
|
4631
4614
|
t.properties = { isMask: !0 };
|
|
4632
|
-
const n =
|
|
4615
|
+
const n = zt(Yi(i)), r = (n[2] - n[0]) / 360 / 1e3, u = n[0] < -180, a = n[2] > 180, o = Is(i);
|
|
4633
4616
|
if (o.features.length > 1 && (u || a))
|
|
4634
4617
|
for (const g of o.features) {
|
|
4635
|
-
const h =
|
|
4618
|
+
const h = zt(Yi(g));
|
|
4636
4619
|
if (a && h[0] < -180 + r)
|
|
4637
4620
|
for (const v of g.geometry.coordinates)
|
|
4638
4621
|
for (const S of v)
|
|
@@ -4643,36 +4626,36 @@ function ln(i, e) {
|
|
|
4643
4626
|
S[0] -= 360 - r;
|
|
4644
4627
|
}
|
|
4645
4628
|
e(
|
|
4646
|
-
|
|
4647
|
-
o.features.length < 2 ? i :
|
|
4629
|
+
ai([
|
|
4630
|
+
o.features.length < 2 ? i : Bs(o) ?? i,
|
|
4648
4631
|
t
|
|
4649
4632
|
])
|
|
4650
4633
|
);
|
|
4651
4634
|
}
|
|
4652
|
-
const
|
|
4653
|
-
function
|
|
4635
|
+
const sn = "EPSG:4326";
|
|
4636
|
+
function Gs(i) {
|
|
4654
4637
|
var u;
|
|
4655
4638
|
const e = i.getProperties(), { isMask: t } = e, n = (u = i.getGeometry()) == null ? void 0 : u.getType(), r = t ? 0 : n === "LineString" || n === "MultiLineString" ? 3 : 2;
|
|
4656
|
-
return new
|
|
4657
|
-
stroke: t ? void 0 : new
|
|
4639
|
+
return new ir({
|
|
4640
|
+
stroke: t ? void 0 : new Ri({
|
|
4658
4641
|
color: "#3170fe",
|
|
4659
4642
|
lineDash: [r, r],
|
|
4660
4643
|
width: r,
|
|
4661
4644
|
lineCap: "butt"
|
|
4662
4645
|
}),
|
|
4663
|
-
fill: t ? new
|
|
4646
|
+
fill: t ? new Oi({
|
|
4664
4647
|
color: "#00000020"
|
|
4665
4648
|
}) : void 0,
|
|
4666
|
-
image: new
|
|
4649
|
+
image: new tr({
|
|
4667
4650
|
src: `/icons/marker_${e.isReverse ? "reverse" : e.isSelected ? "selected" : "unselected"}.svg`,
|
|
4668
4651
|
anchor: [0.5, 1]
|
|
4669
4652
|
}),
|
|
4670
4653
|
zIndex: e.isSelected ? 2 : e.isReverse ? 0 : 1,
|
|
4671
|
-
text: e.isSelected && e.tooltip ? new
|
|
4672
|
-
backgroundFill: new
|
|
4654
|
+
text: e.isSelected && e.tooltip ? new nr({
|
|
4655
|
+
backgroundFill: new Oi({ color: "white" }),
|
|
4673
4656
|
text: e.tooltip,
|
|
4674
4657
|
offsetY: -40,
|
|
4675
|
-
backgroundStroke: new
|
|
4658
|
+
backgroundStroke: new Ri({
|
|
4676
4659
|
color: "white",
|
|
4677
4660
|
lineJoin: "round",
|
|
4678
4661
|
width: 3
|
|
@@ -4681,13 +4664,13 @@ function Us(i) {
|
|
|
4681
4664
|
}) : void 0
|
|
4682
4665
|
});
|
|
4683
4666
|
}
|
|
4684
|
-
function
|
|
4667
|
+
function Ws(i, e = {}, t = {}, n = Gs) {
|
|
4685
4668
|
let r = -1, u, a, o, g = !1;
|
|
4686
|
-
const h = new
|
|
4669
|
+
const h = new Xn({
|
|
4687
4670
|
updateWhileAnimating: !0
|
|
4688
4671
|
});
|
|
4689
4672
|
i.addLayer(h);
|
|
4690
|
-
const v = new
|
|
4673
|
+
const v = new er({});
|
|
4691
4674
|
h.setSource(v), h.setStyle(n), i.on("click", (N) => {
|
|
4692
4675
|
i.forEachFeatureAtPixel(N.pixel, (C) => {
|
|
4693
4676
|
const O = C.getId();
|
|
@@ -4705,15 +4688,15 @@ function Fs(i, e = {}, t = {}, n = Us) {
|
|
|
4705
4688
|
})), i.getTargetElement().style.cursor = C ? "pointer" : g ? "crosshair" : "", u = C);
|
|
4706
4689
|
});
|
|
4707
4690
|
function S() {
|
|
4708
|
-
return
|
|
4691
|
+
return $n() ?? i.getView().getProjection();
|
|
4709
4692
|
}
|
|
4710
4693
|
function M(N) {
|
|
4711
|
-
return N.transform(
|
|
4694
|
+
return N.transform(sn, S());
|
|
4712
4695
|
}
|
|
4713
4696
|
const k = (N) => {
|
|
4714
4697
|
a == null || a({
|
|
4715
4698
|
type: "mapClick",
|
|
4716
|
-
coordinates:
|
|
4699
|
+
coordinates: ki(N.coordinate, S())
|
|
4717
4700
|
});
|
|
4718
4701
|
};
|
|
4719
4702
|
return {
|
|
@@ -4722,14 +4705,14 @@ function Fs(i, e = {}, t = {}, n = Us) {
|
|
|
4722
4705
|
},
|
|
4723
4706
|
flyTo(N, C) {
|
|
4724
4707
|
i.getView().animate({
|
|
4725
|
-
center:
|
|
4708
|
+
center: Nt(N, S()),
|
|
4726
4709
|
...C ? { zoom: C } : {},
|
|
4727
4710
|
duration: 2e3,
|
|
4728
4711
|
...e
|
|
4729
4712
|
});
|
|
4730
4713
|
},
|
|
4731
4714
|
fitBounds(N, C, O) {
|
|
4732
|
-
i.getView().fit(
|
|
4715
|
+
i.getView().fit(Jn(N, sn, S()), {
|
|
4733
4716
|
padding: [C, C, C, C],
|
|
4734
4717
|
...O ? { maxZoom: O } : {},
|
|
4735
4718
|
duration: 2e3,
|
|
@@ -4741,9 +4724,9 @@ function Fs(i, e = {}, t = {}, n = Us) {
|
|
|
4741
4724
|
},
|
|
4742
4725
|
setReverseMarker(N) {
|
|
4743
4726
|
o ? N ? o.getGeometry().setCoordinates(
|
|
4744
|
-
|
|
4745
|
-
) : (v.removeFeature(o), o.dispose(), o = void 0) : N && (o = new
|
|
4746
|
-
new
|
|
4727
|
+
Nt(N, S())
|
|
4728
|
+
) : (v.removeFeature(o), o.dispose(), o = void 0) : N && (o = new ze(
|
|
4729
|
+
new ti(Nt(N, S()))
|
|
4747
4730
|
), o.setProperties({ isReverse: !0 }), v.addFeature(o));
|
|
4748
4731
|
},
|
|
4749
4732
|
setFeatures(N, C, O) {
|
|
@@ -4751,11 +4734,11 @@ function Fs(i, e = {}, t = {}, n = Us) {
|
|
|
4751
4734
|
var P;
|
|
4752
4735
|
if (_)
|
|
4753
4736
|
for (const z of _.features) {
|
|
4754
|
-
const
|
|
4755
|
-
|
|
4756
|
-
new
|
|
4737
|
+
const Z = z.geometry.type === "Polygon" ? new Ti(z.geometry.coordinates) : z.geometry.type === "MultiPolygon" ? new Mi(z.geometry.coordinates) : null;
|
|
4738
|
+
Z && v.addFeature(
|
|
4739
|
+
new ze({
|
|
4757
4740
|
isMask: !!((P = z.properties) != null && P.isMask),
|
|
4758
|
-
geometry: M(
|
|
4741
|
+
geometry: M(Z)
|
|
4759
4742
|
})
|
|
4760
4743
|
);
|
|
4761
4744
|
}
|
|
@@ -4765,40 +4748,40 @@ function Fs(i, e = {}, t = {}, n = Us) {
|
|
|
4765
4748
|
let _ = !1;
|
|
4766
4749
|
if (C.geometry.type === "GeometryCollection") {
|
|
4767
4750
|
const P = C.geometry.geometries.map(
|
|
4768
|
-
(z) => z.type === "Polygon" ? new
|
|
4751
|
+
(z) => z.type === "Polygon" ? new Ti(z.coordinates) : z.type === "MultiPolygon" ? new Mi(z.coordinates) : null
|
|
4769
4752
|
).filter((z) => !!z);
|
|
4770
4753
|
if (P.length > 0)
|
|
4771
4754
|
v.addFeature(
|
|
4772
|
-
new
|
|
4755
|
+
new ze(M(new Qn(P)))
|
|
4773
4756
|
), _ = !0;
|
|
4774
4757
|
else
|
|
4775
4758
|
for (const z of C.geometry.geometries)
|
|
4776
4759
|
z.type === "LineString" ? (v.addFeature(
|
|
4777
|
-
new
|
|
4778
|
-
M(new
|
|
4760
|
+
new ze(
|
|
4761
|
+
M(new Ni(z.coordinates))
|
|
4779
4762
|
)
|
|
4780
4763
|
), _ = !0) : z.type === "MultiLineString" && v.addFeature(
|
|
4781
|
-
new
|
|
4782
|
-
M(new
|
|
4764
|
+
new ze(
|
|
4765
|
+
M(new Ci(z.coordinates))
|
|
4783
4766
|
)
|
|
4784
4767
|
), _ = !0;
|
|
4785
4768
|
}
|
|
4786
4769
|
if (!_) {
|
|
4787
4770
|
if (C.geometry.type === "Polygon")
|
|
4788
|
-
|
|
4771
|
+
rn(C, I);
|
|
4789
4772
|
else if (C.geometry.type === "MultiPolygon")
|
|
4790
|
-
|
|
4773
|
+
rn(C, I);
|
|
4791
4774
|
else if (C.geometry.type === "LineString") {
|
|
4792
4775
|
v.addFeature(
|
|
4793
|
-
new
|
|
4794
|
-
M(new
|
|
4776
|
+
new ze(
|
|
4777
|
+
M(new Ni(C.geometry.coordinates))
|
|
4795
4778
|
)
|
|
4796
4779
|
);
|
|
4797
4780
|
break e;
|
|
4798
4781
|
} else if (C.geometry.type === "MultiLineString") {
|
|
4799
4782
|
v.addFeature(
|
|
4800
|
-
new
|
|
4801
|
-
M(new
|
|
4783
|
+
new ze(
|
|
4784
|
+
M(new Ci(C.geometry.coordinates))
|
|
4802
4785
|
)
|
|
4803
4786
|
);
|
|
4804
4787
|
break e;
|
|
@@ -4806,13 +4789,13 @@ function Fs(i, e = {}, t = {}, n = Us) {
|
|
|
4806
4789
|
}
|
|
4807
4790
|
if (!O && C.geometry.type !== "Point")
|
|
4808
4791
|
break e;
|
|
4809
|
-
v.addFeature(new
|
|
4792
|
+
v.addFeature(new ze(M(new ti(C.center))));
|
|
4810
4793
|
}
|
|
4811
4794
|
for (const _ of N ?? []) {
|
|
4812
4795
|
if (_ === C)
|
|
4813
4796
|
continue;
|
|
4814
|
-
const P = new
|
|
4815
|
-
new
|
|
4797
|
+
const P = new ze(
|
|
4798
|
+
new ti(Nt(_.center, S()))
|
|
4816
4799
|
);
|
|
4817
4800
|
P.setId(_.id), P.setProperties({
|
|
4818
4801
|
fuzzy: !!_.matching_text,
|
|
@@ -4832,12 +4815,12 @@ function Fs(i, e = {}, t = {}, n = Us) {
|
|
|
4832
4815
|
getCenterAndZoom() {
|
|
4833
4816
|
const N = i.getView(), C = N.getCenter(), O = N.getZoom();
|
|
4834
4817
|
if (!(!C || O === void 0))
|
|
4835
|
-
return [O, ...
|
|
4818
|
+
return [O, ...ki(C, S())];
|
|
4836
4819
|
}
|
|
4837
4820
|
};
|
|
4838
4821
|
}
|
|
4839
|
-
var
|
|
4840
|
-
class
|
|
4822
|
+
var ae, nt;
|
|
4823
|
+
class lo extends Yn {
|
|
4841
4824
|
constructor(t) {
|
|
4842
4825
|
const n = document.createElement("div");
|
|
4843
4826
|
n.className = "ol-search";
|
|
@@ -4845,36 +4828,36 @@ class co extends $n {
|
|
|
4845
4828
|
element: n,
|
|
4846
4829
|
target: t.target
|
|
4847
4830
|
});
|
|
4848
|
-
|
|
4849
|
-
|
|
4831
|
+
$t(this, ae);
|
|
4832
|
+
$t(this, nt);
|
|
4850
4833
|
const { flyTo: r, fullGeometryStyle: u, ...a } = t;
|
|
4851
|
-
|
|
4834
|
+
ei(this, ae, new as({
|
|
4852
4835
|
target: n,
|
|
4853
4836
|
props: {
|
|
4854
4837
|
flyTo: r === void 0 ? !0 : !!r,
|
|
4855
4838
|
...a
|
|
4856
4839
|
}
|
|
4857
|
-
})),
|
|
4840
|
+
})), ue(this, ae).$on("select", (o) => {
|
|
4841
|
+
this.dispatchEvent(new zs(o.detail.feature));
|
|
4842
|
+
}), ue(this, ae).$on("pick", (o) => {
|
|
4858
4843
|
this.dispatchEvent(new qs(o.detail.feature));
|
|
4859
|
-
}),
|
|
4860
|
-
this.dispatchEvent(new
|
|
4861
|
-
}),
|
|
4862
|
-
this.dispatchEvent(new
|
|
4863
|
-
}),
|
|
4864
|
-
this.dispatchEvent(new Vs(o.detail.features));
|
|
4865
|
-
}), fe(this, ce).$on("response", (o) => {
|
|
4844
|
+
}), ue(this, ae).$on("featureslisted", (o) => {
|
|
4845
|
+
this.dispatchEvent(new Ds(o.detail.features));
|
|
4846
|
+
}), ue(this, ae).$on("featuresmarked", (o) => {
|
|
4847
|
+
this.dispatchEvent(new Fs(o.detail.features));
|
|
4848
|
+
}), ue(this, ae).$on("response", (o) => {
|
|
4866
4849
|
this.dispatchEvent(
|
|
4867
|
-
new
|
|
4850
|
+
new Vs(o.detail.url, o.detail.featureCollection)
|
|
4868
4851
|
);
|
|
4869
|
-
}),
|
|
4852
|
+
}), ue(this, ae).$on("optionsvisibilitychange", (o) => {
|
|
4870
4853
|
this.dispatchEvent(
|
|
4871
|
-
new
|
|
4854
|
+
new Us(o.detail.optionsVisible)
|
|
4872
4855
|
);
|
|
4873
|
-
}),
|
|
4874
|
-
this.dispatchEvent(new
|
|
4875
|
-
}),
|
|
4876
|
-
this.dispatchEvent(new
|
|
4877
|
-
}),
|
|
4856
|
+
}), ue(this, ae).$on("reversetoggle", (o) => {
|
|
4857
|
+
this.dispatchEvent(new Hs(o.detail.reverse));
|
|
4858
|
+
}), ue(this, ae).$on("querychange", (o) => {
|
|
4859
|
+
this.dispatchEvent(new js(o.detail.query));
|
|
4860
|
+
}), ei(this, nt, t);
|
|
4878
4861
|
}
|
|
4879
4862
|
setMap(t) {
|
|
4880
4863
|
var n;
|
|
@@ -4884,7 +4867,7 @@ class co extends $n {
|
|
|
4884
4867
|
// showResultMarkers,
|
|
4885
4868
|
flyTo: r,
|
|
4886
4869
|
fullGeometryStyle: u
|
|
4887
|
-
} =
|
|
4870
|
+
} = ue(this, nt), a = Ws(
|
|
4888
4871
|
t,
|
|
4889
4872
|
typeof r == "boolean" ? void 0 : r,
|
|
4890
4873
|
typeof r == "boolean" ? void 0 : r,
|
|
@@ -4892,7 +4875,7 @@ class co extends $n {
|
|
|
4892
4875
|
// showResultMarkers,
|
|
4893
4876
|
u
|
|
4894
4877
|
);
|
|
4895
|
-
(n =
|
|
4878
|
+
(n = ue(this, ae)) == null || n.$set({ mapController: a });
|
|
4896
4879
|
}
|
|
4897
4880
|
}
|
|
4898
4881
|
/**
|
|
@@ -4902,9 +4885,9 @@ class co extends $n {
|
|
|
4902
4885
|
*/
|
|
4903
4886
|
setOptions(t) {
|
|
4904
4887
|
var a;
|
|
4905
|
-
Object.assign(
|
|
4906
|
-
const { flyTo: n, fullGeometryStyle: r, ...u } =
|
|
4907
|
-
(a =
|
|
4888
|
+
Object.assign(ue(this, nt), t);
|
|
4889
|
+
const { flyTo: n, fullGeometryStyle: r, ...u } = ue(this, nt);
|
|
4890
|
+
(a = ue(this, ae)) == null || a.$set({
|
|
4908
4891
|
...u,
|
|
4909
4892
|
flyTo: n === void 0 ? !0 : !!n
|
|
4910
4893
|
});
|
|
@@ -4917,21 +4900,21 @@ class co extends $n {
|
|
|
4917
4900
|
*/
|
|
4918
4901
|
setQuery(t, n = !0) {
|
|
4919
4902
|
var r;
|
|
4920
|
-
(r =
|
|
4903
|
+
(r = ue(this, ae)) == null || r.setQuery(t, n);
|
|
4921
4904
|
}
|
|
4922
4905
|
/**
|
|
4923
4906
|
* Clear geocoding search results from the map.
|
|
4924
4907
|
*/
|
|
4925
4908
|
clearMap() {
|
|
4926
4909
|
var t;
|
|
4927
|
-
(t =
|
|
4910
|
+
(t = ue(this, ae)) == null || t.clearMap();
|
|
4928
4911
|
}
|
|
4929
4912
|
/**
|
|
4930
4913
|
* Clear search result list.
|
|
4931
4914
|
*/
|
|
4932
4915
|
clearList() {
|
|
4933
4916
|
var t;
|
|
4934
|
-
(t =
|
|
4917
|
+
(t = ue(this, ae)) == null || t.clearList();
|
|
4935
4918
|
}
|
|
4936
4919
|
/**
|
|
4937
4920
|
* Set reverse geocoding mode.
|
|
@@ -4940,7 +4923,7 @@ class co extends $n {
|
|
|
4940
4923
|
*/
|
|
4941
4924
|
setReverseMode(t) {
|
|
4942
4925
|
var n;
|
|
4943
|
-
(n =
|
|
4926
|
+
(n = ue(this, ae)) == null || n.$set({ reverseActive: t });
|
|
4944
4927
|
}
|
|
4945
4928
|
/**
|
|
4946
4929
|
* Focus the search input box.
|
|
@@ -4949,63 +4932,63 @@ class co extends $n {
|
|
|
4949
4932
|
*/
|
|
4950
4933
|
focus(t) {
|
|
4951
4934
|
var n;
|
|
4952
|
-
(n =
|
|
4935
|
+
(n = ue(this, ae)) == null || n.focus(t);
|
|
4953
4936
|
}
|
|
4954
4937
|
/**
|
|
4955
4938
|
* Blur the search input box.
|
|
4956
4939
|
*/
|
|
4957
4940
|
blur() {
|
|
4958
4941
|
var t;
|
|
4959
|
-
(t =
|
|
4942
|
+
(t = ue(this, ae)) == null || t.blur();
|
|
4960
4943
|
}
|
|
4961
4944
|
// onRemove() {
|
|
4962
4945
|
// this.#gc?.$destroy();
|
|
4963
4946
|
// }
|
|
4964
4947
|
}
|
|
4965
|
-
|
|
4966
|
-
class
|
|
4948
|
+
ae = new WeakMap(), nt = new WeakMap();
|
|
4949
|
+
class zs extends Xe {
|
|
4967
4950
|
constructor(t) {
|
|
4968
4951
|
super("select");
|
|
4969
4952
|
R(this, "feature");
|
|
4970
4953
|
this.feature = t;
|
|
4971
4954
|
}
|
|
4972
4955
|
}
|
|
4973
|
-
class
|
|
4956
|
+
class Ds extends Xe {
|
|
4974
4957
|
constructor(t) {
|
|
4975
4958
|
super("featureslisted");
|
|
4976
4959
|
R(this, "features");
|
|
4977
4960
|
this.features = t;
|
|
4978
4961
|
}
|
|
4979
4962
|
}
|
|
4980
|
-
class
|
|
4963
|
+
class Fs extends Xe {
|
|
4981
4964
|
constructor(t) {
|
|
4982
4965
|
super("featuresmarked");
|
|
4983
4966
|
R(this, "features");
|
|
4984
4967
|
this.features = t;
|
|
4985
4968
|
}
|
|
4986
4969
|
}
|
|
4987
|
-
class
|
|
4970
|
+
class Us extends Xe {
|
|
4988
4971
|
constructor(t) {
|
|
4989
4972
|
super("optionsvisibilitychange");
|
|
4990
4973
|
R(this, "optionsVisible");
|
|
4991
4974
|
this.optionsVisible = t;
|
|
4992
4975
|
}
|
|
4993
4976
|
}
|
|
4994
|
-
class
|
|
4977
|
+
class qs extends Xe {
|
|
4995
4978
|
constructor(t) {
|
|
4996
4979
|
super("pick");
|
|
4997
4980
|
R(this, "feature");
|
|
4998
4981
|
this.feature = t;
|
|
4999
4982
|
}
|
|
5000
4983
|
}
|
|
5001
|
-
class
|
|
4984
|
+
class js extends Xe {
|
|
5002
4985
|
constructor(t) {
|
|
5003
4986
|
super("querychange");
|
|
5004
4987
|
R(this, "query");
|
|
5005
4988
|
this.query = t;
|
|
5006
4989
|
}
|
|
5007
4990
|
}
|
|
5008
|
-
class
|
|
4991
|
+
class Vs extends Xe {
|
|
5009
4992
|
constructor(t, n) {
|
|
5010
4993
|
super("response");
|
|
5011
4994
|
R(this, "url");
|
|
@@ -5013,7 +4996,7 @@ class Ys extends $e {
|
|
|
5013
4996
|
this.url = t, this.featureCollection = n;
|
|
5014
4997
|
}
|
|
5015
4998
|
}
|
|
5016
|
-
class
|
|
4999
|
+
class Hs extends Xe {
|
|
5017
5000
|
constructor(t) {
|
|
5018
5001
|
super("reversetoggle");
|
|
5019
5002
|
R(this, "reverse");
|
|
@@ -5021,15 +5004,15 @@ class Qs extends $e {
|
|
|
5021
5004
|
}
|
|
5022
5005
|
}
|
|
5023
5006
|
export {
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5007
|
+
Ds as FeaturesListedEvent,
|
|
5008
|
+
Fs as FeaturesMarkedEvent,
|
|
5009
|
+
lo as GeocodingControl,
|
|
5010
|
+
Us as OptionsVisibilityChangeEvent,
|
|
5011
|
+
qs as PickEvent,
|
|
5012
|
+
js as QueryChangeEvent,
|
|
5013
|
+
Vs as ResponseEvent,
|
|
5014
|
+
Hs as ReverseToggleEvent,
|
|
5015
|
+
zs as SelectEvent,
|
|
5016
|
+
Ws as createOpenLayersMapController
|
|
5034
5017
|
};
|
|
5035
5018
|
//# sourceMappingURL=openlayers.js.map
|