@corpsmap/corpsmap 4.1.29 → 4.1.31
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/dist/corpsmap.es.js +790 -768
- package/dist/corpsmap.umd.js +17 -17
- package/package.json +1 -1
- package/src/application-bundles/map-layers-bundle.js +2 -1
- package/src/core-plugins/identify-map-server/bundle.js +215 -159
- package/src/core-plugins/zoom-home/bundle.js +0 -1
- package/src/core-plugins/zoom-home/index.js +0 -1
- package/src/core-plugins/zoom-in-out/index.js +0 -1
- package/src/core-plugins/zoom-level/bundle.js +0 -1
- package/src/core-plugins/zoom-to-box/bundle.js +0 -1
package/dist/corpsmap.es.js
CHANGED
|
@@ -767,10 +767,10 @@ function requireDebounce() {
|
|
|
767
767
|
hasRequiredDebounce = 1;
|
|
768
768
|
var e = requireIsObject(), t = requireNow(), r = requireToNumber(), n = "Expected a function", s = Math.max, d = Math.min;
|
|
769
769
|
function g(m, y, b) {
|
|
770
|
-
var E, I, x, S, A, R, k = 0, L = !1, $ = !1,
|
|
770
|
+
var E, I, x, S, A, R, k = 0, L = !1, $ = !1, O = !0;
|
|
771
771
|
if (typeof m != "function")
|
|
772
772
|
throw new TypeError(n);
|
|
773
|
-
y = r(y) || 0, e(b) && (L = !!b.leading, $ = "maxWait" in b, x = $ ? s(r(b.maxWait) || 0, y) : x,
|
|
773
|
+
y = r(y) || 0, e(b) && (L = !!b.leading, $ = "maxWait" in b, x = $ ? s(r(b.maxWait) || 0, y) : x, O = "trailing" in b ? !!b.trailing : O);
|
|
774
774
|
function G(ie) {
|
|
775
775
|
var oe = E, K = I;
|
|
776
776
|
return E = I = void 0, k = ie, S = m.apply(K, oe), S;
|
|
@@ -793,7 +793,7 @@ function requireDebounce() {
|
|
|
793
793
|
A = setTimeout(W, Y(ie));
|
|
794
794
|
}
|
|
795
795
|
function X(ie) {
|
|
796
|
-
return A = void 0,
|
|
796
|
+
return A = void 0, O && E ? G(ie) : (E = I = void 0, S);
|
|
797
797
|
}
|
|
798
798
|
function ee() {
|
|
799
799
|
A !== void 0 && clearTimeout(A), k = 0, E = R = I = A = void 0;
|
|
@@ -1402,9 +1402,9 @@ function requireAsyncEachOfLimit() {
|
|
|
1402
1402
|
function d(g, m, y, b) {
|
|
1403
1403
|
let E = !1, I = !1, x = !1, S = 0, A = 0;
|
|
1404
1404
|
function R() {
|
|
1405
|
-
S >= m || x || E || (x = !0, g.next().then(({ value: $, done:
|
|
1405
|
+
S >= m || x || E || (x = !0, g.next().then(({ value: $, done: O }) => {
|
|
1406
1406
|
if (!(I || E)) {
|
|
1407
|
-
if (x = !1,
|
|
1407
|
+
if (x = !1, O) {
|
|
1408
1408
|
E = !0, S <= 0 && b(null);
|
|
1409
1409
|
return;
|
|
1410
1410
|
}
|
|
@@ -1412,14 +1412,14 @@ function requireAsyncEachOfLimit() {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
}).catch(L));
|
|
1414
1414
|
}
|
|
1415
|
-
function k($,
|
|
1415
|
+
function k($, O) {
|
|
1416
1416
|
if (S -= 1, !I) {
|
|
1417
1417
|
if ($) return L($);
|
|
1418
1418
|
if ($ === !1) {
|
|
1419
1419
|
E = !0, I = !0;
|
|
1420
1420
|
return;
|
|
1421
1421
|
}
|
|
1422
|
-
if (
|
|
1422
|
+
if (O === n.default || E && S <= 0)
|
|
1423
1423
|
return E = !0, b(null);
|
|
1424
1424
|
R();
|
|
1425
1425
|
}
|
|
@@ -1451,24 +1451,24 @@ function requireEachOfLimit$1() {
|
|
|
1451
1451
|
return (0, E.default)(R, A, k, L);
|
|
1452
1452
|
if ((0, y.isAsyncIterable)(R))
|
|
1453
1453
|
return (0, E.default)(R[Symbol.asyncIterator](), A, k, L);
|
|
1454
|
-
var $ = (0, d.default)(R),
|
|
1454
|
+
var $ = (0, d.default)(R), O = !1, G = !1, q = 0, Y = !1;
|
|
1455
1455
|
function z(X, ee) {
|
|
1456
1456
|
if (!G)
|
|
1457
1457
|
if (q -= 1, X)
|
|
1458
|
-
|
|
1458
|
+
O = !0, L(X);
|
|
1459
1459
|
else if (X === !1)
|
|
1460
|
-
|
|
1460
|
+
O = !0, G = !0;
|
|
1461
1461
|
else {
|
|
1462
|
-
if (ee === x.default ||
|
|
1463
|
-
return
|
|
1462
|
+
if (ee === x.default || O && q <= 0)
|
|
1463
|
+
return O = !0, L(null);
|
|
1464
1464
|
Y || W();
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
1467
|
function W() {
|
|
1468
|
-
for (Y = !0; q < A && !
|
|
1468
|
+
for (Y = !0; q < A && !O; ) {
|
|
1469
1469
|
var X = $();
|
|
1470
1470
|
if (X === null) {
|
|
1471
|
-
|
|
1471
|
+
O = !0, q <= 0 && L(null);
|
|
1472
1472
|
return;
|
|
1473
1473
|
}
|
|
1474
1474
|
q += 1, k(X.value, X.key, (0, m.default)(z));
|
|
@@ -1539,11 +1539,11 @@ function requireEachOf() {
|
|
|
1539
1539
|
function $(G, q, Y) {
|
|
1540
1540
|
return (0, m.default)(G, 1 / 0, q, Y);
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function O(G, q, Y) {
|
|
1543
1543
|
var z = (0, n.default)(G) ? L : $;
|
|
1544
1544
|
return z(G, (0, S.default)(q), Y);
|
|
1545
1545
|
}
|
|
1546
|
-
t.default = (0, R.default)(
|
|
1546
|
+
t.default = (0, R.default)(O, 3), e.exports = t.default;
|
|
1547
1547
|
})(eachOf, eachOf.exports)), eachOf.exports;
|
|
1548
1548
|
}
|
|
1549
1549
|
var parallel$1 = { exports: {} }, hasRequiredParallel$1;
|
|
@@ -1768,7 +1768,7 @@ function coordEach(e, t, r) {
|
|
|
1768
1768
|
e.geometry
|
|
1769
1769
|
) : e, x = b ? b.type === "GeometryCollection" : !1, m = x ? b.geometries.length : 1;
|
|
1770
1770
|
for (var $ = 0; $ < m; $++) {
|
|
1771
|
-
var
|
|
1771
|
+
var O = 0, G = 0;
|
|
1772
1772
|
if (g = x ? b.geometries[$] : b, g !== null) {
|
|
1773
1773
|
y = g.coordinates;
|
|
1774
1774
|
var q = g.type;
|
|
@@ -1782,12 +1782,12 @@ function coordEach(e, t, r) {
|
|
|
1782
1782
|
y,
|
|
1783
1783
|
I,
|
|
1784
1784
|
L,
|
|
1785
|
-
|
|
1785
|
+
O,
|
|
1786
1786
|
G
|
|
1787
1787
|
) === !1
|
|
1788
1788
|
)
|
|
1789
1789
|
return !1;
|
|
1790
|
-
I++,
|
|
1790
|
+
I++, O++;
|
|
1791
1791
|
break;
|
|
1792
1792
|
case "LineString":
|
|
1793
1793
|
case "MultiPoint":
|
|
@@ -1798,14 +1798,14 @@ function coordEach(e, t, r) {
|
|
|
1798
1798
|
y[n],
|
|
1799
1799
|
I,
|
|
1800
1800
|
L,
|
|
1801
|
-
|
|
1801
|
+
O,
|
|
1802
1802
|
G
|
|
1803
1803
|
) === !1
|
|
1804
1804
|
)
|
|
1805
1805
|
return !1;
|
|
1806
|
-
I++, q === "MultiPoint" &&
|
|
1806
|
+
I++, q === "MultiPoint" && O++;
|
|
1807
1807
|
}
|
|
1808
|
-
q === "LineString" &&
|
|
1808
|
+
q === "LineString" && O++;
|
|
1809
1809
|
break;
|
|
1810
1810
|
case "Polygon":
|
|
1811
1811
|
case "MultiLineString":
|
|
@@ -1817,16 +1817,16 @@ function coordEach(e, t, r) {
|
|
|
1817
1817
|
y[n][s],
|
|
1818
1818
|
I,
|
|
1819
1819
|
L,
|
|
1820
|
-
|
|
1820
|
+
O,
|
|
1821
1821
|
G
|
|
1822
1822
|
) === !1
|
|
1823
1823
|
)
|
|
1824
1824
|
return !1;
|
|
1825
1825
|
I++;
|
|
1826
1826
|
}
|
|
1827
|
-
q === "MultiLineString" &&
|
|
1827
|
+
q === "MultiLineString" && O++, q === "Polygon" && G++;
|
|
1828
1828
|
}
|
|
1829
|
-
q === "Polygon" &&
|
|
1829
|
+
q === "Polygon" && O++;
|
|
1830
1830
|
break;
|
|
1831
1831
|
case "MultiPolygon":
|
|
1832
1832
|
for (n = 0; n < y.length; n++) {
|
|
@@ -1838,7 +1838,7 @@ function coordEach(e, t, r) {
|
|
|
1838
1838
|
y[n][s][d],
|
|
1839
1839
|
I,
|
|
1840
1840
|
L,
|
|
1841
|
-
|
|
1841
|
+
O,
|
|
1842
1842
|
G
|
|
1843
1843
|
) === !1
|
|
1844
1844
|
)
|
|
@@ -1847,7 +1847,7 @@ function coordEach(e, t, r) {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
G++;
|
|
1849
1849
|
}
|
|
1850
|
-
|
|
1850
|
+
O++;
|
|
1851
1851
|
}
|
|
1852
1852
|
break;
|
|
1853
1853
|
case "GeometryCollection":
|
|
@@ -2066,8 +2066,8 @@ function requireJsts_min() {
|
|
|
2066
2066
|
};
|
|
2067
2067
|
return { s: v, n: function() {
|
|
2068
2068
|
return f >= h.length ? { done: !0 } : { done: !1, value: h[f++] };
|
|
2069
|
-
}, e: function(
|
|
2070
|
-
throw
|
|
2069
|
+
}, e: function(M) {
|
|
2070
|
+
throw M;
|
|
2071
2071
|
}, f: v };
|
|
2072
2072
|
}
|
|
2073
2073
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
@@ -2077,10 +2077,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2077
2077
|
return { s: function() {
|
|
2078
2078
|
o = o.call(h);
|
|
2079
2079
|
}, n: function() {
|
|
2080
|
-
var
|
|
2081
|
-
return T =
|
|
2082
|
-
}, e: function(
|
|
2083
|
-
N = !0, C =
|
|
2080
|
+
var M = o.next();
|
|
2081
|
+
return T = M.done, M;
|
|
2082
|
+
}, e: function(M) {
|
|
2083
|
+
N = !0, C = M;
|
|
2084
2084
|
}, f: function() {
|
|
2085
2085
|
try {
|
|
2086
2086
|
T || o.return == null || o.return();
|
|
@@ -2182,7 +2182,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2182
2182
|
return f.prototype = Object.create(o.prototype, { constructor: { value: f, enumerable: !1, writable: !0, configurable: !0 } }), S(f, o);
|
|
2183
2183
|
}, $(h);
|
|
2184
2184
|
}
|
|
2185
|
-
var
|
|
2185
|
+
var O = (function() {
|
|
2186
2186
|
function h() {
|
|
2187
2187
|
s(this, h), h.constructor_.apply(this, arguments);
|
|
2188
2188
|
}
|
|
@@ -2228,7 +2228,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2228
2228
|
return 1 - Math.cos(o / 2);
|
|
2229
2229
|
} }]);
|
|
2230
2230
|
})();
|
|
2231
|
-
|
|
2231
|
+
O.CAP_ROUND = 1, O.CAP_FLAT = 2, O.CAP_SQUARE = 3, O.JOIN_ROUND = 1, O.JOIN_MITRE = 2, O.JOIN_BEVEL = 3, O.DEFAULT_QUADRANT_SEGMENTS = 8, O.DEFAULT_MITRE_LIMIT = 5, O.DEFAULT_SIMPLIFY_FACTOR = 0.01;
|
|
2232
2232
|
var G = (function(h) {
|
|
2233
2233
|
function a(o) {
|
|
2234
2234
|
var f;
|
|
@@ -2292,24 +2292,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2292
2292
|
}
|
|
2293
2293
|
return 0;
|
|
2294
2294
|
})(), he.doubleToLongBits = function(h) {
|
|
2295
|
-
var a, o, f, v, C, T, N,
|
|
2296
|
-
if (h < 0 || 1 / h === Number.NEGATIVE_INFINITY ? (T = 1 << 31, h = -h) : T = 0, h === 0) return new Ae(
|
|
2297
|
-
if (h === 1 / 0) return new Ae(
|
|
2298
|
-
if (h != h) return new Ae(
|
|
2299
|
-
if (v = 0, H = 0, (a = se(h)) > 1) if (a <= oe) (v = se(te(a))) <= 20 ? (H = 0,
|
|
2300
|
-
else for (f = a, H = 0; (f = se(o = f / 2)) !== 0; ) v++, H >>>= 1, H |= (1 &
|
|
2295
|
+
var a, o, f, v, C, T, N, M, H;
|
|
2296
|
+
if (h < 0 || 1 / h === Number.NEGATIVE_INFINITY ? (T = 1 << 31, h = -h) : T = 0, h === 0) return new Ae(M = T, H = 0);
|
|
2297
|
+
if (h === 1 / 0) return new Ae(M = 2146435072 | T, H = 0);
|
|
2298
|
+
if (h != h) return new Ae(M = 2146959360, H = 0);
|
|
2299
|
+
if (v = 0, H = 0, (a = se(h)) > 1) if (a <= oe) (v = se(te(a))) <= 20 ? (H = 0, M = a << 20 - v & 1048575) : (H = a % (o = ie(2, f = v - 20)) << 32 - f, M = a / o & 1048575);
|
|
2300
|
+
else for (f = a, H = 0; (f = se(o = f / 2)) !== 0; ) v++, H >>>= 1, H |= (1 & M) << 31, M >>>= 1, o !== f && (M |= 524288);
|
|
2301
2301
|
if (N = v + ee, C = a === 0, a = h - a, v < 52 && a !== 0) for (f = 0; ; ) {
|
|
2302
|
-
if ((o = 2 * a) >= 1 ? (a = o - 1, C ? (N--, C = !1) : (f <<= 1, f |= 1, v++)) : (a = o, C ? --N == 0 && (v++, C = !1) : (f <<= 1, v++)), v === 20)
|
|
2302
|
+
if ((o = 2 * a) >= 1 ? (a = o - 1, C ? (N--, C = !1) : (f <<= 1, f |= 1, v++)) : (a = o, C ? --N == 0 && (v++, C = !1) : (f <<= 1, v++)), v === 20) M |= f, f = 0;
|
|
2303
2303
|
else if (v === 52) {
|
|
2304
2304
|
H |= f;
|
|
2305
2305
|
break;
|
|
2306
2306
|
}
|
|
2307
2307
|
if (o === 1) {
|
|
2308
|
-
v < 20 ?
|
|
2308
|
+
v < 20 ? M |= f << 20 - v : v < 52 && (H |= f << 52 - v);
|
|
2309
2309
|
break;
|
|
2310
2310
|
}
|
|
2311
2311
|
}
|
|
2312
|
-
return
|
|
2312
|
+
return M |= N << 20, new Ae(M |= T, H);
|
|
2313
2313
|
}, he.longBitsToDouble = function(h) {
|
|
2314
2314
|
var a, o, f, v, C = h.high, T = h.low, N = C & 1 << 31 ? -1 : 1;
|
|
2315
2315
|
for (f = ((2146435072 & C) >> 20) - ee, v = 0, o = 1 << 19, a = 1; a <= 20; a++) C & o && (v += ie(2, -a)), o >>>= 1;
|
|
@@ -2631,8 +2631,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2631
2631
|
var f = arguments[0], v = arguments[1];
|
|
2632
2632
|
this.init(f.x, v.x, f.y, v.y);
|
|
2633
2633
|
} else if (arguments.length === 4) {
|
|
2634
|
-
var C = arguments[0], T = arguments[1], N = arguments[2],
|
|
2635
|
-
C < T ? (this._minx = C, this._maxx = T) : (this._minx = T, this._maxx = C), N <
|
|
2634
|
+
var C = arguments[0], T = arguments[1], N = arguments[2], M = arguments[3];
|
|
2635
|
+
C < T ? (this._minx = C, this._maxx = T) : (this._minx = T, this._maxx = C), N < M ? (this._miny = N, this._maxy = M) : (this._miny = M, this._maxy = N);
|
|
2636
2636
|
}
|
|
2637
2637
|
} }, { key: "getMaxY", value: function() {
|
|
2638
2638
|
return this._maxy;
|
|
@@ -2661,8 +2661,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2661
2661
|
var f = arguments[0], v = arguments[1];
|
|
2662
2662
|
this.init(f.x, v.x, f.y, v.y);
|
|
2663
2663
|
} else if (arguments.length === 4) {
|
|
2664
|
-
var C = arguments[0], T = arguments[1], N = arguments[2],
|
|
2665
|
-
this.init(C, T, N,
|
|
2664
|
+
var C = arguments[0], T = arguments[1], N = arguments[2], M = arguments[3];
|
|
2665
|
+
this.init(C, T, N, M);
|
|
2666
2666
|
}
|
|
2667
2667
|
} }, { key: "intersects", value: function() {
|
|
2668
2668
|
if (arguments.length === 3) {
|
|
@@ -2670,8 +2670,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2670
2670
|
return f.x >= (a.x < o.x ? a.x : o.x) && f.x <= (a.x > o.x ? a.x : o.x) && f.y >= (a.y < o.y ? a.y : o.y) && f.y <= (a.y > o.y ? a.y : o.y);
|
|
2671
2671
|
}
|
|
2672
2672
|
if (arguments.length === 4) {
|
|
2673
|
-
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3],
|
|
2674
|
-
return !(re > H) && !(ne <
|
|
2673
|
+
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3], M = Math.min(T.x, N.x), H = Math.max(T.x, N.x), re = Math.min(v.x, C.x), ne = Math.max(v.x, C.x);
|
|
2674
|
+
return !(re > H) && !(ne < M) && (M = Math.min(T.y, N.y), H = Math.max(T.y, N.y), re = Math.min(v.y, C.y), ne = Math.max(v.y, C.y), !(re > H) && !(ne < M));
|
|
2675
2675
|
}
|
|
2676
2676
|
} }]);
|
|
2677
2677
|
})(), fe = (function() {
|
|
@@ -2971,14 +2971,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2971
2971
|
} }, { key: "extractSignificantDigits", value: function(a, o) {
|
|
2972
2972
|
var f = this.abs(), v = h.magnitude(f._hi), C = h.TEN.pow(v);
|
|
2973
2973
|
(f = f.divide(C)).gt(h.TEN) ? (f = f.divide(h.TEN), v += 1) : f.lt(h.ONE) && (f = f.multiply(h.TEN), v -= 1);
|
|
2974
|
-
for (var T = v + 1, N = new ct(),
|
|
2974
|
+
for (var T = v + 1, N = new ct(), M = h.MAX_PRINT_DIGITS - 1, H = 0; H <= M; H++) {
|
|
2975
2975
|
a && H === T && N.append(".");
|
|
2976
2976
|
var re = Math.trunc(f._hi);
|
|
2977
2977
|
if (re < 0) break;
|
|
2978
2978
|
var ne = !1, ce = 0;
|
|
2979
2979
|
re > 9 ? (ne = !0, ce = "9") : ce = "0" + re, N.append(ce), f = f.subtract(h.valueOf(re)).multiply(h.TEN), ne && f.selfAdd(h.TEN);
|
|
2980
2980
|
var Ee = !0, De = h.magnitude(f._hi);
|
|
2981
|
-
if (De < 0 && Math.abs(De) >=
|
|
2981
|
+
if (De < 0 && Math.abs(De) >= M - H && (Ee = !1), !Ee) break;
|
|
2982
2982
|
}
|
|
2983
2983
|
return o[0] = v, N.toString();
|
|
2984
2984
|
} }, { key: "sqr", value: function() {
|
|
@@ -3025,15 +3025,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3025
3025
|
return this.selfDivide(o, 0);
|
|
3026
3026
|
}
|
|
3027
3027
|
} else if (arguments.length === 2) {
|
|
3028
|
-
var f, v, C, T, N = arguments[0],
|
|
3029
|
-
return C = this._hi / N, ce = (H = (ne = h.SPLIT * C) - (H = ne - C)) * (re = (ce = h.SPLIT * N) - (re = ce - N)) - (T = C * N) + H * (v = N - re) + (f = C - H) * re + f * v, ce = C + (ne = (this._hi - T - ce + this._lo - C *
|
|
3028
|
+
var f, v, C, T, N = arguments[0], M = arguments[1], H = null, re = null, ne = null, ce = null;
|
|
3029
|
+
return C = this._hi / N, ce = (H = (ne = h.SPLIT * C) - (H = ne - C)) * (re = (ce = h.SPLIT * N) - (re = ce - N)) - (T = C * N) + H * (v = N - re) + (f = C - H) * re + f * v, ce = C + (ne = (this._hi - T - ce + this._lo - C * M) / N), this._hi = ce, this._lo = C - ce + ne, this;
|
|
3030
3030
|
}
|
|
3031
3031
|
} }, { key: "dump", value: function() {
|
|
3032
3032
|
return "DD<" + this._hi + ", " + this._lo + ">";
|
|
3033
3033
|
} }, { key: "divide", value: function() {
|
|
3034
3034
|
if (arguments[0] instanceof h) {
|
|
3035
|
-
var a, o, f, v, C = arguments[0], T = null, N = null,
|
|
3036
|
-
return a = (f = this._hi / C._hi) - (T = (
|
|
3035
|
+
var a, o, f, v, C = arguments[0], T = null, N = null, M = null, H = null;
|
|
3036
|
+
return a = (f = this._hi / C._hi) - (T = (M = h.SPLIT * f) - (T = M - f)), H = T * (N = (H = h.SPLIT * C._hi) - (N = H - C._hi)) - (v = f * C._hi) + T * (o = C._hi - N) + a * N + a * o, new h(H = f + (M = (this._hi - v - H + this._lo - f * C._lo) / C._hi), f - H + M);
|
|
3037
3037
|
}
|
|
3038
3038
|
if (typeof arguments[0] == "number") {
|
|
3039
3039
|
var re = arguments[0];
|
|
@@ -3079,8 +3079,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3079
3079
|
return this.selfAdd(a._hi, a._lo);
|
|
3080
3080
|
}
|
|
3081
3081
|
if (typeof arguments[0] == "number") {
|
|
3082
|
-
var o, f, v, C, T, N = arguments[0],
|
|
3083
|
-
return
|
|
3082
|
+
var o, f, v, C, T, N = arguments[0], M = null;
|
|
3083
|
+
return M = (v = this._hi + N) - (C = v - this._hi), f = (T = (M = N - C + (this._hi - M)) + this._lo) + (v - (o = v + T)), this._hi = o + f, this._lo = f + (o - this._hi), this;
|
|
3084
3084
|
}
|
|
3085
3085
|
} else if (arguments.length === 2) {
|
|
3086
3086
|
var H, re, ne, ce, Ee = arguments[0], De = arguments[1], ke = null, $e = null, Ge = null;
|
|
@@ -3099,9 +3099,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3099
3099
|
return this.selfMultiply(o, 0);
|
|
3100
3100
|
}
|
|
3101
3101
|
} else if (arguments.length === 2) {
|
|
3102
|
-
var f, v, C = arguments[0], T = arguments[1], N = null,
|
|
3103
|
-
N = (H = h.SPLIT * this._hi) - this._hi, re = h.SPLIT * C, N = H - N, f = this._hi - N,
|
|
3104
|
-
var ne = (H = this._hi * C) + (re = N * (
|
|
3102
|
+
var f, v, C = arguments[0], T = arguments[1], N = null, M = null, H = null, re = null;
|
|
3103
|
+
N = (H = h.SPLIT * this._hi) - this._hi, re = h.SPLIT * C, N = H - N, f = this._hi - N, M = re - C;
|
|
3104
|
+
var ne = (H = this._hi * C) + (re = N * (M = re - M) - H + N * (v = C - M) + f * M + f * v + (this._hi * T + this._lo * C)), ce = re + (N = H - ne);
|
|
3105
3105
|
return this._hi = ne, this._lo = ce, this;
|
|
3106
3106
|
}
|
|
3107
3107
|
} }, { key: "selfSqr", value: function() {
|
|
@@ -3147,9 +3147,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3147
3147
|
}
|
|
3148
3148
|
return this.isNegative() ? "-" + C : C;
|
|
3149
3149
|
} }, { key: "reciprocal", value: function() {
|
|
3150
|
-
var a, o, f, v, C = null, T = null, N = null,
|
|
3151
|
-
a = (f = 1 / this._hi) - (C = (N = h.SPLIT * f) - (C = N - f)), T = (
|
|
3152
|
-
var H = f + (N = (1 - (v = f * this._hi) - (
|
|
3150
|
+
var a, o, f, v, C = null, T = null, N = null, M = null;
|
|
3151
|
+
a = (f = 1 / this._hi) - (C = (N = h.SPLIT * f) - (C = N - f)), T = (M = h.SPLIT * this._hi) - this._hi;
|
|
3152
|
+
var H = f + (N = (1 - (v = f * this._hi) - (M = C * (T = M - T) - v + C * (o = this._hi - T) + a * T + a * o) - f * this._lo) / this._hi);
|
|
3153
3153
|
return new h(H, f - H + N);
|
|
3154
3154
|
} }, { key: "toSciNotation", value: function() {
|
|
3155
3155
|
if (this.isZero()) return h.SCI_NOT_ZERO;
|
|
@@ -3242,7 +3242,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3242
3242
|
var C = a.charAt(o);
|
|
3243
3243
|
C !== "-" && C !== "+" || (o++, C === "-" && (v = !0));
|
|
3244
3244
|
}
|
|
3245
|
-
for (var T = new h(), N = 0,
|
|
3245
|
+
for (var T = new h(), N = 0, M = 0, H = 0, re = !1; !(o >= f); ) {
|
|
3246
3246
|
var ne = a.charAt(o);
|
|
3247
3247
|
if (o++, qt.isDigit(ne)) {
|
|
3248
3248
|
var ce = ne - "0";
|
|
@@ -3260,12 +3260,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3260
3260
|
}
|
|
3261
3261
|
throw new NumberFormatException("Unexpected character '" + ne + "' at position " + o + " in string " + a);
|
|
3262
3262
|
}
|
|
3263
|
-
|
|
3263
|
+
M = N, re = !0;
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
3266
3266
|
var De = T;
|
|
3267
|
-
re || (
|
|
3268
|
-
var ke = N -
|
|
3267
|
+
re || (M = N);
|
|
3268
|
+
var ke = N - M - H;
|
|
3269
3269
|
if (ke === 0) De = T;
|
|
3270
3270
|
else if (ke > 0) {
|
|
3271
3271
|
var $e = h.TEN.pow(ke);
|
|
@@ -3295,19 +3295,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3295
3295
|
return m(h, null, [{ key: "orientationIndex", value: function(a, o, f) {
|
|
3296
3296
|
var v = h.orientationIndexFilter(a, o, f);
|
|
3297
3297
|
if (v <= 1) return v;
|
|
3298
|
-
var C = Re.valueOf(o.x).selfAdd(-a.x), T = Re.valueOf(o.y).selfAdd(-a.y), N = Re.valueOf(f.x).selfAdd(-o.x),
|
|
3299
|
-
return C.selfMultiply(
|
|
3298
|
+
var C = Re.valueOf(o.x).selfAdd(-a.x), T = Re.valueOf(o.y).selfAdd(-a.y), N = Re.valueOf(f.x).selfAdd(-o.x), M = Re.valueOf(f.y).selfAdd(-o.y);
|
|
3299
|
+
return C.selfMultiply(M).selfSubtract(T.selfMultiply(N)).signum();
|
|
3300
3300
|
} }, { key: "signOfDet2x2", value: function() {
|
|
3301
3301
|
if (arguments[3] instanceof Re && arguments[2] instanceof Re && arguments[0] instanceof Re && arguments[1] instanceof Re) {
|
|
3302
3302
|
var a = arguments[1], o = arguments[2], f = arguments[3];
|
|
3303
3303
|
return arguments[0].multiply(f).selfSubtract(a.multiply(o)).signum();
|
|
3304
3304
|
}
|
|
3305
3305
|
if (typeof arguments[3] == "number" && typeof arguments[2] == "number" && typeof arguments[0] == "number" && typeof arguments[1] == "number") {
|
|
3306
|
-
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3],
|
|
3307
|
-
return
|
|
3306
|
+
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3], M = Re.valueOf(v), H = Re.valueOf(C), re = Re.valueOf(T), ne = Re.valueOf(N);
|
|
3307
|
+
return M.multiply(ne).selfSubtract(H.multiply(re)).signum();
|
|
3308
3308
|
}
|
|
3309
3309
|
} }, { key: "intersection", value: function(a, o, f, v) {
|
|
3310
|
-
var C = new Re(a.y).selfSubtract(o.y), T = new Re(o.x).selfSubtract(a.x), N = new Re(a.x).selfMultiply(o.y).selfSubtract(new Re(o.x).selfMultiply(a.y)),
|
|
3310
|
+
var C = new Re(a.y).selfSubtract(o.y), T = new Re(o.x).selfSubtract(a.x), N = new Re(a.x).selfMultiply(o.y).selfSubtract(new Re(o.x).selfMultiply(a.y)), M = new Re(f.y).selfSubtract(v.y), H = new Re(v.x).selfSubtract(f.x), re = new Re(f.x).selfMultiply(v.y).selfSubtract(new Re(v.x).selfMultiply(f.y)), ne = T.multiply(re).selfSubtract(H.multiply(N)), ce = M.multiply(N).selfSubtract(C.multiply(re)), Ee = C.multiply(H).selfSubtract(M.multiply(T)), De = ne.selfDivide(Ee).doubleValue(), ke = ce.selfDivide(Ee).doubleValue();
|
|
3311
3311
|
return he.isNaN(De) || he.isInfinite(De) || he.isNaN(ke) || he.isInfinite(ke) ? null : new Q(De, ke);
|
|
3312
3312
|
} }, { key: "orientationIndexFilter", value: function(a, o, f) {
|
|
3313
3313
|
var v = null, C = (a.x - f.x) * (o.y - f.y), T = (a.y - f.y) * (o.x - f.x), N = C - T;
|
|
@@ -3318,8 +3318,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3318
3318
|
if (!(C < 0) || T >= 0) return h.signum(N);
|
|
3319
3319
|
v = -C - T;
|
|
3320
3320
|
}
|
|
3321
|
-
var
|
|
3322
|
-
return N >=
|
|
3321
|
+
var M = h.DP_SAFE_EPSILON * v;
|
|
3322
|
+
return N >= M || -N >= M ? h.signum(N) : 2;
|
|
3323
3323
|
} }, { key: "signum", value: function(a) {
|
|
3324
3324
|
return a > 0 ? 1 : a < 0 ? -1 : 0;
|
|
3325
3325
|
} }]);
|
|
@@ -3377,11 +3377,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3377
3377
|
do
|
|
3378
3378
|
(N -= 1) < 0 && (N = o);
|
|
3379
3379
|
while (a[N].equals2D(f) && N !== v);
|
|
3380
|
-
var
|
|
3380
|
+
var M = v;
|
|
3381
3381
|
do
|
|
3382
|
-
|
|
3383
|
-
while (a[
|
|
3384
|
-
var H = a[N], re = a[
|
|
3382
|
+
M = (M + 1) % o;
|
|
3383
|
+
while (a[M].equals2D(f) && M !== v);
|
|
3384
|
+
var H = a[N], re = a[M];
|
|
3385
3385
|
if (H.equals2D(f) || re.equals2D(f) || H.equals2D(re)) return !1;
|
|
3386
3386
|
var ne = h.index(H, f, re);
|
|
3387
3387
|
return ne === 0 ? H.x > re.x : ne > 0;
|
|
@@ -3606,7 +3606,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3606
3606
|
return m((function h() {
|
|
3607
3607
|
s(this, h);
|
|
3608
3608
|
}), null, [{ key: "intersection", value: function(h, a, o, f) {
|
|
3609
|
-
var v = h.x < a.x ? h.x : a.x, C = h.y < a.y ? h.y : a.y, T = h.x > a.x ? h.x : a.x, N = h.y > a.y ? h.y : a.y,
|
|
3609
|
+
var v = h.x < a.x ? h.x : a.x, C = h.y < a.y ? h.y : a.y, T = h.x > a.x ? h.x : a.x, N = h.y > a.y ? h.y : a.y, M = o.x < f.x ? o.x : f.x, H = o.y < f.y ? o.y : f.y, re = o.x > f.x ? o.x : f.x, ne = o.y > f.y ? o.y : f.y, ce = ((v > M ? v : M) + (T < re ? T : re)) / 2, Ee = ((C > H ? C : H) + (N < ne ? N : ne)) / 2, De = h.x - ce, ke = h.y - Ee, $e = a.x - ce, Ge = a.y - Ee, He = o.x - ce, et = o.y - Ee, it = f.x - ce, Yt = f.y - Ee, fr = ke - Ge, dn = $e - De, fn = De * Ge - $e * ke, hn = et - Yt, pn = it - He, gn = He * Yt - it * et, mn = fr * pn - hn * dn, wr = (dn * gn - pn * fn) / mn, kr = (hn * fn - fr * gn) / mn;
|
|
3610
3610
|
return he.isNaN(wr) || he.isInfinite(wr) || he.isNaN(kr) || he.isInfinite(kr) ? null : new Q(wr + ce, kr + Ee);
|
|
3611
3611
|
} }]);
|
|
3612
3612
|
})(), Qe = (function() {
|
|
@@ -3665,8 +3665,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3665
3665
|
var T = (o.x - a.x) * (v.y - f.y) - (o.y - a.y) * (v.x - f.x);
|
|
3666
3666
|
if (T === 0) C = !0;
|
|
3667
3667
|
else {
|
|
3668
|
-
var N = (a.y - f.y) * (v.x - f.x) - (a.x - f.x) * (v.y - f.y),
|
|
3669
|
-
(H < 0 || H > 1 ||
|
|
3668
|
+
var N = (a.y - f.y) * (v.x - f.x) - (a.x - f.x) * (v.y - f.y), M = ((a.y - f.y) * (o.x - a.x) - (a.x - f.x) * (o.y - a.y)) / T, H = N / T;
|
|
3669
|
+
(H < 0 || H > 1 || M < 0 || M > 1) && (C = !0);
|
|
3670
3670
|
}
|
|
3671
3671
|
} else C = !0;
|
|
3672
3672
|
return C ? mt.min(h.pointToSegment(a, f, v), h.pointToSegment(o, f, v), h.pointToSegment(f, a, o), h.pointToSegment(v, a, o)) : 0;
|
|
@@ -3715,8 +3715,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3715
3715
|
h.getCoordinate(0, f);
|
|
3716
3716
|
for (var v = f.x, C = f.y, T = 1; T < a; T++) {
|
|
3717
3717
|
h.getCoordinate(T, f);
|
|
3718
|
-
var N = f.x,
|
|
3719
|
-
o += Math.sqrt(H * H + re * re), v = N, C =
|
|
3718
|
+
var N = f.x, M = f.y, H = N - v, re = M - C;
|
|
3719
|
+
o += Math.sqrt(H * H + re * re), v = N, C = M;
|
|
3720
3720
|
}
|
|
3721
3721
|
return o;
|
|
3722
3722
|
} }]);
|
|
@@ -3742,17 +3742,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3742
3742
|
h.scroll(f, C);
|
|
3743
3743
|
}
|
|
3744
3744
|
} else if (arguments.length === 3) {
|
|
3745
|
-
var T = arguments[0], N = arguments[1],
|
|
3745
|
+
var T = arguments[0], N = arguments[1], M = arguments[2];
|
|
3746
3746
|
if (N <= 0) return null;
|
|
3747
|
-
for (var H = T.copy(), re =
|
|
3748
|
-
if (
|
|
3747
|
+
for (var H = T.copy(), re = M ? T.size() - 1 : T.size(), ne = 0; ne < re; ne++) for (var ce = 0; ce < T.getDimension(); ce++) T.setOrdinate(ne, ce, H.getOrdinate((N + ne) % re, ce));
|
|
3748
|
+
if (M) for (var Ee = 0; Ee < T.getDimension(); Ee++) T.setOrdinate(re, Ee, T.getOrdinate(0, Ee));
|
|
3749
3749
|
}
|
|
3750
3750
|
} }, { key: "isEqual", value: function(a, o) {
|
|
3751
3751
|
var f = a.size();
|
|
3752
3752
|
if (f !== o.size()) return !1;
|
|
3753
3753
|
for (var v = Math.min(a.getDimension(), o.getDimension()), C = 0; C < f; C++) for (var T = 0; T < v; T++) {
|
|
3754
|
-
var N = a.getOrdinate(C, T),
|
|
3755
|
-
if (a.getOrdinate(C, T) !== o.getOrdinate(C, T) && (!he.isNaN(N) || !he.isNaN(
|
|
3754
|
+
var N = a.getOrdinate(C, T), M = o.getOrdinate(C, T);
|
|
3755
|
+
if (a.getOrdinate(C, T) !== o.getOrdinate(C, T) && (!he.isNaN(N) || !he.isNaN(M))) return !1;
|
|
3756
3756
|
}
|
|
3757
3757
|
return !0;
|
|
3758
3758
|
} }, { key: "minCoordinateIndex", value: function() {
|
|
@@ -3838,7 +3838,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3838
3838
|
} }]);
|
|
3839
3839
|
})();
|
|
3840
3840
|
ye.P = 0, ye.L = 1, ye.A = 2, ye.FALSE = -1, ye.TRUE = -2, ye.DONTCARE = -3, ye.SYM_FALSE = "F", ye.SYM_TRUE = "T", ye.SYM_DONTCARE = "*", ye.SYM_P = "0", ye.SYM_L = "1", ye.SYM_A = "2";
|
|
3841
|
-
var
|
|
3841
|
+
var F = (function() {
|
|
3842
3842
|
return m((function h() {
|
|
3843
3843
|
s(this, h);
|
|
3844
3844
|
}), [{ key: "filter", value: function(h) {
|
|
@@ -3923,7 +3923,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3923
3923
|
if (this._points.size() === 0) return null;
|
|
3924
3924
|
for (var C = 0; C < this._points.size() && (v.filter(this._points, C), !v.isDone()); C++) ;
|
|
3925
3925
|
v.isGeometryChanged() && this.geometryChanged();
|
|
3926
|
-
} else Le(arguments[0],
|
|
3926
|
+
} else Le(arguments[0], F) ? arguments[0].filter(this) : Le(arguments[0], Y) && arguments[0].filter(this);
|
|
3927
3927
|
} }, { key: "getBoundary", value: function() {
|
|
3928
3928
|
throw new Ve();
|
|
3929
3929
|
} }, { key: "isEquivalentClass", value: function(o) {
|
|
@@ -4011,7 +4011,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4011
4011
|
var f = arguments[0];
|
|
4012
4012
|
if (this.isEmpty()) return null;
|
|
4013
4013
|
f.filter(this._coordinates, 0), f.isGeometryChanged() && this.geometryChanged();
|
|
4014
|
-
} else Le(arguments[0],
|
|
4014
|
+
} else Le(arguments[0], F) ? arguments[0].filter(this) : Le(arguments[0], Y) && arguments[0].filter(this);
|
|
4015
4015
|
} }, { key: "getBoundary", value: function() {
|
|
4016
4016
|
return this.getFactory().createGeometryCollection();
|
|
4017
4017
|
} }, { key: "getGeometryType", value: function() {
|
|
@@ -4058,13 +4058,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4058
4058
|
return o / 2;
|
|
4059
4059
|
}
|
|
4060
4060
|
if (Le(arguments[0], Fe)) {
|
|
4061
|
-
var N = arguments[0],
|
|
4062
|
-
if (
|
|
4061
|
+
var N = arguments[0], M = N.size();
|
|
4062
|
+
if (M < 3) return 0;
|
|
4063
4063
|
var H = new Q(), re = new Q(), ne = new Q();
|
|
4064
4064
|
N.getCoordinate(0, re), N.getCoordinate(1, ne);
|
|
4065
4065
|
var ce = re.x;
|
|
4066
4066
|
ne.x -= ce;
|
|
4067
|
-
for (var Ee = 0, De = 1; De <
|
|
4067
|
+
for (var Ee = 0, De = 1; De < M - 1; De++) H.y = re.y, re.x = ne.x, re.y = ne.y, N.getCoordinate(De + 1, ne), ne.x -= ce, Ee += re.x * (H.y - ne.y);
|
|
4068
4068
|
return Ee / 2;
|
|
4069
4069
|
}
|
|
4070
4070
|
} }]);
|
|
@@ -4100,9 +4100,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4100
4100
|
N.sort((function(ce, Ee) {
|
|
4101
4101
|
return h[3].compare(ce, Ee);
|
|
4102
4102
|
}));
|
|
4103
|
-
var
|
|
4103
|
+
var M = a.slice(0, arguments[1]).concat(N, a.slice(arguments[2], a.length));
|
|
4104
4104
|
a.splice(0, a.length);
|
|
4105
|
-
var H, re = y(
|
|
4105
|
+
var H, re = y(M);
|
|
4106
4106
|
try {
|
|
4107
4107
|
for (re.s(); !(H = re.n()).done; ) {
|
|
4108
4108
|
var ne = H.value;
|
|
@@ -4142,7 +4142,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4142
4142
|
} }, { key: "getCoordinates", value: function() {
|
|
4143
4143
|
if (this.isEmpty()) return [];
|
|
4144
4144
|
for (var o = new Array(this.getNumPoints()).fill(null), f = -1, v = this._shell.getCoordinates(), C = 0; C < v.length; C++) o[++f] = v[C];
|
|
4145
|
-
for (var T = 0; T < this._holes.length; T++) for (var N = this._holes[T].getCoordinates(),
|
|
4145
|
+
for (var T = 0; T < this._holes.length; T++) for (var N = this._holes[T].getCoordinates(), M = 0; M < N.length; M++) o[++f] = N[M];
|
|
4146
4146
|
return o;
|
|
4147
4147
|
} }, { key: "getArea", value: function() {
|
|
4148
4148
|
var o = 0;
|
|
@@ -4160,10 +4160,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4160
4160
|
var T = o.getY(v);
|
|
4161
4161
|
if (T !== f.getMinY() && T !== f.getMaxY()) return !1;
|
|
4162
4162
|
}
|
|
4163
|
-
for (var N = o.getX(0),
|
|
4163
|
+
for (var N = o.getX(0), M = o.getY(0), H = 1; H <= 4; H++) {
|
|
4164
4164
|
var re = o.getX(H), ne = o.getY(H);
|
|
4165
|
-
if (re !== N == (ne !==
|
|
4166
|
-
N = re,
|
|
4165
|
+
if (re !== N == (ne !== M)) return !1;
|
|
4166
|
+
N = re, M = ne;
|
|
4167
4167
|
}
|
|
4168
4168
|
return !0;
|
|
4169
4169
|
} }, { key: "equalsExact", value: function() {
|
|
@@ -4219,7 +4219,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4219
4219
|
return f.compareToSameClass(v);
|
|
4220
4220
|
}
|
|
4221
4221
|
if (arguments.length === 2) {
|
|
4222
|
-
var C = arguments[1], T = arguments[0], N = this._shell,
|
|
4222
|
+
var C = arguments[1], T = arguments[0], N = this._shell, M = T._shell, H = N.compareToSameClass(M, C);
|
|
4223
4223
|
if (H !== 0) return H;
|
|
4224
4224
|
for (var re = this.getNumInteriorRing(), ne = T.getNumInteriorRing(), ce = 0; ce < re && ce < ne; ) {
|
|
4225
4225
|
var Ee = this.getInteriorRingN(ce), De = T.getInteriorRingN(ce), ke = Ee.compareToSameClass(De, C);
|
|
@@ -4237,7 +4237,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4237
4237
|
var v = arguments[0];
|
|
4238
4238
|
if (this._shell.apply(v), !v.isDone()) for (var C = 0; C < this._holes.length && (this._holes[C].apply(v), !v.isDone()); C++) ;
|
|
4239
4239
|
v.isGeometryChanged() && this.geometryChanged();
|
|
4240
|
-
} else if (Le(arguments[0],
|
|
4240
|
+
} else if (Le(arguments[0], F))
|
|
4241
4241
|
arguments[0].filter(this);
|
|
4242
4242
|
else if (Le(arguments[0], Y)) {
|
|
4243
4243
|
var T = arguments[0];
|
|
@@ -4387,12 +4387,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4387
4387
|
return this.compare(f, v);
|
|
4388
4388
|
}
|
|
4389
4389
|
if (arguments.length === 2) {
|
|
4390
|
-
for (var C = arguments[1], T = arguments[0], N = this.getNumGeometries(),
|
|
4390
|
+
for (var C = arguments[1], T = arguments[0], N = this.getNumGeometries(), M = T.getNumGeometries(), H = 0; H < N && H < M; ) {
|
|
4391
4391
|
var re = this.getGeometryN(H), ne = T.getGeometryN(H), ce = re.compareToSameClass(ne, C);
|
|
4392
4392
|
if (ce !== 0) return ce;
|
|
4393
4393
|
H++;
|
|
4394
4394
|
}
|
|
4395
|
-
return H < N ? 1 : H <
|
|
4395
|
+
return H < N ? 1 : H < M ? -1 : 0;
|
|
4396
4396
|
}
|
|
4397
4397
|
} }, { key: "apply", value: function() {
|
|
4398
4398
|
if (Le(arguments[0], Ft)) for (var o = arguments[0], f = 0; f < this._geometries.length; f++) this._geometries[f].apply(o);
|
|
@@ -4401,14 +4401,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4401
4401
|
if (this._geometries.length === 0) return null;
|
|
4402
4402
|
for (var C = 0; C < this._geometries.length && (this._geometries[C].apply(v), !v.isDone()); C++) ;
|
|
4403
4403
|
v.isGeometryChanged() && this.geometryChanged();
|
|
4404
|
-
} else if (Le(arguments[0],
|
|
4404
|
+
} else if (Le(arguments[0], F)) {
|
|
4405
4405
|
var T = arguments[0];
|
|
4406
4406
|
T.filter(this);
|
|
4407
4407
|
for (var N = 0; N < this._geometries.length; N++) this._geometries[N].apply(T);
|
|
4408
4408
|
} else if (Le(arguments[0], Y)) {
|
|
4409
|
-
var
|
|
4410
|
-
|
|
4411
|
-
for (var H = 0; H < this._geometries.length; H++) this._geometries[H].apply(
|
|
4409
|
+
var M = arguments[0];
|
|
4410
|
+
M.filter(this);
|
|
4411
|
+
for (var H = 0; H < this._geometries.length; H++) this._geometries[H].apply(M);
|
|
4412
4412
|
}
|
|
4413
4413
|
} }, { key: "getBoundary", value: function() {
|
|
4414
4414
|
return fe.checkNotGeometryCollection(this), ve.shouldNeverReachHere(), null;
|
|
@@ -4722,9 +4722,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4722
4722
|
}
|
|
4723
4723
|
} else if (arguments.length === 3) {
|
|
4724
4724
|
if (typeof arguments[2] == "boolean" && arguments[0] instanceof Array && typeof arguments[1] == "boolean") {
|
|
4725
|
-
var
|
|
4726
|
-
if (arguments[2]) for (var re = 0; re <
|
|
4727
|
-
else for (var ne =
|
|
4725
|
+
var M = arguments[0], H = arguments[1];
|
|
4726
|
+
if (arguments[2]) for (var re = 0; re < M.length; re++) this.add(M[re], H);
|
|
4727
|
+
else for (var ne = M.length - 1; ne >= 0; ne--) this.add(M[ne], H);
|
|
4728
4728
|
return !0;
|
|
4729
4729
|
}
|
|
4730
4730
|
if (typeof arguments[2] == "boolean" && Number.isInteger(arguments[0]) && arguments[1] instanceof Q) {
|
|
@@ -4830,7 +4830,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4830
4830
|
for (var a = arguments[0], o = new Array(a.length).fill(null), f = 0; f < a.length; f++) o[f] = a[f].copy();
|
|
4831
4831
|
return o;
|
|
4832
4832
|
}
|
|
4833
|
-
if (arguments.length === 5) for (var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3],
|
|
4833
|
+
if (arguments.length === 5) for (var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3], M = arguments[4], H = 0; H < M; H++) T[N + H] = v[C + H].copy();
|
|
4834
4834
|
} }, { key: "isEqualReversed", value: function(a, o) {
|
|
4835
4835
|
for (var f = 0; f < a.length; f++) {
|
|
4836
4836
|
var v = a[f], C = o[a.length - f - 1];
|
|
@@ -4910,7 +4910,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4910
4910
|
if (o.length < f.length) return -1;
|
|
4911
4911
|
if (o.length > f.length) return 1;
|
|
4912
4912
|
if (o.length === 0) return 0;
|
|
4913
|
-
for (var v = qe.increasingDirection(o), C = qe.increasingDirection(f), T = v > 0 ? 0 : o.length - 1, N = C > 0 ? 0 : o.length - 1,
|
|
4913
|
+
for (var v = qe.increasingDirection(o), C = qe.increasingDirection(f), T = v > 0 ? 0 : o.length - 1, N = C > 0 ? 0 : o.length - 1, M = 0; M < o.length; M++) {
|
|
4914
4914
|
var H = o[T].compareTo(f[N]);
|
|
4915
4915
|
if (H !== 0) return H;
|
|
4916
4916
|
T += v, N += C;
|
|
@@ -5024,9 +5024,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5024
5024
|
var T = arguments[0], N = arguments[1];
|
|
5025
5025
|
h.constructor_.call(this, T, N, qe.measures(T));
|
|
5026
5026
|
} else if (Number.isInteger(arguments[0]) && Number.isInteger(arguments[1])) {
|
|
5027
|
-
var
|
|
5028
|
-
this._coordinates = new Array(
|
|
5029
|
-
for (var re = 0; re <
|
|
5027
|
+
var M = arguments[0], H = arguments[1];
|
|
5028
|
+
this._coordinates = new Array(M).fill(null), this._dimension = H;
|
|
5029
|
+
for (var re = 0; re < M; re++) this._coordinates[re] = ft.create(H);
|
|
5030
5030
|
}
|
|
5031
5031
|
} else if (arguments.length === 3) {
|
|
5032
5032
|
if (Number.isInteger(arguments[2]) && arguments[0] instanceof Array && Number.isInteger(arguments[1])) {
|
|
@@ -5270,14 +5270,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5270
5270
|
}
|
|
5271
5271
|
if (o === null) return this.createGeometryCollection();
|
|
5272
5272
|
if (f || v) return this.createGeometryCollection(h.toGeometryArray(a));
|
|
5273
|
-
var
|
|
5273
|
+
var M = a.iterator().next();
|
|
5274
5274
|
if (a.size() > 1) {
|
|
5275
|
-
if (
|
|
5276
|
-
if (
|
|
5277
|
-
if (
|
|
5278
|
-
ve.shouldNeverReachHere("Unhandled geometry type: " +
|
|
5275
|
+
if (M instanceof Je) return this.createMultiPolygon(h.toPolygonArray(a));
|
|
5276
|
+
if (M instanceof J) return this.createMultiLineString(h.toLineStringArray(a));
|
|
5277
|
+
if (M instanceof ge) return this.createMultiPoint(h.toPointArray(a));
|
|
5278
|
+
ve.shouldNeverReachHere("Unhandled geometry type: " + M.getGeometryType());
|
|
5279
5279
|
}
|
|
5280
|
-
return
|
|
5280
|
+
return M;
|
|
5281
5281
|
} }, { key: "createMultiPointFromCoords", value: function(a) {
|
|
5282
5282
|
return this.createMultiPoint(a !== null ? this.getCoordinateSequenceFactory().create(a) : null);
|
|
5283
5283
|
} }, { key: "createPoint", value: function() {
|
|
@@ -5540,8 +5540,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5540
5540
|
var N = this.parseLineStringText_().map(a);
|
|
5541
5541
|
return h.createLineString(N);
|
|
5542
5542
|
case "LINEARRING":
|
|
5543
|
-
var
|
|
5544
|
-
return h.createLinearRing(
|
|
5543
|
+
var M = this.parseLineStringText_().map(a);
|
|
5544
|
+
return h.createLinearRing(M);
|
|
5545
5545
|
case "POLYGON":
|
|
5546
5546
|
var H = this.parsePolygonText_();
|
|
5547
5547
|
return H && H.length !== 0 ? o(H) : h.createPolygon();
|
|
@@ -5688,8 +5688,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5688
5688
|
if (a.equals(o)) T = 0;
|
|
5689
5689
|
else if (a.equals(f)) T = v > C ? v : C;
|
|
5690
5690
|
else {
|
|
5691
|
-
var N = Math.abs(a.x - o.x),
|
|
5692
|
-
(T = v > C ? N :
|
|
5691
|
+
var N = Math.abs(a.x - o.x), M = Math.abs(a.y - o.y);
|
|
5692
|
+
(T = v > C ? N : M) !== 0 || a.equals(o) || (T = Math.max(N, M));
|
|
5693
5693
|
}
|
|
5694
5694
|
return ve.isTrue(!(T === 0 && !a.equals(o)), "Bad distance calculation"), T;
|
|
5695
5695
|
} }, { key: "nonRobustComputeEdgeDistance", value: function(a, o, f) {
|
|
@@ -5714,23 +5714,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5714
5714
|
var T = this.intersectionSafe(o, f, v, C);
|
|
5715
5715
|
return this.isInSegmentEnvelopes(T) || (T = new Q(a.nearestEndpoint(o, f, v, C))), this._precisionModel !== null && this._precisionModel.makePrecise(T), T;
|
|
5716
5716
|
} }, { key: "checkDD", value: function(o, f, v, C, T) {
|
|
5717
|
-
var N = Tt.intersection(o, f, v, C),
|
|
5718
|
-
Qe.out.println("DD in env = " +
|
|
5717
|
+
var N = Tt.intersection(o, f, v, C), M = this.isInSegmentEnvelopes(N);
|
|
5718
|
+
Qe.out.println("DD in env = " + M + " --------------------- " + N), T.distance(N) > 1e-4 && Qe.out.println("Distance = " + T.distance(N));
|
|
5719
5719
|
} }, { key: "intersectionSafe", value: function(o, f, v, C) {
|
|
5720
5720
|
var T = Ct.intersection(o, f, v, C);
|
|
5721
5721
|
return T === null && (T = a.nearestEndpoint(o, f, v, C)), T;
|
|
5722
5722
|
} }, { key: "computeCollinearIntersection", value: function(o, f, v, C) {
|
|
5723
|
-
var T = me.intersects(o, f, v), N = me.intersects(o, f, C),
|
|
5724
|
-
return T && N ? (this._intPt[0] = v, this._intPt[1] = C, Xe.COLLINEAR_INTERSECTION) :
|
|
5723
|
+
var T = me.intersects(o, f, v), N = me.intersects(o, f, C), M = me.intersects(v, C, o), H = me.intersects(v, C, f);
|
|
5724
|
+
return T && N ? (this._intPt[0] = v, this._intPt[1] = C, Xe.COLLINEAR_INTERSECTION) : M && H ? (this._intPt[0] = o, this._intPt[1] = f, Xe.COLLINEAR_INTERSECTION) : T && M ? (this._intPt[0] = v, this._intPt[1] = o, !v.equals(o) || N || H ? Xe.COLLINEAR_INTERSECTION : Xe.POINT_INTERSECTION) : T && H ? (this._intPt[0] = v, this._intPt[1] = f, !v.equals(f) || N || M ? Xe.COLLINEAR_INTERSECTION : Xe.POINT_INTERSECTION) : N && M ? (this._intPt[0] = C, this._intPt[1] = o, !C.equals(o) || T || H ? Xe.COLLINEAR_INTERSECTION : Xe.POINT_INTERSECTION) : N && H ? (this._intPt[0] = C, this._intPt[1] = f, !C.equals(f) || T || M ? Xe.COLLINEAR_INTERSECTION : Xe.POINT_INTERSECTION) : Xe.NO_INTERSECTION;
|
|
5725
5725
|
} }, { key: "computeIntersect", value: function(o, f, v, C) {
|
|
5726
5726
|
if (this._isProper = !1, !me.intersects(o, f, v, C)) return Xe.NO_INTERSECTION;
|
|
5727
5727
|
var T = Ne.index(o, f, v), N = Ne.index(o, f, C);
|
|
5728
5728
|
if (T > 0 && N > 0 || T < 0 && N < 0) return Xe.NO_INTERSECTION;
|
|
5729
|
-
var
|
|
5730
|
-
return
|
|
5729
|
+
var M = Ne.index(v, C, o), H = Ne.index(v, C, f);
|
|
5730
|
+
return M > 0 && H > 0 || M < 0 && H < 0 ? Xe.NO_INTERSECTION : T === 0 && N === 0 && M === 0 && H === 0 ? this.computeCollinearIntersection(o, f, v, C) : (T === 0 || N === 0 || M === 0 || H === 0 ? (this._isProper = !1, o.equals2D(v) || o.equals2D(C) ? this._intPt[0] = o : f.equals2D(v) || f.equals2D(C) ? this._intPt[0] = f : T === 0 ? this._intPt[0] = new Q(v) : N === 0 ? this._intPt[0] = new Q(C) : M === 0 ? this._intPt[0] = new Q(o) : H === 0 && (this._intPt[0] = new Q(f))) : (this._isProper = !0, this._intPt[0] = this.intersection(o, f, v, C)), Xe.POINT_INTERSECTION);
|
|
5731
5731
|
} }], [{ key: "nearestEndpoint", value: function(o, f, v, C) {
|
|
5732
|
-
var T = o, N = nt.pointToSegment(o, v, C),
|
|
5733
|
-
return
|
|
5732
|
+
var T = o, N = nt.pointToSegment(o, v, C), M = nt.pointToSegment(f, v, C);
|
|
5733
|
+
return M < N && (N = M, T = f), (M = nt.pointToSegment(v, o, f)) < N && (N = M, T = v), (M = nt.pointToSegment(C, o, f)) < N && (N = M, T = C), T;
|
|
5734
5734
|
} }]);
|
|
5735
5735
|
})(Xe), An = (function() {
|
|
5736
5736
|
function h() {
|
|
@@ -5764,8 +5764,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5764
5764
|
return o.getLocation();
|
|
5765
5765
|
}
|
|
5766
5766
|
if (arguments[0] instanceof Q && arguments[1] instanceof Array) {
|
|
5767
|
-
for (var T = arguments[1], N = new h(arguments[0]),
|
|
5768
|
-
var H = T[
|
|
5767
|
+
for (var T = arguments[1], N = new h(arguments[0]), M = 1; M < T.length; M++) {
|
|
5768
|
+
var H = T[M], re = T[M - 1];
|
|
5769
5769
|
if (N.countSegment(H, re), N.isOnSegment()) return N.getLocation();
|
|
5770
5770
|
}
|
|
5771
5771
|
return N.getLocation();
|
|
@@ -5781,9 +5781,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5781
5781
|
return !1;
|
|
5782
5782
|
}
|
|
5783
5783
|
if (arguments[0] instanceof Q && arguments[1] instanceof Array) {
|
|
5784
|
-
for (var
|
|
5784
|
+
for (var M = arguments[0], H = arguments[1], re = new Wt(), ne = 1; ne < H.length; ne++) {
|
|
5785
5785
|
var ce = H[ne - 1], Ee = H[ne];
|
|
5786
|
-
if (re.computeIntersection(
|
|
5786
|
+
if (re.computeIntersection(M, ce, Ee), re.hasIntersection()) return !0;
|
|
5787
5787
|
}
|
|
5788
5788
|
return !1;
|
|
5789
5789
|
}
|
|
@@ -5936,8 +5936,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5936
5936
|
var C = arguments[0], T = arguments[1], N = arguments[2];
|
|
5937
5937
|
this.elt[0] = new bt(C, T, N), this.elt[1] = new bt(C, T, N);
|
|
5938
5938
|
} else if (arguments.length === 4) {
|
|
5939
|
-
var
|
|
5940
|
-
this.elt[0] = new bt(V.NONE, V.NONE, V.NONE), this.elt[1] = new bt(V.NONE, V.NONE, V.NONE), this.elt[
|
|
5939
|
+
var M = arguments[0], H = arguments[1], re = arguments[2], ne = arguments[3];
|
|
5940
|
+
this.elt[0] = new bt(V.NONE, V.NONE, V.NONE), this.elt[1] = new bt(V.NONE, V.NONE, V.NONE), this.elt[M].setLocations(H, re, ne);
|
|
5941
5941
|
}
|
|
5942
5942
|
} }, { key: "toLineLabel", value: function(a) {
|
|
5943
5943
|
for (var o = new h(V.NONE), f = 0; f < 2; f++) o.setLocation(f, a.getLocation(f));
|
|
@@ -6215,12 +6215,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6215
6215
|
T = T.right;
|
|
6216
6216
|
}
|
|
6217
6217
|
while (T !== null);
|
|
6218
|
-
var
|
|
6218
|
+
var M = { key: o, left: null, right: null, value: f, parent: v, color: 0, getValue: function() {
|
|
6219
6219
|
return this.value;
|
|
6220
6220
|
}, getKey: function() {
|
|
6221
6221
|
return this.key;
|
|
6222
6222
|
} };
|
|
6223
|
-
return C < 0 ? v.left =
|
|
6223
|
+
return C < 0 ? v.left = M : v.right = M, this.fixAfterInsertion(M), this.size_++, null;
|
|
6224
6224
|
} }, { key: "fixAfterInsertion", value: function(o) {
|
|
6225
6225
|
var f;
|
|
6226
6226
|
for (o.color = 1; o != null && o !== this.root_ && o.parent.color === 1; ) je(o) === xr(je(je(o))) ? Gr(f = $r(je(je(o)))) === 1 ? (Nt(je(o), 0), Nt(f, 0), Nt(je(je(o)), 1), o = je(je(o))) : (o === $r(je(o)) && (o = je(o), this.rotateLeft(o)), Nt(je(o), 0), Nt(je(je(o)), 1), this.rotateRight(je(je(o)))) : Gr(f = xr(je(je(o)))) === 1 ? (Nt(je(o), 0), Nt(f, 0), Nt(je(je(o)), 1), o = je(je(o))) : (o === xr(je(o)) && (o = je(o), this.rotateRight(o)), Nt(je(o), 0), Nt(je(je(o)), 1), this.rotateLeft(je(je(o))));
|
|
@@ -6380,8 +6380,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6380
6380
|
var o = arguments[0], f = arguments[1], v = arguments[2];
|
|
6381
6381
|
h.constructor_.call(this, o, f, v, null);
|
|
6382
6382
|
} else if (arguments.length === 4) {
|
|
6383
|
-
var C = arguments[0], T = arguments[1], N = arguments[2],
|
|
6384
|
-
h.constructor_.call(this, C), this.init(T, N), this._label =
|
|
6383
|
+
var C = arguments[0], T = arguments[1], N = arguments[2], M = arguments[3];
|
|
6384
|
+
h.constructor_.call(this, C), this.init(T, N), this._label = M;
|
|
6385
6385
|
}
|
|
6386
6386
|
} }]);
|
|
6387
6387
|
})(), Sr = (function(h) {
|
|
@@ -6582,8 +6582,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6582
6582
|
var T = C.next();
|
|
6583
6583
|
if (T.getMaxNodeDegree() > 2) {
|
|
6584
6584
|
T.linkDirectedEdgesForMinimalEdgeRings();
|
|
6585
|
-
var N = T.buildMinimalRings(),
|
|
6586
|
-
|
|
6585
|
+
var N = T.buildMinimalRings(), M = this.findShell(N);
|
|
6586
|
+
M !== null ? (this.placePolygonHoles(M, N), o.add(M)) : f.addAll(N);
|
|
6587
6587
|
} else v.add(T);
|
|
6588
6588
|
}
|
|
6589
6589
|
return v;
|
|
@@ -6624,8 +6624,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6624
6624
|
var a = arguments[0];
|
|
6625
6625
|
this._geometryFactory = a;
|
|
6626
6626
|
} }, { key: "findEdgeRingContaining", value: function(a, o) {
|
|
6627
|
-
for (var f = a.getLinearRing(), v = f.getEnvelopeInternal(), C = f.getCoordinateN(0), T = null, N = null,
|
|
6628
|
-
var H =
|
|
6627
|
+
for (var f = a.getLinearRing(), v = f.getEnvelopeInternal(), C = f.getCoordinateN(0), T = null, N = null, M = o.iterator(); M.hasNext(); ) {
|
|
6628
|
+
var H = M.next(), re = H.getLinearRing(), ne = re.getEnvelopeInternal();
|
|
6629
6629
|
if (!ne.equals(v) && ne.contains(v)) {
|
|
6630
6630
|
C = qe.ptNotInList(f.getCoordinates(), re.getCoordinates());
|
|
6631
6631
|
var ce = !1;
|
|
@@ -6728,9 +6728,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6728
6728
|
function h() {
|
|
6729
6729
|
s(this, h);
|
|
6730
6730
|
}
|
|
6731
|
-
return m(h, null, [{ key: "maxDistance", value: function(a, o, f, v, C, T, N,
|
|
6731
|
+
return m(h, null, [{ key: "maxDistance", value: function(a, o, f, v, C, T, N, M) {
|
|
6732
6732
|
var H = h.distance(a, o, C, T);
|
|
6733
|
-
return H = Math.max(H, h.distance(a, o, N,
|
|
6733
|
+
return H = Math.max(H, h.distance(a, o, N, M)), H = Math.max(H, h.distance(f, v, C, T)), H = Math.max(H, h.distance(f, v, N, M));
|
|
6734
6734
|
} }, { key: "distance", value: function(a, o, f, v) {
|
|
6735
6735
|
var C = f - a, T = v - o;
|
|
6736
6736
|
return Math.sqrt(C * C + T * T);
|
|
@@ -6738,8 +6738,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6738
6738
|
var f = Math.min(a.getMinX(), o.getMinX()), v = Math.min(a.getMinY(), o.getMinY()), C = Math.max(a.getMaxX(), o.getMaxX()), T = Math.max(a.getMaxY(), o.getMaxY());
|
|
6739
6739
|
return h.distance(f, v, C, T);
|
|
6740
6740
|
} }, { key: "minMaxDistance", value: function(a, o) {
|
|
6741
|
-
var f = a.getMinX(), v = a.getMinY(), C = a.getMaxX(), T = a.getMaxY(), N = o.getMinX(),
|
|
6742
|
-
return ne = Math.min(ne, h.maxDistance(f, v, f, T, N,
|
|
6741
|
+
var f = a.getMinX(), v = a.getMinY(), C = a.getMaxX(), T = a.getMaxY(), N = o.getMinX(), M = o.getMinY(), H = o.getMaxX(), re = o.getMaxY(), ne = h.maxDistance(f, v, f, T, N, M, N, re);
|
|
6742
|
+
return ne = Math.min(ne, h.maxDistance(f, v, f, T, N, M, H, M)), ne = Math.min(ne, h.maxDistance(f, v, f, T, H, re, N, re)), ne = Math.min(ne, h.maxDistance(f, v, f, T, H, re, H, M)), ne = Math.min(ne, h.maxDistance(f, v, C, v, N, M, N, re)), ne = Math.min(ne, h.maxDistance(f, v, C, v, N, M, H, M)), ne = Math.min(ne, h.maxDistance(f, v, C, v, H, re, N, re)), ne = Math.min(ne, h.maxDistance(f, v, C, v, H, re, H, M)), ne = Math.min(ne, h.maxDistance(C, T, f, T, N, M, N, re)), ne = Math.min(ne, h.maxDistance(C, T, f, T, N, M, H, M)), ne = Math.min(ne, h.maxDistance(C, T, f, T, H, re, N, re)), ne = Math.min(ne, h.maxDistance(C, T, f, T, H, re, H, M)), ne = Math.min(ne, h.maxDistance(C, T, C, v, N, M, N, re)), ne = Math.min(ne, h.maxDistance(C, T, C, v, N, M, H, M)), ne = Math.min(ne, h.maxDistance(C, T, C, v, H, re, N, re)), ne = Math.min(ne, h.maxDistance(C, T, C, v, H, re, H, M));
|
|
6743
6743
|
} }]);
|
|
6744
6744
|
})(), nr = (function() {
|
|
6745
6745
|
function h() {
|
|
@@ -6760,8 +6760,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6760
6760
|
return this._distance < o._distance ? -1 : this._distance > o._distance ? 1 : 0;
|
|
6761
6761
|
} }, { key: "expand", value: function(a, o, f, v, C) {
|
|
6762
6762
|
for (var T = a.getChildBoundables().iterator(); T.hasNext(); ) {
|
|
6763
|
-
var N = T.next(),
|
|
6764
|
-
(
|
|
6763
|
+
var N = T.next(), M = null;
|
|
6764
|
+
(M = f ? new h(o, N, this._itemDistance) : new h(N, o, this._itemDistance)).getDistance() < C && v.add(M);
|
|
6765
6765
|
}
|
|
6766
6766
|
} }, { key: "getBoundable", value: function(a) {
|
|
6767
6767
|
return a === 0 ? this._boundable1 : this._boundable2;
|
|
@@ -6794,8 +6794,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6794
6794
|
var C = f.get(v);
|
|
6795
6795
|
this.getIntersectsOp().intersects(C.getBounds(), a) && (C instanceof Et ? this.queryInternal(a, C, o) : C instanceof $t ? o.visitItem(C.getItem()) : ve.shouldNeverReachHere());
|
|
6796
6796
|
}
|
|
6797
|
-
else if (Le(arguments[2], tt) && arguments[0] instanceof Object && arguments[1] instanceof Et) for (var T = arguments[0], N = arguments[2],
|
|
6798
|
-
var re =
|
|
6797
|
+
else if (Le(arguments[2], tt) && arguments[0] instanceof Object && arguments[1] instanceof Et) for (var T = arguments[0], N = arguments[2], M = arguments[1].getChildBoundables(), H = 0; H < M.size(); H++) {
|
|
6798
|
+
var re = M.get(H);
|
|
6799
6799
|
this.getIntersectsOp().intersects(re.getBounds(), T) && (re instanceof Et ? this.queryInternal(T, re, N) : re instanceof $t ? N.add(re.getItem()) : ve.shouldNeverReachHere());
|
|
6800
6800
|
}
|
|
6801
6801
|
} }, { key: "getNodeCapacity", value: function() {
|
|
@@ -6874,8 +6874,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6874
6874
|
if (arguments.length === 3) {
|
|
6875
6875
|
var f = arguments[0], v = arguments[1], C = arguments[2], T = this.removeItem(v, C);
|
|
6876
6876
|
if (T) return !0;
|
|
6877
|
-
for (var N = null,
|
|
6878
|
-
var H =
|
|
6877
|
+
for (var N = null, M = v.getChildBoundables().iterator(); M.hasNext(); ) {
|
|
6878
|
+
var H = M.next();
|
|
6879
6879
|
if (this.getIntersectsOp().intersects(H.getBounds(), f) && H instanceof Et && (T = this.remove(f, H, C))) {
|
|
6880
6880
|
N = H;
|
|
6881
6881
|
break;
|
|
@@ -6948,12 +6948,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6948
6948
|
if (arguments.length === 3) {
|
|
6949
6949
|
var v = arguments[0], C = arguments[2], T = arguments[1], N = new br();
|
|
6950
6950
|
N.add(v);
|
|
6951
|
-
for (var
|
|
6951
|
+
for (var M = new br(); !N.isEmpty() && T >= 0; ) {
|
|
6952
6952
|
var H = N.poll(), re = H.getDistance();
|
|
6953
6953
|
if (re >= T) break;
|
|
6954
|
-
H.isLeaves() ?
|
|
6954
|
+
H.isLeaves() ? M.size() < C ? M.add(H) : (M.peek().getDistance() > re && (M.poll(), M.add(H)), T = M.peek().getDistance()) : H.expandToQueue(N, T);
|
|
6955
6955
|
}
|
|
6956
|
-
return a.getItems(
|
|
6956
|
+
return a.getItems(M);
|
|
6957
6957
|
}
|
|
6958
6958
|
} }, { key: "createNode", value: function(o) {
|
|
6959
6959
|
return new Wr(o);
|
|
@@ -6969,9 +6969,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6969
6969
|
} }, { key: "verticalSlices", value: function(o, f) {
|
|
6970
6970
|
for (var v = Math.trunc(Math.ceil(o.size() / f)), C = new Array(f).fill(null), T = o.iterator(), N = 0; N < f; N++) {
|
|
6971
6971
|
C[N] = new we();
|
|
6972
|
-
for (var
|
|
6972
|
+
for (var M = 0; T.hasNext() && M < v; ) {
|
|
6973
6973
|
var H = T.next();
|
|
6974
|
-
C[N].add(H),
|
|
6974
|
+
C[N].add(H), M++;
|
|
6975
6975
|
}
|
|
6976
6976
|
}
|
|
6977
6977
|
return C;
|
|
@@ -7013,9 +7013,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7013
7013
|
if (arguments[0] instanceof nr) {
|
|
7014
7014
|
var v = arguments[0], C = he.POSITIVE_INFINITY, T = null, N = new br();
|
|
7015
7015
|
for (N.add(v); !N.isEmpty() && C > 0; ) {
|
|
7016
|
-
var
|
|
7016
|
+
var M = N.poll(), H = M.getDistance();
|
|
7017
7017
|
if (H >= C) break;
|
|
7018
|
-
|
|
7018
|
+
M.isLeaves() ? (C = H, T = M) : M.expandToQueue(N, C);
|
|
7019
7019
|
}
|
|
7020
7020
|
return T === null ? null : [T.getBoundable(0).getItem(), T.getBoundable(1).getItem()];
|
|
7021
7021
|
}
|
|
@@ -7049,7 +7049,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7049
7049
|
return !1;
|
|
7050
7050
|
}
|
|
7051
7051
|
if (arguments.length === 3) {
|
|
7052
|
-
var
|
|
7052
|
+
var M = arguments[0], H = arguments[1], re = arguments[2], ne = new nr(this.getRoot(), M.getRoot(), H);
|
|
7053
7053
|
return this.isWithinDistance(ne, re);
|
|
7054
7054
|
}
|
|
7055
7055
|
} }, { key: "interfaces_", get: function() {
|
|
@@ -7266,9 +7266,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7266
7266
|
return a >= 0 ? o >= 0 ? f >= v ? 0 : 1 : f >= v ? 7 : 6 : o >= 0 ? f >= v ? 3 : 2 : f >= v ? 4 : 5;
|
|
7267
7267
|
}
|
|
7268
7268
|
if (arguments[0] instanceof Q && arguments[1] instanceof Q) {
|
|
7269
|
-
var C = arguments[0], T = arguments[1], N = T.x - C.x,
|
|
7270
|
-
if (N === 0 &&
|
|
7271
|
-
return h.octant(N,
|
|
7269
|
+
var C = arguments[0], T = arguments[1], N = T.x - C.x, M = T.y - C.y;
|
|
7270
|
+
if (N === 0 && M === 0) throw new q("Cannot compute the octant for two identical points " + C);
|
|
7271
|
+
return h.octant(N, M);
|
|
7272
7272
|
}
|
|
7273
7273
|
} }]);
|
|
7274
7274
|
})(), Gn = (function() {
|
|
@@ -7381,8 +7381,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7381
7381
|
if (C >= 1 && T >= 1 || C <= 0 && T <= 0) return null;
|
|
7382
7382
|
var N = this.project(v.p0);
|
|
7383
7383
|
C < 0 && (N = this.p0), C > 1 && (N = this.p1);
|
|
7384
|
-
var
|
|
7385
|
-
return T < 0 && (
|
|
7384
|
+
var M = this.project(v.p1);
|
|
7385
|
+
return T < 0 && (M = this.p0), T > 1 && (M = this.p1), new h(N, M);
|
|
7386
7386
|
}
|
|
7387
7387
|
} }, { key: "normalize", value: function() {
|
|
7388
7388
|
this.p1.compareTo(this.p0) < 0 && this.reverse();
|
|
@@ -7408,8 +7408,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7408
7408
|
v = T.distance(a.p0), f[0] = T, f[1] = a.p0;
|
|
7409
7409
|
var N = this.closestPoint(a.p1);
|
|
7410
7410
|
(C = N.distance(a.p1)) < v && (v = C, f[0] = N, f[1] = a.p1);
|
|
7411
|
-
var
|
|
7412
|
-
(C =
|
|
7411
|
+
var M = a.closestPoint(this.p0);
|
|
7412
|
+
(C = M.distance(this.p0)) < v && (v = C, f[0] = this.p0, f[1] = M);
|
|
7413
7413
|
var H = a.closestPoint(this.p1);
|
|
7414
7414
|
return (C = H.distance(this.p1)) < v && (v = C, f[0] = this.p1, f[1] = H), f;
|
|
7415
7415
|
} }, { key: "closestPoint", value: function(a) {
|
|
@@ -7432,12 +7432,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7432
7432
|
} }, { key: "maxY", value: function() {
|
|
7433
7433
|
return Math.max(this.p0.y, this.p1.y);
|
|
7434
7434
|
} }, { key: "pointAlongOffset", value: function(a, o) {
|
|
7435
|
-
var f = this.p0.x + a * (this.p1.x - this.p0.x), v = this.p0.y + a * (this.p1.y - this.p0.y), C = this.p1.x - this.p0.x, T = this.p1.y - this.p0.y, N = Math.sqrt(C * C + T * T),
|
|
7435
|
+
var f = this.p0.x + a * (this.p1.x - this.p0.x), v = this.p0.y + a * (this.p1.y - this.p0.y), C = this.p1.x - this.p0.x, T = this.p1.y - this.p0.y, N = Math.sqrt(C * C + T * T), M = 0, H = 0;
|
|
7436
7436
|
if (o !== 0) {
|
|
7437
7437
|
if (N <= 0) throw new IllegalStateException("Cannot compute offset from zero-length line segment");
|
|
7438
|
-
|
|
7438
|
+
M = o * C / N, H = o * T / N;
|
|
7439
7439
|
}
|
|
7440
|
-
return new Q(f - H, v +
|
|
7440
|
+
return new Q(f - H, v + M);
|
|
7441
7441
|
} }, { key: "setCoordinates", value: function() {
|
|
7442
7442
|
if (arguments.length === 1) {
|
|
7443
7443
|
var a = arguments[0];
|
|
@@ -7454,8 +7454,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7454
7454
|
} }, { key: "isHorizontal", value: function() {
|
|
7455
7455
|
return this.p0.y === this.p1.y;
|
|
7456
7456
|
} }, { key: "reflect", value: function(a) {
|
|
7457
|
-
var o = this.p1.getY() - this.p0.getY(), f = this.p0.getX() - this.p1.getX(), v = this.p0.getY() * (this.p1.getX() - this.p0.getX()) - this.p0.getX() * (this.p1.getY() - this.p0.getY()), C = o * o + f * f, T = o * o - f * f, N = a.getX(),
|
|
7458
|
-
return new Q((-T * N - 2 * o * f *
|
|
7457
|
+
var o = this.p1.getY() - this.p0.getY(), f = this.p0.getX() - this.p1.getX(), v = this.p0.getY() * (this.p1.getX() - this.p0.getX()) - this.p0.getX() * (this.p1.getY() - this.p0.getY()), C = o * o + f * f, T = o * o - f * f, N = a.getX(), M = a.getY();
|
|
7458
|
+
return new Q((-T * N - 2 * o * f * M - 2 * o * v) / C, (T * M - 2 * o * f * N - 2 * f * v) / C);
|
|
7459
7459
|
} }, { key: "distance", value: function() {
|
|
7460
7460
|
if (arguments[0] instanceof h) {
|
|
7461
7461
|
var a = arguments[0];
|
|
@@ -7525,8 +7525,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7525
7525
|
var o = arguments[0], f = arguments[1], v = arguments[2], C = arguments[3], T = arguments[4], N = arguments[5];
|
|
7526
7526
|
if (f - o == 1 && T - C == 1) return N.overlap(this, o, v, C), null;
|
|
7527
7527
|
if (!this.overlaps(o, f, v, C, T)) return null;
|
|
7528
|
-
var
|
|
7529
|
-
o <
|
|
7528
|
+
var M = Math.trunc((o + f) / 2), H = Math.trunc((C + T) / 2);
|
|
7529
|
+
o < M && (C < H && this.computeOverlaps(o, M, v, C, H, N), H < T && this.computeOverlaps(o, M, v, H, T, N)), M < f && (C < H && this.computeOverlaps(M, f, v, C, H, N), H < T && this.computeOverlaps(M, f, v, H, T, N));
|
|
7530
7530
|
}
|
|
7531
7531
|
} }, { key: "setId", value: function(h) {
|
|
7532
7532
|
this._id = h;
|
|
@@ -7795,17 +7795,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7795
7795
|
this.computeOffsetSegment(f, le.LEFT, this._distance, v);
|
|
7796
7796
|
var C = new pt();
|
|
7797
7797
|
this.computeOffsetSegment(f, le.RIGHT, this._distance, C);
|
|
7798
|
-
var T = o.x - a.x, N = o.y - a.y,
|
|
7798
|
+
var T = o.x - a.x, N = o.y - a.y, M = Math.atan2(N, T);
|
|
7799
7799
|
switch (this._bufParams.getEndCapStyle()) {
|
|
7800
|
-
case
|
|
7801
|
-
this._segList.addPt(v.p1), this.addDirectedFillet(o,
|
|
7800
|
+
case O.CAP_ROUND:
|
|
7801
|
+
this._segList.addPt(v.p1), this.addDirectedFillet(o, M + Math.PI / 2, M - Math.PI / 2, Ne.CLOCKWISE, this._distance), this._segList.addPt(C.p1);
|
|
7802
7802
|
break;
|
|
7803
|
-
case
|
|
7803
|
+
case O.CAP_FLAT:
|
|
7804
7804
|
this._segList.addPt(v.p1), this._segList.addPt(C.p1);
|
|
7805
7805
|
break;
|
|
7806
|
-
case
|
|
7806
|
+
case O.CAP_SQUARE:
|
|
7807
7807
|
var H = new Q();
|
|
7808
|
-
H.x = Math.abs(this._distance) * Math.cos(
|
|
7808
|
+
H.x = Math.abs(this._distance) * Math.cos(M), H.y = Math.abs(this._distance) * Math.sin(M);
|
|
7809
7809
|
var re = new Q(v.p1.x + H.x, v.p1.y + H.y), ne = new Q(C.p1.x + H.x, C.p1.y + H.y);
|
|
7810
7810
|
this._segList.addPt(re), this._segList.addPt(ne);
|
|
7811
7811
|
}
|
|
@@ -7817,7 +7817,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7817
7817
|
this.addLimitedMitreJoin(o, f, v, this._bufParams.getMitreLimit());
|
|
7818
7818
|
} }, { key: "addOutsideTurn", value: function(a, o) {
|
|
7819
7819
|
if (this._offset0.p1.distance(this._offset1.p0) < this._distance * h.OFFSET_SEGMENT_SEPARATION_FACTOR) return this._segList.addPt(this._offset0.p1), null;
|
|
7820
|
-
this._bufParams.getJoinStyle() ===
|
|
7820
|
+
this._bufParams.getJoinStyle() === O.JOIN_MITRE ? this.addMitreJoin(this._s1, this._offset0, this._offset1, this._distance) : this._bufParams.getJoinStyle() === O.JOIN_BEVEL ? this.addBevelJoin(this._offset0, this._offset1) : (o && this._segList.addPt(this._offset0.p1), this.addCornerFillet(this._s1, this._offset0.p1, this._offset1.p0, a, this._distance), this._segList.addPt(this._offset1.p0));
|
|
7821
7821
|
} }, { key: "createSquare", value: function(a) {
|
|
7822
7822
|
this._segList.addPt(new Q(a.x + this._distance, a.y + this._distance)), this._segList.addPt(new Q(a.x + this._distance, a.y - this._distance)), this._segList.addPt(new Q(a.x - this._distance, a.y - this._distance)), this._segList.addPt(new Q(a.x - this._distance, a.y + this._distance)), this._segList.closeRing();
|
|
7823
7823
|
} }, { key: "addSegments", value: function(a, o) {
|
|
@@ -7825,24 +7825,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7825
7825
|
} }, { key: "addFirstSegment", value: function() {
|
|
7826
7826
|
this._segList.addPt(this._offset1.p0);
|
|
7827
7827
|
} }, { key: "addCornerFillet", value: function(a, o, f, v, C) {
|
|
7828
|
-
var T = o.x - a.x, N = o.y - a.y,
|
|
7829
|
-
v === Ne.CLOCKWISE ?
|
|
7828
|
+
var T = o.x - a.x, N = o.y - a.y, M = Math.atan2(N, T), H = f.x - a.x, re = f.y - a.y, ne = Math.atan2(re, H);
|
|
7829
|
+
v === Ne.CLOCKWISE ? M <= ne && (M += 2 * Math.PI) : M >= ne && (M -= 2 * Math.PI), this._segList.addPt(o), this.addDirectedFillet(a, M, ne, v, C), this._segList.addPt(f);
|
|
7830
7830
|
} }, { key: "addLastSegment", value: function() {
|
|
7831
7831
|
this._segList.addPt(this._offset1.p1);
|
|
7832
7832
|
} }, { key: "initSideSegments", value: function(a, o, f) {
|
|
7833
7833
|
this._s1 = a, this._s2 = o, this._side = f, this._seg1.setCoordinates(a, o), this.computeOffsetSegment(this._seg1, f, this._distance, this._offset1);
|
|
7834
7834
|
} }, { key: "addLimitedMitreJoin", value: function(a, o, f, v) {
|
|
7835
|
-
var C = this._seg0.p1, T = gt.angle(C, this._seg0.p0), N = gt.angleBetweenOriented(this._seg0.p0, C, this._seg1.p1) / 2,
|
|
7835
|
+
var C = this._seg0.p1, T = gt.angle(C, this._seg0.p0), N = gt.angleBetweenOriented(this._seg0.p0, C, this._seg1.p1) / 2, M = gt.normalize(T + N), H = gt.normalize(M + Math.PI), re = v * f, ne = f - re * Math.abs(Math.sin(N)), ce = C.x + re * Math.cos(H), Ee = C.y + re * Math.sin(H), De = new Q(ce, Ee), ke = new pt(C, De), $e = ke.pointAlongOffset(1, ne), Ge = ke.pointAlongOffset(1, -ne);
|
|
7836
7836
|
this._side === le.LEFT ? (this._segList.addPt($e), this._segList.addPt(Ge)) : (this._segList.addPt(Ge), this._segList.addPt($e));
|
|
7837
7837
|
} }, { key: "addDirectedFillet", value: function(a, o, f, v, C) {
|
|
7838
|
-
var T = v === Ne.CLOCKWISE ? -1 : 1, N = Math.abs(o - f),
|
|
7839
|
-
if (
|
|
7840
|
-
for (var H = N /
|
|
7838
|
+
var T = v === Ne.CLOCKWISE ? -1 : 1, N = Math.abs(o - f), M = Math.trunc(N / this._filletAngleQuantum + 0.5);
|
|
7839
|
+
if (M < 1) return null;
|
|
7840
|
+
for (var H = N / M, re = new Q(), ne = 0; ne < M; ne++) {
|
|
7841
7841
|
var ce = o + T * ne * H;
|
|
7842
7842
|
re.x = a.x + C * Math.cos(ce), re.y = a.y + C * Math.sin(ce), this._segList.addPt(re);
|
|
7843
7843
|
}
|
|
7844
7844
|
} }, { key: "computeOffsetSegment", value: function(a, o, f, v) {
|
|
7845
|
-
var C = o === le.LEFT ? 1 : -1, T = a.p1.x - a.p0.x, N = a.p1.y - a.p0.y,
|
|
7845
|
+
var C = o === le.LEFT ? 1 : -1, T = a.p1.x - a.p0.x, N = a.p1.y - a.p0.y, M = Math.sqrt(T * T + N * N), H = C * f * T / M, re = C * f * N / M;
|
|
7846
7846
|
v.p0.x = a.p0.x - re, v.p0.y = a.p0.y + H, v.p1.x = a.p1.x - re, v.p1.y = a.p1.y + H;
|
|
7847
7847
|
} }, { key: "addInsideTurn", value: function(a, o) {
|
|
7848
7848
|
if (this._li.computeIntersection(this._offset0.p0, this._offset0.p1, this._offset1.p0, this._offset1.p1), this._li.hasIntersection()) this._segList.addPt(this._li.getIntersection(0));
|
|
@@ -7864,7 +7864,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7864
7864
|
} }, { key: "init", value: function(a) {
|
|
7865
7865
|
this._distance = a, this._maxCurveSegmentError = a * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new Jr(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(a * h.CURVE_VERTEX_SNAP_DISTANCE_FACTOR);
|
|
7866
7866
|
} }, { key: "addCollinear", value: function(a) {
|
|
7867
|
-
this._li.computeIntersection(this._s0, this._s1, this._s1, this._s2), this._li.getIntersectionNum() >= 2 && (this._bufParams.getJoinStyle() ===
|
|
7867
|
+
this._li.computeIntersection(this._s0, this._s1, this._s1, this._s2), this._li.getIntersectionNum() >= 2 && (this._bufParams.getJoinStyle() === O.JOIN_BEVEL || this._bufParams.getJoinStyle() === O.JOIN_MITRE ? (a && this._segList.addPt(this._offset0.p1), this._segList.addPt(this._offset1.p0)) : this.addCornerFillet(this._s1, this._offset0.p1, this._offset1.p0, Ne.CLOCKWISE, this._distance));
|
|
7868
7868
|
} }, { key: "closeRing", value: function() {
|
|
7869
7869
|
this._segList.closeRing();
|
|
7870
7870
|
} }, { key: "hasNarrowConcaveAngle", value: function() {
|
|
@@ -7872,7 +7872,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7872
7872
|
} }], [{ key: "constructor_", value: function() {
|
|
7873
7873
|
this._maxCurveSegmentError = 0, this._filletAngleQuantum = null, this._closingSegLengthFactor = 1, this._segList = null, this._distance = 0, this._precisionModel = null, this._bufParams = null, this._li = null, this._s0 = null, this._s1 = null, this._s2 = null, this._seg0 = new pt(), this._seg1 = new pt(), this._offset0 = new pt(), this._offset1 = new pt(), this._side = 0, this._hasNarrowConcaveAngle = !1;
|
|
7874
7874
|
var a = arguments[0], o = arguments[1], f = arguments[2];
|
|
7875
|
-
this._precisionModel = a, this._bufParams = o, this._li = new Wt(), this._filletAngleQuantum = Math.PI / 2 / o.getQuadrantSegments(), o.getQuadrantSegments() >= 8 && o.getJoinStyle() ===
|
|
7875
|
+
this._precisionModel = a, this._bufParams = o, this._li = new Wt(), this._filletAngleQuantum = Math.PI / 2 / o.getQuadrantSegments(), o.getQuadrantSegments() >= 8 && o.getJoinStyle() === O.JOIN_ROUND && (this._closingSegLengthFactor = h.MAX_CLOSING_SEG_LEN_FACTOR), this.init(f);
|
|
7876
7876
|
} }]);
|
|
7877
7877
|
})();
|
|
7878
7878
|
dr.OFFSET_SEGMENT_SEPARATION_FACTOR = 1e-3, dr.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR = 1e-3, dr.CURVE_VERTEX_SNAP_DISTANCE_FACTOR = 1e-6, dr.MAX_CLOSING_SEG_LEN_FACTOR = 80;
|
|
@@ -7895,9 +7895,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7895
7895
|
for (var N = T - 2; N >= 0; N--) f.addNextSegment(C[N], !0);
|
|
7896
7896
|
} else {
|
|
7897
7897
|
f.addSegments(a, !1);
|
|
7898
|
-
var
|
|
7899
|
-
f.initSideSegments(
|
|
7900
|
-
for (var re = 2; re <= H; re++) f.addNextSegment(
|
|
7898
|
+
var M = Dt.simplify(a, v), H = M.length - 1;
|
|
7899
|
+
f.initSideSegments(M[0], M[1], le.LEFT), f.addFirstSegment();
|
|
7900
|
+
for (var re = 2; re <= H; re++) f.addNextSegment(M[re], !0);
|
|
7901
7901
|
}
|
|
7902
7902
|
f.addLastSegment(), f.closeRing();
|
|
7903
7903
|
} }, { key: "computeRingBufferCurve", value: function(a, o, f) {
|
|
@@ -7906,8 +7906,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7906
7906
|
var C = Dt.simplify(a, v), T = C.length - 1;
|
|
7907
7907
|
f.initSideSegments(C[T - 1], C[0], o);
|
|
7908
7908
|
for (var N = 1; N <= T; N++) {
|
|
7909
|
-
var
|
|
7910
|
-
f.addNextSegment(C[N],
|
|
7909
|
+
var M = N !== 1;
|
|
7910
|
+
f.addNextSegment(C[N], M);
|
|
7911
7911
|
}
|
|
7912
7912
|
f.closeRing();
|
|
7913
7913
|
} }, { key: "computeLineBufferCurve", value: function(a, o) {
|
|
@@ -7915,16 +7915,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7915
7915
|
o.initSideSegments(v[0], v[1], le.LEFT);
|
|
7916
7916
|
for (var T = 2; T <= C; T++) o.addNextSegment(v[T], !0);
|
|
7917
7917
|
o.addLastSegment(), o.addLineEndCap(v[C - 1], v[C]);
|
|
7918
|
-
var N = Dt.simplify(a, -f),
|
|
7919
|
-
o.initSideSegments(N[
|
|
7920
|
-
for (var H =
|
|
7918
|
+
var N = Dt.simplify(a, -f), M = N.length - 1;
|
|
7919
|
+
o.initSideSegments(N[M], N[M - 1], le.LEFT);
|
|
7920
|
+
for (var H = M - 2; H >= 0; H--) o.addNextSegment(N[H], !0);
|
|
7921
7921
|
o.addLastSegment(), o.addLineEndCap(N[1], N[0]), o.closeRing();
|
|
7922
7922
|
} }, { key: "computePointCurve", value: function(a, o) {
|
|
7923
7923
|
switch (this._bufParams.getEndCapStyle()) {
|
|
7924
|
-
case
|
|
7924
|
+
case O.CAP_ROUND:
|
|
7925
7925
|
o.createCircle(a);
|
|
7926
7926
|
break;
|
|
7927
|
-
case
|
|
7927
|
+
case O.CAP_SQUARE:
|
|
7928
7928
|
o.createSquare(a);
|
|
7929
7929
|
}
|
|
7930
7930
|
} }, { key: "getLineCurve", value: function(a, o) {
|
|
@@ -7952,9 +7952,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7952
7952
|
f.initSideSegments(C[T], C[T - 1], le.LEFT), f.addFirstSegment();
|
|
7953
7953
|
for (var N = T - 2; N >= 0; N--) f.addNextSegment(C[N], !0);
|
|
7954
7954
|
} else {
|
|
7955
|
-
var
|
|
7956
|
-
f.initSideSegments(
|
|
7957
|
-
for (var re = 2; re <= H; re++) f.addNextSegment(
|
|
7955
|
+
var M = Dt.simplify(a, v), H = M.length - 1;
|
|
7956
|
+
f.initSideSegments(M[0], M[1], le.LEFT), f.addFirstSegment();
|
|
7957
|
+
for (var re = 2; re <= H; re++) f.addNextSegment(M[re], !0);
|
|
7958
7958
|
}
|
|
7959
7959
|
f.addLastSegment();
|
|
7960
7960
|
} }, { key: "isLineOffsetEmpty", value: function(a) {
|
|
@@ -7982,10 +7982,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7982
7982
|
}
|
|
7983
7983
|
if (arguments.length === 3) {
|
|
7984
7984
|
if (Le(arguments[2], tt) && arguments[0] instanceof Q && arguments[1] instanceof Sr) {
|
|
7985
|
-
for (var C = arguments[0], T = arguments[1], N = arguments[2],
|
|
7986
|
-
if (this._seg.p0 =
|
|
7985
|
+
for (var C = arguments[0], T = arguments[1], N = arguments[2], M = T.getEdge().getCoordinates(), H = 0; H < M.length - 1; H++)
|
|
7986
|
+
if (this._seg.p0 = M[H], this._seg.p1 = M[H + 1], this._seg.p0.y > this._seg.p1.y && this._seg.reverse(), !(Math.max(this._seg.p0.x, this._seg.p1.x) < C.x || this._seg.isHorizontal() || C.y < this._seg.p0.y || C.y > this._seg.p1.y || Ne.index(this._seg.p0, this._seg.p1, C) === Ne.RIGHT)) {
|
|
7987
7987
|
var re = T.getDepth(le.LEFT);
|
|
7988
|
-
this._seg.p0.equals(
|
|
7988
|
+
this._seg.p0.equals(M[H]) || (re = T.getDepth(le.RIGHT));
|
|
7989
7989
|
var ne = new Qr(this._seg, re);
|
|
7990
7990
|
N.add(ne);
|
|
7991
7991
|
}
|
|
@@ -8065,8 +8065,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8065
8065
|
this.x = T.y - N.y, this.y = N.x - T.x, this.w = T.x * N.y - N.x * T.y;
|
|
8066
8066
|
}
|
|
8067
8067
|
} else if (arguments.length === 3) {
|
|
8068
|
-
var
|
|
8069
|
-
this.x =
|
|
8068
|
+
var M = arguments[0], H = arguments[1], re = arguments[2];
|
|
8069
|
+
this.x = M, this.y = H, this.w = re;
|
|
8070
8070
|
} else if (arguments.length === 4) {
|
|
8071
8071
|
var ne = arguments[0], ce = arguments[1], Ee = arguments[2], De = arguments[3], ke = ne.y - ce.y, $e = ce.x - ne.x, Ge = ne.x * ce.y - ce.x * ne.y, He = Ee.y - De.y, et = De.x - Ee.x, it = Ee.x * De.y - De.x * Ee.y;
|
|
8072
8072
|
this.x = $e * it - et * Ge, this.y = He * Ge - ke * it, this.w = ke * et - He * $e;
|
|
@@ -8106,18 +8106,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8106
8106
|
} }, { key: "det", value: function(a, o, f, v) {
|
|
8107
8107
|
return a * v - o * f;
|
|
8108
8108
|
} }, { key: "interpolateZ", value: function(a, o, f, v) {
|
|
8109
|
-
var C = o.x, T = o.y, N = f.x - C,
|
|
8109
|
+
var C = o.x, T = o.y, N = f.x - C, M = v.x - C, H = f.y - T, re = v.y - T, ne = N * re - M * H, ce = a.x - C, Ee = a.y - T, De = (re * ce - M * Ee) / ne, ke = (-H * ce + N * Ee) / ne;
|
|
8110
8110
|
return o.getZ() + De * (f.getZ() - o.getZ()) + ke * (v.getZ() - o.getZ());
|
|
8111
8111
|
} }, { key: "longestSideLength", value: function(a, o, f) {
|
|
8112
8112
|
var v = a.distance(o), C = o.distance(f), T = f.distance(a), N = v;
|
|
8113
8113
|
return C > N && (N = C), T > N && (N = T), N;
|
|
8114
8114
|
} }, { key: "circumcentreDD", value: function(a, o, f) {
|
|
8115
|
-
var v = Re.valueOf(a.x).subtract(f.x), C = Re.valueOf(a.y).subtract(f.y), T = Re.valueOf(o.x).subtract(f.x), N = Re.valueOf(o.y).subtract(f.y),
|
|
8115
|
+
var v = Re.valueOf(a.x).subtract(f.x), C = Re.valueOf(a.y).subtract(f.y), T = Re.valueOf(o.x).subtract(f.x), N = Re.valueOf(o.y).subtract(f.y), M = Re.determinant(v, C, T, N).multiply(2), H = v.sqr().add(C.sqr()), re = T.sqr().add(N.sqr()), ne = Re.determinant(C, H, N, re), ce = Re.determinant(v, H, T, re), Ee = Re.valueOf(f.x).subtract(ne.divide(M)).doubleValue(), De = Re.valueOf(f.y).add(ce.divide(M)).doubleValue();
|
|
8116
8116
|
return new Q(Ee, De);
|
|
8117
8117
|
} }, { key: "isAcute", value: function(a, o, f) {
|
|
8118
8118
|
return !!gt.isAcute(a, o, f) && !!gt.isAcute(o, f, a) && !!gt.isAcute(f, a, o);
|
|
8119
8119
|
} }, { key: "circumcentre", value: function(a, o, f) {
|
|
8120
|
-
var v = f.x, C = f.y, T = a.x - v, N = a.y - C,
|
|
8120
|
+
var v = f.x, C = f.y, T = a.x - v, N = a.y - C, M = o.x - v, H = o.y - C, re = 2 * h.det(T, N, M, H), ne = h.det(N, T * T + N * N, H, M * M + H * H), ce = h.det(T, T * T + N * N, M, M * M + H * H);
|
|
8121
8121
|
return new Q(v - ne / re, C + ce / re);
|
|
8122
8122
|
} }, { key: "perpendicularBisector", value: function(a, o) {
|
|
8123
8123
|
var f = o.x - a.x, v = o.y - a.y, C = new Tr(a.x + f / 2, a.y + v / 2, 1), T = new Tr(a.x - v + f / 2, a.y + f + v / 2, 1);
|
|
@@ -8126,14 +8126,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8126
8126
|
var v = o.distance(a), C = v / (v + o.distance(f)), T = f.x - a.x, N = f.y - a.y;
|
|
8127
8127
|
return new Q(a.x + C * T, a.y + C * N);
|
|
8128
8128
|
} }, { key: "area3D", value: function(a, o, f) {
|
|
8129
|
-
var v = o.x - a.x, C = o.y - a.y, T = o.getZ() - a.getZ(), N = f.x - a.x,
|
|
8129
|
+
var v = o.x - a.x, C = o.y - a.y, T = o.getZ() - a.getZ(), N = f.x - a.x, M = f.y - a.y, H = f.getZ() - a.getZ(), re = C * H - T * M, ne = T * N - v * H, ce = v * M - C * N, Ee = re * re + ne * ne + ce * ce, De = Math.sqrt(Ee) / 2;
|
|
8130
8130
|
return De;
|
|
8131
8131
|
} }, { key: "centroid", value: function(a, o, f) {
|
|
8132
8132
|
var v = (a.x + o.x + f.x) / 3, C = (a.y + o.y + f.y) / 3;
|
|
8133
8133
|
return new Q(v, C);
|
|
8134
8134
|
} }, { key: "inCentre", value: function(a, o, f) {
|
|
8135
|
-
var v = o.distance(f), C = a.distance(f), T = a.distance(o), N = v + C + T,
|
|
8136
|
-
return new Q(
|
|
8135
|
+
var v = o.distance(f), C = a.distance(f), T = a.distance(o), N = v + C + T, M = (v * a.x + C * o.x + T * f.x) / N, H = (v * a.y + C * o.y + T * f.y) / N;
|
|
8136
|
+
return new Q(M, H);
|
|
8137
8137
|
} }]);
|
|
8138
8138
|
})(), zn = (function() {
|
|
8139
8139
|
return m((function h() {
|
|
@@ -8298,10 +8298,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8298
8298
|
for (var v = a, C = this.iterator(); C.hasNext(); ) {
|
|
8299
8299
|
var T = C.next(), N = T.getLabel();
|
|
8300
8300
|
if (N.getLocation(h, le.ON) === V.NONE && N.setLocation(h, le.ON, v), N.isArea(h)) {
|
|
8301
|
-
var
|
|
8301
|
+
var M = N.getLocation(h, le.LEFT), H = N.getLocation(h, le.RIGHT);
|
|
8302
8302
|
if (H !== V.NONE) {
|
|
8303
8303
|
if (H !== v) throw new rt("side location conflict", T.getCoordinate());
|
|
8304
|
-
|
|
8304
|
+
M === V.NONE && ve.shouldNeverReachHere("found single null side (at " + T.getCoordinate() + ")"), v = M;
|
|
8305
8305
|
} else ve.isTrue(N.getLocation(h, le.LEFT) === V.NONE, "found single null side"), N.setLocation(h, le.RIGHT, v), N.setLocation(h, le.LEFT, v);
|
|
8306
8306
|
}
|
|
8307
8307
|
}
|
|
@@ -8322,8 +8322,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8322
8322
|
for (var v = f, C = this.iterator(); C.hasNext(); ) {
|
|
8323
8323
|
var T = C.next().getLabel();
|
|
8324
8324
|
ve.isTrue(T.isArea(h), "Found non-area edge");
|
|
8325
|
-
var N = T.getLocation(h, le.LEFT),
|
|
8326
|
-
if (N ===
|
|
8325
|
+
var N = T.getLocation(h, le.LEFT), M = T.getLocation(h, le.RIGHT);
|
|
8326
|
+
if (N === M || M !== v) return !1;
|
|
8327
8327
|
v = N;
|
|
8328
8328
|
}
|
|
8329
8329
|
return !0;
|
|
@@ -8354,14 +8354,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8354
8354
|
} }, { key: "computeLabelling", value: function(h) {
|
|
8355
8355
|
this.computeEdgeEndLabels(h[0].getBoundaryNodeRule()), this.propagateSideLabels(0), this.propagateSideLabels(1);
|
|
8356
8356
|
for (var a = [!1, !1], o = this.iterator(); o.hasNext(); ) for (var f = o.next().getLabel(), v = 0; v < 2; v++) f.isLine(v) && f.getLocation(v) === V.BOUNDARY && (a[v] = !0);
|
|
8357
|
-
for (var C = this.iterator(); C.hasNext(); ) for (var T = C.next(), N = T.getLabel(),
|
|
8357
|
+
for (var C = this.iterator(); C.hasNext(); ) for (var T = C.next(), N = T.getLabel(), M = 0; M < 2; M++) if (N.isAnyNull(M)) {
|
|
8358
8358
|
var H = V.NONE;
|
|
8359
|
-
if (a[
|
|
8359
|
+
if (a[M]) H = V.EXTERIOR;
|
|
8360
8360
|
else {
|
|
8361
8361
|
var re = T.getCoordinate();
|
|
8362
|
-
H = this.getLocation(
|
|
8362
|
+
H = this.getLocation(M, re, h);
|
|
8363
8363
|
}
|
|
8364
|
-
N.setAllLocationsIfNull(
|
|
8364
|
+
N.setAllLocationsIfNull(M, H);
|
|
8365
8365
|
}
|
|
8366
8366
|
} }, { key: "getDegree", value: function() {
|
|
8367
8367
|
return this._edgeMap.size();
|
|
@@ -8434,11 +8434,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8434
8434
|
var o = arguments[0], f = this.findIndex(o), v = o.getDepth(le.LEFT), C = o.getDepth(le.RIGHT), T = this.computeDepths(f + 1, this._edgeList.size(), v);
|
|
8435
8435
|
if (this.computeDepths(0, f, T) !== C) throw new rt("depth mismatch at " + o.getCoordinate());
|
|
8436
8436
|
} else if (arguments.length === 3) {
|
|
8437
|
-
for (var N = arguments[1],
|
|
8437
|
+
for (var N = arguments[1], M = arguments[2], H = arguments[0]; H < N; H++) {
|
|
8438
8438
|
var re = this._edgeList.get(H);
|
|
8439
|
-
re.setEdgeDepths(le.RIGHT,
|
|
8439
|
+
re.setEdgeDepths(le.RIGHT, M), M = re.getDepth(le.LEFT);
|
|
8440
8440
|
}
|
|
8441
|
-
return
|
|
8441
|
+
return M;
|
|
8442
8442
|
}
|
|
8443
8443
|
} }, { key: "mergeSymLabels", value: function() {
|
|
8444
8444
|
for (var o = this.iterator(); o.hasNext(); ) {
|
|
@@ -8447,11 +8447,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8447
8447
|
}
|
|
8448
8448
|
} }, { key: "linkMinimalDirectedEdges", value: function(o) {
|
|
8449
8449
|
for (var f = null, v = null, C = this._SCANNING_FOR_INCOMING, T = this._resultAreaEdgeList.size() - 1; T >= 0; T--) {
|
|
8450
|
-
var N = this._resultAreaEdgeList.get(T),
|
|
8450
|
+
var N = this._resultAreaEdgeList.get(T), M = N.getSym();
|
|
8451
8451
|
switch (f === null && N.getEdgeRing() === o && (f = N), C) {
|
|
8452
8452
|
case this._SCANNING_FOR_INCOMING:
|
|
8453
|
-
if (
|
|
8454
|
-
v =
|
|
8453
|
+
if (M.getEdgeRing() !== o) continue;
|
|
8454
|
+
v = M, C = this._LINKING_TO_OUTGOING;
|
|
8455
8455
|
break;
|
|
8456
8456
|
case this._LINKING_TO_OUTGOING:
|
|
8457
8457
|
if (N.getEdgeRing() !== o) continue;
|
|
@@ -8488,8 +8488,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8488
8488
|
}
|
|
8489
8489
|
if (o === V.NONE) return null;
|
|
8490
8490
|
for (var T = o, N = this.iterator(); N.hasNext(); ) {
|
|
8491
|
-
var
|
|
8492
|
-
|
|
8491
|
+
var M = N.next(), H = M.getSym();
|
|
8492
|
+
M.isLineEdge() ? M.getEdge().setCovered(T === V.INTERIOR) : (M.isInResult() && (T = V.EXTERIOR), H.isInResult() && (T = V.INTERIOR));
|
|
8493
8493
|
}
|
|
8494
8494
|
} }, { key: "computeLabelling", value: function(o) {
|
|
8495
8495
|
A(a, "computeLabelling", this, 1).call(this, o), this._label = new _t(V.NONE);
|
|
@@ -8523,10 +8523,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8523
8523
|
} }, { key: "orientation", value: function(a) {
|
|
8524
8524
|
return qe.increasingDirection(a) === 1;
|
|
8525
8525
|
} }, { key: "compareOriented", value: function(a, o, f, v) {
|
|
8526
|
-
for (var C = o ? 1 : -1, T = v ? 1 : -1, N = o ? a.length : -1,
|
|
8526
|
+
for (var C = o ? 1 : -1, T = v ? 1 : -1, N = o ? a.length : -1, M = v ? f.length : -1, H = o ? 0 : a.length - 1, re = v ? 0 : f.length - 1; ; ) {
|
|
8527
8527
|
var ne = a[H].compareTo(f[re]);
|
|
8528
8528
|
if (ne !== 0) return ne;
|
|
8529
|
-
var ce = (H += C) === N, Ee = (re += T) ===
|
|
8529
|
+
var ce = (H += C) === N, Ee = (re += T) === M;
|
|
8530
8530
|
if (ce && !Ee) return -1;
|
|
8531
8531
|
if (!ce && Ee) return 1;
|
|
8532
8532
|
if (ce && Ee) return 0;
|
|
@@ -8595,8 +8595,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8595
8595
|
} }, { key: "processIntersections", value: function(a, o, f, v) {
|
|
8596
8596
|
if (a === f && o === v) return null;
|
|
8597
8597
|
this.numTests++;
|
|
8598
|
-
var C = a.getCoordinates()[o], T = a.getCoordinates()[o + 1], N = f.getCoordinates()[v],
|
|
8599
|
-
this._li.computeIntersection(C, T, N,
|
|
8598
|
+
var C = a.getCoordinates()[o], T = a.getCoordinates()[o + 1], N = f.getCoordinates()[v], M = f.getCoordinates()[v + 1];
|
|
8599
|
+
this._li.computeIntersection(C, T, N, M), this._li.hasIntersection() && (this.numIntersections++, this._li.isInteriorIntersection() && (this.numInteriorIntersections++, this._hasInterior = !0), this.isTrivialIntersection(a, o, f, v) || (this._hasIntersection = !0, a.addIntersections(this._li, o, 0), f.addIntersections(this._li, v, 1), this._li.isProper() && (this.numProperIntersections++, this._hasProper = !0, this._hasProperInterior = !0)));
|
|
8600
8600
|
} }, { key: "hasIntersection", value: function() {
|
|
8601
8601
|
return this._hasIntersection;
|
|
8602
8602
|
} }, { key: "isDone", value: function() {
|
|
@@ -8831,11 +8831,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8831
8831
|
var h = arguments[0], a = arguments[1], o = arguments[2], f = arguments[3];
|
|
8832
8832
|
this.computeIntersectsForChain(this.startIndex[h], this.startIndex[h + 1], a, a.startIndex[o], a.startIndex[o + 1], f);
|
|
8833
8833
|
} else if (arguments.length === 6) {
|
|
8834
|
-
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3],
|
|
8835
|
-
if (C - v == 1 &&
|
|
8836
|
-
if (!this.overlaps(v, C, T, N,
|
|
8837
|
-
var re = Math.trunc((v + C) / 2), ne = Math.trunc((N +
|
|
8838
|
-
v < re && (N < ne && this.computeIntersectsForChain(v, re, T, N, ne, H), ne <
|
|
8834
|
+
var v = arguments[0], C = arguments[1], T = arguments[2], N = arguments[3], M = arguments[4], H = arguments[5];
|
|
8835
|
+
if (C - v == 1 && M - N == 1) return H.addIntersections(this.e, v, T.e, N), null;
|
|
8836
|
+
if (!this.overlaps(v, C, T, N, M)) return null;
|
|
8837
|
+
var re = Math.trunc((v + C) / 2), ne = Math.trunc((N + M) / 2);
|
|
8838
|
+
v < re && (N < ne && this.computeIntersectsForChain(v, re, T, N, ne, H), ne < M && this.computeIntersectsForChain(v, re, T, ne, M, H)), re < C && (N < ne && this.computeIntersectsForChain(re, C, T, N, ne, H), ne < M && this.computeIntersectsForChain(re, C, T, ne, M, H));
|
|
8839
8839
|
}
|
|
8840
8840
|
} }, { key: "overlaps", value: function(h, a, o, f, v) {
|
|
8841
8841
|
return me.intersects(this.pts[h], this.pts[a], o.pts[f], o.pts[v]);
|
|
@@ -8964,12 +8964,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8964
8964
|
}
|
|
8965
8965
|
return this._env;
|
|
8966
8966
|
} }, { key: "addIntersection", value: function(o, f, v, C) {
|
|
8967
|
-
var T = new Q(o.getIntersection(C)), N = f,
|
|
8967
|
+
var T = new Q(o.getIntersection(C)), N = f, M = o.getEdgeDistance(v, C), H = N + 1;
|
|
8968
8968
|
if (H < this.pts.length) {
|
|
8969
8969
|
var re = this.pts[H];
|
|
8970
|
-
T.equals2D(re) && (N = H,
|
|
8970
|
+
T.equals2D(re) && (N = H, M = 0);
|
|
8971
8971
|
}
|
|
8972
|
-
this.eiList.add(T, N,
|
|
8972
|
+
this.eiList.add(T, N, M);
|
|
8973
8973
|
} }, { key: "toString", value: function() {
|
|
8974
8974
|
var o = new kt();
|
|
8975
8975
|
o.append("edge " + this._name + ": "), o.append("LINESTRING (");
|
|
@@ -9040,16 +9040,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9040
9040
|
this.computeNodedEdges(C, f), this._graph = new Ur(new Jn()), this._graph.addEdges(this._edgeList.getEdges());
|
|
9041
9041
|
var T = this.createSubgraphs(this._graph), N = new wn(this._geomFact);
|
|
9042
9042
|
this.buildSubgraphs(T, N);
|
|
9043
|
-
var
|
|
9044
|
-
return
|
|
9043
|
+
var M = N.getPolygons();
|
|
9044
|
+
return M.size() <= 0 ? this.createEmptyResultGeometry() : this._geomFact.buildGeometry(M);
|
|
9045
9045
|
} }, { key: "computeNodedEdges", value: function(a, o) {
|
|
9046
9046
|
var f = this.getNoder(o);
|
|
9047
9047
|
f.computeNodes(a);
|
|
9048
9048
|
for (var v = f.getNodedSubstrings().iterator(); v.hasNext(); ) {
|
|
9049
9049
|
var C = v.next(), T = C.getCoordinates();
|
|
9050
9050
|
if (T.length !== 2 || !T[0].equals2D(T[1])) {
|
|
9051
|
-
var N = C.getData(),
|
|
9052
|
-
this.insertUniqueEdge(
|
|
9051
|
+
var N = C.getData(), M = new an(C.getCoordinates(), new _t(N));
|
|
9052
|
+
this.insertUniqueEdge(M);
|
|
9053
9053
|
}
|
|
9054
9054
|
}
|
|
9055
9055
|
} }, { key: "setNoder", value: function(a) {
|
|
@@ -9129,7 +9129,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9129
9129
|
var v = f.next();
|
|
9130
9130
|
this.checkInteriorIntersections(o, v);
|
|
9131
9131
|
}
|
|
9132
|
-
else if (arguments.length === 2) for (var C = arguments[0], T = arguments[1], N = C.getCoordinates(),
|
|
9132
|
+
else if (arguments.length === 2) for (var C = arguments[0], T = arguments[1], N = C.getCoordinates(), M = T.getCoordinates(), H = 0; H < N.length - 1; H++) for (var re = 0; re < M.length - 1; re++) this.checkInteriorIntersections(C, H, T, re);
|
|
9133
9133
|
else if (arguments.length === 4) {
|
|
9134
9134
|
var ne = arguments[0], ce = arguments[1], Ee = arguments[2], De = arguments[3];
|
|
9135
9135
|
if (ne === Ee && ce === De) return null;
|
|
@@ -9166,8 +9166,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9166
9166
|
return m(h, [{ key: "intersectsScaled", value: function(a, o) {
|
|
9167
9167
|
var f = Math.min(a.x, o.x), v = Math.max(a.x, o.x), C = Math.min(a.y, o.y), T = Math.max(a.y, o.y), N = this._maxx < f || this._minx > v || this._maxy < C || this._miny > T;
|
|
9168
9168
|
if (N) return !1;
|
|
9169
|
-
var
|
|
9170
|
-
return ve.isTrue(!(N &&
|
|
9169
|
+
var M = this.intersectsToleranceSquare(a, o);
|
|
9170
|
+
return ve.isTrue(!(N && M), "Found bad envelope test"), M;
|
|
9171
9171
|
} }, { key: "initCorners", value: function(a) {
|
|
9172
9172
|
var o = 0.5;
|
|
9173
9173
|
this._minx = a.x - o, this._maxx = a.x + o, this._miny = a.y - o, this._maxy = a.y + o, this._corner[0] = new Q(this._maxx, this._maxy), this._corner[1] = new Q(this._minx, this._maxy), this._corner[2] = new Q(this._minx, this._miny), this._corner[3] = new Q(this._maxx, this._miny);
|
|
@@ -9265,7 +9265,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9265
9265
|
if (h === o && a === f) return null;
|
|
9266
9266
|
var v = h.getCoordinates()[a], C = h.getCoordinates()[a + 1], T = o.getCoordinates()[f], N = o.getCoordinates()[f + 1];
|
|
9267
9267
|
if (this._li.computeIntersection(v, C, T, N), this._li.hasIntersection() && this._li.isInteriorIntersection()) {
|
|
9268
|
-
for (var
|
|
9268
|
+
for (var M = 0; M < this._li.getIntersectionNum(); M++) this._interiorIntersections.add(this._li.getIntersection(M));
|
|
9269
9269
|
h.addIntersections(this._li, a, 0), o.addIntersections(this._li, f, 1);
|
|
9270
9270
|
}
|
|
9271
9271
|
} }, { key: "isDone", value: function() {
|
|
@@ -9364,7 +9364,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9364
9364
|
} }, { key: "setEndCapStyle", value: function(a) {
|
|
9365
9365
|
this._bufParams.setEndCapStyle(a);
|
|
9366
9366
|
} }], [{ key: "constructor_", value: function() {
|
|
9367
|
-
if (this._argGeom = null, this._distance = null, this._bufParams = new
|
|
9367
|
+
if (this._argGeom = null, this._distance = null, this._bufParams = new O(), this._resultGeometry = null, this._saveException = null, arguments.length === 1) {
|
|
9368
9368
|
var a = arguments[0];
|
|
9369
9369
|
this._argGeom = a;
|
|
9370
9370
|
} else if (arguments.length === 2) {
|
|
@@ -9381,20 +9381,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9381
9381
|
var o = arguments[1], f = arguments[2], v = new h(arguments[0]);
|
|
9382
9382
|
return v.setQuadrantSegments(f), v.getResultGeometry(o);
|
|
9383
9383
|
}
|
|
9384
|
-
if (arguments[2] instanceof
|
|
9384
|
+
if (arguments[2] instanceof O && arguments[0] instanceof fe && typeof arguments[1] == "number") {
|
|
9385
9385
|
var C = arguments[1];
|
|
9386
9386
|
return new h(arguments[0], arguments[2]).getResultGeometry(C);
|
|
9387
9387
|
}
|
|
9388
9388
|
} else if (arguments.length === 4) {
|
|
9389
|
-
var T = arguments[1], N = arguments[2],
|
|
9390
|
-
return H.setQuadrantSegments(N), H.setEndCapStyle(
|
|
9389
|
+
var T = arguments[1], N = arguments[2], M = arguments[3], H = new h(arguments[0]);
|
|
9390
|
+
return H.setQuadrantSegments(N), H.setEndCapStyle(M), H.getResultGeometry(T);
|
|
9391
9391
|
}
|
|
9392
9392
|
} }, { key: "precisionScaleFactor", value: function(a, o, f) {
|
|
9393
9393
|
var v = a.getEnvelopeInternal(), C = mt.max(Math.abs(v.getMaxX()), Math.abs(v.getMaxY()), Math.abs(v.getMinX()), Math.abs(v.getMinY())) + 2 * (o > 0 ? o : 0), T = f - Math.trunc(Math.log(C) / Math.log(10) + 1);
|
|
9394
9394
|
return Math.pow(10, T);
|
|
9395
9395
|
} }]);
|
|
9396
9396
|
})();
|
|
9397
|
-
ar.CAP_ROUND =
|
|
9397
|
+
ar.CAP_ROUND = O.CAP_ROUND, ar.CAP_BUTT = O.CAP_FLAT, ar.CAP_FLAT = O.CAP_FLAT, ar.CAP_SQUARE = O.CAP_SQUARE, ar.MAX_PRECISION_DIGITS = 12;
|
|
9398
9398
|
var ci = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], cn = (function() {
|
|
9399
9399
|
return m((function h(a) {
|
|
9400
9400
|
s(this, h), this.geometryFactory = a || new er();
|
|
@@ -9772,10 +9772,10 @@ function polygonContains(e, t) {
|
|
|
9772
9772
|
s === 1 ? n = halfPi + epsilon$2 : s === -1 && (n = -halfPi - epsilon$2);
|
|
9773
9773
|
for (var b = 0, E = e.length; b < E; ++b)
|
|
9774
9774
|
if (x = (I = e[b]).length)
|
|
9775
|
-
for (var I, x, S = I[x - 1], A = longitude(S), R = S[1] / 2 + quarterPi, k = sin(R), L = cos(R), $ = 0; $ < x; ++$, A = G, k = Y, L = z, S =
|
|
9776
|
-
var
|
|
9775
|
+
for (var I, x, S = I[x - 1], A = longitude(S), R = S[1] / 2 + quarterPi, k = sin(R), L = cos(R), $ = 0; $ < x; ++$, A = G, k = Y, L = z, S = O) {
|
|
9776
|
+
var O = I[$], G = longitude(O), q = O[1] / 2 + quarterPi, Y = sin(q), z = cos(q), W = G - A, X = W >= 0 ? 1 : -1, ee = X * W, te = ee > pi, se = k * Y;
|
|
9777
9777
|
if (y.add(atan2(se * X * sin(ee), L * z + se * cos(ee))), g += te ? W + X * tau : W, te ^ A >= r ^ G >= r) {
|
|
9778
|
-
var ie = cartesianCross(cartesian(S), cartesian(
|
|
9778
|
+
var ie = cartesianCross(cartesian(S), cartesian(O));
|
|
9779
9779
|
cartesianNormalizeInPlace(ie);
|
|
9780
9780
|
var oe = cartesianCross(d, ie);
|
|
9781
9781
|
cartesianNormalizeInPlace(oe);
|
|
@@ -9792,7 +9792,7 @@ function clip(e, t, r, n) {
|
|
|
9792
9792
|
lineStart: R,
|
|
9793
9793
|
lineEnd: k,
|
|
9794
9794
|
polygonStart: function() {
|
|
9795
|
-
x.point = L, x.lineStart = $, x.lineEnd =
|
|
9795
|
+
x.point = L, x.lineStart = $, x.lineEnd = O, E = [], b = [];
|
|
9796
9796
|
},
|
|
9797
9797
|
polygonEnd: function() {
|
|
9798
9798
|
x.point = S, x.lineStart = R, x.lineEnd = k, E = merge(E);
|
|
@@ -9821,7 +9821,7 @@ function clip(e, t, r, n) {
|
|
|
9821
9821
|
function $() {
|
|
9822
9822
|
m.lineStart(), I = [];
|
|
9823
9823
|
}
|
|
9824
|
-
function
|
|
9824
|
+
function O() {
|
|
9825
9825
|
L(I[0][0], I[0][1]), m.lineEnd();
|
|
9826
9826
|
var G = m.clean(), q = g.result(), Y, z = q.length, W, X, ee;
|
|
9827
9827
|
if (I.pop(), b.push(I), I = null, !!z) {
|
|
@@ -9899,9 +9899,9 @@ function clipCircle(e) {
|
|
|
9899
9899
|
A = S = !1, R = 1;
|
|
9900
9900
|
},
|
|
9901
9901
|
point: function(k, L) {
|
|
9902
|
-
var $ = [k, L],
|
|
9903
|
-
if (!I && (A = S = G) && E.lineStart(), G !== S && (
|
|
9904
|
-
R = 0, G ? (E.lineStart(),
|
|
9902
|
+
var $ = [k, L], O, G = g(k, L), q = n ? G ? 0 : b(k, L) : G ? b(k + (k < 0 ? pi : -pi), L) : 0;
|
|
9903
|
+
if (!I && (A = S = G) && E.lineStart(), G !== S && (O = y(I, $), (!O || pointEqual(I, O) || pointEqual($, O)) && ($[2] = 1)), G !== S)
|
|
9904
|
+
R = 0, G ? (E.lineStart(), O = y($, I), E.point(O[0], O[1])) : (O = y(I, $), E.point(O[0], O[1], 2), E.lineEnd()), I = O;
|
|
9905
9905
|
else if (s && I && n ^ G) {
|
|
9906
9906
|
var Y;
|
|
9907
9907
|
!(q & x) && (Y = y($, I, !0)) && (R = 0, n ? (E.lineStart(), E.point(Y[0][0], Y[0][1]), E.point(Y[1][0], Y[1][1]), E.lineEnd()) : (E.point(Y[1][0], Y[1][1]), E.lineEnd(), E.lineStart(), E.point(Y[0][0], Y[0][1], 3)));
|
|
@@ -9919,9 +9919,9 @@ function clipCircle(e) {
|
|
|
9919
9919
|
};
|
|
9920
9920
|
}
|
|
9921
9921
|
function y(E, I, x) {
|
|
9922
|
-
var S = cartesian(E), A = cartesian(I), R = [1, 0, 0], k = cartesianCross(S, A), L = cartesianDot(k, k), $ = k[0],
|
|
9923
|
-
if (!
|
|
9924
|
-
var G = t * L /
|
|
9922
|
+
var S = cartesian(E), A = cartesian(I), R = [1, 0, 0], k = cartesianCross(S, A), L = cartesianDot(k, k), $ = k[0], O = L - $ * $;
|
|
9923
|
+
if (!O) return !x && E;
|
|
9924
|
+
var G = t * L / O, q = -t * $ / O, Y = cartesianCross(R, k), z = cartesianScale(R, G), W = cartesianScale(k, q);
|
|
9925
9925
|
cartesianAddInPlace(z, W);
|
|
9926
9926
|
var X = Y, ee = cartesianDot(z, X), te = cartesianDot(X, X), se = ee * ee - te * (cartesianDot(z, z) - 1);
|
|
9927
9927
|
if (!(se < 0)) {
|
|
@@ -10007,7 +10007,7 @@ function clipRectangle(e, t, r, n) {
|
|
|
10007
10007
|
return I !== x ? I - x : I === 0 ? E[1] - b[1] : I === 1 ? b[0] - E[0] : I === 2 ? b[1] - E[1] : E[0] - b[0];
|
|
10008
10008
|
}
|
|
10009
10009
|
return function(b) {
|
|
10010
|
-
var E = b, I = clipBuffer(), x, S, A, R, k, L, $,
|
|
10010
|
+
var E = b, I = clipBuffer(), x, S, A, R, k, L, $, O, G, q, Y, z = {
|
|
10011
10011
|
point: W,
|
|
10012
10012
|
lineStart: se,
|
|
10013
10013
|
lineEnd: ie,
|
|
@@ -10031,7 +10031,7 @@ function clipRectangle(e, t, r, n) {
|
|
|
10031
10031
|
(ue || pe) && (b.polygonStart(), ue && (b.lineStart(), d(null, null, 1, b), b.lineEnd()), pe && clipRejoin(x, m, K, d, b), b.polygonEnd()), E = b, x = S = A = null;
|
|
10032
10032
|
}
|
|
10033
10033
|
function se() {
|
|
10034
|
-
z.point = oe, S && S.push(A = []), q = !0, G = !1, $ =
|
|
10034
|
+
z.point = oe, S && S.push(A = []), q = !0, G = !1, $ = O = NaN;
|
|
10035
10035
|
}
|
|
10036
10036
|
function ie() {
|
|
10037
10037
|
x && (oe(R, k), L && G && I.rejoin(), x.push(I.result())), z.point = W, G && E.lineEnd();
|
|
@@ -10042,10 +10042,10 @@ function clipRectangle(e, t, r, n) {
|
|
|
10042
10042
|
R = K, k = ue, L = pe, q = !1, pe && (E.lineStart(), E.point(K, ue));
|
|
10043
10043
|
else if (pe && G) E.point(K, ue);
|
|
10044
10044
|
else {
|
|
10045
|
-
var Ce = [$ = Math.max(clipMin, Math.min(clipMax, $)),
|
|
10045
|
+
var Ce = [$ = Math.max(clipMin, Math.min(clipMax, $)), O = Math.max(clipMin, Math.min(clipMax, O))], Ae = [K = Math.max(clipMin, Math.min(clipMax, K)), ue = Math.max(clipMin, Math.min(clipMax, ue))];
|
|
10046
10046
|
clipLine(Ce, Ae, e, t, r, n) ? (G || (E.lineStart(), E.point(Ce[0], Ce[1])), E.point(Ae[0], Ae[1]), pe || E.lineEnd(), Y = !1) : pe && (E.lineStart(), E.point(K, ue), Y = !1);
|
|
10047
10047
|
}
|
|
10048
|
-
$ = K,
|
|
10048
|
+
$ = K, O = ue, G = pe;
|
|
10049
10049
|
}
|
|
10050
10050
|
return z;
|
|
10051
10051
|
};
|
|
@@ -10133,10 +10133,10 @@ function resampleNone(e) {
|
|
|
10133
10133
|
}
|
|
10134
10134
|
function resample$1(e, t) {
|
|
10135
10135
|
function r(n, s, d, g, m, y, b, E, I, x, S, A, R, k) {
|
|
10136
|
-
var L = b - n, $ = E - s,
|
|
10137
|
-
if (
|
|
10136
|
+
var L = b - n, $ = E - s, O = L * L + $ * $;
|
|
10137
|
+
if (O > 4 * t && R--) {
|
|
10138
10138
|
var G = g + x, q = m + S, Y = y + A, z = sqrt(G * G + q * q + Y * Y), W = asin(Y /= z), X = abs$1(abs$1(Y) - 1) < epsilon$2 || abs$1(d - I) < epsilon$2 ? (d + I) / 2 : atan2(q, G), ee = e(X, W), te = ee[0], se = ee[1], ie = te - n, oe = se - s, K = $ * ie - L * oe;
|
|
10139
|
-
(K * K /
|
|
10139
|
+
(K * K / O > t || abs$1((L * ie + $ * oe) / O - 0.5) > 0.3 || g * x + m * S + y * A < cosMinDistance) && (r(n, s, d, g, m, y, te, se, X, G /= z, q /= z, Y, R, k), k.point(te, se), r(te, se, X, G, q, Y, b, E, I, x, S, A, R, k));
|
|
10140
10140
|
}
|
|
10141
10141
|
}
|
|
10142
10142
|
return function(n) {
|
|
@@ -10155,9 +10155,9 @@ function resample$1(e, t) {
|
|
|
10155
10155
|
W = e(W, X), n.point(W[0], W[1]);
|
|
10156
10156
|
}
|
|
10157
10157
|
function $() {
|
|
10158
|
-
I = NaN, k.point =
|
|
10158
|
+
I = NaN, k.point = O, n.lineStart();
|
|
10159
10159
|
}
|
|
10160
|
-
function
|
|
10160
|
+
function O(W, X) {
|
|
10161
10161
|
var ee = cartesian([W, X]), te = e(W, X);
|
|
10162
10162
|
r(I, x, E, S, A, R, I = te[0], x = te[1], E = W, S = ee[0], A = ee[1], R = ee[2], maxDepth, n), n.point(I, x);
|
|
10163
10163
|
}
|
|
@@ -10168,7 +10168,7 @@ function resample$1(e, t) {
|
|
|
10168
10168
|
$(), k.point = Y, k.lineEnd = z;
|
|
10169
10169
|
}
|
|
10170
10170
|
function Y(W, X) {
|
|
10171
|
-
|
|
10171
|
+
O(s = W, X), d = I, g = x, m = S, y = A, b = R, k.point = O;
|
|
10172
10172
|
}
|
|
10173
10173
|
function z() {
|
|
10174
10174
|
r(I, x, E, S, A, R, d, g, s, m, y, b, maxDepth, n), k.lineEnd = G, G();
|
|
@@ -10213,7 +10213,7 @@ function projection(e) {
|
|
|
10213
10213
|
})();
|
|
10214
10214
|
}
|
|
10215
10215
|
function projectionMutator(e) {
|
|
10216
|
-
var t, r = 150, n = 480, s = 250, d = 0, g = 0, m = 0, y = 0, b = 0, E, I = 0, x = 1, S = 1, A = null, R = clipAntimeridian, k = null, L, $,
|
|
10216
|
+
var t, r = 150, n = 480, s = 250, d = 0, g = 0, m = 0, y = 0, b = 0, E, I = 0, x = 1, S = 1, A = null, R = clipAntimeridian, k = null, L, $, O, G = identity, q = 0.5, Y, z, W, X, ee;
|
|
10217
10217
|
function te(K) {
|
|
10218
10218
|
return W(K[0] * radians, K[1] * radians);
|
|
10219
10219
|
}
|
|
@@ -10225,11 +10225,11 @@ function projectionMutator(e) {
|
|
|
10225
10225
|
}, te.preclip = function(K) {
|
|
10226
10226
|
return arguments.length ? (R = K, A = void 0, oe()) : R;
|
|
10227
10227
|
}, te.postclip = function(K) {
|
|
10228
|
-
return arguments.length ? (G = K, k = L = $ =
|
|
10228
|
+
return arguments.length ? (G = K, k = L = $ = O = null, oe()) : G;
|
|
10229
10229
|
}, te.clipAngle = function(K) {
|
|
10230
10230
|
return arguments.length ? (R = +K ? clipCircle(A = K * radians) : (A = null, clipAntimeridian), oe()) : A * degrees;
|
|
10231
10231
|
}, te.clipExtent = function(K) {
|
|
10232
|
-
return arguments.length ? (G = K == null ? (k = L = $ =
|
|
10232
|
+
return arguments.length ? (G = K == null ? (k = L = $ = O = null, identity) : clipRectangle(k = +K[0][0], L = +K[0][1], $ = +K[1][0], O = +K[1][1]), oe()) : k == null ? null : [[k, L], [$, O]];
|
|
10233
10233
|
}, te.scale = function(K) {
|
|
10234
10234
|
return arguments.length ? (r = +K, ie()) : r;
|
|
10235
10235
|
}, te.translate = function(K) {
|
|
@@ -10812,14 +10812,14 @@ const mapBasemapBundle = {
|
|
|
10812
10812
|
maxZoom: k
|
|
10813
10813
|
};
|
|
10814
10814
|
I && (L.extent = I);
|
|
10815
|
-
const $ = new View(L),
|
|
10815
|
+
const $ = new View(L), O = new olMap({
|
|
10816
10816
|
controls: [new ScaleBar({ units: "us" })],
|
|
10817
10817
|
target: n,
|
|
10818
10818
|
view: $
|
|
10819
10819
|
});
|
|
10820
|
-
|
|
10820
|
+
O.on("moveend", debounce(g.doMapUpdateViewState, 200)), O.on("precompose", debounce(g.doMapPreCompose, 50)), O.on("rendercomplete", debounce(g.doMapRenderComplete, 200)), d({
|
|
10821
10821
|
type: "MAP_INITIALIZED",
|
|
10822
|
-
payload: { map:
|
|
10822
|
+
payload: { map: O, opts: s }
|
|
10823
10823
|
});
|
|
10824
10824
|
},
|
|
10825
10825
|
doMapPreCompose: () => ({ dispatch: n }) => {
|
|
@@ -10999,6 +10999,7 @@ const mapBasemapBundle = {
|
|
|
10999
10999
|
url: e.url,
|
|
11000
11000
|
info: e.info,
|
|
11001
11001
|
identifyType: e.identifyType,
|
|
11002
|
+
identifyLayers: e.identifyLayers,
|
|
11002
11003
|
identifyFields: e.identifyFields,
|
|
11003
11004
|
identifyRenameColums: e.identifyRenameColums,
|
|
11004
11005
|
identifyFormatColumns: e.identifyFormatColumns,
|
|
@@ -12866,7 +12867,7 @@ const config$1 = {
|
|
|
12866
12867
|
path: "depricated"
|
|
12867
12868
|
}
|
|
12868
12869
|
]
|
|
12869
|
-
}, version = "4.1.
|
|
12870
|
+
}, version = "4.1.31", pkg = {
|
|
12870
12871
|
version
|
|
12871
12872
|
};
|
|
12872
12873
|
console.log("------ RUNNING CORPSMAP V." + pkg.version + " ------");
|
|
@@ -14145,39 +14146,39 @@ function requireDom() {
|
|
|
14145
14146
|
if (hasRequiredDom) return dom;
|
|
14146
14147
|
hasRequiredDom = 1;
|
|
14147
14148
|
var e = requireConventions(), t = e.find, r = e.NAMESPACE, n = e.tagNamePattern;
|
|
14148
|
-
function s(
|
|
14149
|
-
return
|
|
14149
|
+
function s(F) {
|
|
14150
|
+
return F !== "";
|
|
14150
14151
|
}
|
|
14151
|
-
function d(
|
|
14152
|
-
return
|
|
14152
|
+
function d(F) {
|
|
14153
|
+
return F ? F.split(/[\t\n\f\r ]+/).filter(s) : [];
|
|
14153
14154
|
}
|
|
14154
|
-
function g(
|
|
14155
|
-
return
|
|
14155
|
+
function g(F, U) {
|
|
14156
|
+
return F.hasOwnProperty(U) || (F[U] = !0), F;
|
|
14156
14157
|
}
|
|
14157
|
-
function m(
|
|
14158
|
-
if (!
|
|
14159
|
-
var U = d(
|
|
14158
|
+
function m(F) {
|
|
14159
|
+
if (!F) return [];
|
|
14160
|
+
var U = d(F);
|
|
14160
14161
|
return Object.keys(U.reduce(g, {}));
|
|
14161
14162
|
}
|
|
14162
|
-
function y(
|
|
14163
|
+
function y(F) {
|
|
14163
14164
|
return function(U) {
|
|
14164
|
-
return
|
|
14165
|
+
return F && F.indexOf(U) !== -1;
|
|
14165
14166
|
};
|
|
14166
14167
|
}
|
|
14167
|
-
function b(
|
|
14168
|
-
for (var J in
|
|
14169
|
-
Object.prototype.hasOwnProperty.call(
|
|
14168
|
+
function b(F, U) {
|
|
14169
|
+
for (var J in F)
|
|
14170
|
+
Object.prototype.hasOwnProperty.call(F, J) && (U[J] = F[J]);
|
|
14170
14171
|
}
|
|
14171
|
-
function E(
|
|
14172
|
-
var J =
|
|
14172
|
+
function E(F, U) {
|
|
14173
|
+
var J = F.prototype;
|
|
14173
14174
|
if (!(J instanceof U)) {
|
|
14174
14175
|
let ae = function() {
|
|
14175
14176
|
};
|
|
14176
|
-
ae.prototype = U.prototype, ae = new ae(), b(J, ae),
|
|
14177
|
+
ae.prototype = U.prototype, ae = new ae(), b(J, ae), F.prototype = J = ae;
|
|
14177
14178
|
}
|
|
14178
|
-
J.constructor !=
|
|
14179
|
+
J.constructor != F && (typeof F != "function" && console.error("unknown Class:" + F), J.constructor = F);
|
|
14179
14180
|
}
|
|
14180
|
-
var I = {}, x = I.ELEMENT_NODE = 1, S = I.ATTRIBUTE_NODE = 2, A = I.TEXT_NODE = 3, R = I.CDATA_SECTION_NODE = 4, k = I.ENTITY_REFERENCE_NODE = 5, L = I.ENTITY_NODE = 6, $ = I.PROCESSING_INSTRUCTION_NODE = 7,
|
|
14181
|
+
var I = {}, x = I.ELEMENT_NODE = 1, S = I.ATTRIBUTE_NODE = 2, A = I.TEXT_NODE = 3, R = I.CDATA_SECTION_NODE = 4, k = I.ENTITY_REFERENCE_NODE = 5, L = I.ENTITY_NODE = 6, $ = I.PROCESSING_INSTRUCTION_NODE = 7, O = I.COMMENT_NODE = 8, G = I.DOCUMENT_NODE = 9, q = I.DOCUMENT_TYPE_NODE = 10, Y = I.DOCUMENT_FRAGMENT_NODE = 11, z = I.NOTATION_NODE = 12, W = {}, X = {};
|
|
14181
14182
|
W.INDEX_SIZE_ERR = (X[1] = "Index size error", 1), W.DOMSTRING_SIZE_ERR = (X[2] = "DOMString size error", 2);
|
|
14182
14183
|
var ee = W.HIERARCHY_REQUEST_ERR = (X[3] = "Hierarchy request error", 3);
|
|
14183
14184
|
W.WRONG_DOCUMENT_ERR = (X[4] = "Wrong document", 4);
|
|
@@ -14187,12 +14188,12 @@ function requireDom() {
|
|
|
14187
14188
|
W.NOT_SUPPORTED_ERR = (X[9] = "Not supported", 9);
|
|
14188
14189
|
var ie = W.INUSE_ATTRIBUTE_ERR = (X[10] = "Attribute in use", 10), oe = W.INVALID_STATE_ERR = (X[11] = "Invalid state", 11);
|
|
14189
14190
|
W.SYNTAX_ERR = (X[12] = "Syntax error", 12), W.INVALID_MODIFICATION_ERR = (X[13] = "Invalid modification", 13), W.NAMESPACE_ERR = (X[14] = "Invalid namespace", 14), W.INVALID_ACCESS_ERR = (X[15] = "Invalid access", 15);
|
|
14190
|
-
function K(
|
|
14191
|
+
function K(F, U) {
|
|
14191
14192
|
if (U instanceof Error)
|
|
14192
14193
|
var J = U;
|
|
14193
14194
|
else
|
|
14194
|
-
J = this, Error.call(this, X[
|
|
14195
|
-
return J.code =
|
|
14195
|
+
J = this, Error.call(this, X[F]), this.message = X[F], Error.captureStackTrace && Error.captureStackTrace(this, K);
|
|
14196
|
+
return J.code = F, U && (this.message = this.message + ": " + U), J;
|
|
14196
14197
|
}
|
|
14197
14198
|
K.prototype = Error.prototype, b(W, K);
|
|
14198
14199
|
function ue() {
|
|
@@ -14211,12 +14212,12 @@ function requireDom() {
|
|
|
14211
14212
|
* @return Node
|
|
14212
14213
|
* The node at the indexth position in the NodeList, or null if that is not a valid index.
|
|
14213
14214
|
*/
|
|
14214
|
-
item: function(
|
|
14215
|
-
return
|
|
14215
|
+
item: function(F) {
|
|
14216
|
+
return F >= 0 && F < this.length ? this[F] : null;
|
|
14216
14217
|
},
|
|
14217
|
-
toString: function(
|
|
14218
|
+
toString: function(F, U, J) {
|
|
14218
14219
|
for (var ae = !!J && !!J.requireWellFormed, ge = [], Ie = 0; Ie < this.length; Ie++)
|
|
14219
|
-
ur(this[Ie], ge,
|
|
14220
|
+
ur(this[Ie], ge, F, U, null, ae);
|
|
14220
14221
|
return ge.join("");
|
|
14221
14222
|
},
|
|
14222
14223
|
/**
|
|
@@ -14224,106 +14225,106 @@ function requireDom() {
|
|
|
14224
14225
|
* @param {function (Node):boolean} predicate
|
|
14225
14226
|
* @returns {Node[]}
|
|
14226
14227
|
*/
|
|
14227
|
-
filter: function(
|
|
14228
|
-
return Array.prototype.filter.call(this,
|
|
14228
|
+
filter: function(F) {
|
|
14229
|
+
return Array.prototype.filter.call(this, F);
|
|
14229
14230
|
},
|
|
14230
14231
|
/**
|
|
14231
14232
|
* @private
|
|
14232
14233
|
* @param {Node} item
|
|
14233
14234
|
* @returns {number}
|
|
14234
14235
|
*/
|
|
14235
|
-
indexOf: function(
|
|
14236
|
-
return Array.prototype.indexOf.call(this,
|
|
14236
|
+
indexOf: function(F) {
|
|
14237
|
+
return Array.prototype.indexOf.call(this, F);
|
|
14237
14238
|
}
|
|
14238
14239
|
};
|
|
14239
|
-
function pe(
|
|
14240
|
-
this._node =
|
|
14240
|
+
function pe(F, U) {
|
|
14241
|
+
this._node = F, this._refresh = U, Ce(this);
|
|
14241
14242
|
}
|
|
14242
|
-
function Ce(
|
|
14243
|
-
var U =
|
|
14244
|
-
if (
|
|
14245
|
-
var J =
|
|
14246
|
-
if (ye(
|
|
14247
|
-
for (var ae = J.length; ae in
|
|
14248
|
-
Object.prototype.hasOwnProperty.call(
|
|
14249
|
-
b(J,
|
|
14243
|
+
function Ce(F) {
|
|
14244
|
+
var U = F._node._inc || F._node.ownerDocument._inc;
|
|
14245
|
+
if (F._inc !== U) {
|
|
14246
|
+
var J = F._refresh(F._node);
|
|
14247
|
+
if (ye(F, "length", J.length), !F.$$length || J.length < F.$$length)
|
|
14248
|
+
for (var ae = J.length; ae in F; ae++)
|
|
14249
|
+
Object.prototype.hasOwnProperty.call(F, ae) && delete F[ae];
|
|
14250
|
+
b(J, F), F._inc = U;
|
|
14250
14251
|
}
|
|
14251
14252
|
}
|
|
14252
|
-
pe.prototype.item = function(
|
|
14253
|
-
return Ce(this), this[
|
|
14253
|
+
pe.prototype.item = function(F) {
|
|
14254
|
+
return Ce(this), this[F] || null;
|
|
14254
14255
|
}, E(pe, ue);
|
|
14255
14256
|
function Ae() {
|
|
14256
14257
|
this._nameIndex = /* @__PURE__ */ Object.create(null);
|
|
14257
14258
|
}
|
|
14258
|
-
function he(
|
|
14259
|
-
for (var J =
|
|
14260
|
-
if (
|
|
14259
|
+
function he(F, U) {
|
|
14260
|
+
for (var J = F.length; J--; )
|
|
14261
|
+
if (F[J] === U)
|
|
14261
14262
|
return J;
|
|
14262
14263
|
}
|
|
14263
|
-
function Be(
|
|
14264
|
-
|
|
14264
|
+
function Be(F, U) {
|
|
14265
|
+
F._nameIndex[U.nodeName] = U;
|
|
14265
14266
|
}
|
|
14266
|
-
function Se(
|
|
14267
|
-
|
|
14267
|
+
function Se(F, U) {
|
|
14268
|
+
F._nameIndex[U.nodeName] === U && delete F._nameIndex[U.nodeName];
|
|
14268
14269
|
}
|
|
14269
|
-
function _e(
|
|
14270
|
-
if (ae ? (U[he(U, ae)] = J, Se(U, ae)) : U[U.length++] = J, Be(U, J),
|
|
14271
|
-
J.ownerElement =
|
|
14272
|
-
var ge =
|
|
14273
|
-
ge && (ae && V(ge,
|
|
14270
|
+
function _e(F, U, J, ae) {
|
|
14271
|
+
if (ae ? (U[he(U, ae)] = J, Se(U, ae)) : U[U.length++] = J, Be(U, J), F) {
|
|
14272
|
+
J.ownerElement = F;
|
|
14273
|
+
var ge = F.ownerDocument;
|
|
14274
|
+
ge && (ae && V(ge, F, ae), fe(ge, F, J));
|
|
14274
14275
|
}
|
|
14275
14276
|
}
|
|
14276
|
-
function ve(
|
|
14277
|
+
function ve(F, U, J) {
|
|
14277
14278
|
var ae = he(U, J);
|
|
14278
14279
|
if (ae >= 0) {
|
|
14279
14280
|
for (var ge = U.length - 1; ae < ge; )
|
|
14280
14281
|
U[ae] = U[++ae];
|
|
14281
|
-
if (U.length = ge, Se(U, J),
|
|
14282
|
-
var Ie =
|
|
14283
|
-
Ie && (V(Ie,
|
|
14282
|
+
if (U.length = ge, Se(U, J), F) {
|
|
14283
|
+
var Ie = F.ownerDocument;
|
|
14284
|
+
Ie && (V(Ie, F, J), J.ownerElement = null);
|
|
14284
14285
|
}
|
|
14285
14286
|
} else
|
|
14286
|
-
throw new K(se, new Error(
|
|
14287
|
+
throw new K(se, new Error(F.tagName + "@" + J));
|
|
14287
14288
|
}
|
|
14288
14289
|
Ae.prototype = {
|
|
14289
14290
|
length: 0,
|
|
14290
14291
|
item: ue.prototype.item,
|
|
14291
|
-
getNamedItem: function(
|
|
14292
|
+
getNamedItem: function(F) {
|
|
14292
14293
|
for (var U = this.length; U--; ) {
|
|
14293
14294
|
var J = this[U];
|
|
14294
|
-
if (J.nodeName ==
|
|
14295
|
+
if (J.nodeName == F)
|
|
14295
14296
|
return J;
|
|
14296
14297
|
}
|
|
14297
14298
|
},
|
|
14298
|
-
setNamedItem: function(
|
|
14299
|
-
var U =
|
|
14299
|
+
setNamedItem: function(F) {
|
|
14300
|
+
var U = F.ownerElement;
|
|
14300
14301
|
if (U && U != this._ownerElement)
|
|
14301
14302
|
throw new K(ie);
|
|
14302
|
-
var J = this._nameIndex[
|
|
14303
|
-
return _e(this._ownerElement, this,
|
|
14303
|
+
var J = this._nameIndex[F.nodeName];
|
|
14304
|
+
return _e(this._ownerElement, this, F, J), J;
|
|
14304
14305
|
},
|
|
14305
14306
|
/* returns Node */
|
|
14306
|
-
setNamedItemNS: function(
|
|
14307
|
-
var U =
|
|
14307
|
+
setNamedItemNS: function(F) {
|
|
14308
|
+
var U = F.ownerElement, J;
|
|
14308
14309
|
if (U && U != this._ownerElement)
|
|
14309
14310
|
throw new K(ie);
|
|
14310
|
-
return J = this.getNamedItemNS(
|
|
14311
|
+
return J = this.getNamedItemNS(F.namespaceURI, F.localName), _e(this._ownerElement, this, F, J), J;
|
|
14311
14312
|
},
|
|
14312
14313
|
/* returns Node */
|
|
14313
|
-
removeNamedItem: function(
|
|
14314
|
-
var U = this.getNamedItem(
|
|
14314
|
+
removeNamedItem: function(F) {
|
|
14315
|
+
var U = this.getNamedItem(F);
|
|
14315
14316
|
return ve(this._ownerElement, this, U), U;
|
|
14316
14317
|
},
|
|
14317
14318
|
// raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR
|
|
14318
14319
|
//for level2
|
|
14319
|
-
removeNamedItemNS: function(
|
|
14320
|
-
var J = this.getNamedItemNS(
|
|
14320
|
+
removeNamedItemNS: function(F, U) {
|
|
14321
|
+
var J = this.getNamedItemNS(F, U);
|
|
14321
14322
|
return ve(this._ownerElement, this, J), J;
|
|
14322
14323
|
},
|
|
14323
|
-
getNamedItemNS: function(
|
|
14324
|
+
getNamedItemNS: function(F, U) {
|
|
14324
14325
|
for (var J = this.length; J--; ) {
|
|
14325
14326
|
var ae = this[J];
|
|
14326
|
-
if (ae.localName == U && ae.namespaceURI ==
|
|
14327
|
+
if (ae.localName == U && ae.namespaceURI == F)
|
|
14327
14328
|
return ae;
|
|
14328
14329
|
}
|
|
14329
14330
|
return null;
|
|
@@ -14347,7 +14348,7 @@ function requireDom() {
|
|
|
14347
14348
|
* @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core
|
|
14348
14349
|
* @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard
|
|
14349
14350
|
*/
|
|
14350
|
-
hasFeature: function(
|
|
14351
|
+
hasFeature: function(F, U) {
|
|
14351
14352
|
return !0;
|
|
14352
14353
|
},
|
|
14353
14354
|
/**
|
|
@@ -14372,10 +14373,10 @@ function requireDom() {
|
|
|
14372
14373
|
* @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
|
|
14373
14374
|
* @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
|
|
14374
14375
|
*/
|
|
14375
|
-
createDocument: function(
|
|
14376
|
+
createDocument: function(F, U, J) {
|
|
14376
14377
|
var ae = new me();
|
|
14377
14378
|
if (ae.implementation = this, ae.childNodes = new ue(), ae.doctype = J || null, J && ae.appendChild(J), U) {
|
|
14378
|
-
var ge = ae.createElementNS(
|
|
14379
|
+
var ge = ae.createElementNS(F, U);
|
|
14379
14380
|
ae.appendChild(ge);
|
|
14380
14381
|
}
|
|
14381
14382
|
return ae;
|
|
@@ -14416,9 +14417,9 @@ function requireDom() {
|
|
|
14416
14417
|
* @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
|
|
14417
14418
|
* @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
|
|
14418
14419
|
*/
|
|
14419
|
-
createDocumentType: function(
|
|
14420
|
+
createDocumentType: function(F, U, J) {
|
|
14420
14421
|
var ae = new Pt();
|
|
14421
|
-
return ae.name =
|
|
14422
|
+
return ae.name = F, ae.nodeName = F, ae.publicId = U || "", ae.systemId = J || "", ae;
|
|
14422
14423
|
}
|
|
14423
14424
|
};
|
|
14424
14425
|
function be() {
|
|
@@ -14437,23 +14438,23 @@ function requireDom() {
|
|
|
14437
14438
|
prefix: null,
|
|
14438
14439
|
localName: null,
|
|
14439
14440
|
// Modified in DOM Level 2:
|
|
14440
|
-
insertBefore: function(
|
|
14441
|
-
return ct(this,
|
|
14441
|
+
insertBefore: function(F, U) {
|
|
14442
|
+
return ct(this, F, U);
|
|
14442
14443
|
},
|
|
14443
|
-
replaceChild: function(
|
|
14444
|
-
ct(this,
|
|
14444
|
+
replaceChild: function(F, U) {
|
|
14445
|
+
ct(this, F, U, Le), U && this.removeChild(U);
|
|
14445
14446
|
},
|
|
14446
|
-
removeChild: function(
|
|
14447
|
-
return Pe(this,
|
|
14447
|
+
removeChild: function(F) {
|
|
14448
|
+
return Pe(this, F);
|
|
14448
14449
|
},
|
|
14449
|
-
appendChild: function(
|
|
14450
|
-
return this.insertBefore(
|
|
14450
|
+
appendChild: function(F) {
|
|
14451
|
+
return this.insertBefore(F, null);
|
|
14451
14452
|
},
|
|
14452
14453
|
hasChildNodes: function() {
|
|
14453
14454
|
return this.firstChild != null;
|
|
14454
14455
|
},
|
|
14455
|
-
cloneNode: function(
|
|
14456
|
-
return Rt(this.ownerDocument || this, this,
|
|
14456
|
+
cloneNode: function(F) {
|
|
14457
|
+
return Rt(this.ownerDocument || this, this, F);
|
|
14457
14458
|
},
|
|
14458
14459
|
// Modified in DOM Level 2:
|
|
14459
14460
|
/**
|
|
@@ -14476,8 +14477,8 @@ function requireDom() {
|
|
|
14476
14477
|
*/
|
|
14477
14478
|
normalize: function() {
|
|
14478
14479
|
Me(this, null, {
|
|
14479
|
-
enter: function(
|
|
14480
|
-
for (var U =
|
|
14480
|
+
enter: function(F) {
|
|
14481
|
+
for (var U = F.firstChild; U; ) {
|
|
14481
14482
|
var J = U.nextSibling;
|
|
14482
14483
|
if (J !== null && J.nodeType === A && U.nodeType === A) {
|
|
14483
14484
|
for (var ae = [], ge = J; ge !== null && ge.nodeType === A; )
|
|
@@ -14486,7 +14487,7 @@ function requireDom() {
|
|
|
14486
14487
|
var de = Ie.nextSibling;
|
|
14487
14488
|
Ie.parentNode = null, Ie.previousSibling = null, Ie.nextSibling = null, Ie = de;
|
|
14488
14489
|
}
|
|
14489
|
-
U.nextSibling = ge, ge !== null ? ge.previousSibling = U :
|
|
14490
|
+
U.nextSibling = ge, ge !== null ? ge.previousSibling = U : F.lastChild = U, U.appendData(ae.join("")), xe(F.ownerDocument, F), U = ge;
|
|
14490
14491
|
} else
|
|
14491
14492
|
U = J;
|
|
14492
14493
|
}
|
|
@@ -14495,8 +14496,8 @@ function requireDom() {
|
|
|
14495
14496
|
});
|
|
14496
14497
|
},
|
|
14497
14498
|
// Introduced in DOM Level 2:
|
|
14498
|
-
isSupported: function(
|
|
14499
|
-
return this.ownerDocument.implementation.hasFeature(
|
|
14499
|
+
isSupported: function(F, U) {
|
|
14500
|
+
return this.ownerDocument.implementation.hasFeature(F, U);
|
|
14500
14501
|
},
|
|
14501
14502
|
// Introduced in DOM Level 2:
|
|
14502
14503
|
hasAttributes: function() {
|
|
@@ -14516,12 +14517,12 @@ function requireDom() {
|
|
|
14516
14517
|
* @see https://dom.spec.whatwg.org/#dom-node-lookupprefix
|
|
14517
14518
|
* @see https://github.com/xmldom/xmldom/issues/322
|
|
14518
14519
|
*/
|
|
14519
|
-
lookupPrefix: function(
|
|
14520
|
+
lookupPrefix: function(F) {
|
|
14520
14521
|
for (var U = this; U; ) {
|
|
14521
14522
|
var J = U._nsMap;
|
|
14522
14523
|
if (J) {
|
|
14523
14524
|
for (var ae in J)
|
|
14524
|
-
if (Object.prototype.hasOwnProperty.call(J, ae) && J[ae] ===
|
|
14525
|
+
if (Object.prototype.hasOwnProperty.call(J, ae) && J[ae] === F)
|
|
14525
14526
|
return ae;
|
|
14526
14527
|
}
|
|
14527
14528
|
U = U.nodeType == S ? U.ownerDocument : U.parentNode;
|
|
@@ -14529,32 +14530,32 @@ function requireDom() {
|
|
|
14529
14530
|
return null;
|
|
14530
14531
|
},
|
|
14531
14532
|
// Introduced in DOM Level 3:
|
|
14532
|
-
lookupNamespaceURI: function(
|
|
14533
|
+
lookupNamespaceURI: function(F) {
|
|
14533
14534
|
for (var U = this; U; ) {
|
|
14534
14535
|
var J = U._nsMap;
|
|
14535
|
-
if (J && Object.prototype.hasOwnProperty.call(J,
|
|
14536
|
-
return J[
|
|
14536
|
+
if (J && Object.prototype.hasOwnProperty.call(J, F))
|
|
14537
|
+
return J[F];
|
|
14537
14538
|
U = U.nodeType == S ? U.ownerDocument : U.parentNode;
|
|
14538
14539
|
}
|
|
14539
14540
|
return null;
|
|
14540
14541
|
},
|
|
14541
14542
|
// Introduced in DOM Level 3:
|
|
14542
|
-
isDefaultNamespace: function(
|
|
14543
|
-
var U = this.lookupPrefix(
|
|
14543
|
+
isDefaultNamespace: function(F) {
|
|
14544
|
+
var U = this.lookupPrefix(F);
|
|
14544
14545
|
return U == null;
|
|
14545
14546
|
}
|
|
14546
14547
|
};
|
|
14547
|
-
function Oe(
|
|
14548
|
-
return
|
|
14548
|
+
function Oe(F) {
|
|
14549
|
+
return F == "<" && "<" || F == ">" && ">" || F == "&" && "&" || F == '"' && """ || "&#" + F.charCodeAt() + ";";
|
|
14549
14550
|
}
|
|
14550
14551
|
b(I, be), b(I, be.prototype);
|
|
14551
|
-
function Q(
|
|
14552
|
-
return Me(
|
|
14552
|
+
function Q(F, U) {
|
|
14553
|
+
return Me(F, null, { enter: function(J) {
|
|
14553
14554
|
return U(J) ? Me.STOP : !0;
|
|
14554
14555
|
} }) === Me.STOP;
|
|
14555
14556
|
}
|
|
14556
|
-
function Me(
|
|
14557
|
-
for (var ae = [{ node:
|
|
14557
|
+
function Me(F, U, J) {
|
|
14558
|
+
for (var ae = [{ node: F, context: U, phase: Me.ENTER }]; ae.length > 0; ) {
|
|
14558
14559
|
var ge = ae.pop();
|
|
14559
14560
|
if (ge.phase === Me.ENTER) {
|
|
14560
14561
|
var Ie = J.enter(ge.node, ge.context);
|
|
@@ -14572,19 +14573,19 @@ function requireDom() {
|
|
|
14572
14573
|
function me() {
|
|
14573
14574
|
this.ownerDocument = this;
|
|
14574
14575
|
}
|
|
14575
|
-
function fe(
|
|
14576
|
-
|
|
14576
|
+
function fe(F, U, J) {
|
|
14577
|
+
F && F._inc++;
|
|
14577
14578
|
var ae = J.namespaceURI;
|
|
14578
14579
|
ae === r.XMLNS && (U._nsMap[J.prefix ? J.localName : ""] = J.value);
|
|
14579
14580
|
}
|
|
14580
|
-
function V(
|
|
14581
|
-
|
|
14581
|
+
function V(F, U, J, ae) {
|
|
14582
|
+
F && F._inc++;
|
|
14582
14583
|
var ge = J.namespaceURI;
|
|
14583
14584
|
ge === r.XMLNS && delete U._nsMap[J.prefix ? J.localName : ""];
|
|
14584
14585
|
}
|
|
14585
|
-
function xe(
|
|
14586
|
-
if (
|
|
14587
|
-
|
|
14586
|
+
function xe(F, U, J) {
|
|
14587
|
+
if (F && F._inc) {
|
|
14588
|
+
F._inc++;
|
|
14588
14589
|
var ae = U.childNodes;
|
|
14589
14590
|
if (J)
|
|
14590
14591
|
ae[ae.length++] = J;
|
|
@@ -14595,34 +14596,34 @@ function requireDom() {
|
|
|
14595
14596
|
}
|
|
14596
14597
|
}
|
|
14597
14598
|
}
|
|
14598
|
-
function Pe(
|
|
14599
|
+
function Pe(F, U) {
|
|
14599
14600
|
var J = U.previousSibling, ae = U.nextSibling;
|
|
14600
|
-
return J ? J.nextSibling = ae :
|
|
14601
|
+
return J ? J.nextSibling = ae : F.firstChild = ae, ae ? ae.previousSibling = J : F.lastChild = J, U.parentNode = null, U.previousSibling = null, U.nextSibling = null, xe(F.ownerDocument, F), U;
|
|
14601
14602
|
}
|
|
14602
|
-
function Ve(
|
|
14603
|
-
return
|
|
14603
|
+
function Ve(F) {
|
|
14604
|
+
return F && (F.nodeType === be.DOCUMENT_NODE || F.nodeType === be.DOCUMENT_FRAGMENT_NODE || F.nodeType === be.ELEMENT_NODE);
|
|
14604
14605
|
}
|
|
14605
|
-
function Ue(
|
|
14606
|
-
return
|
|
14606
|
+
function Ue(F) {
|
|
14607
|
+
return F && (Ze(F) || le(F) || Ye(F) || F.nodeType === be.DOCUMENT_FRAGMENT_NODE || F.nodeType === be.COMMENT_NODE || F.nodeType === be.PROCESSING_INSTRUCTION_NODE);
|
|
14607
14608
|
}
|
|
14608
|
-
function Ye(
|
|
14609
|
-
return
|
|
14609
|
+
function Ye(F) {
|
|
14610
|
+
return F && F.nodeType === be.DOCUMENT_TYPE_NODE;
|
|
14610
14611
|
}
|
|
14611
|
-
function Ze(
|
|
14612
|
-
return
|
|
14612
|
+
function Ze(F) {
|
|
14613
|
+
return F && F.nodeType === be.ELEMENT_NODE;
|
|
14613
14614
|
}
|
|
14614
|
-
function le(
|
|
14615
|
-
return
|
|
14615
|
+
function le(F) {
|
|
14616
|
+
return F && F.nodeType === be.TEXT_NODE;
|
|
14616
14617
|
}
|
|
14617
|
-
function We(
|
|
14618
|
-
var J =
|
|
14618
|
+
function We(F, U) {
|
|
14619
|
+
var J = F.childNodes || [];
|
|
14619
14620
|
if (t(J, Ze) || Ye(U))
|
|
14620
14621
|
return !1;
|
|
14621
14622
|
var ae = t(J, Ye);
|
|
14622
14623
|
return !(U && ae && J.indexOf(ae) > J.indexOf(U));
|
|
14623
14624
|
}
|
|
14624
|
-
function lt(
|
|
14625
|
-
var J =
|
|
14625
|
+
function lt(F, U) {
|
|
14626
|
+
var J = F.childNodes || [];
|
|
14626
14627
|
function ae(Ie) {
|
|
14627
14628
|
return Ze(Ie) && Ie !== U;
|
|
14628
14629
|
}
|
|
@@ -14631,10 +14632,10 @@ function requireDom() {
|
|
|
14631
14632
|
var ge = t(J, Ye);
|
|
14632
14633
|
return !(U && ge && J.indexOf(ge) > J.indexOf(U));
|
|
14633
14634
|
}
|
|
14634
|
-
function tt(
|
|
14635
|
-
if (!Ve(
|
|
14636
|
-
throw new K(ee, "Unexpected parent node type " +
|
|
14637
|
-
if (J && J.parentNode !==
|
|
14635
|
+
function tt(F, U, J) {
|
|
14636
|
+
if (!Ve(F))
|
|
14637
|
+
throw new K(ee, "Unexpected parent node type " + F.nodeType);
|
|
14638
|
+
if (J && J.parentNode !== F)
|
|
14638
14639
|
throw new K(se, "child not in parent");
|
|
14639
14640
|
if (
|
|
14640
14641
|
// 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
|
|
@@ -14642,23 +14643,23 @@ function requireDom() {
|
|
|
14642
14643
|
// the sax parser currently adds top level text nodes, this will be fixed in 0.9.0
|
|
14643
14644
|
// || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE)
|
|
14644
14645
|
// or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException.
|
|
14645
|
-
Ye(U) &&
|
|
14646
|
+
Ye(U) && F.nodeType !== be.DOCUMENT_NODE
|
|
14646
14647
|
)
|
|
14647
14648
|
throw new K(
|
|
14648
14649
|
ee,
|
|
14649
|
-
"Unexpected node type " + U.nodeType + " for parent node type " +
|
|
14650
|
+
"Unexpected node type " + U.nodeType + " for parent node type " + F.nodeType
|
|
14650
14651
|
);
|
|
14651
14652
|
}
|
|
14652
|
-
function Zt(
|
|
14653
|
-
var ae =
|
|
14653
|
+
function Zt(F, U, J) {
|
|
14654
|
+
var ae = F.childNodes || [], ge = U.childNodes || [];
|
|
14654
14655
|
if (U.nodeType === be.DOCUMENT_FRAGMENT_NODE) {
|
|
14655
14656
|
var Ie = ge.filter(Ze);
|
|
14656
14657
|
if (Ie.length > 1 || t(ge, le))
|
|
14657
14658
|
throw new K(ee, "More than one element or text in fragment");
|
|
14658
|
-
if (Ie.length === 1 && !We(
|
|
14659
|
+
if (Ie.length === 1 && !We(F, J))
|
|
14659
14660
|
throw new K(ee, "Element in fragment can not be inserted before doctype");
|
|
14660
14661
|
}
|
|
14661
|
-
if (Ze(U) && !We(
|
|
14662
|
+
if (Ze(U) && !We(F, J))
|
|
14662
14663
|
throw new K(ee, "Only one element can be added and only after doctype");
|
|
14663
14664
|
if (Ye(U)) {
|
|
14664
14665
|
if (t(ae, Ye))
|
|
@@ -14670,16 +14671,16 @@ function requireDom() {
|
|
|
14670
14671
|
throw new K(ee, "Doctype can not be appended since element is present");
|
|
14671
14672
|
}
|
|
14672
14673
|
}
|
|
14673
|
-
function Le(
|
|
14674
|
-
var ae =
|
|
14674
|
+
function Le(F, U, J) {
|
|
14675
|
+
var ae = F.childNodes || [], ge = U.childNodes || [];
|
|
14675
14676
|
if (U.nodeType === be.DOCUMENT_FRAGMENT_NODE) {
|
|
14676
14677
|
var Ie = ge.filter(Ze);
|
|
14677
14678
|
if (Ie.length > 1 || t(ge, le))
|
|
14678
14679
|
throw new K(ee, "More than one element or text in fragment");
|
|
14679
|
-
if (Ie.length === 1 && !lt(
|
|
14680
|
+
if (Ie.length === 1 && !lt(F, J))
|
|
14680
14681
|
throw new K(ee, "Element in fragment can not be inserted before doctype");
|
|
14681
14682
|
}
|
|
14682
|
-
if (Ze(U) && !lt(
|
|
14683
|
+
if (Ze(U) && !lt(F, J))
|
|
14683
14684
|
throw new K(ee, "Only one element can be added and only after doctype");
|
|
14684
14685
|
if (Ye(U)) {
|
|
14685
14686
|
if (t(ae, function(Je) {
|
|
@@ -14691,8 +14692,8 @@ function requireDom() {
|
|
|
14691
14692
|
throw new K(ee, "Doctype can only be inserted before an element");
|
|
14692
14693
|
}
|
|
14693
14694
|
}
|
|
14694
|
-
function ct(
|
|
14695
|
-
tt(
|
|
14695
|
+
function ct(F, U, J, ae) {
|
|
14696
|
+
tt(F, U, J), F.nodeType === be.DOCUMENT_NODE && (ae || Zt)(F, U, J);
|
|
14696
14697
|
var ge = U.parentNode;
|
|
14697
14698
|
if (ge && ge.removeChild(U), U.nodeType === Y) {
|
|
14698
14699
|
var Ie = U.firstChild;
|
|
@@ -14701,29 +14702,29 @@ function requireDom() {
|
|
|
14701
14702
|
var de = U.lastChild;
|
|
14702
14703
|
} else
|
|
14703
14704
|
Ie = de = U;
|
|
14704
|
-
var ze = J ? J.previousSibling :
|
|
14705
|
-
Ie.previousSibling = ze, de.nextSibling = J, ze ? ze.nextSibling = Ie :
|
|
14705
|
+
var ze = J ? J.previousSibling : F.lastChild;
|
|
14706
|
+
Ie.previousSibling = ze, de.nextSibling = J, ze ? ze.nextSibling = Ie : F.firstChild = Ie, J == null ? F.lastChild = de : J.previousSibling = de;
|
|
14706
14707
|
do {
|
|
14707
|
-
Ie.parentNode =
|
|
14708
|
-
var Je =
|
|
14708
|
+
Ie.parentNode = F;
|
|
14709
|
+
var Je = F.ownerDocument || F;
|
|
14709
14710
|
dt(Ie, Je);
|
|
14710
14711
|
} while (Ie !== de && (Ie = Ie.nextSibling));
|
|
14711
|
-
return xe(
|
|
14712
|
+
return xe(F.ownerDocument || F, F), U.nodeType == Y && (U.firstChild = U.lastChild = null), U;
|
|
14712
14713
|
}
|
|
14713
|
-
function dt(
|
|
14714
|
-
if (
|
|
14715
|
-
if (
|
|
14716
|
-
for (var J = 0; J <
|
|
14717
|
-
var ae =
|
|
14714
|
+
function dt(F, U) {
|
|
14715
|
+
if (F.ownerDocument !== U) {
|
|
14716
|
+
if (F.ownerDocument = U, F.nodeType === x && F.attributes)
|
|
14717
|
+
for (var J = 0; J < F.attributes.length; J++) {
|
|
14718
|
+
var ae = F.attributes.item(J);
|
|
14718
14719
|
ae && (ae.ownerDocument = U);
|
|
14719
14720
|
}
|
|
14720
|
-
for (var ge =
|
|
14721
|
+
for (var ge = F.firstChild; ge; )
|
|
14721
14722
|
dt(ge, U), ge = ge.nextSibling;
|
|
14722
14723
|
}
|
|
14723
14724
|
}
|
|
14724
|
-
function qt(
|
|
14725
|
-
U.parentNode && U.parentNode.removeChild(U), U.parentNode =
|
|
14726
|
-
var J =
|
|
14725
|
+
function qt(F, U) {
|
|
14726
|
+
U.parentNode && U.parentNode.removeChild(U), U.parentNode = F, U.previousSibling = F.lastChild, U.nextSibling = null, U.previousSibling ? U.previousSibling.nextSibling = U : F.firstChild = U, F.lastChild = U, xe(F.ownerDocument, F, U);
|
|
14727
|
+
var J = F.ownerDocument || F;
|
|
14727
14728
|
return dt(U, J), U;
|
|
14728
14729
|
}
|
|
14729
14730
|
me.prototype = {
|
|
@@ -14739,31 +14740,31 @@ function requireDom() {
|
|
|
14739
14740
|
doctype: null,
|
|
14740
14741
|
documentElement: null,
|
|
14741
14742
|
_inc: 1,
|
|
14742
|
-
insertBefore: function(
|
|
14743
|
-
if (
|
|
14744
|
-
for (var J =
|
|
14743
|
+
insertBefore: function(F, U) {
|
|
14744
|
+
if (F.nodeType == Y) {
|
|
14745
|
+
for (var J = F.firstChild; J; ) {
|
|
14745
14746
|
var ae = J.nextSibling;
|
|
14746
14747
|
this.insertBefore(J, U), J = ae;
|
|
14747
14748
|
}
|
|
14748
|
-
return
|
|
14749
|
+
return F;
|
|
14749
14750
|
}
|
|
14750
|
-
return ct(this,
|
|
14751
|
+
return ct(this, F, U), dt(F, this), this.documentElement === null && F.nodeType === x && (this.documentElement = F), F;
|
|
14751
14752
|
},
|
|
14752
|
-
removeChild: function(
|
|
14753
|
-
return this.documentElement ==
|
|
14753
|
+
removeChild: function(F) {
|
|
14754
|
+
return this.documentElement == F && (this.documentElement = null), Pe(this, F);
|
|
14754
14755
|
},
|
|
14755
|
-
replaceChild: function(
|
|
14756
|
-
ct(this,
|
|
14756
|
+
replaceChild: function(F, U) {
|
|
14757
|
+
ct(this, F, U, Le), dt(F, this), U && this.removeChild(U), Ze(F) && (this.documentElement = F);
|
|
14757
14758
|
},
|
|
14758
14759
|
// Introduced in DOM Level 2:
|
|
14759
|
-
importNode: function(
|
|
14760
|
-
return pr(this,
|
|
14760
|
+
importNode: function(F, U) {
|
|
14761
|
+
return pr(this, F, U);
|
|
14761
14762
|
},
|
|
14762
14763
|
// Introduced in DOM Level 2:
|
|
14763
|
-
getElementById: function(
|
|
14764
|
+
getElementById: function(F) {
|
|
14764
14765
|
var U = null;
|
|
14765
14766
|
return Q(this.documentElement, function(J) {
|
|
14766
|
-
if (J.nodeType == x && J.getAttribute("id") ==
|
|
14767
|
+
if (J.nodeType == x && J.getAttribute("id") == F)
|
|
14767
14768
|
return U = J, !0;
|
|
14768
14769
|
}), U;
|
|
14769
14770
|
},
|
|
@@ -14784,15 +14785,15 @@ function requireDom() {
|
|
|
14784
14785
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName
|
|
14785
14786
|
* @see https://dom.spec.whatwg.org/#concept-getelementsbyclassname
|
|
14786
14787
|
*/
|
|
14787
|
-
getElementsByClassName: function(
|
|
14788
|
-
var U = m(
|
|
14788
|
+
getElementsByClassName: function(F) {
|
|
14789
|
+
var U = m(F);
|
|
14789
14790
|
return new pe(this, function(J) {
|
|
14790
14791
|
var ae = [];
|
|
14791
14792
|
return U.length > 0 && Q(J.documentElement, function(ge) {
|
|
14792
14793
|
if (ge !== J && ge.nodeType === x) {
|
|
14793
14794
|
var Ie = ge.getAttribute("class");
|
|
14794
14795
|
if (Ie) {
|
|
14795
|
-
var de =
|
|
14796
|
+
var de = F === Ie;
|
|
14796
14797
|
if (!de) {
|
|
14797
14798
|
var ze = m(Ie);
|
|
14798
14799
|
de = U.every(y(ze));
|
|
@@ -14804,23 +14805,23 @@ function requireDom() {
|
|
|
14804
14805
|
});
|
|
14805
14806
|
},
|
|
14806
14807
|
//document factory method:
|
|
14807
|
-
createElement: function(
|
|
14808
|
+
createElement: function(F) {
|
|
14808
14809
|
var U = new Re();
|
|
14809
|
-
U.ownerDocument = this, U.nodeName =
|
|
14810
|
+
U.ownerDocument = this, U.nodeName = F, U.tagName = F, U.localName = F, U.childNodes = new ue();
|
|
14810
14811
|
var J = U.attributes = new Ae();
|
|
14811
14812
|
return J._ownerElement = U, U;
|
|
14812
14813
|
},
|
|
14813
14814
|
createDocumentFragment: function() {
|
|
14814
|
-
var
|
|
14815
|
-
return
|
|
14815
|
+
var F = new Ct();
|
|
14816
|
+
return F.ownerDocument = this, F.childNodes = new ue(), F;
|
|
14816
14817
|
},
|
|
14817
|
-
createTextNode: function(
|
|
14818
|
+
createTextNode: function(F) {
|
|
14818
14819
|
var U = new Ne();
|
|
14819
|
-
return U.ownerDocument = this, U.appendData(
|
|
14820
|
+
return U.ownerDocument = this, U.appendData(F), U;
|
|
14820
14821
|
},
|
|
14821
|
-
createComment: function(
|
|
14822
|
+
createComment: function(F) {
|
|
14822
14823
|
var U = new jt();
|
|
14823
|
-
return U.ownerDocument = this, U.appendData(
|
|
14824
|
+
return U.ownerDocument = this, U.appendData(F), U;
|
|
14824
14825
|
},
|
|
14825
14826
|
/**
|
|
14826
14827
|
* Returns a new CDATASection node whose data is `data`.
|
|
@@ -14834,11 +14835,11 @@ function requireDom() {
|
|
|
14834
14835
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createCDATASection
|
|
14835
14836
|
* @see https://dom.spec.whatwg.org/#dom-document-createcdatasection
|
|
14836
14837
|
*/
|
|
14837
|
-
createCDATASection: function(
|
|
14838
|
-
if (
|
|
14838
|
+
createCDATASection: function(F) {
|
|
14839
|
+
if (F.indexOf("]]>") !== -1)
|
|
14839
14840
|
throw new K(te, 'data contains "]]>"');
|
|
14840
14841
|
var U = new rt();
|
|
14841
|
-
return U.ownerDocument = this, U.appendData(
|
|
14842
|
+
return U.ownerDocument = this, U.appendData(F), U;
|
|
14842
14843
|
},
|
|
14843
14844
|
/**
|
|
14844
14845
|
* Returns a ProcessingInstruction node whose target is target and data is data.
|
|
@@ -14859,13 +14860,13 @@ function requireDom() {
|
|
|
14859
14860
|
* @see https://dom.spec.whatwg.org/#dom-document-createprocessinginstruction
|
|
14860
14861
|
* @see https://www.w3.org/TR/DOM-Parsing/#dfn-concept-serialize-xml §3.2.1.7
|
|
14861
14862
|
*/
|
|
14862
|
-
createProcessingInstruction: function(
|
|
14863
|
+
createProcessingInstruction: function(F, U) {
|
|
14863
14864
|
var J = new Qe();
|
|
14864
|
-
return J.ownerDocument = this, J.tagName = J.nodeName = J.target =
|
|
14865
|
+
return J.ownerDocument = this, J.tagName = J.nodeName = J.target = F, J.nodeValue = J.data = U, J;
|
|
14865
14866
|
},
|
|
14866
|
-
createAttribute: function(
|
|
14867
|
+
createAttribute: function(F) {
|
|
14867
14868
|
var U = new Tt();
|
|
14868
|
-
return U.ownerDocument = this, U.name =
|
|
14869
|
+
return U.ownerDocument = this, U.name = F, U.nodeName = F, U.localName = F, U.specified = !0, U;
|
|
14869
14870
|
},
|
|
14870
14871
|
/**
|
|
14871
14872
|
* Creates an EntityReference object, serialized as `&name;`.
|
|
@@ -14884,21 +14885,21 @@ function requireDom() {
|
|
|
14884
14885
|
* @throws {DOMException} With code `INVALID_CHARACTER_ERR` when `name` is not a valid XML `Name`.
|
|
14885
14886
|
* @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-392B75AE
|
|
14886
14887
|
*/
|
|
14887
|
-
createEntityReference: function(
|
|
14888
|
-
if (!n.test(
|
|
14889
|
-
throw new K(te, 'not a valid xml name "' +
|
|
14888
|
+
createEntityReference: function(F) {
|
|
14889
|
+
if (!n.test(F))
|
|
14890
|
+
throw new K(te, 'not a valid xml name "' + F + '"');
|
|
14890
14891
|
var U = new Vt();
|
|
14891
|
-
return U.ownerDocument = this, U.nodeName =
|
|
14892
|
+
return U.ownerDocument = this, U.nodeName = F, U;
|
|
14892
14893
|
},
|
|
14893
14894
|
// Introduced in DOM Level 2:
|
|
14894
|
-
createElementNS: function(
|
|
14895
|
+
createElementNS: function(F, U) {
|
|
14895
14896
|
var J = new Re(), ae = U.split(":"), ge = J.attributes = new Ae();
|
|
14896
|
-
return J.childNodes = new ue(), J.ownerDocument = this, J.nodeName = U, J.tagName = U, J.namespaceURI =
|
|
14897
|
+
return J.childNodes = new ue(), J.ownerDocument = this, J.nodeName = U, J.tagName = U, J.namespaceURI = F, ae.length == 2 ? (J.prefix = ae[0], J.localName = ae[1]) : J.localName = U, ge._ownerElement = J, J;
|
|
14897
14898
|
},
|
|
14898
14899
|
// Introduced in DOM Level 2:
|
|
14899
|
-
createAttributeNS: function(
|
|
14900
|
+
createAttributeNS: function(F, U) {
|
|
14900
14901
|
var J = new Tt(), ae = U.split(":");
|
|
14901
|
-
return J.ownerDocument = this, J.nodeName = U, J.name = U, J.namespaceURI =
|
|
14902
|
+
return J.ownerDocument = this, J.nodeName = U, J.name = U, J.namespaceURI = F, J.specified = !0, ae.length == 2 ? (J.prefix = ae[0], J.localName = ae[1]) : J.localName = U, J;
|
|
14902
14903
|
}
|
|
14903
14904
|
}, E(me, be);
|
|
14904
14905
|
function Re() {
|
|
@@ -14906,69 +14907,69 @@ function requireDom() {
|
|
|
14906
14907
|
}
|
|
14907
14908
|
Re.prototype = {
|
|
14908
14909
|
nodeType: x,
|
|
14909
|
-
hasAttribute: function(
|
|
14910
|
-
return this.getAttributeNode(
|
|
14910
|
+
hasAttribute: function(F) {
|
|
14911
|
+
return this.getAttributeNode(F) != null;
|
|
14911
14912
|
},
|
|
14912
|
-
getAttribute: function(
|
|
14913
|
-
var U = this.getAttributeNode(
|
|
14913
|
+
getAttribute: function(F) {
|
|
14914
|
+
var U = this.getAttributeNode(F);
|
|
14914
14915
|
return U && U.value || "";
|
|
14915
14916
|
},
|
|
14916
|
-
getAttributeNode: function(
|
|
14917
|
-
return this.attributes.getNamedItem(
|
|
14917
|
+
getAttributeNode: function(F) {
|
|
14918
|
+
return this.attributes.getNamedItem(F);
|
|
14918
14919
|
},
|
|
14919
|
-
setAttribute: function(
|
|
14920
|
-
var J = this.ownerDocument.createAttribute(
|
|
14920
|
+
setAttribute: function(F, U) {
|
|
14921
|
+
var J = this.ownerDocument.createAttribute(F);
|
|
14921
14922
|
J.value = J.nodeValue = "" + U, this.setAttributeNode(J);
|
|
14922
14923
|
},
|
|
14923
|
-
removeAttribute: function(
|
|
14924
|
-
var U = this.getAttributeNode(
|
|
14924
|
+
removeAttribute: function(F) {
|
|
14925
|
+
var U = this.getAttributeNode(F);
|
|
14925
14926
|
U && this.removeAttributeNode(U);
|
|
14926
14927
|
},
|
|
14927
14928
|
//four real opeartion method
|
|
14928
|
-
appendChild: function(
|
|
14929
|
-
return
|
|
14929
|
+
appendChild: function(F) {
|
|
14930
|
+
return F.nodeType === Y ? this.insertBefore(F, null) : qt(this, F);
|
|
14930
14931
|
},
|
|
14931
|
-
setAttributeNode: function(
|
|
14932
|
-
return this.attributes.setNamedItem(
|
|
14932
|
+
setAttributeNode: function(F) {
|
|
14933
|
+
return this.attributes.setNamedItem(F);
|
|
14933
14934
|
},
|
|
14934
|
-
setAttributeNodeNS: function(
|
|
14935
|
-
return this.attributes.setNamedItemNS(
|
|
14935
|
+
setAttributeNodeNS: function(F) {
|
|
14936
|
+
return this.attributes.setNamedItemNS(F);
|
|
14936
14937
|
},
|
|
14937
|
-
removeAttributeNode: function(
|
|
14938
|
-
return this.attributes.removeNamedItem(
|
|
14938
|
+
removeAttributeNode: function(F) {
|
|
14939
|
+
return this.attributes.removeNamedItem(F.nodeName);
|
|
14939
14940
|
},
|
|
14940
14941
|
//get real attribute name,and remove it by removeAttributeNode
|
|
14941
|
-
removeAttributeNS: function(
|
|
14942
|
-
var J = this.getAttributeNodeNS(
|
|
14942
|
+
removeAttributeNS: function(F, U) {
|
|
14943
|
+
var J = this.getAttributeNodeNS(F, U);
|
|
14943
14944
|
J && this.removeAttributeNode(J);
|
|
14944
14945
|
},
|
|
14945
|
-
hasAttributeNS: function(
|
|
14946
|
-
return this.getAttributeNodeNS(
|
|
14946
|
+
hasAttributeNS: function(F, U) {
|
|
14947
|
+
return this.getAttributeNodeNS(F, U) != null;
|
|
14947
14948
|
},
|
|
14948
|
-
getAttributeNS: function(
|
|
14949
|
-
var J = this.getAttributeNodeNS(
|
|
14949
|
+
getAttributeNS: function(F, U) {
|
|
14950
|
+
var J = this.getAttributeNodeNS(F, U);
|
|
14950
14951
|
return J && J.value || "";
|
|
14951
14952
|
},
|
|
14952
|
-
setAttributeNS: function(
|
|
14953
|
-
var ae = this.ownerDocument.createAttributeNS(
|
|
14953
|
+
setAttributeNS: function(F, U, J) {
|
|
14954
|
+
var ae = this.ownerDocument.createAttributeNS(F, U);
|
|
14954
14955
|
ae.value = ae.nodeValue = "" + J, this.setAttributeNode(ae);
|
|
14955
14956
|
},
|
|
14956
|
-
getAttributeNodeNS: function(
|
|
14957
|
-
return this.attributes.getNamedItemNS(
|
|
14957
|
+
getAttributeNodeNS: function(F, U) {
|
|
14958
|
+
return this.attributes.getNamedItemNS(F, U);
|
|
14958
14959
|
},
|
|
14959
|
-
getElementsByTagName: function(
|
|
14960
|
+
getElementsByTagName: function(F) {
|
|
14960
14961
|
return new pe(this, function(U) {
|
|
14961
14962
|
var J = [];
|
|
14962
14963
|
return Q(U, function(ae) {
|
|
14963
|
-
ae !== U && ae.nodeType == x && (
|
|
14964
|
+
ae !== U && ae.nodeType == x && (F === "*" || ae.tagName == F) && J.push(ae);
|
|
14964
14965
|
}), J;
|
|
14965
14966
|
});
|
|
14966
14967
|
},
|
|
14967
|
-
getElementsByTagNameNS: function(
|
|
14968
|
+
getElementsByTagNameNS: function(F, U) {
|
|
14968
14969
|
return new pe(this, function(J) {
|
|
14969
14970
|
var ae = [];
|
|
14970
14971
|
return Q(J, function(ge) {
|
|
14971
|
-
ge !== J && ge.nodeType === x && (
|
|
14972
|
+
ge !== J && ge.nodeType === x && (F === "*" || ge.namespaceURI === F) && (U === "*" || ge.localName == U) && ae.push(ge);
|
|
14972
14973
|
}), ae;
|
|
14973
14974
|
});
|
|
14974
14975
|
}
|
|
@@ -14980,23 +14981,23 @@ function requireDom() {
|
|
|
14980
14981
|
}
|
|
14981
14982
|
Fe.prototype = {
|
|
14982
14983
|
data: "",
|
|
14983
|
-
substringData: function(
|
|
14984
|
-
return this.data.substring(
|
|
14984
|
+
substringData: function(F, U) {
|
|
14985
|
+
return this.data.substring(F, F + U);
|
|
14985
14986
|
},
|
|
14986
|
-
appendData: function(
|
|
14987
|
-
|
|
14987
|
+
appendData: function(F) {
|
|
14988
|
+
F = this.data + F, this.nodeValue = this.data = F, this.length = F.length;
|
|
14988
14989
|
},
|
|
14989
|
-
insertData: function(
|
|
14990
|
-
this.replaceData(
|
|
14990
|
+
insertData: function(F, U) {
|
|
14991
|
+
this.replaceData(F, 0, U);
|
|
14991
14992
|
},
|
|
14992
|
-
appendChild: function(
|
|
14993
|
+
appendChild: function(F) {
|
|
14993
14994
|
throw new Error(X[ee]);
|
|
14994
14995
|
},
|
|
14995
|
-
deleteData: function(
|
|
14996
|
-
this.replaceData(
|
|
14996
|
+
deleteData: function(F, U) {
|
|
14997
|
+
this.replaceData(F, U, "");
|
|
14997
14998
|
},
|
|
14998
|
-
replaceData: function(
|
|
14999
|
-
var ae = this.data.substring(0,
|
|
14999
|
+
replaceData: function(F, U, J) {
|
|
15000
|
+
var ae = this.data.substring(0, F), ge = this.data.substring(F + U);
|
|
15000
15001
|
J = ae + J + ge, this.nodeValue = this.data = J, this.length = J.length;
|
|
15001
15002
|
}
|
|
15002
15003
|
}, E(Fe, be);
|
|
@@ -15005,9 +15006,9 @@ function requireDom() {
|
|
|
15005
15006
|
Ne.prototype = {
|
|
15006
15007
|
nodeName: "#text",
|
|
15007
15008
|
nodeType: A,
|
|
15008
|
-
splitText: function(
|
|
15009
|
-
var U = this.data, J = U.substring(
|
|
15010
|
-
U = U.substring(0,
|
|
15009
|
+
splitText: function(F) {
|
|
15010
|
+
var U = this.data, J = U.substring(F);
|
|
15011
|
+
U = U.substring(0, F), this.data = this.nodeValue = U, this.length = U.length;
|
|
15011
15012
|
var ae = this.ownerDocument.createTextNode(J);
|
|
15012
15013
|
return this.parentNode && this.parentNode.insertBefore(ae, this.nextSibling), ae;
|
|
15013
15014
|
}
|
|
@@ -15016,7 +15017,7 @@ function requireDom() {
|
|
|
15016
15017
|
}
|
|
15017
15018
|
jt.prototype = {
|
|
15018
15019
|
nodeName: "#comment",
|
|
15019
|
-
nodeType:
|
|
15020
|
+
nodeType: O
|
|
15020
15021
|
}, E(jt, Fe);
|
|
15021
15022
|
function rt() {
|
|
15022
15023
|
}
|
|
@@ -15044,10 +15045,10 @@ function requireDom() {
|
|
|
15044
15045
|
Qe.prototype.nodeType = $, E(Qe, be);
|
|
15045
15046
|
function mt() {
|
|
15046
15047
|
}
|
|
15047
|
-
mt.prototype.serializeToString = function(
|
|
15048
|
-
return nt.call(
|
|
15048
|
+
mt.prototype.serializeToString = function(F, U, J, ae) {
|
|
15049
|
+
return nt.call(F, U, J, ae);
|
|
15049
15050
|
}, be.prototype.toString = nt;
|
|
15050
|
-
function nt(
|
|
15051
|
+
function nt(F, U, J) {
|
|
15051
15052
|
var ae = !!J && !!J.requireWellFormed, ge = [], Ie = this.nodeType == 9 && this.documentElement || this, de = Ie.prefix, ze = Ie.namespaceURI;
|
|
15052
15053
|
if (ze && de == null) {
|
|
15053
15054
|
var de = Ie.lookupPrefix(ze);
|
|
@@ -15057,10 +15058,10 @@ function requireDom() {
|
|
|
15057
15058
|
//{namespace:uri,prefix:''}
|
|
15058
15059
|
];
|
|
15059
15060
|
}
|
|
15060
|
-
return ur(this, ge,
|
|
15061
|
+
return ur(this, ge, F, U, Je, ae), ge.join("");
|
|
15061
15062
|
}
|
|
15062
|
-
function sr(
|
|
15063
|
-
var ae =
|
|
15063
|
+
function sr(F, U, J) {
|
|
15064
|
+
var ae = F.prefix || "", ge = F.namespaceURI;
|
|
15064
15065
|
if (!ge || ae === "xml" && ge === r.XML || ge === r.XMLNS)
|
|
15065
15066
|
return !1;
|
|
15066
15067
|
for (var Ie = J.length; Ie--; ) {
|
|
@@ -15070,13 +15071,13 @@ function requireDom() {
|
|
|
15070
15071
|
}
|
|
15071
15072
|
return !0;
|
|
15072
15073
|
}
|
|
15073
|
-
function Ft(
|
|
15074
|
+
function Ft(F, U, J, ae) {
|
|
15074
15075
|
if (ae && !n.test(U))
|
|
15075
15076
|
throw new K(oe, 'The attribute name "' + U + '" is not a valid XML QName');
|
|
15076
|
-
|
|
15077
|
+
F.push(" ", U, '="', J.replace(/[<>&"\t\n\r]/g, Oe), '"');
|
|
15077
15078
|
}
|
|
15078
|
-
function ur(
|
|
15079
|
-
ge || (ge = []), Me(
|
|
15079
|
+
function ur(F, U, J, ae, ge, Ie) {
|
|
15080
|
+
ge || (ge = []), Me(F, { ns: ge, isHTML: J }, {
|
|
15080
15081
|
enter: function(de, ze) {
|
|
15081
15082
|
var Je = ze.ns, at = ze.isHTML;
|
|
15082
15083
|
if (ae)
|
|
@@ -15154,7 +15155,7 @@ function requireDom() {
|
|
|
15154
15155
|
if (Ie && de.data.indexOf("]]>") !== -1)
|
|
15155
15156
|
throw new K(oe, 'The CDATASection data contains "]]>"');
|
|
15156
15157
|
return U.push("<![CDATA[", de.data.replace(/]]>/g, "]]]]><![CDATA[>"), "]]>"), null;
|
|
15157
|
-
case
|
|
15158
|
+
case O:
|
|
15158
15159
|
if (Ie && de.data.indexOf("-->") !== -1)
|
|
15159
15160
|
throw new K(oe, 'The comment node data contains "-->"');
|
|
15160
15161
|
return U.push("<!--", de.data, "-->"), null;
|
|
@@ -15208,18 +15209,18 @@ function requireDom() {
|
|
|
15208
15209
|
}
|
|
15209
15210
|
});
|
|
15210
15211
|
}
|
|
15211
|
-
function pr(
|
|
15212
|
+
function pr(F, U, J) {
|
|
15212
15213
|
var ae;
|
|
15213
15214
|
return Me(U, null, {
|
|
15214
15215
|
enter: function(ge, Ie) {
|
|
15215
15216
|
var de = ge.cloneNode(!1);
|
|
15216
|
-
de.ownerDocument =
|
|
15217
|
+
de.ownerDocument = F, de.parentNode = null, Ie === null ? ae = de : Ie.appendChild(de);
|
|
15217
15218
|
var ze = ge.nodeType === S || J;
|
|
15218
15219
|
return ze ? de : null;
|
|
15219
15220
|
}
|
|
15220
15221
|
}), ae;
|
|
15221
15222
|
}
|
|
15222
|
-
function Rt(
|
|
15223
|
+
function Rt(F, U, J) {
|
|
15223
15224
|
var ae;
|
|
15224
15225
|
return Me(U, null, {
|
|
15225
15226
|
enter: function(ge, Ie) {
|
|
@@ -15229,14 +15230,14 @@ function requireDom() {
|
|
|
15229
15230
|
var Je = ge[ze];
|
|
15230
15231
|
typeof Je != "object" && Je != de[ze] && (de[ze] = Je);
|
|
15231
15232
|
}
|
|
15232
|
-
ge.childNodes && (de.childNodes = new ue()), de.ownerDocument =
|
|
15233
|
+
ge.childNodes && (de.childNodes = new ue()), de.ownerDocument = F;
|
|
15233
15234
|
var at = J;
|
|
15234
15235
|
switch (de.nodeType) {
|
|
15235
15236
|
case x:
|
|
15236
15237
|
var yt = ge.attributes, Jt = de.attributes = new Ae(), Ke = yt.length;
|
|
15237
15238
|
Jt._ownerElement = de;
|
|
15238
15239
|
for (var ot = 0; ot < Ke; ot++)
|
|
15239
|
-
de.setAttributeNode(Rt(
|
|
15240
|
+
de.setAttributeNode(Rt(F, yt.item(ot), !0));
|
|
15240
15241
|
break;
|
|
15241
15242
|
case S:
|
|
15242
15243
|
at = !0;
|
|
@@ -15245,8 +15246,8 @@ function requireDom() {
|
|
|
15245
15246
|
}
|
|
15246
15247
|
}), ae;
|
|
15247
15248
|
}
|
|
15248
|
-
function ye(
|
|
15249
|
-
|
|
15249
|
+
function ye(F, U, J) {
|
|
15250
|
+
F[U] = J;
|
|
15250
15251
|
}
|
|
15251
15252
|
try {
|
|
15252
15253
|
Object.defineProperty && (Object.defineProperty(pe.prototype, "length", {
|
|
@@ -15256,33 +15257,33 @@ function requireDom() {
|
|
|
15256
15257
|
}), Object.defineProperty(be.prototype, "textContent", {
|
|
15257
15258
|
get: function() {
|
|
15258
15259
|
if (this.nodeType === x || this.nodeType === Y) {
|
|
15259
|
-
var
|
|
15260
|
+
var F = [];
|
|
15260
15261
|
return Me(this, null, {
|
|
15261
15262
|
enter: function(U) {
|
|
15262
15263
|
if (U.nodeType === x || U.nodeType === Y)
|
|
15263
15264
|
return !0;
|
|
15264
|
-
if (U.nodeType === $ || U.nodeType ===
|
|
15265
|
+
if (U.nodeType === $ || U.nodeType === O)
|
|
15265
15266
|
return null;
|
|
15266
|
-
|
|
15267
|
+
F.push(U.nodeValue);
|
|
15267
15268
|
}
|
|
15268
|
-
}),
|
|
15269
|
+
}), F.join("");
|
|
15269
15270
|
}
|
|
15270
15271
|
return this.nodeValue;
|
|
15271
15272
|
},
|
|
15272
|
-
set: function(
|
|
15273
|
+
set: function(F) {
|
|
15273
15274
|
switch (this.nodeType) {
|
|
15274
15275
|
case x:
|
|
15275
15276
|
case Y:
|
|
15276
15277
|
for (; this.firstChild; )
|
|
15277
15278
|
this.removeChild(this.firstChild);
|
|
15278
|
-
(
|
|
15279
|
+
(F || String(F)) && this.appendChild(this.ownerDocument.createTextNode(F));
|
|
15279
15280
|
break;
|
|
15280
15281
|
default:
|
|
15281
|
-
this.data =
|
|
15282
|
+
this.data = F, this.value = F, this.nodeValue = F;
|
|
15282
15283
|
}
|
|
15283
15284
|
}
|
|
15284
|
-
}), ye = function(
|
|
15285
|
-
|
|
15285
|
+
}), ye = function(F, U, J) {
|
|
15286
|
+
F["$$" + U] = J;
|
|
15286
15287
|
});
|
|
15287
15288
|
} catch {
|
|
15288
15289
|
}
|
|
@@ -17504,7 +17505,7 @@ function requireSax() {
|
|
|
17504
17505
|
Ae && K(_e), Pe = G(z, _e, ee);
|
|
17505
17506
|
break;
|
|
17506
17507
|
case "!":
|
|
17507
|
-
Ae && K(_e), Pe =
|
|
17508
|
+
Ae && K(_e), Pe = O(z, _e, ee, te);
|
|
17508
17509
|
break;
|
|
17509
17510
|
default:
|
|
17510
17511
|
Ae && K(_e);
|
|
@@ -17690,7 +17691,7 @@ function requireSax() {
|
|
|
17690
17691
|
for (var X in z)
|
|
17691
17692
|
Object.prototype.hasOwnProperty.call(z, X) && (W[X] = z[X]);
|
|
17692
17693
|
}
|
|
17693
|
-
function
|
|
17694
|
+
function O(z, W, X, ee) {
|
|
17694
17695
|
var te = z.charAt(W + 2);
|
|
17695
17696
|
switch (te) {
|
|
17696
17697
|
case "-":
|
|
@@ -17784,14 +17785,14 @@ function requireDomParser() {
|
|
|
17784
17785
|
this.options = k || { locator: {} };
|
|
17785
17786
|
}
|
|
17786
17787
|
b.prototype.parseFromString = function(k, L) {
|
|
17787
|
-
var $ = this.options,
|
|
17788
|
-
Y && G.setDocumentLocator(Y),
|
|
17788
|
+
var $ = this.options, O = new m(), G = $.domBuilder || new I(), q = $.errorHandler, Y = $.locator, z = $.xmlns || {}, W = /\/x?html?$/.test(L), X = W ? r.HTML_ENTITIES : r.XML_ENTITIES;
|
|
17789
|
+
Y && G.setDocumentLocator(Y), O.errorHandler = E(q, G, Y), O.domBuilder = $.domBuilder || G, W && (z[""] = d.HTML), z.xml = z.xml || d.XML;
|
|
17789
17790
|
var ee = $.normalizeLineEndings || y;
|
|
17790
|
-
return k && typeof k == "string" ?
|
|
17791
|
+
return k && typeof k == "string" ? O.parse(
|
|
17791
17792
|
ee(k),
|
|
17792
17793
|
z,
|
|
17793
17794
|
X
|
|
17794
|
-
) :
|
|
17795
|
+
) : O.errorHandler.error("invalid doc source"), G.doc;
|
|
17795
17796
|
};
|
|
17796
17797
|
function E(k, L, $) {
|
|
17797
17798
|
if (!k) {
|
|
@@ -17799,18 +17800,18 @@ function requireDomParser() {
|
|
|
17799
17800
|
return L;
|
|
17800
17801
|
k = L;
|
|
17801
17802
|
}
|
|
17802
|
-
var
|
|
17803
|
+
var O = {}, G = k instanceof Function;
|
|
17803
17804
|
$ = $ || {};
|
|
17804
17805
|
function q(Y) {
|
|
17805
17806
|
var z = k[Y];
|
|
17806
17807
|
!z && G && (z = k.length == 2 ? function(W) {
|
|
17807
17808
|
k(Y, W);
|
|
17808
|
-
} : k),
|
|
17809
|
+
} : k), O[Y] = z && function(W) {
|
|
17809
17810
|
z("[xmldom " + Y + "] " + W + S($));
|
|
17810
17811
|
} || function() {
|
|
17811
17812
|
};
|
|
17812
17813
|
}
|
|
17813
|
-
return q("warning"), q("error"), q("fatalError"),
|
|
17814
|
+
return q("warning"), q("error"), q("fatalError"), O;
|
|
17814
17815
|
}
|
|
17815
17816
|
function I() {
|
|
17816
17817
|
this.cdata = !1;
|
|
@@ -17822,17 +17823,17 @@ function requireDomParser() {
|
|
|
17822
17823
|
startDocument: function() {
|
|
17823
17824
|
this.doc = new s().createDocument(null, null, null), this.locator && (this.doc.documentURI = this.locator.systemId);
|
|
17824
17825
|
},
|
|
17825
|
-
startElement: function(k, L, $,
|
|
17826
|
-
var G = this.doc, q = G.createElementNS(k, $ || L), Y =
|
|
17826
|
+
startElement: function(k, L, $, O) {
|
|
17827
|
+
var G = this.doc, q = G.createElementNS(k, $ || L), Y = O.length;
|
|
17827
17828
|
R(this, q), this.currentElement = q, this.locator && x(this.locator, q);
|
|
17828
17829
|
for (var z = 0; z < Y; z++) {
|
|
17829
|
-
var k =
|
|
17830
|
-
this.locator && x(
|
|
17830
|
+
var k = O.getURI(z), W = O.getValue(z), $ = O.getQName(z), X = G.createAttributeNS(k, $);
|
|
17831
|
+
this.locator && x(O.getLocator(z), X), X.value = X.nodeValue = W, q.setAttributeNode(X);
|
|
17831
17832
|
}
|
|
17832
17833
|
},
|
|
17833
17834
|
endElement: function(k, L, $) {
|
|
17834
|
-
var
|
|
17835
|
-
|
|
17835
|
+
var O = this.currentElement;
|
|
17836
|
+
O.tagName, this.currentElement = O.parentNode;
|
|
17836
17837
|
},
|
|
17837
17838
|
startPrefixMapping: function(k, L) {
|
|
17838
17839
|
},
|
|
@@ -17847,10 +17848,10 @@ function requireDomParser() {
|
|
|
17847
17848
|
characters: function(k, L, $) {
|
|
17848
17849
|
if (k = A.apply(this, arguments), k) {
|
|
17849
17850
|
if (this.cdata)
|
|
17850
|
-
var
|
|
17851
|
+
var O = this.doc.createCDATASection(k);
|
|
17851
17852
|
else
|
|
17852
|
-
var
|
|
17853
|
-
this.currentElement ? this.currentElement.appendChild(
|
|
17853
|
+
var O = this.doc.createTextNode(k);
|
|
17854
|
+
this.currentElement ? this.currentElement.appendChild(O) : /^\s*$/.test(k) && this.doc.appendChild(O), this.locator && x(this.locator, O);
|
|
17854
17855
|
}
|
|
17855
17856
|
},
|
|
17856
17857
|
skippedEntity: function(k) {
|
|
@@ -17864,8 +17865,8 @@ function requireDomParser() {
|
|
|
17864
17865
|
//LexicalHandler
|
|
17865
17866
|
comment: function(k, L, $) {
|
|
17866
17867
|
k = A.apply(this, arguments);
|
|
17867
|
-
var
|
|
17868
|
-
this.locator && x(this.locator,
|
|
17868
|
+
var O = this.doc.createComment(k);
|
|
17869
|
+
this.locator && x(this.locator, O), R(this, O);
|
|
17869
17870
|
},
|
|
17870
17871
|
startCDATA: function() {
|
|
17871
17872
|
this.cdata = !0;
|
|
@@ -17874,9 +17875,9 @@ function requireDomParser() {
|
|
|
17874
17875
|
this.cdata = !1;
|
|
17875
17876
|
},
|
|
17876
17877
|
startDTD: function(k, L, $) {
|
|
17877
|
-
var
|
|
17878
|
-
if (
|
|
17879
|
-
var G =
|
|
17878
|
+
var O = this.doc.implementation;
|
|
17879
|
+
if (O && O.createDocumentType) {
|
|
17880
|
+
var G = O.createDocumentType(k, L, $);
|
|
17880
17881
|
this.locator && x(this.locator, G), R(this, G), this.doc.doctype = G;
|
|
17881
17882
|
}
|
|
17882
17883
|
},
|
|
@@ -17979,7 +17980,7 @@ function requireTogeojson() {
|
|
|
17979
17980
|
heartRate: se ? parseFloat(S(se)) : null
|
|
17980
17981
|
};
|
|
17981
17982
|
}
|
|
17982
|
-
function
|
|
17983
|
+
function O() {
|
|
17983
17984
|
return {
|
|
17984
17985
|
type: "FeatureCollection",
|
|
17985
17986
|
features: []
|
|
@@ -18000,7 +18001,7 @@ function requireTogeojson() {
|
|
|
18000
18001
|
}
|
|
18001
18002
|
var W = {
|
|
18002
18003
|
kml: function(X) {
|
|
18003
|
-
for (var ee =
|
|
18004
|
+
for (var ee = O(), te = {}, se = {}, ie = {}, oe = ["Polygon", "LineString", "Point", "Track", "gx:Track"], K = m(X, "Placemark"), ue = m(X, "Style"), pe = m(X, "StyleMap"), Ce = 0; Ce < ue.length; Ce++) {
|
|
18004
18005
|
var Ae = g(z(ue[Ce])).toString(16);
|
|
18005
18006
|
te["#" + y(ue[Ce], "id")] = Ae, se[Ae] = ue[Ce];
|
|
18006
18007
|
}
|
|
@@ -18122,7 +18123,7 @@ function requireTogeojson() {
|
|
|
18122
18123
|
return ee;
|
|
18123
18124
|
},
|
|
18124
18125
|
gpx: function(X) {
|
|
18125
|
-
var ee, te = m(X, "trk"), se = m(X, "rte"), ie = m(X, "wpt"), oe =
|
|
18126
|
+
var ee, te = m(X, "trk"), se = m(X, "rte"), ie = m(X, "wpt"), oe = O(), K;
|
|
18126
18127
|
for (ee = 0; ee < te.length; ee++)
|
|
18127
18128
|
K = Ce(te[ee]), K && oe.features.push(K);
|
|
18128
18129
|
for (ee = 0; ee < se.length; ee++)
|
|
@@ -18478,8 +18479,8 @@ const bundle$m = {
|
|
|
18478
18479
|
R(`Error for ${b.displayName}`);
|
|
18479
18480
|
else
|
|
18480
18481
|
try {
|
|
18481
|
-
let
|
|
18482
|
-
|
|
18482
|
+
let O = JSON.parse($);
|
|
18483
|
+
O = identifyColumnsArcgisrest(O, d), b.identifyFields && O.results.forEach((G) => {
|
|
18483
18484
|
if (G.attributes)
|
|
18484
18485
|
for (const [q, Y] of Object.entries(G.attributes)) {
|
|
18485
18486
|
let z = [];
|
|
@@ -18487,7 +18488,7 @@ const bundle$m = {
|
|
|
18487
18488
|
G.attributes[W] && (z[W] = G.attributes[W]);
|
|
18488
18489
|
}), G.attributes = z;
|
|
18489
18490
|
}
|
|
18490
|
-
}), b.identifyRenameColums &&
|
|
18491
|
+
}), b.identifyRenameColums && O.results.forEach((G) => {
|
|
18491
18492
|
if (G.attributes)
|
|
18492
18493
|
for (const [q, Y] of Object.entries(G.attributes))
|
|
18493
18494
|
for (const [z, W] of Object.entries(b.identifyRenameColums))
|
|
@@ -18499,7 +18500,7 @@ const bundle$m = {
|
|
|
18499
18500
|
result: {
|
|
18500
18501
|
[b.uid]: {
|
|
18501
18502
|
type: "FeatureCollection",
|
|
18502
|
-
features:
|
|
18503
|
+
features: O.results.map((G) => ({
|
|
18503
18504
|
type: "Feature",
|
|
18504
18505
|
geometry: {
|
|
18505
18506
|
type: g,
|
|
@@ -18510,8 +18511,8 @@ const bundle$m = {
|
|
|
18510
18511
|
}
|
|
18511
18512
|
}
|
|
18512
18513
|
});
|
|
18513
|
-
} catch (
|
|
18514
|
-
R(`Error for ${b.displayName}`,
|
|
18514
|
+
} catch (O) {
|
|
18515
|
+
R(`Error for ${b.displayName}`, O);
|
|
18515
18516
|
}
|
|
18516
18517
|
});
|
|
18517
18518
|
});
|
|
@@ -19008,7 +19009,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
19008
19009
|
}
|
|
19009
19010
|
var _excluded$6 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
19010
19011
|
function useStateManager(e) {
|
|
19011
|
-
var t = e.defaultInputValue, r = t === void 0 ? "" : t, n = e.defaultMenuIsOpen, s = n === void 0 ? !1 : n, d = e.defaultValue, g = d === void 0 ? null : d, m = e.inputValue, y = e.menuIsOpen, b = e.onChange, E = e.onInputChange, I = e.onMenuClose, x = e.onMenuOpen, S = e.value, A = _objectWithoutProperties(e, _excluded$6), R = useState$1(m !== void 0 ? m : r), k = _slicedToArray(R, 2), L = k[0], $ = k[1],
|
|
19012
|
+
var t = e.defaultInputValue, r = t === void 0 ? "" : t, n = e.defaultMenuIsOpen, s = n === void 0 ? !1 : n, d = e.defaultValue, g = d === void 0 ? null : d, m = e.inputValue, y = e.menuIsOpen, b = e.onChange, E = e.onInputChange, I = e.onMenuClose, x = e.onMenuOpen, S = e.value, A = _objectWithoutProperties(e, _excluded$6), R = useState$1(m !== void 0 ? m : r), k = _slicedToArray(R, 2), L = k[0], $ = k[1], O = useState$1(y !== void 0 ? y : s), G = _slicedToArray(O, 2), q = G[0], Y = G[1], z = useState$1(S !== void 0 ? S : g), W = _slicedToArray(z, 2), X = W[0], ee = W[1], te = useCallback(function(Ce, Ae) {
|
|
19012
19013
|
typeof b == "function" && b(Ce, Ae), ee(Ce);
|
|
19013
19014
|
}, [b]), se = useCallback(function(Ce, Ae) {
|
|
19014
19015
|
var he;
|
|
@@ -19309,7 +19310,7 @@ function compile$1(e) {
|
|
|
19309
19310
|
return dealloc(parse("", null, null, null, [""], e = alloc(e), 0, [0], e));
|
|
19310
19311
|
}
|
|
19311
19312
|
function parse(e, t, r, n, s, d, g, m, y) {
|
|
19312
|
-
for (var b = 0, E = 0, I = g, x = 0, S = 0, A = 0, R = 1, k = 1, L = 1, $ = 0,
|
|
19313
|
+
for (var b = 0, E = 0, I = g, x = 0, S = 0, A = 0, R = 1, k = 1, L = 1, $ = 0, O = "", G = s, q = d, Y = n, z = O; k; )
|
|
19313
19314
|
switch (A = $, $ = next()) {
|
|
19314
19315
|
// (
|
|
19315
19316
|
case 40:
|
|
@@ -19366,7 +19367,7 @@ function parse(e, t, r, n, s, d, g, m, y) {
|
|
|
19366
19367
|
z += ";";
|
|
19367
19368
|
// { rule/at-rule
|
|
19368
19369
|
default:
|
|
19369
|
-
if (append(Y = ruleset(z, t, r, b, E, s, m,
|
|
19370
|
+
if (append(Y = ruleset(z, t, r, b, E, s, m, O, G = [], q = [], I), d), $ === 123)
|
|
19370
19371
|
if (E === 0)
|
|
19371
19372
|
parse(z, t, Y, Y, G, d, I, m, q);
|
|
19372
19373
|
else
|
|
@@ -19376,13 +19377,13 @@ function parse(e, t, r, n, s, d, g, m, y) {
|
|
|
19376
19377
|
case 108:
|
|
19377
19378
|
case 109:
|
|
19378
19379
|
case 115:
|
|
19379
|
-
parse(e, Y, Y, n && append(ruleset(e, Y, Y, 0, 0, s, m,
|
|
19380
|
+
parse(e, Y, Y, n && append(ruleset(e, Y, Y, 0, 0, s, m, O, s, G = [], I), q), s, q, I, m, n ? G : q);
|
|
19380
19381
|
break;
|
|
19381
19382
|
default:
|
|
19382
19383
|
parse(z, Y, Y, Y, [""], q, 0, m, q);
|
|
19383
19384
|
}
|
|
19384
19385
|
}
|
|
19385
|
-
b = E = S = 0, R = L = 1,
|
|
19386
|
+
b = E = S = 0, R = L = 1, O = z = "", I = g;
|
|
19386
19387
|
break;
|
|
19387
19388
|
// :
|
|
19388
19389
|
case 58:
|
|
@@ -19405,7 +19406,7 @@ function parse(e, t, r, n, s, d, g, m, y) {
|
|
|
19405
19406
|
break;
|
|
19406
19407
|
// @
|
|
19407
19408
|
case 64:
|
|
19408
|
-
peek() === 45 && (z += delimit(next())), x = peek(), E = I = strlen(
|
|
19409
|
+
peek() === 45 && (z += delimit(next())), x = peek(), E = I = strlen(O = z += identifier(caret())), $++;
|
|
19409
19410
|
break;
|
|
19410
19411
|
// -
|
|
19411
19412
|
case 45:
|
|
@@ -19416,8 +19417,8 @@ function parse(e, t, r, n, s, d, g, m, y) {
|
|
|
19416
19417
|
}
|
|
19417
19418
|
function ruleset(e, t, r, n, s, d, g, m, y, b, E) {
|
|
19418
19419
|
for (var I = s - 1, x = s === 0 ? d : [""], S = sizeof(x), A = 0, R = 0, k = 0; A < n; ++A)
|
|
19419
|
-
for (var L = 0, $ = substr(e, I + 1, I = abs(R = g[A])),
|
|
19420
|
-
(
|
|
19420
|
+
for (var L = 0, $ = substr(e, I + 1, I = abs(R = g[A])), O = e; L < S; ++L)
|
|
19421
|
+
(O = trim(R > 0 ? x[L] + " " + $ : replace$1($, /&\f/g, x[L]))) && (y[k++] = O);
|
|
19421
19422
|
return node(e, t, r, s === 0 ? RULESET : m, y, b, E);
|
|
19422
19423
|
}
|
|
19423
19424
|
function comment(e, t, r) {
|
|
@@ -19714,8 +19715,8 @@ var prefixer = function e(t, r, n, s) {
|
|
|
19714
19715
|
})], x = middleware(b.concat(s, I)), S = function(k) {
|
|
19715
19716
|
return serialize(compile$1(k), x);
|
|
19716
19717
|
};
|
|
19717
|
-
y = function(k, L, $,
|
|
19718
|
-
E = $, S(k ? k + "{" + L.styles + "}" : L.styles),
|
|
19718
|
+
y = function(k, L, $, O) {
|
|
19719
|
+
E = $, S(k ? k + "{" + L.styles + "}" : L.styles), O && (A.inserted[L.name] = !0);
|
|
19719
19720
|
};
|
|
19720
19721
|
}
|
|
19721
19722
|
var A = {
|
|
@@ -19740,7 +19741,7 @@ function requireReactIs_production_min() {
|
|
|
19740
19741
|
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
19741
19742
|
hasRequiredReactIs_production_min = 1;
|
|
19742
19743
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, d = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, g = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, m = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, b = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, E = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, I = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, x = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, S = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, R = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, k = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, $ = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
19743
|
-
function
|
|
19744
|
+
function O(q) {
|
|
19744
19745
|
if (typeof q == "object" && q !== null) {
|
|
19745
19746
|
var Y = q.$$typeof;
|
|
19746
19747
|
switch (Y) {
|
|
@@ -19771,41 +19772,41 @@ function requireReactIs_production_min() {
|
|
|
19771
19772
|
}
|
|
19772
19773
|
}
|
|
19773
19774
|
function G(q) {
|
|
19774
|
-
return
|
|
19775
|
+
return O(q) === b;
|
|
19775
19776
|
}
|
|
19776
19777
|
return reactIs_production_min.AsyncMode = y, reactIs_production_min.ConcurrentMode = b, reactIs_production_min.ContextConsumer = m, reactIs_production_min.ContextProvider = g, reactIs_production_min.Element = t, reactIs_production_min.ForwardRef = E, reactIs_production_min.Fragment = n, reactIs_production_min.Lazy = A, reactIs_production_min.Memo = S, reactIs_production_min.Portal = r, reactIs_production_min.Profiler = d, reactIs_production_min.StrictMode = s, reactIs_production_min.Suspense = I, reactIs_production_min.isAsyncMode = function(q) {
|
|
19777
|
-
return G(q) ||
|
|
19778
|
+
return G(q) || O(q) === y;
|
|
19778
19779
|
}, reactIs_production_min.isConcurrentMode = G, reactIs_production_min.isContextConsumer = function(q) {
|
|
19779
|
-
return
|
|
19780
|
+
return O(q) === m;
|
|
19780
19781
|
}, reactIs_production_min.isContextProvider = function(q) {
|
|
19781
|
-
return
|
|
19782
|
+
return O(q) === g;
|
|
19782
19783
|
}, reactIs_production_min.isElement = function(q) {
|
|
19783
19784
|
return typeof q == "object" && q !== null && q.$$typeof === t;
|
|
19784
19785
|
}, reactIs_production_min.isForwardRef = function(q) {
|
|
19785
|
-
return
|
|
19786
|
+
return O(q) === E;
|
|
19786
19787
|
}, reactIs_production_min.isFragment = function(q) {
|
|
19787
|
-
return
|
|
19788
|
+
return O(q) === n;
|
|
19788
19789
|
}, reactIs_production_min.isLazy = function(q) {
|
|
19789
|
-
return
|
|
19790
|
+
return O(q) === A;
|
|
19790
19791
|
}, reactIs_production_min.isMemo = function(q) {
|
|
19791
|
-
return
|
|
19792
|
+
return O(q) === S;
|
|
19792
19793
|
}, reactIs_production_min.isPortal = function(q) {
|
|
19793
|
-
return
|
|
19794
|
+
return O(q) === r;
|
|
19794
19795
|
}, reactIs_production_min.isProfiler = function(q) {
|
|
19795
|
-
return
|
|
19796
|
+
return O(q) === d;
|
|
19796
19797
|
}, reactIs_production_min.isStrictMode = function(q) {
|
|
19797
|
-
return
|
|
19798
|
+
return O(q) === s;
|
|
19798
19799
|
}, reactIs_production_min.isSuspense = function(q) {
|
|
19799
|
-
return
|
|
19800
|
+
return O(q) === I;
|
|
19800
19801
|
}, reactIs_production_min.isValidElementType = function(q) {
|
|
19801
19802
|
return typeof q == "string" || typeof q == "function" || q === n || q === b || q === d || q === s || q === I || q === x || typeof q == "object" && q !== null && (q.$$typeof === A || q.$$typeof === S || q.$$typeof === g || q.$$typeof === m || q.$$typeof === E || q.$$typeof === k || q.$$typeof === L || q.$$typeof === $ || q.$$typeof === R);
|
|
19802
|
-
}, reactIs_production_min.typeOf =
|
|
19803
|
+
}, reactIs_production_min.typeOf = O, reactIs_production_min;
|
|
19803
19804
|
}
|
|
19804
19805
|
var reactIs_development = {}, hasRequiredReactIs_development;
|
|
19805
19806
|
function requireReactIs_development() {
|
|
19806
19807
|
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process$1.env.NODE_ENV !== "production" && (function() {
|
|
19807
19808
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, d = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, g = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, m = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, y = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, b = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, E = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, I = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, x = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, S = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, R = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, k = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, $ = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
19808
|
-
function
|
|
19809
|
+
function O(V) {
|
|
19809
19810
|
return typeof V == "string" || typeof V == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
19810
19811
|
V === n || V === b || V === d || V === s || V === I || V === x || typeof V == "object" && V !== null && (V.$$typeof === A || V.$$typeof === S || V.$$typeof === g || V.$$typeof === m || V.$$typeof === E || V.$$typeof === k || V.$$typeof === L || V.$$typeof === $ || V.$$typeof === R);
|
|
19811
19812
|
}
|
|
@@ -19881,7 +19882,7 @@ function requireReactIs_development() {
|
|
|
19881
19882
|
function fe(V) {
|
|
19882
19883
|
return G(V) === I;
|
|
19883
19884
|
}
|
|
19884
|
-
reactIs_development.AsyncMode = q, reactIs_development.ConcurrentMode = Y, reactIs_development.ContextConsumer = z, reactIs_development.ContextProvider = W, reactIs_development.Element = X, reactIs_development.ForwardRef = ee, reactIs_development.Fragment = te, reactIs_development.Lazy = se, reactIs_development.Memo = ie, reactIs_development.Portal = oe, reactIs_development.Profiler = K, reactIs_development.StrictMode = ue, reactIs_development.Suspense = pe, reactIs_development.isAsyncMode = Ae, reactIs_development.isConcurrentMode = he, reactIs_development.isContextConsumer = Be, reactIs_development.isContextProvider = Se, reactIs_development.isElement = _e, reactIs_development.isForwardRef = ve, reactIs_development.isFragment = Te, reactIs_development.isLazy = be, reactIs_development.isMemo = Oe, reactIs_development.isPortal = Q, reactIs_development.isProfiler = Me, reactIs_development.isStrictMode = me, reactIs_development.isSuspense = fe, reactIs_development.isValidElementType =
|
|
19885
|
+
reactIs_development.AsyncMode = q, reactIs_development.ConcurrentMode = Y, reactIs_development.ContextConsumer = z, reactIs_development.ContextProvider = W, reactIs_development.Element = X, reactIs_development.ForwardRef = ee, reactIs_development.Fragment = te, reactIs_development.Lazy = se, reactIs_development.Memo = ie, reactIs_development.Portal = oe, reactIs_development.Profiler = K, reactIs_development.StrictMode = ue, reactIs_development.Suspense = pe, reactIs_development.isAsyncMode = Ae, reactIs_development.isConcurrentMode = he, reactIs_development.isContextConsumer = Be, reactIs_development.isContextProvider = Se, reactIs_development.isElement = _e, reactIs_development.isForwardRef = ve, reactIs_development.isFragment = Te, reactIs_development.isLazy = be, reactIs_development.isMemo = Oe, reactIs_development.isPortal = Q, reactIs_development.isProfiler = Me, reactIs_development.isStrictMode = me, reactIs_development.isSuspense = fe, reactIs_development.isValidElementType = O, reactIs_development.typeOf = G;
|
|
19885
19886
|
})()), reactIs_development;
|
|
19886
19887
|
}
|
|
19887
19888
|
var hasRequiredReactIs;
|
|
@@ -19939,9 +19940,9 @@ function requireHoistNonReactStatics_cjs() {
|
|
|
19939
19940
|
}
|
|
19940
19941
|
var $ = y(R);
|
|
19941
19942
|
b && ($ = $.concat(b(R)));
|
|
19942
|
-
for (var
|
|
19943
|
+
for (var O = g(A), G = g(R), q = 0; q < $.length; ++q) {
|
|
19943
19944
|
var Y = $[q];
|
|
19944
|
-
if (!r[Y] && !(k && k[Y]) && !(G && G[Y]) && !(
|
|
19945
|
+
if (!r[Y] && !(k && k[Y]) && !(G && G[Y]) && !(O && O[Y])) {
|
|
19945
19946
|
var z = E(R, Y);
|
|
19946
19947
|
try {
|
|
19947
19948
|
m(A, Y, z);
|
|
@@ -20409,8 +20410,8 @@ function observeMove(e, t, r) {
|
|
|
20409
20410
|
} = x;
|
|
20410
20411
|
if (E || t(), !R || !k)
|
|
20411
20412
|
return;
|
|
20412
|
-
const L = floor$1(A), $ = floor$1(d.clientWidth - (S + R)),
|
|
20413
|
-
rootMargin: -L + "px " + -$ + "px " + -
|
|
20413
|
+
const L = floor$1(A), $ = floor$1(d.clientWidth - (S + R)), O = floor$1(d.clientHeight - (A + k)), G = floor$1(S), Y = {
|
|
20414
|
+
rootMargin: -L + "px " + -$ + "px " + -O + "px " + -G + "px",
|
|
20414
20415
|
threshold: max$1(0, min(1, I)) || 1
|
|
20415
20416
|
};
|
|
20416
20417
|
let z = !0;
|
|
@@ -20460,8 +20461,8 @@ function autoUpdate(e, t, r, n) {
|
|
|
20460
20461
|
g && (S = new ResizeObserver((L) => {
|
|
20461
20462
|
let [$] = L;
|
|
20462
20463
|
$ && $.target === b && S && t && (S.unobserve(t), cancelAnimationFrame(x), x = requestAnimationFrame(() => {
|
|
20463
|
-
var
|
|
20464
|
-
(
|
|
20464
|
+
var O;
|
|
20465
|
+
(O = S) == null || O.observe(t);
|
|
20465
20466
|
})), r();
|
|
20466
20467
|
}), b && !y && S.observe(b), t && S.observe(t));
|
|
20467
20468
|
let A, R = y ? getBoundingClientRect(e) : null;
|
|
@@ -20613,7 +20614,7 @@ function getMenuPlacement(e) {
|
|
|
20613
20614
|
maxHeight: t
|
|
20614
20615
|
};
|
|
20615
20616
|
if (!r || !r.offsetParent) return b;
|
|
20616
|
-
var E = y.getBoundingClientRect(), I = E.height, x = r.getBoundingClientRect(), S = x.bottom, A = x.height, R = x.top, k = r.offsetParent.getBoundingClientRect(), L = k.top, $ = g ? window.innerHeight : normalizedHeight(y),
|
|
20617
|
+
var E = y.getBoundingClientRect(), I = E.height, x = r.getBoundingClientRect(), S = x.bottom, A = x.height, R = x.top, k = r.offsetParent.getBoundingClientRect(), L = k.top, $ = g ? window.innerHeight : normalizedHeight(y), O = getScrollTop(y), G = parseInt(getComputedStyle(r).marginBottom, 10), q = parseInt(getComputedStyle(r).marginTop, 10), Y = L - q, z = $ - R, W = Y + O, X = I - O - R, ee = S - $ + O + G, te = O + R - q, se = 160;
|
|
20617
20618
|
switch (s) {
|
|
20618
20619
|
case "auto":
|
|
20619
20620
|
case "bottom":
|
|
@@ -20696,7 +20697,7 @@ var coercePlacement = function e(t) {
|
|
|
20696
20697
|
marginTop: m.menuGutter
|
|
20697
20698
|
});
|
|
20698
20699
|
}, PortalPlacementContext = /* @__PURE__ */ createContext(null), MenuPlacer = function e(t) {
|
|
20699
|
-
var r = t.children, n = t.minMenuHeight, s = t.maxMenuHeight, d = t.menuPlacement, g = t.menuPosition, m = t.menuShouldScrollIntoView, y = t.theme, b = useContext$1(PortalPlacementContext) || {}, E = b.setPortalPlacement, I = useRef(null), x = useState$1(s), S = _slicedToArray(x, 2), A = S[0], R = S[1], k = useState$1(null), L = _slicedToArray(k, 2), $ = L[0],
|
|
20700
|
+
var r = t.children, n = t.minMenuHeight, s = t.maxMenuHeight, d = t.menuPlacement, g = t.menuPosition, m = t.menuShouldScrollIntoView, y = t.theme, b = useContext$1(PortalPlacementContext) || {}, E = b.setPortalPlacement, I = useRef(null), x = useState$1(s), S = _slicedToArray(x, 2), A = S[0], R = S[1], k = useState$1(null), L = _slicedToArray(k, 2), $ = L[0], O = L[1], G = y.spacing.controlHeight;
|
|
20700
20701
|
return index(function() {
|
|
20701
20702
|
var q = I.current;
|
|
20702
20703
|
if (q) {
|
|
@@ -20709,7 +20710,7 @@ var coercePlacement = function e(t) {
|
|
|
20709
20710
|
isFixedPosition: Y,
|
|
20710
20711
|
controlHeight: G
|
|
20711
20712
|
});
|
|
20712
|
-
R(W.maxHeight),
|
|
20713
|
+
R(W.maxHeight), O(W.placement), E?.(W.placement);
|
|
20713
20714
|
}
|
|
20714
20715
|
}, [s, d, g, m, n, E, G]), r({
|
|
20715
20716
|
ref: I,
|
|
@@ -20785,7 +20786,7 @@ var coercePlacement = function e(t) {
|
|
|
20785
20786
|
return {
|
|
20786
20787
|
setPortalPlacement: S
|
|
20787
20788
|
};
|
|
20788
|
-
}, []), R = useState$1(null), k = _slicedToArray(R, 2), L = k[0], $ = k[1],
|
|
20789
|
+
}, []), R = useState$1(null), k = _slicedToArray(R, 2), L = k[0], $ = k[1], O = useCallback(function() {
|
|
20789
20790
|
if (s) {
|
|
20790
20791
|
var z = getBoundingClientObj(s), W = m === "fixed" ? 0 : window.pageYOffset, X = z[x] + W;
|
|
20791
20792
|
(X !== L?.offset || z.left !== L?.rect.left || z.width !== L?.rect.width) && $({
|
|
@@ -20795,13 +20796,13 @@ var coercePlacement = function e(t) {
|
|
|
20795
20796
|
}
|
|
20796
20797
|
}, [s, m, x, L?.offset, L?.rect.left, L?.rect.width]);
|
|
20797
20798
|
index(function() {
|
|
20798
|
-
|
|
20799
|
-
}, [
|
|
20799
|
+
O();
|
|
20800
|
+
}, [O]);
|
|
20800
20801
|
var G = useCallback(function() {
|
|
20801
|
-
typeof b.current == "function" && (b.current(), b.current = null), s && y.current && (b.current = autoUpdate(s, y.current,
|
|
20802
|
+
typeof b.current == "function" && (b.current(), b.current = null), s && y.current && (b.current = autoUpdate(s, y.current, O, {
|
|
20802
20803
|
elementResize: "ResizeObserver" in window
|
|
20803
20804
|
}));
|
|
20804
|
-
}, [s,
|
|
20805
|
+
}, [s, O]);
|
|
20805
20806
|
index(function() {
|
|
20806
20807
|
G();
|
|
20807
20808
|
}, [G]);
|
|
@@ -21387,7 +21388,7 @@ var _ref = process$1.env.NODE_ENV === "production" ? {
|
|
|
21387
21388
|
return "".concat(n).concat(r ? " for search term " + r : "", ".");
|
|
21388
21389
|
}
|
|
21389
21390
|
}, LiveRegion = function e(t) {
|
|
21390
|
-
var r = t.ariaSelection, n = t.focusedOption, s = t.focusedValue, d = t.focusableOptions, g = t.isFocused, m = t.selectValue, y = t.selectProps, b = t.id, E = t.isAppleDevice, I = y.ariaLiveMessages, x = y.getOptionLabel, S = y.inputValue, A = y.isMulti, R = y.isOptionDisabled, k = y.isSearchable, L = y.menuIsOpen, $ = y.options,
|
|
21391
|
+
var r = t.ariaSelection, n = t.focusedOption, s = t.focusedValue, d = t.focusableOptions, g = t.isFocused, m = t.selectValue, y = t.selectProps, b = t.id, E = t.isAppleDevice, I = y.ariaLiveMessages, x = y.getOptionLabel, S = y.inputValue, A = y.isMulti, R = y.isOptionDisabled, k = y.isSearchable, L = y.menuIsOpen, $ = y.options, O = y.screenReaderStatus, G = y.tabSelectsValue, q = y.isLoading, Y = y["aria-label"], z = y["aria-live"], W = useMemo$1(function() {
|
|
21391
21392
|
return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), I || {});
|
|
21392
21393
|
}, [I]), X = useMemo$1(function() {
|
|
21393
21394
|
var K = "";
|
|
@@ -21423,7 +21424,7 @@ var _ref = process$1.env.NODE_ENV === "production" ? {
|
|
|
21423
21424
|
}, [n, s, x, R, W, d, m, E]), te = useMemo$1(function() {
|
|
21424
21425
|
var K = "";
|
|
21425
21426
|
if (L && $.length && !q && W.onFilter) {
|
|
21426
|
-
var ue =
|
|
21427
|
+
var ue = O({
|
|
21427
21428
|
count: d.length
|
|
21428
21429
|
});
|
|
21429
21430
|
K = W.onFilter({
|
|
@@ -21432,7 +21433,7 @@ var _ref = process$1.env.NODE_ENV === "production" ? {
|
|
|
21432
21433
|
});
|
|
21433
21434
|
}
|
|
21434
21435
|
return K;
|
|
21435
|
-
}, [d, S, L, W, $,
|
|
21436
|
+
}, [d, S, L, W, $, O, q]), se = r?.action === "initial-input-focus", ie = useMemo$1(function() {
|
|
21436
21437
|
var K = "";
|
|
21437
21438
|
if (W.guidance) {
|
|
21438
21439
|
var ue = s ? "value" : L ? "menu" : "input";
|
|
@@ -21777,8 +21778,8 @@ var cancelScroll = function e(t) {
|
|
|
21777
21778
|
function useScrollCapture(e) {
|
|
21778
21779
|
var t = e.isEnabled, r = e.onBottomArrive, n = e.onBottomLeave, s = e.onTopArrive, d = e.onTopLeave, g = useRef(!1), m = useRef(!1), y = useRef(0), b = useRef(null), E = useCallback(function(k, L) {
|
|
21779
21780
|
if (b.current !== null) {
|
|
21780
|
-
var $ = b.current,
|
|
21781
|
-
W > L && g.current && (n && n(k), g.current = !1), z && m.current && (d && d(k), m.current = !1), z && L > W ? (r && !g.current && r(k), Y.scrollTop = G, X = !0, g.current = !0) : !z && -L >
|
|
21781
|
+
var $ = b.current, O = $.scrollTop, G = $.scrollHeight, q = $.clientHeight, Y = b.current, z = L > 0, W = G - q - O, X = !1;
|
|
21782
|
+
W > L && g.current && (n && n(k), g.current = !1), z && m.current && (d && d(k), m.current = !1), z && L > W ? (r && !g.current && r(k), Y.scrollTop = G, X = !0, g.current = !0) : !z && -L > O && (s && !m.current && s(k), Y.scrollTop = 0, X = !0, m.current = !0), X && cancelScroll(k);
|
|
21782
21783
|
}
|
|
21783
21784
|
}, [r, n, s, d]), I = useCallback(function(k) {
|
|
21784
21785
|
E(k, k.deltaY);
|
|
@@ -22359,7 +22360,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22359
22360
|
}, s.onValueInputFocus = function(y) {
|
|
22360
22361
|
y.preventDefault(), y.stopPropagation(), s.focus();
|
|
22361
22362
|
}, s.onKeyDown = function(y) {
|
|
22362
|
-
var b = s.props, E = b.isMulti, I = b.backspaceRemovesValue, x = b.escapeClearsValue, S = b.inputValue, A = b.isClearable, R = b.isDisabled, k = b.menuIsOpen, L = b.onKeyDown, $ = b.tabSelectsValue,
|
|
22363
|
+
var b = s.props, E = b.isMulti, I = b.backspaceRemovesValue, x = b.escapeClearsValue, S = b.inputValue, A = b.isClearable, R = b.isDisabled, k = b.menuIsOpen, L = b.onKeyDown, $ = b.tabSelectsValue, O = b.openMenuOnFocus, G = s.state, q = G.focusedOption, Y = G.focusedValue, z = G.selectValue;
|
|
22363
22364
|
if (!R && !(typeof L == "function" && (L(y), y.defaultPrevented))) {
|
|
22364
22365
|
switch (s.blockOptionHover = !0, y.key) {
|
|
22365
22366
|
case "ArrowLeft":
|
|
@@ -22383,7 +22384,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22383
22384
|
case "Tab":
|
|
22384
22385
|
if (s.isComposing || y.shiftKey || !k || !$ || !q || // don't capture the event if the menu opens on focus and the focused
|
|
22385
22386
|
// option is already selected; it breaks the flow of navigation
|
|
22386
|
-
|
|
22387
|
+
O && s.isOptionSelected(q, z))
|
|
22387
22388
|
return;
|
|
22388
22389
|
s.selectOption(q);
|
|
22389
22390
|
break;
|
|
@@ -22683,7 +22684,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22683
22684
|
// Renderers
|
|
22684
22685
|
// ==============================
|
|
22685
22686
|
function() {
|
|
22686
|
-
var s = this.props, d = s.isDisabled, g = s.isSearchable, m = s.inputId, y = s.inputValue, b = s.tabIndex, E = s.form, I = s.menuIsOpen, x = s.required, S = this.getComponents(), A = S.Input, R = this.state, k = R.inputIsHidden, L = R.ariaSelection, $ = this.commonProps,
|
|
22687
|
+
var s = this.props, d = s.isDisabled, g = s.isSearchable, m = s.inputId, y = s.inputValue, b = s.tabIndex, E = s.form, I = s.menuIsOpen, x = s.required, S = this.getComponents(), A = S.Input, R = this.state, k = R.inputIsHidden, L = R.ariaSelection, $ = this.commonProps, O = m || this.getElementId("input"), G = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22687
22688
|
"aria-autocomplete": "list",
|
|
22688
22689
|
"aria-expanded": I,
|
|
22689
22690
|
"aria-haspopup": !0,
|
|
@@ -22707,7 +22708,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22707
22708
|
autoCapitalize: "none",
|
|
22708
22709
|
autoComplete: "off",
|
|
22709
22710
|
autoCorrect: "off",
|
|
22710
|
-
id:
|
|
22711
|
+
id: O,
|
|
22711
22712
|
innerRef: this.getInputRef,
|
|
22712
22713
|
isDisabled: d,
|
|
22713
22714
|
isHidden: k,
|
|
@@ -22720,7 +22721,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22720
22721
|
type: "text",
|
|
22721
22722
|
value: y
|
|
22722
22723
|
}, G)) : /* @__PURE__ */ React.createElement(DummyInput, _extends({
|
|
22723
|
-
id:
|
|
22724
|
+
id: O,
|
|
22724
22725
|
innerRef: this.getInputRef,
|
|
22725
22726
|
onBlur: this.onInputBlur,
|
|
22726
22727
|
onChange: noop,
|
|
@@ -22736,7 +22737,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22736
22737
|
}, {
|
|
22737
22738
|
key: "renderPlaceholderOrValue",
|
|
22738
22739
|
value: function() {
|
|
22739
|
-
var s = this, d = this.getComponents(), g = d.MultiValue, m = d.MultiValueContainer, y = d.MultiValueLabel, b = d.MultiValueRemove, E = d.SingleValue, I = d.Placeholder, x = this.commonProps, S = this.props, A = S.controlShouldRenderValue, R = S.isDisabled, k = S.isMulti, L = S.inputValue, $ = S.placeholder,
|
|
22740
|
+
var s = this, d = this.getComponents(), g = d.MultiValue, m = d.MultiValueContainer, y = d.MultiValueLabel, b = d.MultiValueRemove, E = d.SingleValue, I = d.Placeholder, x = this.commonProps, S = this.props, A = S.controlShouldRenderValue, R = S.isDisabled, k = S.isMulti, L = S.inputValue, $ = S.placeholder, O = this.state, G = O.selectValue, q = O.focusedValue, Y = O.isFocused;
|
|
22740
22741
|
if (!this.hasValue() || !A)
|
|
22741
22742
|
return L ? null : /* @__PURE__ */ React.createElement(I, _extends({}, x, {
|
|
22742
22743
|
key: "placeholder",
|
|
@@ -22841,7 +22842,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22841
22842
|
}, {
|
|
22842
22843
|
key: "renderMenu",
|
|
22843
22844
|
value: function() {
|
|
22844
|
-
var s = this, d = this.getComponents(), g = d.Group, m = d.GroupHeading, y = d.Menu, b = d.MenuList, E = d.MenuPortal, I = d.LoadingMessage, x = d.NoOptionsMessage, S = d.Option, A = this.commonProps, R = this.state.focusedOption, k = this.props, L = k.captureMenuScroll, $ = k.inputValue,
|
|
22845
|
+
var s = this, d = this.getComponents(), g = d.Group, m = d.GroupHeading, y = d.Menu, b = d.MenuList, E = d.MenuPortal, I = d.LoadingMessage, x = d.NoOptionsMessage, S = d.Option, A = this.commonProps, R = this.state.focusedOption, k = this.props, L = k.captureMenuScroll, $ = k.inputValue, O = k.isLoading, G = k.loadingMessage, q = k.minMenuHeight, Y = k.maxMenuHeight, z = k.menuIsOpen, W = k.menuPlacement, X = k.menuPosition, ee = k.menuPortalTarget, te = k.menuShouldBlockScroll, se = k.menuShouldScrollIntoView, ie = k.noOptionsMessage, oe = k.onMenuScrollToTop, K = k.onMenuScrollToBottom;
|
|
22845
22846
|
if (!z) return null;
|
|
22846
22847
|
var ue = function(_e, ve) {
|
|
22847
22848
|
var Te = _e.type, be = _e.data, Oe = _e.isDisabled, Q = _e.isSelected, Me = _e.label, me = _e.value, fe = R === be, V = Oe ? void 0 : function() {
|
|
@@ -22891,7 +22892,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22891
22892
|
} else if (Se.type === "option")
|
|
22892
22893
|
return ue(Se, "".concat(Se.index));
|
|
22893
22894
|
});
|
|
22894
|
-
else if (
|
|
22895
|
+
else if (O) {
|
|
22895
22896
|
var Ce = G({
|
|
22896
22897
|
inputValue: $
|
|
22897
22898
|
});
|
|
@@ -22918,7 +22919,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22918
22919
|
onMouseDown: s.onMenuMouseDown,
|
|
22919
22920
|
onMouseMove: s.onMenuMouseMove
|
|
22920
22921
|
},
|
|
22921
|
-
isLoading:
|
|
22922
|
+
isLoading: O,
|
|
22922
22923
|
placement: Te
|
|
22923
22924
|
}), /* @__PURE__ */ React.createElement(ScrollManager, {
|
|
22924
22925
|
captureEnabled: L,
|
|
@@ -22935,7 +22936,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
22935
22936
|
"aria-multiselectable": A.isMulti,
|
|
22936
22937
|
id: s.getElementId("listbox")
|
|
22937
22938
|
},
|
|
22938
|
-
isLoading:
|
|
22939
|
+
isLoading: O,
|
|
22939
22940
|
maxHeight: be,
|
|
22940
22941
|
focusedOption: R
|
|
22941
22942
|
}), pe);
|
|
@@ -23037,10 +23038,10 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
23037
23038
|
}], [{
|
|
23038
23039
|
key: "getDerivedStateFromProps",
|
|
23039
23040
|
value: function(s, d) {
|
|
23040
|
-
var g = d.prevProps, m = d.clearFocusValueOnUpdate, y = d.inputIsHiddenAfterUpdate, b = d.ariaSelection, E = d.isFocused, I = d.prevWasFocused, x = d.instancePrefix, S = s.options, A = s.value, R = s.menuIsOpen, k = s.inputValue, L = s.isMulti, $ = cleanValue(A),
|
|
23041
|
+
var g = d.prevProps, m = d.clearFocusValueOnUpdate, y = d.inputIsHiddenAfterUpdate, b = d.ariaSelection, E = d.isFocused, I = d.prevWasFocused, x = d.instancePrefix, S = s.options, A = s.value, R = s.menuIsOpen, k = s.inputValue, L = s.isMulti, $ = cleanValue(A), O = {};
|
|
23041
23042
|
if (g && (A !== g.value || S !== g.options || R !== g.menuIsOpen || k !== g.inputValue)) {
|
|
23042
23043
|
var G = R ? buildFocusableOptions(s, $) : [], q = R ? buildFocusableOptionsWithIds(buildCategorizedOptions(s, $), "".concat(x, "-option")) : [], Y = m ? getNextFocusedValue(d, $) : null, z = getNextFocusedOption(d, G), W = getFocusedOptionId(q, z);
|
|
23043
|
-
|
|
23044
|
+
O = {
|
|
23044
23045
|
selectValue: $,
|
|
23045
23046
|
focusedOption: z,
|
|
23046
23047
|
focusedOptionId: W,
|
|
@@ -23057,7 +23058,7 @@ var shouldHideSelectedOptions = function e(t) {
|
|
|
23057
23058
|
value: valueTernary(L, $, $[0] || null),
|
|
23058
23059
|
options: $,
|
|
23059
23060
|
action: "initial-input-focus"
|
|
23060
|
-
}, te = !I), b?.action === "initial-input-focus" && (ee = null), _objectSpread2(_objectSpread2(_objectSpread2({},
|
|
23061
|
+
}, te = !I), b?.action === "initial-input-focus" && (ee = null), _objectSpread2(_objectSpread2(_objectSpread2({}, O), X), {}, {
|
|
23061
23062
|
prevProps: s,
|
|
23062
23063
|
ariaSelection: ee,
|
|
23063
23064
|
prevWasFocused: te
|
|
@@ -24574,14 +24575,14 @@ const DrawButton$1 = connect(
|
|
|
24574
24575
|
return {
|
|
24575
24576
|
name: r.name,
|
|
24576
24577
|
getReducer() {
|
|
24577
|
-
const
|
|
24578
|
+
const O = {
|
|
24578
24579
|
active: r.active,
|
|
24579
24580
|
visible: r.visible,
|
|
24580
24581
|
layer: null,
|
|
24581
24582
|
drawInteraction: null,
|
|
24582
24583
|
shouldInitialize: !1
|
|
24583
24584
|
};
|
|
24584
|
-
return (G =
|
|
24585
|
+
return (G = O, { type: q, payload: Y }) => {
|
|
24585
24586
|
switch (q) {
|
|
24586
24587
|
case d.INITIALIZE_START:
|
|
24587
24588
|
case d.INITIALIZE_FINISH:
|
|
@@ -24599,8 +24600,8 @@ const DrawButton$1 = connect(
|
|
|
24599
24600
|
}
|
|
24600
24601
|
};
|
|
24601
24602
|
},
|
|
24602
|
-
[g]: () => ({ dispatch:
|
|
24603
|
-
|
|
24603
|
+
[g]: () => ({ dispatch: O, store: G }) => {
|
|
24604
|
+
O({
|
|
24604
24605
|
type: d.INITIALIZE_START,
|
|
24605
24606
|
payload: {
|
|
24606
24607
|
shouldInitialize: !1
|
|
@@ -24623,7 +24624,7 @@ const DrawButton$1 = connect(
|
|
|
24623
24624
|
source: z,
|
|
24624
24625
|
type: r.type
|
|
24625
24626
|
});
|
|
24626
|
-
r.visible && G.selectMap().addLayer(W),
|
|
24627
|
+
r.visible && G.selectMap().addLayer(W), O({
|
|
24627
24628
|
type: d.INITIALIZE_FINISH,
|
|
24628
24629
|
payload: {
|
|
24629
24630
|
layer: W,
|
|
@@ -24631,61 +24632,61 @@ const DrawButton$1 = connect(
|
|
|
24631
24632
|
}
|
|
24632
24633
|
});
|
|
24633
24634
|
},
|
|
24634
|
-
[m]: () => ({ dispatch:
|
|
24635
|
+
[m]: () => ({ dispatch: O, store: G }) => {
|
|
24635
24636
|
const q = G.selectMap(), Y = G[S]();
|
|
24636
|
-
q.addLayer(Y),
|
|
24637
|
+
q.addLayer(Y), O({
|
|
24637
24638
|
type: d.SHOW,
|
|
24638
24639
|
payload: {
|
|
24639
24640
|
visible: !0
|
|
24640
24641
|
}
|
|
24641
24642
|
});
|
|
24642
24643
|
},
|
|
24643
|
-
[y]: () => ({ dispatch:
|
|
24644
|
+
[y]: () => ({ dispatch: O, store: G }) => {
|
|
24644
24645
|
const q = G.selectMap(), Y = G[S]();
|
|
24645
|
-
q.removeLayer(Y),
|
|
24646
|
+
q.removeLayer(Y), O({
|
|
24646
24647
|
type: d.HIDE,
|
|
24647
24648
|
payload: {
|
|
24648
24649
|
visible: !1
|
|
24649
24650
|
}
|
|
24650
24651
|
});
|
|
24651
24652
|
},
|
|
24652
|
-
[I]: () => ({ dispatch:
|
|
24653
|
+
[I]: () => ({ dispatch: O, store: G }) => {
|
|
24653
24654
|
G[L]() ? G[y]() : G[m]();
|
|
24654
24655
|
},
|
|
24655
|
-
[b]: () => ({ dispatch:
|
|
24656
|
+
[b]: () => ({ dispatch: O, store: G }) => {
|
|
24656
24657
|
G.doSetCursor("crosshair");
|
|
24657
24658
|
const q = G.selectMap();
|
|
24658
24659
|
G[R]().forEach((z) => {
|
|
24659
24660
|
q.addInteraction(z);
|
|
24660
|
-
}),
|
|
24661
|
+
}), O({
|
|
24661
24662
|
type: d.ACTIVATE,
|
|
24662
24663
|
payload: {
|
|
24663
24664
|
active: !0
|
|
24664
24665
|
}
|
|
24665
24666
|
});
|
|
24666
24667
|
},
|
|
24667
|
-
[E]: () => ({ dispatch:
|
|
24668
|
+
[E]: () => ({ dispatch: O, store: G }) => {
|
|
24668
24669
|
G.doSetCursor();
|
|
24669
24670
|
const q = G.selectMap();
|
|
24670
24671
|
G[R]().forEach((z) => {
|
|
24671
24672
|
q.removeInteraction(z);
|
|
24672
|
-
}),
|
|
24673
|
+
}), O({
|
|
24673
24674
|
type: d.DEACTIVATE,
|
|
24674
24675
|
payload: {
|
|
24675
24676
|
active: !1
|
|
24676
24677
|
}
|
|
24677
24678
|
});
|
|
24678
24679
|
},
|
|
24679
|
-
[x]: () => ({ store:
|
|
24680
|
-
|
|
24680
|
+
[x]: () => ({ store: O }) => {
|
|
24681
|
+
O.selectActive() ? O[E]() : O[b]();
|
|
24681
24682
|
},
|
|
24682
|
-
[k]: (
|
|
24683
|
-
[L]: (
|
|
24684
|
-
[S]: (
|
|
24685
|
-
[A]: (
|
|
24686
|
-
[R]: createSelector(A, (
|
|
24687
|
-
[$]: (
|
|
24688
|
-
if (
|
|
24683
|
+
[k]: (O) => O[r.name].active,
|
|
24684
|
+
[L]: (O) => O[r.name].visible,
|
|
24685
|
+
[S]: (O) => O[r.name].layer,
|
|
24686
|
+
[A]: (O) => O[r.name].drawInteraction,
|
|
24687
|
+
[R]: createSelector(A, (O) => [O]),
|
|
24688
|
+
[$]: (O) => {
|
|
24689
|
+
if (O[r.name].shouldInitialize)
|
|
24689
24690
|
return { actionCreator: g };
|
|
24690
24691
|
}
|
|
24691
24692
|
};
|
|
@@ -24931,8 +24932,8 @@ function requireFileSaver_min() {
|
|
|
24931
24932
|
if ((R || S && A || m) && typeof FileReader < "u") {
|
|
24932
24933
|
var k = new FileReader();
|
|
24933
24934
|
k.onloadend = function() {
|
|
24934
|
-
var
|
|
24935
|
-
|
|
24935
|
+
var O = k.result;
|
|
24936
|
+
O = R ? O : O.replace(/^data:[^;]*;/, "data:attachment/file;"), x ? x.location.href = O : location = O, x = null;
|
|
24936
24937
|
}, k.readAsDataURL(b);
|
|
24937
24938
|
} else {
|
|
24938
24939
|
var L = g.URL || g.webkitURL, $ = L.createObjectURL(b);
|
|
@@ -25370,16 +25371,16 @@ function vec$1(e) {
|
|
|
25370
25371
|
}
|
|
25371
25372
|
const ccwerrboundA$1 = (3 + 16 * epsilon$1) * epsilon$1, ccwerrboundB$1 = (2 + 12 * epsilon$1) * epsilon$1, ccwerrboundC$1 = (9 + 64 * epsilon$1) * epsilon$1 * epsilon$1, B$1 = vec$1(4), C1$1 = vec$1(8), C2$1 = vec$1(12), D$1 = vec$1(16), u$1 = vec$1(4);
|
|
25372
25373
|
function orient2dadapt$1(e, t, r, n, s, d, g) {
|
|
25373
|
-
let m, y, b, E, I, x, S, A, R, k, L, $,
|
|
25374
|
+
let m, y, b, E, I, x, S, A, R, k, L, $, O, G, q, Y, z, W;
|
|
25374
25375
|
const X = e - s, ee = r - s, te = t - d, se = n - d;
|
|
25375
|
-
G = X * se, x = splitter$1 * X, S = x - (x - X), A = X - S, x = splitter$1 * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = te * ee, x = splitter$1 * te, S = x - (x - te), A = te - S, x = splitter$1 * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, B$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25376
|
+
G = X * se, x = splitter$1 * X, S = x - (x - X), A = X - S, x = splitter$1 * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = te * ee, x = splitter$1 * te, S = x - (x - te), A = te - S, x = splitter$1 * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, B$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, B$1[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, B$1[2] = $ - (W - I) + (L - I), B$1[3] = W;
|
|
25376
25377
|
let ie = estimate$1(4, B$1), oe = ccwerrboundB$1 * g;
|
|
25377
25378
|
if (ie >= oe || -ie >= oe || (I = e - X, m = e - (X + I) + (I - s), I = r - ee, b = r - (ee + I) + (I - s), I = t - te, y = t - (te + I) + (I - d), I = n - se, E = n - (se + I) + (I - d), m === 0 && y === 0 && b === 0 && E === 0) || (oe = ccwerrboundC$1 * g + resulterrbound$1 * Math.abs(ie), ie += X * E + se * m - (te * b + ee * y), ie >= oe || -ie >= oe)) return ie;
|
|
25378
|
-
G = m * se, x = splitter$1 * m, S = x - (x - m), A = m - S, x = splitter$1 * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = y * ee, x = splitter$1 * y, S = x - (x - y), A = y - S, x = splitter$1 * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25379
|
+
G = m * se, x = splitter$1 * m, S = x - (x - m), A = m - S, x = splitter$1 * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = y * ee, x = splitter$1 * y, S = x - (x - y), A = y - S, x = splitter$1 * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u$1[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u$1[2] = $ - (W - I) + (L - I), u$1[3] = W;
|
|
25379
25380
|
const K = sum$2(4, B$1, 4, u$1, C1$1);
|
|
25380
|
-
G = X * E, x = splitter$1 * X, S = x - (x - X), A = X - S, x = splitter$1 * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = te * b, x = splitter$1 * te, S = x - (x - te), A = te - S, x = splitter$1 * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25381
|
+
G = X * E, x = splitter$1 * X, S = x - (x - X), A = X - S, x = splitter$1 * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = te * b, x = splitter$1 * te, S = x - (x - te), A = te - S, x = splitter$1 * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u$1[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u$1[2] = $ - (W - I) + (L - I), u$1[3] = W;
|
|
25381
25382
|
const ue = sum$2(K, C1$1, 4, u$1, C2$1);
|
|
25382
|
-
G = m * E, x = splitter$1 * m, S = x - (x - m), A = m - S, x = splitter$1 * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = y * b, x = splitter$1 * y, S = x - (x - y), A = y - S, x = splitter$1 * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25383
|
+
G = m * E, x = splitter$1 * m, S = x - (x - m), A = m - S, x = splitter$1 * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = y * b, x = splitter$1 * y, S = x - (x - y), A = y - S, x = splitter$1 * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u$1[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u$1[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u$1[2] = $ - (W - I) + (L - I), u$1[3] = W;
|
|
25383
25384
|
const pe = sum$2(ue, C2$1, 4, u$1, D$1);
|
|
25384
25385
|
return D$1[pe - 1];
|
|
25385
25386
|
}
|
|
@@ -25602,16 +25603,16 @@ function vec(e) {
|
|
|
25602
25603
|
}
|
|
25603
25604
|
const ccwerrboundA = (3 + 16 * epsilon) * epsilon, ccwerrboundB = (2 + 12 * epsilon) * epsilon, ccwerrboundC = (9 + 64 * epsilon) * epsilon * epsilon, B = vec(4), C1 = vec(8), C2 = vec(12), D = vec(16), u = vec(4);
|
|
25604
25605
|
function orient2dadapt(e, t, r, n, s, d, g) {
|
|
25605
|
-
let m, y, b, E, I, x, S, A, R, k, L, $,
|
|
25606
|
+
let m, y, b, E, I, x, S, A, R, k, L, $, O, G, q, Y, z, W;
|
|
25606
25607
|
const X = e - s, ee = r - s, te = t - d, se = n - d;
|
|
25607
|
-
G = X * se, x = splitter * X, S = x - (x - X), A = X - S, x = splitter * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = te * ee, x = splitter * te, S = x - (x - te), A = te - S, x = splitter * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, B[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25608
|
+
G = X * se, x = splitter * X, S = x - (x - X), A = X - S, x = splitter * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = te * ee, x = splitter * te, S = x - (x - te), A = te - S, x = splitter * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, B[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, B[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, B[2] = $ - (W - I) + (L - I), B[3] = W;
|
|
25608
25609
|
let ie = estimate(4, B), oe = ccwerrboundB * g;
|
|
25609
25610
|
if (ie >= oe || -ie >= oe || (I = e - X, m = e - (X + I) + (I - s), I = r - ee, b = r - (ee + I) + (I - s), I = t - te, y = t - (te + I) + (I - d), I = n - se, E = n - (se + I) + (I - d), m === 0 && y === 0 && b === 0 && E === 0) || (oe = ccwerrboundC * g + resulterrbound * Math.abs(ie), ie += X * E + se * m - (te * b + ee * y), ie >= oe || -ie >= oe)) return ie;
|
|
25610
|
-
G = m * se, x = splitter * m, S = x - (x - m), A = m - S, x = splitter * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = y * ee, x = splitter * y, S = x - (x - y), A = y - S, x = splitter * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25611
|
+
G = m * se, x = splitter * m, S = x - (x - m), A = m - S, x = splitter * se, R = x - (x - se), k = se - R, q = A * k - (G - S * R - A * R - S * k), Y = y * ee, x = splitter * y, S = x - (x - y), A = y - S, x = splitter * ee, R = x - (x - ee), k = ee - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u[2] = $ - (W - I) + (L - I), u[3] = W;
|
|
25611
25612
|
const K = sum$1(4, B, 4, u, C1);
|
|
25612
|
-
G = X * E, x = splitter * X, S = x - (x - X), A = X - S, x = splitter * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = te * b, x = splitter * te, S = x - (x - te), A = te - S, x = splitter * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25613
|
+
G = X * E, x = splitter * X, S = x - (x - X), A = X - S, x = splitter * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = te * b, x = splitter * te, S = x - (x - te), A = te - S, x = splitter * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u[2] = $ - (W - I) + (L - I), u[3] = W;
|
|
25613
25614
|
const ue = sum$1(K, C1, 4, u, C2);
|
|
25614
|
-
G = m * E, x = splitter * m, S = x - (x - m), A = m - S, x = splitter * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = y * b, x = splitter * y, S = x - (x - y), A = y - S, x = splitter * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G,
|
|
25615
|
+
G = m * E, x = splitter * m, S = x - (x - m), A = m - S, x = splitter * E, R = x - (x - E), k = E - R, q = A * k - (G - S * R - A * R - S * k), Y = y * b, x = splitter * y, S = x - (x - y), A = y - S, x = splitter * b, R = x - (x - b), k = b - R, z = A * k - (Y - S * R - A * R - S * k), L = q - z, I = q - L, u[0] = q - (L + I) + (I - z), $ = G + L, I = $ - G, O = G - ($ - I) + (L - I), L = O - Y, I = O - L, u[1] = O - (L + I) + (I - Y), W = $ + L, I = W - $, u[2] = $ - (W - I) + (L - I), u[3] = W;
|
|
25615
25616
|
const pe = sum$1(ue, C2, 4, u, D);
|
|
25616
25617
|
return D[pe - 1];
|
|
25617
25618
|
}
|
|
@@ -26303,9 +26304,9 @@ var _unicodeToArray, hasRequired_unicodeToArray;
|
|
|
26303
26304
|
function require_unicodeToArray() {
|
|
26304
26305
|
if (hasRequired_unicodeToArray) return _unicodeToArray;
|
|
26305
26306
|
hasRequired_unicodeToArray = 1;
|
|
26306
|
-
var e = "\\ud800-\\udfff", t = "\\u0300-\\u036f", r = "\\ufe20-\\ufe2f", n = "\\u20d0-\\u20ff", s = t + r + n, d = "\\ufe0e\\ufe0f", g = "[" + e + "]", m = "[" + s + "]", y = "\\ud83c[\\udffb-\\udfff]", b = "(?:" + m + "|" + y + ")", E = "[^" + e + "]", I = "(?:\\ud83c[\\udde6-\\uddff]){2}", x = "[\\ud800-\\udbff][\\udc00-\\udfff]", S = "\\u200d", A = b + "?", R = "[" + d + "]?", k = "(?:" + S + "(?:" + [E, I, x].join("|") + ")" + R + A + ")*", L = R + A + k, $ = "(?:" + [E + m + "?", m, I, x, g].join("|") + ")",
|
|
26307
|
+
var e = "\\ud800-\\udfff", t = "\\u0300-\\u036f", r = "\\ufe20-\\ufe2f", n = "\\u20d0-\\u20ff", s = t + r + n, d = "\\ufe0e\\ufe0f", g = "[" + e + "]", m = "[" + s + "]", y = "\\ud83c[\\udffb-\\udfff]", b = "(?:" + m + "|" + y + ")", E = "[^" + e + "]", I = "(?:\\ud83c[\\udde6-\\uddff]){2}", x = "[\\ud800-\\udbff][\\udc00-\\udfff]", S = "\\u200d", A = b + "?", R = "[" + d + "]?", k = "(?:" + S + "(?:" + [E, I, x].join("|") + ")" + R + A + ")*", L = R + A + k, $ = "(?:" + [E + m + "?", m, I, x, g].join("|") + ")", O = RegExp(y + "(?=" + y + ")|" + $ + L, "g");
|
|
26307
26308
|
function G(q) {
|
|
26308
|
-
return q.match(
|
|
26309
|
+
return q.match(O) || [];
|
|
26309
26310
|
}
|
|
26310
26311
|
return _unicodeToArray = G, _unicodeToArray;
|
|
26311
26312
|
}
|
|
@@ -27261,7 +27262,7 @@ function require_equalArrays() {
|
|
|
27261
27262
|
var R = I.get(g), k = I.get(m);
|
|
27262
27263
|
if (R && k)
|
|
27263
27264
|
return R == m && k == g;
|
|
27264
|
-
var L = -1, $ = !0,
|
|
27265
|
+
var L = -1, $ = !0, O = y & s ? new e() : void 0;
|
|
27265
27266
|
for (I.set(g, m), I.set(m, g); ++L < S; ) {
|
|
27266
27267
|
var G = g[L], q = m[L];
|
|
27267
27268
|
if (b)
|
|
@@ -27272,10 +27273,10 @@ function require_equalArrays() {
|
|
|
27272
27273
|
$ = !1;
|
|
27273
27274
|
break;
|
|
27274
27275
|
}
|
|
27275
|
-
if (
|
|
27276
|
+
if (O) {
|
|
27276
27277
|
if (!t(m, function(z, W) {
|
|
27277
|
-
if (!r(
|
|
27278
|
-
return
|
|
27278
|
+
if (!r(O, W) && (G === z || E(G, z, y, b, I)))
|
|
27279
|
+
return O.push(W);
|
|
27279
27280
|
})) {
|
|
27280
27281
|
$ = !1;
|
|
27281
27282
|
break;
|
|
@@ -27324,7 +27325,7 @@ var _equalByTag, hasRequired_equalByTag;
|
|
|
27324
27325
|
function require_equalByTag() {
|
|
27325
27326
|
if (hasRequired_equalByTag) return _equalByTag;
|
|
27326
27327
|
hasRequired_equalByTag = 1;
|
|
27327
|
-
var e = require_Symbol(), t = require_Uint8Array(), r = requireEq(), n = require_equalArrays(), s = require_mapToArray(), d = require_setToArray(), g = 1, m = 2, y = "[object Boolean]", b = "[object Date]", E = "[object Error]", I = "[object Map]", x = "[object Number]", S = "[object RegExp]", A = "[object Set]", R = "[object String]", k = "[object Symbol]", L = "[object ArrayBuffer]", $ = "[object DataView]",
|
|
27328
|
+
var e = require_Symbol(), t = require_Uint8Array(), r = requireEq(), n = require_equalArrays(), s = require_mapToArray(), d = require_setToArray(), g = 1, m = 2, y = "[object Boolean]", b = "[object Date]", E = "[object Error]", I = "[object Map]", x = "[object Number]", S = "[object RegExp]", A = "[object Set]", R = "[object String]", k = "[object Symbol]", L = "[object ArrayBuffer]", $ = "[object DataView]", O = e ? e.prototype : void 0, G = O ? O.valueOf : void 0;
|
|
27328
27329
|
function q(Y, z, W, X, ee, te, se) {
|
|
27329
27330
|
switch (W) {
|
|
27330
27331
|
case $:
|
|
@@ -27459,8 +27460,8 @@ var _baseIsTypedArray, hasRequired_baseIsTypedArray;
|
|
|
27459
27460
|
function require_baseIsTypedArray() {
|
|
27460
27461
|
if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
|
|
27461
27462
|
hasRequired_baseIsTypedArray = 1;
|
|
27462
|
-
var e = require_baseGetTag(), t = requireIsLength(), r = requireIsObjectLike(), n = "[object Arguments]", s = "[object Array]", d = "[object Boolean]", g = "[object Date]", m = "[object Error]", y = "[object Function]", b = "[object Map]", E = "[object Number]", I = "[object Object]", x = "[object RegExp]", S = "[object Set]", A = "[object String]", R = "[object WeakMap]", k = "[object ArrayBuffer]", L = "[object DataView]", $ = "[object Float32Array]",
|
|
27463
|
-
te[$] = te[
|
|
27463
|
+
var e = require_baseGetTag(), t = requireIsLength(), r = requireIsObjectLike(), n = "[object Arguments]", s = "[object Array]", d = "[object Boolean]", g = "[object Date]", m = "[object Error]", y = "[object Function]", b = "[object Map]", E = "[object Number]", I = "[object Object]", x = "[object RegExp]", S = "[object Set]", A = "[object String]", R = "[object WeakMap]", k = "[object ArrayBuffer]", L = "[object DataView]", $ = "[object Float32Array]", O = "[object Float64Array]", G = "[object Int8Array]", q = "[object Int16Array]", Y = "[object Int32Array]", z = "[object Uint8Array]", W = "[object Uint8ClampedArray]", X = "[object Uint16Array]", ee = "[object Uint32Array]", te = {};
|
|
27464
|
+
te[$] = te[O] = te[G] = te[q] = te[Y] = te[z] = te[W] = te[X] = te[ee] = !0, te[n] = te[s] = te[k] = te[d] = te[L] = te[g] = te[m] = te[y] = te[b] = te[E] = te[I] = te[x] = te[S] = te[A] = te[R] = !1;
|
|
27464
27465
|
function se(ie) {
|
|
27465
27466
|
return r(ie) && t(ie.length) && !!te[e(ie)];
|
|
27466
27467
|
}
|
|
@@ -27604,9 +27605,9 @@ function require_equalObjects() {
|
|
|
27604
27605
|
if (!(I ? L in g : n.call(g, L)))
|
|
27605
27606
|
return !1;
|
|
27606
27607
|
}
|
|
27607
|
-
var $ = E.get(d),
|
|
27608
|
-
if ($ &&
|
|
27609
|
-
return $ == g &&
|
|
27608
|
+
var $ = E.get(d), O = E.get(g);
|
|
27609
|
+
if ($ && O)
|
|
27610
|
+
return $ == g && O == d;
|
|
27610
27611
|
var G = !0;
|
|
27611
27612
|
E.set(d, g), E.set(g, d);
|
|
27612
27613
|
for (var q = I; ++k < S; ) {
|
|
@@ -27661,8 +27662,8 @@ function require_getTag() {
|
|
|
27661
27662
|
if (hasRequired_getTag) return _getTag;
|
|
27662
27663
|
hasRequired_getTag = 1;
|
|
27663
27664
|
var e = require_DataView(), t = require_Map(), r = require_Promise(), n = require_Set(), s = require_WeakMap(), d = require_baseGetTag(), g = require_toSource(), m = "[object Map]", y = "[object Object]", b = "[object Promise]", E = "[object Set]", I = "[object WeakMap]", x = "[object DataView]", S = g(e), A = g(t), R = g(r), k = g(n), L = g(s), $ = d;
|
|
27664
|
-
return (e && $(new e(new ArrayBuffer(1))) != x || t && $(new t()) != m || r && $(r.resolve()) != b || n && $(new n()) != E || s && $(new s()) != I) && ($ = function(
|
|
27665
|
-
var G = d(
|
|
27665
|
+
return (e && $(new e(new ArrayBuffer(1))) != x || t && $(new t()) != m || r && $(r.resolve()) != b || n && $(new n()) != E || s && $(new s()) != I) && ($ = function(O) {
|
|
27666
|
+
var G = d(O), q = G == y ? O.constructor : void 0, Y = q ? g(q) : "";
|
|
27666
27667
|
if (Y)
|
|
27667
27668
|
switch (Y) {
|
|
27668
27669
|
case S:
|
|
@@ -27684,7 +27685,7 @@ function require_baseIsEqualDeep() {
|
|
|
27684
27685
|
if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep;
|
|
27685
27686
|
hasRequired_baseIsEqualDeep = 1;
|
|
27686
27687
|
var e = require_Stack(), t = require_equalArrays(), r = require_equalByTag(), n = require_equalObjects(), s = require_getTag(), d = requireIsArray(), g = requireIsBuffer(), m = requireIsTypedArray(), y = 1, b = "[object Arguments]", E = "[object Array]", I = "[object Object]", x = Object.prototype, S = x.hasOwnProperty;
|
|
27687
|
-
function A(R, k, L, $,
|
|
27688
|
+
function A(R, k, L, $, O, G) {
|
|
27688
27689
|
var q = d(R), Y = d(k), z = q ? E : s(R), W = Y ? E : s(k);
|
|
27689
27690
|
z = z == b ? I : z, W = W == b ? I : W;
|
|
27690
27691
|
var X = z == I, ee = W == I, te = z == W;
|
|
@@ -27694,15 +27695,15 @@ function require_baseIsEqualDeep() {
|
|
|
27694
27695
|
q = !0, X = !1;
|
|
27695
27696
|
}
|
|
27696
27697
|
if (te && !X)
|
|
27697
|
-
return G || (G = new e()), q || m(R) ? t(R, k, L, $,
|
|
27698
|
+
return G || (G = new e()), q || m(R) ? t(R, k, L, $, O, G) : r(R, k, z, L, $, O, G);
|
|
27698
27699
|
if (!(L & y)) {
|
|
27699
27700
|
var se = X && S.call(R, "__wrapped__"), ie = ee && S.call(k, "__wrapped__");
|
|
27700
27701
|
if (se || ie) {
|
|
27701
27702
|
var oe = se ? R.value() : R, K = ie ? k.value() : k;
|
|
27702
|
-
return G || (G = new e()),
|
|
27703
|
+
return G || (G = new e()), O(oe, K, L, $, G);
|
|
27703
27704
|
}
|
|
27704
27705
|
}
|
|
27705
|
-
return te ? (G || (G = new e()), n(R, k, L, $,
|
|
27706
|
+
return te ? (G || (G = new e()), n(R, k, L, $, O, G)) : !1;
|
|
27706
27707
|
}
|
|
27707
27708
|
return _baseIsEqualDeep = A, _baseIsEqualDeep;
|
|
27708
27709
|
}
|
|
@@ -29110,14 +29111,14 @@ const ArcGisListener = {
|
|
|
29110
29111
|
[y.uid]: {
|
|
29111
29112
|
type: "FeatureCollection",
|
|
29112
29113
|
features: k.results.map((L) => {
|
|
29113
|
-
const
|
|
29114
|
+
const O = esrijsonFormat.readFeature(L, {
|
|
29114
29115
|
featureProjection: "EPSG:3857"
|
|
29115
29116
|
}).getGeometry();
|
|
29116
29117
|
return {
|
|
29117
29118
|
type: "Feature",
|
|
29118
29119
|
geometry: {
|
|
29119
|
-
type:
|
|
29120
|
-
coordinates:
|
|
29120
|
+
type: O.getType(),
|
|
29121
|
+
coordinates: O.getCoordinates()
|
|
29121
29122
|
},
|
|
29122
29123
|
properties: formatArcgisrest(L.attributes)
|
|
29123
29124
|
};
|
|
@@ -29317,17 +29318,38 @@ const bundle$e = {
|
|
|
29317
29318
|
bundle: bundle$e,
|
|
29318
29319
|
components: []
|
|
29319
29320
|
};
|
|
29320
|
-
function buildMapServerUrl(e, t) {
|
|
29321
|
+
function buildMapServerUrl(e, t, r) {
|
|
29321
29322
|
return [
|
|
29322
29323
|
`${e.url}`,
|
|
29323
29324
|
"?service=WFS",
|
|
29324
29325
|
"&version=1.0.0",
|
|
29325
29326
|
"&request=GetFeature",
|
|
29326
|
-
`&bbox=${
|
|
29327
|
-
`&typeName=${
|
|
29327
|
+
`&bbox=${r[0]},${r[1]},${r[2]},${r[3]},EPSG:4326`,
|
|
29328
|
+
`&typeName=${t}`,
|
|
29328
29329
|
"&outputFormat=application%2Fjson"
|
|
29329
29330
|
].join("");
|
|
29330
29331
|
}
|
|
29332
|
+
function getIdentifyTargets(e) {
|
|
29333
|
+
return Array.isArray(e.identifyLayers) && e.identifyLayers.length > 0 ? e.identifyLayers.filter((r) => r && r.layerList ? !0 : (console.warn(
|
|
29334
|
+
`[mapServerIdent] ${e.id}: identifyLayers entry has no layerList, skipping`,
|
|
29335
|
+
r
|
|
29336
|
+
), !1)).map((r) => {
|
|
29337
|
+
const n = r.displayName || r.layerList;
|
|
29338
|
+
return {
|
|
29339
|
+
typeName: r.layerList,
|
|
29340
|
+
resultKey: `${e.uid}:${n}`,
|
|
29341
|
+
layerName: `${e.displayName}:${n}`,
|
|
29342
|
+
label: `${e.id}/${r.layerList}`
|
|
29343
|
+
};
|
|
29344
|
+
}) : [
|
|
29345
|
+
{
|
|
29346
|
+
typeName: e.layerList,
|
|
29347
|
+
resultKey: e.uid,
|
|
29348
|
+
layerName: e.displayName,
|
|
29349
|
+
label: e.id
|
|
29350
|
+
}
|
|
29351
|
+
];
|
|
29352
|
+
}
|
|
29331
29353
|
const bundle$d = {
|
|
29332
29354
|
name: "mapServerIdent",
|
|
29333
29355
|
getReducer() {
|
|
@@ -29347,59 +29369,59 @@ const bundle$d = {
|
|
|
29347
29369
|
doMapServerIdentFire: (e) => ({ store: t, anonGet: r }) => {
|
|
29348
29370
|
const n = t.selectVisibleLayers(), s = t.doSetIdentifyFeature(), d = index_default$2(s), g = t.selectIdentifyColumnsExclude(), m = [];
|
|
29349
29371
|
n.forEach((y) => {
|
|
29350
|
-
|
|
29351
|
-
const
|
|
29352
|
-
m.push((
|
|
29353
|
-
r(
|
|
29354
|
-
if (
|
|
29355
|
-
return
|
|
29372
|
+
y.identifyType && y.identifyType === "MAP" && getIdentifyTargets(y).forEach((E) => {
|
|
29373
|
+
const I = buildMapServerUrl(y, E.typeName, d);
|
|
29374
|
+
m.push((x) => {
|
|
29375
|
+
r(I, (S, A, R) => {
|
|
29376
|
+
if (S || A.statusCode !== 200)
|
|
29377
|
+
return x(null, {
|
|
29356
29378
|
dataset: y.uid,
|
|
29357
|
-
layerName:
|
|
29358
|
-
err: `Error for ${
|
|
29359
|
-
result: { [
|
|
29379
|
+
layerName: E.layerName,
|
|
29380
|
+
err: `Error for ${E.layerName}`,
|
|
29381
|
+
result: { [E.resultKey]: {} }
|
|
29360
29382
|
});
|
|
29361
29383
|
try {
|
|
29362
|
-
let
|
|
29363
|
-
|
|
29364
|
-
).toFixed(6)),
|
|
29365
|
-
|
|
29366
|
-
).toFixed(6)),
|
|
29367
|
-
|
|
29368
|
-
|
|
29384
|
+
let L = JSON.parse(R).features.filter((O) => !index_default(O, s)).map((O) => (O.properties.LATITUDE && (O.properties.LATITUDE = Number(
|
|
29385
|
+
O.properties.LATITUDE
|
|
29386
|
+
).toFixed(6)), O.properties.LONGITUDE && (O.properties.LONGITUDE = Number(
|
|
29387
|
+
O.properties.LONGITUDE
|
|
29388
|
+
).toFixed(6)), O));
|
|
29389
|
+
L = identifyExcludeColumnsArcgisvector(
|
|
29390
|
+
L,
|
|
29369
29391
|
g
|
|
29370
|
-
), y.identifyFields && (
|
|
29371
|
-
|
|
29392
|
+
), y.identifyFields && (L = identifyIncludeColumnsArcgisvector(
|
|
29393
|
+
L,
|
|
29372
29394
|
y.identifyFields
|
|
29373
29395
|
));
|
|
29374
|
-
const
|
|
29375
|
-
return
|
|
29376
|
-
|
|
29377
|
-
|
|
29378
|
-
)), y.identifyFormatColumns && (
|
|
29379
|
-
|
|
29396
|
+
const $ = y.identifyRenameColumns ?? y.identifyRenameColums;
|
|
29397
|
+
return $ && (L = identifyRenameColumnsArcgisvector(
|
|
29398
|
+
L,
|
|
29399
|
+
$
|
|
29400
|
+
)), y.identifyFormatColumns && (L = identifyFormatColumnsArcgisvector(
|
|
29401
|
+
L,
|
|
29380
29402
|
y.identifyFormatColumns
|
|
29381
|
-
)),
|
|
29403
|
+
)), L = formatArcgisVector(L), x(null, {
|
|
29382
29404
|
dataset: y.uid,
|
|
29383
|
-
layerName:
|
|
29405
|
+
layerName: E.layerName,
|
|
29384
29406
|
err: null,
|
|
29385
29407
|
result: {
|
|
29386
|
-
[
|
|
29408
|
+
[E.resultKey]: {
|
|
29387
29409
|
type: "FeatureCollection",
|
|
29388
|
-
features:
|
|
29410
|
+
features: L
|
|
29389
29411
|
}
|
|
29390
29412
|
}
|
|
29391
29413
|
});
|
|
29392
|
-
} catch
|
|
29393
|
-
return
|
|
29414
|
+
} catch {
|
|
29415
|
+
return x(null, {
|
|
29394
29416
|
dataset: y.uid,
|
|
29395
|
-
layerName:
|
|
29396
|
-
err: `Error for ${
|
|
29397
|
-
result: { [
|
|
29417
|
+
layerName: E.layerName,
|
|
29418
|
+
err: `Error for ${E.layerName}`,
|
|
29419
|
+
result: { [E.resultKey]: {} }
|
|
29398
29420
|
});
|
|
29399
29421
|
}
|
|
29400
29422
|
});
|
|
29401
29423
|
});
|
|
29402
|
-
}
|
|
29424
|
+
});
|
|
29403
29425
|
}), async.parallel(m, (y, b) => {
|
|
29404
29426
|
e(y, b);
|
|
29405
29427
|
});
|
|
@@ -29547,8 +29569,8 @@ function require_baseOrderBy() {
|
|
|
29547
29569
|
var S = -1;
|
|
29548
29570
|
I = e(I, d(r));
|
|
29549
29571
|
var A = n(E, function(R, k, L) {
|
|
29550
|
-
var $ = e(I, function(
|
|
29551
|
-
return
|
|
29572
|
+
var $ = e(I, function(O) {
|
|
29573
|
+
return O(R);
|
|
29552
29574
|
});
|
|
29553
29575
|
return { criteria: $, index: ++S, value: R };
|
|
29554
29576
|
});
|
|
@@ -29982,11 +30004,11 @@ Url.prototype.parse = function(e, t) {
|
|
|
29982
30004
|
const L = A[R];
|
|
29983
30005
|
if (L && !L.match(hostnamePartPattern)) {
|
|
29984
30006
|
let $ = "";
|
|
29985
|
-
for (let
|
|
29986
|
-
L.charCodeAt(
|
|
30007
|
+
for (let O = 0, G = L.length; O < G; O++)
|
|
30008
|
+
L.charCodeAt(O) > 127 ? $ += "x" : $ += L[O];
|
|
29987
30009
|
if (!$.match(hostnamePartPattern)) {
|
|
29988
|
-
const
|
|
29989
|
-
q && (
|
|
30010
|
+
const O = A.slice(0, R), G = A.slice(R + 1), q = L.match(hostnamePartStart);
|
|
30011
|
+
q && (O.push(q[1]), G.unshift(q[2])), G.length && (d = G.join(".") + d), this.hostname = O.join(".");
|
|
29990
30012
|
break;
|
|
29991
30013
|
}
|
|
29992
30014
|
}
|
|
@@ -30914,8 +30936,8 @@ function linkify$1(e) {
|
|
|
30914
30936
|
const Y = new e.Token("text", "", 0);
|
|
30915
30937
|
Y.content = b.slice(S, $), Y.level = x, I.push(Y);
|
|
30916
30938
|
}
|
|
30917
|
-
const
|
|
30918
|
-
|
|
30939
|
+
const O = new e.Token("link_open", "a", 1);
|
|
30940
|
+
O.attrs = [["href", k]], O.level = x++, O.markup = "linkify", O.info = "auto", I.push(O);
|
|
30919
30941
|
const G = new e.Token("text", "", 0);
|
|
30920
30942
|
G.content = L, G.level = x, I.push(G);
|
|
30921
30943
|
const q = new e.Token("link_close", "a", -1);
|
|
@@ -31034,8 +31056,8 @@ function process_inlines(e, t) {
|
|
|
31034
31056
|
L = e[r].content.charCodeAt(0);
|
|
31035
31057
|
break;
|
|
31036
31058
|
}
|
|
31037
|
-
const $ = isMdAsciiPunct(k) || isPunctCharCode(k),
|
|
31038
|
-
if (q ? S = !1 :
|
|
31059
|
+
const $ = isMdAsciiPunct(k) || isPunctCharCode(k), O = isMdAsciiPunct(L) || isPunctCharCode(L), G = isWhiteSpace(k), q = isWhiteSpace(L);
|
|
31060
|
+
if (q ? S = !1 : O && (G || $ || (S = !1)), G ? A = !1 : $ && (q || O || (A = !1)), L === 34 && x[0] === '"' && k >= 48 && k <= 57 && (A = S = !1), S && A && (S = $, A = O), !S && !A) {
|
|
31039
31061
|
R && addReplacement(d, g, x.index, APOSTROPHE);
|
|
31040
31062
|
continue;
|
|
31041
31063
|
}
|
|
@@ -31251,7 +31273,7 @@ function table(e, t, r, n) {
|
|
|
31251
31273
|
Y.content = b[G].trim(), Y.children = [], e.push("th_close", "th", -1);
|
|
31252
31274
|
}
|
|
31253
31275
|
e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
|
|
31254
|
-
let $,
|
|
31276
|
+
let $, O = 0;
|
|
31255
31277
|
for (s = t + 2; s < r && !(e.sCount[s] < e.blkIndent); s++) {
|
|
31256
31278
|
let G = !1;
|
|
31257
31279
|
for (let Y = 0, z = S.length; Y < z; Y++)
|
|
@@ -31259,7 +31281,7 @@ function table(e, t, r, n) {
|
|
|
31259
31281
|
G = !0;
|
|
31260
31282
|
break;
|
|
31261
31283
|
}
|
|
31262
|
-
if (G || (y = getLine(e, s).trim(), !y) || e.sCount[s] - e.blkIndent >= 4 || (b = escapedSplit(y), b.length && b[0] === "" && b.shift(), b.length && b[b.length - 1] === "" && b.pop(),
|
|
31284
|
+
if (G || (y = getLine(e, s).trim(), !y) || e.sCount[s] - e.blkIndent >= 4 || (b = escapedSplit(y), b.length && b[0] === "" && b.shift(), b.length && b[b.length - 1] === "" && b.pop(), O += I - b.length, O > MAX_AUTOCOMPLETED_CELLS))
|
|
31263
31285
|
break;
|
|
31264
31286
|
if (s === t + 2) {
|
|
31265
31287
|
const Y = e.push("tbody_open", "tbody", 1);
|
|
@@ -31335,10 +31357,10 @@ function blockquote(e, t, r, n) {
|
|
|
31335
31357
|
e.parentType = "blockquote";
|
|
31336
31358
|
let S = !1, A;
|
|
31337
31359
|
for (A = t; A < r; A++) {
|
|
31338
|
-
const
|
|
31360
|
+
const O = e.sCount[A] < e.blkIndent;
|
|
31339
31361
|
if (s = e.bMarks[A] + e.tShift[A], d = e.eMarks[A], s >= d)
|
|
31340
31362
|
break;
|
|
31341
|
-
if (e.src.charCodeAt(s++) === 62 && !
|
|
31363
|
+
if (e.src.charCodeAt(s++) === 62 && !O) {
|
|
31342
31364
|
let q = e.sCount[A] + 1, Y, z;
|
|
31343
31365
|
e.src.charCodeAt(s) === 32 ? (s++, q++, z = !1, Y = !0) : e.src.charCodeAt(s) === 9 ? (Y = !0, (e.bsCount[A] + q) % 4 === 3 ? (s++, q++, z = !1) : z = !0) : Y = !1;
|
|
31344
31366
|
let W = q;
|
|
@@ -31375,8 +31397,8 @@ function blockquote(e, t, r, n) {
|
|
|
31375
31397
|
k.map = L, e.md.block.tokenize(e, t, A);
|
|
31376
31398
|
const $ = e.push("blockquote_close", "blockquote", -1);
|
|
31377
31399
|
$.markup = ">", e.lineMax = g, e.parentType = x, L[1] = e.line;
|
|
31378
|
-
for (let
|
|
31379
|
-
e.bMarks[
|
|
31400
|
+
for (let O = 0; O < E.length; O++)
|
|
31401
|
+
e.bMarks[O + t] = m[O], e.tShift[O + t] = E[O], e.sCount[O + t] = b[O], e.bsCount[O + t] = y[O];
|
|
31380
31402
|
return e.blkIndent = R, !0;
|
|
31381
31403
|
}
|
|
31382
31404
|
function hr(e, t, r, n) {
|
|
@@ -31464,7 +31486,7 @@ function list(e, t, r, n) {
|
|
|
31464
31486
|
const k = [y, 0];
|
|
31465
31487
|
m.map = k, m.markup = String.fromCharCode(A);
|
|
31466
31488
|
let L = !1;
|
|
31467
|
-
const $ = e.md.block.ruler.getRules("list"),
|
|
31489
|
+
const $ = e.md.block.ruler.getRules("list"), O = e.parentType;
|
|
31468
31490
|
for (e.parentType = "list"; y < r; ) {
|
|
31469
31491
|
d = S, s = e.eMarks[y];
|
|
31470
31492
|
const G = e.sCount[y] + S - (e.bMarks[y] + e.tShift[y]);
|
|
@@ -31506,7 +31528,7 @@ function list(e, t, r, n) {
|
|
|
31506
31528
|
if (A !== e.src.charCodeAt(S - 1))
|
|
31507
31529
|
break;
|
|
31508
31530
|
}
|
|
31509
|
-
return I ? m = e.push("ordered_list_close", "ol", -1) : m = e.push("bullet_list_close", "ul", -1), m.markup = String.fromCharCode(A), k[1] = y, e.line = y, e.parentType =
|
|
31531
|
+
return I ? m = e.push("ordered_list_close", "ol", -1) : m = e.push("bullet_list_close", "ul", -1), m.markup = String.fromCharCode(A), k[1] = y, e.line = y, e.parentType = O, b && markTightParagraphs(e, R), !0;
|
|
31510
31532
|
}
|
|
31511
31533
|
const MAX_LABEL_LENGTH = 999;
|
|
31512
31534
|
function countCodePoints(e) {
|
|
@@ -31624,8 +31646,8 @@ function reference(e, t, r, n) {
|
|
|
31624
31646
|
}
|
|
31625
31647
|
if (d < m && s.charCodeAt(d) !== 10)
|
|
31626
31648
|
return !1;
|
|
31627
|
-
const
|
|
31628
|
-
return
|
|
31649
|
+
const O = normalizeReference(y);
|
|
31650
|
+
return O ? (n || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[O] > "u" && (e.env.references[O] = { title: $, href: x }), e.line = g), !0) : !1;
|
|
31629
31651
|
}
|
|
31630
31652
|
const block_names = [
|
|
31631
31653
|
"address",
|
|
@@ -33963,8 +33985,8 @@ const safeRgba = (e, t = [0, 0, 0, 0]) => e ? `rgba(${e.join()})` : `rgba(${t.jo
|
|
|
33963
33985
|
"load",
|
|
33964
33986
|
function() {
|
|
33965
33987
|
let L = document.createElement("canvas"), $ = L.getContext("2d");
|
|
33966
|
-
const
|
|
33967
|
-
L.width = Number(R.width) +
|
|
33988
|
+
const O = Number($.measureText(R.label).width);
|
|
33989
|
+
L.width = Number(R.width) + O + 4, L.height = R.height, E[s].widths.push(L.width), E[s].heights.push(L.height), $.fillStyle = "white", $.fillRect(0, 0, L.width, L.height), $.drawImage(k, 0, 0), $.font = "10px Arial", $.fillStyle = "black", $.fillText(R.label, R.width + 2, R.height / 2), E[s].canvas.push(L), r({
|
|
33968
33990
|
type: "LEGEND_CANVAS_ADDED",
|
|
33969
33991
|
payload: {
|
|
33970
33992
|
legendCanvases: E,
|