@datagouv/components-next 1.0.2-dev.17 → 1.0.2-dev.170
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/README.md +7 -6
- package/assets/main.css +4 -0
- package/dist/{Control-DuZJdKV_.js → Control-B9WQxlpJ.js} +1 -1
- package/dist/{Datafair.client-Ds3VQrRi.js → Datafair.client-B-OG5WtK.js} +4 -4
- package/dist/{Event--kp8kMdJ.js → Event-iXDrp-fy.js} +31 -31
- package/dist/{Image-34hvypZI.js → Image-mNMBOofs.js} +9 -9
- package/dist/ImagePreview.client-D0c-ifUi.js +36 -0
- package/dist/JsonPreview.client-Dwh9sW9M.js +40 -0
- package/dist/{Map-BjUnLyj8.js → Map-BfqKMw0S.js} +1739 -1599
- package/dist/{MapContainer.client-B2BijMx5.js → MapContainer.client-C2AZ7sOB.js} +38 -39
- package/dist/{OSM-s40W6sQ2.js → OSM-CcrUhItr.js} +15 -23
- package/dist/{PdfPreview.client-DJBMzrlC.js → PdfPreview.client-8NzNfW8b.js} +823 -855
- package/dist/Pmtiles.client-BFH4rTB7.js +26324 -0
- package/dist/PreviewWrapper.vue_vue_type_script_setup_true_lang-BOgE441d.js +58 -0
- package/dist/{ScaleLine-KW-nXqp3.js → ScaleLine-VGQ7nkMS.js} +2 -2
- package/dist/{Tile-DbNFNPfU.js → Tile-CSpn0Ca8.js} +160 -163
- package/dist/{TileImage-BsXBxMtq.js → TileImage-CpbaEFwd.js} +143 -131
- package/dist/{View-BR92hTWP.js → View-BYBpt-AU.js} +483 -422
- package/dist/XmlPreview.client-DMOUO508.js +34 -0
- package/dist/{common-PJfpC179.js → common-BoeTUnDZ.js} +52 -52
- package/dist/components-next.css +1 -52
- package/dist/components-next.js +183 -146
- package/dist/components.css +2 -2
- package/dist/{index-BFQX7Ccz.js → index-C9obT9DJ.js} +21834 -15810
- package/dist/{leaflet-src-7m1mB8LI.js → leaflet-src-B4AZU0vr.js} +185 -187
- package/dist/{main-vqhkVhVS.js → main-DNoYWfit.js} +40723 -73240
- package/dist/{proj-DsetBcW7.js → proj-DxGbobp7.js} +662 -626
- package/dist/{text-clamp.esm-B5kW_XMt.js → text-clamp.esm-DVseBqZZ.js} +4 -4
- package/dist/{tilecoord-Db24Px13.js → tilecoord-DvX7WWiA.js} +273 -264
- package/dist/{vue3-json-viewer-BXwup7nO.js → vue3-json-viewer-CJLQFzXZ.js} +10 -16
- package/dist/{vue3-xml-viewer.common-BcNJo35o.js → vue3-xml-viewer.common-Cp7Cu5ME.js} +16 -16
- package/package.json +47 -38
- package/src/chart.ts +5 -0
- package/src/components/ActivityList/ActivityList.vue +3 -2
- package/src/components/Chart/ChartViewer.vue +320 -0
- package/src/components/Chart/ChartViewerWrapper.vue +182 -0
- package/src/components/DataserviceCard.vue +9 -0
- package/src/components/DataserviceQuality.vue +82 -0
- package/src/components/DataserviceQualityInline.vue +31 -0
- package/src/components/DataserviceQualityTooltipContent.vue +79 -0
- package/src/components/DatasetCard.vue +9 -4
- package/src/components/DatasetQuality.vue +11 -11
- package/src/components/DatasetQualityInline.vue +2 -2
- package/src/components/DatasetQualityTooltipContent.vue +1 -1
- package/src/components/Form/Listbox.vue +101 -0
- package/src/components/InfiniteLoader.vue +53 -0
- package/src/components/ObjectCardHeader.vue +11 -4
- package/src/components/OpenApiViewer/ContentTypeSelect.vue +48 -0
- package/src/components/OpenApiViewer/EndpointRequest.vue +164 -0
- package/src/components/OpenApiViewer/EndpointResponses.vue +149 -0
- package/src/components/OpenApiViewer/OpenApiViewer.vue +308 -0
- package/src/components/OpenApiViewer/SchemaPanel.vue +53 -0
- package/src/components/OpenApiViewer/SchemaTree.vue +77 -0
- package/src/components/OpenApiViewer/openapi.ts +150 -0
- package/src/components/OrganizationNameWithCertificate.vue +3 -2
- package/src/components/Pagination.vue +8 -5
- package/src/components/RadioInput.vue +7 -2
- package/src/components/ResourceAccordion/DataStructure.vue +11 -33
- package/src/components/ResourceAccordion/Downloads.vue +160 -0
- package/src/components/ResourceAccordion/ImagePreview.client.vue +48 -0
- package/src/components/ResourceAccordion/JsonPreview.client.vue +23 -104
- package/src/components/ResourceAccordion/MapContainer.client.vue +1 -3
- package/src/components/ResourceAccordion/Metadata.vue +1 -2
- package/src/components/ResourceAccordion/PdfPreview.client.vue +24 -87
- package/src/components/ResourceAccordion/Pmtiles.client.vue +3 -1
- package/src/components/ResourceAccordion/Preview.vue +11 -11
- package/src/components/ResourceAccordion/PreviewWrapper.vue +82 -0
- package/src/components/ResourceAccordion/ResourceAccordion.vue +19 -113
- package/src/components/ResourceAccordion/XmlPreview.client.vue +16 -98
- package/src/components/ResourceExplorer/ResourceExplorer.vue +22 -19
- package/src/components/ResourceExplorer/ResourceExplorerSidebar.vue +2 -2
- package/src/components/ResourceExplorer/ResourceExplorerViewer.vue +64 -148
- package/src/components/ResourceExplorer/ResourceSelector.vue +113 -0
- package/src/components/ReuseCard.vue +14 -6
- package/src/components/ReuseDetails.vue +2 -2
- package/src/components/ReuseHorizontalCard.vue +2 -2
- package/src/components/Search/GlobalSearch.vue +219 -117
- package/src/components/Search/SearchInput.vue +5 -4
- package/src/components/TabularExplorer/TabularCell.vue +52 -0
- package/src/components/TabularExplorer/TabularCellPopover.vue +170 -0
- package/src/components/TabularExplorer/TabularExplorer.vue +1225 -0
- package/src/components/TabularExplorer/TabularFilterContent.vue +370 -0
- package/src/components/TabularExplorer/TabularFilterPopover.vue +107 -0
- package/src/components/TabularExplorer/types.ts +86 -0
- package/src/composables/useHasTabularData.ts +15 -1
- package/src/composables/useMetrics.ts +1 -1
- package/src/composables/useResourceCapabilities.ts +28 -15
- package/src/composables/useSearchFilter.ts +120 -0
- package/src/composables/useStableQueryParams.ts +38 -6
- package/src/composables/useTabularProfile.ts +70 -0
- package/src/config.ts +21 -3
- package/src/functions/activities.ts +3 -3
- package/src/functions/api.ts +20 -42
- package/src/functions/api.types.ts +1 -0
- package/src/functions/charts.ts +99 -0
- package/src/functions/datasets.ts +0 -17
- package/src/functions/dates.ts +3 -2
- package/src/functions/metrics.ts +6 -4
- package/src/functions/resources.ts +117 -1
- package/src/functions/tabular.ts +214 -0
- package/src/functions/tabularApi.ts +96 -11
- package/src/main.ts +109 -14
- package/src/types/dataservices.ts +17 -0
- package/src/types/organizations.ts +10 -0
- package/src/types/pages.ts +0 -5
- package/src/types/posts.ts +2 -2
- package/src/types/reports.ts +5 -1
- package/src/types/resources.ts +0 -1
- package/src/types/reuses.ts +12 -1
- package/src/types/search.ts +63 -1
- package/src/types/site.ts +5 -3
- package/src/types/ui.ts +2 -0
- package/src/types/users.ts +2 -1
- package/src/types/visualizations.ts +93 -0
- package/assets/swagger-themes/newspaper.css +0 -1670
- package/dist/JsonPreview.client-CYxmz0yV.js +0 -72
- package/dist/Pmtiles.client-C_hvRDuy.js +0 -25185
- package/dist/Swagger.client-B4y0hXME.js +0 -4
- package/dist/XmlPreview.client-LETEfNBH.js +0 -64
- package/src/components/ResourceAccordion/Swagger.client.vue +0 -48
- package/src/functions/pagination.ts +0 -9
- /package/src/components/{DatasetQualityItem.vue → QualityItem.vue} +0 -0
- /package/src/components/{DatasetQualityItemWarning.vue → QualityItemWarning.vue} +0 -0
- /package/src/components/{DatasetQualityScore.vue → QualityScore.vue} +0 -0
|
@@ -5,7 +5,38 @@ const Hn = {
|
|
|
5
5
|
* @api
|
|
6
6
|
*/
|
|
7
7
|
PROPERTYCHANGE: "propertychange"
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
|
+
function Cn(n) {
|
|
10
|
+
for (const t in n)
|
|
11
|
+
delete n[t];
|
|
12
|
+
}
|
|
13
|
+
function Kn(n) {
|
|
14
|
+
let t;
|
|
15
|
+
for (t in n)
|
|
16
|
+
return !1;
|
|
17
|
+
return !t;
|
|
18
|
+
}
|
|
19
|
+
function k(n, t, s, r, e) {
|
|
20
|
+
if (e) {
|
|
21
|
+
const o = s;
|
|
22
|
+
s = function(a) {
|
|
23
|
+
return n.removeEventListener(t, s), o.call(r ?? this, a);
|
|
24
|
+
};
|
|
25
|
+
} else r && r !== n && (s = s.bind(r));
|
|
26
|
+
const i = {
|
|
27
|
+
target: n,
|
|
28
|
+
type: t,
|
|
29
|
+
listener: s
|
|
30
|
+
};
|
|
31
|
+
return n.addEventListener(t, s), i;
|
|
32
|
+
}
|
|
33
|
+
function un(n, t, s, r) {
|
|
34
|
+
return k(n, t, s, r, !0);
|
|
35
|
+
}
|
|
36
|
+
function hn(n) {
|
|
37
|
+
n && n.target && (n.target.removeEventListener(n.type, n.listener), Cn(n));
|
|
38
|
+
}
|
|
39
|
+
const Vn = {
|
|
9
40
|
/**
|
|
10
41
|
* Generic change event. Triggered when the revision counter is increased.
|
|
11
42
|
* @event module:ol/events/Event~BaseEvent#change
|
|
@@ -27,7 +58,7 @@ const Hn = {
|
|
|
27
58
|
TOUCHMOVE: "touchmove",
|
|
28
59
|
WHEEL: "wheel"
|
|
29
60
|
};
|
|
30
|
-
class
|
|
61
|
+
class jn {
|
|
31
62
|
constructor() {
|
|
32
63
|
this.disposed = !1;
|
|
33
64
|
}
|
|
@@ -44,123 +75,113 @@ class Vn {
|
|
|
44
75
|
disposeInternal() {
|
|
45
76
|
}
|
|
46
77
|
}
|
|
47
|
-
function
|
|
48
|
-
let
|
|
49
|
-
|
|
78
|
+
function jt(n, t, s) {
|
|
79
|
+
let r, e;
|
|
80
|
+
s = s || In;
|
|
50
81
|
let i = 0, o = n.length, a = !1;
|
|
51
82
|
for (; i < o; )
|
|
52
|
-
|
|
83
|
+
r = i + (o - i >> 1), e = +s(n[r], t), e < 0 ? i = r + 1 : (o = r, a = !e);
|
|
53
84
|
return a ? i : ~i;
|
|
54
85
|
}
|
|
55
|
-
function
|
|
86
|
+
function In(n, t) {
|
|
56
87
|
return n > t ? 1 : n < t ? -1 : 0;
|
|
57
88
|
}
|
|
58
|
-
function
|
|
89
|
+
function kt(n, t) {
|
|
59
90
|
return n < t ? 1 : n > t ? -1 : 0;
|
|
60
91
|
}
|
|
61
|
-
function zt(n, t,
|
|
92
|
+
function zt(n, t, s) {
|
|
62
93
|
if (n[0] <= t)
|
|
63
94
|
return 0;
|
|
64
|
-
const
|
|
65
|
-
if (t <= n[
|
|
66
|
-
return
|
|
67
|
-
if (typeof
|
|
68
|
-
for (let e = 1; e <
|
|
95
|
+
const r = n.length;
|
|
96
|
+
if (t <= n[r - 1])
|
|
97
|
+
return r - 1;
|
|
98
|
+
if (typeof s == "function") {
|
|
99
|
+
for (let e = 1; e < r; ++e) {
|
|
69
100
|
const i = n[e];
|
|
70
101
|
if (i === t)
|
|
71
102
|
return e;
|
|
72
103
|
if (i < t)
|
|
73
|
-
return
|
|
104
|
+
return s(t, n[e - 1], i) > 0 ? e - 1 : e;
|
|
74
105
|
}
|
|
75
|
-
return
|
|
106
|
+
return r - 1;
|
|
76
107
|
}
|
|
77
|
-
if (
|
|
78
|
-
for (let e = 1; e <
|
|
108
|
+
if (s > 0) {
|
|
109
|
+
for (let e = 1; e < r; ++e)
|
|
79
110
|
if (n[e] < t)
|
|
80
111
|
return e - 1;
|
|
81
|
-
return
|
|
112
|
+
return r - 1;
|
|
82
113
|
}
|
|
83
|
-
if (
|
|
84
|
-
for (let e = 1; e <
|
|
114
|
+
if (s < 0) {
|
|
115
|
+
for (let e = 1; e < r; ++e)
|
|
85
116
|
if (n[e] <= t)
|
|
86
117
|
return e;
|
|
87
|
-
return
|
|
118
|
+
return r - 1;
|
|
88
119
|
}
|
|
89
|
-
for (let e = 1; e <
|
|
120
|
+
for (let e = 1; e < r; ++e) {
|
|
90
121
|
if (n[e] == t)
|
|
91
122
|
return e;
|
|
92
123
|
if (n[e] < t)
|
|
93
124
|
return n[e - 1] - t < t - n[e] ? e - 1 : e;
|
|
94
125
|
}
|
|
95
|
-
return
|
|
126
|
+
return r - 1;
|
|
96
127
|
}
|
|
97
|
-
function
|
|
98
|
-
for (; t <
|
|
99
|
-
const
|
|
100
|
-
n[t] = n[
|
|
128
|
+
function Jt(n, t, s) {
|
|
129
|
+
for (; t < s; ) {
|
|
130
|
+
const r = n[t];
|
|
131
|
+
n[t] = n[s], n[s] = r, ++t, --s;
|
|
101
132
|
}
|
|
102
133
|
}
|
|
103
|
-
function
|
|
104
|
-
const
|
|
105
|
-
for (let e = 0; e <
|
|
106
|
-
n[n.length] =
|
|
134
|
+
function Qt(n, t) {
|
|
135
|
+
const s = Array.isArray(t) ? t : [t], r = s.length;
|
|
136
|
+
for (let e = 0; e < r; e++)
|
|
137
|
+
n[n.length] = s[e];
|
|
107
138
|
}
|
|
108
|
-
function
|
|
109
|
-
const
|
|
110
|
-
if (
|
|
139
|
+
function kn(n, t) {
|
|
140
|
+
const s = n.length;
|
|
141
|
+
if (s !== t.length)
|
|
111
142
|
return !1;
|
|
112
|
-
for (let
|
|
113
|
-
if (n[
|
|
143
|
+
for (let r = 0; r < s; r++)
|
|
144
|
+
if (n[r] !== t[r])
|
|
114
145
|
return !1;
|
|
115
146
|
return !0;
|
|
116
147
|
}
|
|
117
|
-
function
|
|
118
|
-
const
|
|
148
|
+
function Zt(n, t, s) {
|
|
149
|
+
const r = t || In;
|
|
119
150
|
return n.every(function(e, i) {
|
|
120
151
|
if (i === 0)
|
|
121
152
|
return !0;
|
|
122
|
-
const o =
|
|
153
|
+
const o = r(n[i - 1], e);
|
|
123
154
|
return !(o > 0 || o === 0);
|
|
124
155
|
});
|
|
125
156
|
}
|
|
126
|
-
function
|
|
157
|
+
function xt() {
|
|
127
158
|
return !0;
|
|
128
159
|
}
|
|
129
|
-
function
|
|
160
|
+
function ns() {
|
|
130
161
|
return !1;
|
|
131
162
|
}
|
|
132
|
-
function
|
|
163
|
+
function gn() {
|
|
133
164
|
}
|
|
134
|
-
function
|
|
135
|
-
let t,
|
|
165
|
+
function ts(n) {
|
|
166
|
+
let t, s, r;
|
|
136
167
|
return function() {
|
|
137
168
|
const e = Array.prototype.slice.call(arguments);
|
|
138
|
-
return (!
|
|
169
|
+
return (!s || this !== r || !kn(e, s)) && (r = this, s = e, t = n.apply(this, arguments)), t;
|
|
139
170
|
};
|
|
140
171
|
}
|
|
141
|
-
function
|
|
172
|
+
function ss(n) {
|
|
142
173
|
function t() {
|
|
143
|
-
let
|
|
174
|
+
let s;
|
|
144
175
|
try {
|
|
145
|
-
|
|
146
|
-
} catch (
|
|
147
|
-
return Promise.reject(
|
|
176
|
+
s = n();
|
|
177
|
+
} catch (r) {
|
|
178
|
+
return Promise.reject(r);
|
|
148
179
|
}
|
|
149
|
-
return
|
|
180
|
+
return s instanceof Promise ? s : Promise.resolve(s);
|
|
150
181
|
}
|
|
151
182
|
return t();
|
|
152
183
|
}
|
|
153
|
-
|
|
154
|
-
for (const t in n)
|
|
155
|
-
delete n[t];
|
|
156
|
-
}
|
|
157
|
-
function zn(n) {
|
|
158
|
-
let t;
|
|
159
|
-
for (t in n)
|
|
160
|
-
return !1;
|
|
161
|
-
return !t;
|
|
162
|
-
}
|
|
163
|
-
class Cn {
|
|
184
|
+
class On {
|
|
164
185
|
/**
|
|
165
186
|
* @param {string} type Type.
|
|
166
187
|
*/
|
|
@@ -183,7 +204,7 @@ class Cn {
|
|
|
183
204
|
this.propagationStopped = !0;
|
|
184
205
|
}
|
|
185
206
|
}
|
|
186
|
-
class
|
|
207
|
+
class zn extends jn {
|
|
187
208
|
/**
|
|
188
209
|
* @param {*} [target] Default event target for dispatched events.
|
|
189
210
|
*/
|
|
@@ -194,11 +215,11 @@ class kn extends Vn {
|
|
|
194
215
|
* @param {string} type Type.
|
|
195
216
|
* @param {import("../events.js").Listener} listener Listener.
|
|
196
217
|
*/
|
|
197
|
-
addEventListener(t,
|
|
198
|
-
if (!t || !
|
|
218
|
+
addEventListener(t, s) {
|
|
219
|
+
if (!t || !s)
|
|
199
220
|
return;
|
|
200
|
-
const
|
|
201
|
-
e.includes(
|
|
221
|
+
const r = this.listeners_ || (this.listeners_ = {}), e = r[t] || (r[t] = []);
|
|
222
|
+
e.includes(s) || e.push(s);
|
|
202
223
|
}
|
|
203
224
|
/**
|
|
204
225
|
* Dispatches an event and calls all listeners listening for events
|
|
@@ -211,16 +232,16 @@ class kn extends Vn {
|
|
|
211
232
|
* @api
|
|
212
233
|
*/
|
|
213
234
|
dispatchEvent(t) {
|
|
214
|
-
const
|
|
235
|
+
const s = typeof t == "string", r = s ? t : t.type, e = this.listeners_ && this.listeners_[r];
|
|
215
236
|
if (!e)
|
|
216
237
|
return;
|
|
217
|
-
const i =
|
|
238
|
+
const i = s ? new On(t) : (
|
|
218
239
|
/** @type {Event} */
|
|
219
240
|
t
|
|
220
241
|
);
|
|
221
242
|
i.target || (i.target = this.eventTarget_ || this);
|
|
222
243
|
const o = this.dispatching_ || (this.dispatching_ = {}), a = this.pendingRemovals_ || (this.pendingRemovals_ = {});
|
|
223
|
-
|
|
244
|
+
r in o || (o[r] = 0, a[r] = 0), ++o[r];
|
|
224
245
|
let c;
|
|
225
246
|
for (let l = 0, f = e.length; l < f; ++l)
|
|
226
247
|
if ("handleEvent" in e[l] ? c = /** @type {import("../events.js").ListenerObject} */
|
|
@@ -229,11 +250,11 @@ class kn extends Vn {
|
|
|
229
250
|
c = !1;
|
|
230
251
|
break;
|
|
231
252
|
}
|
|
232
|
-
if (--o[
|
|
233
|
-
let l = a[
|
|
234
|
-
for (delete a[
|
|
235
|
-
this.removeEventListener(
|
|
236
|
-
delete o[
|
|
253
|
+
if (--o[r] === 0) {
|
|
254
|
+
let l = a[r];
|
|
255
|
+
for (delete a[r]; l--; )
|
|
256
|
+
this.removeEventListener(r, gn);
|
|
257
|
+
delete o[r];
|
|
237
258
|
}
|
|
238
259
|
return c;
|
|
239
260
|
}
|
|
@@ -242,7 +263,7 @@ class kn extends Vn {
|
|
|
242
263
|
* @override
|
|
243
264
|
*/
|
|
244
265
|
disposeInternal() {
|
|
245
|
-
this.listeners_ &&
|
|
266
|
+
this.listeners_ && Cn(this.listeners_);
|
|
246
267
|
}
|
|
247
268
|
/**
|
|
248
269
|
* Get the listeners for a specified event type. Listeners are returned in the
|
|
@@ -266,40 +287,20 @@ class kn extends Vn {
|
|
|
266
287
|
* @param {string} type Type.
|
|
267
288
|
* @param {import("../events.js").Listener} listener Listener.
|
|
268
289
|
*/
|
|
269
|
-
removeEventListener(t,
|
|
290
|
+
removeEventListener(t, s) {
|
|
270
291
|
if (!this.listeners_)
|
|
271
292
|
return;
|
|
272
|
-
const
|
|
273
|
-
if (!
|
|
293
|
+
const r = this.listeners_[t];
|
|
294
|
+
if (!r)
|
|
274
295
|
return;
|
|
275
|
-
const e =
|
|
276
|
-
e !== -1 && (this.pendingRemovals_ && t in this.pendingRemovals_ ? (
|
|
296
|
+
const e = r.indexOf(s);
|
|
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]));
|
|
277
298
|
}
|
|
278
299
|
}
|
|
279
|
-
|
|
280
|
-
if (e) {
|
|
281
|
-
const o = r;
|
|
282
|
-
r = function(a) {
|
|
283
|
-
return n.removeEventListener(t, r), o.call(s ?? this, a);
|
|
284
|
-
};
|
|
285
|
-
} else s && s !== n && (r = r.bind(s));
|
|
286
|
-
const i = {
|
|
287
|
-
target: n,
|
|
288
|
-
type: t,
|
|
289
|
-
listener: r
|
|
290
|
-
};
|
|
291
|
-
return n.addEventListener(t, r), i;
|
|
292
|
-
}
|
|
293
|
-
function fn(n, t, r, s) {
|
|
294
|
-
return j(n, t, r, s, !0);
|
|
295
|
-
}
|
|
296
|
-
function un(n) {
|
|
297
|
-
n && n.target && (n.target.removeEventListener(n.type, n.listener), Rn(n));
|
|
298
|
-
}
|
|
299
|
-
class $ extends kn {
|
|
300
|
+
class q extends zn {
|
|
300
301
|
constructor() {
|
|
301
|
-
super(), this.on = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
|
|
302
|
-
this.onInternal, this.once = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
|
|
302
|
+
super(), this.on = /** @type {ObservableOnSignature<import("./events.js").EventsKey>} */
|
|
303
|
+
this.onInternal, this.once = /** @type {ObservableOnSignature<import("./events.js").EventsKey>} */
|
|
303
304
|
this.onceInternal, this.un = /** @type {ObservableOnSignature<void>} */
|
|
304
305
|
this.unInternal, this.revision_ = 0;
|
|
305
306
|
}
|
|
@@ -308,7 +309,7 @@ class $ extends kn {
|
|
|
308
309
|
* @api
|
|
309
310
|
*/
|
|
310
311
|
changed() {
|
|
311
|
-
++this.revision_, this.dispatchEvent(
|
|
312
|
+
++this.revision_, this.dispatchEvent(Vn.CHANGE);
|
|
312
313
|
}
|
|
313
314
|
/**
|
|
314
315
|
* Get the version number for this object. Each time the object is modified,
|
|
@@ -321,99 +322,99 @@ class $ extends kn {
|
|
|
321
322
|
}
|
|
322
323
|
/**
|
|
323
324
|
* @param {string|Array<string>} type Type.
|
|
324
|
-
* @param {function((Event|import("./events/Event").default)): ?} listener Listener.
|
|
325
|
+
* @param {function((Event|import("./events/Event.js").default)): ?} listener Listener.
|
|
325
326
|
* @return {import("./events.js").EventsKey|Array<import("./events.js").EventsKey>} Event key.
|
|
326
327
|
* @protected
|
|
327
328
|
*/
|
|
328
|
-
onInternal(t,
|
|
329
|
+
onInternal(t, s) {
|
|
329
330
|
if (Array.isArray(t)) {
|
|
330
|
-
const
|
|
331
|
-
for (let i = 0; i <
|
|
332
|
-
e[i] =
|
|
331
|
+
const r = t.length, e = new Array(r);
|
|
332
|
+
for (let i = 0; i < r; ++i)
|
|
333
|
+
e[i] = k(this, t[i], s);
|
|
333
334
|
return e;
|
|
334
335
|
}
|
|
335
|
-
return
|
|
336
|
+
return k(
|
|
336
337
|
this,
|
|
337
338
|
/** @type {string} */
|
|
338
339
|
t,
|
|
339
|
-
|
|
340
|
+
s
|
|
340
341
|
);
|
|
341
342
|
}
|
|
342
343
|
/**
|
|
343
344
|
* @param {string|Array<string>} type Type.
|
|
344
|
-
* @param {function((Event|import("./events/Event").default)): ?} listener Listener.
|
|
345
|
+
* @param {function((Event|import("./events/Event.js").default)): ?} listener Listener.
|
|
345
346
|
* @return {import("./events.js").EventsKey|Array<import("./events.js").EventsKey>} Event key.
|
|
346
347
|
* @protected
|
|
347
348
|
*/
|
|
348
|
-
onceInternal(t,
|
|
349
|
-
let
|
|
349
|
+
onceInternal(t, s) {
|
|
350
|
+
let r;
|
|
350
351
|
if (Array.isArray(t)) {
|
|
351
352
|
const e = t.length;
|
|
352
|
-
|
|
353
|
+
r = new Array(e);
|
|
353
354
|
for (let i = 0; i < e; ++i)
|
|
354
|
-
|
|
355
|
+
r[i] = un(this, t[i], s);
|
|
355
356
|
} else
|
|
356
|
-
|
|
357
|
+
r = un(
|
|
357
358
|
this,
|
|
358
359
|
/** @type {string} */
|
|
359
360
|
t,
|
|
360
|
-
|
|
361
|
+
s
|
|
361
362
|
);
|
|
362
|
-
return
|
|
363
|
+
return s.ol_key = r, r;
|
|
363
364
|
}
|
|
364
365
|
/**
|
|
365
366
|
* Unlisten for a certain type of event.
|
|
366
367
|
* @param {string|Array<string>} type Type.
|
|
367
|
-
* @param {function((Event|import("./events/Event").default)): ?} listener Listener.
|
|
368
|
+
* @param {function((Event|import("./events/Event.js").default)): ?} listener Listener.
|
|
368
369
|
* @protected
|
|
369
370
|
*/
|
|
370
|
-
unInternal(t,
|
|
371
|
-
const
|
|
371
|
+
unInternal(t, s) {
|
|
372
|
+
const r = (
|
|
372
373
|
/** @type {Object} */
|
|
373
|
-
|
|
374
|
+
s.ol_key
|
|
374
375
|
);
|
|
375
|
-
if (
|
|
376
|
-
Jn(
|
|
376
|
+
if (r)
|
|
377
|
+
Jn(r);
|
|
377
378
|
else if (Array.isArray(t))
|
|
378
379
|
for (let e = 0, i = t.length; e < i; ++e)
|
|
379
|
-
this.removeEventListener(t[e],
|
|
380
|
+
this.removeEventListener(t[e], s);
|
|
380
381
|
else
|
|
381
|
-
this.removeEventListener(t,
|
|
382
|
+
this.removeEventListener(t, s);
|
|
382
383
|
}
|
|
383
384
|
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
385
|
+
q.prototype.on;
|
|
386
|
+
q.prototype.once;
|
|
387
|
+
q.prototype.un;
|
|
387
388
|
function Jn(n) {
|
|
388
389
|
if (Array.isArray(n))
|
|
389
|
-
for (let t = 0,
|
|
390
|
-
|
|
390
|
+
for (let t = 0, s = n.length; t < s; ++t)
|
|
391
|
+
hn(n[t]);
|
|
391
392
|
else
|
|
392
|
-
|
|
393
|
+
hn(
|
|
393
394
|
/** @type {import("./events.js").EventsKey} */
|
|
394
395
|
n
|
|
395
396
|
);
|
|
396
397
|
}
|
|
397
|
-
function
|
|
398
|
+
function rs() {
|
|
398
399
|
throw new Error("Unimplemented abstract method.");
|
|
399
400
|
}
|
|
400
401
|
let Qn = 0;
|
|
401
402
|
function Zn(n) {
|
|
402
403
|
return n.ol_uid || (n.ol_uid = String(++Qn));
|
|
403
404
|
}
|
|
404
|
-
class
|
|
405
|
+
class dn extends On {
|
|
405
406
|
/**
|
|
406
407
|
* @param {string} type The event type.
|
|
407
408
|
* @param {string} key The property name.
|
|
408
409
|
* @param {*} oldValue The old value for `key`.
|
|
409
410
|
*/
|
|
410
|
-
constructor(t,
|
|
411
|
-
super(t), this.key =
|
|
411
|
+
constructor(t, s, r) {
|
|
412
|
+
super(t), this.key = s, this.oldValue = r;
|
|
412
413
|
}
|
|
413
414
|
}
|
|
414
|
-
class
|
|
415
|
+
class es extends q {
|
|
415
416
|
/**
|
|
416
|
-
* @param {
|
|
417
|
+
* @param {NoInfer<Properties>} [values] An object with key-value pairs.
|
|
417
418
|
*/
|
|
418
419
|
constructor(t) {
|
|
419
420
|
super(), this.on, this.once, this.un, Zn(this), this.values_ = null, t !== void 0 && this.setProperties(t);
|
|
@@ -425,8 +426,8 @@ class rs extends $ {
|
|
|
425
426
|
* @api
|
|
426
427
|
*/
|
|
427
428
|
get(t) {
|
|
428
|
-
let
|
|
429
|
-
return this.values_ && this.values_.hasOwnProperty(t) && (
|
|
429
|
+
let s;
|
|
430
|
+
return this.values_ && this.values_.hasOwnProperty(t) && (s = this.values_[t]), s;
|
|
430
431
|
}
|
|
431
432
|
/**
|
|
432
433
|
* Get a list of object property names.
|
|
@@ -438,15 +439,18 @@ class rs extends $ {
|
|
|
438
439
|
}
|
|
439
440
|
/**
|
|
440
441
|
* Get an object of all property names and values.
|
|
441
|
-
* @return {
|
|
442
|
+
* @return {NoInfer<Properties>} Object.
|
|
442
443
|
* @api
|
|
443
444
|
*/
|
|
444
445
|
getProperties() {
|
|
445
|
-
return
|
|
446
|
+
return (
|
|
447
|
+
/** @type {NoInfer<Properties>} */
|
|
448
|
+
this.values_ && Object.assign({}, this.values_) || {}
|
|
449
|
+
);
|
|
446
450
|
}
|
|
447
451
|
/**
|
|
448
452
|
* Get an object of all property names and values.
|
|
449
|
-
* @return {
|
|
453
|
+
* @return {Partial<NoInfer<Properties>>?} Object.
|
|
450
454
|
*/
|
|
451
455
|
getPropertiesInternal() {
|
|
452
456
|
return this.values_;
|
|
@@ -461,23 +465,23 @@ class rs extends $ {
|
|
|
461
465
|
* @param {string} key Key name.
|
|
462
466
|
* @param {*} oldValue Old value.
|
|
463
467
|
*/
|
|
464
|
-
notify(t,
|
|
465
|
-
let
|
|
466
|
-
|
|
468
|
+
notify(t, s) {
|
|
469
|
+
let r;
|
|
470
|
+
r = `change:${t}`, this.hasListener(r) && this.dispatchEvent(new dn(r, t, s)), r = Hn.PROPERTYCHANGE, this.hasListener(r) && this.dispatchEvent(new dn(r, t, s));
|
|
467
471
|
}
|
|
468
472
|
/**
|
|
469
473
|
* @param {string} key Key name.
|
|
470
474
|
* @param {import("./events.js").Listener} listener Listener.
|
|
471
475
|
*/
|
|
472
|
-
addChangeListener(t,
|
|
473
|
-
this.addEventListener(`change:${t}`,
|
|
476
|
+
addChangeListener(t, s) {
|
|
477
|
+
this.addEventListener(`change:${t}`, s);
|
|
474
478
|
}
|
|
475
479
|
/**
|
|
476
480
|
* @param {string} key Key name.
|
|
477
481
|
* @param {import("./events.js").Listener} listener Listener.
|
|
478
482
|
*/
|
|
479
|
-
removeChangeListener(t,
|
|
480
|
-
this.removeEventListener(`change:${t}`,
|
|
483
|
+
removeChangeListener(t, s) {
|
|
484
|
+
this.removeEventListener(`change:${t}`, s);
|
|
481
485
|
}
|
|
482
486
|
/**
|
|
483
487
|
* Sets a value.
|
|
@@ -486,25 +490,25 @@ class rs extends $ {
|
|
|
486
490
|
* @param {boolean} [silent] Update without triggering an event.
|
|
487
491
|
* @api
|
|
488
492
|
*/
|
|
489
|
-
set(t,
|
|
493
|
+
set(t, s, r) {
|
|
490
494
|
const e = this.values_ || (this.values_ = {});
|
|
491
|
-
if (
|
|
492
|
-
e[t] =
|
|
495
|
+
if (r)
|
|
496
|
+
e[t] = s;
|
|
493
497
|
else {
|
|
494
498
|
const i = e[t];
|
|
495
|
-
e[t] =
|
|
499
|
+
e[t] = s, i !== s && this.notify(t, i);
|
|
496
500
|
}
|
|
497
501
|
}
|
|
498
502
|
/**
|
|
499
503
|
* Sets a collection of key-value pairs. Note that this changes any existing
|
|
500
504
|
* properties and adds new ones (it does not remove any existing properties).
|
|
501
|
-
* @param {
|
|
505
|
+
* @param {Partial<NoInfer<Properties>>} values Values.
|
|
502
506
|
* @param {boolean} [silent] Update without triggering an event.
|
|
503
507
|
* @api
|
|
504
508
|
*/
|
|
505
|
-
setProperties(t,
|
|
506
|
-
for (const
|
|
507
|
-
this.set(
|
|
509
|
+
setProperties(t, s) {
|
|
510
|
+
for (const r in t)
|
|
511
|
+
this.set(r, t[r], s);
|
|
508
512
|
}
|
|
509
513
|
/**
|
|
510
514
|
* Apply any properties from another object without triggering events.
|
|
@@ -520,85 +524,85 @@ class rs extends $ {
|
|
|
520
524
|
* @param {boolean} [silent] Unset without triggering an event.
|
|
521
525
|
* @api
|
|
522
526
|
*/
|
|
523
|
-
unset(t,
|
|
527
|
+
unset(t, s) {
|
|
524
528
|
if (this.values_ && t in this.values_) {
|
|
525
|
-
const
|
|
526
|
-
delete this.values_[t],
|
|
529
|
+
const r = this.values_[t];
|
|
530
|
+
delete this.values_[t], Kn(this.values_) && (this.values_ = null), s || this.notify(t, r);
|
|
527
531
|
}
|
|
528
532
|
}
|
|
529
533
|
}
|
|
530
|
-
function
|
|
531
|
-
return Math.min(Math.max(n, t),
|
|
534
|
+
function xn(n, t, s) {
|
|
535
|
+
return Math.min(Math.max(n, t), s);
|
|
532
536
|
}
|
|
533
|
-
function is(n, t,
|
|
534
|
-
const o = e -
|
|
537
|
+
function is(n, t, s, r, e, i) {
|
|
538
|
+
const o = e - s, a = i - r;
|
|
535
539
|
if (o !== 0 || a !== 0) {
|
|
536
|
-
const c = ((n -
|
|
537
|
-
c > 1 ? (
|
|
540
|
+
const c = ((n - s) * o + (t - r) * a) / (o * o + a * a);
|
|
541
|
+
c > 1 ? (s = e, r = i) : c > 0 && (s += o * c, r += a * c);
|
|
538
542
|
}
|
|
539
|
-
return
|
|
543
|
+
return nt(n, t, s, r);
|
|
540
544
|
}
|
|
541
|
-
function
|
|
542
|
-
const e =
|
|
545
|
+
function nt(n, t, s, r) {
|
|
546
|
+
const e = s - n, i = r - t;
|
|
543
547
|
return e * e + i * i;
|
|
544
548
|
}
|
|
545
549
|
function os(n) {
|
|
546
550
|
const t = n.length;
|
|
547
|
-
for (let
|
|
548
|
-
let e =
|
|
549
|
-
for (let a =
|
|
550
|
-
const c = Math.abs(n[a][
|
|
551
|
+
for (let r = 0; r < t; r++) {
|
|
552
|
+
let e = r, i = Math.abs(n[r][r]);
|
|
553
|
+
for (let a = r + 1; a < t; a++) {
|
|
554
|
+
const c = Math.abs(n[a][r]);
|
|
551
555
|
c > i && (i = c, e = a);
|
|
552
556
|
}
|
|
553
557
|
if (i === 0)
|
|
554
558
|
return null;
|
|
555
559
|
const o = n[e];
|
|
556
|
-
n[e] = n[
|
|
557
|
-
for (let a =
|
|
558
|
-
const c = -n[a][
|
|
559
|
-
for (let l =
|
|
560
|
-
|
|
560
|
+
n[e] = n[r], n[r] = o;
|
|
561
|
+
for (let a = r + 1; a < t; a++) {
|
|
562
|
+
const c = -n[a][r] / n[r][r];
|
|
563
|
+
for (let l = r; l < t + 1; l++)
|
|
564
|
+
r == l ? n[a][l] = 0 : n[a][l] += c * n[r][l];
|
|
561
565
|
}
|
|
562
566
|
}
|
|
563
|
-
const
|
|
564
|
-
for (let
|
|
565
|
-
r
|
|
566
|
-
for (let e =
|
|
567
|
-
n[e][t] -= n[e][
|
|
567
|
+
const s = new Array(t);
|
|
568
|
+
for (let r = t - 1; r >= 0; r--) {
|
|
569
|
+
s[r] = n[r][t] / n[r][r];
|
|
570
|
+
for (let e = r - 1; e >= 0; e--)
|
|
571
|
+
n[e][t] -= n[e][r] * s[r];
|
|
568
572
|
}
|
|
569
|
-
return
|
|
573
|
+
return s;
|
|
570
574
|
}
|
|
571
|
-
function
|
|
575
|
+
function W(n) {
|
|
572
576
|
return n * 180 / Math.PI;
|
|
573
577
|
}
|
|
574
|
-
function
|
|
578
|
+
function M(n) {
|
|
575
579
|
return n * Math.PI / 180;
|
|
576
580
|
}
|
|
577
581
|
function as(n, t) {
|
|
578
|
-
const
|
|
579
|
-
return
|
|
582
|
+
const s = n % t;
|
|
583
|
+
return s * t < 0 ? s + t : s;
|
|
580
584
|
}
|
|
581
|
-
function cs(n, t,
|
|
582
|
-
return n +
|
|
585
|
+
function cs(n, t, s) {
|
|
586
|
+
return n + s * (t - n);
|
|
583
587
|
}
|
|
584
|
-
function
|
|
585
|
-
const
|
|
586
|
-
return Math.round(n *
|
|
588
|
+
function nn(n, t) {
|
|
589
|
+
const s = Math.pow(10, t);
|
|
590
|
+
return Math.round(n * s) / s;
|
|
587
591
|
}
|
|
588
592
|
function ls(n, t) {
|
|
589
|
-
return Math.round(
|
|
593
|
+
return Math.round(nn(n, t));
|
|
590
594
|
}
|
|
591
595
|
function fs(n, t) {
|
|
592
|
-
return Math.floor(
|
|
596
|
+
return Math.floor(nn(n, t));
|
|
593
597
|
}
|
|
594
598
|
function us(n, t) {
|
|
595
|
-
return Math.ceil(
|
|
599
|
+
return Math.ceil(nn(n, t));
|
|
596
600
|
}
|
|
597
|
-
function z(n, t,
|
|
598
|
-
if (n >= t && n <
|
|
601
|
+
function z(n, t, s) {
|
|
602
|
+
if (n >= t && n < s)
|
|
599
603
|
return n;
|
|
600
|
-
const
|
|
601
|
-
return ((n - t) %
|
|
604
|
+
const r = s - t;
|
|
605
|
+
return ((n - t) % r + r) % r + t;
|
|
602
606
|
}
|
|
603
607
|
const E = {
|
|
604
608
|
UNKNOWN: 0,
|
|
@@ -609,17 +613,17 @@ const E = {
|
|
|
609
613
|
LEFT: 16
|
|
610
614
|
};
|
|
611
615
|
function hs(n) {
|
|
612
|
-
const t =
|
|
613
|
-
for (let
|
|
614
|
-
|
|
616
|
+
const t = Gn();
|
|
617
|
+
for (let s = 0, r = n.length; s < r; ++s)
|
|
618
|
+
rt(t, n[s]);
|
|
615
619
|
return t;
|
|
616
620
|
}
|
|
617
|
-
function
|
|
618
|
-
const
|
|
619
|
-
return
|
|
621
|
+
function tt(n, t, s) {
|
|
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
|
+
return B(r, e, i, o, s);
|
|
620
624
|
}
|
|
621
|
-
function gs(n, t,
|
|
622
|
-
return
|
|
625
|
+
function gs(n, t, s) {
|
|
626
|
+
return s ? (s[0] = n[0] - t, s[1] = n[1] - t, s[2] = n[2] + t, s[3] = n[3] + t, s) : [
|
|
623
627
|
n[0] - t,
|
|
624
628
|
n[1] - t,
|
|
625
629
|
n[2] + t,
|
|
@@ -629,97 +633,97 @@ function gs(n, t, r) {
|
|
|
629
633
|
function ds(n, t) {
|
|
630
634
|
return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n.slice();
|
|
631
635
|
}
|
|
632
|
-
function Es(n, t,
|
|
633
|
-
let
|
|
634
|
-
return t < n[0] ?
|
|
636
|
+
function Es(n, t, s) {
|
|
637
|
+
let r, e;
|
|
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;
|
|
635
639
|
}
|
|
636
|
-
function
|
|
637
|
-
return
|
|
640
|
+
function Ms(n, t) {
|
|
641
|
+
return st(n, t[0], t[1]);
|
|
638
642
|
}
|
|
639
|
-
function
|
|
643
|
+
function Ps(n, t) {
|
|
640
644
|
return n[0] <= t[0] && t[2] <= n[2] && n[1] <= t[1] && t[3] <= n[3];
|
|
641
645
|
}
|
|
642
|
-
function
|
|
643
|
-
return n[0] <= t && t <= n[2] && n[1] <=
|
|
646
|
+
function st(n, t, s) {
|
|
647
|
+
return n[0] <= t && t <= n[2] && n[1] <= s && s <= n[3];
|
|
644
648
|
}
|
|
645
|
-
function
|
|
646
|
-
const
|
|
649
|
+
function En(n, t) {
|
|
650
|
+
const s = n[0], r = n[1], e = n[2], i = n[3], o = t[0], a = t[1];
|
|
647
651
|
let c = E.UNKNOWN;
|
|
648
|
-
return o <
|
|
652
|
+
return o < s ? c = c | E.LEFT : o > e && (c = c | E.RIGHT), a < r ? c = c | E.BELOW : a > i && (c = c | E.ABOVE), c === E.UNKNOWN && (c = E.INTERSECTING), c;
|
|
649
653
|
}
|
|
650
|
-
function
|
|
654
|
+
function Gn() {
|
|
651
655
|
return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
652
656
|
}
|
|
653
|
-
function
|
|
654
|
-
return e ? (e[0] = n, e[1] = t, e[2] =
|
|
657
|
+
function B(n, t, s, r, e) {
|
|
658
|
+
return e ? (e[0] = n, e[1] = t, e[2] = s, e[3] = r, e) : [n, t, s, r];
|
|
655
659
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
660
|
+
function tn(n) {
|
|
661
|
+
return B(1 / 0, 1 / 0, -1 / 0, -1 / 0, n);
|
|
658
662
|
}
|
|
659
|
-
function
|
|
660
|
-
const
|
|
661
|
-
return
|
|
663
|
+
function _s(n, t) {
|
|
664
|
+
const s = n[0], r = n[1];
|
|
665
|
+
return B(s, r, s, r, t);
|
|
662
666
|
}
|
|
663
|
-
function
|
|
664
|
-
const i =
|
|
665
|
-
return
|
|
667
|
+
function ms(n, t, s, r, e) {
|
|
668
|
+
const i = tn(e);
|
|
669
|
+
return et(i, n, t, s, r);
|
|
666
670
|
}
|
|
667
|
-
function
|
|
671
|
+
function ws(n, t) {
|
|
668
672
|
return n[0] == t[0] && n[2] == t[2] && n[1] == t[1] && n[3] == t[3];
|
|
669
673
|
}
|
|
670
674
|
function Ts(n, t) {
|
|
671
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;
|
|
672
676
|
}
|
|
673
|
-
function
|
|
677
|
+
function rt(n, t) {
|
|
674
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]);
|
|
675
679
|
}
|
|
676
|
-
function
|
|
677
|
-
for (;
|
|
678
|
-
|
|
680
|
+
function et(n, t, s, r, e) {
|
|
681
|
+
for (; s < r; s += e)
|
|
682
|
+
it(n, t[s], t[s + 1]);
|
|
679
683
|
return n;
|
|
680
684
|
}
|
|
681
|
-
function
|
|
682
|
-
n[0] = Math.min(n[0], t), n[1] = Math.min(n[1],
|
|
685
|
+
function it(n, t, s) {
|
|
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);
|
|
683
687
|
}
|
|
684
688
|
function ys(n, t) {
|
|
685
|
-
let
|
|
686
|
-
return
|
|
689
|
+
let s;
|
|
690
|
+
return s = t(Ln(n)), s || (s = t(An(n)), s) || (s = t(pn(n)), s) || (s = t(Un(n)), s) ? s : !1;
|
|
687
691
|
}
|
|
688
692
|
function vs(n) {
|
|
689
693
|
let t = 0;
|
|
690
|
-
return
|
|
694
|
+
return bn(n) || (t = G(n) * ct(n)), t;
|
|
691
695
|
}
|
|
692
|
-
function
|
|
696
|
+
function Ln(n) {
|
|
693
697
|
return [n[0], n[1]];
|
|
694
698
|
}
|
|
695
|
-
function
|
|
699
|
+
function An(n) {
|
|
696
700
|
return [n[2], n[1]];
|
|
697
701
|
}
|
|
698
|
-
function
|
|
702
|
+
function ot(n) {
|
|
699
703
|
return [(n[0] + n[2]) / 2, (n[1] + n[3]) / 2];
|
|
700
704
|
}
|
|
701
|
-
function
|
|
702
|
-
let
|
|
705
|
+
function Rs(n, t) {
|
|
706
|
+
let s;
|
|
703
707
|
if (t === "bottom-left")
|
|
704
|
-
|
|
708
|
+
s = Ln(n);
|
|
705
709
|
else if (t === "bottom-right")
|
|
706
|
-
|
|
710
|
+
s = An(n);
|
|
707
711
|
else if (t === "top-left")
|
|
708
|
-
|
|
712
|
+
s = Un(n);
|
|
709
713
|
else if (t === "top-right")
|
|
710
|
-
|
|
714
|
+
s = pn(n);
|
|
711
715
|
else
|
|
712
716
|
throw new Error("Invalid corner");
|
|
713
|
-
return
|
|
717
|
+
return s;
|
|
714
718
|
}
|
|
715
|
-
function
|
|
716
|
-
const [i, o, a, c, l, f, h, u] =
|
|
719
|
+
function Ss(n, t, s, r, e) {
|
|
720
|
+
const [i, o, a, c, l, f, h, u] = at(
|
|
717
721
|
n,
|
|
718
722
|
t,
|
|
719
|
-
|
|
720
|
-
|
|
723
|
+
s,
|
|
724
|
+
r
|
|
721
725
|
);
|
|
722
|
-
return
|
|
726
|
+
return B(
|
|
723
727
|
Math.min(i, a, l, h),
|
|
724
728
|
Math.min(o, c, f, u),
|
|
725
729
|
Math.max(i, a, l, h),
|
|
@@ -727,8 +731,8 @@ function ps(n, t, r, s, e) {
|
|
|
727
731
|
e
|
|
728
732
|
);
|
|
729
733
|
}
|
|
730
|
-
function
|
|
731
|
-
const e = t *
|
|
734
|
+
function at(n, t, s, r) {
|
|
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];
|
|
732
736
|
return [
|
|
733
737
|
u - c + h,
|
|
734
738
|
g - l - f,
|
|
@@ -742,63 +746,63 @@ function ot(n, t, r, s) {
|
|
|
742
746
|
g - l - f
|
|
743
747
|
];
|
|
744
748
|
}
|
|
745
|
-
function
|
|
749
|
+
function ct(n) {
|
|
746
750
|
return n[3] - n[1];
|
|
747
751
|
}
|
|
748
|
-
function
|
|
749
|
-
const
|
|
750
|
-
return
|
|
752
|
+
function Cs(n, t, s) {
|
|
753
|
+
const r = s || Gn();
|
|
754
|
+
return lt(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;
|
|
751
755
|
}
|
|
752
|
-
function
|
|
756
|
+
function Un(n) {
|
|
753
757
|
return [n[0], n[3]];
|
|
754
758
|
}
|
|
755
|
-
function
|
|
759
|
+
function pn(n) {
|
|
756
760
|
return [n[2], n[3]];
|
|
757
761
|
}
|
|
758
|
-
function
|
|
762
|
+
function G(n) {
|
|
759
763
|
return n[2] - n[0];
|
|
760
764
|
}
|
|
761
|
-
function
|
|
765
|
+
function lt(n, t) {
|
|
762
766
|
return n[0] <= t[2] && n[2] >= t[0] && n[1] <= t[3] && n[3] >= t[1];
|
|
763
767
|
}
|
|
764
|
-
function
|
|
768
|
+
function bn(n) {
|
|
765
769
|
return n[2] < n[0] || n[3] < n[1];
|
|
766
770
|
}
|
|
767
|
-
function
|
|
771
|
+
function Is(n, t) {
|
|
768
772
|
return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n;
|
|
769
773
|
}
|
|
770
|
-
function
|
|
771
|
-
const
|
|
772
|
-
n[0] -=
|
|
774
|
+
function Os(n, t) {
|
|
775
|
+
const s = (n[2] - n[0]) / 2 * (t - 1), r = (n[3] - n[1]) / 2 * (t - 1);
|
|
776
|
+
n[0] -= s, n[2] += s, n[1] -= r, n[3] += r;
|
|
773
777
|
}
|
|
774
|
-
function
|
|
775
|
-
let
|
|
776
|
-
const e =
|
|
778
|
+
function Gs(n, t, s) {
|
|
779
|
+
let r = !1;
|
|
780
|
+
const e = En(n, t), i = En(n, s);
|
|
777
781
|
if (e === E.INTERSECTING || i === E.INTERSECTING)
|
|
778
|
-
|
|
782
|
+
r = !0;
|
|
779
783
|
else {
|
|
780
|
-
const o = n[0], a = n[1], c = n[2], l = n[3], f = t[0], h = t[1], u =
|
|
784
|
+
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);
|
|
781
785
|
let _, m;
|
|
782
|
-
i & E.ABOVE && !(e & E.ABOVE) && (_ = u - (g - l) / d,
|
|
786
|
+
i & E.ABOVE && !(e & E.ABOVE) && (_ = u - (g - l) / d, r = _ >= o && _ <= c), !r && i & E.RIGHT && !(e & E.RIGHT) && (m = g - (u - c) * d, r = m >= a && m <= l), !r && i & E.BELOW && !(e & E.BELOW) && (_ = u - (g - a) / d, r = _ >= o && _ <= c), !r && i & E.LEFT && !(e & E.LEFT) && (m = g - (u - o) * d, r = m >= a && m <= l);
|
|
783
787
|
}
|
|
784
|
-
return
|
|
788
|
+
return r;
|
|
785
789
|
}
|
|
786
|
-
function
|
|
787
|
-
if (
|
|
788
|
-
return
|
|
790
|
+
function ft(n, t, s, r) {
|
|
791
|
+
if (bn(n))
|
|
792
|
+
return tn(s);
|
|
789
793
|
let e = [];
|
|
790
|
-
if (
|
|
794
|
+
if (r > 1) {
|
|
791
795
|
const a = n[2] - n[0], c = n[3] - n[1];
|
|
792
|
-
for (let l = 0; l <
|
|
796
|
+
for (let l = 0; l < r; ++l)
|
|
793
797
|
e.push(
|
|
794
|
-
n[0] + a * l /
|
|
798
|
+
n[0] + a * l / r,
|
|
795
799
|
n[1],
|
|
796
800
|
n[2],
|
|
797
|
-
n[1] + c * l /
|
|
798
|
-
n[2] - a * l /
|
|
801
|
+
n[1] + c * l / r,
|
|
802
|
+
n[2] - a * l / r,
|
|
799
803
|
n[3],
|
|
800
804
|
n[0],
|
|
801
|
-
n[3] - c * l /
|
|
805
|
+
n[3] - c * l / r
|
|
802
806
|
);
|
|
803
807
|
} else
|
|
804
808
|
e = [
|
|
@@ -815,108 +819,119 @@ function lt(n, t, r, s) {
|
|
|
815
819
|
const i = [], o = [];
|
|
816
820
|
for (let a = 0, c = e.length; a < c; a += 2)
|
|
817
821
|
i.push(e[a]), o.push(e[a + 1]);
|
|
818
|
-
return
|
|
822
|
+
return tt(i, o, s);
|
|
819
823
|
}
|
|
820
|
-
function
|
|
821
|
-
const
|
|
822
|
-
if (t.canWrapX() && (
|
|
823
|
-
const e =
|
|
824
|
-
(
|
|
824
|
+
function ut(n, t) {
|
|
825
|
+
const s = t.getExtent(), r = ot(n);
|
|
826
|
+
if (t.canWrapX() && (r[0] < s[0] || r[0] >= s[2])) {
|
|
827
|
+
const e = G(s), o = Math.floor(
|
|
828
|
+
(r[0] - s[0]) / e
|
|
825
829
|
) * e;
|
|
826
830
|
n[0] -= o, n[2] -= o;
|
|
827
831
|
}
|
|
828
832
|
return n;
|
|
829
833
|
}
|
|
830
|
-
function
|
|
834
|
+
function Ls(n, t, s) {
|
|
831
835
|
if (t.canWrapX()) {
|
|
832
|
-
const
|
|
836
|
+
const r = t.getExtent();
|
|
833
837
|
if (!isFinite(n[0]) || !isFinite(n[2]))
|
|
834
|
-
return [[
|
|
835
|
-
|
|
836
|
-
const e =
|
|
837
|
-
if (
|
|
838
|
-
return [[
|
|
839
|
-
if (n[0] <
|
|
838
|
+
return [[r[0], n[1], r[2], n[3]]];
|
|
839
|
+
ut(n, t);
|
|
840
|
+
const e = G(r);
|
|
841
|
+
if (G(n) > e && !s)
|
|
842
|
+
return [[r[0], n[1], r[2], n[3]]];
|
|
843
|
+
if (n[0] < r[0])
|
|
840
844
|
return [
|
|
841
|
-
[n[0] + e, n[1],
|
|
842
|
-
[
|
|
845
|
+
[n[0] + e, n[1], r[2], n[3]],
|
|
846
|
+
[r[0], n[1], n[2], n[3]]
|
|
843
847
|
];
|
|
844
|
-
if (n[2] >
|
|
848
|
+
if (n[2] > r[2])
|
|
845
849
|
return [
|
|
846
|
-
[n[0], n[1],
|
|
847
|
-
[
|
|
850
|
+
[n[0], n[1], r[2], n[3]],
|
|
851
|
+
[r[0], n[1], n[2] - e, n[3]]
|
|
848
852
|
];
|
|
849
853
|
}
|
|
850
854
|
return [n];
|
|
851
855
|
}
|
|
852
|
-
function
|
|
856
|
+
function As(n, t) {
|
|
853
857
|
return n[0] += +t[0], n[1] += +t[1], n;
|
|
854
858
|
}
|
|
855
|
-
function
|
|
856
|
-
const
|
|
859
|
+
function ht(n, t) {
|
|
860
|
+
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);
|
|
857
861
|
let g, d;
|
|
858
862
|
return u <= 0 ? (g = o, d = a) : u >= 1 ? (g = c, d = l) : (g = o + u * f, d = a + u * h), [g, d];
|
|
859
863
|
}
|
|
860
|
-
function
|
|
861
|
-
let
|
|
862
|
-
for (let
|
|
863
|
-
if (n[
|
|
864
|
-
|
|
864
|
+
function gt(n, t) {
|
|
865
|
+
let s = !0;
|
|
866
|
+
for (let r = n.length - 1; r >= 0; --r)
|
|
867
|
+
if (n[r] != t[r]) {
|
|
868
|
+
s = !1;
|
|
865
869
|
break;
|
|
866
870
|
}
|
|
867
|
-
return
|
|
871
|
+
return s;
|
|
868
872
|
}
|
|
869
|
-
function
|
|
870
|
-
const
|
|
873
|
+
function Us(n, t) {
|
|
874
|
+
const s = Math.cos(t), r = Math.sin(t), e = n[0] * s - n[1] * r, i = n[1] * s + n[0] * r;
|
|
871
875
|
return n[0] = e, n[1] = i, n;
|
|
872
876
|
}
|
|
873
|
-
function
|
|
877
|
+
function ps(n, t) {
|
|
874
878
|
return n[0] *= t, n[1] *= t, n;
|
|
875
879
|
}
|
|
876
|
-
function
|
|
877
|
-
const
|
|
878
|
-
return
|
|
880
|
+
function Nn(n, t) {
|
|
881
|
+
const s = n[0] - t[0], r = n[1] - t[1];
|
|
882
|
+
return s * s + r * r;
|
|
879
883
|
}
|
|
880
884
|
function bs(n, t) {
|
|
881
|
-
return Math.sqrt(
|
|
885
|
+
return Math.sqrt(Nn(n, t));
|
|
882
886
|
}
|
|
883
887
|
function Ns(n, t) {
|
|
884
|
-
return
|
|
888
|
+
return Nn(n, ht(n, t));
|
|
885
889
|
}
|
|
886
890
|
function Fs(n, t) {
|
|
887
891
|
if (t.canWrapX()) {
|
|
888
|
-
const
|
|
889
|
-
|
|
892
|
+
const s = G(t.getExtent()), r = dt(n, t, s);
|
|
893
|
+
r && (n[0] -= r * s);
|
|
890
894
|
}
|
|
891
895
|
return n;
|
|
892
896
|
}
|
|
893
|
-
function
|
|
894
|
-
const
|
|
897
|
+
function dt(n, t, s) {
|
|
898
|
+
const r = t.getExtent();
|
|
895
899
|
let e = 0;
|
|
896
|
-
return t.canWrapX() && (n[0] <
|
|
897
|
-
(n[0] -
|
|
900
|
+
return t.canWrapX() && (n[0] < r[0] || n[0] > r[2]) && (s = s || G(r), e = Math.floor(
|
|
901
|
+
(n[0] - r[0]) / s
|
|
898
902
|
)), e;
|
|
899
903
|
}
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
904
|
+
function Xs(n, t, s) {
|
|
905
|
+
const r = Math.sqrt(
|
|
906
|
+
(t[0] - n[0]) * (t[0] - n[0]) + (t[1] - n[1]) * (t[1] - n[1])
|
|
907
|
+
), e = [(t[0] - n[0]) / r, (t[1] - n[1]) / r], i = [-e[1], e[0]], o = Math.sqrt(
|
|
908
|
+
(s[0] - n[0]) * (s[0] - n[0]) + (s[1] - n[1]) * (s[1] - n[1])
|
|
909
|
+
), a = [(s[0] - n[0]) / o, (s[1] - n[1]) / o];
|
|
910
|
+
let c = r === 0 || o === 0 ? 0 : Math.acos(
|
|
911
|
+
xn(a[0] * e[0] + a[1] * e[1], -1, 1)
|
|
912
|
+
);
|
|
913
|
+
return c = Math.max(c, 1e-5), a[0] * i[0] + a[1] * i[1] > 0 ? c : Math.PI * 2 - c;
|
|
914
|
+
}
|
|
915
|
+
const sn = 63710088e-1;
|
|
916
|
+
function Mn(n, t, s) {
|
|
917
|
+
s = s || sn;
|
|
918
|
+
const r = M(n[1]), e = M(t[1]), i = (e - r) / 2, o = M(t[0] - n[0]) / 2, a = Math.sin(i) * Math.sin(i) + Math.sin(o) * Math.sin(o) * Math.cos(r) * Math.cos(e);
|
|
919
|
+
return 2 * s * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
|
|
905
920
|
}
|
|
906
921
|
function F(n, t) {
|
|
907
|
-
let
|
|
908
|
-
const
|
|
909
|
-
let e = n[
|
|
910
|
-
for (let o = 0; o <
|
|
922
|
+
let s = 0;
|
|
923
|
+
const r = n.length;
|
|
924
|
+
let e = n[r - 1][0], i = n[r - 1][1];
|
|
925
|
+
for (let o = 0; o < r; o++) {
|
|
911
926
|
const a = n[o][0], c = n[o][1];
|
|
912
|
-
|
|
927
|
+
s += M(a - e) * (2 + Math.sin(M(i)) + Math.sin(M(c))), e = a, i = c;
|
|
913
928
|
}
|
|
914
|
-
return
|
|
929
|
+
return s * t * t / 2;
|
|
915
930
|
}
|
|
916
|
-
function
|
|
931
|
+
function Et(n, t) {
|
|
917
932
|
t = t || {};
|
|
918
|
-
const
|
|
919
|
-
e !== "GeometryCollection" && (n = n.clone().transform(
|
|
933
|
+
const s = t.radius || sn, r = t.projection || "EPSG:3857", e = n.getType();
|
|
934
|
+
e !== "GeometryCollection" && (n = n.clone().transform(r, "EPSG:4326"));
|
|
920
935
|
let i = 0, o, a, c, l, f, h;
|
|
921
936
|
switch (e) {
|
|
922
937
|
case "Point":
|
|
@@ -927,15 +942,15 @@ function dt(n, t) {
|
|
|
927
942
|
break;
|
|
928
943
|
case "Polygon": {
|
|
929
944
|
for (o = /** @type {import("./geom/Polygon.js").default} */
|
|
930
|
-
n.getCoordinates(), i = Math.abs(F(o[0],
|
|
931
|
-
i -= Math.abs(F(o[c],
|
|
945
|
+
n.getCoordinates(), i = Math.abs(F(o[0], s)), c = 1, l = o.length; c < l; ++c)
|
|
946
|
+
i -= Math.abs(F(o[c], s));
|
|
932
947
|
break;
|
|
933
948
|
}
|
|
934
949
|
case "MultiPolygon": {
|
|
935
950
|
for (o = /** @type {import("./geom/SimpleGeometry.js").default} */
|
|
936
951
|
n.getCoordinates(), c = 0, l = o.length; c < l; ++c)
|
|
937
|
-
for (a = o[c], i += Math.abs(F(a[0],
|
|
938
|
-
i -= Math.abs(F(a[f],
|
|
952
|
+
for (a = o[c], i += Math.abs(F(a[0], s)), f = 1, h = a.length; f < h; ++f)
|
|
953
|
+
i -= Math.abs(F(a[f], s));
|
|
939
954
|
break;
|
|
940
955
|
}
|
|
941
956
|
case "GeometryCollection": {
|
|
@@ -944,7 +959,7 @@ function dt(n, t) {
|
|
|
944
959
|
n.getGeometries()
|
|
945
960
|
);
|
|
946
961
|
for (c = 0, l = u.length; c < l; ++c)
|
|
947
|
-
i +=
|
|
962
|
+
i += Et(u[c], t);
|
|
948
963
|
break;
|
|
949
964
|
}
|
|
950
965
|
default:
|
|
@@ -952,10 +967,20 @@ function dt(n, t) {
|
|
|
952
967
|
}
|
|
953
968
|
return i;
|
|
954
969
|
}
|
|
955
|
-
function
|
|
970
|
+
function Ws(n, t, s, r) {
|
|
971
|
+
r = r || sn;
|
|
972
|
+
const e = M(n[1]), i = M(n[0]), o = t / r, a = Math.asin(
|
|
973
|
+
Math.sin(e) * Math.cos(o) + Math.cos(e) * Math.sin(o) * Math.cos(s)
|
|
974
|
+
), c = i + Math.atan2(
|
|
975
|
+
Math.sin(s) * Math.sin(o) * Math.cos(e),
|
|
976
|
+
Math.cos(o) - Math.sin(e) * Math.sin(a)
|
|
977
|
+
);
|
|
978
|
+
return [W(c), W(a)];
|
|
979
|
+
}
|
|
980
|
+
function Mt(...n) {
|
|
956
981
|
console.warn(...n);
|
|
957
982
|
}
|
|
958
|
-
const
|
|
983
|
+
const J = {
|
|
959
984
|
// use the radius of the Normal sphere
|
|
960
985
|
radians: 6370997 / (2 * Math.PI),
|
|
961
986
|
degrees: 2 * Math.PI * 6370997 / 360,
|
|
@@ -963,7 +988,7 @@ const k = {
|
|
|
963
988
|
m: 1,
|
|
964
989
|
"us-ft": 1200 / 3937
|
|
965
990
|
};
|
|
966
|
-
class
|
|
991
|
+
class rn {
|
|
967
992
|
/**
|
|
968
993
|
* @param {Options} options Projection options.
|
|
969
994
|
*/
|
|
@@ -1009,7 +1034,7 @@ class tn {
|
|
|
1009
1034
|
* @api
|
|
1010
1035
|
*/
|
|
1011
1036
|
getMetersPerUnit() {
|
|
1012
|
-
return this.metersPerUnit_ ||
|
|
1037
|
+
return this.metersPerUnit_ || J[this.units_];
|
|
1013
1038
|
}
|
|
1014
1039
|
/**
|
|
1015
1040
|
* Get the world extent for this projection.
|
|
@@ -1096,8 +1121,8 @@ class tn {
|
|
|
1096
1121
|
return this.getPointResolutionFunc_;
|
|
1097
1122
|
}
|
|
1098
1123
|
}
|
|
1099
|
-
const
|
|
1100
|
-
class
|
|
1124
|
+
const p = 6378137, I = Math.PI * p, Pt = [-I, -I, I, I], _t = [-180, -85, 180, 85], X = p * Math.log(Math.tan(Math.PI / 2));
|
|
1125
|
+
class C extends rn {
|
|
1101
1126
|
/**
|
|
1102
1127
|
* @param {string} code Code.
|
|
1103
1128
|
*/
|
|
@@ -1108,51 +1133,51 @@ class R extends tn {
|
|
|
1108
1133
|
extent: Pt,
|
|
1109
1134
|
global: !0,
|
|
1110
1135
|
worldExtent: _t,
|
|
1111
|
-
getPointResolution: function(
|
|
1112
|
-
return
|
|
1136
|
+
getPointResolution: function(s, r) {
|
|
1137
|
+
return s / Math.cosh(r[1] / p);
|
|
1113
1138
|
}
|
|
1114
1139
|
});
|
|
1115
1140
|
}
|
|
1116
1141
|
}
|
|
1117
1142
|
const Pn = [
|
|
1118
|
-
new
|
|
1119
|
-
new
|
|
1120
|
-
new
|
|
1121
|
-
new
|
|
1122
|
-
new
|
|
1123
|
-
new
|
|
1143
|
+
new C("EPSG:3857"),
|
|
1144
|
+
new C("EPSG:102100"),
|
|
1145
|
+
new C("EPSG:102113"),
|
|
1146
|
+
new C("EPSG:900913"),
|
|
1147
|
+
new C("http://www.opengis.net/def/crs/EPSG/0/3857"),
|
|
1148
|
+
new C("http://www.opengis.net/gml/srs/epsg.xml#3857")
|
|
1124
1149
|
];
|
|
1125
|
-
function mt(n, t,
|
|
1150
|
+
function mt(n, t, s, r) {
|
|
1126
1151
|
const e = n.length;
|
|
1127
|
-
|
|
1128
|
-
for (let i = 0; i < e; i +=
|
|
1129
|
-
t[i] =
|
|
1130
|
-
let o =
|
|
1152
|
+
s = s > 1 ? s : 2, r = r ?? s, t === void 0 && (s > 2 ? t = n.slice() : t = new Array(e));
|
|
1153
|
+
for (let i = 0; i < e; i += r) {
|
|
1154
|
+
t[i] = I * n[i] / 180;
|
|
1155
|
+
let o = p * Math.log(Math.tan(Math.PI * (+n[i + 1] + 90) / 360));
|
|
1131
1156
|
o > X ? o = X : o < -X && (o = -X), t[i + 1] = o;
|
|
1132
1157
|
}
|
|
1133
1158
|
return t;
|
|
1134
1159
|
}
|
|
1135
|
-
function wt(n, t,
|
|
1160
|
+
function wt(n, t, s, r) {
|
|
1136
1161
|
const e = n.length;
|
|
1137
|
-
|
|
1138
|
-
for (let i = 0; i < e; i +=
|
|
1139
|
-
t[i] = 180 * n[i] /
|
|
1162
|
+
s = s > 1 ? s : 2, r = r ?? s, t === void 0 && (s > 2 ? t = n.slice() : t = new Array(e));
|
|
1163
|
+
for (let i = 0; i < e; i += r)
|
|
1164
|
+
t[i] = 180 * n[i] / I, t[i + 1] = 360 * Math.atan(Math.exp(n[i + 1] / p)) / Math.PI - 90;
|
|
1140
1165
|
return t;
|
|
1141
1166
|
}
|
|
1142
|
-
const
|
|
1143
|
-
class v extends
|
|
1167
|
+
const Tt = 6378137, _n = [-180, -90, 180, 90], yt = Math.PI * Tt / 180;
|
|
1168
|
+
class v extends rn {
|
|
1144
1169
|
/**
|
|
1145
1170
|
* @param {string} code Code.
|
|
1146
1171
|
* @param {string} [axisOrientation] Axis orientation.
|
|
1147
1172
|
*/
|
|
1148
|
-
constructor(t,
|
|
1173
|
+
constructor(t, s) {
|
|
1149
1174
|
super({
|
|
1150
1175
|
code: t,
|
|
1151
1176
|
units: "degrees",
|
|
1152
1177
|
extent: _n,
|
|
1153
|
-
axisOrientation:
|
|
1178
|
+
axisOrientation: s,
|
|
1154
1179
|
global: !0,
|
|
1155
|
-
metersPerUnit:
|
|
1180
|
+
metersPerUnit: yt,
|
|
1156
1181
|
worldExtent: _n
|
|
1157
1182
|
});
|
|
1158
1183
|
}
|
|
@@ -1166,49 +1191,49 @@ const mn = [
|
|
|
1166
1191
|
new v("http://www.opengis.net/gml/srs/epsg.xml#4326", "neu"),
|
|
1167
1192
|
new v("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
|
|
1168
1193
|
];
|
|
1169
|
-
let
|
|
1170
|
-
function
|
|
1171
|
-
return
|
|
1172
|
-
}
|
|
1173
|
-
function
|
|
1174
|
-
|
|
1175
|
-
}
|
|
1176
|
-
let
|
|
1177
|
-
function
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1180
|
-
}
|
|
1181
|
-
function
|
|
1182
|
-
return n in
|
|
1183
|
-
}
|
|
1184
|
-
const
|
|
1185
|
-
function
|
|
1186
|
-
const
|
|
1187
|
-
let
|
|
1188
|
-
return
|
|
1189
|
-
|
|
1194
|
+
let Q = {};
|
|
1195
|
+
function vt(n) {
|
|
1196
|
+
return Q[n] || Q[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
|
|
1197
|
+
}
|
|
1198
|
+
function Rt(n, t) {
|
|
1199
|
+
Q[n] = t;
|
|
1200
|
+
}
|
|
1201
|
+
let O = {};
|
|
1202
|
+
function S(n, t, s) {
|
|
1203
|
+
const r = n.getCode(), e = t.getCode();
|
|
1204
|
+
r in O || (O[r] = {}), O[r][e] = s;
|
|
1205
|
+
}
|
|
1206
|
+
function V(n, t) {
|
|
1207
|
+
return n in O && t in O[n] ? O[n][t] : null;
|
|
1208
|
+
}
|
|
1209
|
+
const D = 0.9996, P = 669438e-8, Y = P * P, H = Y * P, R = P / (1 - P), wn = Math.sqrt(1 - P), L = (1 - wn) / (1 + wn), Fn = L * L, en = Fn * L, on = en * L, Xn = on * L, Wn = 1 - P / 4 - 3 * Y / 64 - 5 * H / 256, St = 3 * P / 8 + 3 * Y / 32 + 45 * H / 1024, Ct = 15 * Y / 256 + 45 * H / 1024, It = 35 * H / 3072, Ot = 3 / 2 * L - 27 / 32 * en + 269 / 512 * Xn, Gt = 21 / 16 * Fn - 55 / 32 * on, Lt = 151 / 96 * en - 417 / 128 * Xn, At = 1097 / 512 * on, $ = 6378137;
|
|
1210
|
+
function Ut(n, t, s) {
|
|
1211
|
+
const r = n - 5e5, o = (s.north ? t : t - 1e7) / D / ($ * Wn), a = o + Ot * Math.sin(2 * o) + Gt * Math.sin(4 * o) + Lt * Math.sin(6 * o) + At * 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 - P * l, _ = Math.sqrt(1 - P * l), m = $ / _, b = (1 - P) / d, T = R * f ** 2, A = T * T, y = r / (m * D), N = y * y, U = N * y, ln = U * y, fn = ln * y, Bn = fn * y, Yn = a - h / b * (N / 2 - ln / 24 * (5 + 3 * u + 10 * T - 4 * A - 9 * R)) + Bn / 720 * (61 + 90 * u + 298 * T + 45 * g - 252 * R - 3 * A);
|
|
1212
|
+
let K = (y - U / 6 * (1 + 2 * u + T) + fn / 120 * (5 - 2 * T + 28 * u - 3 * A + 8 * R + 24 * g)) / f;
|
|
1213
|
+
return K = z(
|
|
1214
|
+
K + M(Dn(s.number)),
|
|
1190
1215
|
-Math.PI,
|
|
1191
1216
|
Math.PI
|
|
1192
|
-
), [
|
|
1217
|
+
), [W(K), W(Yn)];
|
|
1193
1218
|
}
|
|
1194
|
-
const
|
|
1195
|
-
function
|
|
1196
|
-
n = z(n,
|
|
1197
|
-
const
|
|
1198
|
-
let
|
|
1199
|
-
return
|
|
1219
|
+
const Tn = -80, yn = 84, pt = -180, bt = 180;
|
|
1220
|
+
function Nt(n, t, s) {
|
|
1221
|
+
n = z(n, pt, bt), t < Tn ? t = Tn : t > yn && (t = yn);
|
|
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 = Dn(s.number), h = M(f), u = $ / Math.sqrt(1 - P * e ** 2), g = R * i ** 2, d = i * z(l - h, -Math.PI, Math.PI), _ = d * d, m = _ * d, b = m * d, T = b * d, A = T * d, y = $ * (Wn * r - St * Math.sin(2 * r) + Ct * Math.sin(4 * r) - It * Math.sin(6 * r)), N = D * u * (d + m / 6 * (1 - a + g) + T / 120 * (5 - 18 * a + c + 72 * g - 58 * R)) + 5e5;
|
|
1223
|
+
let U = D * (y + u * o * (_ / 2 + b / 24 * (5 - a + 9 * g + 4 * g ** 2) + A / 720 * (61 - 58 * a + c + 600 * g - 330 * R)));
|
|
1224
|
+
return s.north || (U += 1e7), [N, U];
|
|
1200
1225
|
}
|
|
1201
1226
|
function Dn(n) {
|
|
1202
1227
|
return (n - 1) * 6 - 180 + 3;
|
|
1203
1228
|
}
|
|
1204
|
-
const
|
|
1229
|
+
const Ft = [
|
|
1205
1230
|
/^EPSG:(\d+)$/,
|
|
1206
1231
|
/^urn:ogc:def:crs:EPSG::(\d+)$/,
|
|
1207
1232
|
/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
|
|
1208
1233
|
];
|
|
1209
1234
|
function $n(n) {
|
|
1210
1235
|
let t = 0;
|
|
1211
|
-
for (const e of
|
|
1236
|
+
for (const e of Ft) {
|
|
1212
1237
|
const i = n.match(e);
|
|
1213
1238
|
if (i) {
|
|
1214
1239
|
t = parseInt(i[1]);
|
|
@@ -1217,123 +1242,131 @@ function $n(n) {
|
|
|
1217
1242
|
}
|
|
1218
1243
|
if (!t)
|
|
1219
1244
|
return null;
|
|
1220
|
-
let
|
|
1221
|
-
return t > 32700 && t < 32761 ?
|
|
1245
|
+
let s = 0, r = !1;
|
|
1246
|
+
return t > 32700 && t < 32761 ? s = t - 32700 : t > 32600 && t < 32661 && (r = !0, s = t - 32600), s ? { number: s, north: r } : null;
|
|
1222
1247
|
}
|
|
1223
|
-
function
|
|
1224
|
-
return function(
|
|
1225
|
-
const o =
|
|
1226
|
-
e = e > 1 ? e : 2, i = i ?? e,
|
|
1248
|
+
function vn(n, t) {
|
|
1249
|
+
return function(s, r, e, i) {
|
|
1250
|
+
const o = s.length;
|
|
1251
|
+
e = e > 1 ? e : 2, i = i ?? e, r || (e > 2 ? r = s.slice() : r = new Array(o));
|
|
1227
1252
|
for (let a = 0; a < o; a += i) {
|
|
1228
|
-
const c =
|
|
1229
|
-
|
|
1253
|
+
const c = s[a], l = s[a + 1], f = n(c, l, t);
|
|
1254
|
+
r[a] = f[0], r[a + 1] = f[1];
|
|
1230
1255
|
}
|
|
1231
|
-
return
|
|
1256
|
+
return r;
|
|
1232
1257
|
};
|
|
1233
1258
|
}
|
|
1234
|
-
function Ft(n) {
|
|
1235
|
-
return $n(n) ? new tn({ code: n, units: "m" }) : null;
|
|
1236
|
-
}
|
|
1237
1259
|
function Xt(n) {
|
|
1260
|
+
return $n(n) ? new rn({ code: n, units: "m" }) : null;
|
|
1261
|
+
}
|
|
1262
|
+
function Wt(n) {
|
|
1238
1263
|
const t = $n(n.getCode());
|
|
1239
1264
|
return t ? {
|
|
1240
|
-
forward:
|
|
1241
|
-
inverse:
|
|
1265
|
+
forward: vn(Nt, t),
|
|
1266
|
+
inverse: vn(Ut, t)
|
|
1242
1267
|
} : null;
|
|
1243
1268
|
}
|
|
1244
|
-
const
|
|
1245
|
-
let
|
|
1246
|
-
function
|
|
1247
|
-
|
|
1269
|
+
const Dt = [Wt], $t = [Xt];
|
|
1270
|
+
let Z = !0;
|
|
1271
|
+
function qt(n) {
|
|
1272
|
+
Z = !1;
|
|
1248
1273
|
}
|
|
1249
|
-
function
|
|
1274
|
+
function an(n, t) {
|
|
1250
1275
|
if (t !== void 0) {
|
|
1251
|
-
for (let
|
|
1252
|
-
t[
|
|
1276
|
+
for (let s = 0, r = n.length; s < r; ++s)
|
|
1277
|
+
t[s] = n[s];
|
|
1253
1278
|
t = t;
|
|
1254
1279
|
} else
|
|
1255
1280
|
t = n.slice();
|
|
1256
1281
|
return t;
|
|
1257
1282
|
}
|
|
1258
|
-
function
|
|
1259
|
-
|
|
1283
|
+
function Ds(n, t) {
|
|
1284
|
+
if (t !== void 0 && n !== t) {
|
|
1285
|
+
for (let s = 0, r = n.length; s < r; ++s)
|
|
1286
|
+
t[s] = n[s];
|
|
1287
|
+
n = t;
|
|
1288
|
+
}
|
|
1289
|
+
return n;
|
|
1260
1290
|
}
|
|
1261
|
-
function
|
|
1262
|
-
n.
|
|
1291
|
+
function x(n) {
|
|
1292
|
+
Rt(n.getCode(), n), S(n, n, an);
|
|
1263
1293
|
}
|
|
1264
|
-
function
|
|
1294
|
+
function Bt(n) {
|
|
1295
|
+
n.forEach(x);
|
|
1296
|
+
}
|
|
1297
|
+
function w(n) {
|
|
1265
1298
|
if (typeof n != "string")
|
|
1266
1299
|
return n;
|
|
1267
|
-
const t =
|
|
1300
|
+
const t = vt(n);
|
|
1268
1301
|
if (t)
|
|
1269
1302
|
return t;
|
|
1270
|
-
for (const
|
|
1271
|
-
const
|
|
1272
|
-
if (
|
|
1273
|
-
return
|
|
1303
|
+
for (const s of $t) {
|
|
1304
|
+
const r = s(n);
|
|
1305
|
+
if (r)
|
|
1306
|
+
return r;
|
|
1274
1307
|
}
|
|
1275
1308
|
return null;
|
|
1276
1309
|
}
|
|
1277
|
-
function
|
|
1278
|
-
n =
|
|
1310
|
+
function $s(n, t, s, r) {
|
|
1311
|
+
n = w(n);
|
|
1279
1312
|
let e;
|
|
1280
1313
|
const i = n.getPointResolutionFunc();
|
|
1281
1314
|
if (i) {
|
|
1282
|
-
if (e = i(t,
|
|
1315
|
+
if (e = i(t, s), r && r !== n.getUnits()) {
|
|
1283
1316
|
const o = n.getMetersPerUnit();
|
|
1284
|
-
o && (e = e * o /
|
|
1317
|
+
o && (e = e * o / J[r]);
|
|
1285
1318
|
}
|
|
1286
1319
|
} else {
|
|
1287
1320
|
const o = n.getUnits();
|
|
1288
|
-
if (o == "degrees" && !
|
|
1321
|
+
if (o == "degrees" && !r || r == "degrees")
|
|
1289
1322
|
e = t;
|
|
1290
1323
|
else {
|
|
1291
|
-
const a =
|
|
1324
|
+
const a = cn(
|
|
1292
1325
|
n,
|
|
1293
|
-
|
|
1326
|
+
w("EPSG:4326")
|
|
1294
1327
|
);
|
|
1295
1328
|
if (!a && o !== "degrees")
|
|
1296
1329
|
e = t * n.getMetersPerUnit();
|
|
1297
1330
|
else {
|
|
1298
1331
|
let l = [
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1332
|
+
s[0] - t / 2,
|
|
1333
|
+
s[1],
|
|
1334
|
+
s[0] + t / 2,
|
|
1335
|
+
s[1],
|
|
1336
|
+
s[0],
|
|
1337
|
+
s[1] - t / 2,
|
|
1338
|
+
s[0],
|
|
1339
|
+
s[1] + t / 2
|
|
1307
1340
|
];
|
|
1308
1341
|
l = a(l, l, 2);
|
|
1309
|
-
const f =
|
|
1342
|
+
const f = Mn(l.slice(0, 2), l.slice(2, 4)), h = Mn(l.slice(4, 6), l.slice(6, 8));
|
|
1310
1343
|
e = (f + h) / 2;
|
|
1311
1344
|
}
|
|
1312
|
-
const c =
|
|
1345
|
+
const c = r ? J[r] : n.getMetersPerUnit();
|
|
1313
1346
|
c !== void 0 && (e /= c);
|
|
1314
1347
|
}
|
|
1315
1348
|
}
|
|
1316
1349
|
return e;
|
|
1317
1350
|
}
|
|
1318
|
-
function
|
|
1319
|
-
|
|
1320
|
-
n.forEach(function(
|
|
1321
|
-
t !==
|
|
1351
|
+
function Rn(n) {
|
|
1352
|
+
Bt(n), n.forEach(function(t) {
|
|
1353
|
+
n.forEach(function(s) {
|
|
1354
|
+
t !== s && S(t, s, an);
|
|
1322
1355
|
});
|
|
1323
1356
|
});
|
|
1324
1357
|
}
|
|
1325
|
-
function
|
|
1358
|
+
function Yt(n, t, s, r) {
|
|
1326
1359
|
n.forEach(function(e) {
|
|
1327
1360
|
t.forEach(function(i) {
|
|
1328
|
-
|
|
1361
|
+
S(e, i, s), S(i, e, r);
|
|
1329
1362
|
});
|
|
1330
1363
|
});
|
|
1331
1364
|
}
|
|
1332
|
-
function
|
|
1333
|
-
return n ? typeof n == "string" ?
|
|
1365
|
+
function qs(n, t) {
|
|
1366
|
+
return n ? typeof n == "string" ? w(n) : (
|
|
1334
1367
|
/** @type {Projection} */
|
|
1335
1368
|
n
|
|
1336
|
-
) :
|
|
1369
|
+
) : w(t);
|
|
1337
1370
|
}
|
|
1338
1371
|
function Sn(n) {
|
|
1339
1372
|
return (
|
|
@@ -1344,241 +1377,244 @@ function Sn(n) {
|
|
|
1344
1377
|
* @param {number} [stride] Stride.
|
|
1345
1378
|
* @return {Array<number>} Output.
|
|
1346
1379
|
*/
|
|
1347
|
-
(function(t,
|
|
1380
|
+
(function(t, s, r, e) {
|
|
1348
1381
|
const i = t.length;
|
|
1349
|
-
|
|
1382
|
+
r = r !== void 0 ? r : 2, e = e ?? r, s = s !== void 0 ? s : new Array(i);
|
|
1350
1383
|
for (let o = 0; o < i; o += e) {
|
|
1351
|
-
const a = n(t.slice(o, o +
|
|
1384
|
+
const a = n(t.slice(o, o + r)), c = a.length;
|
|
1352
1385
|
for (let l = 0, f = e; l < f; ++l)
|
|
1353
|
-
|
|
1386
|
+
s[o + l] = l >= c ? t[o + l] : a[l];
|
|
1354
1387
|
}
|
|
1355
|
-
return
|
|
1388
|
+
return s;
|
|
1356
1389
|
})
|
|
1357
1390
|
);
|
|
1358
1391
|
}
|
|
1359
|
-
function
|
|
1360
|
-
const e =
|
|
1361
|
-
|
|
1392
|
+
function Bs(n, t, s, r) {
|
|
1393
|
+
const e = w(n), i = w(t);
|
|
1394
|
+
S(
|
|
1362
1395
|
e,
|
|
1363
1396
|
i,
|
|
1364
|
-
Sn(
|
|
1365
|
-
),
|
|
1397
|
+
Sn(s)
|
|
1398
|
+
), S(
|
|
1366
1399
|
i,
|
|
1367
1400
|
e,
|
|
1368
|
-
Sn(
|
|
1401
|
+
Sn(r)
|
|
1369
1402
|
);
|
|
1370
1403
|
}
|
|
1371
|
-
function
|
|
1372
|
-
return
|
|
1404
|
+
function Ys(n, t) {
|
|
1405
|
+
return qt(), Ht(
|
|
1373
1406
|
n,
|
|
1374
1407
|
"EPSG:4326",
|
|
1375
1408
|
t !== void 0 ? t : "EPSG:3857"
|
|
1376
1409
|
);
|
|
1377
1410
|
}
|
|
1378
|
-
function
|
|
1411
|
+
function Hs(n, t) {
|
|
1379
1412
|
if (n === t)
|
|
1380
1413
|
return !0;
|
|
1381
|
-
const
|
|
1382
|
-
return (n.getCode() === t.getCode() ||
|
|
1414
|
+
const s = n.getUnits() === t.getUnits();
|
|
1415
|
+
return (n.getCode() === t.getCode() || cn(n, t) === an) && s;
|
|
1383
1416
|
}
|
|
1384
|
-
function
|
|
1385
|
-
const
|
|
1386
|
-
let e =
|
|
1417
|
+
function cn(n, t) {
|
|
1418
|
+
const s = n.getCode(), r = t.getCode();
|
|
1419
|
+
let e = V(s, r);
|
|
1387
1420
|
if (e)
|
|
1388
1421
|
return e;
|
|
1389
1422
|
let i = null, o = null;
|
|
1390
|
-
for (const c of
|
|
1423
|
+
for (const c of Dt)
|
|
1391
1424
|
i || (i = c(n)), o || (o = c(t));
|
|
1392
1425
|
if (!i && !o)
|
|
1393
1426
|
return null;
|
|
1394
1427
|
const a = "EPSG:4326";
|
|
1395
1428
|
if (o)
|
|
1396
1429
|
if (i)
|
|
1397
|
-
e =
|
|
1430
|
+
e = j(
|
|
1398
1431
|
i.inverse,
|
|
1399
1432
|
o.forward
|
|
1400
1433
|
);
|
|
1401
1434
|
else {
|
|
1402
|
-
const c =
|
|
1403
|
-
c && (e =
|
|
1435
|
+
const c = V(s, a);
|
|
1436
|
+
c && (e = j(
|
|
1404
1437
|
c,
|
|
1405
1438
|
o.forward
|
|
1406
1439
|
));
|
|
1407
1440
|
}
|
|
1408
1441
|
else {
|
|
1409
|
-
const c =
|
|
1410
|
-
c && (e =
|
|
1442
|
+
const c = V(a, r);
|
|
1443
|
+
c && (e = j(
|
|
1411
1444
|
i.inverse,
|
|
1412
1445
|
c
|
|
1413
1446
|
));
|
|
1414
1447
|
}
|
|
1415
|
-
return e && (
|
|
1448
|
+
return e && (x(n), x(t), S(n, t, e)), e;
|
|
1416
1449
|
}
|
|
1417
|
-
function
|
|
1418
|
-
return function(
|
|
1419
|
-
return
|
|
1450
|
+
function j(n, t) {
|
|
1451
|
+
return function(s, r, e, i) {
|
|
1452
|
+
return r = n(s, r, e, i), t(r, r, e, i);
|
|
1420
1453
|
};
|
|
1421
1454
|
}
|
|
1422
1455
|
function qn(n, t) {
|
|
1423
|
-
const
|
|
1424
|
-
return
|
|
1456
|
+
const s = w(n), r = w(t);
|
|
1457
|
+
return cn(s, r);
|
|
1425
1458
|
}
|
|
1426
|
-
function
|
|
1427
|
-
const
|
|
1428
|
-
if (!
|
|
1429
|
-
const e =
|
|
1459
|
+
function Ht(n, t, s) {
|
|
1460
|
+
const r = qn(t, s);
|
|
1461
|
+
if (!r) {
|
|
1462
|
+
const e = w(t).getCode(), i = w(s).getCode();
|
|
1430
1463
|
throw new Error(
|
|
1431
1464
|
`No transform available between ${e} and ${i}`
|
|
1432
1465
|
);
|
|
1433
1466
|
}
|
|
1434
|
-
return
|
|
1467
|
+
return r(n, void 0, n.length);
|
|
1435
1468
|
}
|
|
1436
|
-
function
|
|
1437
|
-
const e = qn(t,
|
|
1438
|
-
return
|
|
1469
|
+
function Ks(n, t, s, r) {
|
|
1470
|
+
const e = qn(t, s);
|
|
1471
|
+
return ft(n, e, void 0, r);
|
|
1439
1472
|
}
|
|
1440
|
-
let
|
|
1441
|
-
function
|
|
1442
|
-
return
|
|
1473
|
+
let Kt = null;
|
|
1474
|
+
function Vs() {
|
|
1475
|
+
return Kt;
|
|
1443
1476
|
}
|
|
1444
|
-
function
|
|
1477
|
+
function js(n, t) {
|
|
1445
1478
|
return n;
|
|
1446
1479
|
}
|
|
1447
|
-
function
|
|
1448
|
-
return
|
|
1480
|
+
function ks(n, t) {
|
|
1481
|
+
return Z && !gt(n, [0, 0]) && n[0] >= -180 && n[0] <= 180 && n[1] >= -90 && n[1] <= 90 && (Z = !1, Mt(
|
|
1449
1482
|
"Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates."
|
|
1450
1483
|
)), n;
|
|
1451
1484
|
}
|
|
1452
|
-
function
|
|
1485
|
+
function zs(n, t) {
|
|
1453
1486
|
return n;
|
|
1454
1487
|
}
|
|
1455
|
-
function
|
|
1488
|
+
function Js(n, t) {
|
|
1456
1489
|
return n;
|
|
1457
1490
|
}
|
|
1458
|
-
function
|
|
1491
|
+
function Qs(n, t) {
|
|
1459
1492
|
return n;
|
|
1460
1493
|
}
|
|
1461
|
-
function
|
|
1462
|
-
|
|
1494
|
+
function Vt() {
|
|
1495
|
+
Rn(Pn), Rn(mn), Yt(
|
|
1463
1496
|
mn,
|
|
1464
1497
|
Pn,
|
|
1465
1498
|
mt,
|
|
1466
1499
|
wt
|
|
1467
1500
|
);
|
|
1468
1501
|
}
|
|
1469
|
-
|
|
1502
|
+
Vt();
|
|
1470
1503
|
export {
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1504
|
+
Xs as $,
|
|
1505
|
+
ts as A,
|
|
1506
|
+
es as B,
|
|
1507
|
+
ws as C,
|
|
1508
|
+
B as D,
|
|
1509
|
+
Vn as E,
|
|
1510
|
+
Ls as F,
|
|
1511
|
+
On as G,
|
|
1512
|
+
bn as H,
|
|
1513
|
+
G as I,
|
|
1514
|
+
zt as J,
|
|
1515
|
+
us as K,
|
|
1516
|
+
Ss as L,
|
|
1517
|
+
J as M,
|
|
1518
|
+
ls as N,
|
|
1486
1519
|
Hn as O,
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1520
|
+
fs as P,
|
|
1521
|
+
Ht as Q,
|
|
1522
|
+
as as R,
|
|
1523
|
+
ys as S,
|
|
1524
|
+
xt as T,
|
|
1525
|
+
Ms as U,
|
|
1526
|
+
gn as V,
|
|
1527
|
+
En as W,
|
|
1528
|
+
E as X,
|
|
1529
|
+
Jt as Y,
|
|
1530
|
+
kn as Z,
|
|
1531
|
+
ds as _,
|
|
1499
1532
|
Zn as a,
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1533
|
+
rt as a0,
|
|
1534
|
+
In as a1,
|
|
1535
|
+
kt as a2,
|
|
1536
|
+
nn as a3,
|
|
1537
|
+
cn as a4,
|
|
1538
|
+
Vs as a5,
|
|
1539
|
+
xn as a6,
|
|
1540
|
+
Fs as a7,
|
|
1541
|
+
ut as a8,
|
|
1542
|
+
tn as a9,
|
|
1543
|
+
An as aA,
|
|
1544
|
+
Os as aB,
|
|
1545
|
+
un as aC,
|
|
1546
|
+
zn as aD,
|
|
1547
|
+
Cn as aE,
|
|
1548
|
+
ps as aF,
|
|
1549
|
+
Us as aG,
|
|
1550
|
+
jn as aH,
|
|
1551
|
+
Mt as aI,
|
|
1552
|
+
q as aJ,
|
|
1553
|
+
pn as aK,
|
|
1554
|
+
Ln as aL,
|
|
1555
|
+
at as aM,
|
|
1556
|
+
Is as aN,
|
|
1557
|
+
is as aO,
|
|
1558
|
+
Ws as aP,
|
|
1559
|
+
qs as aQ,
|
|
1560
|
+
As as aR,
|
|
1561
|
+
qt as aS,
|
|
1562
|
+
Zt as aT,
|
|
1563
|
+
Rs as aU,
|
|
1564
|
+
os as aV,
|
|
1565
|
+
Sn as aW,
|
|
1566
|
+
vs as aX,
|
|
1567
|
+
et as aY,
|
|
1568
|
+
Gs as aZ,
|
|
1569
|
+
Ts as aa,
|
|
1570
|
+
bs as ab,
|
|
1571
|
+
ns as ac,
|
|
1572
|
+
ks as ad,
|
|
1573
|
+
Nn as ae,
|
|
1574
|
+
hs as af,
|
|
1575
|
+
gt as ag,
|
|
1576
|
+
ht as ah,
|
|
1577
|
+
js as ai,
|
|
1578
|
+
Ns as aj,
|
|
1543
1579
|
qn as ak,
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1580
|
+
rs as al,
|
|
1581
|
+
M as am,
|
|
1582
|
+
Un as an,
|
|
1583
|
+
ft as ao,
|
|
1584
|
+
rn as ap,
|
|
1585
|
+
Ds as aq,
|
|
1586
|
+
ss as ar,
|
|
1587
|
+
Ys as as,
|
|
1588
|
+
Jn as at,
|
|
1589
|
+
x as au,
|
|
1590
|
+
V as av,
|
|
1591
|
+
Rn as aw,
|
|
1592
|
+
Bs as ax,
|
|
1593
|
+
Et as ay,
|
|
1594
|
+
Mn as az,
|
|
1559
1595
|
gs as b,
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
q,
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1596
|
+
Ps as c,
|
|
1597
|
+
Cs as d,
|
|
1598
|
+
Hs as e,
|
|
1599
|
+
Kn as f,
|
|
1600
|
+
$s as g,
|
|
1601
|
+
Qs as h,
|
|
1602
|
+
lt as i,
|
|
1603
|
+
Js as j,
|
|
1604
|
+
zs as k,
|
|
1605
|
+
k as l,
|
|
1606
|
+
cs as m,
|
|
1607
|
+
jt as n,
|
|
1608
|
+
Qt as o,
|
|
1609
|
+
Es as p,
|
|
1610
|
+
st as q,
|
|
1611
|
+
ms as r,
|
|
1612
|
+
nt as s,
|
|
1613
|
+
Ks as t,
|
|
1614
|
+
hn as u,
|
|
1615
|
+
Gn as v,
|
|
1616
|
+
_s as w,
|
|
1617
|
+
ot as x,
|
|
1618
|
+
w as y,
|
|
1619
|
+
ct as z
|
|
1584
1620
|
};
|