@opengis/partsmap 0.0.9 → 0.0.11
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/PartsMap.js +590 -580
- package/dist/PartsMap.umd.cjs +8 -8
- package/package.json +2 -2
package/dist/PartsMap.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { openBlock as wt, createElementBlock as qt, createStaticVNode as
|
1
|
+
import { openBlock as wt, createElementBlock as qt, createStaticVNode as ip, Fragment as yc, renderList as xc, normalizeClass as vc, createElementVNode as tt, normalizeStyle as rp, toDisplayString as js, createCommentVNode as Nr, resolveComponent as Wi, createVNode as jr, createBlock as ss, Teleport as Am, Transition as Od, withCtx as sl, withDirectives as Cm, renderSlot as ol, vShow as km, pushScopeId as Em, popScopeId as Mm, defineComponent as zm, createTextVNode as Dm } from "vue";
|
2
2
|
var qs = {};
|
3
3
|
function Vd(y) {
|
4
4
|
return Math.floor(Math.abs(y) + 0.5) * (y >= 0 ? 1 : -1);
|
@@ -34,7 +34,7 @@ qs.encode = function(y, T) {
|
|
34
34
|
}
|
35
35
|
return D;
|
36
36
|
};
|
37
|
-
function
|
37
|
+
function np(y) {
|
38
38
|
for (var T = [], M = 0; M < y.length; M++) {
|
39
39
|
var D = y[M].slice();
|
40
40
|
T.push([D[1], D[0]]);
|
@@ -44,20 +44,20 @@ function rp(y) {
|
|
44
44
|
qs.fromGeoJSON = function(y, T) {
|
45
45
|
if (y && y.type === "Feature" && (y = y.geometry), !y || y.type !== "LineString")
|
46
46
|
throw new Error("Input must be a GeoJSON LineString");
|
47
|
-
return qs.encode(
|
47
|
+
return qs.encode(np(y.coordinates), T);
|
48
48
|
};
|
49
49
|
qs.toGeoJSON = function(y, T) {
|
50
50
|
var M = qs.decode(y, T);
|
51
51
|
return {
|
52
52
|
type: "LineString",
|
53
|
-
coordinates:
|
53
|
+
coordinates: np(M)
|
54
54
|
};
|
55
55
|
};
|
56
|
-
var
|
57
|
-
function
|
56
|
+
var Lm = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
57
|
+
function Rm(y) {
|
58
58
|
return y && y.__esModule && Object.prototype.hasOwnProperty.call(y, "default") ? y.default : y;
|
59
59
|
}
|
60
|
-
var
|
60
|
+
var sp = { exports: {} };
|
61
61
|
/**
|
62
62
|
* MapLibre GL JS
|
63
63
|
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.5.2/LICENSE.txt
|
@@ -65,7 +65,7 @@ var np = { exports: {} };
|
|
65
65
|
(function(y, T) {
|
66
66
|
(function(M, D) {
|
67
67
|
y.exports = D();
|
68
|
-
})(
|
68
|
+
})(Lm, function() {
|
69
69
|
var M = {}, D = {};
|
70
70
|
function N(S, c, ye) {
|
71
71
|
if (D[S] = ye, S === "index") {
|
@@ -229,11 +229,11 @@ var np = { exports: {} };
|
|
229
229
|
}
|
230
230
|
return Be || !1;
|
231
231
|
}
|
232
|
-
function
|
232
|
+
function Pe(i, e, r, s) {
|
233
233
|
const l = new je(i, e, r, s);
|
234
234
|
return (d) => l.solve(d);
|
235
235
|
}
|
236
|
-
const yt =
|
236
|
+
const yt = Pe(0.25, 0.1, 0.25, 1);
|
237
237
|
function ft(i, e, r) {
|
238
238
|
return Math.min(r, Math.max(e, i));
|
239
239
|
}
|
@@ -533,7 +533,7 @@ var np = { exports: {} };
|
|
533
533
|
function re(i, e) {
|
534
534
|
return i.kind === "array" && e.kind === "array" ? i.itemType.kind === e.itemType.kind && typeof i.N == "number" : i.kind === e.kind;
|
535
535
|
}
|
536
|
-
const X = 0.96422, de = 0.82521, ge = 4 / 29, ce = 6 / 29,
|
536
|
+
const X = 0.96422, de = 0.82521, ge = 4 / 29, ce = 6 / 29, Ie = 3 * ce * ce, Ge = ce * ce * ce, He = Math.PI / 180, nt = 180 / Math.PI;
|
537
537
|
function mt(i) {
|
538
538
|
return (i %= 360) < 0 && (i += 360), i;
|
539
539
|
}
|
@@ -548,7 +548,7 @@ var np = { exports: {} };
|
|
548
548
|
return i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
549
549
|
}
|
550
550
|
function Gt(i) {
|
551
|
-
return i > Ge ? Math.pow(i, 1 / 3) : i /
|
551
|
+
return i > Ge ? Math.pow(i, 1 / 3) : i / Ie + ge;
|
552
552
|
}
|
553
553
|
function Qt([i, e, r, s]) {
|
554
554
|
let l = (i + 16) / 116, d = isNaN(e) ? l : l + e / 500, p = isNaN(r) ? l : l - r / 200;
|
@@ -558,7 +558,7 @@ var np = { exports: {} };
|
|
558
558
|
return (i = i <= 304e-5 ? 12.92 * i : 1.055 * Math.pow(i, 1 / 2.4) - 0.055) < 0 ? 0 : i > 1 ? 1 : i;
|
559
559
|
}
|
560
560
|
function Tt(i) {
|
561
|
-
return i > ce ? i * i * i :
|
561
|
+
return i > ce ? i * i * i : Ie * (i - ge);
|
562
562
|
}
|
563
563
|
function jt(i) {
|
564
564
|
return parseInt(i.padEnd(2, i), 16) / 255;
|
@@ -1488,7 +1488,7 @@ var np = { exports: {} };
|
|
1488
1488
|
}
|
1489
1489
|
function mn(i, e, r) {
|
1490
1490
|
const s = i !== "==" && i !== "!=";
|
1491
|
-
return class
|
1491
|
+
return class op {
|
1492
1492
|
constructor(d, p, f) {
|
1493
1493
|
this.type = Ke, this.lhs = d, this.rhs = p, this.collator = f, this.hasUntypedArgument = d.type.kind === "value" || p.type.kind === "value";
|
1494
1494
|
}
|
@@ -1508,7 +1508,7 @@ var np = { exports: {} };
|
|
1508
1508
|
if (g.type.kind !== "string" && x.type.kind !== "string" && g.type.kind !== "value" && x.type.kind !== "value") return p.error("Cannot use collator to compare non-string types.");
|
1509
1509
|
if (w = p.parse(d[3], 3, vr), !w) return null;
|
1510
1510
|
}
|
1511
|
-
return new
|
1511
|
+
return new op(g, x, w);
|
1512
1512
|
}
|
1513
1513
|
evaluate(d) {
|
1514
1514
|
const p = this.lhs.evaluate(d), f = this.rhs.evaluate(d);
|
@@ -4390,7 +4390,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4390
4390
|
e.r === this.current.r && e.g === this.current.g && e.b === this.current.b && e.a === this.current.a || (this.current = e, this.gl.uniform4f(this.location, e.r, e.g, e.b, e.a));
|
4391
4391
|
}
|
4392
4392
|
}
|
4393
|
-
const
|
4393
|
+
const Lp = new Float32Array(16);
|
4394
4394
|
function Xc(i) {
|
4395
4395
|
return [Zl(255 * i.r, 255 * i.g), Zl(255 * i.b, 255 * i.a)];
|
4396
4396
|
}
|
@@ -4514,7 +4514,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4514
4514
|
if (!s(d)) continue;
|
4515
4515
|
const p = e.paint.get(d);
|
4516
4516
|
if (!(p instanceof Ir && xn(p.property.specification))) continue;
|
4517
|
-
const f =
|
4517
|
+
const f = Rp(d, e.type), g = p.value, x = p.property.specification.type, w = p.property.useIntegerZoom, I = p.property.specification["property-type"], C = I === "cross-faded" || I === "cross-faded-data-driven";
|
4518
4518
|
if (g.kind === "constant") this.binders[d] = C ? new ko(g.value, f) : new ja(g.value, f, x), l.push(`/u_${d}`);
|
4519
4519
|
else if (g.kind === "source" || C) {
|
4520
4520
|
const z = nu(d, x, "source");
|
@@ -4653,7 +4653,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4653
4653
|
for (const e in this.programConfigurations) this.programConfigurations[e].destroy();
|
4654
4654
|
}
|
4655
4655
|
}
|
4656
|
-
function
|
4656
|
+
function Rp(i, e) {
|
4657
4657
|
return { "text-opacity": ["opacity"], "icon-opacity": ["opacity"], "text-color": ["fill_color"], "icon-color": ["fill_color"], "text-halo-color": ["halo_color"], "icon-halo-color": ["halo_color"], "text-halo-blur": ["halo_blur"], "icon-halo-blur": ["halo_blur"], "text-halo-width": ["halo_width"], "icon-halo-width": ["halo_width"], "line-gap-width": ["gapwidth"], "line-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-extrusion-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"] }[i] || [i.replace(`${e}-`, "").replace(/-/g, "_")];
|
4658
4658
|
}
|
4659
4659
|
function nu(i, e, r) {
|
@@ -4731,7 +4731,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4731
4731
|
for (let r = 0; r < e.length; r++) if (Eo(i, e[r])) return !0;
|
4732
4732
|
return !!Yc(i, e);
|
4733
4733
|
}
|
4734
|
-
function
|
4734
|
+
function Fp(i, e, r) {
|
4735
4735
|
return !!Eo(i, e) || !!Qc(e, i, r);
|
4736
4736
|
}
|
4737
4737
|
function au(i, e) {
|
@@ -4744,7 +4744,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4744
4744
|
for (let r = 0; r < e.length; r++) if (Yc(i, e[r])) return !0;
|
4745
4745
|
return !1;
|
4746
4746
|
}
|
4747
|
-
function
|
4747
|
+
function Bp(i, e, r) {
|
4748
4748
|
if (i.length > 1) {
|
4749
4749
|
if (Yc(i, e)) return !0;
|
4750
4750
|
for (let s = 0; s < e.length; s++) if (Qc(e[s], i, r)) return !0;
|
@@ -4756,11 +4756,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4756
4756
|
if (i.length === 0 || e.length === 0) return !1;
|
4757
4757
|
for (let r = 0; r < i.length - 1; r++) {
|
4758
4758
|
const s = i[r], l = i[r + 1];
|
4759
|
-
for (let d = 0; d < e.length - 1; d++) if (
|
4759
|
+
for (let d = 0; d < e.length - 1; d++) if (Op(s, l, e[d], e[d + 1])) return !0;
|
4760
4760
|
}
|
4761
4761
|
return !1;
|
4762
4762
|
}
|
4763
|
-
function
|
4763
|
+
function Op(i, e, r, s) {
|
4764
4764
|
return Ti(i, r, s) !== Ti(e, r, s) && Ti(i, e, r) !== Ti(i, e, s);
|
4765
4765
|
}
|
4766
4766
|
function Qc(i, e, r) {
|
@@ -4791,7 +4791,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4791
4791
|
}
|
4792
4792
|
return r;
|
4793
4793
|
}
|
4794
|
-
function
|
4794
|
+
function Vp(i, e, r) {
|
4795
4795
|
const s = r[0], l = r[2];
|
4796
4796
|
if (i.x < s.x && e.x < s.x || i.x > l.x && e.x > l.x || i.y < s.y && e.y < s.y || i.y > l.y && e.y > l.y) return !1;
|
4797
4797
|
const d = Ti(i, e, r[0]);
|
@@ -4814,7 +4814,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4814
4814
|
}
|
4815
4815
|
let hu, uu;
|
4816
4816
|
Oe("CircleBucket", Kc, { omit: ["layers"] });
|
4817
|
-
var
|
4817
|
+
var Np = { get paint() {
|
4818
4818
|
return uu = uu || new o({ "circle-radius": new Je(he.paint_circle["circle-radius"]), "circle-color": new Je(he.paint_circle["circle-color"]), "circle-blur": new Je(he.paint_circle["circle-blur"]), "circle-opacity": new Je(he.paint_circle["circle-opacity"]), "circle-translate": new qe(he.paint_circle["circle-translate"]), "circle-translate-anchor": new qe(he.paint_circle["circle-translate-anchor"]), "circle-pitch-scale": new qe(he.paint_circle["circle-pitch-scale"]), "circle-pitch-alignment": new qe(he.paint_circle["circle-pitch-alignment"]), "circle-stroke-width": new Je(he.paint_circle["circle-stroke-width"]), "circle-stroke-color": new Je(he.paint_circle["circle-stroke-color"]), "circle-stroke-opacity": new Je(he.paint_circle["circle-stroke-opacity"]) });
|
4819
4819
|
}, get layout() {
|
4820
4820
|
return hu = hu || new o({ "circle-sort-key": new Je(he.layout_circle["circle-sort-key"]) });
|
@@ -4830,15 +4830,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4830
4830
|
for (var i = 0, e = arguments.length; e--; ) i += arguments[e] * arguments[e];
|
4831
4831
|
return Math.sqrt(i);
|
4832
4832
|
});
|
4833
|
-
var $a,
|
4833
|
+
var $a, jp = du;
|
4834
4834
|
function Yl(i, e, r) {
|
4835
4835
|
var s = e[0], l = e[1], d = e[2], p = e[3];
|
4836
4836
|
return i[0] = r[0] * s + r[4] * l + r[8] * d + r[12] * p, i[1] = r[1] * s + r[5] * l + r[9] * d + r[13] * p, i[2] = r[2] * s + r[6] * l + r[10] * d + r[14] * p, i[3] = r[3] * s + r[7] * l + r[11] * d + r[15] * p, i;
|
4837
4837
|
}
|
4838
4838
|
$a = new Mo(4), Mo != Float32Array && ($a[0] = 0, $a[1] = 0, $a[2] = 0, $a[3] = 0);
|
4839
|
-
class
|
4839
|
+
class Up extends h {
|
4840
4840
|
constructor(e) {
|
4841
|
-
super(e,
|
4841
|
+
super(e, Np);
|
4842
4842
|
}
|
4843
4843
|
createBucket(e) {
|
4844
4844
|
return new Kc(e);
|
@@ -4855,7 +4855,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4855
4855
|
const $ = I ? B : pu(B, g);
|
4856
4856
|
let W = z;
|
4857
4857
|
const se = Yl([], [B.x, B.y, 0, 1], g);
|
4858
|
-
if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? W *= se[3] / p.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (W *= p.cameraToCenterDistance / se[3]),
|
4858
|
+
if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? W *= se[3] / p.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (W *= p.cameraToCenterDistance / se[3]), Fp(C, $, W)) return !0;
|
4859
4859
|
}
|
4860
4860
|
return !1;
|
4861
4861
|
}
|
@@ -4868,7 +4868,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4868
4868
|
}
|
4869
4869
|
let mu;
|
4870
4870
|
Oe("HeatmapBucket", fu, { omit: ["layers"] });
|
4871
|
-
var
|
4871
|
+
var $p = { get paint() {
|
4872
4872
|
return mu = mu || new o({ "heatmap-radius": new Je(he.paint_heatmap["heatmap-radius"]), "heatmap-weight": new Je(he.paint_heatmap["heatmap-weight"]), "heatmap-intensity": new qe(he.paint_heatmap["heatmap-intensity"]), "heatmap-color": new n(he.paint_heatmap["heatmap-color"]), "heatmap-opacity": new qe(he.paint_heatmap["heatmap-opacity"]) });
|
4873
4873
|
} };
|
4874
4874
|
function th(i, { width: e, height: r }, s, l) {
|
@@ -4942,12 +4942,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4942
4942
|
return l;
|
4943
4943
|
}
|
4944
4944
|
Oe("AlphaImage", qa), Oe("RGBAImage", hr);
|
4945
|
-
class
|
4945
|
+
class qp extends h {
|
4946
4946
|
createBucket(e) {
|
4947
4947
|
return new fu(e);
|
4948
4948
|
}
|
4949
4949
|
constructor(e) {
|
4950
|
-
super(e,
|
4950
|
+
super(e, $p), this._updateColorRamp();
|
4951
4951
|
}
|
4952
4952
|
_handleSpecialPaintPropertyUpdate(e) {
|
4953
4953
|
e === "heatmap-color" && this._updateColorRamp();
|
@@ -4969,18 +4969,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4969
4969
|
}
|
4970
4970
|
}
|
4971
4971
|
let yu;
|
4972
|
-
var
|
4972
|
+
var Zp = { get paint() {
|
4973
4973
|
return yu = yu || new o({ "hillshade-illumination-direction": new qe(he.paint_hillshade["hillshade-illumination-direction"]), "hillshade-illumination-anchor": new qe(he.paint_hillshade["hillshade-illumination-anchor"]), "hillshade-exaggeration": new qe(he.paint_hillshade["hillshade-exaggeration"]), "hillshade-shadow-color": new qe(he.paint_hillshade["hillshade-shadow-color"]), "hillshade-highlight-color": new qe(he.paint_hillshade["hillshade-highlight-color"]), "hillshade-accent-color": new qe(he.paint_hillshade["hillshade-accent-color"]) });
|
4974
4974
|
} };
|
4975
|
-
class
|
4975
|
+
class Gp extends h {
|
4976
4976
|
constructor(e) {
|
4977
|
-
super(e,
|
4977
|
+
super(e, Zp);
|
4978
4978
|
}
|
4979
4979
|
hasOffscreenPass() {
|
4980
4980
|
return this.paint.get("hillshade-exaggeration") !== 0 && this.visibility !== "none";
|
4981
4981
|
}
|
4982
4982
|
}
|
4983
|
-
const
|
4983
|
+
const Hp = b([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: Wp } = Hp;
|
4984
4984
|
function xu(i, e, r = 2) {
|
4985
4985
|
const s = e && e.length, l = s ? e[0] * r : i.length;
|
4986
4986
|
let d = vu(i, 0, l, r, !0);
|
@@ -4991,10 +4991,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
4991
4991
|
const R = [];
|
4992
4992
|
for (let B = 0, $ = I.length; B < $; B++) {
|
4993
4993
|
const W = vu(w, I[B] * z, B < $ - 1 ? I[B + 1] * z : w.length, z, !1);
|
4994
|
-
W === W.next && (W.steiner = !0), R.push(
|
4994
|
+
W === W.next && (W.steiner = !0), R.push(rf(W));
|
4995
4995
|
}
|
4996
|
-
R.sort(
|
4997
|
-
for (let B = 0; B < R.length; B++) C =
|
4996
|
+
R.sort(Qp);
|
4997
|
+
for (let B = 0; B < R.length; B++) C = ef(R[B], C);
|
4998
4998
|
return C;
|
4999
4999
|
}(i, e, d, r)), i.length > 80 * r) {
|
5000
5000
|
f = 1 / 0, g = 1 / 0;
|
@@ -5058,14 +5058,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5058
5058
|
let f = i;
|
5059
5059
|
for (; i.prev !== i.next; ) {
|
5060
5060
|
const g = i.prev, x = i.next;
|
5061
|
-
if (d ?
|
5061
|
+
if (d ? Jp(i, s, l, d) : Xp(i)) e.push(g.i, i.i, x.i), Ha(i), i = x.next, f = x.next;
|
5062
5062
|
else if ((i = x) === f) {
|
5063
|
-
p ? p === 1 ? Za(i =
|
5063
|
+
p ? p === 1 ? Za(i = Kp(Os(i), e), e, r, s, l, d, 2) : p === 2 && Yp(i, e, r, s, l, d) : Za(Os(i), e, r, s, l, d, 1);
|
5064
5064
|
break;
|
5065
5065
|
}
|
5066
5066
|
}
|
5067
5067
|
}
|
5068
|
-
function
|
5068
|
+
function Xp(i) {
|
5069
5069
|
const e = i.prev, r = i, s = i.next;
|
5070
5070
|
if (Yt(e, r, s) >= 0) return !1;
|
5071
5071
|
const l = e.x, d = r.x, p = s.x, f = e.y, g = r.y, x = s.y, w = l < d ? l < p ? l : p : d < p ? d : p, I = f < g ? f < x ? f : x : g < x ? g : x, C = l > d ? l > p ? l : p : d > p ? d : p, z = f > g ? f > x ? f : x : g > x ? g : x;
|
@@ -5076,7 +5076,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5076
5076
|
}
|
5077
5077
|
return !0;
|
5078
5078
|
}
|
5079
|
-
function
|
5079
|
+
function Jp(i, e, r, s) {
|
5080
5080
|
const l = i.prev, d = i, p = i.next;
|
5081
5081
|
if (Yt(l, d, p) >= 0) return !1;
|
5082
5082
|
const f = l.x, g = d.x, x = p.x, w = l.y, I = d.y, C = p.y, z = f < g ? f < x ? f : x : g < x ? g : x, R = w < I ? w < C ? w : C : I < C ? I : C, B = f > g ? f > x ? f : x : g > x ? g : x, $ = w > I ? w > C ? w : C : I > C ? I : C, W = rh(z, R, e, r, s), se = rh(B, $, e, r, s);
|
@@ -5095,7 +5095,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5095
5095
|
}
|
5096
5096
|
return !0;
|
5097
5097
|
}
|
5098
|
-
function
|
5098
|
+
function Kp(i, e) {
|
5099
5099
|
let r = i;
|
5100
5100
|
do {
|
5101
5101
|
const s = r.prev, l = r.next.next;
|
@@ -5103,12 +5103,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5103
5103
|
} while (r !== i);
|
5104
5104
|
return Os(r);
|
5105
5105
|
}
|
5106
|
-
function
|
5106
|
+
function Yp(i, e, r, s, l, d) {
|
5107
5107
|
let p = i;
|
5108
5108
|
do {
|
5109
5109
|
let f = p.next.next;
|
5110
5110
|
for (; f !== p.prev; ) {
|
5111
|
-
if (p.i !== f.i &&
|
5111
|
+
if (p.i !== f.i && nf(p, f)) {
|
5112
5112
|
let g = wu(p, f);
|
5113
5113
|
return p = Os(p, p.next), g = Os(g, g.next), Za(p, e, r, s, l, d, 0), void Za(g, e, r, s, l, d, 0);
|
5114
5114
|
}
|
@@ -5117,10 +5117,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5117
5117
|
p = p.next;
|
5118
5118
|
} while (p !== i);
|
5119
5119
|
}
|
5120
|
-
function
|
5120
|
+
function Qp(i, e) {
|
5121
5121
|
return i.x - e.x;
|
5122
5122
|
}
|
5123
|
-
function
|
5123
|
+
function ef(i, e) {
|
5124
5124
|
const r = function(l, d) {
|
5125
5125
|
let p = d;
|
5126
5126
|
const f = l.x, g = l.y;
|
@@ -5139,7 +5139,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5139
5139
|
do {
|
5140
5140
|
if (f >= p.x && p.x >= C && f !== p.x && zo(g < z ? f : w, g, C, z, g < z ? w : f, g, p.x, p.y)) {
|
5141
5141
|
const B = Math.abs(g - p.y) / (f - p.x);
|
5142
|
-
Ga(p, l) && (B < R || B === R && (p.x > x.x || p.x === x.x &&
|
5142
|
+
Ga(p, l) && (B < R || B === R && (p.x > x.x || p.x === x.x && tf(x, p))) && (x = p, R = B);
|
5143
5143
|
}
|
5144
5144
|
p = p.next;
|
5145
5145
|
} while (p !== I);
|
@@ -5149,13 +5149,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5149
5149
|
const s = wu(r, i);
|
5150
5150
|
return Os(s, s.next), Os(r, r.next);
|
5151
5151
|
}
|
5152
|
-
function
|
5152
|
+
function tf(i, e) {
|
5153
5153
|
return Yt(i.prev, i, e.prev) < 0 && Yt(e.next, i, i.next) < 0;
|
5154
5154
|
}
|
5155
5155
|
function rh(i, e, r, s, l) {
|
5156
5156
|
return (i = 1431655765 & ((i = 858993459 & ((i = 252645135 & ((i = 16711935 & ((i = (i - r) * l | 0) | i << 8)) | i << 4)) | i << 2)) | i << 1)) | (e = 1431655765 & ((e = 858993459 & ((e = 252645135 & ((e = 16711935 & ((e = (e - s) * l | 0) | e << 8)) | e << 4)) | e << 2)) | e << 1)) << 1;
|
5157
5157
|
}
|
5158
|
-
function
|
5158
|
+
function rf(i) {
|
5159
5159
|
let e = i, r = i;
|
5160
5160
|
do
|
5161
5161
|
(e.x < r.x || e.x === r.x && e.y < r.y) && (r = e), e = e.next;
|
@@ -5165,7 +5165,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5165
5165
|
function zo(i, e, r, s, l, d, p, f) {
|
5166
5166
|
return (l - p) * (e - f) >= (i - p) * (d - f) && (i - p) * (s - f) >= (r - p) * (e - f) && (r - p) * (d - f) >= (l - p) * (s - f);
|
5167
5167
|
}
|
5168
|
-
function
|
5168
|
+
function nf(i, e) {
|
5169
5169
|
return i.next.i !== e.i && i.prev.i !== e.i && !function(r, s) {
|
5170
5170
|
let l = r;
|
5171
5171
|
do {
|
@@ -5273,7 +5273,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5273
5273
|
return !this.uploaded || this.programConfigurations.needsUpload;
|
5274
5274
|
}
|
5275
5275
|
upload(e) {
|
5276
|
-
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray,
|
5276
|
+
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Wp), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.indexBuffer2 = e.createIndexBuffer(this.indexArray2)), this.programConfigurations.upload(e), this.uploaded = !0;
|
5277
5277
|
}
|
5278
5278
|
destroy() {
|
5279
5279
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.indexBuffer2.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.segments2.destroy());
|
@@ -5300,14 +5300,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5300
5300
|
}
|
5301
5301
|
let Tu, Iu;
|
5302
5302
|
Oe("FillBucket", ah, { omit: ["layers", "patternFeatures"] });
|
5303
|
-
var
|
5303
|
+
var sf = { get paint() {
|
5304
5304
|
return Iu = Iu || new o({ "fill-antialias": new qe(he.paint_fill["fill-antialias"]), "fill-opacity": new Je(he.paint_fill["fill-opacity"]), "fill-color": new Je(he.paint_fill["fill-color"]), "fill-outline-color": new Je(he.paint_fill["fill-outline-color"]), "fill-translate": new qe(he.paint_fill["fill-translate"]), "fill-translate-anchor": new qe(he.paint_fill["fill-translate-anchor"]), "fill-pattern": new u(he.paint_fill["fill-pattern"]) });
|
5305
5305
|
}, get layout() {
|
5306
5306
|
return Tu = Tu || new o({ "fill-sort-key": new Je(he.layout_fill["fill-sort-key"]) });
|
5307
5307
|
} };
|
5308
|
-
class
|
5308
|
+
class of extends h {
|
5309
5309
|
constructor(e) {
|
5310
|
-
super(e,
|
5310
|
+
super(e, sf);
|
5311
5311
|
}
|
5312
5312
|
recalculate(e, r) {
|
5313
5313
|
super.recalculate(e, r);
|
@@ -5327,12 +5327,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5327
5327
|
return !0;
|
5328
5328
|
}
|
5329
5329
|
}
|
5330
|
-
const
|
5331
|
-
var Yn = {},
|
5330
|
+
const af = b([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_normal_ed", components: 4, type: "Int16" }], 4), lf = b([{ name: "a_centroid", components: 2, type: "Int16" }], 4), { members: cf } = af;
|
5331
|
+
var Yn = {}, hf = _e, Pu = Do;
|
5332
5332
|
function Do(i, e, r, s, l) {
|
5333
|
-
this.properties = {}, this.extent = r, this.type = 0, this._pbf = i, this._geometry = -1, this._keys = s, this._values = l, i.readFields(
|
5333
|
+
this.properties = {}, this.extent = r, this.type = 0, this._pbf = i, this._geometry = -1, this._keys = s, this._values = l, i.readFields(uf, this, e);
|
5334
5334
|
}
|
5335
|
-
function
|
5335
|
+
function uf(i, e, r) {
|
5336
5336
|
i == 1 ? e.id = r.readVarint() : i == 2 ? function(s, l) {
|
5337
5337
|
for (var d = s.readVarint() + s.pos; s.pos < d; ) {
|
5338
5338
|
var p = l._keys[s.readVarint()], f = l._values[s.readVarint()];
|
@@ -5340,7 +5340,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5340
5340
|
}
|
5341
5341
|
}(r, e) : i == 3 ? e.type = r.readVarint() : i == 4 && (e._geometry = r.pos);
|
5342
5342
|
}
|
5343
|
-
function
|
5343
|
+
function df(i) {
|
5344
5344
|
for (var e, r, s = 0, l = 0, d = i.length, p = d - 1; l < d; p = l++) s += ((r = i[p]).x - (e = i[l]).x) * (e.y + r.y);
|
5345
5345
|
return s;
|
5346
5346
|
}
|
@@ -5352,7 +5352,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5352
5352
|
var g = i.readVarint();
|
5353
5353
|
s = 7 & g, l = g >> 3;
|
5354
5354
|
}
|
5355
|
-
if (l--, s === 1 || s === 2) d += i.readSVarint(), p += i.readSVarint(), s === 1 && (e && f.push(e), e = []), e.push(new
|
5355
|
+
if (l--, s === 1 || s === 2) d += i.readSVarint(), p += i.readSVarint(), s === 1 && (e && f.push(e), e = []), e.push(new hf(d, p));
|
5356
5356
|
else {
|
5357
5357
|
if (s !== 7) throw new Error("unknown command " + s);
|
5358
5358
|
e && e.push(e[0].clone());
|
@@ -5393,7 +5393,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5393
5393
|
var R = z.length;
|
5394
5394
|
if (R <= 1) return [z];
|
5395
5395
|
for (var B, $, W = [], se = 0; se < R; se++) {
|
5396
|
-
var Y =
|
5396
|
+
var Y = df(z[se]);
|
5397
5397
|
Y !== 0 && ($ === void 0 && ($ = Y < 0), $ === Y < 0 ? (B && W.push(B), B = [z[se]]) : B.push(z[se]));
|
5398
5398
|
}
|
5399
5399
|
return B && W.push(B), W;
|
@@ -5403,11 +5403,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5403
5403
|
var C = { type: "Feature", geometry: { type: x, coordinates: g }, properties: this.properties };
|
5404
5404
|
return "id" in this && (C.id = this.id), C;
|
5405
5405
|
};
|
5406
|
-
var
|
5406
|
+
var pf = Pu, Au = Cu;
|
5407
5407
|
function Cu(i, e) {
|
5408
|
-
this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = i, this._keys = [], this._values = [], this._features = [], i.readFields(
|
5408
|
+
this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = i, this._keys = [], this._values = [], this._features = [], i.readFields(ff, this, e), this.length = this._features.length;
|
5409
5409
|
}
|
5410
|
-
function
|
5410
|
+
function ff(i, e, r) {
|
5411
5411
|
i === 15 ? e.version = r.readVarint() : i === 1 ? e.name = r.readString() : i === 5 ? e.extent = r.readVarint() : i === 2 ? e._features.push(r.pos) : i === 3 ? e._keys.push(r.readString()) : i === 4 && e._values.push(function(s) {
|
5412
5412
|
for (var l = null, d = s.readVarint() + s.pos; s.pos < d; ) {
|
5413
5413
|
var p = s.readVarint() >> 3;
|
@@ -5420,19 +5420,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5420
5420
|
if (i < 0 || i >= this._features.length) throw new Error("feature index out of bounds");
|
5421
5421
|
this._pbf.pos = this._features[i];
|
5422
5422
|
var e = this._pbf.readVarint() + this._pbf.pos;
|
5423
|
-
return new
|
5423
|
+
return new pf(this._pbf, e, this.extent, this._keys, this._values);
|
5424
5424
|
};
|
5425
|
-
var
|
5426
|
-
function
|
5425
|
+
var mf = Au;
|
5426
|
+
function gf(i, e, r) {
|
5427
5427
|
if (i === 3) {
|
5428
|
-
var s = new
|
5428
|
+
var s = new mf(r, r.readVarint() + r.pos);
|
5429
5429
|
s.length && (e[s.name] = s);
|
5430
5430
|
}
|
5431
5431
|
}
|
5432
5432
|
Yn.VectorTile = function(i, e) {
|
5433
|
-
this.layers = i.readFields(
|
5433
|
+
this.layers = i.readFields(gf, {}, e);
|
5434
5434
|
}, Yn.VectorTileFeature = Pu, Yn.VectorTileLayer = Au;
|
5435
|
-
const
|
5435
|
+
const _f = Yn.VectorTileFeature.types, lh = Math.pow(2, 13);
|
5436
5436
|
function Wa(i, e, r, s, l, d, p, f) {
|
5437
5437
|
i.emplaceBack(e, r, 2 * Math.floor(s * lh) + p, l * lh * 2, d * lh * 2, Math.round(f));
|
5438
5438
|
}
|
@@ -5465,7 +5465,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5465
5465
|
return !this.uploaded || this.programConfigurations.needsUpload;
|
5466
5466
|
}
|
5467
5467
|
upload(e) {
|
5468
|
-
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray,
|
5468
|
+
this.uploaded || (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, cf), this.centroidVertexBuffer = e.createVertexBuffer(this.centroidVertexArray, lf.members, !0), this.indexBuffer = e.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(e), this.uploaded = !0;
|
5469
5469
|
}
|
5470
5470
|
destroy() {
|
5471
5471
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.centroidVertexBuffer.destroy());
|
@@ -5477,13 +5477,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5477
5477
|
for (const R of p) g += R.length;
|
5478
5478
|
let x = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray);
|
5479
5479
|
for (const R of p) {
|
5480
|
-
if (R.length === 0 ||
|
5480
|
+
if (R.length === 0 || xf(R)) continue;
|
5481
5481
|
let B = 0;
|
5482
5482
|
for (let $ = 0; $ < R.length; $++) {
|
5483
5483
|
const W = R[$];
|
5484
5484
|
if ($ >= 1) {
|
5485
5485
|
const se = R[$ - 1];
|
5486
|
-
if (!
|
5486
|
+
if (!yf(W, se)) {
|
5487
5487
|
x.vertexLength + 4 > ri.MAX_VERTEX_ARRAY_LENGTH && (x = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray));
|
5488
5488
|
const Y = W.sub(se)._perp()._unit(), ie = se.dist(W);
|
5489
5489
|
B + ie > 32768 && (B = 0), Wa(this.layoutVertexArray, W.x, W.y, Y.x, Y.y, 0, 0, B), Wa(this.layoutVertexArray, W.x, W.y, Y.x, Y.y, 0, 1, B), f.x += 2 * W.x, f.y += 2 * W.y, f.vertexCount += 2, B += ie, Wa(this.layoutVertexArray, se.x, se.y, Y.x, Y.y, 0, 0, B), Wa(this.layoutVertexArray, se.x, se.y, Y.x, Y.y, 0, 1, B), f.x += 2 * se.x, f.y += 2 * se.y, f.vertexCount += 2;
|
@@ -5493,7 +5493,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5493
5493
|
}
|
5494
5494
|
}
|
5495
5495
|
}
|
5496
|
-
if (x.vertexLength + g > ri.MAX_VERTEX_ARRAY_LENGTH && (x = this.segments.prepareSegment(g, this.layoutVertexArray, this.indexArray)),
|
5496
|
+
if (x.vertexLength + g > ri.MAX_VERTEX_ARRAY_LENGTH && (x = this.segments.prepareSegment(g, this.layoutVertexArray, this.indexArray)), _f[e.type] !== "Polygon") continue;
|
5497
5497
|
const w = [], I = [], C = x.vertexLength;
|
5498
5498
|
for (const R of p) if (R.length !== 0) {
|
5499
5499
|
R !== p[0] && I.push(w.length / 2);
|
@@ -5513,20 +5513,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5513
5513
|
this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, s, d, l);
|
5514
5514
|
}
|
5515
5515
|
}
|
5516
|
-
function
|
5516
|
+
function yf(i, e) {
|
5517
5517
|
return i.x === e.x && (i.x < 0 || i.x > ti) || i.y === e.y && (i.y < 0 || i.y > ti);
|
5518
5518
|
}
|
5519
|
-
function
|
5519
|
+
function xf(i) {
|
5520
5520
|
return i.every((e) => e.x < 0) || i.every((e) => e.x > ti) || i.every((e) => e.y < 0) || i.every((e) => e.y > ti);
|
5521
5521
|
}
|
5522
5522
|
let ku;
|
5523
5523
|
Oe("FillExtrusionBucket", ch, { omit: ["layers", "features"] });
|
5524
|
-
var
|
5524
|
+
var vf = { get paint() {
|
5525
5525
|
return ku = ku || new o({ "fill-extrusion-opacity": new qe(he["paint_fill-extrusion"]["fill-extrusion-opacity"]), "fill-extrusion-color": new Je(he["paint_fill-extrusion"]["fill-extrusion-color"]), "fill-extrusion-translate": new qe(he["paint_fill-extrusion"]["fill-extrusion-translate"]), "fill-extrusion-translate-anchor": new qe(he["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]), "fill-extrusion-pattern": new u(he["paint_fill-extrusion"]["fill-extrusion-pattern"]), "fill-extrusion-height": new Je(he["paint_fill-extrusion"]["fill-extrusion-height"]), "fill-extrusion-base": new Je(he["paint_fill-extrusion"]["fill-extrusion-base"]), "fill-extrusion-vertical-gradient": new qe(he["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]) });
|
5526
5526
|
} };
|
5527
|
-
class
|
5527
|
+
class bf extends h {
|
5528
5528
|
constructor(e) {
|
5529
|
-
super(e,
|
5529
|
+
super(e, vf);
|
5530
5530
|
}
|
5531
5531
|
createBucket(e) {
|
5532
5532
|
return new ch(e);
|
@@ -5594,7 +5594,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5594
5594
|
return r;
|
5595
5595
|
}
|
5596
5596
|
}
|
5597
|
-
const
|
5597
|
+
const wf = b([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: Sf } = wf, Tf = b([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: If } = Tf, Pf = Yn.VectorTileFeature.types, Af = Math.cos(Math.PI / 180 * 37.5), Mu = Math.pow(2, 14) / 0.5;
|
5598
5598
|
class hh {
|
5599
5599
|
constructor(e) {
|
5600
5600
|
this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((r) => r.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((r) => {
|
@@ -5633,7 +5633,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5633
5633
|
return !this.uploaded || this.programConfigurations.needsUpload;
|
5634
5634
|
}
|
5635
5635
|
upload(e) {
|
5636
|
-
this.uploaded || (this.layoutVertexArray2.length !== 0 && (this.layoutVertexBuffer2 = e.createVertexBuffer(this.layoutVertexArray2,
|
5636
|
+
this.uploaded || (this.layoutVertexArray2.length !== 0 && (this.layoutVertexBuffer2 = e.createVertexBuffer(this.layoutVertexArray2, If)), this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Sf), this.indexBuffer = e.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(e), this.uploaded = !0;
|
5637
5637
|
}
|
5638
5638
|
destroy() {
|
5639
5639
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy());
|
@@ -5653,7 +5653,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5653
5653
|
for (let W = 0; W < e.length - 1; W++) this.totalDistance += e[W].dist(e[W + 1]);
|
5654
5654
|
this.updateScaledDistance(), this.maxLineLength = Math.max(this.maxLineLength, this.totalDistance);
|
5655
5655
|
}
|
5656
|
-
const f =
|
5656
|
+
const f = Pf[r.type] === "Polygon";
|
5657
5657
|
let g = e.length;
|
5658
5658
|
for (; g >= 2 && e[g - 1].equals(e[g - 2]); ) g--;
|
5659
5659
|
let x = 0;
|
@@ -5668,7 +5668,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5668
5668
|
$ && (B = $), C && (z = C), C = e[W], $ = R ? R.sub(C)._unit()._perp() : B, B = B || $;
|
5669
5669
|
let se = B.add($);
|
5670
5670
|
se.x === 0 && se.y === 0 || se._unit();
|
5671
|
-
const Y = B.x * $.x + B.y * $.y, ie = se.x * $.x + se.y * $.y, ue = ie !== 0 ? 1 / ie : 1 / 0, xe = 2 * Math.sqrt(2 - 2 * ie), Le = ie <
|
5671
|
+
const Y = B.x * $.x + B.y * $.y, ie = se.x * $.x + se.y * $.y, ue = ie !== 0 ? 1 / ie : 1 / 0, xe = 2 * Math.sqrt(2 - 2 * ie), Le = ie < Af && z && R, We = B.x * $.y - B.y * $.x > 0;
|
5672
5672
|
if (Le && W > x) {
|
5673
5673
|
const $e = C.dist(z);
|
5674
5674
|
if ($e > 2 * w) {
|
@@ -5739,7 +5739,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5739
5739
|
}, get layout() {
|
5740
5740
|
return zu = zu || new o({ "line-cap": new qe(he.layout_line["line-cap"]), "line-join": new Je(he.layout_line["line-join"]), "line-miter-limit": new qe(he.layout_line["line-miter-limit"]), "line-round-limit": new qe(he.layout_line["line-round-limit"]), "line-sort-key": new Je(he.layout_line["line-sort-key"]) });
|
5741
5741
|
} };
|
5742
|
-
class
|
5742
|
+
class Cf extends Je {
|
5743
5743
|
possiblyEvaluate(e, r) {
|
5744
5744
|
return r = new Dt(Math.floor(r.zoom), { now: r.now, fadeDuration: r.fadeDuration, zoomHistory: r.zoomHistory, transition: r.transition }), super.possiblyEvaluate(e, r);
|
5745
5745
|
}
|
@@ -5748,9 +5748,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5748
5748
|
}
|
5749
5749
|
}
|
5750
5750
|
let ic;
|
5751
|
-
class
|
5751
|
+
class kf extends h {
|
5752
5752
|
constructor(e) {
|
5753
|
-
super(e, Lu), this.gradientVersion = 0, ic || (ic = new
|
5753
|
+
super(e, Lu), this.gradientVersion = 0, ic || (ic = new Cf(Lu.paint.properties["line-width"].specification), ic.useIntegerZoom = !0);
|
5754
5754
|
}
|
5755
5755
|
_handleSpecialPaintPropertyUpdate(e) {
|
5756
5756
|
if (e === "line-gradient") {
|
@@ -5792,7 +5792,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5792
5792
|
if (I.length >= 3) {
|
5793
5793
|
for (let $ = 0; $ < B.length; $++) if (Eo(I, B[$])) return !0;
|
5794
5794
|
}
|
5795
|
-
if (
|
5795
|
+
if (Bp(I, B, z)) return !0;
|
5796
5796
|
}
|
5797
5797
|
return !1;
|
5798
5798
|
}(g, l, x);
|
@@ -5804,12 +5804,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5804
5804
|
function Ru(i, e) {
|
5805
5805
|
return e > 0 ? e + 2 * i : i;
|
5806
5806
|
}
|
5807
|
-
const
|
5807
|
+
const Ef = b([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), Mf = b([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
|
5808
5808
|
b([{ name: "a_fade_opacity", components: 1, type: "Uint32" }], 4);
|
5809
|
-
const
|
5809
|
+
const zf = b([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }, { name: "a_box_real", components: 2, type: "Int16" }]);
|
5810
5810
|
b([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]);
|
5811
|
-
const Fu = b([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4),
|
5812
|
-
function
|
5811
|
+
const Fu = b([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), Df = b([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
|
5812
|
+
function Lf(i, e, r) {
|
5813
5813
|
return i.sections.forEach((s) => {
|
5814
5814
|
s.text = function(l, d, p) {
|
5815
5815
|
const f = d.layout.get("text-transform").evaluate(p, {});
|
@@ -5851,31 +5851,31 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
5851
5851
|
r.realloc(s);
|
5852
5852
|
for (var l = r.pos - 1; l >= i; l--) r.buf[l + s] = r.buf[l];
|
5853
5853
|
}
|
5854
|
-
function
|
5854
|
+
function Rf(i, e) {
|
5855
5855
|
for (var r = 0; r < i.length; r++) e.writeVarint(i[r]);
|
5856
5856
|
}
|
5857
|
-
function
|
5857
|
+
function Ff(i, e) {
|
5858
5858
|
for (var r = 0; r < i.length; r++) e.writeSVarint(i[r]);
|
5859
5859
|
}
|
5860
|
-
function
|
5860
|
+
function Bf(i, e) {
|
5861
5861
|
for (var r = 0; r < i.length; r++) e.writeFloat(i[r]);
|
5862
5862
|
}
|
5863
|
-
function
|
5863
|
+
function Of(i, e) {
|
5864
5864
|
for (var r = 0; r < i.length; r++) e.writeDouble(i[r]);
|
5865
5865
|
}
|
5866
|
-
function
|
5866
|
+
function Vf(i, e) {
|
5867
5867
|
for (var r = 0; r < i.length; r++) e.writeBoolean(i[r]);
|
5868
5868
|
}
|
5869
|
-
function
|
5869
|
+
function Nf(i, e) {
|
5870
5870
|
for (var r = 0; r < i.length; r++) e.writeFixed32(i[r]);
|
5871
5871
|
}
|
5872
|
-
function
|
5872
|
+
function jf(i, e) {
|
5873
5873
|
for (var r = 0; r < i.length; r++) e.writeSFixed32(i[r]);
|
5874
5874
|
}
|
5875
|
-
function
|
5875
|
+
function Uf(i, e) {
|
5876
5876
|
for (var r = 0; r < i.length; r++) e.writeFixed64(i[r]);
|
5877
5877
|
}
|
5878
|
-
function
|
5878
|
+
function $f(i, e) {
|
5879
5879
|
for (var r = 0; r < i.length; r++) e.writeSFixed64(i[r]);
|
5880
5880
|
}
|
5881
5881
|
function rc(i, e) {
|
@@ -6070,23 +6070,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6070
6070
|
}, writeMessage: function(i, e, r) {
|
6071
6071
|
this.writeTag(i, At.Bytes), this.writeRawMessage(e, r);
|
6072
6072
|
}, writePackedVarint: function(i, e) {
|
6073
|
-
e.length && this.writeMessage(i, Lf, e);
|
6074
|
-
}, writePackedSVarint: function(i, e) {
|
6075
6073
|
e.length && this.writeMessage(i, Rf, e);
|
6074
|
+
}, writePackedSVarint: function(i, e) {
|
6075
|
+
e.length && this.writeMessage(i, Ff, e);
|
6076
6076
|
}, writePackedBoolean: function(i, e) {
|
6077
|
-
e.length && this.writeMessage(i,
|
6077
|
+
e.length && this.writeMessage(i, Vf, e);
|
6078
6078
|
}, writePackedFloat: function(i, e) {
|
6079
|
-
e.length && this.writeMessage(i, Ff, e);
|
6080
|
-
}, writePackedDouble: function(i, e) {
|
6081
6079
|
e.length && this.writeMessage(i, Bf, e);
|
6080
|
+
}, writePackedDouble: function(i, e) {
|
6081
|
+
e.length && this.writeMessage(i, Of, e);
|
6082
6082
|
}, writePackedFixed32: function(i, e) {
|
6083
|
-
e.length && this.writeMessage(i, Vf, e);
|
6084
|
-
}, writePackedSFixed32: function(i, e) {
|
6085
6083
|
e.length && this.writeMessage(i, Nf, e);
|
6086
|
-
},
|
6084
|
+
}, writePackedSFixed32: function(i, e) {
|
6087
6085
|
e.length && this.writeMessage(i, jf, e);
|
6088
|
-
},
|
6086
|
+
}, writePackedFixed64: function(i, e) {
|
6089
6087
|
e.length && this.writeMessage(i, Uf, e);
|
6088
|
+
}, writePackedSFixed64: function(i, e) {
|
6089
|
+
e.length && this.writeMessage(i, $f, e);
|
6090
6090
|
}, writeBytesField: function(i, e) {
|
6091
6091
|
this.writeTag(i, At.Bytes), this.writeBytes(e);
|
6092
6092
|
}, writeFixed32Field: function(i, e) {
|
@@ -6112,16 +6112,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6112
6112
|
} };
|
6113
6113
|
var dh = ye(Bu);
|
6114
6114
|
const ph = 3;
|
6115
|
-
function $f(i, e, r) {
|
6116
|
-
i === 1 && r.readMessage(qf, e);
|
6117
|
-
}
|
6118
6115
|
function qf(i, e, r) {
|
6116
|
+
i === 1 && r.readMessage(Zf, e);
|
6117
|
+
}
|
6118
|
+
function Zf(i, e, r) {
|
6119
6119
|
if (i === 3) {
|
6120
|
-
const { id: s, bitmap: l, width: d, height: p, left: f, top: g, advance: x } = r.readMessage(
|
6120
|
+
const { id: s, bitmap: l, width: d, height: p, left: f, top: g, advance: x } = r.readMessage(Gf, {});
|
6121
6121
|
e.push({ id: s, bitmap: new qa({ width: d + 2 * ph, height: p + 2 * ph }, l), metrics: { width: d, height: p, left: f, top: g, advance: x } });
|
6122
6122
|
}
|
6123
6123
|
}
|
6124
|
-
function
|
6124
|
+
function Gf(i, e, r) {
|
6125
6125
|
i === 1 ? e.id = r.readVarint() : i === 2 ? e.bitmap = r.readBytes() : i === 3 ? e.width = r.readVarint() : i === 4 ? e.height = r.readVarint() : i === 5 ? e.left = r.readSVarint() : i === 6 ? e.top = r.readSVarint() : i === 7 && (e.advance = r.readVarint());
|
6126
6126
|
}
|
6127
6127
|
const qu = ph;
|
@@ -6343,7 +6343,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6343
6343
|
}
|
6344
6344
|
Ar ? (ue.verticalizable = !0, Oi.push({ glyph: Nt, imageName: on, x: Qe, y: Et + Yi, vertical: Ar, scale: _t.scale, fontStack: _t.fontStack, sectionIndex: Lt, metrics: Ht, rect: No }), Qe += an * _t.scale + fe) : (Oi.push({ glyph: Nt, imageName: on, x: Qe, y: Et + Yi, vertical: Ar, scale: _t.scale, fontStack: _t.fontStack, sectionIndex: Lt, metrics: Ht, rect: No }), Qe += Ht.advance * _t.scale + fe);
|
6345
6345
|
}
|
6346
|
-
Oi.length !== 0 && (Ct = Math.max(Qe - fe, Ct),
|
6346
|
+
Oi.length !== 0 && (Ct = Math.max(Qe - fe, Ct), Jf(Oi, 0, Oi.length - 1, Pr, Si)), Qe = 0;
|
6347
6347
|
const dr = ke * li + Si;
|
6348
6348
|
wi.lineOffset = Math.max(Si, Ci), Et += dr, ai = Math.max(dr, ai), ++bi;
|
6349
6349
|
}
|
@@ -6360,7 +6360,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6360
6360
|
return !0;
|
6361
6361
|
}(Y) && ie;
|
6362
6362
|
}
|
6363
|
-
const sc = { 9: !0, 10: !0, 11: !0, 12: !0, 13: !0, 32: !0 },
|
6363
|
+
const sc = { 9: !0, 10: !0, 11: !0, 12: !0, 13: !0, 32: !0 }, Hf = { 10: !0, 32: !0, 38: !0, 41: !0, 43: !0, 45: !0, 47: !0, 173: !0, 183: !0, 8203: !0, 8208: !0, 8211: !0, 8231: !0 }, Wf = { 40: !0 };
|
6364
6364
|
function Hu(i, e, r, s, l, d) {
|
6365
6365
|
if (e.imageName) {
|
6366
6366
|
const p = s[e.imageName];
|
@@ -6375,7 +6375,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6375
6375
|
const l = Math.pow(i - e, 2);
|
6376
6376
|
return s ? i < e ? l / 2 : 2 * l : l + Math.abs(r) * r;
|
6377
6377
|
}
|
6378
|
-
function
|
6378
|
+
function Xf(i, e, r) {
|
6379
6379
|
let s = 0;
|
6380
6380
|
return i === 10 && (s -= 1e4), r && (s += 150), i !== 40 && i !== 65288 || (s += 50), e !== 41 && e !== 65289 || (s += 50), s;
|
6381
6381
|
}
|
@@ -6405,7 +6405,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6405
6405
|
const C = i.getSection(I), z = i.getCharCode(I);
|
6406
6406
|
if (sc[z] || (x += Hu(z, C, s, l, e, d)), I < i.length() - 1) {
|
6407
6407
|
const R = !((w = z) < 11904 || !(ze["Bopomofo Extended"](w) || ze.Bopomofo(w) || ze["CJK Compatibility Forms"](w) || ze["CJK Compatibility Ideographs"](w) || ze["CJK Compatibility"](w) || ze["CJK Radicals Supplement"](w) || ze["CJK Strokes"](w) || ze["CJK Symbols and Punctuation"](w) || ze["CJK Unified Ideographs Extension A"](w) || ze["CJK Unified Ideographs"](w) || ze["Enclosed CJK Letters and Months"](w) || ze["Halfwidth and Fullwidth Forms"](w) || ze.Hiragana(w) || ze["Ideographic Description Characters"](w) || ze["Kangxi Radicals"](w) || ze["Katakana Phonetic Extensions"](w) || ze.Katakana(w) || ze["Vertical Forms"](w) || ze["Yi Radicals"](w) || ze["Yi Syllables"](w)));
|
6408
|
-
(
|
6408
|
+
(Hf[z] || R || C.imageName || I !== i.length() - 2 && Wf[i.getCharCode(I + 1)]) && p.push(Xu(I + 1, x, f, p, Xf(z, i.getCharCode(I + 1), R && g), !1));
|
6409
6409
|
}
|
6410
6410
|
}
|
6411
6411
|
var w;
|
@@ -6437,12 +6437,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6437
6437
|
}
|
6438
6438
|
return { horizontalAlign: e, verticalAlign: r };
|
6439
6439
|
}
|
6440
|
-
function
|
6440
|
+
function Jf(i, e, r, s, l) {
|
6441
6441
|
if (!s && !l) return;
|
6442
6442
|
const d = i[r], p = (i[r].x + d.metrics.advance * d.scale) * s;
|
6443
6443
|
for (let f = e; f <= r; f++) i[f].x -= p, i[f].y += l;
|
6444
6444
|
}
|
6445
|
-
function
|
6445
|
+
function Kf(i, e, r) {
|
6446
6446
|
const { horizontalAlign: s, verticalAlign: l } = gh(r), d = e[0] - i.displaySize[0] * s, p = e[1] - i.displaySize[1] * l;
|
6447
6447
|
return { image: i, top: p, bottom: p + i.displaySize[1], left: d, right: d + i.displaySize[0] };
|
6448
6448
|
}
|
@@ -6496,7 +6496,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6496
6496
|
const l = i.get(e);
|
6497
6497
|
return l ? s = l : i.get(r) && (s = "always"), s;
|
6498
6498
|
}
|
6499
|
-
const
|
6499
|
+
const Yf = Yn.VectorTileFeature.types, Qf = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
|
6500
6500
|
function oc(i, e, r, s, l, d, p, f, g, x, w, I, C) {
|
6501
6501
|
const z = f ? Math.min(es, Math.round(f[0])) : 0, R = f ? Math.min(es, Math.round(f[1])) : 0;
|
6502
6502
|
i.emplaceBack(e, r, Math.round(32 * s), Math.round(32 * l), d, p, (z << 1) + (g ? 1 : 0), R, 16 * x, 16 * w, 256 * I, 256 * C);
|
@@ -6504,7 +6504,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6504
6504
|
function yh(i, e, r) {
|
6505
6505
|
i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r), i.emplaceBack(e.x, e.y, r);
|
6506
6506
|
}
|
6507
|
-
function
|
6507
|
+
function em(i) {
|
6508
6508
|
for (const e of i.sections) if (La(e.text)) return !0;
|
6509
6509
|
return !1;
|
6510
6510
|
}
|
@@ -6516,7 +6516,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6516
6516
|
return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;
|
6517
6517
|
}
|
6518
6518
|
upload(e, r, s, l) {
|
6519
|
-
this.isEmpty() || (s && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray,
|
6519
|
+
this.isEmpty() || (s && (this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, Ef.members), this.indexBuffer = e.createIndexBuffer(this.indexArray, r), this.dynamicLayoutVertexBuffer = e.createVertexBuffer(this.dynamicLayoutVertexArray, Mf.members, !0), this.opacityVertexBuffer = e.createVertexBuffer(this.opacityVertexArray, Qf, !0), this.opacityVertexBuffer.itemSize = 1), (s || l) && this.programConfigurations.upload(e));
|
6520
6520
|
}
|
6521
6521
|
destroy() {
|
6522
6522
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy(), this.dynamicLayoutVertexBuffer.destroy(), this.opacityVertexBuffer.destroy());
|
@@ -6528,7 +6528,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6528
6528
|
this.layoutVertexArray = new e(), this.layoutAttributes = r, this.indexArray = new s(), this.segments = new ri(), this.collisionVertexArray = new xi();
|
6529
6529
|
}
|
6530
6530
|
upload(e) {
|
6531
|
-
this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray,
|
6531
|
+
this.layoutVertexBuffer = e.createVertexBuffer(this.layoutVertexArray, this.layoutAttributes), this.indexBuffer = e.createIndexBuffer(this.indexArray), this.collisionVertexBuffer = e.createVertexBuffer(this.collisionVertexArray, zf.members, !0);
|
6532
6532
|
}
|
6533
6533
|
destroy() {
|
6534
6534
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.segments.destroy(), this.collisionVertexBuffer.destroy());
|
@@ -6561,8 +6561,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6561
6561
|
if (!l._featureFilter.filter(B, ue, s)) continue;
|
6562
6562
|
let xe, Le;
|
6563
6563
|
if (ie || (ue.geometry = Fs($)), x) {
|
6564
|
-
const Me = l.getValueAndResolveTokens("text-field", ue, s, R), ke = Ni.factory(Me), $e = this.hasRTLText = this.hasRTLText ||
|
6565
|
-
(!$e || tn.getRTLTextPluginStatus() === "unavailable" || $e && tn.isParsed()) && (xe =
|
6564
|
+
const Me = l.getValueAndResolveTokens("text-field", ue, s, R), ke = Ni.factory(Me), $e = this.hasRTLText = this.hasRTLText || em(ke);
|
6565
|
+
(!$e || tn.getRTLTextPluginStatus() === "unavailable" || $e && tn.isParsed()) && (xe = Lf(ke, l, ue));
|
6566
6566
|
}
|
6567
6567
|
if (w) {
|
6568
6568
|
const Me = l.getValueAndResolveTokens("icon-image", ue, s, R);
|
@@ -6570,7 +6570,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6570
6570
|
}
|
6571
6571
|
if (!xe && !Le) continue;
|
6572
6572
|
const We = this.sortFeaturesByKey ? I.evaluate(ue, {}, s) : void 0;
|
6573
|
-
if (this.features.push({ id: W, text: xe, icon: Le, index: se, sourceLayerIndex: Y, geometry: ue.geometry, properties: $.properties, type:
|
6573
|
+
if (this.features.push({ id: W, text: xe, icon: Le, index: se, sourceLayerIndex: Y, geometry: ue.geometry, properties: $.properties, type: Yf[$.type], sortKey: We }), Le && (C[Le.name] = !0), xe) {
|
6574
6574
|
const Me = p.evaluate(ue, {}, s).join(","), ke = d.get("text-rotation-alignment") !== "viewport" && d.get("symbol-placement") !== "point";
|
6575
6575
|
this.allowVerticalPlacement = this.writingModes && this.writingModes.indexOf(S.ai.vertical) >= 0;
|
6576
6576
|
for (const $e of xe.sections) if ($e.image) C[$e.image.name] = !0;
|
@@ -6840,24 +6840,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6840
6840
|
}
|
6841
6841
|
}
|
6842
6842
|
let rd;
|
6843
|
-
var
|
6843
|
+
var tm = { get paint() {
|
6844
6844
|
return rd = rd || new o({ "background-color": new qe(he.paint_background["background-color"]), "background-pattern": new t(he.paint_background["background-pattern"]), "background-opacity": new qe(he.paint_background["background-opacity"]) });
|
6845
6845
|
} };
|
6846
|
-
class
|
6846
|
+
class im extends h {
|
6847
6847
|
constructor(e) {
|
6848
|
-
super(e,
|
6848
|
+
super(e, tm);
|
6849
6849
|
}
|
6850
6850
|
}
|
6851
6851
|
let nd;
|
6852
|
-
var
|
6852
|
+
var rm = { get paint() {
|
6853
6853
|
return nd = nd || new o({ "raster-opacity": new qe(he.paint_raster["raster-opacity"]), "raster-hue-rotate": new qe(he.paint_raster["raster-hue-rotate"]), "raster-brightness-min": new qe(he.paint_raster["raster-brightness-min"]), "raster-brightness-max": new qe(he.paint_raster["raster-brightness-max"]), "raster-saturation": new qe(he.paint_raster["raster-saturation"]), "raster-contrast": new qe(he.paint_raster["raster-contrast"]), "raster-resampling": new qe(he.paint_raster["raster-resampling"]), "raster-fade-duration": new qe(he.paint_raster["raster-fade-duration"]) });
|
6854
6854
|
} };
|
6855
|
-
class
|
6855
|
+
class nm extends h {
|
6856
6856
|
constructor(e) {
|
6857
|
-
super(e,
|
6857
|
+
super(e, rm);
|
6858
6858
|
}
|
6859
6859
|
}
|
6860
|
-
class
|
6860
|
+
class sm extends h {
|
6861
6861
|
constructor(e) {
|
6862
6862
|
super(e, {}), this.onAdd = (r) => {
|
6863
6863
|
this.implementation.onAdd && this.implementation.onAdd(r, r.painter.context.gl);
|
@@ -6882,7 +6882,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
6882
6882
|
throw new Error("Custom layers cannot be serialized");
|
6883
6883
|
}
|
6884
6884
|
}
|
6885
|
-
class
|
6885
|
+
class om {
|
6886
6886
|
constructor(e) {
|
6887
6887
|
this._methodToThrottle = e, this._triggered = !1, typeof MessageChannel < "u" && (this._channel = new MessageChannel(), this._channel.port2.onmessage = () => {
|
6888
6888
|
this._triggered = !1, this._methodToThrottle();
|
@@ -7179,11 +7179,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7179
7179
|
if (ie.length > 2) {
|
7180
7180
|
for (const ke of Me) if (Eo(ie, ke)) return !0;
|
7181
7181
|
}
|
7182
|
-
for (let ke = 0; ke < ie.length - 1; ke++) if (
|
7182
|
+
for (let ke = 0; ke < ie.length - 1; ke++) if (Vp(ie[ke], ie[ke + 1], Me)) return !0;
|
7183
7183
|
return !1;
|
7184
7184
|
}(e.cameraQueryGeometry, $ - x, W - x, se + x, Y + x));
|
7185
7185
|
for (const $ of z) I.push($);
|
7186
|
-
I.sort(
|
7186
|
+
I.sort(am);
|
7187
7187
|
const R = {};
|
7188
7188
|
let B;
|
7189
7189
|
for (let $ = 0; $ < I.length; $++) {
|
@@ -7252,7 +7252,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7252
7252
|
for (const d of i) e = Math.min(e, d.x), r = Math.min(r, d.y), s = Math.max(s, d.x), l = Math.max(l, d.y);
|
7253
7253
|
return { minX: e, minY: r, maxX: s, maxY: l };
|
7254
7254
|
}
|
7255
|
-
function
|
7255
|
+
function am(i, e) {
|
7256
7256
|
return e - i;
|
7257
7257
|
}
|
7258
7258
|
function yd(i, e, r, s, l) {
|
@@ -7307,7 +7307,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7307
7307
|
function wd(i, e) {
|
7308
7308
|
return Math.max(i ? i.right - i.left : 0, e ? e.right - e.left : 0);
|
7309
7309
|
}
|
7310
|
-
function
|
7310
|
+
function lm(i, e, r, s, l, d) {
|
7311
7311
|
const p = bd(r, l, d), f = wd(r, s) * d;
|
7312
7312
|
let g = 0;
|
7313
7313
|
const x = vd(i) / 2;
|
@@ -7320,7 +7320,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7320
7320
|
g += z;
|
7321
7321
|
}
|
7322
7322
|
}
|
7323
|
-
function
|
7323
|
+
function cm(i, e, r, s, l, d, p, f, g) {
|
7324
7324
|
const x = bd(s, d, p), w = wd(s, l), I = w * p, C = i[0].x === 0 || i[0].x === g || i[0].y === 0 || i[0].y === g;
|
7325
7325
|
return e - I < e / 4 && (e = I + e / 4), Sd(i, C ? e / 2 * f % e : (w / 2 + 2 * d) * p * f % e, e, x, r, I, C, !1, g);
|
7326
7326
|
}
|
@@ -7411,7 +7411,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7411
7411
|
this.boxEndIndex = e.length;
|
7412
7412
|
}
|
7413
7413
|
}
|
7414
|
-
class
|
7414
|
+
class hm {
|
7415
7415
|
constructor(e = [], r = (s, l) => s < l ? -1 : s > l ? 1 : 0) {
|
7416
7416
|
if (this.data = e, this.length = this.data.length, this.compare = r, this.length > 0) for (let s = (this.length >> 1) - 1; s >= 0; s--) this._down(s);
|
7417
7417
|
}
|
@@ -7446,7 +7446,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7446
7446
|
r[e] = d;
|
7447
7447
|
}
|
7448
7448
|
}
|
7449
|
-
function
|
7449
|
+
function um(i, e = 1, r = !1) {
|
7450
7450
|
let s = 1 / 0, l = 1 / 0, d = -1 / 0, p = -1 / 0;
|
7451
7451
|
const f = i[0];
|
7452
7452
|
for (let z = 0; z < f.length; z++) {
|
@@ -7455,7 +7455,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7455
7455
|
}
|
7456
7456
|
const g = Math.min(d - s, p - l);
|
7457
7457
|
let x = g / 2;
|
7458
|
-
const w = new
|
7458
|
+
const w = new hm([], dm);
|
7459
7459
|
if (g === 0) return new ae(s, l);
|
7460
7460
|
for (let z = s; z < d; z += g) for (let R = l; R < p; R += g) w.push(new Vo(z + x, R + x, x, i));
|
7461
7461
|
let I = function(z) {
|
@@ -7473,7 +7473,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7473
7473
|
}
|
7474
7474
|
return r && (console.log(`num probes: ${C}`), console.log(`best distance: ${I.d}`)), I.p;
|
7475
7475
|
}
|
7476
|
-
function
|
7476
|
+
function dm(i, e) {
|
7477
7477
|
return e.max - i.max;
|
7478
7478
|
}
|
7479
7479
|
function Vo(i, e, r, s) {
|
@@ -7589,7 +7589,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7589
7589
|
}
|
7590
7590
|
return "center";
|
7591
7591
|
}
|
7592
|
-
function
|
7592
|
+
function pm(i, e, r, s, l, d, p, f, g, x, w) {
|
7593
7593
|
let I = d.textMaxSize.evaluate(e, {});
|
7594
7594
|
I === void 0 && (I = p);
|
7595
7595
|
const C = i.layers[0].layout, z = C.get("icon-offset").evaluate(e, {}, w), R = kd(r.horizontal), B = p / 24, $ = i.tilePixelRatio * B, W = i.tilePixelRatio * I / 24, se = i.tilePixelRatio * f, Y = i.tilePixelRatio * C.get("symbol-spacing"), ie = C.get("text-padding") * i.tilePixelRatio, ue = function(fe, Ze, Ue, Qe = 1) {
|
@@ -7627,34 +7627,34 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7627
7627
|
if (Dd += Cd(Ue, Qe, fr, Pr, Wt, wi, Lt, Oi, on, Ct.vertical ? S.ai.horizontal : S.ai.horizontalOnly, Vs ? Fd : [ki], kn, Lh, Nt, Ht), Vs) break;
|
7628
7628
|
}
|
7629
7629
|
Ct.vertical && (Ld += Cd(Ue, Qe, Ct.vertical, Pr, Wt, wi, Lt, Oi, on, S.ai.vertical, ["vertical"], kn, Rh, Nt, Ht));
|
7630
|
-
const
|
7630
|
+
const gm = an ? an.boxStartIndex : Ue.collisionBoxArray.length, _m = an ? an.boxEndIndex : Ue.collisionBoxArray.length, ym = pr ? pr.boxStartIndex : Ue.collisionBoxArray.length, xm = pr ? pr.boxEndIndex : Ue.collisionBoxArray.length, vm = Ar ? Ar.boxStartIndex : Ue.collisionBoxArray.length, bm = Ar ? Ar.boxEndIndex : Ue.collisionBoxArray.length, wm = hi ? hi.boxStartIndex : Ue.collisionBoxArray.length, Sm = hi ? hi.boxEndIndex : Ue.collisionBoxArray.length;
|
7631
7631
|
let Or = -1;
|
7632
7632
|
const fc = (ki, fr) => ki && ki.circleDiameter ? Math.max(ki.circleDiameter, fr) : fr;
|
7633
7633
|
Or = fc(an, Or), Or = fc(pr, Or), Or = fc(Ar, Or), Or = fc(hi, Or);
|
7634
7634
|
const Bd = Or > -1 ? 1 : 0;
|
7635
7635
|
Bd && (Or *= No / ni), Ue.glyphOffsetArray.length >= Bo.MAX_GLYPHS && ui("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Lt.sortKey !== void 0 && Ue.addToSortKeyRanges(Ue.symbolInstances.length, Lt.sortKey);
|
7636
|
-
const
|
7636
|
+
const Tm = Ad(Wt, Lt, Ht), [Im, Pm] = function(ki, fr) {
|
7637
7637
|
const Vs = ki.length, Vr = fr == null ? void 0 : fr.values;
|
7638
7638
|
if ((Vr == null ? void 0 : Vr.length) > 0) for (let Ns = 0; Ns < Vr.length; Ns += 2) {
|
7639
7639
|
const ln = Vr[Ns + 1];
|
7640
7640
|
ki.emplaceBack(S.ar[Vr[Ns]], ln[0], ln[1]);
|
7641
7641
|
}
|
7642
7642
|
return [Vs, ki.length];
|
7643
|
-
}(Ue.textAnchorOffsets,
|
7644
|
-
Ue.symbolInstances.emplaceBack(Qe.x, Qe.y, kn.right >= 0 ? kn.right : -1, kn.center >= 0 ? kn.center : -1, kn.left >= 0 ? kn.left : -1, kn.vertical || -1, Lh, Rh, Rd,
|
7643
|
+
}(Ue.textAnchorOffsets, Tm);
|
7644
|
+
Ue.symbolInstances.emplaceBack(Qe.x, Qe.y, kn.right >= 0 ? kn.right : -1, kn.center >= 0 ? kn.center : -1, kn.left >= 0 ? kn.left : -1, kn.vertical || -1, Lh, Rh, Rd, gm, _m, ym, xm, vm, bm, wm, Sm, Fi, Dd, Ld, Cn, rl, Bd, 0, li, Or, Im, Pm);
|
7645
7645
|
}(i, Ze, fe, r, s, l, Ve, i.layers[0], i.collisionBoxArray, e.index, e.sourceLayerIndex, i.index, $, [ie, ie, ie, ie], Le, g, se, ue, We, z, e, d, x, w, p);
|
7646
7646
|
};
|
7647
7647
|
if (Me === "line") for (const fe of yd(e.geometry, 0, 0, ti, ti)) {
|
7648
|
-
const Ze =
|
7649
|
-
for (const Ue of Ze) R &&
|
7648
|
+
const Ze = cm(fe, Y, xe, r.vertical || R, s, 24, W, i.overscaling, ti);
|
7649
|
+
for (const Ue of Ze) R && fm(i, R.text, ke, Ue) || Fe(fe, Ue);
|
7650
7650
|
}
|
7651
7651
|
else if (Me === "line-center") {
|
7652
7652
|
for (const fe of e.geometry) if (fe.length > 1) {
|
7653
|
-
const Ze =
|
7653
|
+
const Ze = lm(fe, xe, r.vertical || R, s, 24, W);
|
7654
7654
|
Ze && Fe(fe, Ze);
|
7655
7655
|
}
|
7656
7656
|
} else if (e.type === "Polygon") for (const fe of no(e.geometry, 0)) {
|
7657
|
-
const Ze =
|
7657
|
+
const Ze = um(fe, 16);
|
7658
7658
|
Fe(fe[0], new is(Ze.x, Ze.y, 0));
|
7659
7659
|
}
|
7660
7660
|
else if (e.type === "LineString") for (const fe of e.geometry) Fe(fe, new is(fe[0].x, fe[0].y, 0));
|
@@ -7698,7 +7698,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7698
7698
|
for (const e in i) return i[e];
|
7699
7699
|
return null;
|
7700
7700
|
}
|
7701
|
-
function
|
7701
|
+
function fm(i, e, r, s) {
|
7702
7702
|
const l = i.compareText;
|
7703
7703
|
if (e in l) {
|
7704
7704
|
const d = l[e];
|
@@ -7801,7 +7801,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7801
7801
|
var Eh;
|
7802
7802
|
S.bf = void 0, (Eh = S.bf || (S.bf = {})).create = "create", Eh.load = "load", Eh.fullLoad = "fullLoad";
|
7803
7803
|
let pc = null, il = [];
|
7804
|
-
const Mh = 1e3 / 60, zh = "loadTime", Dh = "fullLoadTime",
|
7804
|
+
const Mh = 1e3 / 60, zh = "loadTime", Dh = "fullLoadTime", mm = { mark(i) {
|
7805
7805
|
performance.mark(i);
|
7806
7806
|
}, frame(i) {
|
7807
7807
|
const e = i;
|
@@ -7823,7 +7823,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7823
7823
|
return Mn;
|
7824
7824
|
}, S.D = qe, S.E = Ln, S.F = class {
|
7825
7825
|
constructor(i, e) {
|
7826
|
-
this.target = i, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new
|
7826
|
+
this.target = i, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new om(() => this.process()), this.subscription = function(r, s, l, d) {
|
7827
7827
|
return r.addEventListener(s, l, !1), { unsubscribe: () => {
|
7828
7828
|
r.removeEventListener(s, l, !1);
|
7829
7829
|
} };
|
@@ -7926,24 +7926,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
7926
7926
|
for (let r = 0; r < i.length; r++) "ref" in i[r] && (i[r] = as(i[r], e[i[r].ref]));
|
7927
7927
|
return i;
|
7928
7928
|
}, S.aB = function(i) {
|
7929
|
-
if (i.type === "custom") return new
|
7929
|
+
if (i.type === "custom") return new sm(i);
|
7930
7930
|
switch (i.type) {
|
7931
7931
|
case "background":
|
7932
|
-
return new
|
7932
|
+
return new im(i);
|
7933
7933
|
case "circle":
|
7934
|
-
return new
|
7934
|
+
return new Up(i);
|
7935
7935
|
case "fill":
|
7936
|
-
return new
|
7936
|
+
return new of(i);
|
7937
7937
|
case "fill-extrusion":
|
7938
|
-
return new
|
7938
|
+
return new bf(i);
|
7939
7939
|
case "heatmap":
|
7940
|
-
return new
|
7940
|
+
return new qp(i);
|
7941
7941
|
case "hillshade":
|
7942
|
-
return new
|
7942
|
+
return new Gp(i);
|
7943
7943
|
case "line":
|
7944
|
-
return new
|
7944
|
+
return new kf(i);
|
7945
7945
|
case "raster":
|
7946
|
-
return new
|
7946
|
+
return new nm(i);
|
7947
7947
|
case "symbol":
|
7948
7948
|
return new ac(i);
|
7949
7949
|
}
|
@@ -8001,7 +8001,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8001
8001
|
}
|
8002
8002
|
}, S.aJ = Wl, S.aK = class extends Ls {
|
8003
8003
|
constructor(i, e) {
|
8004
|
-
super(i, e), this.current =
|
8004
|
+
super(i, e), this.current = Lp;
|
8005
8005
|
}
|
8006
8006
|
set(i) {
|
8007
8007
|
if (i[12] !== this.current[12] || i[0] !== this.current[0]) return this.current = i, void this.gl.uniformMatrix4fv(this.location, !1, i);
|
@@ -8027,8 +8027,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8027
8027
|
}, S.aQ = function(i, e, r, s, l, d, p) {
|
8028
8028
|
var f = 1 / (e - r), g = 1 / (s - l), x = 1 / (d - p);
|
8029
8029
|
return i[0] = -2 * f, i[1] = 0, i[2] = 0, i[3] = 0, i[4] = 0, i[5] = -2 * g, i[6] = 0, i[7] = 0, i[8] = 0, i[9] = 0, i[10] = 2 * x, i[11] = 0, i[12] = (e + r) * f, i[13] = (l + s) * g, i[14] = (p + d) * x, i[15] = 1, i;
|
8030
|
-
}, S.aR =
|
8031
|
-
}, S.aT =
|
8030
|
+
}, S.aR = jp, S.aS = class extends me {
|
8031
|
+
}, S.aT = Df, S.aU = class extends De {
|
8032
8032
|
}, S.aV = function(i) {
|
8033
8033
|
return i <= 1 ? 1 : Math.pow(2, Math.ceil(Math.log(i) / Math.LN2));
|
8034
8034
|
}, S.aW = _u, S.aX = Tn, S.aY = oi, S.aZ = class extends Ee {
|
@@ -8098,14 +8098,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8098
8098
|
}, S.b7 = function(i, e, r) {
|
8099
8099
|
var s = Math.sin(r), l = Math.cos(r), d = e[4], p = e[5], f = e[6], g = e[7], x = e[8], w = e[9], I = e[10], C = e[11];
|
8100
8100
|
return e !== i && (i[0] = e[0], i[1] = e[1], i[2] = e[2], i[3] = e[3], i[12] = e[12], i[13] = e[13], i[14] = e[14], i[15] = e[15]), i[4] = d * l + x * s, i[5] = p * l + w * s, i[6] = f * l + I * s, i[7] = g * l + C * s, i[8] = x * l - d * s, i[9] = w * l - p * s, i[10] = I * l - f * s, i[11] = C * l - g * s, i;
|
8101
|
-
}, S.b8 =
|
8101
|
+
}, S.b8 = Pe, S.b9 = yt, S.bA = function(i) {
|
8102
8102
|
return i.message === ir;
|
8103
8103
|
}, S.bB = bn, S.bC = tn, S.ba = function(i) {
|
8104
8104
|
return i * Math.PI / 180;
|
8105
8105
|
}, S.bb = function(i, e) {
|
8106
8106
|
return i[0] = e[0], i[1] = 0, i[2] = 0, i[3] = 0, i[4] = 0, i[5] = e[1], i[6] = 0, i[7] = 0, i[8] = 0, i[9] = 0, i[10] = e[2], i[11] = 0, i[12] = 0, i[13] = 0, i[14] = 0, i[15] = 1, i;
|
8107
8107
|
}, S.bc = class extends L {
|
8108
|
-
}, S.bd = wh, S.be =
|
8108
|
+
}, S.bd = wh, S.be = mm, S.bg = Vi, S.bh = function(i, e) {
|
8109
8109
|
qr.REGISTERED_PROTOCOLS[i] = e;
|
8110
8110
|
}, S.bi = function(i) {
|
8111
8111
|
delete qr.REGISTERED_PROTOCOLS[i];
|
@@ -8165,10 +8165,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8165
8165
|
let se = !1;
|
8166
8166
|
if (x.icon && x.icon.name) {
|
8167
8167
|
const ie = i.imageMap[x.icon.name];
|
8168
|
-
ie && ($ =
|
8168
|
+
ie && ($ = Kf(i.imagePositions[x.icon.name], r.get("icon-offset").evaluate(x, {}, i.canonical), r.get("icon-anchor").evaluate(x, {}, i.canonical)), se = !!ie.sdf, i.bucket.sdfIcons === void 0 ? i.bucket.sdfIcons = se : i.bucket.sdfIcons !== se && ui("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (ie.pixelRatio !== i.bucket.pixelRatio || r.get("icon-rotate").constantOr(1) !== 0) && (i.bucket.iconsNeedLinear = !0));
|
8169
8169
|
}
|
8170
8170
|
const Y = kd(R.horizontal) || R.vertical;
|
8171
|
-
i.bucket.iconsInText = !!Y && Y.iconsInText, (Y || $) &&
|
8171
|
+
i.bucket.iconsInText = !!Y && Y.iconsInText, (Y || $) && pm(i.bucket, x, R, $, i.imageMap, l, C, z, W, se, i.canonical);
|
8172
8172
|
}
|
8173
8173
|
i.showCollisionBoxes && i.bucket.generateCollisionDebugBuffers();
|
8174
8174
|
}, S.bp = hh, S.bq = ah, S.br = ch, S.bs = Yn, S.bt = dh, S.bu = class {
|
@@ -8211,7 +8211,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8211
8211
|
const l = new Blob([new Uint8Array(i)], { type: "image/png" });
|
8212
8212
|
s.src = i.byteLength ? URL.createObjectURL(l) : Gs;
|
8213
8213
|
}), S.g = _r, S.h = (i, e) => un(Pt(i, { type: "json" }), e), S.i = Cr, S.j = Gr, S.k = Zr, S.l = (i, e) => un(Pt(i, { type: "arrayBuffer" }), e), S.m = un, S.n = function(i) {
|
8214
|
-
return new dh(i).readFields(
|
8214
|
+
return new dh(i).readFields(qf, []);
|
8215
8215
|
}, S.o = qa, S.p = Zu, S.q = o, S.r = qc, S.s = dn, S.t = Ea, S.u = ze, S.v = he, S.w = ui, S.x = Fr, S.y = function([i, e, r]) {
|
8216
8216
|
return e += 90, e *= Math.PI / 180, r *= Math.PI / 180, { x: i * Math.cos(e) * Math.sin(r), y: i * Math.sin(e) * Math.sin(r), z: i * Math.cos(r) };
|
8217
8217
|
}, S.z = $i;
|
@@ -8252,8 +8252,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8252
8252
|
for (const ge in X) {
|
8253
8253
|
const ce = X[+ge];
|
8254
8254
|
if (!ce || ce.bitmap.width === 0 || ce.bitmap.height === 0) continue;
|
8255
|
-
const
|
8256
|
-
O.push(
|
8255
|
+
const Ie = { x: 0, y: 0, w: ce.bitmap.width + 2, h: ce.bitmap.height + 2 };
|
8256
|
+
O.push(Ie), de[ge] = { rect: Ie, metrics: ce.metrics };
|
8257
8257
|
}
|
8258
8258
|
}
|
8259
8259
|
const { w: q, h: Q } = S.p(O), te = new S.o({ width: q || 1, height: Q || 1 });
|
@@ -8301,11 +8301,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8301
8301
|
const at = new AbortController();
|
8302
8302
|
this.inFlightDependencies.push(at), ce = q.sendAsync({ type: "GG", data: { stacks: ge, source: this.source, tileID: this.tileID, type: "glyphs" } }, at);
|
8303
8303
|
}
|
8304
|
-
const
|
8304
|
+
const Ie = Object.keys(X.iconDependencies);
|
8305
8305
|
let Ge = Promise.resolve({});
|
8306
|
-
if (
|
8306
|
+
if (Ie.length) {
|
8307
8307
|
const at = new AbortController();
|
8308
|
-
this.inFlightDependencies.push(at), Ge = q.sendAsync({ type: "GI", data: { icons:
|
8308
|
+
this.inFlightDependencies.push(at), Ge = q.sendAsync({ type: "GI", data: { icons: Ie, source: this.source, tileID: this.tileID, type: "icons" } }, at);
|
8309
8309
|
}
|
8310
8310
|
const He = Object.keys(X.patternDependencies);
|
8311
8311
|
let nt = Promise.resolve({});
|
@@ -8407,8 +8407,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8407
8407
|
}
|
8408
8408
|
loadTile(E) {
|
8409
8409
|
return S._(this, void 0, void 0, function* () {
|
8410
|
-
const { uid: k, encoding: O, rawImageData: q, redFactor: Q, greenFactor: te, blueFactor: re, baseShift: X } = E, de = q.width + 2, ge = q.height + 2, ce = S.b(q) ? new S.R({ width: de, height: ge }, yield S.bv(q, -1, -1, de, ge)) : q,
|
8411
|
-
return this.loaded = this.loaded || {}, this.loaded[k] =
|
8410
|
+
const { uid: k, encoding: O, rawImageData: q, redFactor: Q, greenFactor: te, blueFactor: re, baseShift: X } = E, de = q.width + 2, ge = q.height + 2, ce = S.b(q) ? new S.R({ width: de, height: ge }, yield S.bv(q, -1, -1, de, ge)) : q, Ie = new S.bw(k, ce, O, Q, te, re, X);
|
8411
|
+
return this.loaded = this.loaded || {}, this.loaded[k] = Ie, Ie;
|
8412
8412
|
});
|
8413
8413
|
}
|
8414
8414
|
removeTile(E) {
|
@@ -8439,7 +8439,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8439
8439
|
return E;
|
8440
8440
|
});
|
8441
8441
|
const Be = S.bs.VectorTileFeature.prototype.toGeoJSON;
|
8442
|
-
var lt = { exports: {} }, St = S.by,
|
8442
|
+
var lt = { exports: {} }, St = S.by, Pe = S.bs.VectorTileFeature, yt = ft;
|
8443
8443
|
function ft(G, E) {
|
8444
8444
|
this.options = E || {}, this.features = G, this.length = G.length;
|
8445
8445
|
}
|
@@ -8463,7 +8463,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8463
8463
|
E = Math.min(E, X.x), k = Math.max(k, X.x), O = Math.min(O, X.y), q = Math.max(q, X.y);
|
8464
8464
|
}
|
8465
8465
|
return [E, O, k, q];
|
8466
|
-
}, kt.prototype.toGeoJSON =
|
8466
|
+
}, kt.prototype.toGeoJSON = Pe.prototype.toGeoJSON;
|
8467
8467
|
var Pt = S.bz, er = yt;
|
8468
8468
|
function si(G) {
|
8469
8469
|
var E = new Pt();
|
@@ -8493,8 +8493,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8493
8493
|
de === void 0 && (O.push(re), Q[re] = de = O.length - 1), E.writeVarint(de);
|
8494
8494
|
var ge = typeof X;
|
8495
8495
|
ge !== "string" && ge !== "boolean" && ge !== "number" && (X = JSON.stringify(X));
|
8496
|
-
var ce = ge + ":" + X,
|
8497
|
-
|
8496
|
+
var ce = ge + ":" + X, Ie = te[ce];
|
8497
|
+
Ie === void 0 && (q.push(X), te[ce] = Ie = q.length - 1), E.writeVarint(Ie);
|
8498
8498
|
}
|
8499
8499
|
}
|
8500
8500
|
}
|
@@ -8510,8 +8510,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8510
8510
|
O === 1 && (de = X.length), E.writeVarint(ui(1, de));
|
8511
8511
|
for (var ge = O === 3 ? X.length - 1 : X.length, ce = 0; ce < ge; ce++) {
|
8512
8512
|
ce === 1 && O !== 1 && E.writeVarint(ui(2, ge - 1));
|
8513
|
-
var
|
8514
|
-
E.writeVarint(Ti(
|
8513
|
+
var Ie = X[ce].x - q, Ge = X[ce].y - Q;
|
8514
|
+
E.writeVarint(Ti(Ie)), E.writeVarint(Ti(Ge)), q += Ie, Q += Ge;
|
8515
8515
|
}
|
8516
8516
|
O === 3 && E.writeVarint(ui(7, 1));
|
8517
8517
|
}
|
@@ -8543,8 +8543,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8543
8543
|
for (let X = 0; X < E.length; X++) {
|
8544
8544
|
const de = E[X];
|
8545
8545
|
if (!de.geometry) continue;
|
8546
|
-
const [ge, ce] = de.geometry.coordinates,
|
8547
|
-
te.push(
|
8546
|
+
const [ge, ce] = de.geometry.coordinates, Ie = hn(Vi(ge)), Ge = hn(rr(ce));
|
8547
|
+
te.push(Ie, Ge, 1 / 0, X, -1, 1), this.options.reduce && te.push(0);
|
8548
8548
|
}
|
8549
8549
|
let re = this.trees[q + 1] = this._createTree(te);
|
8550
8550
|
k && console.timeEnd(Q);
|
@@ -8561,13 +8561,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8561
8561
|
const te = Math.max(-90, Math.min(90, E[3]));
|
8562
8562
|
if (E[2] - E[0] >= 360) O = -180, Q = 180;
|
8563
8563
|
else if (O > Q) {
|
8564
|
-
const ce = this.getClusters([O, q, 180, te], k),
|
8565
|
-
return ce.concat(
|
8564
|
+
const ce = this.getClusters([O, q, 180, te], k), Ie = this.getClusters([-180, q, Q, te], k);
|
8565
|
+
return ce.concat(Ie);
|
8566
8566
|
}
|
8567
8567
|
const re = this.trees[this._limitZoom(k)], X = re.range(Vi(O), rr(te), Vi(Q), rr(q)), de = re.data, ge = [];
|
8568
8568
|
for (const ce of X) {
|
8569
|
-
const
|
8570
|
-
ge.push(de[
|
8569
|
+
const Ie = this.stride * ce;
|
8570
|
+
ge.push(de[Ie + ir] > 1 ? _r(de, Ie, this.clusterProps) : this.points[de[Ie + Ei]]);
|
8571
8571
|
}
|
8572
8572
|
return ge;
|
8573
8573
|
}
|
@@ -8617,15 +8617,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8617
8617
|
_addTileFeatures(E, k, O, q, Q, te) {
|
8618
8618
|
for (const re of E) {
|
8619
8619
|
const X = re * this.stride, de = k[X + ir] > 1;
|
8620
|
-
let ge, ce,
|
8621
|
-
if (de) ge = Dn(k, X, this.clusterProps), ce = k[X],
|
8620
|
+
let ge, ce, Ie;
|
8621
|
+
if (de) ge = Dn(k, X, this.clusterProps), ce = k[X], Ie = k[X + 1];
|
8622
8622
|
else {
|
8623
8623
|
const nt = this.points[k[X + Ei]];
|
8624
8624
|
ge = nt.properties;
|
8625
8625
|
const [mt, rt] = nt.geometry.coordinates;
|
8626
|
-
ce = Vi(mt),
|
8626
|
+
ce = Vi(mt), Ie = rr(rt);
|
8627
8627
|
}
|
8628
|
-
const Ge = { type: 1, geometry: [[Math.round(this.options.extent * (ce * Q - O)), Math.round(this.options.extent * (
|
8628
|
+
const Ge = { type: 1, geometry: [[Math.round(this.options.extent * (ce * Q - O)), Math.round(this.options.extent * (Ie * Q - q))]], tags: ge };
|
8629
8629
|
let He;
|
8630
8630
|
He = de || this.options.generateId ? k[X + Ei] : this.points[k[X + Ei]].id, He !== void 0 && (Ge.id = He), te.features.push(Ge);
|
8631
8631
|
}
|
@@ -8638,14 +8638,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8638
8638
|
for (let ce = 0; ce < X.length; ce += ge) {
|
8639
8639
|
if (X[ce + 2] <= k) continue;
|
8640
8640
|
X[ce + 2] = k;
|
8641
|
-
const
|
8641
|
+
const Ie = X[ce], Ge = X[ce + 1], He = E.within(X[ce], X[ce + 1], re), nt = X[ce + ir];
|
8642
8642
|
let mt = nt;
|
8643
8643
|
for (const rt of He) {
|
8644
8644
|
const Mt = rt * ge;
|
8645
8645
|
X[Mt + 2] > k && (mt += X[Mt + ir]);
|
8646
8646
|
}
|
8647
8647
|
if (mt > nt && mt >= te) {
|
8648
|
-
let rt, Mt =
|
8648
|
+
let rt, Mt = Ie * nt, Gt = Ge * nt, Qt = -1;
|
8649
8649
|
const at = ((ce / ge | 0) << 5) + (k + 1) + this.points.length;
|
8650
8650
|
for (const Tt of He) {
|
8651
8651
|
const jt = Tt * ge;
|
@@ -8707,12 +8707,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8707
8707
|
const Q = E + (k - E >> 1);
|
8708
8708
|
let te, re = k - E;
|
8709
8709
|
const X = G[E], de = G[E + 1], ge = G[k], ce = G[k + 1];
|
8710
|
-
for (let
|
8711
|
-
const Ge = os(G[
|
8712
|
-
if (Ge > q) te =
|
8710
|
+
for (let Ie = E + 3; Ie < k; Ie += 3) {
|
8711
|
+
const Ge = os(G[Ie], G[Ie + 1], X, de, ge, ce);
|
8712
|
+
if (Ge > q) te = Ie, q = Ge;
|
8713
8713
|
else if (Ge === q) {
|
8714
|
-
const He = Math.abs(
|
8715
|
-
He < re && (te =
|
8714
|
+
const He = Math.abs(Ie - Q);
|
8715
|
+
He < re && (te = Ie, re = He);
|
8716
8716
|
}
|
8717
8717
|
}
|
8718
8718
|
q > O && (te - E > 3 && dn(G, E, te, O), G[te + 2] = q, k - te > 3 && dn(G, te, k, O));
|
@@ -8799,12 +8799,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8799
8799
|
for (const de of G) {
|
8800
8800
|
const ge = de.geometry;
|
8801
8801
|
let ce = de.type;
|
8802
|
-
const
|
8803
|
-
if (
|
8802
|
+
const Ie = q === 0 ? de.minX : de.minY, Ge = q === 0 ? de.maxX : de.maxY;
|
8803
|
+
if (Ie >= k && Ge < O) {
|
8804
8804
|
X.push(de);
|
8805
8805
|
continue;
|
8806
8806
|
}
|
8807
|
-
if (Ge < k ||
|
8807
|
+
if (Ge < k || Ie >= O) continue;
|
8808
8808
|
let He = [];
|
8809
8809
|
if (ce === "Point" || ce === "MultiPoint") ls(ge, He, k, O, q);
|
8810
8810
|
else if (ce === "LineString") Hr(ge, He, k, O, q, !1, re.lineMetrics);
|
@@ -8839,9 +8839,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8839
8839
|
let ii = !1;
|
8840
8840
|
te && (de = Math.sqrt(Math.pow(rt - Qt, 2) + Math.pow(Mt - at, 2))), Tt < k ? jt > k && (ge = X(re, rt, Mt, Qt, at, k), te && (re.start = ce + de * ge)) : Tt > O ? jt < O && (ge = X(re, rt, Mt, Qt, at, O), te && (re.start = ce + de * ge)) : Xi(re, rt, Mt, Gt), jt < k && Tt >= k && (ge = X(re, rt, Mt, Qt, at, k), ii = !0), jt > O && Tt <= O && (ge = X(re, rt, Mt, Qt, at, O), ii = !0), !Q && ii && (te && (re.end = ce + de * ge), E.push(re), re = Mr(G)), te && (ce += de);
|
8841
8841
|
}
|
8842
|
-
let
|
8843
|
-
const Ge = G[
|
8844
|
-
nt >= k && nt <= O && Xi(re, Ge, He, G[
|
8842
|
+
let Ie = G.length - 3;
|
8843
|
+
const Ge = G[Ie], He = G[Ie + 1], nt = q === 0 ? Ge : He;
|
8844
|
+
nt >= k && nt <= O && Xi(re, Ge, He, G[Ie + 2]), Ie = re.length - 3, Q && Ie >= 3 && (re[Ie] !== re[0] || re[Ie + 1] !== re[1]) && Xi(re, re[0], re[1], re[2]), re.length && E.push(re);
|
8845
8845
|
}
|
8846
8846
|
function Mr(G) {
|
8847
8847
|
const E = [];
|
@@ -8937,10 +8937,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8937
8937
|
for (let X = 0; X < E.length; X += 3) (O === 0 || E[X + 2] > te) && (k.numSimplified++, re.push(E[X], E[X + 1])), k.numPoints++;
|
8938
8938
|
q && function(X, de) {
|
8939
8939
|
let ge = 0;
|
8940
|
-
for (let ce = 0,
|
8941
|
-
if (ge > 0 === de) for (let ce = 0,
|
8940
|
+
for (let ce = 0, Ie = X.length, Ge = Ie - 2; ce < Ie; Ge = ce, ce += 2) ge += (X[ce] - X[Ge]) * (X[ce + 1] + X[Ge + 1]);
|
8941
|
+
if (ge > 0 === de) for (let ce = 0, Ie = X.length; ce < Ie / 2; ce += 2) {
|
8942
8942
|
const Ge = X[ce], He = X[ce + 1];
|
8943
|
-
X[ce] = X[
|
8943
|
+
X[ce] = X[Ie - 2 - ce], X[ce + 1] = X[Ie - 1 - ce], X[Ie - 2 - ce] = Ge, X[Ie - 1 - ce] = He;
|
8944
8944
|
}
|
8945
8945
|
}(re, Q), G.push(re);
|
8946
8946
|
}
|
@@ -8970,9 +8970,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
8970
8970
|
const X = [E, k, O, q], de = this.options, ge = de.debug;
|
8971
8971
|
for (; X.length; ) {
|
8972
8972
|
q = X.pop(), O = X.pop(), k = X.pop(), E = X.pop();
|
8973
|
-
const ce = 1 << k,
|
8974
|
-
let Ge = this.tiles[
|
8975
|
-
if (!Ge && (ge > 1 && console.time("creation"), Ge = this.tiles[
|
8973
|
+
const ce = 1 << k, Ie = nr(k, O, q);
|
8974
|
+
let Ge = this.tiles[Ie];
|
8975
|
+
if (!Ge && (ge > 1 && console.time("creation"), Ge = this.tiles[Ie] = Wr(E, k, O, q, de), this.tileCoords.push({ z: k, x: O, y: q }), ge)) {
|
8976
8976
|
ge > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)", k, O, q, Ge.numFeatures, Ge.numPoints, Ge.numSimplified), console.timeEnd("creation"));
|
8977
8977
|
const ii = `z${k}`;
|
8978
8978
|
this.stats[ii] = (this.stats[ii] || 0) + 1, this.total++;
|
@@ -9000,9 +9000,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9000
9000
|
const re = 1 << E, X = nr(E, k = k + re & re - 1, O);
|
9001
9001
|
if (this.tiles[X]) return Ii(this.tiles[X], Q);
|
9002
9002
|
te > 1 && console.log("drilling down to z%d-%d-%d", E, k, O);
|
9003
|
-
let de, ge = E, ce = k,
|
9004
|
-
for (; !de && ge > 0; ) ge--, ce >>= 1,
|
9005
|
-
return de && de.source ? (te > 1 && (console.log("found parent tile z%d-%d-%d", ge, ce,
|
9003
|
+
let de, ge = E, ce = k, Ie = O;
|
9004
|
+
for (; !de && ge > 0; ) ge--, ce >>= 1, Ie >>= 1, de = this.tiles[nr(ge, ce, Ie)];
|
9005
|
+
return de && de.source ? (te > 1 && (console.log("found parent tile z%d-%d-%d", ge, ce, Ie), console.time("drilling down")), this.splitTile(de.source, ge, ce, Ie, E, k, O), te > 1 && console.timeEnd("drilling down"), this.tiles[X] ? Ii(this.tiles[X], Q) : null) : null;
|
9006
9006
|
}
|
9007
9007
|
}
|
9008
9008
|
function nr(G, E, k) {
|
@@ -9085,19 +9085,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9085
9085
|
try {
|
9086
9086
|
this._pendingData = this.loadAndProcessGeoJSON(E, this._pendingRequest), this._geoJSONIndex = E.cluster ? new qr(function({ superclusterOptions: te, clusterProperties: re }) {
|
9087
9087
|
if (!re || !te) return te;
|
9088
|
-
const X = {}, de = {}, ge = { accumulated: null, zoom: 0 }, ce = { properties: null },
|
9089
|
-
for (const Ge of
|
9088
|
+
const X = {}, de = {}, ge = { accumulated: null, zoom: 0 }, ce = { properties: null }, Ie = Object.keys(re);
|
9089
|
+
for (const Ge of Ie) {
|
9090
9090
|
const [He, nt] = re[Ge], mt = S.bB(nt), rt = S.bB(typeof He == "string" ? [He, ["accumulated"], ["get", Ge]] : He);
|
9091
9091
|
X[Ge] = mt.value, de[Ge] = rt.value;
|
9092
9092
|
}
|
9093
9093
|
return te.map = (Ge) => {
|
9094
9094
|
ce.properties = Ge;
|
9095
9095
|
const He = {};
|
9096
|
-
for (const nt of
|
9096
|
+
for (const nt of Ie) He[nt] = X[nt].evaluate(ge, ce);
|
9097
9097
|
return He;
|
9098
9098
|
}, te.reduce = (Ge, He) => {
|
9099
9099
|
ce.properties = He;
|
9100
|
-
for (const nt of
|
9100
|
+
for (const nt of Ie) ge.accumulated = Ge[nt], Ge[nt] = de[nt].evaluate(ge, ce);
|
9101
9101
|
}, te;
|
9102
9102
|
}(E)).load((yield this._pendingData).features) : (q = yield this._pendingData, new Mi(q, E.geojsonVtOptions)), this.loaded = {};
|
9103
9103
|
const Q = {};
|
@@ -9153,16 +9153,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9153
9153
|
var re, X, de, ge;
|
9154
9154
|
if (Q.removeAll && q.clear(), Q.remove) for (const ce of Q.remove) q.delete(ce);
|
9155
9155
|
if (Q.add) for (const ce of Q.add) {
|
9156
|
-
const
|
9157
|
-
|
9156
|
+
const Ie = it(ce, te);
|
9157
|
+
Ie != null && q.set(Ie, ce);
|
9158
9158
|
}
|
9159
9159
|
if (Q.update) for (const ce of Q.update) {
|
9160
|
-
let
|
9161
|
-
if (
|
9160
|
+
let Ie = q.get(ce.id);
|
9161
|
+
if (Ie == null) continue;
|
9162
9162
|
const Ge = !ce.removeAllProperties && (((re = ce.removeProperties) === null || re === void 0 ? void 0 : re.length) > 0 || ((X = ce.addOrUpdateProperties) === null || X === void 0 ? void 0 : X.length) > 0);
|
9163
|
-
if ((ce.newGeometry || ce.removeAllProperties || Ge) && (
|
9164
|
-
else if (((de = ce.removeProperties) === null || de === void 0 ? void 0 : de.length) > 0) for (const He of ce.removeProperties) Object.prototype.hasOwnProperty.call(
|
9165
|
-
if (((ge = ce.addOrUpdateProperties) === null || ge === void 0 ? void 0 : ge.length) > 0) for (const { key: He, value: nt } of ce.addOrUpdateProperties)
|
9163
|
+
if ((ce.newGeometry || ce.removeAllProperties || Ge) && (Ie = Object.assign({}, Ie), q.set(ce.id, Ie), Ge && (Ie.properties = Object.assign({}, Ie.properties))), ce.newGeometry && (Ie.geometry = ce.newGeometry), ce.removeAllProperties) Ie.properties = {};
|
9164
|
+
else if (((de = ce.removeProperties) === null || de === void 0 ? void 0 : de.length) > 0) for (const He of ce.removeProperties) Object.prototype.hasOwnProperty.call(Ie.properties, He) && delete Ie.properties[He];
|
9165
|
+
if (((ge = ce.addOrUpdateProperties) === null || ge === void 0 ? void 0 : ge.length) > 0) for (const { key: He, value: nt } of ce.addOrUpdateProperties) Ie.properties[He] = nt;
|
9166
9166
|
}
|
9167
9167
|
}(this._dataUpdateable, E.dataDiff, O), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) };
|
9168
9168
|
});
|
@@ -9356,7 +9356,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9356
9356
|
}
|
9357
9357
|
u.deleteTexture(t), Be = !0;
|
9358
9358
|
}
|
9359
|
-
var
|
9359
|
+
var Pe;
|
9360
9360
|
typeof document < "u" && (Xe = document.createElement("img"), Xe.onload = () => {
|
9361
9361
|
je && St(je), je = null, lt = !0;
|
9362
9362
|
}, Xe.onerror = () => {
|
@@ -9410,7 +9410,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9410
9410
|
L.onerror = L.onload = null, b.signal.aborted || A(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
|
9411
9411
|
}, L.src = F;
|
9412
9412
|
});
|
9413
|
-
}(
|
9413
|
+
}(Pe || (Pe = {})), Pe.resetRequestQueue();
|
9414
9414
|
class yt {
|
9415
9415
|
constructor(t) {
|
9416
9416
|
this._transformRequestFn = t;
|
@@ -10171,7 +10171,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10171
10171
|
const n = t.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme);
|
10172
10172
|
t.abortController = new AbortController();
|
10173
10173
|
try {
|
10174
|
-
const o = yield
|
10174
|
+
const o = yield Pe.getImage(this.map._requestManager.transformRequest(n, "Tile"), t.abortController, this.map._refreshExpiredTiles);
|
10175
10175
|
if (delete t.abortController, t.aborted) return void (t.state = "unloaded");
|
10176
10176
|
if (o && o.data) {
|
10177
10177
|
this.map._refreshExpiredTiles && o.cacheControl && o.expires && t.setExpiryData({ cacheControl: o.cacheControl, expires: o.expires });
|
@@ -10207,7 +10207,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10207
10207
|
const n = t.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme), o = this.map._requestManager.transformRequest(n, "Tile");
|
10208
10208
|
t.neighboringTiles = this._getNeighboringTiles(t.tileID), t.abortController = new AbortController();
|
10209
10209
|
try {
|
10210
|
-
const a = yield
|
10210
|
+
const a = yield Pe.getImage(o, t.abortController, this.map._refreshExpiredTiles);
|
10211
10211
|
if (delete t.abortController, t.aborted) return void (t.state = "unloaded");
|
10212
10212
|
if (a && a.data) {
|
10213
10213
|
const h = a.data;
|
@@ -10344,7 +10344,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
10344
10344
|
return c._(this, void 0, void 0, function* () {
|
10345
10345
|
this._loaded = !1, this.fire(new c.k("dataloading", { dataType: "source" })), this.url = this.options.url, this._request = new AbortController();
|
10346
10346
|
try {
|
10347
|
-
const n = yield
|
10347
|
+
const n = yield Pe.getImage(this.map._requestManager.transformRequest(this.url, "Image"), this._request);
|
10348
10348
|
this._request = null, this._loaded = !0, n && n.data && (this.image = n.data, t && (this.coordinates = t), this._finishLoading());
|
10349
10349
|
} catch (n) {
|
10350
10350
|
this._request = null, this._loaded = !0, this.fire(new c.j(n));
|
@@ -11384,9 +11384,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11384
11384
|
o ? u.text.dynamicLayoutVertexBuffer.updateData(K) : u.icon.dynamicLayoutVertexBuffer.updateData(K);
|
11385
11385
|
}
|
11386
11386
|
function q(u, t, n, o, a, h, m, _) {
|
11387
|
-
const v = h.glyphStartIndex + h.numGlyphs, b = h.lineStartIndex, P = h.lineStartIndex + h.lineLength, A = t.getoffsetX(h.glyphStartIndex), L = t.getoffsetX(v - 1), F =
|
11387
|
+
const v = h.glyphStartIndex + h.numGlyphs, b = h.lineStartIndex, P = h.lineStartIndex + h.lineLength, A = t.getoffsetX(h.glyphStartIndex), L = t.getoffsetX(v - 1), F = Ie(u * A, n, o, a, h.segment, b, P, _, m);
|
11388
11388
|
if (!F) return null;
|
11389
|
-
const V =
|
11389
|
+
const V = Ie(u * L, n, o, a, h.segment, b, P, _, m);
|
11390
11390
|
return V ? _.projectionCache.anyProjectionOccluded ? null : { first: F, last: V } : null;
|
11391
11391
|
}
|
11392
11392
|
function Q(u, t, n, o) {
|
@@ -11404,7 +11404,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11404
11404
|
if (ne) return ne;
|
11405
11405
|
}
|
11406
11406
|
V = [K.first];
|
11407
|
-
for (let ne = t.glyphStartIndex + 1; ne < Z - 1; ne++) V.push(
|
11407
|
+
for (let ne = t.glyphStartIndex + 1; ne < Z - 1; ne++) V.push(Ie(A * _.getoffsetX(ne), L, F, o, t.segment, U, H, u, P));
|
11408
11408
|
V.push(K.last);
|
11409
11409
|
} else {
|
11410
11410
|
if (a && !o) {
|
@@ -11413,7 +11413,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11413
11413
|
}(u.tileAnchorPoint, K, U, 0, h, u), ne = Q(t.writingMode, U, ee, b);
|
11414
11414
|
if (ne) return ne;
|
11415
11415
|
}
|
11416
|
-
const Z =
|
11416
|
+
const Z = Ie(A * _.getoffsetX(t.glyphStartIndex), L, F, o, t.segment, t.lineStartIndex, t.lineStartIndex + t.lineLength, u, P);
|
11417
11417
|
if (!Z || u.projectionCache.anyProjectionOccluded) return { notEnoughRoom: !0 };
|
11418
11418
|
V = [Z];
|
11419
11419
|
}
|
@@ -11449,7 +11449,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11449
11449
|
const P = X(u + v.direction, _, v), A = ge(P.sub(n), m, v.direction), L = n.add(A), F = P.add(A);
|
11450
11450
|
return _.projectionCache.offsets[u] = c.al(h, b, L, F) || b, _.projectionCache.offsets[u];
|
11451
11451
|
}
|
11452
|
-
function
|
11452
|
+
function Ie(u, t, n, o, a, h, m, _, v) {
|
11453
11453
|
const b = o ? u - t : u + t;
|
11454
11454
|
let P = b > 0 ? 1 : -1, A = 0;
|
11455
11455
|
o && (P *= -1, A = Math.PI), P < 0 && (A += Math.PI);
|
@@ -12162,7 +12162,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
12162
12162
|
const Z = m.transformRequest(tr(V, P, ".json"), "SpriteJSON");
|
12163
12163
|
A[F] = c.h(Z, v);
|
12164
12164
|
const U = m.transformRequest(tr(V, P, ".png"), "SpriteImage");
|
12165
|
-
L[F] =
|
12165
|
+
L[F] = Pe.getImage(U, v);
|
12166
12166
|
}
|
12167
12167
|
return yield Promise.all([...Object.values(A), ...Object.values(L)]), function(F, V) {
|
12168
12168
|
return c._(this, void 0, void 0, function* () {
|
@@ -17245,7 +17245,7 @@ uniform ${P} ${A} u_${L};
|
|
17245
17245
|
if (n.target === this._container) return this._container.scrollTop = 0, this._container.scrollLeft = 0, !1;
|
17246
17246
|
}, this._onWindowOnline = () => {
|
17247
17247
|
this._update();
|
17248
|
-
}, this._interactive = t.interactive, this._maxTileCacheSize = t.maxTileCacheSize, this._maxTileCacheZoomLevels = t.maxTileCacheZoomLevels, this._failIfMajorPerformanceCaveat = t.failIfMajorPerformanceCaveat === !0, this._preserveDrawingBuffer = t.preserveDrawingBuffer === !0, this._antialias = t.antialias === !0, this._trackResize = t.trackResize === !0, this._bearingSnap = t.bearingSnap, this._refreshExpiredTiles = t.refreshExpiredTiles === !0, this._fadeDuration = t.fadeDuration, this._crossSourceCollisions = t.crossSourceCollisions === !0, this._collectResourceTiming = t.collectResourceTiming === !0, this._locale = Object.assign(Object.assign({}, ze), t.locale), this._clickTolerance = t.clickTolerance, this._overridePixelRatio = t.pixelRatio, this._maxCanvasSize = t.maxCanvasSize, this.transformCameraUpdate = t.transformCameraUpdate, this.cancelPendingTileRequestsWhileZooming = t.cancelPendingTileRequestsWhileZooming === !0, this._imageQueueHandle =
|
17248
|
+
}, this._interactive = t.interactive, this._maxTileCacheSize = t.maxTileCacheSize, this._maxTileCacheZoomLevels = t.maxTileCacheZoomLevels, this._failIfMajorPerformanceCaveat = t.failIfMajorPerformanceCaveat === !0, this._preserveDrawingBuffer = t.preserveDrawingBuffer === !0, this._antialias = t.antialias === !0, this._trackResize = t.trackResize === !0, this._bearingSnap = t.bearingSnap, this._refreshExpiredTiles = t.refreshExpiredTiles === !0, this._fadeDuration = t.fadeDuration, this._crossSourceCollisions = t.crossSourceCollisions === !0, this._collectResourceTiming = t.collectResourceTiming === !0, this._locale = Object.assign(Object.assign({}, ze), t.locale), this._clickTolerance = t.clickTolerance, this._overridePixelRatio = t.pixelRatio, this._maxCanvasSize = t.maxCanvasSize, this.transformCameraUpdate = t.transformCameraUpdate, this.cancelPendingTileRequestsWhileZooming = t.cancelPendingTileRequestsWhileZooming === !0, this._imageQueueHandle = Pe.addThrottleControl(() => this.isMoving()), this._requestManager = new yt(t.transformRequest), typeof t.container == "string") {
|
17249
17249
|
if (this._container = document.getElementById(t.container), !this._container) throw new Error(`Container '${t.container}' not found.`);
|
17250
17250
|
} else {
|
17251
17251
|
if (!(t.container instanceof HTMLElement)) throw new Error("Invalid type: 'container' must be a String or HTMLElement.");
|
@@ -17567,7 +17567,7 @@ uniform ${P} ${A} u_${L};
|
|
17567
17567
|
this.style.removeImage(u);
|
17568
17568
|
}
|
17569
17569
|
loadImage(u) {
|
17570
|
-
return
|
17570
|
+
return Pe.getImage(this._requestManager.transformRequest(u, "Image"), new AbortController());
|
17571
17571
|
}
|
17572
17572
|
listImages() {
|
17573
17573
|
return this.style.listImages();
|
@@ -17726,7 +17726,7 @@ uniform ${P} ${A} u_${L};
|
|
17726
17726
|
var u;
|
17727
17727
|
this._hash && this._hash.remove();
|
17728
17728
|
for (const n of this._controls) n.onRemove(this);
|
17729
|
-
this._controls = [], this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._renderTaskQueue.clear(), this.painter.destroy(), this.handlers.destroy(), delete this.handlers, this.setStyle(null), typeof window < "u" && removeEventListener("online", this._onWindowOnline, !1),
|
17729
|
+
this._controls = [], this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._renderTaskQueue.clear(), this.painter.destroy(), this.handlers.destroy(), delete this.handlers, this.setStyle(null), typeof window < "u" && removeEventListener("online", this._onWindowOnline, !1), Pe.removeThrottleControl(this._imageQueueHandle), (u = this._resizeObserver) === null || u === void 0 || u.disconnect();
|
17730
17730
|
const t = this.painter.context.gl.getExtension("WEBGL_lose_context");
|
17731
17731
|
t != null && t.loseContext && t.loseContext(), this._canvas.removeEventListener("webglcontextrestored", this._contextRestored, !1), this._canvas.removeEventListener("webglcontextlost", this._contextLost, !1), oe.remove(this._canvasContainer), oe.remove(this._controlContainer), this._container.classList.remove("maplibregl-map"), c.be.clearMetrics(), this._removed = !0, this.fire(new c.k("remove"));
|
17732
17732
|
}
|
@@ -17962,10 +17962,10 @@ uniform ${P} ${A} u_${L};
|
|
17962
17962
|
var J = M;
|
17963
17963
|
return J;
|
17964
17964
|
});
|
17965
|
-
})(
|
17966
|
-
var
|
17967
|
-
const Nh = /* @__PURE__ */
|
17968
|
-
function
|
17965
|
+
})(sp);
|
17966
|
+
var Fm = sp.exports;
|
17967
|
+
const Nh = /* @__PURE__ */ Rm(Fm);
|
17968
|
+
function Bm(y) {
|
17969
17969
|
return [
|
17970
17970
|
{
|
17971
17971
|
type: "fill",
|
@@ -17977,7 +17977,7 @@ function Fm(y) {
|
|
17977
17977
|
}
|
17978
17978
|
];
|
17979
17979
|
}
|
17980
|
-
function
|
17980
|
+
function Om(y) {
|
17981
17981
|
return [
|
17982
17982
|
{
|
17983
17983
|
type: "line",
|
@@ -17988,7 +17988,7 @@ function Bm(y) {
|
|
17988
17988
|
}
|
17989
17989
|
];
|
17990
17990
|
}
|
17991
|
-
function
|
17991
|
+
function Vm(y) {
|
17992
17992
|
return [
|
17993
17993
|
{
|
17994
17994
|
type: "circle",
|
@@ -18004,7 +18004,7 @@ function Om(y) {
|
|
18004
18004
|
function Nd(y) {
|
18005
18005
|
if (!y) return null;
|
18006
18006
|
const T = y.type || "point";
|
18007
|
-
return T === "polygon" ?
|
18007
|
+
return T === "polygon" ? Bm(y) : T === "line" ? Om(y) : Vm(y);
|
18008
18008
|
}
|
18009
18009
|
const Wh = {
|
18010
18010
|
data() {
|
@@ -18125,47 +18125,47 @@ const Wh = {
|
|
18125
18125
|
for (const [D, N] of T)
|
18126
18126
|
M[D] = N;
|
18127
18127
|
return M;
|
18128
|
-
},
|
18128
|
+
}, Nm = {}, jm = {
|
18129
18129
|
class: "w-48 mx-auto mb-4",
|
18130
18130
|
width: "178",
|
18131
18131
|
height: "90",
|
18132
18132
|
viewBox: "0 0 178 90",
|
18133
18133
|
fill: "none",
|
18134
18134
|
xmlns: "http://www.w3.org/2000/svg"
|
18135
|
-
},
|
18136
|
-
|
18135
|
+
}, Um = /* @__PURE__ */ ip('<rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-stone-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-stone-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter2)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-stone-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-stone-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter2" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs>', 12), $m = [
|
18136
|
+
Um
|
18137
18137
|
];
|
18138
|
-
function
|
18139
|
-
return wt(), qt("svg",
|
18138
|
+
function qm(y, T) {
|
18139
|
+
return wt(), qt("svg", jm, $m);
|
18140
18140
|
}
|
18141
|
-
const
|
18142
|
-
function
|
18141
|
+
const Zm = /* @__PURE__ */ cn(Nm, [["render", qm]]);
|
18142
|
+
function ap(y, T) {
|
18143
18143
|
return function() {
|
18144
18144
|
return y.apply(T, arguments);
|
18145
18145
|
};
|
18146
18146
|
}
|
18147
|
-
const { toString:
|
18148
|
-
const M =
|
18147
|
+
const { toString: Gm } = Object.prototype, { getPrototypeOf: Xh } = Object, Sc = /* @__PURE__ */ ((y) => (T) => {
|
18148
|
+
const M = Gm.call(T);
|
18149
18149
|
return y[M] || (y[M] = M.slice(8, -1).toLowerCase());
|
18150
18150
|
})(/* @__PURE__ */ Object.create(null)), $r = (y) => (y = y.toLowerCase(), (T) => Sc(T) === y), Tc = (y) => (T) => typeof T === y, { isArray: jo } = Array, al = Tc("undefined");
|
18151
|
-
function
|
18151
|
+
function Hm(y) {
|
18152
18152
|
return y !== null && !al(y) && y.constructor !== null && !al(y.constructor) && mr(y.constructor.isBuffer) && y.constructor.isBuffer(y);
|
18153
18153
|
}
|
18154
|
-
const
|
18155
|
-
function
|
18154
|
+
const lp = $r("ArrayBuffer");
|
18155
|
+
function Wm(y) {
|
18156
18156
|
let T;
|
18157
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? T = ArrayBuffer.isView(y) : T = y && y.buffer &&
|
18157
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? T = ArrayBuffer.isView(y) : T = y && y.buffer && lp(y.buffer), T;
|
18158
18158
|
}
|
18159
|
-
const
|
18159
|
+
const Xm = Tc("string"), mr = Tc("function"), cp = Tc("number"), Ic = (y) => y !== null && typeof y == "object", Jm = (y) => y === !0 || y === !1, gc = (y) => {
|
18160
18160
|
if (Sc(y) !== "object")
|
18161
18161
|
return !1;
|
18162
18162
|
const T = Xh(y);
|
18163
18163
|
return (T === null || T === Object.prototype || Object.getPrototypeOf(T) === null) && !(Symbol.toStringTag in y) && !(Symbol.iterator in y);
|
18164
|
-
},
|
18164
|
+
}, Km = $r("Date"), Ym = $r("File"), Qm = $r("Blob"), eg = $r("FileList"), tg = (y) => Ic(y) && mr(y.pipe), ig = (y) => {
|
18165
18165
|
let T;
|
18166
18166
|
return y && (typeof FormData == "function" && y instanceof FormData || mr(y.append) && ((T = Sc(y)) === "formdata" || // detect form-data instance
|
18167
18167
|
T === "object" && mr(y.toString) && y.toString() === "[object FormData]"));
|
18168
|
-
},
|
18168
|
+
}, rg = $r("URLSearchParams"), [ng, sg, og, ag] = ["ReadableStream", "Request", "Response", "Headers"].map($r), lg = (y) => y.trim ? y.trim() : y.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
18169
18169
|
function ll(y, T, { allOwnKeys: M = !1 } = {}) {
|
18170
18170
|
if (y === null || typeof y > "u")
|
18171
18171
|
return;
|
@@ -18180,7 +18180,7 @@ function ll(y, T, { allOwnKeys: M = !1 } = {}) {
|
|
18180
18180
|
c = J[D], T.call(null, y[c], c, y);
|
18181
18181
|
}
|
18182
18182
|
}
|
18183
|
-
function
|
18183
|
+
function hp(y, T) {
|
18184
18184
|
T = T.toLowerCase();
|
18185
18185
|
const M = Object.keys(y);
|
18186
18186
|
let D = M.length, N;
|
@@ -18189,23 +18189,23 @@ function cp(y, T) {
|
|
18189
18189
|
return N;
|
18190
18190
|
return null;
|
18191
18191
|
}
|
18192
|
-
const Us = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
18192
|
+
const Us = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, up = (y) => !al(y) && y !== Us;
|
18193
18193
|
function jh() {
|
18194
|
-
const { caseless: y } =
|
18195
|
-
const J = y &&
|
18194
|
+
const { caseless: y } = up(this) && this || {}, T = {}, M = (D, N) => {
|
18195
|
+
const J = y && hp(T, N) || N;
|
18196
18196
|
gc(T[J]) && gc(D) ? T[J] = jh(T[J], D) : gc(D) ? T[J] = jh({}, D) : jo(D) ? T[J] = D.slice() : T[J] = D;
|
18197
18197
|
};
|
18198
18198
|
for (let D = 0, N = arguments.length; D < N; D++)
|
18199
18199
|
arguments[D] && ll(arguments[D], M);
|
18200
18200
|
return T;
|
18201
18201
|
}
|
18202
|
-
const
|
18203
|
-
M && mr(N) ? y[J] =
|
18204
|
-
}, { allOwnKeys: D }), y),
|
18202
|
+
const cg = (y, T, M, { allOwnKeys: D } = {}) => (ll(T, (N, J) => {
|
18203
|
+
M && mr(N) ? y[J] = ap(N, M) : y[J] = N;
|
18204
|
+
}, { allOwnKeys: D }), y), hg = (y) => (y.charCodeAt(0) === 65279 && (y = y.slice(1)), y), ug = (y, T, M, D) => {
|
18205
18205
|
y.prototype = Object.create(T.prototype, D), y.prototype.constructor = y, Object.defineProperty(y, "super", {
|
18206
18206
|
value: T.prototype
|
18207
18207
|
}), M && Object.assign(y.prototype, M);
|
18208
|
-
},
|
18208
|
+
}, dg = (y, T, M, D) => {
|
18209
18209
|
let N, J, S;
|
18210
18210
|
const c = {};
|
18211
18211
|
if (T = T || {}, y == null) return T;
|
@@ -18215,45 +18215,45 @@ const lg = (y, T, M, { allOwnKeys: D } = {}) => (ll(T, (N, J) => {
|
|
18215
18215
|
y = M !== !1 && Xh(y);
|
18216
18216
|
} while (y && (!M || M(y, T)) && y !== Object.prototype);
|
18217
18217
|
return T;
|
18218
|
-
},
|
18218
|
+
}, pg = (y, T, M) => {
|
18219
18219
|
y = String(y), (M === void 0 || M > y.length) && (M = y.length), M -= T.length;
|
18220
18220
|
const D = y.indexOf(T, M);
|
18221
18221
|
return D !== -1 && D === M;
|
18222
|
-
},
|
18222
|
+
}, fg = (y) => {
|
18223
18223
|
if (!y) return null;
|
18224
18224
|
if (jo(y)) return y;
|
18225
18225
|
let T = y.length;
|
18226
|
-
if (!
|
18226
|
+
if (!cp(T)) return null;
|
18227
18227
|
const M = new Array(T);
|
18228
18228
|
for (; T-- > 0; )
|
18229
18229
|
M[T] = y[T];
|
18230
18230
|
return M;
|
18231
|
-
},
|
18231
|
+
}, mg = /* @__PURE__ */ ((y) => (T) => y && T instanceof y)(typeof Uint8Array < "u" && Xh(Uint8Array)), gg = (y, T) => {
|
18232
18232
|
const D = (y && y[Symbol.iterator]).call(y);
|
18233
18233
|
let N;
|
18234
18234
|
for (; (N = D.next()) && !N.done; ) {
|
18235
18235
|
const J = N.value;
|
18236
18236
|
T.call(y, J[0], J[1]);
|
18237
18237
|
}
|
18238
|
-
},
|
18238
|
+
}, _g = (y, T) => {
|
18239
18239
|
let M;
|
18240
18240
|
const D = [];
|
18241
18241
|
for (; (M = y.exec(T)) !== null; )
|
18242
18242
|
D.push(M);
|
18243
18243
|
return D;
|
18244
|
-
},
|
18244
|
+
}, yg = $r("HTMLFormElement"), xg = (y) => y.toLowerCase().replace(
|
18245
18245
|
/[-_\s]([a-z\d])(\w*)/g,
|
18246
18246
|
function(M, D, N) {
|
18247
18247
|
return D.toUpperCase() + N;
|
18248
18248
|
}
|
18249
|
-
), jd = (({ hasOwnProperty: y }) => (T, M) => y.call(T, M))(Object.prototype),
|
18249
|
+
), jd = (({ hasOwnProperty: y }) => (T, M) => y.call(T, M))(Object.prototype), vg = $r("RegExp"), dp = (y, T) => {
|
18250
18250
|
const M = Object.getOwnPropertyDescriptors(y), D = {};
|
18251
18251
|
ll(M, (N, J) => {
|
18252
18252
|
let S;
|
18253
18253
|
(S = T(N, J, y)) !== !1 && (D[J] = S || N);
|
18254
18254
|
}), Object.defineProperties(y, D);
|
18255
|
-
},
|
18256
|
-
|
18255
|
+
}, bg = (y) => {
|
18256
|
+
dp(y, (T, M) => {
|
18257
18257
|
if (mr(y) && ["arguments", "caller", "callee"].indexOf(M) !== -1)
|
18258
18258
|
return !1;
|
18259
18259
|
const D = y[M];
|
@@ -18267,29 +18267,29 @@ const lg = (y, T, M, { allOwnKeys: D } = {}) => (ll(T, (N, J) => {
|
|
18267
18267
|
});
|
18268
18268
|
}
|
18269
18269
|
});
|
18270
|
-
},
|
18270
|
+
}, wg = (y, T) => {
|
18271
18271
|
const M = {}, D = (N) => {
|
18272
18272
|
N.forEach((J) => {
|
18273
18273
|
M[J] = !0;
|
18274
18274
|
});
|
18275
18275
|
};
|
18276
18276
|
return jo(y) ? D(y) : D(String(y).split(T)), M;
|
18277
|
-
},
|
18278
|
-
},
|
18277
|
+
}, Sg = () => {
|
18278
|
+
}, Tg = (y, T) => y != null && Number.isFinite(y = +y) ? y : T, Fh = "abcdefghijklmnopqrstuvwxyz", Ud = "0123456789", pp = {
|
18279
18279
|
DIGIT: Ud,
|
18280
18280
|
ALPHA: Fh,
|
18281
18281
|
ALPHA_DIGIT: Fh + Fh.toUpperCase() + Ud
|
18282
|
-
},
|
18282
|
+
}, Ig = (y = 16, T = pp.ALPHA_DIGIT) => {
|
18283
18283
|
let M = "";
|
18284
18284
|
const { length: D } = T;
|
18285
18285
|
for (; y--; )
|
18286
18286
|
M += T[Math.random() * D | 0];
|
18287
18287
|
return M;
|
18288
18288
|
};
|
18289
|
-
function
|
18289
|
+
function Pg(y) {
|
18290
18290
|
return !!(y && mr(y.append) && y[Symbol.toStringTag] === "FormData" && y[Symbol.iterator]);
|
18291
18291
|
}
|
18292
|
-
const
|
18292
|
+
const Ag = (y) => {
|
18293
18293
|
const T = new Array(10), M = (D, N) => {
|
18294
18294
|
if (Ic(D)) {
|
18295
18295
|
if (T.indexOf(D) >= 0)
|
@@ -18306,72 +18306,72 @@ const Pg = (y) => {
|
|
18306
18306
|
return D;
|
18307
18307
|
};
|
18308
18308
|
return M(y, 0);
|
18309
|
-
},
|
18309
|
+
}, Cg = $r("AsyncFunction"), kg = (y) => y && (Ic(y) || mr(y)) && mr(y.then) && mr(y.catch), fp = ((y, T) => y ? setImmediate : T ? ((M, D) => (Us.addEventListener("message", ({ source: N, data: J }) => {
|
18310
18310
|
N === Us && J === M && D.length && D.shift()();
|
18311
18311
|
}, !1), (N) => {
|
18312
18312
|
D.push(N), Us.postMessage(M, "*");
|
18313
18313
|
}))(`axios@${Math.random()}`, []) : (M) => setTimeout(M))(
|
18314
18314
|
typeof setImmediate == "function",
|
18315
18315
|
mr(Us.postMessage)
|
18316
|
-
),
|
18316
|
+
), Eg = typeof queueMicrotask < "u" ? queueMicrotask.bind(Us) : typeof process < "u" && process.nextTick || fp, pe = {
|
18317
18317
|
isArray: jo,
|
18318
|
-
isArrayBuffer:
|
18319
|
-
isBuffer:
|
18320
|
-
isFormData:
|
18321
|
-
isArrayBufferView:
|
18322
|
-
isString:
|
18323
|
-
isNumber:
|
18324
|
-
isBoolean:
|
18318
|
+
isArrayBuffer: lp,
|
18319
|
+
isBuffer: Hm,
|
18320
|
+
isFormData: ig,
|
18321
|
+
isArrayBufferView: Wm,
|
18322
|
+
isString: Xm,
|
18323
|
+
isNumber: cp,
|
18324
|
+
isBoolean: Jm,
|
18325
18325
|
isObject: Ic,
|
18326
18326
|
isPlainObject: gc,
|
18327
|
-
isReadableStream:
|
18328
|
-
isRequest:
|
18329
|
-
isResponse:
|
18330
|
-
isHeaders:
|
18327
|
+
isReadableStream: ng,
|
18328
|
+
isRequest: sg,
|
18329
|
+
isResponse: og,
|
18330
|
+
isHeaders: ag,
|
18331
18331
|
isUndefined: al,
|
18332
|
-
isDate:
|
18333
|
-
isFile:
|
18334
|
-
isBlob:
|
18335
|
-
isRegExp:
|
18332
|
+
isDate: Km,
|
18333
|
+
isFile: Ym,
|
18334
|
+
isBlob: Qm,
|
18335
|
+
isRegExp: vg,
|
18336
18336
|
isFunction: mr,
|
18337
|
-
isStream:
|
18338
|
-
isURLSearchParams:
|
18339
|
-
isTypedArray:
|
18340
|
-
isFileList:
|
18337
|
+
isStream: tg,
|
18338
|
+
isURLSearchParams: rg,
|
18339
|
+
isTypedArray: mg,
|
18340
|
+
isFileList: eg,
|
18341
18341
|
forEach: ll,
|
18342
18342
|
merge: jh,
|
18343
|
-
extend:
|
18344
|
-
trim:
|
18345
|
-
stripBOM:
|
18346
|
-
inherits:
|
18347
|
-
toFlatObject:
|
18343
|
+
extend: cg,
|
18344
|
+
trim: lg,
|
18345
|
+
stripBOM: hg,
|
18346
|
+
inherits: ug,
|
18347
|
+
toFlatObject: dg,
|
18348
18348
|
kindOf: Sc,
|
18349
18349
|
kindOfTest: $r,
|
18350
|
-
endsWith:
|
18351
|
-
toArray:
|
18352
|
-
forEachEntry:
|
18353
|
-
matchAll:
|
18354
|
-
isHTMLForm:
|
18350
|
+
endsWith: pg,
|
18351
|
+
toArray: fg,
|
18352
|
+
forEachEntry: gg,
|
18353
|
+
matchAll: _g,
|
18354
|
+
isHTMLForm: yg,
|
18355
18355
|
hasOwnProperty: jd,
|
18356
18356
|
hasOwnProp: jd,
|
18357
18357
|
// an alias to avoid ESLint no-prototype-builtins detection
|
18358
|
-
reduceDescriptors:
|
18359
|
-
freezeMethods:
|
18360
|
-
toObjectSet:
|
18361
|
-
toCamelCase:
|
18362
|
-
noop:
|
18363
|
-
toFiniteNumber:
|
18364
|
-
findKey:
|
18358
|
+
reduceDescriptors: dp,
|
18359
|
+
freezeMethods: bg,
|
18360
|
+
toObjectSet: wg,
|
18361
|
+
toCamelCase: xg,
|
18362
|
+
noop: Sg,
|
18363
|
+
toFiniteNumber: Tg,
|
18364
|
+
findKey: hp,
|
18365
18365
|
global: Us,
|
18366
|
-
isContextDefined:
|
18367
|
-
ALPHABET:
|
18368
|
-
generateString:
|
18369
|
-
isSpecCompliantForm:
|
18370
|
-
toJSONObject:
|
18371
|
-
isAsyncFn:
|
18372
|
-
isThenable:
|
18373
|
-
setImmediate:
|
18374
|
-
asap:
|
18366
|
+
isContextDefined: up,
|
18367
|
+
ALPHABET: pp,
|
18368
|
+
generateString: Ig,
|
18369
|
+
isSpecCompliantForm: Pg,
|
18370
|
+
toJSONObject: Ag,
|
18371
|
+
isAsyncFn: Cg,
|
18372
|
+
isThenable: kg,
|
18373
|
+
setImmediate: fp,
|
18374
|
+
asap: Eg
|
18375
18375
|
};
|
18376
18376
|
function ct(y, T, M, D, N) {
|
18377
18377
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = y, this.name = "AxiosError", T && (this.code = T), M && (this.config = M), D && (this.request = D), N && (this.response = N);
|
@@ -18397,7 +18397,7 @@ pe.inherits(ct, Error, {
|
|
18397
18397
|
};
|
18398
18398
|
}
|
18399
18399
|
});
|
18400
|
-
const
|
18400
|
+
const mp = ct.prototype, gp = {};
|
18401
18401
|
[
|
18402
18402
|
"ERR_BAD_OPTION_VALUE",
|
18403
18403
|
"ERR_BAD_OPTION",
|
@@ -18413,32 +18413,32 @@ const fp = ct.prototype, mp = {};
|
|
18413
18413
|
"ERR_INVALID_URL"
|
18414
18414
|
// eslint-disable-next-line func-names
|
18415
18415
|
].forEach((y) => {
|
18416
|
-
|
18416
|
+
gp[y] = { value: y };
|
18417
18417
|
});
|
18418
|
-
Object.defineProperties(ct,
|
18419
|
-
Object.defineProperty(
|
18418
|
+
Object.defineProperties(ct, gp);
|
18419
|
+
Object.defineProperty(mp, "isAxiosError", { value: !0 });
|
18420
18420
|
ct.from = (y, T, M, D, N, J) => {
|
18421
|
-
const S = Object.create(
|
18421
|
+
const S = Object.create(mp);
|
18422
18422
|
return pe.toFlatObject(y, S, function(ye) {
|
18423
18423
|
return ye !== Error.prototype;
|
18424
18424
|
}, (c) => c !== "isAxiosError"), ct.call(S, y.message, T, M, D, N), S.cause = y, S.name = y.name, J && Object.assign(S, J), S;
|
18425
18425
|
};
|
18426
|
-
const
|
18426
|
+
const Mg = null;
|
18427
18427
|
function Uh(y) {
|
18428
18428
|
return pe.isPlainObject(y) || pe.isArray(y);
|
18429
18429
|
}
|
18430
|
-
function
|
18430
|
+
function _p(y) {
|
18431
18431
|
return pe.endsWith(y, "[]") ? y.slice(0, -2) : y;
|
18432
18432
|
}
|
18433
18433
|
function $d(y, T, M) {
|
18434
18434
|
return y ? y.concat(T).map(function(N, J) {
|
18435
|
-
return N =
|
18435
|
+
return N = _p(N), !M && J ? "[" + N + "]" : N;
|
18436
18436
|
}).join(M ? "." : "") : T;
|
18437
18437
|
}
|
18438
|
-
function
|
18438
|
+
function zg(y) {
|
18439
18439
|
return pe.isArray(y) && !y.some(Uh);
|
18440
18440
|
}
|
18441
|
-
const
|
18441
|
+
const Dg = pe.toFlatObject(pe, {}, null, function(T) {
|
18442
18442
|
return /^is[A-Z]/.test(T);
|
18443
18443
|
});
|
18444
18444
|
function Pc(y, T, M) {
|
@@ -18467,18 +18467,18 @@ function Pc(y, T, M) {
|
|
18467
18467
|
if (je && !Be && typeof je == "object") {
|
18468
18468
|
if (pe.endsWith(Xe, "{}"))
|
18469
18469
|
Xe = D ? Xe : Xe.slice(0, -2), je = JSON.stringify(je);
|
18470
|
-
else if (pe.isArray(je) &&
|
18471
|
-
return Xe =
|
18472
|
-
!(pe.isUndefined(
|
18470
|
+
else if (pe.isArray(je) && zg(je) || (pe.isFileList(je) || pe.endsWith(Xe, "[]")) && (lt = pe.toArray(je)))
|
18471
|
+
return Xe = _p(Xe), lt.forEach(function(Pe, yt) {
|
18472
|
+
!(pe.isUndefined(Pe) || Pe === null) && T.append(
|
18473
18473
|
// eslint-disable-next-line no-nested-ternary
|
18474
18474
|
S === !0 ? $d([Xe], yt, J) : S === null ? Xe : Xe + "[]",
|
18475
|
-
_e(
|
18475
|
+
_e(Pe)
|
18476
18476
|
);
|
18477
18477
|
}), !1;
|
18478
18478
|
}
|
18479
18479
|
return Uh(je) ? !0 : (T.append($d(Be, Xe, J), _e(je)), !1);
|
18480
18480
|
}
|
18481
|
-
const ae = [], oe = Object.assign(
|
18481
|
+
const ae = [], oe = Object.assign(Dg, {
|
18482
18482
|
defaultVisitor: ve,
|
18483
18483
|
convertValue: _e,
|
18484
18484
|
isVisitable: Uh
|
@@ -18519,11 +18519,11 @@ function qd(y) {
|
|
18519
18519
|
function Jh(y, T) {
|
18520
18520
|
this._pairs = [], y && Pc(y, this, T);
|
18521
18521
|
}
|
18522
|
-
const
|
18523
|
-
|
18522
|
+
const yp = Jh.prototype;
|
18523
|
+
yp.append = function(T, M) {
|
18524
18524
|
this._pairs.push([T, M]);
|
18525
18525
|
};
|
18526
|
-
|
18526
|
+
yp.toString = function(T) {
|
18527
18527
|
const M = T ? function(D) {
|
18528
18528
|
return T.call(this, D, qd);
|
18529
18529
|
} : qd;
|
@@ -18531,13 +18531,13 @@ _p.toString = function(T) {
|
|
18531
18531
|
return M(N[0]) + "=" + M(N[1]);
|
18532
18532
|
}, "").join("&");
|
18533
18533
|
};
|
18534
|
-
function
|
18534
|
+
function Lg(y) {
|
18535
18535
|
return encodeURIComponent(y).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
18536
18536
|
}
|
18537
|
-
function
|
18537
|
+
function xp(y, T, M) {
|
18538
18538
|
if (!T)
|
18539
18539
|
return y;
|
18540
|
-
const D = M && M.encode ||
|
18540
|
+
const D = M && M.encode || Lg, N = M && M.serialize;
|
18541
18541
|
let J;
|
18542
18542
|
if (N ? J = N(T, M) : J = pe.isURLSearchParams(T) ? T.toString() : new Jh(T, M).toString(D), J) {
|
18543
18543
|
const S = y.indexOf("#");
|
@@ -18599,40 +18599,40 @@ class Zd {
|
|
18599
18599
|
});
|
18600
18600
|
}
|
18601
18601
|
}
|
18602
|
-
const
|
18602
|
+
const vp = {
|
18603
18603
|
silentJSONParsing: !0,
|
18604
18604
|
forcedJSONParsing: !0,
|
18605
18605
|
clarifyTimeoutError: !1
|
18606
|
-
},
|
18606
|
+
}, Rg = typeof URLSearchParams < "u" ? URLSearchParams : Jh, Fg = typeof FormData < "u" ? FormData : null, Bg = typeof Blob < "u" ? Blob : null, Og = {
|
18607
18607
|
isBrowser: !0,
|
18608
18608
|
classes: {
|
18609
|
-
URLSearchParams:
|
18610
|
-
FormData:
|
18611
|
-
Blob:
|
18609
|
+
URLSearchParams: Rg,
|
18610
|
+
FormData: Fg,
|
18611
|
+
Blob: Bg
|
18612
18612
|
},
|
18613
18613
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
18614
|
-
}, Kh = typeof window < "u" && typeof document < "u",
|
18615
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
18614
|
+
}, Kh = typeof window < "u" && typeof document < "u", Vg = ((y) => Kh && ["ReactNative", "NativeScript", "NS"].indexOf(y) < 0)(typeof navigator < "u" && navigator.product), Ng = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
18615
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", jg = Kh && window.location.href || "http://localhost", Ug = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
18616
18616
|
__proto__: null,
|
18617
18617
|
hasBrowserEnv: Kh,
|
18618
|
-
hasStandardBrowserEnv:
|
18619
|
-
hasStandardBrowserWebWorkerEnv:
|
18620
|
-
origin:
|
18618
|
+
hasStandardBrowserEnv: Vg,
|
18619
|
+
hasStandardBrowserWebWorkerEnv: Ng,
|
18620
|
+
origin: jg
|
18621
18621
|
}, Symbol.toStringTag, { value: "Module" })), Ur = {
|
18622
|
-
...
|
18623
|
-
...
|
18622
|
+
...Ug,
|
18623
|
+
...Og
|
18624
18624
|
};
|
18625
|
-
function
|
18625
|
+
function $g(y, T) {
|
18626
18626
|
return Pc(y, new Ur.classes.URLSearchParams(), Object.assign({
|
18627
18627
|
visitor: function(M, D, N, J) {
|
18628
18628
|
return Ur.isNode && pe.isBuffer(M) ? (this.append(D, M.toString("base64")), !1) : J.defaultVisitor.apply(this, arguments);
|
18629
18629
|
}
|
18630
18630
|
}, T));
|
18631
18631
|
}
|
18632
|
-
function
|
18632
|
+
function qg(y) {
|
18633
18633
|
return pe.matchAll(/\w+|\[(\w*)]/g, y).map((T) => T[0] === "[]" ? "" : T[1] || T[0]);
|
18634
18634
|
}
|
18635
|
-
function
|
18635
|
+
function Zg(y) {
|
18636
18636
|
const T = {}, M = Object.keys(y);
|
18637
18637
|
let D;
|
18638
18638
|
const N = M.length;
|
@@ -18641,22 +18641,22 @@ function qg(y) {
|
|
18641
18641
|
J = M[D], T[J] = y[J];
|
18642
18642
|
return T;
|
18643
18643
|
}
|
18644
|
-
function
|
18644
|
+
function bp(y) {
|
18645
18645
|
function T(M, D, N, J) {
|
18646
18646
|
let S = M[J++];
|
18647
18647
|
if (S === "__proto__") return !0;
|
18648
18648
|
const c = Number.isFinite(+S), ye = J >= M.length;
|
18649
|
-
return S = !S && pe.isArray(N) ? N.length : S, ye ? (pe.hasOwnProp(N, S) ? N[S] = [N[S], D] : N[S] = D, !c) : ((!N[S] || !pe.isObject(N[S])) && (N[S] = []), T(M, D, N[S], J) && pe.isArray(N[S]) && (N[S] =
|
18649
|
+
return S = !S && pe.isArray(N) ? N.length : S, ye ? (pe.hasOwnProp(N, S) ? N[S] = [N[S], D] : N[S] = D, !c) : ((!N[S] || !pe.isObject(N[S])) && (N[S] = []), T(M, D, N[S], J) && pe.isArray(N[S]) && (N[S] = Zg(N[S])), !c);
|
18650
18650
|
}
|
18651
18651
|
if (pe.isFormData(y) && pe.isFunction(y.entries)) {
|
18652
18652
|
const M = {};
|
18653
18653
|
return pe.forEachEntry(y, (D, N) => {
|
18654
|
-
T(
|
18654
|
+
T(qg(D), N, M, 0);
|
18655
18655
|
}), M;
|
18656
18656
|
}
|
18657
18657
|
return null;
|
18658
18658
|
}
|
18659
|
-
function
|
18659
|
+
function Gg(y, T, M) {
|
18660
18660
|
if (pe.isString(y))
|
18661
18661
|
try {
|
18662
18662
|
return (T || JSON.parse)(y), pe.trim(y);
|
@@ -18667,12 +18667,12 @@ function Zg(y, T, M) {
|
|
18667
18667
|
return (M || JSON.stringify)(y);
|
18668
18668
|
}
|
18669
18669
|
const cl = {
|
18670
|
-
transitional:
|
18670
|
+
transitional: vp,
|
18671
18671
|
adapter: ["xhr", "http", "fetch"],
|
18672
18672
|
transformRequest: [function(T, M) {
|
18673
18673
|
const D = M.getContentType() || "", N = D.indexOf("application/json") > -1, J = pe.isObject(T);
|
18674
18674
|
if (J && pe.isHTMLForm(T) && (T = new FormData(T)), pe.isFormData(T))
|
18675
|
-
return N ? JSON.stringify(
|
18675
|
+
return N ? JSON.stringify(bp(T)) : T;
|
18676
18676
|
if (pe.isArrayBuffer(T) || pe.isBuffer(T) || pe.isStream(T) || pe.isFile(T) || pe.isBlob(T) || pe.isReadableStream(T))
|
18677
18677
|
return T;
|
18678
18678
|
if (pe.isArrayBufferView(T))
|
@@ -18682,7 +18682,7 @@ const cl = {
|
|
18682
18682
|
let c;
|
18683
18683
|
if (J) {
|
18684
18684
|
if (D.indexOf("application/x-www-form-urlencoded") > -1)
|
18685
|
-
return
|
18685
|
+
return $g(T, this.formSerializer).toString();
|
18686
18686
|
if ((c = pe.isFileList(T)) || D.indexOf("multipart/form-data") > -1) {
|
18687
18687
|
const ye = this.env && this.env.FormData;
|
18688
18688
|
return Pc(
|
@@ -18692,7 +18692,7 @@ const cl = {
|
|
18692
18692
|
);
|
18693
18693
|
}
|
18694
18694
|
}
|
18695
|
-
return J || N ? (M.setContentType("application/json", !1),
|
18695
|
+
return J || N ? (M.setContentType("application/json", !1), Gg(T)) : T;
|
18696
18696
|
}],
|
18697
18697
|
transformResponse: [function(T) {
|
18698
18698
|
const M = this.transitional || cl.transitional, D = M && M.forcedJSONParsing, N = this.responseType === "json";
|
@@ -18735,7 +18735,7 @@ const cl = {
|
|
18735
18735
|
pe.forEach(["delete", "get", "head", "post", "put", "patch"], (y) => {
|
18736
18736
|
cl.headers[y] = {};
|
18737
18737
|
});
|
18738
|
-
const
|
18738
|
+
const Hg = pe.toObjectSet([
|
18739
18739
|
"age",
|
18740
18740
|
"authorization",
|
18741
18741
|
"content-length",
|
@@ -18753,12 +18753,12 @@ const Gg = pe.toObjectSet([
|
|
18753
18753
|
"referer",
|
18754
18754
|
"retry-after",
|
18755
18755
|
"user-agent"
|
18756
|
-
]),
|
18756
|
+
]), Wg = (y) => {
|
18757
18757
|
const T = {};
|
18758
18758
|
let M, D, N;
|
18759
18759
|
return y && y.split(`
|
18760
18760
|
`).forEach(function(S) {
|
18761
|
-
N = S.indexOf(":"), M = S.substring(0, N).trim().toLowerCase(), D = S.substring(N + 1).trim(), !(!M || T[M] &&
|
18761
|
+
N = S.indexOf(":"), M = S.substring(0, N).trim().toLowerCase(), D = S.substring(N + 1).trim(), !(!M || T[M] && Hg[M]) && (M === "set-cookie" ? T[M] ? T[M].push(D) : T[M] = [D] : T[M] = T[M] ? T[M] + ", " + D : D);
|
18762
18762
|
}), T;
|
18763
18763
|
}, Gd = Symbol("internals");
|
18764
18764
|
function nl(y) {
|
@@ -18767,14 +18767,14 @@ function nl(y) {
|
|
18767
18767
|
function _c(y) {
|
18768
18768
|
return y === !1 || y == null ? y : pe.isArray(y) ? y.map(_c) : String(y);
|
18769
18769
|
}
|
18770
|
-
function
|
18770
|
+
function Xg(y) {
|
18771
18771
|
const T = /* @__PURE__ */ Object.create(null), M = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
18772
18772
|
let D;
|
18773
18773
|
for (; D = M.exec(y); )
|
18774
18774
|
T[D[1]] = D[2];
|
18775
18775
|
return T;
|
18776
18776
|
}
|
18777
|
-
const
|
18777
|
+
const Jg = (y) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(y.trim());
|
18778
18778
|
function Bh(y, T, M, D, N) {
|
18779
18779
|
if (pe.isFunction(D))
|
18780
18780
|
return D.call(this, T, M);
|
@@ -18785,10 +18785,10 @@ function Bh(y, T, M, D, N) {
|
|
18785
18785
|
return D.test(T);
|
18786
18786
|
}
|
18787
18787
|
}
|
18788
|
-
function
|
18788
|
+
function Kg(y) {
|
18789
18789
|
return y.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (T, M, D) => M.toUpperCase() + D);
|
18790
18790
|
}
|
18791
|
-
function
|
18791
|
+
function Yg(y, T) {
|
18792
18792
|
const M = pe.toCamelCase(" " + T);
|
18793
18793
|
["get", "set", "has"].forEach((D) => {
|
18794
18794
|
Object.defineProperty(y, D + M, {
|
@@ -18815,8 +18815,8 @@ class Qi {
|
|
18815
18815
|
const S = (c, ye) => pe.forEach(c, (_e, ve) => J(_e, ve, ye));
|
18816
18816
|
if (pe.isPlainObject(T) || T instanceof this.constructor)
|
18817
18817
|
S(T, M);
|
18818
|
-
else if (pe.isString(T) && (T = T.trim()) && !
|
18819
|
-
S(
|
18818
|
+
else if (pe.isString(T) && (T = T.trim()) && !Jg(T))
|
18819
|
+
S(Wg(T), M);
|
18820
18820
|
else if (pe.isHeaders(T))
|
18821
18821
|
for (const [c, ye] of T.entries())
|
18822
18822
|
J(ye, c, D);
|
@@ -18832,7 +18832,7 @@ class Qi {
|
|
18832
18832
|
if (!M)
|
18833
18833
|
return N;
|
18834
18834
|
if (M === !0)
|
18835
|
-
return
|
18835
|
+
return Xg(N);
|
18836
18836
|
if (pe.isFunction(M))
|
18837
18837
|
return M.call(this, N, D);
|
18838
18838
|
if (pe.isRegExp(M))
|
@@ -18876,7 +18876,7 @@ class Qi {
|
|
18876
18876
|
M[S] = _c(N), delete M[J];
|
18877
18877
|
return;
|
18878
18878
|
}
|
18879
|
-
const c = T ?
|
18879
|
+
const c = T ? Kg(J) : String(J).trim();
|
18880
18880
|
c !== J && delete M[J], M[c] = _c(N), D[c] = !0;
|
18881
18881
|
}), this;
|
18882
18882
|
}
|
@@ -18912,7 +18912,7 @@ class Qi {
|
|
18912
18912
|
}).accessors, N = this.prototype;
|
18913
18913
|
function J(S) {
|
18914
18914
|
const c = nl(S);
|
18915
|
-
D[c] || (
|
18915
|
+
D[c] || (Yg(N, S), D[c] = !0);
|
18916
18916
|
}
|
18917
18917
|
return pe.isArray(T) ? T.forEach(J) : J(T), this;
|
18918
18918
|
}
|
@@ -18935,7 +18935,7 @@ function Oh(y, T) {
|
|
18935
18935
|
J = c.call(M, J, N.normalize(), T ? T.status : void 0);
|
18936
18936
|
}), N.normalize(), J;
|
18937
18937
|
}
|
18938
|
-
function
|
18938
|
+
function wp(y) {
|
18939
18939
|
return !!(y && y.__CANCEL__);
|
18940
18940
|
}
|
18941
18941
|
function Uo(y, T, M) {
|
@@ -18944,7 +18944,7 @@ function Uo(y, T, M) {
|
|
18944
18944
|
pe.inherits(Uo, ct, {
|
18945
18945
|
__CANCEL__: !0
|
18946
18946
|
});
|
18947
|
-
function
|
18947
|
+
function Sp(y, T, M) {
|
18948
18948
|
const D = M.config.validateStatus;
|
18949
18949
|
!M.status || !D || D(M.status) ? y(M) : T(new ct(
|
18950
18950
|
"Request failed with status code " + M.status,
|
@@ -18954,11 +18954,11 @@ function wp(y, T, M) {
|
|
18954
18954
|
M
|
18955
18955
|
));
|
18956
18956
|
}
|
18957
|
-
function
|
18957
|
+
function Qg(y) {
|
18958
18958
|
const T = /^([-+\w]{1,25})(:?\/\/|:)/.exec(y);
|
18959
18959
|
return T && T[1] || "";
|
18960
18960
|
}
|
18961
|
-
function
|
18961
|
+
function e_(y, T) {
|
18962
18962
|
y = y || 10;
|
18963
18963
|
const M = new Array(y), D = new Array(y);
|
18964
18964
|
let N = 0, J = 0, S;
|
@@ -18974,7 +18974,7 @@ function Qg(y, T) {
|
|
18974
18974
|
return ht ? Math.round(oe * 1e3 / ht) : void 0;
|
18975
18975
|
};
|
18976
18976
|
}
|
18977
|
-
function
|
18977
|
+
function t_(y, T) {
|
18978
18978
|
let M = 0, D = 1e3 / T, N, J;
|
18979
18979
|
const S = (_e, ve = Date.now()) => {
|
18980
18980
|
M = ve, N = null, J && (clearTimeout(J), J = null), y.apply(null, _e);
|
@@ -18988,8 +18988,8 @@ function e_(y, T) {
|
|
18988
18988
|
}
|
18989
18989
|
const bc = (y, T, M = 3) => {
|
18990
18990
|
let D = 0;
|
18991
|
-
const N =
|
18992
|
-
return
|
18991
|
+
const N = e_(50, 250);
|
18992
|
+
return t_((J) => {
|
18993
18993
|
const S = J.loaded, c = J.lengthComputable ? J.total : void 0, ye = S - D, _e = N(ye), ve = S <= c;
|
18994
18994
|
D = S;
|
18995
18995
|
const ae = {
|
@@ -19012,7 +19012,7 @@ const bc = (y, T, M = 3) => {
|
|
19012
19012
|
total: y,
|
19013
19013
|
loaded: D
|
19014
19014
|
}), T[1]];
|
19015
|
-
}, Wd = (y) => (...T) => pe.asap(() => y(...T)),
|
19015
|
+
}, Wd = (y) => (...T) => pe.asap(() => y(...T)), i_ = Ur.hasStandardBrowserEnv ? (
|
19016
19016
|
// Standard browser envs have full support of the APIs needed to test
|
19017
19017
|
// whether the request URL is of the same origin as current location.
|
19018
19018
|
function() {
|
@@ -19043,7 +19043,7 @@ const bc = (y, T, M = 3) => {
|
|
19043
19043
|
return !0;
|
19044
19044
|
};
|
19045
19045
|
}()
|
19046
|
-
),
|
19046
|
+
), r_ = Ur.hasStandardBrowserEnv ? (
|
19047
19047
|
// Standard browser envs support document.cookie
|
19048
19048
|
{
|
19049
19049
|
write(y, T, M, D, N, J) {
|
@@ -19070,14 +19070,14 @@ const bc = (y, T, M = 3) => {
|
|
19070
19070
|
}
|
19071
19071
|
}
|
19072
19072
|
);
|
19073
|
-
function
|
19073
|
+
function n_(y) {
|
19074
19074
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(y);
|
19075
19075
|
}
|
19076
|
-
function
|
19076
|
+
function s_(y, T) {
|
19077
19077
|
return T ? y.replace(/\/?\/$/, "") + "/" + T.replace(/^\/+/, "") : y;
|
19078
19078
|
}
|
19079
|
-
function
|
19080
|
-
return y && !
|
19079
|
+
function Tp(y, T) {
|
19080
|
+
return y && !n_(T) ? s_(y, T) : T;
|
19081
19081
|
}
|
19082
19082
|
const Xd = (y) => y instanceof Qi ? { ...y } : y;
|
19083
19083
|
function Zs(y, T) {
|
@@ -19144,10 +19144,10 @@ function Zs(y, T) {
|
|
19144
19144
|
pe.isUndefined(oe) && ae !== c || (M[ve] = oe);
|
19145
19145
|
}), M;
|
19146
19146
|
}
|
19147
|
-
const
|
19147
|
+
const Ip = (y) => {
|
19148
19148
|
const T = Zs({}, y);
|
19149
19149
|
let { data: M, withXSRFToken: D, xsrfHeaderName: N, xsrfCookieName: J, headers: S, auth: c } = T;
|
19150
|
-
T.headers = S = Qi.from(S), T.url =
|
19150
|
+
T.headers = S = Qi.from(S), T.url = xp(Tp(T.baseURL, T.url), y.params, y.paramsSerializer), c && S.set(
|
19151
19151
|
"Authorization",
|
19152
19152
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
19153
19153
|
);
|
@@ -19160,14 +19160,14 @@ const Tp = (y) => {
|
|
19160
19160
|
S.setContentType([_e || "multipart/form-data", ...ve].join("; "));
|
19161
19161
|
}
|
19162
19162
|
}
|
19163
|
-
if (Ur.hasStandardBrowserEnv && (D && pe.isFunction(D) && (D = D(T)), D || D !== !1 &&
|
19164
|
-
const _e = N && J &&
|
19163
|
+
if (Ur.hasStandardBrowserEnv && (D && pe.isFunction(D) && (D = D(T)), D || D !== !1 && i_(T.url))) {
|
19164
|
+
const _e = N && J && r_.read(J);
|
19165
19165
|
_e && S.set(N, _e);
|
19166
19166
|
}
|
19167
19167
|
return T;
|
19168
|
-
},
|
19168
|
+
}, o_ = typeof XMLHttpRequest < "u", a_ = o_ && function(y) {
|
19169
19169
|
return new Promise(function(M, D) {
|
19170
|
-
const N =
|
19170
|
+
const N = Ip(y);
|
19171
19171
|
let J = N.data;
|
19172
19172
|
const S = Qi.from(N.headers).normalize();
|
19173
19173
|
let { responseType: c, onUploadProgress: ye, onDownloadProgress: _e } = N, ve, ae, oe, ht, je;
|
@@ -19179,17 +19179,17 @@ const Tp = (y) => {
|
|
19179
19179
|
function lt() {
|
19180
19180
|
if (!Be)
|
19181
19181
|
return;
|
19182
|
-
const
|
19182
|
+
const Pe = Qi.from(
|
19183
19183
|
"getAllResponseHeaders" in Be && Be.getAllResponseHeaders()
|
19184
19184
|
), ft = {
|
19185
19185
|
data: !c || c === "text" || c === "json" ? Be.responseText : Be.response,
|
19186
19186
|
status: Be.status,
|
19187
19187
|
statusText: Be.statusText,
|
19188
|
-
headers:
|
19188
|
+
headers: Pe,
|
19189
19189
|
config: y,
|
19190
19190
|
request: Be
|
19191
19191
|
};
|
19192
|
-
|
19192
|
+
Sp(function(Pt) {
|
19193
19193
|
M(Pt), Xe();
|
19194
19194
|
}, function(Pt) {
|
19195
19195
|
D(Pt), Xe();
|
@@ -19203,7 +19203,7 @@ const Tp = (y) => {
|
|
19203
19203
|
D(new ct("Network Error", ct.ERR_NETWORK, y, Be)), Be = null;
|
19204
19204
|
}, Be.ontimeout = function() {
|
19205
19205
|
let yt = N.timeout ? "timeout of " + N.timeout + "ms exceeded" : "timeout exceeded";
|
19206
|
-
const ft = N.transitional ||
|
19206
|
+
const ft = N.transitional || vp;
|
19207
19207
|
N.timeoutErrorMessage && (yt = N.timeoutErrorMessage), D(new ct(
|
19208
19208
|
yt,
|
19209
19209
|
ft.clarifyTimeoutError ? ct.ETIMEDOUT : ct.ECONNABORTED,
|
@@ -19212,17 +19212,17 @@ const Tp = (y) => {
|
|
19212
19212
|
)), Be = null;
|
19213
19213
|
}, J === void 0 && S.setContentType(null), "setRequestHeader" in Be && pe.forEach(S.toJSON(), function(yt, ft) {
|
19214
19214
|
Be.setRequestHeader(ft, yt);
|
19215
|
-
}), pe.isUndefined(N.withCredentials) || (Be.withCredentials = !!N.withCredentials), c && c !== "json" && (Be.responseType = N.responseType), _e && ([oe, je] = bc(_e, !0), Be.addEventListener("progress", oe)), ye && Be.upload && ([ae, ht] = bc(ye), Be.upload.addEventListener("progress", ae), Be.upload.addEventListener("loadend", ht)), (N.cancelToken || N.signal) && (ve = (
|
19216
|
-
Be && (D(!
|
19215
|
+
}), pe.isUndefined(N.withCredentials) || (Be.withCredentials = !!N.withCredentials), c && c !== "json" && (Be.responseType = N.responseType), _e && ([oe, je] = bc(_e, !0), Be.addEventListener("progress", oe)), ye && Be.upload && ([ae, ht] = bc(ye), Be.upload.addEventListener("progress", ae), Be.upload.addEventListener("loadend", ht)), (N.cancelToken || N.signal) && (ve = (Pe) => {
|
19216
|
+
Be && (D(!Pe || Pe.type ? new Uo(null, y, Be) : Pe), Be.abort(), Be = null);
|
19217
19217
|
}, N.cancelToken && N.cancelToken.subscribe(ve), N.signal && (N.signal.aborted ? ve() : N.signal.addEventListener("abort", ve)));
|
19218
|
-
const St =
|
19218
|
+
const St = Qg(N.url);
|
19219
19219
|
if (St && Ur.protocols.indexOf(St) === -1) {
|
19220
19220
|
D(new ct("Unsupported protocol " + St + ":", ct.ERR_BAD_REQUEST, y));
|
19221
19221
|
return;
|
19222
19222
|
}
|
19223
19223
|
Be.send(J || null);
|
19224
19224
|
});
|
19225
|
-
},
|
19225
|
+
}, l_ = (y, T) => {
|
19226
19226
|
let M = new AbortController(), D;
|
19227
19227
|
const N = function(ye) {
|
19228
19228
|
if (!D) {
|
@@ -19244,7 +19244,7 @@ const Tp = (y) => {
|
|
19244
19244
|
return c.unsubscribe = S, [c, () => {
|
19245
19245
|
J && clearTimeout(J), J = null;
|
19246
19246
|
}];
|
19247
|
-
},
|
19247
|
+
}, c_ = function* (y, T) {
|
19248
19248
|
let M = y.byteLength;
|
19249
19249
|
if (!T || M < T) {
|
19250
19250
|
yield y;
|
@@ -19253,11 +19253,11 @@ const Tp = (y) => {
|
|
19253
19253
|
let D = 0, N;
|
19254
19254
|
for (; D < M; )
|
19255
19255
|
N = D + T, yield y.slice(D, N), D = N;
|
19256
|
-
},
|
19256
|
+
}, h_ = async function* (y, T, M) {
|
19257
19257
|
for await (const D of y)
|
19258
|
-
yield*
|
19258
|
+
yield* c_(ArrayBuffer.isView(D) ? D : await M(String(D)), T);
|
19259
19259
|
}, Jd = (y, T, M, D, N) => {
|
19260
|
-
const J =
|
19260
|
+
const J = h_(y, T, N);
|
19261
19261
|
let S = 0, c, ye = (_e) => {
|
19262
19262
|
c || (c = !0, D && D(_e));
|
19263
19263
|
};
|
@@ -19285,13 +19285,13 @@ const Tp = (y) => {
|
|
19285
19285
|
}, {
|
19286
19286
|
highWaterMark: 2
|
19287
19287
|
});
|
19288
|
-
}, Ac = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
19288
|
+
}, Ac = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Pp = Ac && typeof ReadableStream == "function", $h = Ac && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((y) => (T) => y.encode(T))(new TextEncoder()) : async (y) => new Uint8Array(await new Response(y).arrayBuffer())), Ap = (y, ...T) => {
|
19289
19289
|
try {
|
19290
19290
|
return !!y(...T);
|
19291
19291
|
} catch {
|
19292
19292
|
return !1;
|
19293
19293
|
}
|
19294
|
-
},
|
19294
|
+
}, u_ = Pp && Ap(() => {
|
19295
19295
|
let y = !1;
|
19296
19296
|
const T = new Request(Ur.origin, {
|
19297
19297
|
body: new ReadableStream(),
|
@@ -19301,7 +19301,7 @@ const Tp = (y) => {
|
|
19301
19301
|
}
|
19302
19302
|
}).headers.has("Content-Type");
|
19303
19303
|
return y && !T;
|
19304
|
-
}), Kd = 64 * 1024, qh =
|
19304
|
+
}), Kd = 64 * 1024, qh = Pp && Ap(() => pe.isReadableStream(new Response("").body)), wc = {
|
19305
19305
|
stream: qh && ((y) => y.body)
|
19306
19306
|
};
|
19307
19307
|
Ac && ((y) => {
|
@@ -19311,7 +19311,7 @@ Ac && ((y) => {
|
|
19311
19311
|
});
|
19312
19312
|
});
|
19313
19313
|
})(new Response());
|
19314
|
-
const
|
19314
|
+
const d_ = async (y) => {
|
19315
19315
|
if (y == null)
|
19316
19316
|
return 0;
|
19317
19317
|
if (pe.isBlob(y))
|
@@ -19322,10 +19322,10 @@ const u_ = async (y) => {
|
|
19322
19322
|
return y.byteLength;
|
19323
19323
|
if (pe.isURLSearchParams(y) && (y = y + ""), pe.isString(y))
|
19324
19324
|
return (await $h(y)).byteLength;
|
19325
|
-
},
|
19325
|
+
}, p_ = async (y, T) => {
|
19326
19326
|
const M = pe.toFiniteNumber(y.getContentLength());
|
19327
|
-
return M ??
|
19328
|
-
},
|
19327
|
+
return M ?? d_(T);
|
19328
|
+
}, f_ = Ac && (async (y) => {
|
19329
19329
|
let {
|
19330
19330
|
url: T,
|
19331
19331
|
method: M,
|
@@ -19339,9 +19339,9 @@ const u_ = async (y) => {
|
|
19339
19339
|
headers: ve,
|
19340
19340
|
withCredentials: ae = "same-origin",
|
19341
19341
|
fetchOptions: oe
|
19342
|
-
} =
|
19342
|
+
} = Ip(y);
|
19343
19343
|
_e = _e ? (_e + "").toLowerCase() : "text";
|
19344
|
-
let [ht, je] = N || J || S ?
|
19344
|
+
let [ht, je] = N || J || S ? l_([N, J], S) : [], Xe, Be;
|
19345
19345
|
const lt = () => {
|
19346
19346
|
!Xe && setTimeout(() => {
|
19347
19347
|
ht && ht.unsubscribe();
|
@@ -19349,7 +19349,7 @@ const u_ = async (y) => {
|
|
19349
19349
|
};
|
19350
19350
|
let St;
|
19351
19351
|
try {
|
19352
|
-
if (ye &&
|
19352
|
+
if (ye && u_ && M !== "get" && M !== "head" && (St = await p_(ve, D)) !== 0) {
|
19353
19353
|
let kt = new Request(T, {
|
19354
19354
|
method: "POST",
|
19355
19355
|
body: D,
|
@@ -19372,48 +19372,48 @@ const u_ = async (y) => {
|
|
19372
19372
|
duplex: "half",
|
19373
19373
|
credentials: ae
|
19374
19374
|
});
|
19375
|
-
let
|
19375
|
+
let Pe = await fetch(Be);
|
19376
19376
|
const yt = qh && (_e === "stream" || _e === "response");
|
19377
19377
|
if (qh && (c || yt)) {
|
19378
19378
|
const kt = {};
|
19379
19379
|
["status", "statusText", "headers"].forEach((tr) => {
|
19380
|
-
kt[tr] =
|
19380
|
+
kt[tr] = Pe[tr];
|
19381
19381
|
});
|
19382
|
-
const Pt = pe.toFiniteNumber(
|
19382
|
+
const Pt = pe.toFiniteNumber(Pe.headers.get("content-length")), [er, si] = c && Hd(
|
19383
19383
|
Pt,
|
19384
19384
|
bc(Wd(c), !0)
|
19385
19385
|
) || [];
|
19386
|
-
|
19387
|
-
Jd(
|
19386
|
+
Pe = new Response(
|
19387
|
+
Jd(Pe.body, Kd, er, () => {
|
19388
19388
|
si && si(), yt && lt();
|
19389
19389
|
}, $h),
|
19390
19390
|
kt
|
19391
19391
|
);
|
19392
19392
|
}
|
19393
19393
|
_e = _e || "text";
|
19394
|
-
let ft = await wc[pe.findKey(wc, _e) || "text"](
|
19394
|
+
let ft = await wc[pe.findKey(wc, _e) || "text"](Pe, y);
|
19395
19395
|
return !yt && lt(), je && je(), await new Promise((kt, Pt) => {
|
19396
|
-
|
19396
|
+
Sp(kt, Pt, {
|
19397
19397
|
data: ft,
|
19398
|
-
headers: Qi.from(
|
19399
|
-
status:
|
19400
|
-
statusText:
|
19398
|
+
headers: Qi.from(Pe.headers),
|
19399
|
+
status: Pe.status,
|
19400
|
+
statusText: Pe.statusText,
|
19401
19401
|
config: y,
|
19402
19402
|
request: Be
|
19403
19403
|
});
|
19404
19404
|
});
|
19405
|
-
} catch (
|
19406
|
-
throw lt(),
|
19405
|
+
} catch (Pe) {
|
19406
|
+
throw lt(), Pe && Pe.name === "TypeError" && /fetch/i.test(Pe.message) ? Object.assign(
|
19407
19407
|
new ct("Network Error", ct.ERR_NETWORK, y, Be),
|
19408
19408
|
{
|
19409
|
-
cause:
|
19409
|
+
cause: Pe.cause || Pe
|
19410
19410
|
}
|
19411
|
-
) : ct.from(
|
19411
|
+
) : ct.from(Pe, Pe && Pe.code, y, Be);
|
19412
19412
|
}
|
19413
19413
|
}), Zh = {
|
19414
|
-
http:
|
19415
|
-
xhr:
|
19416
|
-
fetch:
|
19414
|
+
http: Mg,
|
19415
|
+
xhr: a_,
|
19416
|
+
fetch: f_
|
19417
19417
|
};
|
19418
19418
|
pe.forEach(Zh, (y, T) => {
|
19419
19419
|
if (y) {
|
@@ -19424,7 +19424,7 @@ pe.forEach(Zh, (y, T) => {
|
|
19424
19424
|
Object.defineProperty(y, "adapterName", { value: T });
|
19425
19425
|
}
|
19426
19426
|
});
|
19427
|
-
const Yd = (y) => `- ${y}`,
|
19427
|
+
const Yd = (y) => `- ${y}`, m_ = (y) => pe.isFunction(y) || y === null || y === !1, Cp = {
|
19428
19428
|
getAdapter: (y) => {
|
19429
19429
|
y = pe.isArray(y) ? y : [y];
|
19430
19430
|
const { length: T } = y;
|
@@ -19433,7 +19433,7 @@ const Yd = (y) => `- ${y}`, f_ = (y) => pe.isFunction(y) || y === null || y ===
|
|
19433
19433
|
for (let J = 0; J < T; J++) {
|
19434
19434
|
M = y[J];
|
19435
19435
|
let S;
|
19436
|
-
if (D = M, !
|
19436
|
+
if (D = M, !m_(M) && (D = Zh[(S = String(M)).toLowerCase()], D === void 0))
|
19437
19437
|
throw new ct(`Unknown adapter '${S}'`);
|
19438
19438
|
if (D)
|
19439
19439
|
break;
|
@@ -19463,21 +19463,21 @@ function Qd(y) {
|
|
19463
19463
|
return Vh(y), y.headers = Qi.from(y.headers), y.data = Oh.call(
|
19464
19464
|
y,
|
19465
19465
|
y.transformRequest
|
19466
|
-
), ["post", "put", "patch"].indexOf(y.method) !== -1 && y.headers.setContentType("application/x-www-form-urlencoded", !1),
|
19466
|
+
), ["post", "put", "patch"].indexOf(y.method) !== -1 && y.headers.setContentType("application/x-www-form-urlencoded", !1), Cp.getAdapter(y.adapter || cl.adapter)(y).then(function(D) {
|
19467
19467
|
return Vh(y), D.data = Oh.call(
|
19468
19468
|
y,
|
19469
19469
|
y.transformResponse,
|
19470
19470
|
D
|
19471
19471
|
), D.headers = Qi.from(D.headers), D;
|
19472
19472
|
}, function(D) {
|
19473
|
-
return
|
19473
|
+
return wp(D) || (Vh(y), D && D.response && (D.response.data = Oh.call(
|
19474
19474
|
y,
|
19475
19475
|
y.transformResponse,
|
19476
19476
|
D.response
|
19477
19477
|
), D.response.headers = Qi.from(D.response.headers))), Promise.reject(D);
|
19478
19478
|
});
|
19479
19479
|
}
|
19480
|
-
const
|
19480
|
+
const kp = "1.7.4", Yh = {};
|
19481
19481
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((y, T) => {
|
19482
19482
|
Yh[y] = function(D) {
|
19483
19483
|
return typeof D === y || "a" + (T < 1 ? "n " : " ") + y;
|
@@ -19486,7 +19486,7 @@ const Cp = "1.7.4", Yh = {};
|
|
19486
19486
|
const ep = {};
|
19487
19487
|
Yh.transitional = function(T, M, D) {
|
19488
19488
|
function N(J, S) {
|
19489
|
-
return "[Axios v" +
|
19489
|
+
return "[Axios v" + kp + "] Transitional option '" + J + "'" + S + (D ? ". " + D : "");
|
19490
19490
|
}
|
19491
19491
|
return (J, S, c) => {
|
19492
19492
|
if (T === !1)
|
@@ -19502,7 +19502,7 @@ Yh.transitional = function(T, M, D) {
|
|
19502
19502
|
)), T ? T(J, S, c) : !0;
|
19503
19503
|
};
|
19504
19504
|
};
|
19505
|
-
function
|
19505
|
+
function g_(y, T, M) {
|
19506
19506
|
if (typeof y != "object")
|
19507
19507
|
throw new ct("options must be an object", ct.ERR_BAD_OPTION_VALUE);
|
19508
19508
|
const D = Object.keys(y);
|
@@ -19520,7 +19520,7 @@ function m_(y, T, M) {
|
|
19520
19520
|
}
|
19521
19521
|
}
|
19522
19522
|
const Gh = {
|
19523
|
-
assertOptions:
|
19523
|
+
assertOptions: g_,
|
19524
19524
|
validators: Yh
|
19525
19525
|
}, ns = Gh.validators;
|
19526
19526
|
class $s {
|
@@ -19616,8 +19616,8 @@ class $s {
|
|
19616
19616
|
}
|
19617
19617
|
getUri(T) {
|
19618
19618
|
T = Zs(this.defaults, T);
|
19619
|
-
const M =
|
19620
|
-
return
|
19619
|
+
const M = Tp(T.baseURL, T.url);
|
19620
|
+
return xp(M, T.params, T.paramsSerializer);
|
19621
19621
|
}
|
19622
19622
|
}
|
19623
19623
|
pe.forEach(["delete", "get", "head", "options"], function(T) {
|
@@ -19711,12 +19711,12 @@ class Qh {
|
|
19711
19711
|
};
|
19712
19712
|
}
|
19713
19713
|
}
|
19714
|
-
function
|
19714
|
+
function __(y) {
|
19715
19715
|
return function(M) {
|
19716
19716
|
return y.apply(null, M);
|
19717
19717
|
};
|
19718
19718
|
}
|
19719
|
-
function
|
19719
|
+
function y_(y) {
|
19720
19720
|
return pe.isObject(y) && y.isAxiosError === !0;
|
19721
19721
|
}
|
19722
19722
|
const Hh = {
|
@@ -19787,33 +19787,33 @@ const Hh = {
|
|
19787
19787
|
Object.entries(Hh).forEach(([y, T]) => {
|
19788
19788
|
Hh[T] = y;
|
19789
19789
|
});
|
19790
|
-
function
|
19791
|
-
const T = new $s(y), M =
|
19790
|
+
function Ep(y) {
|
19791
|
+
const T = new $s(y), M = ap($s.prototype.request, T);
|
19792
19792
|
return pe.extend(M, $s.prototype, T, { allOwnKeys: !0 }), pe.extend(M, T, null, { allOwnKeys: !0 }), M.create = function(N) {
|
19793
|
-
return
|
19793
|
+
return Ep(Zs(y, N));
|
19794
19794
|
}, M;
|
19795
19795
|
}
|
19796
|
-
const Jt =
|
19796
|
+
const Jt = Ep(cl);
|
19797
19797
|
Jt.Axios = $s;
|
19798
19798
|
Jt.CanceledError = Uo;
|
19799
19799
|
Jt.CancelToken = Qh;
|
19800
|
-
Jt.isCancel =
|
19801
|
-
Jt.VERSION =
|
19800
|
+
Jt.isCancel = wp;
|
19801
|
+
Jt.VERSION = kp;
|
19802
19802
|
Jt.toFormData = Pc;
|
19803
19803
|
Jt.AxiosError = ct;
|
19804
19804
|
Jt.Cancel = Jt.CanceledError;
|
19805
19805
|
Jt.all = function(T) {
|
19806
19806
|
return Promise.all(T);
|
19807
19807
|
};
|
19808
|
-
Jt.spread =
|
19809
|
-
Jt.isAxiosError =
|
19808
|
+
Jt.spread = __;
|
19809
|
+
Jt.isAxiosError = y_;
|
19810
19810
|
Jt.mergeConfig = Zs;
|
19811
19811
|
Jt.AxiosHeaders = Qi;
|
19812
|
-
Jt.formToJSON = (y) =>
|
19813
|
-
Jt.getAdapter =
|
19812
|
+
Jt.formToJSON = (y) => bp(pe.isHTMLForm(y) ? new FormData(y) : y);
|
19813
|
+
Jt.getAdapter = Cp.getAdapter;
|
19814
19814
|
Jt.HttpStatusCode = Hh;
|
19815
19815
|
Jt.default = Jt;
|
19816
|
-
const
|
19816
|
+
const tp = (y, T = 300) => {
|
19817
19817
|
let M;
|
19818
19818
|
return function(...N) {
|
19819
19819
|
clearTimeout(M), M = setTimeout(() => {
|
@@ -19821,12 +19821,12 @@ const y_ = (y, T = 300) => {
|
|
19821
19821
|
}, T);
|
19822
19822
|
};
|
19823
19823
|
};
|
19824
|
-
function
|
19824
|
+
function Mp(y, T, M) {
|
19825
19825
|
if (y !== null)
|
19826
19826
|
for (var D, N, J, S, c, ye, _e, ve = 0, ae = 0, oe, ht = y.type, je = ht === "FeatureCollection", Xe = ht === "Feature", Be = je ? y.features.length : 1, lt = 0; lt < Be; lt++) {
|
19827
19827
|
_e = je ? y.features[lt].geometry : Xe ? y.geometry : y, oe = _e ? _e.type === "GeometryCollection" : !1, c = oe ? _e.geometries.length : 1;
|
19828
19828
|
for (var St = 0; St < c; St++) {
|
19829
|
-
var
|
19829
|
+
var Pe = 0, yt = 0;
|
19830
19830
|
if (S = oe ? _e.geometries[St] : _e, S !== null) {
|
19831
19831
|
ye = S.coordinates;
|
19832
19832
|
var ft = S.type;
|
@@ -19838,11 +19838,11 @@ function Ep(y, T, M) {
|
|
19838
19838
|
ye,
|
19839
19839
|
ae,
|
19840
19840
|
lt,
|
19841
|
-
|
19841
|
+
Pe,
|
19842
19842
|
yt
|
19843
19843
|
) === !1)
|
19844
19844
|
return !1;
|
19845
|
-
ae++,
|
19845
|
+
ae++, Pe++;
|
19846
19846
|
break;
|
19847
19847
|
case "LineString":
|
19848
19848
|
case "MultiPoint":
|
@@ -19851,13 +19851,13 @@ function Ep(y, T, M) {
|
|
19851
19851
|
ye[D],
|
19852
19852
|
ae,
|
19853
19853
|
lt,
|
19854
|
-
|
19854
|
+
Pe,
|
19855
19855
|
yt
|
19856
19856
|
) === !1)
|
19857
19857
|
return !1;
|
19858
|
-
ae++, ft === "MultiPoint" &&
|
19858
|
+
ae++, ft === "MultiPoint" && Pe++;
|
19859
19859
|
}
|
19860
|
-
ft === "LineString" &&
|
19860
|
+
ft === "LineString" && Pe++;
|
19861
19861
|
break;
|
19862
19862
|
case "Polygon":
|
19863
19863
|
case "MultiLineString":
|
@@ -19867,15 +19867,15 @@ function Ep(y, T, M) {
|
|
19867
19867
|
ye[D][N],
|
19868
19868
|
ae,
|
19869
19869
|
lt,
|
19870
|
-
|
19870
|
+
Pe,
|
19871
19871
|
yt
|
19872
19872
|
) === !1)
|
19873
19873
|
return !1;
|
19874
19874
|
ae++;
|
19875
19875
|
}
|
19876
|
-
ft === "MultiLineString" &&
|
19876
|
+
ft === "MultiLineString" && Pe++, ft === "Polygon" && yt++;
|
19877
19877
|
}
|
19878
|
-
ft === "Polygon" &&
|
19878
|
+
ft === "Polygon" && Pe++;
|
19879
19879
|
break;
|
19880
19880
|
case "MultiPolygon":
|
19881
19881
|
for (D = 0; D < ye.length; D++) {
|
@@ -19885,7 +19885,7 @@ function Ep(y, T, M) {
|
|
19885
19885
|
ye[D][N][J],
|
19886
19886
|
ae,
|
19887
19887
|
lt,
|
19888
|
-
|
19888
|
+
Pe,
|
19889
19889
|
yt
|
19890
19890
|
) === !1)
|
19891
19891
|
return !1;
|
@@ -19893,12 +19893,12 @@ function Ep(y, T, M) {
|
|
19893
19893
|
}
|
19894
19894
|
yt++;
|
19895
19895
|
}
|
19896
|
-
|
19896
|
+
Pe++;
|
19897
19897
|
}
|
19898
19898
|
break;
|
19899
19899
|
case "GeometryCollection":
|
19900
19900
|
for (D = 0; D < S.geometries.length; D++)
|
19901
|
-
if (
|
19901
|
+
if (Mp(S.geometries[D], T) === !1)
|
19902
19902
|
return !1;
|
19903
19903
|
break;
|
19904
19904
|
default:
|
@@ -19912,7 +19912,7 @@ function x_(y, T = {}) {
|
|
19912
19912
|
if (y.bbox != null && T.recompute !== !0)
|
19913
19913
|
return y.bbox;
|
19914
19914
|
const M = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
19915
|
-
return
|
19915
|
+
return Mp(y, (D) => {
|
19916
19916
|
M[0] > D[0] && (M[0] = D[0]), M[1] > D[1] && (M[1] = D[1]), M[2] < D[0] && (M[2] = D[0]), M[3] < D[1] && (M[3] = D[1]);
|
19917
19917
|
}), M;
|
19918
19918
|
}
|
@@ -20001,7 +20001,12 @@ function T_(y, T, M, D, N, J) {
|
|
20001
20001
|
]);
|
20002
20002
|
}
|
20003
20003
|
const I_ = /* @__PURE__ */ cn(v_, [["render", T_], ["__scopeId", "data-v-6644a27d"]]), P_ = {
|
20004
|
-
props: ["colors"]
|
20004
|
+
props: ["colors"],
|
20005
|
+
methods: {
|
20006
|
+
capitalizeFirstLetter(y) {
|
20007
|
+
return y ? y.charAt(0).toUpperCase() + y.slice(1) : "";
|
20008
|
+
}
|
20009
|
+
}
|
20005
20010
|
}, A_ = { class: "absolute left-[20px] bottom-[74px] bg-white max-w-[250px] p-[10px] rounded-lg" }, C_ = { class: "legend-item" }, k_ = {
|
20006
20011
|
key: 0,
|
20007
20012
|
class: "flex justify-start items-center gap-2"
|
@@ -20012,9 +20017,9 @@ function M_(y, T, M, D, N, J) {
|
|
20012
20017
|
S.id > 0 ? (wt(), qt("div", k_, [
|
20013
20018
|
tt("div", {
|
20014
20019
|
class: "w-[15px] h-[15px] rounded-[50%] min-w-[15px]",
|
20015
|
-
style:
|
20020
|
+
style: rp({ backgroundColor: S.color })
|
20016
20021
|
}, null, 4),
|
20017
|
-
tt("div", E_, js(S.text), 1)
|
20022
|
+
tt("div", E_, js(J.capitalizeFirstLetter(S.text)), 1)
|
20018
20023
|
])) : Nr("", !0)
|
20019
20024
|
]))), 256))
|
20020
20025
|
]);
|
@@ -20055,27 +20060,19 @@ const z_ = /* @__PURE__ */ cn(P_, [["render", M_]]), D_ = {
|
|
20055
20060
|
};
|
20056
20061
|
},
|
20057
20062
|
async mounted() {
|
20058
|
-
var y, T, M, D, N, J, S, c, ye, _e, ve, ae, oe, ht, je, Xe, Be, lt, St,
|
20063
|
+
var y, T, M, D, N, J, S, c, ye, _e, ve, ae, oe, ht, je, Xe, Be, lt, St, Pe, yt, ft, kt, Pt, er, si, tr, bt;
|
20059
20064
|
if (await this.createMap(), (y = this.row) != null && y.geom) {
|
20060
20065
|
const En = new URLSearchParams(window.location.search);
|
20061
|
-
|
20062
|
-
|
20063
|
-
|
20064
|
-
|
20065
|
-
|
20066
|
-
|
20067
|
-
|
20068
|
-
|
20069
|
-
|
20070
|
-
|
20071
|
-
padding: 30
|
20072
|
-
});
|
20073
|
-
}
|
20074
|
-
} else
|
20075
|
-
(tr = this.map) == null || tr.fitBounds((si = (er = (Pt = (kt = this.row) == null ? void 0 : kt.geom) == null ? void 0 : Pt.coordinates) == null ? void 0 : er[0]) == null ? void 0 : si[0], {
|
20076
|
-
maxZoom: 13,
|
20077
|
-
padding: 30
|
20078
|
-
});
|
20066
|
+
((M = (T = this.row) == null ? void 0 : T.geom) == null ? void 0 : M.coordinates.length) <= 1 && En.has("id") ? typeof ((c = (S = (J = (N = (D = this.row) == null ? void 0 : D.geom) == null ? void 0 : N.coordinates) == null ? void 0 : J[0]) == null ? void 0 : S[0]) == null ? void 0 : c[0]) == "number" ? (ae = this.map) == null || ae.fitBounds((ve = (_e = (ye = this.row) == null ? void 0 : ye.geom) == null ? void 0 : _e.coordinates) == null ? void 0 : ve[0], {
|
20067
|
+
maxZoom: 13,
|
20068
|
+
padding: 30
|
20069
|
+
}) : typeof ((Be = (Xe = (je = (ht = (oe = this.row) == null ? void 0 : oe.geom) == null ? void 0 : ht.coordinates) == null ? void 0 : je[0]) == null ? void 0 : Xe[0]) == null ? void 0 : Be[0]) == "object" && ((ft = this.map) == null || ft.fitBounds((yt = (Pe = (St = (lt = this.row) == null ? void 0 : lt.geom) == null ? void 0 : St.coordinates) == null ? void 0 : Pe[0]) == null ? void 0 : yt[0], {
|
20070
|
+
maxZoom: 13,
|
20071
|
+
padding: 30
|
20072
|
+
})) : (tr = this.map) == null || tr.fitBounds((si = (er = (Pt = (kt = this.row) == null ? void 0 : kt.geom) == null ? void 0 : Pt.coordinates) == null ? void 0 : er[0]) == null ? void 0 : si[0], {
|
20073
|
+
maxZoom: 13,
|
20074
|
+
padding: 30
|
20075
|
+
});
|
20079
20076
|
} else
|
20080
20077
|
(bt = this.map) == null || bt.fitBounds(this.maxBounds);
|
20081
20078
|
},
|
@@ -20192,7 +20189,7 @@ function R_(y, T, M, D, N, J) {
|
|
20192
20189
|
tt("div", {
|
20193
20190
|
id: "maplibre-map",
|
20194
20191
|
ref: "maplibreMap",
|
20195
|
-
style:
|
20192
|
+
style: rp({ height: M.height, width: M.width })
|
20196
20193
|
}, null, 4),
|
20197
20194
|
jr(S, { colors: N.colors }, null, 8, ["colors"]),
|
20198
20195
|
jr(c, {
|
@@ -20212,7 +20209,7 @@ const F_ = /* @__PURE__ */ cn(D_, [["render", R_]]), B_ = {}, O_ = {
|
|
20212
20209
|
"stroke-width": "2",
|
20213
20210
|
"stroke-linecap": "round",
|
20214
20211
|
"stroke-linejoin": "round"
|
20215
|
-
}, V_ = /* @__PURE__ */
|
20212
|
+
}, V_ = /* @__PURE__ */ ip('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9), N_ = [
|
20216
20213
|
V_
|
20217
20214
|
];
|
20218
20215
|
function j_(y, T) {
|
@@ -20315,7 +20312,7 @@ const py = /* @__PURE__ */ cn(ay, [["render", dy]]), fy = {
|
|
20315
20312
|
this.$emit("update:visible", !1), this.$emit("onClose");
|
20316
20313
|
}
|
20317
20314
|
}
|
20318
|
-
},
|
20315
|
+
}, zp = (y) => (Em("data-v-0a173fd8"), y = y(), Mm(), y), my = { class: "vsTailwind ui-dialog__wrapper" }, gy = { class: "w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50" }, _y = { class: "py-2.5 px-4 flex justify-between items-center border-b" }, yy = { class: "font-medium text-gray-800" }, xy = /* @__PURE__ */ zp(() => /* @__PURE__ */ tt("span", { class: "sr-only" }, "Close", -1)), vy = /* @__PURE__ */ zp(() => /* @__PURE__ */ tt("svg", {
|
20319
20316
|
class: "flex-shrink-0 w-4 h-4",
|
20320
20317
|
xmlns: "http://www.w3.org/2000/svg",
|
20321
20318
|
width: "24",
|
@@ -20337,10 +20334,10 @@ const py = /* @__PURE__ */ cn(ay, [["render", dy]]), fy = {
|
|
20337
20334
|
class: "flex justify-end gap-x-2"
|
20338
20335
|
};
|
20339
20336
|
function Ty(y, T, M, D, N, J) {
|
20340
|
-
return wt(), ss(
|
20337
|
+
return wt(), ss(Am, { to: "#modal" }, [
|
20341
20338
|
jr(Od, { name: "fade" }, {
|
20342
20339
|
default: sl(() => [
|
20343
|
-
|
20340
|
+
Cm(tt("div", my, [
|
20344
20341
|
tt("div", gy, [
|
20345
20342
|
jr(Od, {
|
20346
20343
|
name: "content",
|
@@ -20370,14 +20367,14 @@ function Ty(y, T, M, D, N, J) {
|
|
20370
20367
|
})
|
20371
20368
|
])
|
20372
20369
|
], 512), [
|
20373
|
-
[
|
20370
|
+
[km, M.visible]
|
20374
20371
|
])
|
20375
20372
|
]),
|
20376
20373
|
_: 3
|
20377
20374
|
})
|
20378
20375
|
]);
|
20379
20376
|
}
|
20380
|
-
const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd8"]]), Py =
|
20377
|
+
const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd8"]]), Py = zm({
|
20381
20378
|
props: [
|
20382
20379
|
"title",
|
20383
20380
|
"table",
|
@@ -20393,7 +20390,7 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20393
20390
|
mixins: [Wh],
|
20394
20391
|
components: {
|
20395
20392
|
MapPortal: F_,
|
20396
|
-
NoData:
|
20393
|
+
NoData: Zm,
|
20397
20394
|
FilterIcon: U_,
|
20398
20395
|
VisibleMapIcon: K_,
|
20399
20396
|
HiddenMapIcon: oy,
|
@@ -20410,6 +20407,10 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20410
20407
|
isSelectObj: !1,
|
20411
20408
|
selectedId: "",
|
20412
20409
|
searchRegion: "",
|
20410
|
+
handleSearchRegionDebounced: tp(
|
20411
|
+
(y) => this.updateSearchRegionValue(y),
|
20412
|
+
500
|
20413
|
+
),
|
20413
20414
|
searchRegionResult: [],
|
20414
20415
|
isRegionDropdownVisible: !1,
|
20415
20416
|
selectedRow: "",
|
@@ -20418,6 +20419,7 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20418
20419
|
tabsIsVisible: !1,
|
20419
20420
|
filterUrl: "",
|
20420
20421
|
currentPage: 1,
|
20422
|
+
regionOptionGeneral: null,
|
20421
20423
|
isFilterVisible: !1,
|
20422
20424
|
tableData: null,
|
20423
20425
|
hoverData: null,
|
@@ -20443,9 +20445,9 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20443
20445
|
label: "30"
|
20444
20446
|
}
|
20445
20447
|
],
|
20446
|
-
handleDebouncedUpdateValue:
|
20448
|
+
handleDebouncedUpdateValue: tp((y) => {
|
20447
20449
|
this.handleSearchValue(y);
|
20448
|
-
},
|
20450
|
+
}, 10)
|
20449
20451
|
};
|
20450
20452
|
},
|
20451
20453
|
watch: {
|
@@ -20464,30 +20466,35 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20464
20466
|
y || this.getData();
|
20465
20467
|
},
|
20466
20468
|
async regionSelectValue(y, T) {
|
20467
|
-
var
|
20469
|
+
var N, J;
|
20468
20470
|
if (!this.regionSelectValue) return;
|
20469
|
-
this.polyline = this.regionSelectValue.encoded_geom, this.getData();
|
20470
|
-
const M = ((
|
20471
|
-
this.currentBbox = x_(M), D
|
20472
|
-
|
20473
|
-
geometry: M
|
20474
|
-
})) : this.map.addSource("region-search-id", {
|
20475
|
-
type: "geojson",
|
20476
|
-
data: {
|
20471
|
+
y && this.selectedId && this.closeObjCard(), this.polyline = this.regionSelectValue.encoded_geom, this.getData();
|
20472
|
+
const M = ((N = this.regionSelectValue) == null ? void 0 : N.geom) || qs.toGeoJSON(this.regionSelectValue.encoded_geom), D = this.map.getSource("region-search-id");
|
20473
|
+
if (this.currentBbox = x_(M), D)
|
20474
|
+
D.setData({
|
20477
20475
|
type: "Feature",
|
20478
20476
|
geometry: M
|
20479
|
-
}
|
20480
|
-
|
20481
|
-
|
20482
|
-
|
20483
|
-
|
20484
|
-
|
20485
|
-
|
20486
|
-
|
20487
|
-
|
20488
|
-
|
20489
|
-
|
20490
|
-
|
20477
|
+
});
|
20478
|
+
else {
|
20479
|
+
this.map.addSource("region-search-id", {
|
20480
|
+
type: "geojson",
|
20481
|
+
data: {
|
20482
|
+
type: "Feature",
|
20483
|
+
geometry: M
|
20484
|
+
}
|
20485
|
+
});
|
20486
|
+
const S = {
|
20487
|
+
id: "region-search-id",
|
20488
|
+
type: "line",
|
20489
|
+
source: "region-search-id",
|
20490
|
+
paint: {
|
20491
|
+
"line-color": "blue",
|
20492
|
+
"line-opacity": 1
|
20493
|
+
}
|
20494
|
+
};
|
20495
|
+
await this.map.addLayer(S);
|
20496
|
+
}
|
20497
|
+
this.moveLayer("site.prc.parcel_object.table"), (J = this.map) == null || J.fitBounds(this.currentBbox, { zoom: 10, padding: 20 }), this.getData();
|
20491
20498
|
}
|
20492
20499
|
},
|
20493
20500
|
created() {
|
@@ -20500,6 +20507,9 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20500
20507
|
this.checkFilterLength();
|
20501
20508
|
},
|
20502
20509
|
methods: {
|
20510
|
+
async updateSearchRegionValue(y) {
|
20511
|
+
this.searchRegion = y, await this.getReginOptions();
|
20512
|
+
},
|
20503
20513
|
async getData() {
|
20504
20514
|
try {
|
20505
20515
|
const y = {
|
@@ -20510,14 +20520,11 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20510
20520
|
};
|
20511
20521
|
this.filtersParam !== "" && this.filtersParam !== "no-url" && (y.filter = this.filtersParam);
|
20512
20522
|
const { data: T } = await Jt.get(`/api/data/${this.table}`, { params: y });
|
20513
|
-
this.tableData = T.rows, this.total = T.total;
|
20523
|
+
this.tableData = T == null ? void 0 : T.rows, this.total = T.total;
|
20514
20524
|
} catch (y) {
|
20515
20525
|
console.error(y.message);
|
20516
20526
|
}
|
20517
20527
|
},
|
20518
|
-
async handleClick() {
|
20519
|
-
await this.getReginOptions();
|
20520
|
-
},
|
20521
20528
|
moveToDefaultPage() {
|
20522
20529
|
var D;
|
20523
20530
|
const y = new URLSearchParams(window.location.search);
|
@@ -20540,14 +20547,17 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20540
20547
|
await ((M = (T = this.$refs) == null ? void 0 : T.filter) == null ? void 0 : M.clearFilter(y)), await this.updateTableAndMap(), await this.getData();
|
20541
20548
|
},
|
20542
20549
|
async getReginOptions() {
|
20543
|
-
|
20544
|
-
|
20545
|
-
|
20546
|
-
|
20547
|
-
|
20548
|
-
|
20549
|
-
|
20550
|
-
|
20550
|
+
if (this.searchRegion === "" && this.regionOptionGeneral)
|
20551
|
+
this.searchRegionResult = this.regionOptionGeneral;
|
20552
|
+
else
|
20553
|
+
try {
|
20554
|
+
const { data: y } = await Jt.get(
|
20555
|
+
`https://data.softpro.ua/api-user/suggest/atu.codifier.type.polyline.select?parent=H&key=${this.searchRegion}`
|
20556
|
+
);
|
20557
|
+
this.searchRegionResult = y, this.regionOptionGeneral || (this.regionOptionGeneral = y);
|
20558
|
+
} catch (y) {
|
20559
|
+
console.error(y.message);
|
20560
|
+
}
|
20551
20561
|
},
|
20552
20562
|
handlePageChange(y) {
|
20553
20563
|
this.currentPage = y, this.getData();
|
@@ -20573,13 +20583,13 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20573
20583
|
async handleSearchRegionValue(y) {
|
20574
20584
|
var M;
|
20575
20585
|
const T = this.map.getLayer("region-search-id");
|
20576
|
-
this.searchRegion = y, y === "" && T
|
20586
|
+
this.searchRegion = y, y === "" && T ? ((M = this.map) == null || M.fitBounds(
|
20577
20587
|
[
|
20578
20588
|
[22, 44.4],
|
20579
20589
|
[40, 52.5]
|
20580
20590
|
],
|
20581
20591
|
{}
|
20582
|
-
), this.currentBbox = null, this.polyline = null, this.map.removeLayer("region-search-id"), this.getData());
|
20592
|
+
), this.currentBbox = null, this.polyline = null, this.map.removeLayer("region-search-id"), this.getData()) : y === "" && this.getData();
|
20583
20593
|
},
|
20584
20594
|
handleFilterChange(y) {
|
20585
20595
|
this.currentPage = y.state.page || 1, this.filterUrl = y.url.split("|").filter((T) => !T.includes("page=")).join("|");
|
@@ -20648,7 +20658,7 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20648
20658
|
}
|
20649
20659
|
},
|
20650
20660
|
async selectRow(y) {
|
20651
|
-
var N, J, S, c, ye, _e, ve, ae, oe, ht, je, Xe, Be, lt, St,
|
20661
|
+
var N, J, S, c, ye, _e, ve, ae, oe, ht, je, Xe, Be, lt, St, Pe, yt, ft, kt, Pt;
|
20652
20662
|
this.isMapVisible = !0, this.selectedRow = y;
|
20653
20663
|
const T = window.location.pathname, M = new URLSearchParams(window.location.search);
|
20654
20664
|
M.set("id", `${y.id}`);
|
@@ -20656,7 +20666,7 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20656
20666
|
window.history.pushState({}, "", D), this.checkUrl(), y != null && y.geom && (((N = y == null ? void 0 : y.geom) == null ? void 0 : N.coordinates.length) <= 1 ? typeof ((ye = (c = (S = (J = y == null ? void 0 : y.geom) == null ? void 0 : J.coordinates) == null ? void 0 : S[0]) == null ? void 0 : c[0]) == null ? void 0 : ye[0]) == "number" ? (ae = this.map) == null || ae.fitBounds((ve = (_e = y == null ? void 0 : y.geom) == null ? void 0 : _e.coordinates) == null ? void 0 : ve[0], {
|
20657
20667
|
maxZoom: 13,
|
20658
20668
|
padding: 30
|
20659
|
-
}) : typeof ((Xe = (je = (ht = (oe = y == null ? void 0 : y.geom) == null ? void 0 : oe.coordinates) == null ? void 0 : ht[0]) == null ? void 0 : je[0]) == null ? void 0 : Xe[0]) == "object" && ((
|
20669
|
+
}) : typeof ((Xe = (je = (ht = (oe = y == null ? void 0 : y.geom) == null ? void 0 : oe.coordinates) == null ? void 0 : ht[0]) == null ? void 0 : je[0]) == null ? void 0 : Xe[0]) == "object" && ((Pe = this.map) == null || Pe.fitBounds((St = (lt = (Be = y == null ? void 0 : y.geom) == null ? void 0 : Be.coordinates) == null ? void 0 : lt[0]) == null ? void 0 : St[0], {
|
20660
20670
|
maxZoom: 13,
|
20661
20671
|
padding: 30
|
20662
20672
|
})) : (Pt = this.map) == null || Pt.fitBounds((kt = (ft = (yt = y == null ? void 0 : y.geom) == null ? void 0 : yt.coordinates) == null ? void 0 : ft[0]) == null ? void 0 : kt[0], {
|
@@ -20705,7 +20715,7 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20705
20715
|
}, Gy = /* @__PURE__ */ tt("span", { class: "font-medium" }, " Очистити ", -1), Hy = {
|
20706
20716
|
key: 2,
|
20707
20717
|
class: "text-center py-28"
|
20708
|
-
}, Wy = /* @__PURE__ */ tt("h2", { class: "font-medium text-base text-gray-500 rounded-xl" }, " За
|
20718
|
+
}, Wy = /* @__PURE__ */ tt("h2", { class: "font-medium text-base text-gray-500 rounded-xl" }, " За вашим запитом даних не знайдено! ", -1), Xy = /* @__PURE__ */ tt("p", { class: "font-normal text-sm text-gray-500 rounded-xl" }, " Введіть, будь ласка, інші значення для пошуку. ", -1), Jy = { key: 0 }, Ky = {
|
20709
20719
|
key: 1,
|
20710
20720
|
class: "my-5 pr-2"
|
20711
20721
|
}, Yy = { class: "flex justify-between" }, Qy = {
|
@@ -20725,27 +20735,27 @@ function i0(y, T, M, D, N, J) {
|
|
20725
20735
|
key: 0,
|
20726
20736
|
modelValue: y.regionSelectValue,
|
20727
20737
|
"onUpdate:modelValue": [
|
20728
|
-
T[0] || (T[0] = (
|
20738
|
+
T[0] || (T[0] = (Pe) => y.regionSelectValue = Pe),
|
20729
20739
|
y.handleSearchRegionValue
|
20730
20740
|
],
|
20731
20741
|
searchable: "",
|
20732
20742
|
clearable: "",
|
20733
20743
|
searchPlaceholder: "Введіть назву громади",
|
20734
20744
|
placeholder: "Обрати область чи громаду",
|
20735
|
-
onOnSearch:
|
20736
|
-
onClick: y.
|
20745
|
+
onOnSearch: y.handleSearchRegionDebounced,
|
20746
|
+
onClick: y.getReginOptions,
|
20737
20747
|
class: "w-[350px]"
|
20738
20748
|
}, {
|
20739
20749
|
default: sl(() => [
|
20740
|
-
(wt(!0), qt(yc, null, xc(y.searchRegionResult, (
|
20750
|
+
(wt(!0), qt(yc, null, xc(y.searchRegionResult, (Pe) => (wt(), ss(S, {
|
20741
20751
|
class: "cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
|
20742
|
-
key:
|
20743
|
-
value:
|
20744
|
-
label: y.regionFullName(
|
20752
|
+
key: Pe == null ? void 0 : Pe.id,
|
20753
|
+
value: Pe,
|
20754
|
+
label: y.regionFullName(Pe)
|
20745
20755
|
}, null, 8, ["value", "label"]))), 128))
|
20746
20756
|
]),
|
20747
20757
|
_: 1
|
20748
|
-
}, 8, ["modelValue", "onUpdate:modelValue", "onClick"])) : Nr("", !0),
|
20758
|
+
}, 8, ["modelValue", "onOnSearch", "onUpdate:modelValue", "onClick"])) : Nr("", !0),
|
20749
20759
|
y.maskForSearch ? (wt(), ss(ye, {
|
20750
20760
|
key: 1,
|
20751
20761
|
"model-value": y.search,
|
@@ -20773,29 +20783,29 @@ function i0(y, T, M, D, N, J) {
|
|
20773
20783
|
tt("button", {
|
20774
20784
|
type: "button",
|
20775
20785
|
class: "py-2 px-2.5 max-h-[38px] inline-flex items-center gap-x-1.5 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",
|
20776
|
-
onClick: T[
|
20786
|
+
onClick: T[1] || (T[1] = (...Pe) => y.toggleFilterShown && y.toggleFilterShown(...Pe))
|
20777
20787
|
}, [
|
20778
20788
|
jr(ve),
|
20779
|
-
|
20789
|
+
Dm(" Фільтри "),
|
20780
20790
|
y.activeFiltersCount >= 1 ? (wt(), qt("span", Ey, js(y.activeFiltersCount), 1)) : Nr("", !0)
|
20781
20791
|
]),
|
20782
20792
|
jr(oe, {
|
20783
20793
|
visible: y.isFilterVisible,
|
20784
|
-
"onUpdate:visible": T[
|
20794
|
+
"onUpdate:visible": T[4] || (T[4] = (Pe) => y.isFilterVisible = Pe),
|
20785
20795
|
title: "Фільтри",
|
20786
20796
|
size: "small",
|
20787
|
-
onOnClose: T[
|
20797
|
+
onOnClose: T[5] || (T[5] = () => {
|
20788
20798
|
y.visibleTrue = !0, y.isFilterVisible = !1;
|
20789
20799
|
})
|
20790
20800
|
}, {
|
20791
20801
|
footer: sl(() => [
|
20792
20802
|
tt("div", My, [
|
20793
20803
|
tt("button", {
|
20794
|
-
onClick: T[
|
20804
|
+
onClick: T[2] || (T[2] = (...Pe) => y.resetFilters && y.resetFilters(...Pe)),
|
20795
20805
|
class: "py-2 px-3 inline-flex justify-center items-center text-start bg-white border border-gray-200 text-gray-800 text-sm font-medium rounded-lg shadow-sm align-middle hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
20796
20806
|
}, " Очистити все "),
|
20797
20807
|
tt("button", {
|
20798
|
-
onClick: T[
|
20808
|
+
onClick: T[3] || (T[3] = (...Pe) => y.updateTableAndMap && y.updateTableAndMap(...Pe)),
|
20799
20809
|
class: "py-2 px-3 inline-flex justify-center items-center gap-x-2 text-start bg-blue-600 border border-blue-600 text-white text-sm font-medium rounded-lg shadow-sm align-middle hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"
|
20800
20810
|
}, " Застосувати ")
|
20801
20811
|
])
|
@@ -20819,7 +20829,7 @@ function i0(y, T, M, D, N, J) {
|
|
20819
20829
|
type: "button",
|
20820
20830
|
class: "py-2 px-2 inline-flex items-center gap-x-1.5 text-sm rounded-lg border border-gray-200 bg-white text-gray-600 shadow-sm hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100",
|
20821
20831
|
title: y.isMapVisible ? "Приховати карту" : "Показати карту",
|
20822
|
-
onClick: T[
|
20832
|
+
onClick: T[6] || (T[6] = (...Pe) => y.toggleMapVisible && y.toggleMapVisible(...Pe))
|
20823
20833
|
}, [
|
20824
20834
|
y.isMapVisible ? (wt(), ss(ht, { key: 0 })) : (wt(), ss(je, { key: 1 })),
|
20825
20835
|
Dy
|
@@ -20840,13 +20850,13 @@ function i0(y, T, M, D, N, J) {
|
|
20840
20850
|
]),
|
20841
20851
|
tt("div", Vy, [
|
20842
20852
|
y.activeFilters ? (wt(), qt("div", Ny, [
|
20843
|
-
(wt(!0), qt(yc, null, xc(y.activeFilters, (
|
20853
|
+
(wt(!0), qt(yc, null, xc(y.activeFilters, (Pe, yt, ft) => (wt(), qt("span", {
|
20844
20854
|
class: "mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full",
|
20845
20855
|
key: ft
|
20846
20856
|
}, [
|
20847
20857
|
tt("span", jy, js(y.getLabelById(yt)), 1),
|
20848
20858
|
Uy,
|
20849
|
-
tt("span", $y, js(y.getOptionsLabelById(yt,
|
20859
|
+
tt("span", $y, js(y.getOptionsLabelById(yt, Pe)), 1),
|
20850
20860
|
tt("button", {
|
20851
20861
|
type: "button",
|
20852
20862
|
class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
|
@@ -20860,7 +20870,7 @@ function i0(y, T, M, D, N, J) {
|
|
20860
20870
|
tt("button", {
|
20861
20871
|
type: "button",
|
20862
20872
|
class: "inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",
|
20863
|
-
onClick: T[
|
20873
|
+
onClick: T[7] || (T[7] = (...Pe) => y.resetFilters && y.resetFilters(...Pe))
|
20864
20874
|
}, [
|
20865
20875
|
jr(Xe)
|
20866
20876
|
])
|
@@ -20879,7 +20889,7 @@ function i0(y, T, M, D, N, J) {
|
|
20879
20889
|
tt("button", {
|
20880
20890
|
type: "button",
|
20881
20891
|
class: "mt-[10px] py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs rounded-lg border border-stone-200 bg-white text-stone-800 shadow-sm hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100",
|
20882
|
-
onClick: T[
|
20892
|
+
onClick: T[8] || (T[8] = (...Pe) => y.resetFilters && y.resetFilters(...Pe))
|
20883
20893
|
}, " Очистити дані пошуку ")
|
20884
20894
|
]))
|
20885
20895
|
]),
|
@@ -20936,12 +20946,12 @@ function i0(y, T, M, D, N, J) {
|
|
20936
20946
|
])
|
20937
20947
|
]);
|
20938
20948
|
}
|
20939
|
-
const
|
20940
|
-
y.component("VsPartsMap",
|
20949
|
+
const Dp = /* @__PURE__ */ cn(Py, [["render", i0]]), r0 = (y) => {
|
20950
|
+
y.component("VsPartsMap", Dp);
|
20941
20951
|
}, n0 = {
|
20942
20952
|
install: r0,
|
20943
20953
|
components: {
|
20944
|
-
VsPartsMap:
|
20954
|
+
VsPartsMap: Dp
|
20945
20955
|
}
|
20946
20956
|
};
|
20947
20957
|
typeof window < "u" && (window.PartsMap = n0);
|