@opensystemslab/map 1.0.0-alpha.3 → 1.0.0-alpha.4
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/component-lib.es.js +1 -1
- package/dist/component-lib.umd.js +20 -20
- package/dist/{index-Dgd3KQAy.mjs → index-0AQlXt5x.mjs} +309 -299
- package/dist/{index.es-DDic13B-.mjs → index.es-BSUWcQGl.mjs} +1 -1
- package/package.json +5 -5
- package/types/components/my-map/drawing.d.ts +1 -1
- package/types/components/my-map/index.d.ts +1 -0
|
@@ -578,7 +578,7 @@ const aC = { attribute: !0, type: String, converter: wg, reflect: !1, hasChanged
|
|
|
578
578
|
}
|
|
579
579
|
throw Error("Unsupported decorator location: " + n);
|
|
580
580
|
};
|
|
581
|
-
function
|
|
581
|
+
function Xt(i) {
|
|
582
582
|
return (t, e) => typeof e == "object" ? lC(i, t, e) : ((n, r, o) => {
|
|
583
583
|
const s = r.hasOwnProperty(o);
|
|
584
584
|
return r.constructor.createProperty(o, s ? { ...n, wrapped: !0 } : n), s ? Object.getOwnPropertyDescriptor(r, o) : void 0;
|
|
@@ -590,7 +590,7 @@ function Yt(i) {
|
|
|
590
590
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
591
591
|
*/
|
|
592
592
|
function Ea(i) {
|
|
593
|
-
return
|
|
593
|
+
return Xt({ ...i, state: !0, attribute: !1 });
|
|
594
594
|
}
|
|
595
595
|
const ie = {
|
|
596
596
|
IDLE: 0,
|
|
@@ -10634,9 +10634,9 @@ function xb(i, t, e, n, r) {
|
|
|
10634
10634
|
}
|
|
10635
10635
|
}
|
|
10636
10636
|
let hc = 0;
|
|
10637
|
-
const dc = 0, Li = 1 << hc++,
|
|
10637
|
+
const dc = 0, Li = 1 << hc++, le = 1 << hc++, or = 1 << hc++, rn = 1 << hc++, _s = 1 << hc++, xn = Math.pow(2, hc) - 1, t3 = {
|
|
10638
10638
|
[Li]: "boolean",
|
|
10639
|
-
[
|
|
10639
|
+
[le]: "number",
|
|
10640
10640
|
[or]: "string",
|
|
10641
10641
|
[rn]: "color",
|
|
10642
10642
|
[_s]: "number[]"
|
|
@@ -10691,7 +10691,7 @@ function tA(i) {
|
|
|
10691
10691
|
case "color":
|
|
10692
10692
|
return rn;
|
|
10693
10693
|
case "number":
|
|
10694
|
-
return
|
|
10694
|
+
return le;
|
|
10695
10695
|
case "boolean":
|
|
10696
10696
|
return Li;
|
|
10697
10697
|
case "number[]":
|
|
@@ -10705,7 +10705,7 @@ function ii(i, t, e) {
|
|
|
10705
10705
|
case "boolean":
|
|
10706
10706
|
return new na(Li, i);
|
|
10707
10707
|
case "number":
|
|
10708
|
-
return new na(
|
|
10708
|
+
return new na(le, i);
|
|
10709
10709
|
case "string": {
|
|
10710
10710
|
let r = or;
|
|
10711
10711
|
return yC(i) && (r |= rn), zp(r & e, dc) || (r &= e), new na(r, i);
|
|
@@ -10784,16 +10784,16 @@ const Mt = {
|
|
|
10784
10784
|
Ie(1, 1),
|
|
10785
10785
|
nA
|
|
10786
10786
|
),
|
|
10787
|
-
[Mt.Id]: we(
|
|
10787
|
+
[Mt.Id]: we(le | or, eh, rA),
|
|
10788
10788
|
[Mt.Concat]: we(
|
|
10789
10789
|
or,
|
|
10790
10790
|
Ie(2, 1 / 0),
|
|
10791
10791
|
He(xn)
|
|
10792
10792
|
),
|
|
10793
10793
|
[Mt.GeometryType]: we(or, eh, oA),
|
|
10794
|
-
[Mt.Resolution]: we(
|
|
10795
|
-
[Mt.Zoom]: we(
|
|
10796
|
-
[Mt.Time]: we(
|
|
10794
|
+
[Mt.Resolution]: we(le, eh),
|
|
10795
|
+
[Mt.Zoom]: we(le, eh),
|
|
10796
|
+
[Mt.Time]: we(le, eh),
|
|
10797
10797
|
[Mt.Any]: we(
|
|
10798
10798
|
Li,
|
|
10799
10799
|
Ie(2, 1 / 0),
|
|
@@ -10847,13 +10847,13 @@ const Mt = {
|
|
|
10847
10847
|
),
|
|
10848
10848
|
[Mt.Multiply]: we(
|
|
10849
10849
|
(i) => {
|
|
10850
|
-
let t =
|
|
10850
|
+
let t = le | rn;
|
|
10851
10851
|
for (let e = 0; e < i.length; e++)
|
|
10852
10852
|
t &= i[e].type;
|
|
10853
10853
|
return t;
|
|
10854
10854
|
},
|
|
10855
10855
|
Ie(2, 1 / 0),
|
|
10856
|
-
He(
|
|
10856
|
+
He(le | rn),
|
|
10857
10857
|
Bs
|
|
10858
10858
|
),
|
|
10859
10859
|
[Mt.Coalesce]: we(
|
|
@@ -10868,74 +10868,74 @@ const Mt = {
|
|
|
10868
10868
|
Bs
|
|
10869
10869
|
),
|
|
10870
10870
|
[Mt.Divide]: we(
|
|
10871
|
-
|
|
10871
|
+
le,
|
|
10872
10872
|
Ie(2, 2),
|
|
10873
|
-
He(
|
|
10873
|
+
He(le)
|
|
10874
10874
|
),
|
|
10875
10875
|
[Mt.Add]: we(
|
|
10876
|
-
|
|
10876
|
+
le,
|
|
10877
10877
|
Ie(2, 1 / 0),
|
|
10878
|
-
He(
|
|
10878
|
+
He(le)
|
|
10879
10879
|
),
|
|
10880
10880
|
[Mt.Subtract]: we(
|
|
10881
|
-
|
|
10881
|
+
le,
|
|
10882
10882
|
Ie(2, 2),
|
|
10883
|
-
He(
|
|
10883
|
+
He(le)
|
|
10884
10884
|
),
|
|
10885
10885
|
[Mt.Clamp]: we(
|
|
10886
|
-
|
|
10886
|
+
le,
|
|
10887
10887
|
Ie(3, 3),
|
|
10888
|
-
He(
|
|
10888
|
+
He(le)
|
|
10889
10889
|
),
|
|
10890
10890
|
[Mt.Mod]: we(
|
|
10891
|
-
|
|
10891
|
+
le,
|
|
10892
10892
|
Ie(2, 2),
|
|
10893
|
-
He(
|
|
10893
|
+
He(le)
|
|
10894
10894
|
),
|
|
10895
10895
|
[Mt.Pow]: we(
|
|
10896
|
-
|
|
10896
|
+
le,
|
|
10897
10897
|
Ie(2, 2),
|
|
10898
|
-
He(
|
|
10898
|
+
He(le)
|
|
10899
10899
|
),
|
|
10900
10900
|
[Mt.Abs]: we(
|
|
10901
|
-
|
|
10901
|
+
le,
|
|
10902
10902
|
Ie(1, 1),
|
|
10903
|
-
He(
|
|
10903
|
+
He(le)
|
|
10904
10904
|
),
|
|
10905
10905
|
[Mt.Floor]: we(
|
|
10906
|
-
|
|
10906
|
+
le,
|
|
10907
10907
|
Ie(1, 1),
|
|
10908
|
-
He(
|
|
10908
|
+
He(le)
|
|
10909
10909
|
),
|
|
10910
10910
|
[Mt.Ceil]: we(
|
|
10911
|
-
|
|
10911
|
+
le,
|
|
10912
10912
|
Ie(1, 1),
|
|
10913
|
-
He(
|
|
10913
|
+
He(le)
|
|
10914
10914
|
),
|
|
10915
10915
|
[Mt.Round]: we(
|
|
10916
|
-
|
|
10916
|
+
le,
|
|
10917
10917
|
Ie(1, 1),
|
|
10918
|
-
He(
|
|
10918
|
+
He(le)
|
|
10919
10919
|
),
|
|
10920
10920
|
[Mt.Sin]: we(
|
|
10921
|
-
|
|
10921
|
+
le,
|
|
10922
10922
|
Ie(1, 1),
|
|
10923
|
-
He(
|
|
10923
|
+
He(le)
|
|
10924
10924
|
),
|
|
10925
10925
|
[Mt.Cos]: we(
|
|
10926
|
-
|
|
10926
|
+
le,
|
|
10927
10927
|
Ie(1, 1),
|
|
10928
|
-
He(
|
|
10928
|
+
He(le)
|
|
10929
10929
|
),
|
|
10930
10930
|
[Mt.Atan]: we(
|
|
10931
|
-
|
|
10931
|
+
le,
|
|
10932
10932
|
Ie(1, 2),
|
|
10933
|
-
He(
|
|
10933
|
+
He(le)
|
|
10934
10934
|
),
|
|
10935
10935
|
[Mt.Sqrt]: we(
|
|
10936
|
-
|
|
10936
|
+
le,
|
|
10937
10937
|
Ie(1, 1),
|
|
10938
|
-
He(
|
|
10938
|
+
He(le)
|
|
10939
10939
|
),
|
|
10940
10940
|
[Mt.Match]: we(
|
|
10941
10941
|
(i) => {
|
|
@@ -10951,11 +10951,11 @@ const Mt = {
|
|
|
10951
10951
|
[Mt.Between]: we(
|
|
10952
10952
|
Li,
|
|
10953
10953
|
Ie(3, 3),
|
|
10954
|
-
He(
|
|
10954
|
+
He(le)
|
|
10955
10955
|
),
|
|
10956
10956
|
[Mt.Interpolate]: we(
|
|
10957
10957
|
(i) => {
|
|
10958
|
-
let t = rn |
|
|
10958
|
+
let t = rn | le;
|
|
10959
10959
|
for (let e = 3; e < i.length; e += 2)
|
|
10960
10960
|
t &= i[e].type;
|
|
10961
10961
|
return t;
|
|
@@ -10977,7 +10977,7 @@ const Mt = {
|
|
|
10977
10977
|
),
|
|
10978
10978
|
[Mt.In]: we(Li, Ie(2, 2), cA),
|
|
10979
10979
|
[Mt.Number]: we(
|
|
10980
|
-
|
|
10980
|
+
le,
|
|
10981
10981
|
Ie(1, 1 / 0),
|
|
10982
10982
|
He(xn)
|
|
10983
10983
|
),
|
|
@@ -10989,23 +10989,23 @@ const Mt = {
|
|
|
10989
10989
|
[Mt.Array]: we(
|
|
10990
10990
|
(i) => i.length === 3 || i.length === 4 ? _s | rn : _s,
|
|
10991
10991
|
Ie(1, 1 / 0),
|
|
10992
|
-
He(
|
|
10992
|
+
He(le)
|
|
10993
10993
|
),
|
|
10994
10994
|
[Mt.Color]: we(
|
|
10995
10995
|
rn,
|
|
10996
10996
|
Ie(1, 4),
|
|
10997
|
-
He(
|
|
10997
|
+
He(le)
|
|
10998
10998
|
),
|
|
10999
10999
|
[Mt.Band]: we(
|
|
11000
|
-
|
|
11000
|
+
le,
|
|
11001
11001
|
Ie(1, 3),
|
|
11002
|
-
He(
|
|
11002
|
+
He(le)
|
|
11003
11003
|
),
|
|
11004
11004
|
[Mt.Palette]: we(rn, Ie(2, 2), hA),
|
|
11005
11005
|
[Mt.ToString]: we(
|
|
11006
11006
|
or,
|
|
11007
11007
|
Ie(1, 1),
|
|
11008
|
-
He(Li |
|
|
11008
|
+
He(Li | le | or | rn)
|
|
11009
11009
|
)
|
|
11010
11010
|
};
|
|
11011
11011
|
function iA(i, t) {
|
|
@@ -11126,7 +11126,7 @@ function aA(i, t, e, n) {
|
|
|
11126
11126
|
const f = ii(i[h + 2], t), d = ii(i[h + 3], t);
|
|
11127
11127
|
s &= f.type, l &= d.type, u[h] = f, u[h + 1] = d;
|
|
11128
11128
|
}
|
|
11129
|
-
const c = or |
|
|
11129
|
+
const c = or | le | Li;
|
|
11130
11130
|
if (!Ao(c, s))
|
|
11131
11131
|
throw new Error(
|
|
11132
11132
|
`Expected an input of type ${Cn(
|
|
@@ -11169,24 +11169,24 @@ function lA(i, t, e, n) {
|
|
|
11169
11169
|
);
|
|
11170
11170
|
o = ii(o, t);
|
|
11171
11171
|
let s = ii(i[2], t);
|
|
11172
|
-
if (!Ao(
|
|
11172
|
+
if (!Ao(le, s.type))
|
|
11173
11173
|
throw new Error(
|
|
11174
11174
|
`Expected an input of type number for the interpolate operation, got ${Cn(s.type)} instead`
|
|
11175
11175
|
);
|
|
11176
|
-
s = ii(i[2], t,
|
|
11176
|
+
s = ii(i[2], t, le);
|
|
11177
11177
|
const a = new Array(i.length - 3);
|
|
11178
11178
|
for (let l = 0; l < a.length; l += 2) {
|
|
11179
11179
|
let u = ii(i[l + 3], t);
|
|
11180
|
-
if (!Ao(
|
|
11180
|
+
if (!Ao(le, u.type))
|
|
11181
11181
|
throw new Error(
|
|
11182
11182
|
`Expected all stop input values in the interpolate operation to be of type number, got ${Cn(u.type)} at position ${l + 2} instead`
|
|
11183
11183
|
);
|
|
11184
11184
|
let c = ii(i[l + 4], t);
|
|
11185
|
-
if (!Ao(
|
|
11185
|
+
if (!Ao(le | rn, c.type))
|
|
11186
11186
|
throw new Error(
|
|
11187
11187
|
`Expected all stop output values in the interpolate operation to be a number or color, got ${Cn(c.type)} at position ${l + 3} instead`
|
|
11188
11188
|
);
|
|
11189
|
-
u = ii(i[l + 3], t,
|
|
11189
|
+
u = ii(i[l + 3], t, le), c = ii(i[l + 4], t, le | rn), a[l] = u, a[l + 1] = c;
|
|
11190
11190
|
}
|
|
11191
11191
|
return [o, s, ...a];
|
|
11192
11192
|
}
|
|
@@ -11234,7 +11234,7 @@ function cA(i, t) {
|
|
|
11234
11234
|
);
|
|
11235
11235
|
e = e[1];
|
|
11236
11236
|
}
|
|
11237
|
-
let n = or |
|
|
11237
|
+
let n = or | le;
|
|
11238
11238
|
const r = new Array(e.length);
|
|
11239
11239
|
for (let s = 0; s < r.length; s++) {
|
|
11240
11240
|
const a = ii(e[s], t);
|
|
@@ -11247,8 +11247,8 @@ function cA(i, t) {
|
|
|
11247
11247
|
return [ii(i[1], t, n), ...r];
|
|
11248
11248
|
}
|
|
11249
11249
|
function hA(i, t) {
|
|
11250
|
-
const e = ii(i[1], t,
|
|
11251
|
-
if (e.type !==
|
|
11250
|
+
const e = ii(i[1], t, le);
|
|
11251
|
+
if (e.type !== le)
|
|
11252
11252
|
throw new Error(
|
|
11253
11253
|
`The first argument of palette must be an number, got ${Cn(
|
|
11254
11254
|
e.type
|
|
@@ -12024,7 +12024,7 @@ function TA(i, t) {
|
|
|
12024
12024
|
function Un(i, t, e) {
|
|
12025
12025
|
if (!(t in i))
|
|
12026
12026
|
return;
|
|
12027
|
-
const n = ks(i[t],
|
|
12027
|
+
const n = ks(i[t], le, e);
|
|
12028
12028
|
return function(r) {
|
|
12029
12029
|
return W1(n(r), t);
|
|
12030
12030
|
};
|
|
@@ -12119,7 +12119,7 @@ function jp(i, t, e) {
|
|
|
12119
12119
|
return null;
|
|
12120
12120
|
const n = ks(
|
|
12121
12121
|
i[t],
|
|
12122
|
-
_s |
|
|
12122
|
+
_s | le,
|
|
12123
12123
|
e
|
|
12124
12124
|
);
|
|
12125
12125
|
return function(r) {
|
|
@@ -14444,10 +14444,10 @@ class XA {
|
|
|
14444
14444
|
const bt = (
|
|
14445
14445
|
/** @type {import("../../geom/SimpleGeometry.js").default} */
|
|
14446
14446
|
S[3]
|
|
14447
|
-
),
|
|
14447
|
+
), Yt = S[4], gt = S[5];
|
|
14448
14448
|
tt.geometry = bt, tt.feature = X, h in H || (H[h] = []);
|
|
14449
14449
|
const V = H[h];
|
|
14450
|
-
gt ? gt(c, d, p, 2, V) : (V[0] = c[d], V[1] = c[d + 1], V.length = 2), u && (u.zIndex = S[6]),
|
|
14450
|
+
gt ? gt(c, d, p, 2, V) : (V[0] = c[d], V[1] = c[d + 1], V.length = 2), u && (u.zIndex = S[6]), Yt(V, tt), ++h;
|
|
14451
14451
|
break;
|
|
14452
14452
|
case de.DRAW_IMAGE:
|
|
14453
14453
|
d = /** @type {number} */
|
|
@@ -14587,7 +14587,7 @@ class XA {
|
|
|
14587
14587
|
), Me = (
|
|
14588
14588
|
/** @type {number} */
|
|
14589
14589
|
S[2]
|
|
14590
|
-
),
|
|
14590
|
+
), ae = (
|
|
14591
14591
|
/** @type {number} */
|
|
14592
14592
|
S[3]
|
|
14593
14593
|
), be = (
|
|
@@ -14651,7 +14651,7 @@ class XA {
|
|
|
14651
14651
|
for (ne = 0, Ri = xi.length; ne < Ri; ++ne) {
|
|
14652
14652
|
Be = xi[ne], $i = /** @type {string} */
|
|
14653
14653
|
Be[4], Oe = this.createLabel($i, M, "", U), v = /** @type {number} */
|
|
14654
|
-
Be[2] + (Gi[0] < 0 ? -pe : pe), y =
|
|
14654
|
+
Be[2] + (Gi[0] < 0 ? -pe : pe), y = ae * Oe.height + (0.5 - ae) * 2 * pe * Gi[1] / Gi[0] - Fe;
|
|
14655
14655
|
const Qe = this.calculateImageOrLabelDimensions_(
|
|
14656
14656
|
Oe.width,
|
|
14657
14657
|
Oe.height,
|
|
@@ -14686,7 +14686,7 @@ class XA {
|
|
|
14686
14686
|
for (ne = 0, Ri = xi.length; ne < Ri; ++ne) {
|
|
14687
14687
|
Be = xi[ne], $i = /** @type {string} */
|
|
14688
14688
|
Be[4], Oe = this.createLabel($i, M, J, ""), v = /** @type {number} */
|
|
14689
|
-
Be[2], y =
|
|
14689
|
+
Be[2], y = ae * Oe.height - Fe;
|
|
14690
14690
|
const Qe = this.calculateImageOrLabelDimensions_(
|
|
14691
14691
|
Oe.width,
|
|
14692
14692
|
Oe.height,
|
|
@@ -23838,11 +23838,11 @@ class $3 extends qy {
|
|
|
23838
23838
|
), vt = d.getTileCoordExtent(at), Rt = Hi(this.tempTransform, [
|
|
23839
23839
|
x * (vt[0] - M[0]) / v,
|
|
23840
23840
|
x * (M[3] - vt[3]) / v
|
|
23841
|
-
]), bt = x * h.getGutterForProjection(o),
|
|
23842
|
-
for (const gt in
|
|
23841
|
+
]), bt = x * h.getGutterForProjection(o), Yt = J[S];
|
|
23842
|
+
for (const gt in Yt) {
|
|
23843
23843
|
const V = (
|
|
23844
23844
|
/** @type {import("../../ImageTile.js").default} */
|
|
23845
|
-
|
|
23845
|
+
Yt[gt]
|
|
23846
23846
|
), Qt = V.tileCoord, Lt = at[1] - Qt[1], mt = Math.round(Rt[0] - (Lt - 1) * it), Et = at[2] - Qt[2], St = Math.round(Rt[1] - (Et - 1) * et), wt = Math.round(Rt[0] - Lt * it), Ot = Math.round(Rt[1] - Et * et), Nt = mt - wt, Dt = St - Ot, jt = p === S, Bt = jt && V.getAlpha(ue(this), t.time) !== 1;
|
|
23847
23847
|
let $t = !1;
|
|
23848
23848
|
if (!Bt)
|
|
@@ -31370,7 +31370,7 @@ function D4(i, t, e, n = Jr, r = void 0, o = void 0, s = void 0, a = void 0) {
|
|
|
31370
31370
|
return Dt * Nt;
|
|
31371
31371
|
}) : null), at.setZIndex(vt));
|
|
31372
31372
|
}
|
|
31373
|
-
let Rt = !1, bt = null,
|
|
31373
|
+
let Rt = !1, bt = null, Yt = 0, gt, V, Qt;
|
|
31374
31374
|
if ((B == 1 || B == 2) && "icon-image" in T) {
|
|
31375
31375
|
const Nt = re(X, "layout", "icon-image", C, j, y, H);
|
|
31376
31376
|
if (Nt) {
|
|
@@ -31389,11 +31389,11 @@ function D4(i, t, e, n = Jr, r = void 0, o = void 0, s = void 0, a = void 0) {
|
|
|
31389
31389
|
NaN,
|
|
31390
31390
|
NaN
|
|
31391
31391
|
], G0 = new un("Point", Gf, [], 2, {}, void 0)), Dt = G0, Gf[0] = xt[0], Gf[1] = xt[1], re(X, "layout", "symbol-placement", C, j, y, H) === "line" && Bt === "map") {
|
|
31392
|
-
const
|
|
31393
|
-
for (let ce = 0, te = be.length -
|
|
31394
|
-
const Fe = be[ce], pe = be[ce + 1], Xe = be[ce +
|
|
31392
|
+
const ae = $t.getStride(), be = $t.getFlatCoordinates();
|
|
31393
|
+
for (let ce = 0, te = be.length - ae; ce < te; ce += ae) {
|
|
31394
|
+
const Fe = be[ce], pe = be[ce + 1], Xe = be[ce + ae], ve = be[ce + ae + 1], ni = Math.min(Fe, Xe), Gi = Math.min(pe, ve), Je = Math.max(Fe, Xe), ye = Math.max(pe, ve);
|
|
31395
31395
|
if (xt[0] >= ni && xt[0] <= Je && xt[1] >= Gi && xt[1] <= ye) {
|
|
31396
|
-
|
|
31396
|
+
Yt = Math.atan2(pe - ve, Xe - Fe);
|
|
31397
31397
|
break;
|
|
31398
31398
|
}
|
|
31399
31399
|
}
|
|
@@ -31407,7 +31407,7 @@ function D4(i, t, e, n = Jr, r = void 0, o = void 0, s = void 0, a = void 0) {
|
|
|
31407
31407
|
const Gt = re(X, "paint", "icon-halo-color", C, j, y, H), xt = re(X, "paint", "icon-halo-width", C, j, y, H);
|
|
31408
31408
|
let Me = `${gt}.${$t}.${xt}.${Gt}`;
|
|
31409
31409
|
if (Pt !== null && (Me += `.${Pt}`), V = p[Me], !V) {
|
|
31410
|
-
const
|
|
31410
|
+
const ae = f5(X, C, j, "icon", y);
|
|
31411
31411
|
let be;
|
|
31412
31412
|
"icon-offset" in T && (be = re(X, "layout", "icon-offset", C, j, y, H).slice(0), be[0] *= $t, be[1] *= -$t);
|
|
31413
31413
|
let ce = Pt ? [
|
|
@@ -31421,7 +31421,7 @@ function D4(i, t, e, n = Jr, r = void 0, o = void 0, s = void 0, a = void 0) {
|
|
|
31421
31421
|
color: ce,
|
|
31422
31422
|
rotateWithView: Bt === "map",
|
|
31423
31423
|
displacement: be,
|
|
31424
|
-
declutterMode:
|
|
31424
|
+
declutterMode: ae,
|
|
31425
31425
|
scale: $t
|
|
31426
31426
|
};
|
|
31427
31427
|
typeof jt == "string" ? te.src = jt : (te.img = jt, te.imgSize = [
|
|
@@ -31468,13 +31468,13 @@ function D4(i, t, e, n = Jr, r = void 0, o = void 0, s = void 0, a = void 0) {
|
|
|
31468
31468
|
rotateWithView: Bt === "map",
|
|
31469
31469
|
scale: $t / te.pixelRatio,
|
|
31470
31470
|
displacement: be,
|
|
31471
|
-
declutterMode:
|
|
31471
|
+
declutterMode: ae
|
|
31472
31472
|
});
|
|
31473
31473
|
}
|
|
31474
31474
|
p[Me] = V;
|
|
31475
31475
|
}
|
|
31476
31476
|
}
|
|
31477
|
-
V && (++Y, at = P[Y], (!at || !at.getImage() || at.getFill() || at.getStroke()) && (at = new Ze(), P[Y] = at), at.setGeometry(Dt), V.setRotation(
|
|
31477
|
+
V && (++Y, at = P[Y], (!at || !at.getImage() || at.getFill() || at.getStroke()) && (at = new Ze(), P[Y] = at), at.setGeometry(Dt), V.setRotation(Yt + z0(re(X, "layout", "icon-rotate", C, j, y, H))), V.setOpacity(re(X, "paint", "icon-opacity", C, j, y, H)), V.setAnchor(iP[re(X, "layout", "icon-anchor", C, j, y, H)]), at.setImage(V), bt = at.getText(), at.setText(void 0), at.setZIndex(vt), Rt = !0, Qt = !1);
|
|
31478
31478
|
} else
|
|
31479
31479
|
Qt = !0;
|
|
31480
31480
|
}
|
|
@@ -31516,7 +31516,7 @@ function D4(i, t, e, n = Jr, r = void 0, o = void 0, s = void 0, a = void 0) {
|
|
|
31516
31516
|
}
|
|
31517
31517
|
xt = uv(xt, Gt, Ot, wt).split(`
|
|
31518
31518
|
`);
|
|
31519
|
-
for (let Me = 0,
|
|
31519
|
+
for (let Me = 0, ae = xt.length; Me < ae; ++Me)
|
|
31520
31520
|
Me > 0 && jt.push(`
|
|
31521
31521
|
`, ""), jt.push(xt[Me], Gt);
|
|
31522
31522
|
return jt;
|
|
@@ -31548,7 +31548,7 @@ function D4(i, t, e, n = Jr, r = void 0, o = void 0, s = void 0, a = void 0) {
|
|
|
31548
31548
|
bt.setOverflow($t === "point");
|
|
31549
31549
|
let Gt = re(X, "paint", "text-halo-width", C, j, y, H);
|
|
31550
31550
|
const xt = re(X, "layout", "text-offset", C, j, y, H), Me = re(X, "paint", "text-translate", C, j, y, H);
|
|
31551
|
-
let
|
|
31551
|
+
let ae = 0, be = 0;
|
|
31552
31552
|
if ($t == "point") {
|
|
31553
31553
|
Pt = "center", Bt.indexOf("left") !== -1 ? (Pt = "left", be = Gt) : Bt.indexOf("right") !== -1 && (Pt = "right", be = -Gt);
|
|
31554
31554
|
const ve = re(X, "layout", "text-rotation-alignment", C, j, y, H);
|
|
@@ -31557,9 +31557,9 @@ function D4(i, t, e, n = Jr, r = void 0, o = void 0, s = void 0, a = void 0) {
|
|
|
31557
31557
|
bt.setMaxAngle(z0(re(X, "layout", "text-max-angle", C, j, y, H)) * Lt.length / jt.length), bt.setRotateWithView(!1);
|
|
31558
31558
|
bt.setTextAlign(Pt);
|
|
31559
31559
|
let ce = "middle";
|
|
31560
|
-
Bt.indexOf("bottom") == 0 ? (ce = "bottom",
|
|
31560
|
+
Bt.indexOf("bottom") == 0 ? (ce = "bottom", ae = -Gt - 0.5 * (Et - 1) * St) : Bt.indexOf("top") == 0 && (ce = "top", ae = Gt + 0.5 * (Et - 1) * St), bt.setTextBaseline(ce);
|
|
31561
31561
|
const te = re(X, "layout", "text-justify", C, j, y, H);
|
|
31562
|
-
bt.setJustify(te === "auto" ? void 0 : te), bt.setOffsetX(xt[0] * St + be + Me[0]), bt.setOffsetY(xt[1] * St +
|
|
31562
|
+
bt.setJustify(te === "auto" ? void 0 : te), bt.setOffsetX(xt[0] * St + be + Me[0]), bt.setOffsetY(xt[1] * St + ae + Me[1]), A.setColor(Xs(re(X, "paint", "text-color", C, j, y, H), Q)), bt.setFill(A);
|
|
31563
31563
|
const Fe = Xs(re(X, "paint", "text-halo-color", C, j, y, H), Q);
|
|
31564
31564
|
if (Fe && Gt > 0) {
|
|
31565
31565
|
w.setColor(Fe), Gt *= 2;
|
|
@@ -36372,8 +36372,8 @@ var YP = /* @__PURE__ */ To(ba, 9, 0), KP = /* @__PURE__ */ To(ba, 9, 1), ZP = /
|
|
|
36372
36372
|
h < s ? u = pv(l, u, i.subarray(c, h)) : (l[c] = o, u = pv(l, u, i.subarray(c, s)));
|
|
36373
36373
|
}
|
|
36374
36374
|
else {
|
|
36375
|
-
for (var f = tI[t - 1], d = f >>> 13, p = f & 8191, v = (1 << e) - 1, y = new Nn(32768), _ = new Nn(v + 1), x = Math.ceil(e / 3), w = 2 * x, A = function(
|
|
36376
|
-
return (i[
|
|
36375
|
+
for (var f = tI[t - 1], d = f >>> 13, p = f & 8191, v = (1 << e) - 1, y = new Nn(32768), _ = new Nn(v + 1), x = Math.ceil(e / 3), w = 2 * x, A = function(Yt) {
|
|
36376
|
+
return (i[Yt] ^ i[Yt + 1] << x ^ i[Yt + 2] << w) & v;
|
|
36377
36377
|
}, P = new id(25e3), O = new Nn(288), N = new Nn(32), M = 0, U = 0, c = 0, J = 0, L = 0, C = 0; c < s; ++c) {
|
|
36378
36378
|
var B = A(c), j = c & 32767, H = _[B];
|
|
36379
36379
|
if (y[j] = H, _[B] = j, L <= c) {
|
|
@@ -36874,7 +36874,7 @@ function me(i) {
|
|
|
36874
36874
|
return ("0" + parseInt(b)).slice(-2);
|
|
36875
36875
|
}, z = d.__private__.padd2Hex = function(b) {
|
|
36876
36876
|
return ("00" + (b = b.toString())).substr(b.length);
|
|
36877
|
-
}, Q = 0, Z = [], it = [], et = 0, at = [], vt = [], Rt = !1, bt = it,
|
|
36877
|
+
}, Q = 0, Z = [], it = [], et = 0, at = [], vt = [], Rt = !1, bt = it, Yt = function() {
|
|
36878
36878
|
Q = 0, et = 0, it = [], Z = [], at = [], Bo = Qe(), Tr = Qe();
|
|
36879
36879
|
};
|
|
36880
36880
|
d.__private__.setCustomOutputDestination = function(b) {
|
|
@@ -36949,7 +36949,7 @@ function me(i) {
|
|
|
36949
36949
|
if (Object.keys(Pt).indexOf(b) === -1) throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
|
|
36950
36950
|
return Pt[b] = R;
|
|
36951
36951
|
};
|
|
36952
|
-
var Gt, xt, Me,
|
|
36952
|
+
var Gt, xt, Me, ae, be, ce = {}, te = {}, Fe = [], pe = {}, Xe = {}, ve = {}, ni = {}, Gi = null, Je = 0, ye = [], We = new L5(d), qi = i.hotfixes || [], pi = {}, xi = {}, Ii = [], ne = function b(R, K, nt, ht, yt, Ft) {
|
|
36953
36953
|
if (!(this instanceof b)) return new b(R, K, nt, ht, yt, Ft);
|
|
36954
36954
|
isNaN(R) && (R = 1), isNaN(K) && (K = 0), isNaN(nt) && (nt = 0), isNaN(ht) && (ht = 1), isNaN(yt) && (yt = 0), isNaN(Ft) && (Ft = 0), this._matrix = [R, K, nt, ht, yt, Ft];
|
|
36955
36955
|
};
|
|
@@ -37358,7 +37358,7 @@ Q`), An(ht, !0), dr({ data: yt, filters: ao(), objectId: ht }), V("endobj"), nt;
|
|
|
37358
37358
|
for (var R = 1; R <= Q; R++)
|
|
37359
37359
|
typeof Z[R] == "function" ? V((b + Z[R]()).slice(-10) + " 00000 n ") : Z[R] !== void 0 ? V((b + Z[R]).slice(-10) + " 00000 n ") : V("0000000000 00000 n ");
|
|
37360
37360
|
}, Go = d.__private__.buildDocument = function() {
|
|
37361
|
-
|
|
37361
|
+
Yt(), gt(it), We.publish("buildDocument"), Sm(), Pa(), zd(), Dd(), c !== null && mm(), km(), Ec();
|
|
37362
37362
|
var b = et;
|
|
37363
37363
|
return Em(), wm(), V("startxref"), V("" + b), V("%%EOF"), gt(vt[q]), it.join(`
|
|
37364
37364
|
`);
|
|
@@ -37928,13 +37928,13 @@ T* `) : b.join(` Tj
|
|
|
37928
37928
|
isNaN(Ft) || (yt = parseFloat(Ft));
|
|
37929
37929
|
} }), this;
|
|
37930
37930
|
}, Rc = function() {
|
|
37931
|
-
this.page = Je, this.currentPage = q, this.pages = vt.slice(0), this.pagesContext = ye.slice(0), this.x = Me, this.y =
|
|
37931
|
+
this.page = Je, this.currentPage = q, this.pages = vt.slice(0), this.pagesContext = ye.slice(0), this.x = Me, this.y = ae, this.matrix = be, this.width = Fa(q), this.height = Ms(q), this.outputDestination = bt, this.id = "", this.objectNumber = -1;
|
|
37932
37932
|
};
|
|
37933
37933
|
Rc.prototype.restore = function() {
|
|
37934
|
-
Je = this.page, q = this.currentPage, ye = this.pagesContext, vt = this.pages, Me = this.x,
|
|
37934
|
+
Je = this.page, q = this.currentPage, ye = this.pagesContext, vt = this.pages, Me = this.x, ae = this.y, be = this.matrix, Nc(q, this.width), Fc(q, this.height), bt = this.outputDestination;
|
|
37935
37935
|
};
|
|
37936
37936
|
var Jd = function(b, R, K, nt, ht) {
|
|
37937
|
-
Ii.push(new Rc()), Je = q = 0, vt = [], Me = b,
|
|
37937
|
+
Ii.push(new Rc()), Je = q = 0, vt = [], Me = b, ae = R, be = ht, Sc([K, nt]);
|
|
37938
37938
|
}, Om = function(b) {
|
|
37939
37939
|
if (xi[b]) Ii.pop().restore();
|
|
37940
37940
|
else {
|
|
@@ -39582,11 +39582,11 @@ var Yf, F5, O5, n1 = ["times"];
|
|
|
39582
39582
|
}
|
|
39583
39583
|
return Rt;
|
|
39584
39584
|
}
|
|
39585
|
-
var
|
|
39585
|
+
var Yt = null;
|
|
39586
39586
|
Object.defineProperty(this, "fontFaces", { get: function() {
|
|
39587
|
-
return
|
|
39587
|
+
return Yt;
|
|
39588
39588
|
}, set: function(gt) {
|
|
39589
|
-
Rt = null,
|
|
39589
|
+
Rt = null, Yt = gt;
|
|
39590
39590
|
} }), Object.defineProperty(this, "font", { get: function() {
|
|
39591
39591
|
return this.ctx.font;
|
|
39592
39592
|
}, set: function(gt) {
|
|
@@ -39595,20 +39595,20 @@ var Yf, F5, O5, n1 = ["times"];
|
|
|
39595
39595
|
var Qt = V[1], Lt = (V[2], V[3]), mt = V[4], Et = (V[5], V[6]), St = /^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(mt)[2];
|
|
39596
39596
|
mt = Math.floor(St === "px" ? parseFloat(mt) * this.pdf.internal.scaleFactor : St === "em" ? parseFloat(mt) * this.pdf.getFontSize() : parseFloat(mt) * this.pdf.internal.scaleFactor), this.pdf.setFontSize(mt);
|
|
39597
39597
|
var wt = function(Pt) {
|
|
39598
|
-
var Gt, xt, Me = [],
|
|
39599
|
-
if (
|
|
39600
|
-
if (
|
|
39601
|
-
for (;
|
|
39602
|
-
switch (xt = null, Gt = (
|
|
39598
|
+
var Gt, xt, Me = [], ae = Pt.trim();
|
|
39599
|
+
if (ae === "") return n1;
|
|
39600
|
+
if (ae in I5) return [I5[ae]];
|
|
39601
|
+
for (; ae !== ""; ) {
|
|
39602
|
+
switch (xt = null, Gt = (ae = N5(ae)).charAt(0)) {
|
|
39603
39603
|
case '"':
|
|
39604
39604
|
case "'":
|
|
39605
|
-
xt = EI(
|
|
39605
|
+
xt = EI(ae.substring(1), Gt);
|
|
39606
39606
|
break;
|
|
39607
39607
|
default:
|
|
39608
|
-
xt = CI(
|
|
39608
|
+
xt = CI(ae);
|
|
39609
39609
|
}
|
|
39610
|
-
if (xt === null || (Me.push(xt[0]), (
|
|
39611
|
-
|
|
39610
|
+
if (xt === null || (Me.push(xt[0]), (ae = N5(xt[1])) !== "" && ae.charAt(0) !== ",")) return n1;
|
|
39611
|
+
ae = ae.replace(/^,/, "");
|
|
39612
39612
|
}
|
|
39613
39613
|
return Me;
|
|
39614
39614
|
}(Et);
|
|
@@ -39805,9 +39805,9 @@ var Yf, F5, O5, n1 = ["times"];
|
|
|
39805
39805
|
return this.margin[0] > 0 || this.margin[1] > 0 || this.margin[2] > 0 || this.margin[3] > 0;
|
|
39806
39806
|
};
|
|
39807
39807
|
h.prototype.drawImage = function(T, q, S, z, Q, Z, it, et, at) {
|
|
39808
|
-
var vt = this.pdf.getImageProperties(T), Rt = 1, bt = 1,
|
|
39809
|
-
z !== void 0 && et !== void 0 && (
|
|
39810
|
-
for (var V, Qt = this.ctx.transform.decompose(), Lt = tt(Qt.rotate.shx), mt = new l(), Et = (mt = (mt = (mt = mt.multiply(Qt.translate)).multiply(Qt.skew)).multiply(Qt.scale)).applyToRectangle(new a(Z - q *
|
|
39808
|
+
var vt = this.pdf.getImageProperties(T), Rt = 1, bt = 1, Yt = 1, gt = 1;
|
|
39809
|
+
z !== void 0 && et !== void 0 && (Yt = et / z, gt = at / Q, Rt = vt.width / z * et / z, bt = vt.height / Q * at / Q), Z === void 0 && (Z = q, it = S, q = 0, S = 0), z !== void 0 && et === void 0 && (et = z, at = Q), z === void 0 && et === void 0 && (et = vt.width, at = vt.height);
|
|
39810
|
+
for (var V, Qt = this.ctx.transform.decompose(), Lt = tt(Qt.rotate.shx), mt = new l(), Et = (mt = (mt = (mt = mt.multiply(Qt.translate)).multiply(Qt.skew)).multiply(Qt.scale)).applyToRectangle(new a(Z - q * Yt, it - S * gt, z * Rt, Q * bt)), St = y.call(this, Et), wt = [], Ot = 0; Ot < St.length; Ot += 1) wt.indexOf(St[Ot]) === -1 && wt.push(St[Ot]);
|
|
39811
39811
|
if (w(wt), this.autoPaging) for (var Nt = wt[0], Dt = wt[wt.length - 1], jt = Nt; jt < Dt + 1; jt++) {
|
|
39812
39812
|
this.pdf.setPage(jt);
|
|
39813
39813
|
var Bt = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], $t = jt === 1 ? this.posY + this.margin[0] : this.margin[0], Pt = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], Gt = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2], xt = jt === 1 ? 0 : Pt + (jt - 2) * Gt;
|
|
@@ -39815,10 +39815,10 @@ var Yf, F5, O5, n1 = ["times"];
|
|
|
39815
39815
|
var Me = this.path;
|
|
39816
39816
|
V = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = x(V, this.posX + this.margin[3], -xt + $t + this.ctx.prevPageLastElemOffset), P.call(this, "fill", !0), this.path = Me;
|
|
39817
39817
|
}
|
|
39818
|
-
var
|
|
39819
|
-
|
|
39818
|
+
var ae = JSON.parse(JSON.stringify(Et));
|
|
39819
|
+
ae = x([ae], this.posX + this.margin[3], -xt + $t + this.ctx.prevPageLastElemOffset)[0];
|
|
39820
39820
|
var be = (jt > Nt || jt < Dt) && v.call(this);
|
|
39821
|
-
be && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], Bt, Gt, null).clip().discardPath()), this.pdf.addImage(T, "JPEG",
|
|
39821
|
+
be && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], Bt, Gt, null).clip().discardPath()), this.pdf.addImage(T, "JPEG", ae.x, ae.y, ae.w, ae.h, null, null, Lt), be && this.pdf.restoreGraphicsState();
|
|
39822
39822
|
}
|
|
39823
39823
|
else this.pdf.addImage(T, "JPEG", Et.x, Et.y, Et.w, Et.h, null, null, Lt);
|
|
39824
39824
|
};
|
|
@@ -39869,9 +39869,9 @@ var Yf, F5, O5, n1 = ["times"];
|
|
|
39869
39869
|
return q - S;
|
|
39870
39870
|
});
|
|
39871
39871
|
}, A = function(T, q) {
|
|
39872
|
-
for (var S, z, Q = this.fillStyle, Z = this.strokeStyle, it = this.lineCap, et = this.lineWidth, at = Math.abs(et * this.ctx.transform.scaleX), vt = this.lineJoin, Rt = JSON.parse(JSON.stringify(this.path)), bt = JSON.parse(JSON.stringify(this.path)),
|
|
39873
|
-
for (var Lt = 0; Lt <
|
|
39874
|
-
if (w(
|
|
39872
|
+
for (var S, z, Q = this.fillStyle, Z = this.strokeStyle, it = this.lineCap, et = this.lineWidth, at = Math.abs(et * this.ctx.transform.scaleX), vt = this.lineJoin, Rt = JSON.parse(JSON.stringify(this.path)), bt = JSON.parse(JSON.stringify(this.path)), Yt = [], gt = 0; gt < bt.length; gt++) if (bt[gt].x !== void 0) for (var V = y.call(this, bt[gt]), Qt = 0; Qt < V.length; Qt += 1) Yt.indexOf(V[Qt]) === -1 && Yt.push(V[Qt]);
|
|
39873
|
+
for (var Lt = 0; Lt < Yt.length; Lt++) for (; this.pdf.internal.getNumberOfPages() < Yt[Lt]; ) _.call(this);
|
|
39874
|
+
if (w(Yt), this.autoPaging) for (var mt = Yt[0], Et = Yt[Yt.length - 1], St = mt; St < Et + 1; St++) {
|
|
39875
39875
|
this.pdf.setPage(St), this.fillStyle = Q, this.strokeStyle = Z, this.lineCap = it, this.lineWidth = at, this.lineJoin = vt;
|
|
39876
39876
|
var wt = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], Ot = St === 1 ? this.posY + this.margin[0] : this.margin[0], Nt = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], Dt = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2], jt = St === 1 ? 0 : Nt + (St - 2) * Dt;
|
|
39877
39877
|
if (this.ctx.clip_path.length !== 0) {
|
|
@@ -39913,8 +39913,8 @@ var Yf, F5, O5, n1 = ["times"];
|
|
|
39913
39913
|
S = [et.x1 - Z[it - 1].x, et.y1 - Z[it - 1].y, et.x2 - Z[it - 1].x, et.y2 - Z[it - 1].y, et.x - Z[it - 1].x, et.y - Z[it - 1].y], Q[Q.length - 1].deltas.push(S);
|
|
39914
39914
|
break;
|
|
39915
39915
|
case "qct":
|
|
39916
|
-
var vt = Z[it - 1].x + 2 / 3 * (et.x1 - Z[it - 1].x), Rt = Z[it - 1].y + 2 / 3 * (et.y1 - Z[it - 1].y), bt = et.x + 2 / 3 * (et.x1 - et.x),
|
|
39917
|
-
S = [vt - Z[it - 1].x, Rt - Z[it - 1].y, bt - Z[it - 1].x,
|
|
39916
|
+
var vt = Z[it - 1].x + 2 / 3 * (et.x1 - Z[it - 1].x), Rt = Z[it - 1].y + 2 / 3 * (et.y1 - Z[it - 1].y), bt = et.x + 2 / 3 * (et.x1 - et.x), Yt = et.y + 2 / 3 * (et.y1 - et.y), gt = et.x, V = et.y;
|
|
39917
|
+
S = [vt - Z[it - 1].x, Rt - Z[it - 1].y, bt - Z[it - 1].x, Yt - Z[it - 1].y, gt - Z[it - 1].x, V - Z[it - 1].y], Q[Q.length - 1].deltas.push(S);
|
|
39918
39918
|
break;
|
|
39919
39919
|
case "arc":
|
|
39920
39920
|
Q.push({ deltas: [], abs: [], arc: !0 }), Array.isArray(Q[Q.length - 1].abs) && Q[Q.length - 1].abs.push(et);
|
|
@@ -40000,7 +40000,7 @@ var Yf, F5, O5, n1 = ["times"];
|
|
|
40000
40000
|
}
|
|
40001
40001
|
var S = this.pdf.getTextDimensions(T.text), z = O.call(this, T.y), Q = N.call(this, z) - S.h, Z = this.ctx.transform.applyToPoint(new s(T.x, z)), it = this.ctx.transform.decompose(), et = new l();
|
|
40002
40002
|
et = (et = (et = et.multiply(it.translate)).multiply(it.skew)).multiply(it.scale);
|
|
40003
|
-
for (var at, vt, Rt, bt = this.ctx.transform.applyToRectangle(new a(T.x, z, S.w, S.h)),
|
|
40003
|
+
for (var at, vt, Rt, bt = this.ctx.transform.applyToRectangle(new a(T.x, z, S.w, S.h)), Yt = et.applyToRectangle(new a(T.x, Q, S.w, S.h)), gt = y.call(this, Yt), V = [], Qt = 0; Qt < gt.length; Qt += 1) V.indexOf(gt[Qt]) === -1 && V.push(gt[Qt]);
|
|
40004
40004
|
if (w(V), this.autoPaging) for (var Lt = V[0], mt = V[V.length - 1], Et = Lt; Et < mt + 1; Et++) {
|
|
40005
40005
|
this.pdf.setPage(Et);
|
|
40006
40006
|
var St = Et === 1 ? this.posY + this.margin[0] : this.margin[0], wt = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], Ot = this.pdf.internal.pageSize.height - this.margin[2], Nt = Ot - this.margin[0], Dt = this.pdf.internal.pageSize.width - this.margin[1], jt = Dt - this.margin[3], Bt = Et === 1 ? 0 : wt + (Et - 2) * Nt;
|
|
@@ -40008,13 +40008,13 @@ var Yf, F5, O5, n1 = ["times"];
|
|
|
40008
40008
|
var $t = this.path;
|
|
40009
40009
|
at = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = x(at, this.posX + this.margin[3], -1 * Bt + St), P.call(this, "fill", !0), this.path = $t;
|
|
40010
40010
|
}
|
|
40011
|
-
var Pt = x([JSON.parse(JSON.stringify(
|
|
40011
|
+
var Pt = x([JSON.parse(JSON.stringify(Yt))], this.posX + this.margin[3], -Bt + St + this.ctx.prevPageLastElemOffset)[0];
|
|
40012
40012
|
T.scale >= 0.01 && (vt = this.pdf.internal.getFontSize(), this.pdf.setFontSize(vt * T.scale), Rt = this.lineWidth, this.lineWidth = Rt * T.scale);
|
|
40013
40013
|
var Gt = this.autoPaging !== "text";
|
|
40014
40014
|
if (Gt || Pt.y + Pt.h <= Ot) {
|
|
40015
40015
|
if (Gt || Pt.y >= St && Pt.x <= Dt) {
|
|
40016
|
-
var xt = Gt ? T.text : this.pdf.splitTextToSize(T.text, T.maxWidth || Dt - Pt.x)[0], Me = x([JSON.parse(JSON.stringify(bt))], this.posX + this.margin[3], -Bt + St + this.ctx.prevPageLastElemOffset)[0],
|
|
40017
|
-
|
|
40016
|
+
var xt = Gt ? T.text : this.pdf.splitTextToSize(T.text, T.maxWidth || Dt - Pt.x)[0], Me = x([JSON.parse(JSON.stringify(bt))], this.posX + this.margin[3], -Bt + St + this.ctx.prevPageLastElemOffset)[0], ae = Gt && (Et > Lt || Et < mt) && v.call(this);
|
|
40017
|
+
ae && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], jt, Nt, null).clip().discardPath()), this.pdf.text(xt, Me.x, Me.y, { angle: T.angle, align: q, renderingMode: T.renderingMode }), ae && this.pdf.restoreGraphicsState();
|
|
40018
40018
|
}
|
|
40019
40019
|
} else Pt.y < Ot && (this.ctx.prevPageLastElemOffset += Ot - Pt.y);
|
|
40020
40020
|
T.scale >= 0.01 && (this.pdf.setFontSize(vt), this.lineWidth = Rt);
|
|
@@ -40036,16 +40036,16 @@ var Yf, F5, O5, n1 = ["times"];
|
|
|
40036
40036
|
}
|
|
40037
40037
|
return et;
|
|
40038
40038
|
}, rt = function(T, q, S) {
|
|
40039
|
-
var z = (S - q) / 2, Q = T * Math.cos(z), Z = T * Math.sin(z), it = Q, et = -Z, at = it * it + et * et, vt = at + it * Q + et * Z, Rt = 4 / 3 * (Math.sqrt(2 * at * vt) - vt) / (it * Z - et * Q), bt = it - Rt * et,
|
|
40040
|
-
return { x1: T * Math.cos(q), y1: T * Math.sin(q), x2: bt * Lt -
|
|
40039
|
+
var z = (S - q) / 2, Q = T * Math.cos(z), Z = T * Math.sin(z), it = Q, et = -Z, at = it * it + et * et, vt = at + it * Q + et * Z, Rt = 4 / 3 * (Math.sqrt(2 * at * vt) - vt) / (it * Z - et * Q), bt = it - Rt * et, Yt = et + Rt * it, gt = bt, V = -Yt, Qt = z + q, Lt = Math.cos(Qt), mt = Math.sin(Qt);
|
|
40040
|
+
return { x1: T * Math.cos(q), y1: T * Math.sin(q), x2: bt * Lt - Yt * mt, y2: bt * mt + Yt * Lt, x3: gt * Lt - V * mt, y3: gt * mt + V * Lt, x4: T * Math.cos(S), y4: T * Math.sin(S) };
|
|
40041
40041
|
}, tt = function(T) {
|
|
40042
40042
|
return 180 * T / Math.PI;
|
|
40043
40043
|
}, ut = function(T, q, S, z, Q, Z) {
|
|
40044
|
-
var it = T + 0.5 * (S - T), et = q + 0.5 * (z - q), at = Q + 0.5 * (S - Q), vt = Z + 0.5 * (z - Z), Rt = Math.min(T, Q, it, at), bt = Math.max(T, Q, it, at),
|
|
40045
|
-
return new a(Rt,
|
|
40044
|
+
var it = T + 0.5 * (S - T), et = q + 0.5 * (z - q), at = Q + 0.5 * (S - Q), vt = Z + 0.5 * (z - Z), Rt = Math.min(T, Q, it, at), bt = Math.max(T, Q, it, at), Yt = Math.min(q, Z, et, vt), gt = Math.max(q, Z, et, vt);
|
|
40045
|
+
return new a(Rt, Yt, bt - Rt, gt - Yt);
|
|
40046
40046
|
}, X = function(T, q, S, z, Q, Z, it, et) {
|
|
40047
|
-
var at, vt, Rt, bt,
|
|
40048
|
-
for (vt = 0; vt < 41; vt++) Lt = (V = (Rt = T + (at = vt / 40) * Nt) + at * ((
|
|
40047
|
+
var at, vt, Rt, bt, Yt, gt, V, Qt, Lt, mt, Et, St, wt, Ot, Nt = S - T, Dt = z - q, jt = Q - S, Bt = Z - z, $t = it - Q, Pt = et - Z;
|
|
40048
|
+
for (vt = 0; vt < 41; vt++) Lt = (V = (Rt = T + (at = vt / 40) * Nt) + at * ((Yt = S + at * jt) - Rt)) + at * (Yt + at * (Q + at * $t - Yt) - V), mt = (Qt = (bt = q + at * Dt) + at * ((gt = z + at * Bt) - bt)) + at * (gt + at * (Z + at * Pt - gt) - Qt), vt == 0 ? (Et = Lt, St = mt, wt = Lt, Ot = mt) : (Et = Math.min(Et, Lt), St = Math.min(St, mt), wt = Math.max(wt, Lt), Ot = Math.max(Ot, mt));
|
|
40049
40049
|
return new a(Math.round(Et), Math.round(St), Math.round(wt - Et), Math.round(Ot - St));
|
|
40050
40050
|
}, _t = function() {
|
|
40051
40051
|
if (this.prevLineDash || this.ctx.lineDash.length || this.ctx.lineDashOffset) {
|
|
@@ -40940,11 +40940,11 @@ function r1(i) {
|
|
|
40940
40940
|
var St, wt, Ot, Nt, Dt, jt, Bt, $t, Pt, Gt, xt = 0;
|
|
40941
40941
|
for (Pt = 0; Pt < 8; ++Pt) {
|
|
40942
40942
|
St = mt[xt], wt = mt[xt + 1], Ot = mt[xt + 2], Nt = mt[xt + 3], Dt = mt[xt + 4], jt = mt[xt + 5], Bt = mt[xt + 6];
|
|
40943
|
-
var Me = St + ($t = mt[xt + 7]),
|
|
40943
|
+
var Me = St + ($t = mt[xt + 7]), ae = St - $t, be = wt + Bt, ce = wt - Bt, te = Ot + jt, Fe = Ot - jt, pe = Nt + Dt, Xe = Nt - Dt, ve = Me + pe, ni = Me - pe, Gi = be + te, Je = be - te;
|
|
40944
40944
|
mt[xt] = ve + Gi, mt[xt + 4] = ve - Gi;
|
|
40945
40945
|
var ye = 0.707106781 * (Je + ni);
|
|
40946
40946
|
mt[xt + 2] = ni + ye, mt[xt + 6] = ni - ye;
|
|
40947
|
-
var We = 0.382683433 * ((ve = Xe + Fe) - (Je = ce +
|
|
40947
|
+
var We = 0.382683433 * ((ve = Xe + Fe) - (Je = ce + ae)), qi = 0.5411961 * ve + We, pi = 1.306562965 * Je + We, xi = 0.707106781 * (Gi = Fe + ce), Ii = ae + xi, ne = ae - xi;
|
|
40948
40948
|
mt[xt + 5] = ne + qi, mt[xt + 3] = ne - qi, mt[xt + 1] = Ii + pi, mt[xt + 7] = Ii - pi, xt += 8;
|
|
40949
40949
|
}
|
|
40950
40950
|
for (xt = 0, Pt = 0; Pt < 8; ++Pt) {
|
|
@@ -40963,12 +40963,12 @@ function r1(i) {
|
|
|
40963
40963
|
S = p[0], Rt == 0 ? rt(z[0]) : (rt(z[f[Z = 32767 + Rt]]), rt(h[Z]));
|
|
40964
40964
|
for (var bt = 63; bt > 0 && p[bt] == 0; ) bt--;
|
|
40965
40965
|
if (bt == 0) return rt(it), S;
|
|
40966
|
-
for (var
|
|
40966
|
+
for (var Yt, gt = 1; gt <= bt; ) {
|
|
40967
40967
|
for (var V = gt; p[gt] == 0 && gt <= bt; ) ++gt;
|
|
40968
40968
|
var Qt = gt - V;
|
|
40969
40969
|
if (Qt >= 16) {
|
|
40970
|
-
|
|
40971
|
-
for (var Lt = 1; Lt <=
|
|
40970
|
+
Yt = Qt >> 4;
|
|
40971
|
+
for (var Lt = 1; Lt <= Yt; ++Lt) rt(et);
|
|
40972
40972
|
Qt &= 15;
|
|
40973
40973
|
}
|
|
40974
40974
|
Z = 32767 + p[gt], rt(Q[(Qt << 4) + f[Z]]), rt(h[Z]), gt++;
|
|
@@ -41012,9 +41012,9 @@ function r1(i) {
|
|
|
41012
41012
|
}(), ut(65498), ut(12), tt(3), tt(1), tt(0), tt(2), tt(17), tt(3), tt(17), tt(0), tt(63), tt(0);
|
|
41013
41013
|
var S = 0, z = 0, Q = 0;
|
|
41014
41014
|
y = 0, _ = 7, this.encode.displayName = "_encode_";
|
|
41015
|
-
for (var Z, it, et, at, vt, Rt, bt,
|
|
41015
|
+
for (var Z, it, et, at, vt, Rt, bt, Yt, gt, V = T.data, Qt = T.width, Lt = T.height, mt = 4 * Qt, Et = 0; Et < Lt; ) {
|
|
41016
41016
|
for (Z = 0; Z < mt; ) {
|
|
41017
|
-
for (vt = mt * Et + Z, bt = -1,
|
|
41017
|
+
for (vt = mt * Et + Z, bt = -1, Yt = 0, gt = 0; gt < 64; gt++) Rt = vt + (Yt = gt >> 3) * mt + (bt = 4 * (7 & gt)), Et + Yt >= Lt && (Rt -= mt * (Et + 1 + Yt - Lt)), Z + bt >= mt && (Rt -= Z + bt - mt + 4), it = V[Rt++], et = V[Rt++], at = V[Rt++], x[gt] = (O[it] + O[et + 256 >> 0] + O[at + 512 >> 0] >> 16) - 128, w[gt] = (O[it + 768 >> 0] + O[et + 1024 >> 0] + O[at + 1280 >> 0] >> 16) - 128, A[gt] = (O[it + 1280 >> 0] + O[et + 1536 >> 0] + O[at + 1792 >> 0] >> 16) - 128;
|
|
41018
41018
|
S = X(x, u, S, t, n), z = X(w, c, z, e, r), Q = X(A, c, Q, e, r), Z += 32;
|
|
41019
41019
|
}
|
|
41020
41020
|
Et += 8;
|
|
@@ -41199,7 +41199,7 @@ function G5(i) {
|
|
|
41199
41199
|
function bt(g, m) {
|
|
41200
41200
|
return vt(g, m) | vt(g, m + 2) << 16;
|
|
41201
41201
|
}
|
|
41202
|
-
function
|
|
41202
|
+
function Yt(g, m) {
|
|
41203
41203
|
var k = 1 << m;
|
|
41204
41204
|
return t(g != null), t(0 < m), g.X = o(k), g.X == null ? 0 : (g.Mb = 32 - m, g.Xa = m, 1);
|
|
41205
41205
|
}
|
|
@@ -41288,7 +41288,7 @@ function G5(i) {
|
|
|
41288
41288
|
E[I++] = F >> 16 & 255, E[I++] = F >> 8 & 255, E[I++] = F >> 0 & 255, E[I++] = F >> 24 & 255;
|
|
41289
41289
|
}
|
|
41290
41290
|
}
|
|
41291
|
-
function
|
|
41291
|
+
function ae(g, m, k, E, I) {
|
|
41292
41292
|
for (k = m + k; m < k; ) {
|
|
41293
41293
|
var F = (D = g[m++]) >> 16 & 240 | D >> 12 & 15, D = D >> 0 & 240 | D >> 28 & 15;
|
|
41294
41294
|
E[I++] = F, E[I++] = D;
|
|
@@ -41579,7 +41579,7 @@ function G5(i) {
|
|
|
41579
41579
|
}
|
|
41580
41580
|
function dr() {
|
|
41581
41581
|
var g = new Om();
|
|
41582
|
-
return g == null ? null : (g.a = 0, g.xb = g_, Fe("Predictor", "VP8LPredictors"), Fe("Predictor", "VP8LPredictors_C"), Fe("PredictorAdd", "VP8LPredictorsAdd"), Fe("PredictorAdd", "VP8LPredictorsAdd_C"), tf = Bt, fr = Pt, Dr = xt, Ls = Me, co =
|
|
41582
|
+
return g == null ? null : (g.a = 0, g.xb = g_, Fe("Predictor", "VP8LPredictors"), Fe("Predictor", "VP8LPredictors_C"), Fe("PredictorAdd", "VP8LPredictorsAdd"), Fe("PredictorAdd", "VP8LPredictorsAdd_C"), tf = Bt, fr = Pt, Dr = xt, Ls = Me, co = ae, Uo = be, jl = ce, M.VP8LMapColor32b = qc, M.VP8LMapColor8b = jm, g);
|
|
41583
41583
|
}
|
|
41584
41584
|
function lo(g, m, k, E, I) {
|
|
41585
41585
|
var F = 1, D = [g], G = [m], $ = E.m, W = E.s, ot = null, dt = 0;
|
|
@@ -41713,7 +41713,7 @@ function G5(i) {
|
|
|
41713
41713
|
break t;
|
|
41714
41714
|
}
|
|
41715
41715
|
if (0 < dt) {
|
|
41716
|
-
if (W.ua = 1 << dt, !
|
|
41716
|
+
if (W.ua = 1 << dt, !Yt(W.Wa, dt)) {
|
|
41717
41717
|
E.a = 1, F = 0;
|
|
41718
41718
|
break t;
|
|
41719
41719
|
}
|
|
@@ -42788,7 +42788,7 @@ function G5(i) {
|
|
|
42788
42788
|
break i;
|
|
42789
42789
|
}
|
|
42790
42790
|
if (!Pa(E, k.width) || k.da) break i;
|
|
42791
|
-
if ((k.da || pe(E.ca.S)) && ht(), 11 > E.ca.S || (alert("todo:WebPInitConvertARGBToYUV"), E.ca.f.kb.F != null && ht()), E.Pb && 0 < E.s.ua && E.s.vb.X == null && !
|
|
42791
|
+
if ((k.da || pe(E.ca.S)) && ht(), 11 > E.ca.S || (alert("todo:WebPInitConvertARGBToYUV"), E.ca.f.kb.F != null && ht()), E.Pb && 0 < E.s.ua && E.s.vb.X == null && !Yt(E.s.vb, E.s.Wa.Xa)) {
|
|
42792
42792
|
E.a = 1;
|
|
42793
42793
|
break i;
|
|
42794
42794
|
}
|
|
@@ -43269,7 +43269,7 @@ function(i) {
|
|
|
43269
43269
|
*/
|
|
43270
43270
|
function(i) {
|
|
43271
43271
|
function t() {
|
|
43272
|
-
return (_e.canvg ? Promise.resolve(_e.canvg) : import("./index.es-
|
|
43272
|
+
return (_e.canvg ? Promise.resolve(_e.canvg) : import("./index.es-BSUWcQGl.mjs")).catch(function(e) {
|
|
43273
43273
|
return Promise.reject(new Error("Could not load canvg: " + e));
|
|
43274
43274
|
}).then(function(e) {
|
|
43275
43275
|
return e.default ? e.default : e;
|
|
@@ -43799,8 +43799,8 @@ var PI = function(i) {
|
|
|
43799
43799
|
}
|
|
43800
43800
|
return i.encode = function(t, e) {
|
|
43801
43801
|
var n, r, o, s, a, l, u, c, h, f, d, p, v, y, _, x, w, A, P, O, N, M, U, J, L, C, B, j, H, Y, rt, tt, ut, X, _t, T, q, S, z, Q, Z, it, et, at, vt, Rt;
|
|
43802
|
-
switch (j = new xa(), s = Object.keys(t).sort(function(bt,
|
|
43803
|
-
return bt -
|
|
43802
|
+
switch (j = new xa(), s = Object.keys(t).sort(function(bt, Yt) {
|
|
43803
|
+
return bt - Yt;
|
|
43804
43804
|
}), e) {
|
|
43805
43805
|
case "macroman":
|
|
43806
43806
|
for (v = 0, y = function() {
|
|
@@ -44332,7 +44332,7 @@ function p6(i, t) {
|
|
|
44332
44332
|
});
|
|
44333
44333
|
case "dot":
|
|
44334
44334
|
return new eo({
|
|
44335
|
-
radius:
|
|
44335
|
+
radius: 10,
|
|
44336
44336
|
fill: new yi({
|
|
44337
44337
|
color: t
|
|
44338
44338
|
})
|
|
@@ -44370,27 +44370,27 @@ function ZI(i) {
|
|
|
44370
44370
|
function $5(i, t) {
|
|
44371
44371
|
return new da({
|
|
44372
44372
|
text: t.get("label"),
|
|
44373
|
-
font: "
|
|
44373
|
+
font: "bold 19px Source Sans Pro,sans-serif",
|
|
44374
44374
|
placement: i === "Point" ? "line" : "point",
|
|
44375
44375
|
// "point" placement is center point of polygon
|
|
44376
44376
|
fill: new yi({
|
|
44377
44377
|
color: "#000"
|
|
44378
|
-
}),
|
|
44379
|
-
stroke: new Ci({
|
|
44380
|
-
color: "#fff",
|
|
44381
|
-
width: 4
|
|
44382
44378
|
})
|
|
44383
44379
|
});
|
|
44384
44380
|
}
|
|
44385
|
-
function JI(i, t, e, n) {
|
|
44386
|
-
switch (t =
|
|
44381
|
+
function JI(i, t, e, n, r) {
|
|
44382
|
+
switch (t = r.get("color") || t, i) {
|
|
44387
44383
|
case "Point":
|
|
44388
44384
|
return new Ze({
|
|
44389
44385
|
image: new eo({
|
|
44390
|
-
radius: 12,
|
|
44391
|
-
fill: new yi({ color:
|
|
44386
|
+
radius: e && !n ? 12 : 10,
|
|
44387
|
+
fill: new yi({ color: "#fff" }),
|
|
44388
|
+
stroke: new Ci({
|
|
44389
|
+
color: t,
|
|
44390
|
+
width: e && !n ? 2 : 6
|
|
44391
|
+
})
|
|
44392
44392
|
}),
|
|
44393
|
-
text: e ? $5(i,
|
|
44393
|
+
text: e && !n ? $5(i, r) : void 0
|
|
44394
44394
|
});
|
|
44395
44395
|
default:
|
|
44396
44396
|
return [
|
|
@@ -44402,18 +44402,24 @@ function JI(i, t, e, n) {
|
|
|
44402
44402
|
color: t,
|
|
44403
44403
|
width: 3
|
|
44404
44404
|
}),
|
|
44405
|
-
text: e ? $5(i,
|
|
44405
|
+
text: e && !n ? $5(i, r) : void 0
|
|
44406
44406
|
}),
|
|
44407
44407
|
ZI(t)
|
|
44408
44408
|
];
|
|
44409
44409
|
}
|
|
44410
44410
|
}
|
|
44411
44411
|
const Pn = new Hn({ wrapX: !1 });
|
|
44412
|
-
function QI(i, t, e) {
|
|
44412
|
+
function QI(i, t, e, n) {
|
|
44413
44413
|
return new no({
|
|
44414
44414
|
source: Pn,
|
|
44415
|
-
style: function(
|
|
44416
|
-
return JI(
|
|
44415
|
+
style: function(r) {
|
|
44416
|
+
return JI(
|
|
44417
|
+
i,
|
|
44418
|
+
t,
|
|
44419
|
+
e,
|
|
44420
|
+
n,
|
|
44421
|
+
r
|
|
44422
|
+
);
|
|
44417
44423
|
}
|
|
44418
44424
|
});
|
|
44419
44425
|
}
|
|
@@ -51382,7 +51388,7 @@ Yn.defs(
|
|
|
51382
51388
|
);
|
|
51383
51389
|
nz(Yn);
|
|
51384
51390
|
const Wk = Ue("EPSG:27700"), Gq = ny`:host{display:block;width:650px;height:650px;position:relative}.map{height:100%;opacity:0;transition:opacity .25s;overflow:hidden;border:#000000 solid .15em}.map:focus{outline:#ffdd00 solid .25em}.ol-control button{border-radius:0!important;background-color:#2c2c2c!important;cursor:pointer;min-width:44px;min-height:44px;font-size:1.75rem}.ol-control button:hover{background-color:#2c2c2cd9!important}.ol-control button:focus{outline:#ffdd00 solid .15em}.ol-scale-line{background-color:transparent}.ol-scale-line-inner{border:.2em solid #2c2c2c;border-top:none;color:#2c2c2c;font-size:1em;font-family:inherit}.ol-scale-bar-inner{display:flex}.reset-control{top:114px;left:.5em}.reset-control img{width:30px;height:auto}.north-arrow-control img{width:54px;height:auto}.north-arrow-control{top:.5em;right:.5em;border-radius:0!important;background-color:transparent!important}#area{position:absolute;bottom:0;left:0;z-index:100;background:#fff}.ol-overlaycontainer-stopevent{top:0!important}.ol-print{bottom:50px;left:.5em}.ol-print img{width:30px;height:auto}.ol-attribution ul{display:block}.ol-attribution li{display:list-item}.ol-attribution a{color:#0010a4}.ol-attribution a:focus{color:#000;background-color:#fd0}`;
|
|
51385
|
-
var Vk = Object.freeze, ZS = Object.defineProperty, qq = Object.getOwnPropertyDescriptor,
|
|
51391
|
+
var Vk = Object.freeze, ZS = Object.defineProperty, qq = Object.getOwnPropertyDescriptor, se = (i, t, e, n) => {
|
|
51386
51392
|
for (var r = n > 1 ? void 0 : n ? qq(t, e) : t, o = i.length - 1, s; o >= 0; o--)
|
|
51387
51393
|
(s = i[o]) && (r = (n ? s(t, e, r) : s(r)) || r);
|
|
51388
51394
|
return n && r && ZS(t, e, r), r;
|
|
@@ -51396,7 +51402,7 @@ let oe = class extends Ja {
|
|
|
51396
51402
|
}, this.drawGeojsonDataCopyright = "", this.drawGeojsonDataBuffer = 100, this.drawPointer = "crosshair", this.clickFeatures = !1, this.drawColor = "#ff0000", this.drawFillColor = "rgba(255, 0, 0, 0.1)", this.showFeaturesAtPoint = !1, this.featureColor = "#0000ff", this.featureFill = !1, this.featureBorderNone = !1, this.featureBuffer = 40, this.showCentreMarker = !1, this.markerImage = "circle", this.markerLatitude = this.latitude, this.markerLongitude = this.longitude, this.markerColor = "#2c2c2c", this.geojsonData = {
|
|
51397
51403
|
type: "FeatureCollection",
|
|
51398
51404
|
features: []
|
|
51399
|
-
}, this.showGeojsonDataMarkers = !1, this.geojsonDataCopyright = "", this.geojsonColor = "#ff0000", this.geojsonFill = !1, this.geojsonBuffer = 12, this.disableVectorTiles = !1, this.osApiKey = "a69TM3Yjy4YUiAXFAyI6KyadBPrwYqex", this.osVectorTilesApiKey = "", this.osFeaturesApiKey = "", this.osCopyright = `© Crown copyright and database rights ${(/* @__PURE__ */ new Date()).getFullYear()} OS <your account number>`, this.osProxyEndpoint = "", this.applySatelliteStyle = !1, this.mapboxAccessToken = "pk.eyJ1Ijoib3BlbnN5c3RlbXNsYWIiLCJhIjoiY20wZG92Njc4MGhqMTJrcXN5YnE2YTN5cCJ9.PakwmaSz_jjuSoVjk4NW1Q", this.hideResetControl = !1, this.resetViewOnly = !1, this.resetControlImage = "unicode", this.staticMode = !1, this.areaUnit = "m2", this.showScale = !1, this.useScaleBarStyle = !1, this.showNorthArrow = !1, this.showPrint = !1, this.collapseAttributions = !1, this.clipGeojsonData = {
|
|
51405
|
+
}, this.showGeojsonDataMarkers = !1, this.geojsonDataCopyright = "", this.geojsonColor = "#ff0000", this.geojsonFill = !1, this.geojsonBuffer = 12, this.disableVectorTiles = !1, this.osApiKey = "a69TM3Yjy4YUiAXFAyI6KyadBPrwYqex", this.osVectorTilesApiKey = "", this.osFeaturesApiKey = "", this.osCopyright = `© Crown copyright and database rights ${(/* @__PURE__ */ new Date()).getFullYear()} OS <your account number>`, this.osProxyEndpoint = "", this.applySatelliteStyle = !1, this.mapboxAccessToken = "pk.eyJ1Ijoib3BlbnN5c3RlbXNsYWIiLCJhIjoiY20wZG92Njc4MGhqMTJrcXN5YnE2YTN5cCJ9.PakwmaSz_jjuSoVjk4NW1Q", this.hideResetControl = !1, this.resetViewOnly = !1, this.resetControlImage = "unicode", this.staticMode = !1, this.areaUnit = "m2", this.hideDrawLabels = !1, this.showScale = !1, this.useScaleBarStyle = !1, this.showNorthArrow = !1, this.showPrint = !1, this.collapseAttributions = !1, this.clipGeojsonData = {
|
|
51400
51406
|
type: "Feature",
|
|
51401
51407
|
geometry: {
|
|
51402
51408
|
coordinates: []
|
|
@@ -51527,7 +51533,7 @@ let oe = class extends Ja {
|
|
|
51527
51533
|
color: this.geojsonFill ? ec(q, 0.2) : ec(q, 0)
|
|
51528
51534
|
}),
|
|
51529
51535
|
image: new eo({
|
|
51530
|
-
radius:
|
|
51536
|
+
radius: 10,
|
|
51531
51537
|
fill: new yi({ color: q })
|
|
51532
51538
|
})
|
|
51533
51539
|
});
|
|
@@ -51541,7 +51547,8 @@ let oe = class extends Ja {
|
|
|
51541
51547
|
const O = QI(
|
|
51542
51548
|
this.drawType,
|
|
51543
51549
|
this.drawColor,
|
|
51544
|
-
this.drawMany
|
|
51550
|
+
this.drawMany,
|
|
51551
|
+
this.hideDrawLabels
|
|
51545
51552
|
);
|
|
51546
51553
|
if (this.drawMode) {
|
|
51547
51554
|
if (Pn.clear(), this.drawGeojsonData.type === "FeatureCollection") {
|
|
@@ -51626,7 +51633,7 @@ let oe = class extends Ja {
|
|
|
51626
51633
|
});
|
|
51627
51634
|
}
|
|
51628
51635
|
const M = new eo({
|
|
51629
|
-
radius:
|
|
51636
|
+
radius: 10,
|
|
51630
51637
|
fill: new yi({ color: this.markerColor })
|
|
51631
51638
|
}), U = new sl({ src: nR, scale: 0.5 }), J = () => {
|
|
51632
51639
|
switch (this.markerImage) {
|
|
@@ -51676,175 +51683,178 @@ let oe = class extends Ja {
|
|
|
51676
51683
|
}
|
|
51677
51684
|
};
|
|
51678
51685
|
oe.styles = wp(Gq);
|
|
51679
|
-
|
|
51680
|
-
|
|
51686
|
+
se([
|
|
51687
|
+
Xt({ type: String })
|
|
51681
51688
|
], oe.prototype, "id", 2);
|
|
51682
|
-
|
|
51683
|
-
|
|
51689
|
+
se([
|
|
51690
|
+
Xt({ type: String })
|
|
51684
51691
|
], oe.prototype, "dataTestId", 2);
|
|
51685
|
-
|
|
51686
|
-
|
|
51692
|
+
se([
|
|
51693
|
+
Xt({ type: Number })
|
|
51687
51694
|
], oe.prototype, "latitude", 2);
|
|
51688
|
-
|
|
51689
|
-
|
|
51695
|
+
se([
|
|
51696
|
+
Xt({ type: Number })
|
|
51690
51697
|
], oe.prototype, "longitude", 2);
|
|
51691
|
-
|
|
51692
|
-
|
|
51698
|
+
se([
|
|
51699
|
+
Xt({ type: String })
|
|
51693
51700
|
], oe.prototype, "basemap", 2);
|
|
51694
|
-
|
|
51695
|
-
|
|
51701
|
+
se([
|
|
51702
|
+
Xt({ type: String })
|
|
51696
51703
|
], oe.prototype, "projection", 2);
|
|
51697
|
-
|
|
51698
|
-
|
|
51704
|
+
se([
|
|
51705
|
+
Xt({ type: Number })
|
|
51699
51706
|
], oe.prototype, "zoom", 2);
|
|
51700
|
-
|
|
51701
|
-
|
|
51707
|
+
se([
|
|
51708
|
+
Xt({ type: Number })
|
|
51702
51709
|
], oe.prototype, "minZoom", 2);
|
|
51703
|
-
|
|
51704
|
-
|
|
51710
|
+
se([
|
|
51711
|
+
Xt({ type: Number })
|
|
51705
51712
|
], oe.prototype, "maxZoom", 2);
|
|
51706
|
-
|
|
51707
|
-
|
|
51713
|
+
se([
|
|
51714
|
+
Xt({ type: Boolean })
|
|
51708
51715
|
], oe.prototype, "drawMode", 2);
|
|
51709
|
-
|
|
51710
|
-
|
|
51716
|
+
se([
|
|
51717
|
+
Xt({ type: Boolean })
|
|
51711
51718
|
], oe.prototype, "drawMany", 2);
|
|
51712
|
-
|
|
51713
|
-
|
|
51719
|
+
se([
|
|
51720
|
+
Xt({ type: String })
|
|
51714
51721
|
], oe.prototype, "drawType", 2);
|
|
51715
|
-
|
|
51716
|
-
|
|
51722
|
+
se([
|
|
51723
|
+
Xt({ type: String })
|
|
51717
51724
|
], oe.prototype, "drawPointColor", 2);
|
|
51718
|
-
|
|
51719
|
-
|
|
51725
|
+
se([
|
|
51726
|
+
Xt({ type: Object })
|
|
51720
51727
|
], oe.prototype, "drawGeojsonData", 2);
|
|
51721
|
-
|
|
51722
|
-
|
|
51728
|
+
se([
|
|
51729
|
+
Xt({ type: String })
|
|
51723
51730
|
], oe.prototype, "drawGeojsonDataCopyright", 2);
|
|
51724
|
-
|
|
51725
|
-
|
|
51731
|
+
se([
|
|
51732
|
+
Xt({ type: Number })
|
|
51726
51733
|
], oe.prototype, "drawGeojsonDataBuffer", 2);
|
|
51727
|
-
|
|
51728
|
-
|
|
51734
|
+
se([
|
|
51735
|
+
Xt({ type: String })
|
|
51729
51736
|
], oe.prototype, "drawPointer", 2);
|
|
51730
|
-
|
|
51731
|
-
|
|
51737
|
+
se([
|
|
51738
|
+
Xt({ type: Boolean })
|
|
51732
51739
|
], oe.prototype, "clickFeatures", 2);
|
|
51733
|
-
|
|
51734
|
-
|
|
51740
|
+
se([
|
|
51741
|
+
Xt({ type: String })
|
|
51735
51742
|
], oe.prototype, "drawColor", 2);
|
|
51736
|
-
|
|
51737
|
-
|
|
51743
|
+
se([
|
|
51744
|
+
Xt({ type: String })
|
|
51738
51745
|
], oe.prototype, "drawFillColor", 2);
|
|
51739
|
-
|
|
51740
|
-
|
|
51746
|
+
se([
|
|
51747
|
+
Xt({ type: Boolean })
|
|
51741
51748
|
], oe.prototype, "showFeaturesAtPoint", 2);
|
|
51742
|
-
|
|
51743
|
-
|
|
51749
|
+
se([
|
|
51750
|
+
Xt({ type: String })
|
|
51744
51751
|
], oe.prototype, "featureColor", 2);
|
|
51745
|
-
|
|
51746
|
-
|
|
51752
|
+
se([
|
|
51753
|
+
Xt({ type: Boolean })
|
|
51747
51754
|
], oe.prototype, "featureFill", 2);
|
|
51748
|
-
|
|
51749
|
-
|
|
51755
|
+
se([
|
|
51756
|
+
Xt({ type: Boolean })
|
|
51750
51757
|
], oe.prototype, "featureBorderNone", 2);
|
|
51751
|
-
|
|
51752
|
-
|
|
51758
|
+
se([
|
|
51759
|
+
Xt({ type: Number })
|
|
51753
51760
|
], oe.prototype, "featureBuffer", 2);
|
|
51754
|
-
|
|
51755
|
-
|
|
51761
|
+
se([
|
|
51762
|
+
Xt({ type: Boolean })
|
|
51756
51763
|
], oe.prototype, "showCentreMarker", 2);
|
|
51757
|
-
|
|
51758
|
-
|
|
51764
|
+
se([
|
|
51765
|
+
Xt({ type: String })
|
|
51759
51766
|
], oe.prototype, "markerImage", 2);
|
|
51760
|
-
|
|
51761
|
-
|
|
51767
|
+
se([
|
|
51768
|
+
Xt({ type: Number })
|
|
51762
51769
|
], oe.prototype, "markerLatitude", 2);
|
|
51763
|
-
|
|
51764
|
-
|
|
51770
|
+
se([
|
|
51771
|
+
Xt({ type: Number })
|
|
51765
51772
|
], oe.prototype, "markerLongitude", 2);
|
|
51766
|
-
|
|
51767
|
-
|
|
51773
|
+
se([
|
|
51774
|
+
Xt({ type: String })
|
|
51768
51775
|
], oe.prototype, "markerColor", 2);
|
|
51769
|
-
|
|
51770
|
-
|
|
51776
|
+
se([
|
|
51777
|
+
Xt({ type: Object })
|
|
51771
51778
|
], oe.prototype, "geojsonData", 2);
|
|
51772
|
-
|
|
51773
|
-
|
|
51779
|
+
se([
|
|
51780
|
+
Xt({ type: Boolean })
|
|
51774
51781
|
], oe.prototype, "showGeojsonDataMarkers", 2);
|
|
51775
|
-
|
|
51776
|
-
|
|
51782
|
+
se([
|
|
51783
|
+
Xt({ type: String })
|
|
51777
51784
|
], oe.prototype, "geojsonDataCopyright", 2);
|
|
51778
|
-
|
|
51779
|
-
|
|
51785
|
+
se([
|
|
51786
|
+
Xt({ type: String })
|
|
51780
51787
|
], oe.prototype, "geojsonColor", 2);
|
|
51781
|
-
|
|
51782
|
-
|
|
51788
|
+
se([
|
|
51789
|
+
Xt({ type: Boolean })
|
|
51783
51790
|
], oe.prototype, "geojsonFill", 2);
|
|
51784
|
-
|
|
51785
|
-
|
|
51791
|
+
se([
|
|
51792
|
+
Xt({ type: Number })
|
|
51786
51793
|
], oe.prototype, "geojsonBuffer", 2);
|
|
51787
|
-
|
|
51788
|
-
|
|
51794
|
+
se([
|
|
51795
|
+
Xt({ type: Boolean })
|
|
51789
51796
|
], oe.prototype, "disableVectorTiles", 2);
|
|
51790
|
-
|
|
51791
|
-
|
|
51797
|
+
se([
|
|
51798
|
+
Xt({ type: String })
|
|
51792
51799
|
], oe.prototype, "osApiKey", 2);
|
|
51793
|
-
|
|
51794
|
-
|
|
51800
|
+
se([
|
|
51801
|
+
Xt({ type: String })
|
|
51795
51802
|
], oe.prototype, "osVectorTilesApiKey", 2);
|
|
51796
|
-
|
|
51797
|
-
|
|
51803
|
+
se([
|
|
51804
|
+
Xt({ type: String })
|
|
51798
51805
|
], oe.prototype, "osFeaturesApiKey", 2);
|
|
51799
|
-
|
|
51800
|
-
|
|
51806
|
+
se([
|
|
51807
|
+
Xt({ type: String })
|
|
51801
51808
|
], oe.prototype, "osCopyright", 2);
|
|
51802
|
-
|
|
51803
|
-
|
|
51809
|
+
se([
|
|
51810
|
+
Xt({ type: String })
|
|
51804
51811
|
], oe.prototype, "osProxyEndpoint", 2);
|
|
51805
|
-
|
|
51806
|
-
|
|
51812
|
+
se([
|
|
51813
|
+
Xt({ type: Boolean })
|
|
51807
51814
|
], oe.prototype, "applySatelliteStyle", 2);
|
|
51808
|
-
|
|
51809
|
-
|
|
51815
|
+
se([
|
|
51816
|
+
Xt({ type: String })
|
|
51810
51817
|
], oe.prototype, "mapboxAccessToken", 2);
|
|
51811
|
-
|
|
51812
|
-
|
|
51818
|
+
se([
|
|
51819
|
+
Xt({ type: Boolean })
|
|
51813
51820
|
], oe.prototype, "hideResetControl", 2);
|
|
51814
|
-
|
|
51815
|
-
|
|
51821
|
+
se([
|
|
51822
|
+
Xt({ type: Boolean })
|
|
51816
51823
|
], oe.prototype, "resetViewOnly", 2);
|
|
51817
|
-
|
|
51818
|
-
|
|
51824
|
+
se([
|
|
51825
|
+
Xt({ type: String })
|
|
51819
51826
|
], oe.prototype, "resetControlImage", 2);
|
|
51820
|
-
|
|
51821
|
-
|
|
51827
|
+
se([
|
|
51828
|
+
Xt({ type: Boolean })
|
|
51822
51829
|
], oe.prototype, "staticMode", 2);
|
|
51823
|
-
|
|
51824
|
-
|
|
51830
|
+
se([
|
|
51831
|
+
Xt({ type: String })
|
|
51825
51832
|
], oe.prototype, "areaUnit", 2);
|
|
51826
|
-
|
|
51827
|
-
|
|
51833
|
+
se([
|
|
51834
|
+
Xt({ type: Boolean })
|
|
51835
|
+
], oe.prototype, "hideDrawLabels", 2);
|
|
51836
|
+
se([
|
|
51837
|
+
Xt({ type: Boolean })
|
|
51828
51838
|
], oe.prototype, "showScale", 2);
|
|
51829
|
-
|
|
51830
|
-
|
|
51839
|
+
se([
|
|
51840
|
+
Xt({ type: Boolean })
|
|
51831
51841
|
], oe.prototype, "useScaleBarStyle", 2);
|
|
51832
|
-
|
|
51833
|
-
|
|
51842
|
+
se([
|
|
51843
|
+
Xt({ type: Boolean })
|
|
51834
51844
|
], oe.prototype, "showNorthArrow", 2);
|
|
51835
|
-
|
|
51836
|
-
|
|
51845
|
+
se([
|
|
51846
|
+
Xt({ type: Boolean })
|
|
51837
51847
|
], oe.prototype, "showPrint", 2);
|
|
51838
|
-
|
|
51839
|
-
|
|
51848
|
+
se([
|
|
51849
|
+
Xt({ type: Boolean })
|
|
51840
51850
|
], oe.prototype, "collapseAttributions", 2);
|
|
51841
|
-
|
|
51842
|
-
|
|
51851
|
+
se([
|
|
51852
|
+
Xt({ type: Object })
|
|
51843
51853
|
], oe.prototype, "clipGeojsonData", 2);
|
|
51844
|
-
|
|
51845
|
-
|
|
51854
|
+
se([
|
|
51855
|
+
Xt({ type: String })
|
|
51846
51856
|
], oe.prototype, "ariaLabelOlFixedOverlay", 2);
|
|
51847
|
-
oe =
|
|
51857
|
+
oe = se([
|
|
51848
51858
|
sy("my-map")
|
|
51849
51859
|
], oe);
|
|
51850
51860
|
var JS = { exports: {} };
|
|
@@ -52013,14 +52023,14 @@ var JS = { exports: {} };
|
|
|
52013
52023
|
for (; S.firstChild; ) et.appendChild(S.firstChild);
|
|
52014
52024
|
S.parentNode && S.parentNode.replaceChild(et, S), B(S, !0);
|
|
52015
52025
|
}
|
|
52016
|
-
var Rt = et.firstChild, bt = et.__preactattr_,
|
|
52026
|
+
var Rt = et.firstChild, bt = et.__preactattr_, Yt = z.children;
|
|
52017
52027
|
if (bt == null) {
|
|
52018
52028
|
bt = et.__preactattr_ = {};
|
|
52019
52029
|
for (var gt = et.attributes, V = gt.length; V--; ) bt[gt[V].name] = gt[V].value;
|
|
52020
52030
|
}
|
|
52021
|
-
return !U &&
|
|
52022
|
-
var Ot, Nt, Dt, jt, Bt, $t = Lt.childNodes, Pt = [], Gt = {}, xt = 0, Me = 0,
|
|
52023
|
-
if (
|
|
52031
|
+
return !U && Yt && Yt.length === 1 && typeof Yt[0] == "string" && Rt != null && Rt.splitText !== void 0 && Rt.nextSibling == null ? Rt.nodeValue != Yt[0] && (Rt.nodeValue = Yt[0]) : (Yt && Yt.length || Rt != null) && function(Lt, mt, Et, St, wt) {
|
|
52032
|
+
var Ot, Nt, Dt, jt, Bt, $t = Lt.childNodes, Pt = [], Gt = {}, xt = 0, Me = 0, ae = $t.length, be = 0, ce = mt ? mt.length : 0;
|
|
52033
|
+
if (ae !== 0) for (var te = 0; te < ae; te++) {
|
|
52024
52034
|
var Fe = $t[te], pe = Fe.__preactattr_, Xe = ce && pe ? Fe._component ? Fe._component.__key : pe.key : null;
|
|
52025
52035
|
Xe != null ? (xt++, Gt[Xe] = Fe) : (pe || (Fe.splitText !== void 0 ? !wt || Fe.nodeValue.trim() : wt)) && (Pt[be++] = Fe);
|
|
52026
52036
|
}
|
|
@@ -52039,7 +52049,7 @@ var JS = { exports: {} };
|
|
|
52039
52049
|
var ve, ni, Gi;
|
|
52040
52050
|
if (xt) for (var te in Gt) Gt[te] !== void 0 && B(Gt[te], !1);
|
|
52041
52051
|
for (; Me <= be; ) (Bt = Pt[be--]) !== void 0 && B(Bt, !1);
|
|
52042
|
-
}(et,
|
|
52052
|
+
}(et, Yt, Q, Z, U || bt.dangerouslySetInnerHTML != null), function(Lt, mt, Et) {
|
|
52043
52053
|
var St;
|
|
52044
52054
|
for (St in Et) mt && mt[St] != null || Et[St] == null || A(Lt, St, Et[St], Et[St] = void 0, M);
|
|
52045
52055
|
for (St in mt) St === "children" || St === "innerHTML" || St in Et && mt[St] === (St === "value" || St === "checked" ? Lt[St] : Et[St]) || A(Lt, St, Et[St], Et[St] = mt[St], M);
|
|
@@ -52069,16 +52079,16 @@ var JS = { exports: {} };
|
|
|
52069
52079
|
}
|
|
52070
52080
|
function ut(S, z, Q, Z) {
|
|
52071
52081
|
if (!S._disable) {
|
|
52072
|
-
var it, et, at, vt = S.props, Rt = S.state, bt = S.context,
|
|
52073
|
-
if (S.constructor.getDerivedStateFromProps && (Rt = c(c({}, Rt), S.constructor.getDerivedStateFromProps(vt, Rt)), S.state = Rt), Qt && (S.props =
|
|
52074
|
-
it = S.render(vt, Rt, bt), S.getChildContext && (bt = c(c({}, bt), S.getChildContext())), Qt && S.getSnapshotBeforeUpdate && (wt = S.getSnapshotBeforeUpdate(
|
|
52082
|
+
var it, et, at, vt = S.props, Rt = S.state, bt = S.context, Yt = S.prevProps || vt, gt = S.prevState || Rt, V = S.prevContext || bt, Qt = S.base, Lt = S.nextBase, mt = Qt || Lt, Et = S._component, St = !1, wt = V;
|
|
52083
|
+
if (S.constructor.getDerivedStateFromProps && (Rt = c(c({}, Rt), S.constructor.getDerivedStateFromProps(vt, Rt)), S.state = Rt), Qt && (S.props = Yt, S.state = gt, S.context = V, z !== 2 && S.shouldComponentUpdate && S.shouldComponentUpdate(vt, Rt, bt) === !1 ? St = !0 : S.componentWillUpdate && S.componentWillUpdate(vt, Rt, bt), S.props = vt, S.state = Rt, S.context = bt), S.prevProps = S.prevState = S.prevContext = S.nextBase = null, S._dirty = !1, !St) {
|
|
52084
|
+
it = S.render(vt, Rt, bt), S.getChildContext && (bt = c(c({}, bt), S.getChildContext())), Qt && S.getSnapshotBeforeUpdate && (wt = S.getSnapshotBeforeUpdate(Yt, gt));
|
|
52075
52085
|
var Ot, Nt, Dt = it && it.nodeName;
|
|
52076
52086
|
if (typeof Dt == "function") {
|
|
52077
52087
|
var jt = x(it);
|
|
52078
52088
|
(et = Et) && et.constructor === Dt && jt.key == et.__key ? tt(et, jt, 1, bt, !1) : (Ot = et, S._component = et = Y(Dt, jt, bt), et.nextBase = et.nextBase || Lt, et._parentComponent = S, tt(et, jt, 0, bt, !1), ut(et, 1, Q, !0)), Nt = et.base;
|
|
52079
|
-
} else at = mt, (Ot = Et) && (at = S._component = null), (mt || z === 1) && (at && (at._component = null), Nt = function(xt, Me,
|
|
52089
|
+
} else at = mt, (Ot = Et) && (at = S._component = null), (mt || z === 1) && (at && (at._component = null), Nt = function(xt, Me, ae, be, ce, te) {
|
|
52080
52090
|
N++ || (M = ce != null && ce.ownerSVGElement !== void 0, U = xt != null && !("__preactattr_" in xt));
|
|
52081
|
-
var Fe = C(xt, Me,
|
|
52091
|
+
var Fe = C(xt, Me, ae, be, te);
|
|
52082
52092
|
return ce && Fe.parentNode !== ce && ce.appendChild(Fe), --N || (U = !1), Fe;
|
|
52083
52093
|
}(at, it, bt, Q || !Qt, mt && mt.parentNode, !0));
|
|
52084
52094
|
if (mt && Nt !== mt && et !== Et) {
|
|
@@ -52090,7 +52100,7 @@ var JS = { exports: {} };
|
|
|
52090
52100
|
Nt._component = $t, Nt._componentConstructor = $t.constructor;
|
|
52091
52101
|
}
|
|
52092
52102
|
}
|
|
52093
|
-
for (!Qt || Q ? O.unshift(S) : St || (S.componentDidUpdate && S.componentDidUpdate(
|
|
52103
|
+
for (!Qt || Q ? O.unshift(S) : St || (S.componentDidUpdate && S.componentDidUpdate(Yt, gt, wt), s.afterUpdate && s.afterUpdate(S)); S._renderCallbacks.length; ) S._renderCallbacks.pop().call(S);
|
|
52094
52104
|
N || Z || J();
|
|
52095
52105
|
}
|
|
52096
52106
|
}
|
|
@@ -52582,8 +52592,8 @@ var JS = { exports: {} };
|
|
|
52582
52592
|
})(_.keyCode) && this.handlePrintableKey(_);
|
|
52583
52593
|
}
|
|
52584
52594
|
}, y.render = function() {
|
|
52585
|
-
var _, x = this, w = this.props, A = w.cssNamespace, P = w.displayMenu, O = w.id, N = w.minLength, M = w.name, U = w.placeholder, J = w.required, L = w.showAllValues, C = w.tNoResults, B = w.tStatusQueryTooShort, j = w.tStatusNoResults, H = w.tStatusSelectedOption, Y = w.tStatusResults, rt = w.tAssistiveHint, tt = w.dropdownArrow, ut = this.state, X = ut.focused, _t = ut.hovered, T = ut.menuOpen, q = ut.options, S = ut.query, z = ut.selected, Q = ut.ariaHint, Z = ut.validChoiceMade, it = this.hasAutoselect(), et = X === -1, at = q.length === 0, vt = S.length !== 0, Rt = S.length >= N, bt = this.props.showNoOptionsFound && et && at && vt && Rt,
|
|
52586
|
-
return L && typeof (_ = tt({ className: Lt })) == "string" && (_ = (0, o.createElement)("div", { className: A + "__dropdown-arrow-down-wrapper", dangerouslySetInnerHTML: { __html: _ } })), (0, o.createElement)("div", { className:
|
|
52595
|
+
var _, x = this, w = this.props, A = w.cssNamespace, P = w.displayMenu, O = w.id, N = w.minLength, M = w.name, U = w.placeholder, J = w.required, L = w.showAllValues, C = w.tNoResults, B = w.tStatusQueryTooShort, j = w.tStatusNoResults, H = w.tStatusSelectedOption, Y = w.tStatusResults, rt = w.tAssistiveHint, tt = w.dropdownArrow, ut = this.state, X = ut.focused, _t = ut.hovered, T = ut.menuOpen, q = ut.options, S = ut.query, z = ut.selected, Q = ut.ariaHint, Z = ut.validChoiceMade, it = this.hasAutoselect(), et = X === -1, at = q.length === 0, vt = S.length !== 0, Rt = S.length >= N, bt = this.props.showNoOptionsFound && et && at && vt && Rt, Yt = A + "__wrapper", gt = A + "__input", V = X !== null ? " " + gt + "--focused" : "", Qt = this.props.showAllValues ? " " + gt + "--show-all-values" : " " + gt + "--default", Lt = A + "__dropdown-arrow-down", mt = X !== -1 && X !== null, Et = A + "__menu", St = Et + "--" + P, wt = Et + "--" + (T || bt ? "visible" : "hidden"), Ot = A + "__option", Nt = A + "__hint", Dt = this.templateInputValue(q[z]), jt = Dt && Dt.toLowerCase().indexOf(S.toLowerCase()) === 0 && it ? S + Dt.substr(S.length) : "", Bt = O + "__assistiveHint", $t = Q ? { "aria-describedby": Bt } : null;
|
|
52596
|
+
return L && typeof (_ = tt({ className: Lt })) == "string" && (_ = (0, o.createElement)("div", { className: A + "__dropdown-arrow-down-wrapper", dangerouslySetInnerHTML: { __html: _ } })), (0, o.createElement)("div", { className: Yt, onKeyDown: this.handleKeyDown }, (0, o.createElement)(s.default, { id: O, length: q.length, queryLength: S.length, minQueryLength: N, selectedOption: this.templateInputValue(q[z]), selectedOptionIndex: z, validChoiceMade: Z, isInFocus: this.state.focused !== null, tQueryTooShort: B, tNoResults: j, tSelectedOption: H, tResults: Y }), jt && (0, o.createElement)("span", null, (0, o.createElement)("input", { className: Nt, readonly: !0, tabIndex: "-1", value: jt })), (0, o.createElement)("input", u({ "aria-expanded": T ? "true" : "false", "aria-activedescendant": !!mt && O + "__option--" + X, "aria-owns": O + "__listbox", "aria-autocomplete": this.hasAutoselect() ? "both" : "list" }, $t, { autoComplete: "off", className: "" + gt + V + Qt, id: O, onClick: function(Pt) {
|
|
52587
52597
|
return x.handleInputClick(Pt);
|
|
52588
52598
|
}, onBlur: this.handleInputBlur }, /* @__PURE__ */ function(Gt) {
|
|
52589
52599
|
return { onInput: Gt };
|
|
@@ -52592,8 +52602,8 @@ var JS = { exports: {} };
|
|
|
52592
52602
|
}, type: "text", role: "combobox", required: J, value: S })), _, (0, o.createElement)("ul", { className: Et + " " + St + " " + wt, onMouseLeave: function(Pt) {
|
|
52593
52603
|
return x.handleListMouseLeave(Pt);
|
|
52594
52604
|
}, id: O + "__listbox", role: "listbox" }, q.map(function(Pt, Gt) {
|
|
52595
|
-
var xt = (X === -1 ? z === Gt : X === Gt) && _t === null ? " " + Ot + "--focused" : "", Me = Gt % 2 ? " " + Ot + "--odd" : "",
|
|
52596
|
-
return (0, o.createElement)("li", { "aria-selected": X === Gt ? "true" : "false", className: "" + Ot + xt + Me, dangerouslySetInnerHTML: { __html: x.templateSuggestion(Pt) +
|
|
52605
|
+
var xt = (X === -1 ? z === Gt : X === Gt) && _t === null ? " " + Ot + "--focused" : "", Me = Gt % 2 ? " " + Ot + "--odd" : "", ae = f() ? "<span id=" + O + "__option-suffix--" + Gt + ' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> ' + (Gt + 1) + " of " + q.length + "</span>" : "";
|
|
52606
|
+
return (0, o.createElement)("li", { "aria-selected": X === Gt ? "true" : "false", className: "" + Ot + xt + Me, dangerouslySetInnerHTML: { __html: x.templateSuggestion(Pt) + ae }, id: O + "__option--" + Gt, key: Gt, onBlur: function(be) {
|
|
52597
52607
|
return x.handleOptionBlur(be, Gt);
|
|
52598
52608
|
}, onClick: function(be) {
|
|
52599
52609
|
return x.handleOptionClick(be, Gt);
|
|
@@ -52895,31 +52905,31 @@ let dn = class extends Ja {
|
|
|
52895
52905
|
};
|
|
52896
52906
|
dn.styles = wp(Vq);
|
|
52897
52907
|
On([
|
|
52898
|
-
|
|
52908
|
+
Xt({ type: String })
|
|
52899
52909
|
], dn.prototype, "id", 2);
|
|
52900
52910
|
On([
|
|
52901
|
-
|
|
52911
|
+
Xt({ type: String })
|
|
52902
52912
|
], dn.prototype, "postcode", 2);
|
|
52903
52913
|
On([
|
|
52904
|
-
|
|
52914
|
+
Xt({ type: String })
|
|
52905
52915
|
], dn.prototype, "label", 2);
|
|
52906
52916
|
On([
|
|
52907
|
-
|
|
52917
|
+
Xt({ type: String })
|
|
52908
52918
|
], dn.prototype, "initialAddress", 2);
|
|
52909
52919
|
On([
|
|
52910
|
-
|
|
52920
|
+
Xt({ type: String })
|
|
52911
52921
|
], dn.prototype, "osApiKey", 2);
|
|
52912
52922
|
On([
|
|
52913
|
-
|
|
52923
|
+
Xt({ type: String })
|
|
52914
52924
|
], dn.prototype, "osPlacesApiKey", 2);
|
|
52915
52925
|
On([
|
|
52916
|
-
|
|
52926
|
+
Xt({ type: String })
|
|
52917
52927
|
], dn.prototype, "osProxyEndpoint", 2);
|
|
52918
52928
|
On([
|
|
52919
|
-
|
|
52929
|
+
Xt({ type: String })
|
|
52920
52930
|
], dn.prototype, "arrowStyle", 2);
|
|
52921
52931
|
On([
|
|
52922
|
-
|
|
52932
|
+
Xt({ type: String })
|
|
52923
52933
|
], dn.prototype, "labelStyle", 2);
|
|
52924
52934
|
On([
|
|
52925
52935
|
Ea()
|
|
@@ -53095,22 +53105,22 @@ let Ar = class extends Ja {
|
|
|
53095
53105
|
};
|
|
53096
53106
|
Ar.styles = wp(s$);
|
|
53097
53107
|
jo([
|
|
53098
|
-
|
|
53108
|
+
Xt({ type: String })
|
|
53099
53109
|
], Ar.prototype, "id", 2);
|
|
53100
53110
|
jo([
|
|
53101
|
-
|
|
53111
|
+
Xt({ type: String })
|
|
53102
53112
|
], Ar.prototype, "errorId", 2);
|
|
53103
53113
|
jo([
|
|
53104
|
-
|
|
53114
|
+
Xt({ type: String })
|
|
53105
53115
|
], Ar.prototype, "label", 2);
|
|
53106
53116
|
jo([
|
|
53107
|
-
|
|
53117
|
+
Xt({ type: String })
|
|
53108
53118
|
], Ar.prototype, "hintText", 2);
|
|
53109
53119
|
jo([
|
|
53110
|
-
|
|
53120
|
+
Xt({ type: String })
|
|
53111
53121
|
], Ar.prototype, "errorMessage", 2);
|
|
53112
53122
|
jo([
|
|
53113
|
-
|
|
53123
|
+
Xt({ type: Boolean })
|
|
53114
53124
|
], Ar.prototype, "onlyQuestionOnPage", 2);
|
|
53115
53125
|
jo([
|
|
53116
53126
|
Ea()
|