@datagouv/components-next 1.0.2-dev.207 → 1.0.2-dev.209
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/{Control-B9WQxlpJ.js → Control-DMgMzWnv.js} +1 -1
- package/dist/{Datafair.client-CZhPt853.js → Datafair.client-DpdHdQSx.js} +1 -1
- package/dist/{Event-iXDrp-fy.js → Event-CfA33G1K.js} +9 -9
- package/dist/{Image-mNMBOofs.js → Image-Dueb7njC.js} +12 -12
- package/dist/{ImagePreview.client-CTF6hyMR.js → ImagePreview.client-CtbvW_Q_.js} +1 -1
- package/dist/{JsonPreview.client-BwsgTnR7.js → JsonPreview.client-CboMjF2M.js} +2 -2
- package/dist/{Map-BfqKMw0S.js → Map-B4L0JtRr.js} +1113 -1025
- package/dist/{MapContainer.client-C95seuim.js → MapContainer.client-BPAbtzkr.js} +7 -7
- package/dist/{OSM-CcrUhItr.js → OSM-BUakwXg7.js} +1 -1
- package/dist/{PdfPreview.client-DaXPl9xc.js → PdfPreview.client-DQF8gS3o.js} +2 -2
- package/dist/{Pmtiles.client-PSLUkGmF.js → Pmtiles.client-B-X5pTXq.js} +5788 -5737
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-McCfJHd3.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-CzFj5TX2.js} +1 -1
- package/dist/{ScaleLine-VGQ7nkMS.js → ScaleLine-4id_Lp0T.js} +2 -2
- package/dist/{Tile-CSpn0Ca8.js → Tile-DI5PtNs-.js} +375 -325
- package/dist/{TileImage-CpbaEFwd.js → TileImage-DFTatxB8.js} +83 -63
- package/dist/{View-BYBpt-AU.js → View-CwG9s9BF.js} +108 -101
- package/dist/{XmlPreview.client-BOVVyHXW.js → XmlPreview.client-BvlwpV00.js} +3 -3
- package/dist/{common-BoeTUnDZ.js → common-C3bYhKiN.js} +71 -70
- package/dist/components-next.css +1 -1
- package/dist/components-next.js +1 -1
- package/dist/components.css +2 -2
- package/dist/{index-CeH9i6IP.js → index-D2eZ5uVt.js} +5683 -5785
- package/dist/{leaflet-src-D1Cl1V-1.js → leaflet-src-CM7H_PEp.js} +1 -1
- package/dist/{main-DADRUTDs.js → main-D1VXLvop.js} +12531 -13523
- package/dist/{proj-DxGbobp7.js → proj-DQrI7bbu.js} +302 -282
- package/dist/{tilecoord-DvX7WWiA.js → tilecoord-xLae1hR5.js} +106 -106
- package/dist/{vue3-xml-viewer.common-BzsQ7xw8.js → vue3-xml-viewer.common-D8NyU_-4.js} +1 -1
- package/package.json +25 -25
|
@@ -58,7 +58,7 @@ const Vn = {
|
|
|
58
58
|
TOUCHMOVE: "touchmove",
|
|
59
59
|
WHEEL: "wheel"
|
|
60
60
|
};
|
|
61
|
-
class
|
|
61
|
+
class kn {
|
|
62
62
|
constructor() {
|
|
63
63
|
this.disposed = !1;
|
|
64
64
|
}
|
|
@@ -75,7 +75,7 @@ class jn {
|
|
|
75
75
|
disposeInternal() {
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function zt(n, t, s) {
|
|
79
79
|
let r, e;
|
|
80
80
|
s = s || In;
|
|
81
81
|
let i = 0, o = n.length, a = !1;
|
|
@@ -86,10 +86,10 @@ function jt(n, t, s) {
|
|
|
86
86
|
function In(n, t) {
|
|
87
87
|
return n > t ? 1 : n < t ? -1 : 0;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Jt(n, t) {
|
|
90
90
|
return n < t ? 1 : n > t ? -1 : 0;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Qt(n, t, s) {
|
|
93
93
|
if (n[0] <= t)
|
|
94
94
|
return 0;
|
|
95
95
|
const r = n.length;
|
|
@@ -125,18 +125,18 @@ function zt(n, t, s) {
|
|
|
125
125
|
}
|
|
126
126
|
return r - 1;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Zt(n, t, s) {
|
|
129
129
|
for (; t < s; ) {
|
|
130
130
|
const r = n[t];
|
|
131
131
|
n[t] = n[s], n[s] = r, ++t, --s;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function xt(n, t) {
|
|
135
135
|
const s = Array.isArray(t) ? t : [t], r = s.length;
|
|
136
136
|
for (let e = 0; e < r; e++)
|
|
137
137
|
n[n.length] = s[e];
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function zn(n, t) {
|
|
140
140
|
const s = n.length;
|
|
141
141
|
if (s !== t.length)
|
|
142
142
|
return !1;
|
|
@@ -145,7 +145,7 @@ function kn(n, t) {
|
|
|
145
145
|
return !1;
|
|
146
146
|
return !0;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function ns(n, t, s) {
|
|
149
149
|
const r = t || In;
|
|
150
150
|
return n.every(function(e, i) {
|
|
151
151
|
if (i === 0)
|
|
@@ -154,22 +154,22 @@ function Zt(n, t, s) {
|
|
|
154
154
|
return !(o > 0 || o === 0);
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function ts() {
|
|
158
158
|
return !0;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function ss() {
|
|
161
161
|
return !1;
|
|
162
162
|
}
|
|
163
163
|
function gn() {
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function rs(n) {
|
|
166
166
|
let t, s, r;
|
|
167
167
|
return function() {
|
|
168
168
|
const e = Array.prototype.slice.call(arguments);
|
|
169
|
-
return (!s || this !== r || !
|
|
169
|
+
return (!s || this !== r || !zn(e, s)) && (r = this, s = e, t = n.apply(this, arguments)), t;
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function es(n) {
|
|
173
173
|
function t() {
|
|
174
174
|
let s;
|
|
175
175
|
try {
|
|
@@ -204,7 +204,7 @@ class On {
|
|
|
204
204
|
this.propagationStopped = !0;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
class
|
|
207
|
+
class Jn extends kn {
|
|
208
208
|
/**
|
|
209
209
|
* @param {*} [target] Default event target for dispatched events.
|
|
210
210
|
*/
|
|
@@ -297,7 +297,7 @@ class zn extends jn {
|
|
|
297
297
|
e !== -1 && (this.pendingRemovals_ && t in this.pendingRemovals_ ? (r[e] = gn, ++this.pendingRemovals_[t]) : (r.splice(e, 1), r.length === 0 && delete this.listeners_[t]));
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
class q extends
|
|
300
|
+
class q extends Jn {
|
|
301
301
|
constructor() {
|
|
302
302
|
super(), this.on = /** @type {ObservableOnSignature<import("./events.js").EventsKey>} */
|
|
303
303
|
this.onInternal, this.once = /** @type {ObservableOnSignature<import("./events.js").EventsKey>} */
|
|
@@ -374,7 +374,7 @@ class q extends zn {
|
|
|
374
374
|
s.ol_key
|
|
375
375
|
);
|
|
376
376
|
if (r)
|
|
377
|
-
|
|
377
|
+
Qn(r);
|
|
378
378
|
else if (Array.isArray(t))
|
|
379
379
|
for (let e = 0, i = t.length; e < i; ++e)
|
|
380
380
|
this.removeEventListener(t[e], s);
|
|
@@ -385,7 +385,7 @@ class q extends zn {
|
|
|
385
385
|
q.prototype.on;
|
|
386
386
|
q.prototype.once;
|
|
387
387
|
q.prototype.un;
|
|
388
|
-
function
|
|
388
|
+
function Qn(n) {
|
|
389
389
|
if (Array.isArray(n))
|
|
390
390
|
for (let t = 0, s = n.length; t < s; ++t)
|
|
391
391
|
hn(n[t]);
|
|
@@ -395,12 +395,12 @@ function Jn(n) {
|
|
|
395
395
|
n
|
|
396
396
|
);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function is() {
|
|
399
399
|
throw new Error("Unimplemented abstract method.");
|
|
400
400
|
}
|
|
401
|
-
let
|
|
402
|
-
function
|
|
403
|
-
return n.ol_uid || (n.ol_uid = String(++
|
|
401
|
+
let Zn = 0;
|
|
402
|
+
function xn(n) {
|
|
403
|
+
return n.ol_uid || (n.ol_uid = String(++Zn));
|
|
404
404
|
}
|
|
405
405
|
class dn extends On {
|
|
406
406
|
/**
|
|
@@ -412,12 +412,12 @@ class dn extends On {
|
|
|
412
412
|
super(t), this.key = s, this.oldValue = r;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
class
|
|
415
|
+
class os extends q {
|
|
416
416
|
/**
|
|
417
417
|
* @param {NoInfer<Properties>} [values] An object with key-value pairs.
|
|
418
418
|
*/
|
|
419
419
|
constructor(t) {
|
|
420
|
-
super(), this.on, this.once, this.un,
|
|
420
|
+
super(), this.on, this.once, this.un, xn(this), this.values_ = null, t !== void 0 && this.setProperties(t);
|
|
421
421
|
}
|
|
422
422
|
/**
|
|
423
423
|
* Gets a value.
|
|
@@ -531,22 +531,22 @@ class es extends q {
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function nt(n, t, s) {
|
|
535
535
|
return Math.min(Math.max(n, t), s);
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function as(n, t, s, r, e, i) {
|
|
538
538
|
const o = e - s, a = i - r;
|
|
539
539
|
if (o !== 0 || a !== 0) {
|
|
540
540
|
const c = ((n - s) * o + (t - r) * a) / (o * o + a * a);
|
|
541
541
|
c > 1 ? (s = e, r = i) : c > 0 && (s += o * c, r += a * c);
|
|
542
542
|
}
|
|
543
|
-
return
|
|
543
|
+
return tt(n, t, s, r);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function tt(n, t, s, r) {
|
|
546
546
|
const e = s - n, i = r - t;
|
|
547
547
|
return e * e + i * i;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function cs(n) {
|
|
550
550
|
const t = n.length;
|
|
551
551
|
for (let r = 0; r < t; r++) {
|
|
552
552
|
let e = r, i = Math.abs(n[r][r]);
|
|
@@ -572,30 +572,30 @@ function os(n) {
|
|
|
572
572
|
}
|
|
573
573
|
return s;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function D(n) {
|
|
576
576
|
return n * 180 / Math.PI;
|
|
577
577
|
}
|
|
578
578
|
function M(n) {
|
|
579
579
|
return n * Math.PI / 180;
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function ls(n, t) {
|
|
582
582
|
const s = n % t;
|
|
583
583
|
return s * t < 0 ? s + t : s;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function fs(n, t, s) {
|
|
586
586
|
return n + s * (t - n);
|
|
587
587
|
}
|
|
588
588
|
function nn(n, t) {
|
|
589
589
|
const s = Math.pow(10, t);
|
|
590
590
|
return Math.round(n * s) / s;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function us(n, t) {
|
|
593
593
|
return Math.round(nn(n, t));
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function hs(n, t) {
|
|
596
596
|
return Math.floor(nn(n, t));
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function gs(n, t) {
|
|
599
599
|
return Math.ceil(nn(n, t));
|
|
600
600
|
}
|
|
601
601
|
function z(n, t, s) {
|
|
@@ -612,17 +612,17 @@ const E = {
|
|
|
612
612
|
BELOW: 8,
|
|
613
613
|
LEFT: 16
|
|
614
614
|
};
|
|
615
|
-
function
|
|
615
|
+
function ds(n) {
|
|
616
616
|
const t = Gn();
|
|
617
617
|
for (let s = 0, r = n.length; s < r; ++s)
|
|
618
|
-
|
|
618
|
+
it(t, n[s]);
|
|
619
619
|
return t;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function st(n, t, s) {
|
|
622
622
|
const r = Math.min.apply(null, n), e = Math.min.apply(null, t), i = Math.max.apply(null, n), o = Math.max.apply(null, t);
|
|
623
623
|
return B(r, e, i, o, s);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Es(n, t, s) {
|
|
626
626
|
return s ? (s[0] = n[0] - t, s[1] = n[1] - t, s[2] = n[2] + t, s[3] = n[3] + t, s) : [
|
|
627
627
|
n[0] - t,
|
|
628
628
|
n[1] - t,
|
|
@@ -630,20 +630,20 @@ function gs(n, t, s) {
|
|
|
630
630
|
n[3] + t
|
|
631
631
|
];
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function Ms(n, t) {
|
|
634
634
|
return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n.slice();
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function ms(n, t, s) {
|
|
637
637
|
let r, e;
|
|
638
638
|
return t < n[0] ? r = n[0] - t : n[2] < t ? r = t - n[2] : r = 0, s < n[1] ? e = n[1] - s : n[3] < s ? e = s - n[3] : e = 0, r * r + e * e;
|
|
639
639
|
}
|
|
640
|
-
function Ms(n, t) {
|
|
641
|
-
return st(n, t[0], t[1]);
|
|
642
|
-
}
|
|
643
640
|
function Ps(n, t) {
|
|
641
|
+
return et(n, t[0], t[1]);
|
|
642
|
+
}
|
|
643
|
+
function rt(n, t) {
|
|
644
644
|
return n[0] <= t[0] && t[2] <= n[2] && n[1] <= t[1] && t[3] <= n[3];
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function et(n, t, s) {
|
|
647
647
|
return n[0] <= t && t <= n[2] && n[1] <= s && s <= n[3];
|
|
648
648
|
}
|
|
649
649
|
function En(n, t) {
|
|
@@ -664,34 +664,34 @@ function _s(n, t) {
|
|
|
664
664
|
const s = n[0], r = n[1];
|
|
665
665
|
return B(s, r, s, r, t);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function ws(n, t, s, r, e) {
|
|
668
668
|
const i = tn(e);
|
|
669
|
-
return
|
|
669
|
+
return ot(i, n, t, s, r);
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function Ts(n, t) {
|
|
672
672
|
return n[0] == t[0] && n[2] == t[2] && n[1] == t[1] && n[3] == t[3];
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function ys(n, t) {
|
|
675
675
|
return t[0] < n[0] && (n[0] = t[0]), t[2] > n[2] && (n[2] = t[2]), t[1] < n[1] && (n[1] = t[1]), t[3] > n[3] && (n[3] = t[3]), n;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function it(n, t) {
|
|
678
678
|
t[0] < n[0] && (n[0] = t[0]), t[0] > n[2] && (n[2] = t[0]), t[1] < n[1] && (n[1] = t[1]), t[1] > n[3] && (n[3] = t[1]);
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function ot(n, t, s, r, e) {
|
|
681
681
|
for (; s < r; s += e)
|
|
682
|
-
|
|
682
|
+
at(n, t[s], t[s + 1]);
|
|
683
683
|
return n;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function at(n, t, s) {
|
|
686
686
|
n[0] = Math.min(n[0], t), n[1] = Math.min(n[1], s), n[2] = Math.max(n[2], t), n[3] = Math.max(n[3], s);
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function vs(n, t) {
|
|
689
689
|
let s;
|
|
690
690
|
return s = t(Ln(n)), s || (s = t(An(n)), s) || (s = t(pn(n)), s) || (s = t(Un(n)), s) ? s : !1;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function Rs(n) {
|
|
693
693
|
let t = 0;
|
|
694
|
-
return
|
|
694
|
+
return Nn(n) || (t = G(n) * ft(n)), t;
|
|
695
695
|
}
|
|
696
696
|
function Ln(n) {
|
|
697
697
|
return [n[0], n[1]];
|
|
@@ -699,10 +699,10 @@ function Ln(n) {
|
|
|
699
699
|
function An(n) {
|
|
700
700
|
return [n[2], n[1]];
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function ct(n) {
|
|
703
703
|
return [(n[0] + n[2]) / 2, (n[1] + n[3]) / 2];
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function Ss(n, t) {
|
|
706
706
|
let s;
|
|
707
707
|
if (t === "bottom-left")
|
|
708
708
|
s = Ln(n);
|
|
@@ -716,8 +716,8 @@ function Rs(n, t) {
|
|
|
716
716
|
throw new Error("Invalid corner");
|
|
717
717
|
return s;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
720
|
-
const [i, o, a, c, l, f, h, u] =
|
|
719
|
+
function Cs(n, t, s, r, e) {
|
|
720
|
+
const [i, o, a, c, l, f, h, u] = lt(
|
|
721
721
|
n,
|
|
722
722
|
t,
|
|
723
723
|
s,
|
|
@@ -731,7 +731,7 @@ function Ss(n, t, s, r, e) {
|
|
|
731
731
|
e
|
|
732
732
|
);
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function lt(n, t, s, r) {
|
|
735
735
|
const e = t * r[0] / 2, i = t * r[1] / 2, o = Math.cos(s), a = Math.sin(s), c = e * o, l = e * a, f = i * o, h = i * a, u = n[0], g = n[1];
|
|
736
736
|
return [
|
|
737
737
|
u - c + h,
|
|
@@ -746,12 +746,20 @@ function at(n, t, s, r) {
|
|
|
746
746
|
g - l - f
|
|
747
747
|
];
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function ft(n) {
|
|
750
750
|
return n[3] - n[1];
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function Is(n, t, s) {
|
|
753
753
|
const r = s || Gn();
|
|
754
|
-
return
|
|
754
|
+
return bn(n, t) ? (n[0] > t[0] ? r[0] = n[0] : r[0] = t[0], n[1] > t[1] ? r[1] = n[1] : r[1] = t[1], n[2] < t[2] ? r[2] = n[2] : r[2] = t[2], n[3] < t[3] ? r[3] = n[3] : r[3] = t[3]) : tn(r), r;
|
|
755
|
+
}
|
|
756
|
+
function ut(n, t) {
|
|
757
|
+
if (!bn(n, t))
|
|
758
|
+
return [n.slice()];
|
|
759
|
+
if (rt(t, n))
|
|
760
|
+
return [];
|
|
761
|
+
const [s, r, e, i] = n, o = Math.max(s, t[0]), a = Math.max(r, t[1]), c = Math.min(e, t[2]), l = Math.min(i, t[3]), f = [];
|
|
762
|
+
return o > s && f.push([s, r, o, i]), c < e && f.push([c, r, e, i]), a > r && f.push([o, r, c, a]), l < i && f.push([o, l, c, i]), f;
|
|
755
763
|
}
|
|
756
764
|
function Un(n) {
|
|
757
765
|
return [n[0], n[3]];
|
|
@@ -762,33 +770,33 @@ function pn(n) {
|
|
|
762
770
|
function G(n) {
|
|
763
771
|
return n[2] - n[0];
|
|
764
772
|
}
|
|
765
|
-
function
|
|
773
|
+
function bn(n, t) {
|
|
766
774
|
return n[0] <= t[2] && n[2] >= t[0] && n[1] <= t[3] && n[3] >= t[1];
|
|
767
775
|
}
|
|
768
|
-
function
|
|
776
|
+
function Nn(n) {
|
|
769
777
|
return n[2] < n[0] || n[3] < n[1];
|
|
770
778
|
}
|
|
771
|
-
function
|
|
779
|
+
function Os(n, t) {
|
|
772
780
|
return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n;
|
|
773
781
|
}
|
|
774
|
-
function
|
|
782
|
+
function Gs(n, t) {
|
|
775
783
|
const s = (n[2] - n[0]) / 2 * (t - 1), r = (n[3] - n[1]) / 2 * (t - 1);
|
|
776
784
|
n[0] -= s, n[2] += s, n[1] -= r, n[3] += r;
|
|
777
785
|
}
|
|
778
|
-
function
|
|
786
|
+
function Ls(n, t, s) {
|
|
779
787
|
let r = !1;
|
|
780
788
|
const e = En(n, t), i = En(n, s);
|
|
781
789
|
if (e === E.INTERSECTING || i === E.INTERSECTING)
|
|
782
790
|
r = !0;
|
|
783
791
|
else {
|
|
784
792
|
const o = n[0], a = n[1], c = n[2], l = n[3], f = t[0], h = t[1], u = s[0], g = s[1], d = (g - h) / (u - f);
|
|
785
|
-
let
|
|
786
|
-
i & E.ABOVE && !(e & E.ABOVE) && (
|
|
793
|
+
let P, _;
|
|
794
|
+
i & E.ABOVE && !(e & E.ABOVE) && (P = u - (g - l) / d, r = P >= o && P <= c), !r && i & E.RIGHT && !(e & E.RIGHT) && (_ = g - (u - c) * d, r = _ >= a && _ <= l), !r && i & E.BELOW && !(e & E.BELOW) && (P = u - (g - a) / d, r = P >= o && P <= c), !r && i & E.LEFT && !(e & E.LEFT) && (_ = g - (u - o) * d, r = _ >= a && _ <= l);
|
|
787
795
|
}
|
|
788
796
|
return r;
|
|
789
797
|
}
|
|
790
|
-
function
|
|
791
|
-
if (
|
|
798
|
+
function ht(n, t, s, r) {
|
|
799
|
+
if (Nn(n))
|
|
792
800
|
return tn(s);
|
|
793
801
|
let e = [];
|
|
794
802
|
if (r > 1) {
|
|
@@ -819,10 +827,10 @@ function ft(n, t, s, r) {
|
|
|
819
827
|
const i = [], o = [];
|
|
820
828
|
for (let a = 0, c = e.length; a < c; a += 2)
|
|
821
829
|
i.push(e[a]), o.push(e[a + 1]);
|
|
822
|
-
return
|
|
830
|
+
return st(i, o, s);
|
|
823
831
|
}
|
|
824
|
-
function
|
|
825
|
-
const s = t.getExtent(), r =
|
|
832
|
+
function gt(n, t) {
|
|
833
|
+
const s = t.getExtent(), r = ct(n);
|
|
826
834
|
if (t.canWrapX() && (r[0] < s[0] || r[0] >= s[2])) {
|
|
827
835
|
const e = G(s), o = Math.floor(
|
|
828
836
|
(r[0] - s[0]) / e
|
|
@@ -831,12 +839,12 @@ function ut(n, t) {
|
|
|
831
839
|
}
|
|
832
840
|
return n;
|
|
833
841
|
}
|
|
834
|
-
function
|
|
842
|
+
function As(n, t, s) {
|
|
835
843
|
if (t.canWrapX()) {
|
|
836
844
|
const r = t.getExtent();
|
|
837
845
|
if (!isFinite(n[0]) || !isFinite(n[2]))
|
|
838
846
|
return [[r[0], n[1], r[2], n[3]]];
|
|
839
|
-
|
|
847
|
+
gt(n, t);
|
|
840
848
|
const e = G(r);
|
|
841
849
|
if (G(n) > e && !s)
|
|
842
850
|
return [[r[0], n[1], r[2], n[3]]];
|
|
@@ -853,15 +861,25 @@ function Ls(n, t, s) {
|
|
|
853
861
|
}
|
|
854
862
|
return [n];
|
|
855
863
|
}
|
|
856
|
-
function
|
|
864
|
+
function Us(n, t) {
|
|
865
|
+
let s = [n];
|
|
866
|
+
for (let r = 0, e = t.length; r < e && s.length > 0; ++r) {
|
|
867
|
+
const i = [];
|
|
868
|
+
for (let o = 0, a = s.length; o < a; ++o)
|
|
869
|
+
i.push(...ut(s[o], t[r]));
|
|
870
|
+
s = i;
|
|
871
|
+
}
|
|
872
|
+
return s;
|
|
873
|
+
}
|
|
874
|
+
function ps(n, t) {
|
|
857
875
|
return n[0] += +t[0], n[1] += +t[1], n;
|
|
858
876
|
}
|
|
859
|
-
function
|
|
877
|
+
function dt(n, t) {
|
|
860
878
|
const s = n[0], r = n[1], e = t[0], i = t[1], o = e[0], a = e[1], c = i[0], l = i[1], f = c - o, h = l - a, u = f === 0 && h === 0 ? 0 : (f * (s - o) + h * (r - a)) / (f * f + h * h || 0);
|
|
861
879
|
let g, d;
|
|
862
880
|
return u <= 0 ? (g = o, d = a) : u >= 1 ? (g = c, d = l) : (g = o + u * f, d = a + u * h), [g, d];
|
|
863
881
|
}
|
|
864
|
-
function
|
|
882
|
+
function Et(n, t) {
|
|
865
883
|
let s = !0;
|
|
866
884
|
for (let r = n.length - 1; r >= 0; --r)
|
|
867
885
|
if (n[r] != t[r]) {
|
|
@@ -870,45 +888,45 @@ function gt(n, t) {
|
|
|
870
888
|
}
|
|
871
889
|
return s;
|
|
872
890
|
}
|
|
873
|
-
function
|
|
891
|
+
function bs(n, t) {
|
|
874
892
|
const s = Math.cos(t), r = Math.sin(t), e = n[0] * s - n[1] * r, i = n[1] * s + n[0] * r;
|
|
875
893
|
return n[0] = e, n[1] = i, n;
|
|
876
894
|
}
|
|
877
|
-
function
|
|
895
|
+
function Ns(n, t) {
|
|
878
896
|
return n[0] *= t, n[1] *= t, n;
|
|
879
897
|
}
|
|
880
|
-
function
|
|
898
|
+
function Fn(n, t) {
|
|
881
899
|
const s = n[0] - t[0], r = n[1] - t[1];
|
|
882
900
|
return s * s + r * r;
|
|
883
901
|
}
|
|
884
|
-
function
|
|
885
|
-
return Math.sqrt(
|
|
902
|
+
function Fs(n, t) {
|
|
903
|
+
return Math.sqrt(Fn(n, t));
|
|
886
904
|
}
|
|
887
|
-
function
|
|
888
|
-
return
|
|
905
|
+
function Xs(n, t) {
|
|
906
|
+
return Fn(n, dt(n, t));
|
|
889
907
|
}
|
|
890
|
-
function
|
|
908
|
+
function Ds(n, t) {
|
|
891
909
|
if (t.canWrapX()) {
|
|
892
|
-
const s = G(t.getExtent()), r =
|
|
910
|
+
const s = G(t.getExtent()), r = Mt(n, t, s);
|
|
893
911
|
r && (n[0] -= r * s);
|
|
894
912
|
}
|
|
895
913
|
return n;
|
|
896
914
|
}
|
|
897
|
-
function
|
|
915
|
+
function Mt(n, t, s) {
|
|
898
916
|
const r = t.getExtent();
|
|
899
917
|
let e = 0;
|
|
900
918
|
return t.canWrapX() && (n[0] < r[0] || n[0] > r[2]) && (s = s || G(r), e = Math.floor(
|
|
901
919
|
(n[0] - r[0]) / s
|
|
902
920
|
)), e;
|
|
903
921
|
}
|
|
904
|
-
function
|
|
922
|
+
function Ws(n, t, s) {
|
|
905
923
|
const r = Math.sqrt(
|
|
906
924
|
(t[0] - n[0]) * (t[0] - n[0]) + (t[1] - n[1]) * (t[1] - n[1])
|
|
907
925
|
), e = [(t[0] - n[0]) / r, (t[1] - n[1]) / r], i = [-e[1], e[0]], o = Math.sqrt(
|
|
908
926
|
(s[0] - n[0]) * (s[0] - n[0]) + (s[1] - n[1]) * (s[1] - n[1])
|
|
909
927
|
), a = [(s[0] - n[0]) / o, (s[1] - n[1]) / o];
|
|
910
928
|
let c = r === 0 || o === 0 ? 0 : Math.acos(
|
|
911
|
-
|
|
929
|
+
nt(a[0] * e[0] + a[1] * e[1], -1, 1)
|
|
912
930
|
);
|
|
913
931
|
return c = Math.max(c, 1e-5), a[0] * i[0] + a[1] * i[1] > 0 ? c : Math.PI * 2 - c;
|
|
914
932
|
}
|
|
@@ -928,7 +946,7 @@ function F(n, t) {
|
|
|
928
946
|
}
|
|
929
947
|
return s * t * t / 2;
|
|
930
948
|
}
|
|
931
|
-
function
|
|
949
|
+
function mt(n, t) {
|
|
932
950
|
t = t || {};
|
|
933
951
|
const s = t.radius || sn, r = t.projection || "EPSG:3857", e = n.getType();
|
|
934
952
|
e !== "GeometryCollection" && (n = n.clone().transform(r, "EPSG:4326"));
|
|
@@ -959,7 +977,7 @@ function Et(n, t) {
|
|
|
959
977
|
n.getGeometries()
|
|
960
978
|
);
|
|
961
979
|
for (c = 0, l = u.length; c < l; ++c)
|
|
962
|
-
i +=
|
|
980
|
+
i += mt(u[c], t);
|
|
963
981
|
break;
|
|
964
982
|
}
|
|
965
983
|
default:
|
|
@@ -967,7 +985,7 @@ function Et(n, t) {
|
|
|
967
985
|
}
|
|
968
986
|
return i;
|
|
969
987
|
}
|
|
970
|
-
function
|
|
988
|
+
function $s(n, t, s, r) {
|
|
971
989
|
r = r || sn;
|
|
972
990
|
const e = M(n[1]), i = M(n[0]), o = t / r, a = Math.asin(
|
|
973
991
|
Math.sin(e) * Math.cos(o) + Math.cos(e) * Math.sin(o) * Math.cos(s)
|
|
@@ -975,9 +993,9 @@ function Ws(n, t, s, r) {
|
|
|
975
993
|
Math.sin(s) * Math.sin(o) * Math.cos(e),
|
|
976
994
|
Math.cos(o) - Math.sin(e) * Math.sin(a)
|
|
977
995
|
);
|
|
978
|
-
return [
|
|
996
|
+
return [D(c), D(a)];
|
|
979
997
|
}
|
|
980
|
-
function
|
|
998
|
+
function Pt(...n) {
|
|
981
999
|
console.warn(...n);
|
|
982
1000
|
}
|
|
983
1001
|
const J = {
|
|
@@ -1121,7 +1139,7 @@ class rn {
|
|
|
1121
1139
|
return this.getPointResolutionFunc_;
|
|
1122
1140
|
}
|
|
1123
1141
|
}
|
|
1124
|
-
const p = 6378137, I = Math.PI * p,
|
|
1142
|
+
const p = 6378137, I = Math.PI * p, _t = [-I, -I, I, I], wt = [-180, -85, 180, 85], X = p * Math.log(Math.tan(Math.PI / 2));
|
|
1125
1143
|
class C extends rn {
|
|
1126
1144
|
/**
|
|
1127
1145
|
* @param {string} code Code.
|
|
@@ -1130,16 +1148,16 @@ class C extends rn {
|
|
|
1130
1148
|
super({
|
|
1131
1149
|
code: t,
|
|
1132
1150
|
units: "m",
|
|
1133
|
-
extent:
|
|
1151
|
+
extent: _t,
|
|
1134
1152
|
global: !0,
|
|
1135
|
-
worldExtent:
|
|
1153
|
+
worldExtent: wt,
|
|
1136
1154
|
getPointResolution: function(s, r) {
|
|
1137
1155
|
return s / Math.cosh(r[1] / p);
|
|
1138
1156
|
}
|
|
1139
1157
|
});
|
|
1140
1158
|
}
|
|
1141
1159
|
}
|
|
1142
|
-
const
|
|
1160
|
+
const mn = [
|
|
1143
1161
|
new C("EPSG:3857"),
|
|
1144
1162
|
new C("EPSG:102100"),
|
|
1145
1163
|
new C("EPSG:102113"),
|
|
@@ -1147,7 +1165,7 @@ const Pn = [
|
|
|
1147
1165
|
new C("http://www.opengis.net/def/crs/EPSG/0/3857"),
|
|
1148
1166
|
new C("http://www.opengis.net/gml/srs/epsg.xml#3857")
|
|
1149
1167
|
];
|
|
1150
|
-
function
|
|
1168
|
+
function Tt(n, t, s, r) {
|
|
1151
1169
|
const e = n.length;
|
|
1152
1170
|
s = s > 1 ? s : 2, r = r ?? s, t === void 0 && (s > 2 ? t = n.slice() : t = new Array(e));
|
|
1153
1171
|
for (let i = 0; i < e; i += r) {
|
|
@@ -1157,14 +1175,14 @@ function mt(n, t, s, r) {
|
|
|
1157
1175
|
}
|
|
1158
1176
|
return t;
|
|
1159
1177
|
}
|
|
1160
|
-
function
|
|
1178
|
+
function yt(n, t, s, r) {
|
|
1161
1179
|
const e = n.length;
|
|
1162
1180
|
s = s > 1 ? s : 2, r = r ?? s, t === void 0 && (s > 2 ? t = n.slice() : t = new Array(e));
|
|
1163
1181
|
for (let i = 0; i < e; i += r)
|
|
1164
1182
|
t[i] = 180 * n[i] / I, t[i + 1] = 360 * Math.atan(Math.exp(n[i + 1] / p)) / Math.PI - 90;
|
|
1165
1183
|
return t;
|
|
1166
1184
|
}
|
|
1167
|
-
const
|
|
1185
|
+
const vt = 6378137, Pn = [-180, -90, 180, 90], Rt = Math.PI * vt / 180;
|
|
1168
1186
|
class v extends rn {
|
|
1169
1187
|
/**
|
|
1170
1188
|
* @param {string} code Code.
|
|
@@ -1174,15 +1192,15 @@ class v extends rn {
|
|
|
1174
1192
|
super({
|
|
1175
1193
|
code: t,
|
|
1176
1194
|
units: "degrees",
|
|
1177
|
-
extent:
|
|
1195
|
+
extent: Pn,
|
|
1178
1196
|
axisOrientation: s,
|
|
1179
1197
|
global: !0,
|
|
1180
|
-
metersPerUnit:
|
|
1181
|
-
worldExtent:
|
|
1198
|
+
metersPerUnit: Rt,
|
|
1199
|
+
worldExtent: Pn
|
|
1182
1200
|
});
|
|
1183
1201
|
}
|
|
1184
1202
|
}
|
|
1185
|
-
const
|
|
1203
|
+
const _n = [
|
|
1186
1204
|
new v("CRS:84"),
|
|
1187
1205
|
new v("EPSG:4326", "neu"),
|
|
1188
1206
|
new v("urn:ogc:def:crs:OGC:1.3:CRS84"),
|
|
@@ -1192,10 +1210,10 @@ const mn = [
|
|
|
1192
1210
|
new v("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
|
|
1193
1211
|
];
|
|
1194
1212
|
let Q = {};
|
|
1195
|
-
function
|
|
1213
|
+
function St(n) {
|
|
1196
1214
|
return Q[n] || Q[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
|
|
1197
1215
|
}
|
|
1198
|
-
function
|
|
1216
|
+
function Ct(n, t) {
|
|
1199
1217
|
Q[n] = t;
|
|
1200
1218
|
}
|
|
1201
1219
|
let O = {};
|
|
@@ -1203,37 +1221,37 @@ function S(n, t, s) {
|
|
|
1203
1221
|
const r = n.getCode(), e = t.getCode();
|
|
1204
1222
|
r in O || (O[r] = {}), O[r][e] = s;
|
|
1205
1223
|
}
|
|
1206
|
-
function
|
|
1224
|
+
function K(n, t) {
|
|
1207
1225
|
return n in O && t in O[n] ? O[n][t] : null;
|
|
1208
1226
|
}
|
|
1209
|
-
const
|
|
1210
|
-
function
|
|
1211
|
-
const r = n - 5e5, o = (s.north ? t : t - 1e7) /
|
|
1212
|
-
let
|
|
1213
|
-
return
|
|
1214
|
-
|
|
1227
|
+
const W = 0.9996, m = 669438e-8, Y = m * m, j = Y * m, R = m / (1 - m), wn = Math.sqrt(1 - m), L = (1 - wn) / (1 + wn), Xn = L * L, en = Xn * L, on = en * L, Dn = on * L, Wn = 1 - m / 4 - 3 * Y / 64 - 5 * j / 256, It = 3 * m / 8 + 3 * Y / 32 + 45 * j / 1024, Ot = 15 * Y / 256 + 45 * j / 1024, Gt = 35 * j / 3072, Lt = 3 / 2 * L - 27 / 32 * en + 269 / 512 * Dn, At = 21 / 16 * Xn - 55 / 32 * on, Ut = 151 / 96 * en - 417 / 128 * Dn, pt = 1097 / 512 * on, $ = 6378137;
|
|
1228
|
+
function bt(n, t, s) {
|
|
1229
|
+
const r = n - 5e5, o = (s.north ? t : t - 1e7) / W / ($ * Wn), a = o + Lt * Math.sin(2 * o) + At * Math.sin(4 * o) + Ut * Math.sin(6 * o) + pt * Math.sin(8 * o), c = Math.sin(a), l = c * c, f = Math.cos(a), h = c / f, u = h * h, g = u * u, d = 1 - m * l, P = Math.sqrt(1 - m * l), _ = $ / P, b = (1 - m) / d, T = R * f ** 2, A = T * T, y = r / (_ * W), N = y * y, U = N * y, ln = U * y, fn = ln * y, Yn = fn * y, jn = a - h / b * (N / 2 - ln / 24 * (5 + 3 * u + 10 * T - 4 * A - 9 * R)) + Yn / 720 * (61 + 90 * u + 298 * T + 45 * g - 252 * R - 3 * A);
|
|
1230
|
+
let H = (y - U / 6 * (1 + 2 * u + T) + fn / 120 * (5 - 2 * T + 28 * u - 3 * A + 8 * R + 24 * g)) / f;
|
|
1231
|
+
return H = z(
|
|
1232
|
+
H + M($n(s.number)),
|
|
1215
1233
|
-Math.PI,
|
|
1216
1234
|
Math.PI
|
|
1217
|
-
), [
|
|
1235
|
+
), [D(H), D(jn)];
|
|
1218
1236
|
}
|
|
1219
|
-
const Tn = -80, yn = 84,
|
|
1220
|
-
function
|
|
1221
|
-
n = z(n,
|
|
1222
|
-
const r = M(t), e = Math.sin(r), i = Math.cos(r), o = e / i, a = o * o, c = a * a, l = M(n), f =
|
|
1223
|
-
let U =
|
|
1237
|
+
const Tn = -80, yn = 84, Nt = -180, Ft = 180;
|
|
1238
|
+
function Xt(n, t, s) {
|
|
1239
|
+
n = z(n, Nt, Ft), t < Tn ? t = Tn : t > yn && (t = yn);
|
|
1240
|
+
const r = M(t), e = Math.sin(r), i = Math.cos(r), o = e / i, a = o * o, c = a * a, l = M(n), f = $n(s.number), h = M(f), u = $ / Math.sqrt(1 - m * e ** 2), g = R * i ** 2, d = i * z(l - h, -Math.PI, Math.PI), P = d * d, _ = P * d, b = _ * d, T = b * d, A = T * d, y = $ * (Wn * r - It * Math.sin(2 * r) + Ot * Math.sin(4 * r) - Gt * Math.sin(6 * r)), N = W * u * (d + _ / 6 * (1 - a + g) + T / 120 * (5 - 18 * a + c + 72 * g - 58 * R)) + 5e5;
|
|
1241
|
+
let U = W * (y + u * o * (P / 2 + b / 24 * (5 - a + 9 * g + 4 * g ** 2) + A / 720 * (61 - 58 * a + c + 600 * g - 330 * R)));
|
|
1224
1242
|
return s.north || (U += 1e7), [N, U];
|
|
1225
1243
|
}
|
|
1226
|
-
function
|
|
1244
|
+
function $n(n) {
|
|
1227
1245
|
return (n - 1) * 6 - 180 + 3;
|
|
1228
1246
|
}
|
|
1229
|
-
const
|
|
1247
|
+
const Dt = [
|
|
1230
1248
|
/^EPSG:(\d+)$/,
|
|
1231
1249
|
/^urn:ogc:def:crs:EPSG::(\d+)$/,
|
|
1232
1250
|
/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
|
|
1233
1251
|
];
|
|
1234
|
-
function
|
|
1252
|
+
function qn(n) {
|
|
1235
1253
|
let t = 0;
|
|
1236
|
-
for (const e of
|
|
1254
|
+
for (const e of Dt) {
|
|
1237
1255
|
const i = n.match(e);
|
|
1238
1256
|
if (i) {
|
|
1239
1257
|
t = parseInt(i[1]);
|
|
@@ -1256,19 +1274,19 @@ function vn(n, t) {
|
|
|
1256
1274
|
return r;
|
|
1257
1275
|
};
|
|
1258
1276
|
}
|
|
1259
|
-
function Xt(n) {
|
|
1260
|
-
return $n(n) ? new rn({ code: n, units: "m" }) : null;
|
|
1261
|
-
}
|
|
1262
1277
|
function Wt(n) {
|
|
1263
|
-
|
|
1278
|
+
return qn(n) ? new rn({ code: n, units: "m" }) : null;
|
|
1279
|
+
}
|
|
1280
|
+
function $t(n) {
|
|
1281
|
+
const t = qn(n.getCode());
|
|
1264
1282
|
return t ? {
|
|
1265
|
-
forward: vn(
|
|
1266
|
-
inverse: vn(
|
|
1283
|
+
forward: vn(Xt, t),
|
|
1284
|
+
inverse: vn(bt, t)
|
|
1267
1285
|
} : null;
|
|
1268
1286
|
}
|
|
1269
|
-
const
|
|
1287
|
+
const qt = [$t], Bt = [Wt];
|
|
1270
1288
|
let Z = !0;
|
|
1271
|
-
function
|
|
1289
|
+
function Yt(n) {
|
|
1272
1290
|
Z = !1;
|
|
1273
1291
|
}
|
|
1274
1292
|
function an(n, t) {
|
|
@@ -1280,7 +1298,7 @@ function an(n, t) {
|
|
|
1280
1298
|
t = n.slice();
|
|
1281
1299
|
return t;
|
|
1282
1300
|
}
|
|
1283
|
-
function
|
|
1301
|
+
function qs(n, t) {
|
|
1284
1302
|
if (t !== void 0 && n !== t) {
|
|
1285
1303
|
for (let s = 0, r = n.length; s < r; ++s)
|
|
1286
1304
|
t[s] = n[s];
|
|
@@ -1289,25 +1307,25 @@ function Ds(n, t) {
|
|
|
1289
1307
|
return n;
|
|
1290
1308
|
}
|
|
1291
1309
|
function x(n) {
|
|
1292
|
-
|
|
1310
|
+
Ct(n.getCode(), n), S(n, n, an);
|
|
1293
1311
|
}
|
|
1294
|
-
function
|
|
1312
|
+
function jt(n) {
|
|
1295
1313
|
n.forEach(x);
|
|
1296
1314
|
}
|
|
1297
1315
|
function w(n) {
|
|
1298
1316
|
if (typeof n != "string")
|
|
1299
1317
|
return n;
|
|
1300
|
-
const t =
|
|
1318
|
+
const t = St(n);
|
|
1301
1319
|
if (t)
|
|
1302
1320
|
return t;
|
|
1303
|
-
for (const s of
|
|
1321
|
+
for (const s of Bt) {
|
|
1304
1322
|
const r = s(n);
|
|
1305
1323
|
if (r)
|
|
1306
1324
|
return r;
|
|
1307
1325
|
}
|
|
1308
1326
|
return null;
|
|
1309
1327
|
}
|
|
1310
|
-
function
|
|
1328
|
+
function Bs(n, t, s, r) {
|
|
1311
1329
|
n = w(n);
|
|
1312
1330
|
let e;
|
|
1313
1331
|
const i = n.getPointResolutionFunc();
|
|
@@ -1349,20 +1367,20 @@ function $s(n, t, s, r) {
|
|
|
1349
1367
|
return e;
|
|
1350
1368
|
}
|
|
1351
1369
|
function Rn(n) {
|
|
1352
|
-
|
|
1370
|
+
jt(n), n.forEach(function(t) {
|
|
1353
1371
|
n.forEach(function(s) {
|
|
1354
1372
|
t !== s && S(t, s, an);
|
|
1355
1373
|
});
|
|
1356
1374
|
});
|
|
1357
1375
|
}
|
|
1358
|
-
function
|
|
1376
|
+
function Ht(n, t, s, r) {
|
|
1359
1377
|
n.forEach(function(e) {
|
|
1360
1378
|
t.forEach(function(i) {
|
|
1361
1379
|
S(e, i, s), S(i, e, r);
|
|
1362
1380
|
});
|
|
1363
1381
|
});
|
|
1364
1382
|
}
|
|
1365
|
-
function
|
|
1383
|
+
function Ys(n, t) {
|
|
1366
1384
|
return n ? typeof n == "string" ? w(n) : (
|
|
1367
1385
|
/** @type {Projection} */
|
|
1368
1386
|
n
|
|
@@ -1389,7 +1407,7 @@ function Sn(n) {
|
|
|
1389
1407
|
})
|
|
1390
1408
|
);
|
|
1391
1409
|
}
|
|
1392
|
-
function
|
|
1410
|
+
function js(n, t, s, r) {
|
|
1393
1411
|
const e = w(n), i = w(t);
|
|
1394
1412
|
S(
|
|
1395
1413
|
e,
|
|
@@ -1401,14 +1419,14 @@ function Bs(n, t, s, r) {
|
|
|
1401
1419
|
Sn(r)
|
|
1402
1420
|
);
|
|
1403
1421
|
}
|
|
1404
|
-
function
|
|
1405
|
-
return
|
|
1422
|
+
function Hs(n, t) {
|
|
1423
|
+
return Yt(), Kt(
|
|
1406
1424
|
n,
|
|
1407
1425
|
"EPSG:4326",
|
|
1408
1426
|
t !== void 0 ? t : "EPSG:3857"
|
|
1409
1427
|
);
|
|
1410
1428
|
}
|
|
1411
|
-
function
|
|
1429
|
+
function Ks(n, t) {
|
|
1412
1430
|
if (n === t)
|
|
1413
1431
|
return !0;
|
|
1414
1432
|
const s = n.getUnits() === t.getUnits();
|
|
@@ -1416,48 +1434,48 @@ function Hs(n, t) {
|
|
|
1416
1434
|
}
|
|
1417
1435
|
function cn(n, t) {
|
|
1418
1436
|
const s = n.getCode(), r = t.getCode();
|
|
1419
|
-
let e =
|
|
1437
|
+
let e = K(s, r);
|
|
1420
1438
|
if (e)
|
|
1421
1439
|
return e;
|
|
1422
1440
|
let i = null, o = null;
|
|
1423
|
-
for (const c of
|
|
1441
|
+
for (const c of qt)
|
|
1424
1442
|
i || (i = c(n)), o || (o = c(t));
|
|
1425
1443
|
if (!i && !o)
|
|
1426
1444
|
return null;
|
|
1427
1445
|
const a = "EPSG:4326";
|
|
1428
1446
|
if (o)
|
|
1429
1447
|
if (i)
|
|
1430
|
-
e =
|
|
1448
|
+
e = V(
|
|
1431
1449
|
i.inverse,
|
|
1432
1450
|
o.forward
|
|
1433
1451
|
);
|
|
1434
1452
|
else {
|
|
1435
|
-
const c =
|
|
1436
|
-
c && (e =
|
|
1453
|
+
const c = K(s, a);
|
|
1454
|
+
c && (e = V(
|
|
1437
1455
|
c,
|
|
1438
1456
|
o.forward
|
|
1439
1457
|
));
|
|
1440
1458
|
}
|
|
1441
1459
|
else {
|
|
1442
|
-
const c =
|
|
1443
|
-
c && (e =
|
|
1460
|
+
const c = K(a, r);
|
|
1461
|
+
c && (e = V(
|
|
1444
1462
|
i.inverse,
|
|
1445
1463
|
c
|
|
1446
1464
|
));
|
|
1447
1465
|
}
|
|
1448
1466
|
return e && (x(n), x(t), S(n, t, e)), e;
|
|
1449
1467
|
}
|
|
1450
|
-
function
|
|
1468
|
+
function V(n, t) {
|
|
1451
1469
|
return function(s, r, e, i) {
|
|
1452
1470
|
return r = n(s, r, e, i), t(r, r, e, i);
|
|
1453
1471
|
};
|
|
1454
1472
|
}
|
|
1455
|
-
function
|
|
1473
|
+
function Bn(n, t) {
|
|
1456
1474
|
const s = w(n), r = w(t);
|
|
1457
1475
|
return cn(s, r);
|
|
1458
1476
|
}
|
|
1459
|
-
function
|
|
1460
|
-
const r =
|
|
1477
|
+
function Kt(n, t, s) {
|
|
1478
|
+
const r = Bn(t, s);
|
|
1461
1479
|
if (!r) {
|
|
1462
1480
|
const e = w(t).getCode(), i = w(s).getCode();
|
|
1463
1481
|
throw new Error(
|
|
@@ -1466,155 +1484,157 @@ function Ht(n, t, s) {
|
|
|
1466
1484
|
}
|
|
1467
1485
|
return r(n, void 0, n.length);
|
|
1468
1486
|
}
|
|
1469
|
-
function
|
|
1470
|
-
const e =
|
|
1471
|
-
return
|
|
1487
|
+
function Vs(n, t, s, r) {
|
|
1488
|
+
const e = Bn(t, s);
|
|
1489
|
+
return ht(n, e, void 0, r);
|
|
1472
1490
|
}
|
|
1473
|
-
let
|
|
1474
|
-
function
|
|
1475
|
-
return
|
|
1491
|
+
let Vt = null;
|
|
1492
|
+
function ks() {
|
|
1493
|
+
return Vt;
|
|
1476
1494
|
}
|
|
1477
|
-
function
|
|
1495
|
+
function zs(n, t) {
|
|
1478
1496
|
return n;
|
|
1479
1497
|
}
|
|
1480
|
-
function
|
|
1481
|
-
return Z && !
|
|
1498
|
+
function Js(n, t) {
|
|
1499
|
+
return Z && !Et(n, [0, 0]) && n[0] >= -180 && n[0] <= 180 && n[1] >= -90 && n[1] <= 90 && (Z = !1, Pt(
|
|
1482
1500
|
"Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates."
|
|
1483
1501
|
)), n;
|
|
1484
1502
|
}
|
|
1485
|
-
function
|
|
1503
|
+
function Qs(n, t) {
|
|
1486
1504
|
return n;
|
|
1487
1505
|
}
|
|
1488
|
-
function
|
|
1506
|
+
function Zs(n, t) {
|
|
1489
1507
|
return n;
|
|
1490
1508
|
}
|
|
1491
|
-
function
|
|
1509
|
+
function xs(n, t) {
|
|
1492
1510
|
return n;
|
|
1493
1511
|
}
|
|
1494
|
-
function
|
|
1495
|
-
Rn(
|
|
1512
|
+
function kt() {
|
|
1513
|
+
Rn(mn), Rn(_n), Ht(
|
|
1514
|
+
_n,
|
|
1496
1515
|
mn,
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
wt
|
|
1516
|
+
Tt,
|
|
1517
|
+
yt
|
|
1500
1518
|
);
|
|
1501
1519
|
}
|
|
1502
|
-
|
|
1520
|
+
kt();
|
|
1503
1521
|
export {
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1522
|
+
Ms as $,
|
|
1523
|
+
rs as A,
|
|
1524
|
+
os as B,
|
|
1525
|
+
Ts as C,
|
|
1508
1526
|
B as D,
|
|
1509
1527
|
Vn as E,
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1528
|
+
As as F,
|
|
1529
|
+
ut as G,
|
|
1530
|
+
On as H,
|
|
1531
|
+
Nn as I,
|
|
1532
|
+
G as J,
|
|
1533
|
+
Qt as K,
|
|
1534
|
+
gs as L,
|
|
1517
1535
|
J as M,
|
|
1518
|
-
|
|
1536
|
+
Cs as N,
|
|
1519
1537
|
Hn as O,
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1538
|
+
us as P,
|
|
1539
|
+
hs as Q,
|
|
1540
|
+
Kt as R,
|
|
1541
|
+
ls as S,
|
|
1542
|
+
ts as T,
|
|
1543
|
+
vs as U,
|
|
1526
1544
|
gn as V,
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1545
|
+
Ps as W,
|
|
1546
|
+
En as X,
|
|
1547
|
+
E as Y,
|
|
1548
|
+
Zt as Z,
|
|
1549
|
+
zn as _,
|
|
1550
|
+
xn as a,
|
|
1551
|
+
Ls as a$,
|
|
1552
|
+
Ws as a0,
|
|
1553
|
+
it as a1,
|
|
1554
|
+
In as a2,
|
|
1555
|
+
Jt as a3,
|
|
1556
|
+
nn as a4,
|
|
1557
|
+
cn as a5,
|
|
1558
|
+
ks as a6,
|
|
1559
|
+
nt as a7,
|
|
1560
|
+
Ds as a8,
|
|
1561
|
+
gt as a9,
|
|
1562
|
+
mt as aA,
|
|
1563
|
+
Mn as aB,
|
|
1564
|
+
An as aC,
|
|
1565
|
+
Gs as aD,
|
|
1566
|
+
un as aE,
|
|
1567
|
+
Jn as aF,
|
|
1568
|
+
Cn as aG,
|
|
1569
|
+
Ns as aH,
|
|
1570
|
+
bs as aI,
|
|
1571
|
+
kn as aJ,
|
|
1572
|
+
Pt as aK,
|
|
1573
|
+
q as aL,
|
|
1574
|
+
pn as aM,
|
|
1575
|
+
Ln as aN,
|
|
1576
|
+
lt as aO,
|
|
1577
|
+
Os as aP,
|
|
1578
|
+
as as aQ,
|
|
1579
|
+
$s as aR,
|
|
1580
|
+
Ys as aS,
|
|
1581
|
+
ps as aT,
|
|
1582
|
+
Yt as aU,
|
|
1583
|
+
ns as aV,
|
|
1584
|
+
Ss as aW,
|
|
1585
|
+
cs as aX,
|
|
1586
|
+
Sn as aY,
|
|
1587
|
+
Rs as aZ,
|
|
1588
|
+
ot as a_,
|
|
1589
|
+
tn as aa,
|
|
1590
|
+
ys as ab,
|
|
1591
|
+
Fs as ac,
|
|
1592
|
+
ss as ad,
|
|
1593
|
+
Js as ae,
|
|
1594
|
+
Fn as af,
|
|
1595
|
+
ds as ag,
|
|
1596
|
+
Et as ah,
|
|
1597
|
+
dt as ai,
|
|
1598
|
+
zs as aj,
|
|
1599
|
+
Xs as ak,
|
|
1600
|
+
Bn as al,
|
|
1601
|
+
is as am,
|
|
1602
|
+
M as an,
|
|
1603
|
+
Un as ao,
|
|
1604
|
+
Us as ap,
|
|
1605
|
+
ht as aq,
|
|
1606
|
+
rn as ar,
|
|
1607
|
+
qs as as,
|
|
1608
|
+
es as at,
|
|
1609
|
+
Hs as au,
|
|
1610
|
+
Qn as av,
|
|
1611
|
+
x as aw,
|
|
1612
|
+
K as ax,
|
|
1613
|
+
Rn as ay,
|
|
1614
|
+
js as az,
|
|
1615
|
+
Es as b,
|
|
1616
|
+
rt as c,
|
|
1617
|
+
Is as d,
|
|
1618
|
+
Ks as e,
|
|
1599
1619
|
Kn as f,
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1620
|
+
Bs as g,
|
|
1621
|
+
xs as h,
|
|
1622
|
+
bn as i,
|
|
1623
|
+
Zs as j,
|
|
1624
|
+
Qs as k,
|
|
1605
1625
|
k as l,
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1626
|
+
fs as m,
|
|
1627
|
+
zt as n,
|
|
1628
|
+
xt as o,
|
|
1629
|
+
ms as p,
|
|
1630
|
+
et as q,
|
|
1631
|
+
ws as r,
|
|
1632
|
+
tt as s,
|
|
1633
|
+
Vs as t,
|
|
1614
1634
|
hn as u,
|
|
1615
1635
|
Gn as v,
|
|
1616
1636
|
_s as w,
|
|
1617
|
-
|
|
1637
|
+
ct as x,
|
|
1618
1638
|
w as y,
|
|
1619
|
-
|
|
1639
|
+
ft as z
|
|
1620
1640
|
};
|