@edugis-org/webmapx 0.1.0

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.
Files changed (84) hide show
  1. package/README.md +149 -0
  2. package/dist-lib/WMTS-DCN4zX0-.js +1169 -0
  3. package/dist-lib/alert-GeHlqlN8.js +310 -0
  4. package/dist-lib/assets/epsg-lookup.worker-J7TVnHDq.js +1 -0
  5. package/dist-lib/assets/shapefile.worker-kQfZj6G2.js +4 -0
  6. package/dist-lib/attribution-format-B4f05_u0.js +62 -0
  7. package/dist-lib/button-DFdGkRPQ.js +741 -0
  8. package/dist-lib/cesium-adapter-BHXNytkU.js +1488 -0
  9. package/dist-lib/checkbox-QoR4S8tV.js +284 -0
  10. package/dist-lib/chunk-HEgqtunE.js +20 -0
  11. package/dist-lib/chunk.36O46B5H-B6ZL7Sm1.js +77 -0
  12. package/dist-lib/chunk.3RPBFEDE-BFO1fHVm.js +138 -0
  13. package/dist-lib/chunk.5JY5FUCG-DTXsslmx.js +1090 -0
  14. package/dist-lib/chunk.6CTB5ZDJ-DjZrBd6Y.js +99 -0
  15. package/dist-lib/chunk.AJ3ENQ5C-Ci7Gm2b6.js +175 -0
  16. package/dist-lib/chunk.LD4M4QGE-CiCfhE8r.js +8 -0
  17. package/dist-lib/chunk.NYIIDP5N-BikXIStD.js +99 -0
  18. package/dist-lib/chunk.RWUUFNUL-DFztA4uV.js +43 -0
  19. package/dist-lib/chunk.SI4ACBFK-CLb9VfMG.js +61 -0
  20. package/dist-lib/chunk.YHLNUJ7P-D-kanrCf.js +503 -0
  21. package/dist-lib/core-CMAlSR68.js +22 -0
  22. package/dist-lib/decorate-CWgUV1hU.js +1139 -0
  23. package/dist-lib/decorators-B35AgiCU.js +351 -0
  24. package/dist-lib/deferred-query-service-BJDcngw6.js +386 -0
  25. package/dist-lib/dist-Dm6b7XCs.js +12318 -0
  26. package/dist-lib/dist-Ha9LQCut.js +244 -0
  27. package/dist-lib/dist-c1PlDAd1.js +2359 -0
  28. package/dist-lib/dist-kKlmcBXq.js +50 -0
  29. package/dist-lib/divider-CPm675yY.js +41 -0
  30. package/dist-lib/dropped-config-C_GyVa8o.js +17 -0
  31. package/dist-lib/dropped-layer-builder-DAaYgUPk.js +396 -0
  32. package/dist-lib/epsg-definitions-BZLZWa8Q.js +668 -0
  33. package/dist-lib/esm-CTuscnN5.js +46 -0
  34. package/dist-lib/file-sniff-Dhxj3KTF.js +251 -0
  35. package/dist-lib/geo-calculations-DbFJAUoI.js +30 -0
  36. package/dist-lib/icon-CEOgWlro.js +9 -0
  37. package/dist-lib/icon-button-Da_nBTy3.js +408 -0
  38. package/dist-lib/input-CeGntPlT.js +590 -0
  39. package/dist-lib/layer-discovery-afWzu5hY.js +2825 -0
  40. package/dist-lib/leaflet-adapter-D9djjrKv.js +1227 -0
  41. package/dist-lib/lib-CdHVicAE.js +4074 -0
  42. package/dist-lib/map-layer-registry-2cmkiRDK.js +62 -0
  43. package/dist-lib/maplibre-adapter-TFc3e0G9.js +1190 -0
  44. package/dist-lib/maplibre-expression-evaluator-DCWUcpwf.js +7233 -0
  45. package/dist-lib/marker-utils-DztWXeop.js +12 -0
  46. package/dist-lib/ol-tilegrid-9VtyxaLG.js +64 -0
  47. package/dist-lib/openlayers-adapter-DVW1KCRv.js +13307 -0
  48. package/dist-lib/option-CBxl1mZP.js +1106 -0
  49. package/dist-lib/papaparse.min-B7v3c0D7.js +501 -0
  50. package/dist-lib/rbush-C8k41T4z.js +254 -0
  51. package/dist-lib/shapefile-SawVY6xg.js +207 -0
  52. package/dist-lib/spinner-DysxdNG9.js +6 -0
  53. package/dist-lib/src-CL94RDe3.js +111 -0
  54. package/dist-lib/throttle-BeneRNYK.js +16 -0
  55. package/dist-lib/toast-Cm28o9U6.js +15 -0
  56. package/dist-lib/togeojson.es-DAgiTBvg.js +579 -0
  57. package/dist-lib/tooltip-Cucn1SiD.js +197 -0
  58. package/dist-lib/webmapx-3d-tool-D4CTD2gB.js +176 -0
  59. package/dist-lib/webmapx-base-tool-Dm9NAWLD.js +75 -0
  60. package/dist-lib/webmapx-config-edit-tool-DCTyxqTk.js +389 -0
  61. package/dist-lib/webmapx-coordinates-tool-jeWohup9.js +648 -0
  62. package/dist-lib/webmapx-core-bundle-BDImi1RE.js +8203 -0
  63. package/dist-lib/webmapx-draw-tool-DooAV8cF.js +4336 -0
  64. package/dist-lib/webmapx-geolocation-tool-Rw3-Iad1.js +788 -0
  65. package/dist-lib/webmapx-import-layer-tool-DRYviHd5.js +250 -0
  66. package/dist-lib/webmapx-info-tool-BJA157cy.js +412 -0
  67. package/dist-lib/webmapx-language-osmvector-M5y_lwOg.js +489 -0
  68. package/dist-lib/webmapx-measure-tool-BXhMJFC6.js +590 -0
  69. package/dist-lib/webmapx-modal-tool-eF6Naluv.js +84 -0
  70. package/dist-lib/webmapx-plugin-tool-D2Hghf9n.js +45 -0
  71. package/dist-lib/webmapx-print-tool-ob1bOsR5.js +348 -0
  72. package/dist-lib/webmapx-search-tool-Cv8BrYvY.js +437 -0
  73. package/dist-lib/webmapx-settings-DDEJ8aoV.js +479 -0
  74. package/dist-lib/webmapx-truearea-tool-CMB4Orm-.js +615 -0
  75. package/dist-lib/webmapx-view-mode-tool-CUpLNjOj.js +106 -0
  76. package/dist-lib/webmapx.css +2 -0
  77. package/dist-lib/webmapx.js +1321 -0
  78. package/dist-lib/wms-feature-info-C0RVMEQC.js +145 -0
  79. package/dist-lib/wms-url-builder-DIJLQ1v2.js +54 -0
  80. package/dist-lib/zip.js-DVhmtjxZ.js +3615 -0
  81. package/package.json +107 -0
  82. package/public/data/country-epsg-codes.json +297 -0
  83. package/public/data/world-countries-simplified.topojson +1 -0
  84. package/src/locales/en/core.json +20 -0
@@ -0,0 +1,4074 @@
1
+ import { r as e } from "./chunk-HEgqtunE.js";
2
+ //#region node_modules/proj4/lib/global.js
3
+ function t(e) {
4
+ e("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), e("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), e("EPSG:3857", "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");
5
+ for (var t = 1; t <= 60; ++t) e("EPSG:" + (32600 + t), "+proj=utm +zone=" + t + " +datum=WGS84 +units=m"), e("EPSG:" + (32700 + t), "+proj=utm +zone=" + t + " +south +datum=WGS84 +units=m");
6
+ e("EPSG:5041", "+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), e("EPSG:5042", "+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), e.WGS84 = e["EPSG:4326"], e["EPSG:3785"] = e["EPSG:3857"], e.GOOGLE = e["EPSG:3857"], e["EPSG:900913"] = e["EPSG:3857"], e["EPSG:102113"] = e["EPSG:3857"];
7
+ }
8
+ //#endregion
9
+ //#region node_modules/proj4/lib/constants/values.js
10
+ var n = 6378137, r = 6356752.314, i = .0066943799901413165, a = 484813681109536e-20, o = Math.PI / 2, s = .16666666666666666, c = .04722222222222222, l = .022156084656084655, u = 1e-10, d = .017453292519943295, f = 57.29577951308232, p = Math.PI / 4, m = Math.PI * 2, h = 3.14159265359, g = {};
11
+ g.greenwich = 0, g.lisbon = -9.131906111111, g.paris = 2.337229166667, g.bogota = -74.080916666667, g.madrid = -3.687938888889, g.rome = 12.452333333333, g.bern = 7.439583333333, g.jakarta = 106.807719444444, g.ferro = -17.666666666667, g.brussels = 4.367975, g.stockholm = 18.058277777778, g.athens = 23.7163375, g.oslo = 10.722916666667;
12
+ //#endregion
13
+ //#region node_modules/proj4/lib/constants/units.js
14
+ var _ = {
15
+ mm: { to_meter: .001 },
16
+ cm: { to_meter: .01 },
17
+ ft: { to_meter: .3048 },
18
+ "us-ft": { to_meter: 1200 / 3937 },
19
+ fath: { to_meter: 1.8288 },
20
+ kmi: { to_meter: 1852 },
21
+ "us-ch": { to_meter: 20.1168402336805 },
22
+ "us-mi": { to_meter: 1609.34721869444 },
23
+ km: { to_meter: 1e3 },
24
+ "ind-ft": { to_meter: .30479841 },
25
+ "ind-yd": { to_meter: .91439523 },
26
+ mi: { to_meter: 1609.344 },
27
+ yd: { to_meter: .9144 },
28
+ ch: { to_meter: 20.1168 },
29
+ link: { to_meter: .201168 },
30
+ dm: { to_meter: .1 },
31
+ in: { to_meter: .0254 },
32
+ "ind-ch": { to_meter: 20.11669506 },
33
+ "us-in": { to_meter: .025400050800101 },
34
+ "us-yd": { to_meter: .914401828803658 }
35
+ }, v = /[\s_\-\/\(\)]/g;
36
+ function y(e, t) {
37
+ if (e[t]) return e[t];
38
+ for (var n = Object.keys(e), r = t.toLowerCase().replace(v, ""), i = -1, a, o; ++i < n.length;) if (a = n[i], o = a.toLowerCase().replace(v, ""), o === r) return e[a];
39
+ }
40
+ //#endregion
41
+ //#region node_modules/proj4/lib/projString.js
42
+ function b(e) {
43
+ var t = {}, n = e.split("+").map(function(e) {
44
+ return e.trim();
45
+ }).filter(function(e) {
46
+ return e;
47
+ }).reduce(function(e, t) {
48
+ var n = t.split("=");
49
+ return n.push(!0), e[n[0].toLowerCase()] = n[1], e;
50
+ }, {}), r, i, a, o = {
51
+ proj: "projName",
52
+ datum: "datumCode",
53
+ rf: function(e) {
54
+ t.rf = parseFloat(e);
55
+ },
56
+ lat_0: function(e) {
57
+ t.lat0 = e * d;
58
+ },
59
+ lat_1: function(e) {
60
+ t.lat1 = e * d;
61
+ },
62
+ lat_2: function(e) {
63
+ t.lat2 = e * d;
64
+ },
65
+ lat_ts: function(e) {
66
+ t.lat_ts = e * d;
67
+ },
68
+ lon_0: function(e) {
69
+ t.long0 = e * d;
70
+ },
71
+ lon_1: function(e) {
72
+ t.long1 = e * d;
73
+ },
74
+ lon_2: function(e) {
75
+ t.long2 = e * d;
76
+ },
77
+ alpha: function(e) {
78
+ t.alpha = parseFloat(e) * d;
79
+ },
80
+ gamma: function(e) {
81
+ t.rectified_grid_angle = parseFloat(e) * d;
82
+ },
83
+ lonc: function(e) {
84
+ t.longc = e * d;
85
+ },
86
+ x_0: function(e) {
87
+ t.x0 = parseFloat(e);
88
+ },
89
+ y_0: function(e) {
90
+ t.y0 = parseFloat(e);
91
+ },
92
+ k_0: function(e) {
93
+ t.k0 = parseFloat(e);
94
+ },
95
+ k: function(e) {
96
+ t.k0 = parseFloat(e);
97
+ },
98
+ a: function(e) {
99
+ t.a = parseFloat(e);
100
+ },
101
+ b: function(e) {
102
+ t.b = parseFloat(e);
103
+ },
104
+ r: function(e) {
105
+ t.a = t.b = parseFloat(e);
106
+ },
107
+ r_a: function() {
108
+ t.R_A = !0;
109
+ },
110
+ zone: function(e) {
111
+ t.zone = parseInt(e, 10);
112
+ },
113
+ south: function() {
114
+ t.utmSouth = !0;
115
+ },
116
+ towgs84: function(e) {
117
+ t.datum_params = e.split(",").map(function(e) {
118
+ return parseFloat(e);
119
+ });
120
+ },
121
+ to_meter: function(e) {
122
+ t.to_meter = parseFloat(e);
123
+ },
124
+ units: function(e) {
125
+ t.units = e;
126
+ var n = y(_, e);
127
+ n && (t.to_meter = n.to_meter);
128
+ },
129
+ from_greenwich: function(e) {
130
+ t.from_greenwich = e * d;
131
+ },
132
+ pm: function(e) {
133
+ t.from_greenwich = (y(g, e) || parseFloat(e)) * d;
134
+ },
135
+ nadgrids: function(e) {
136
+ e === "@null" ? t.datumCode = "none" : t.nadgrids = e;
137
+ },
138
+ axis: function(e) {
139
+ var n = "ewnsud";
140
+ e.length === 3 && n.indexOf(e.substr(0, 1)) !== -1 && n.indexOf(e.substr(1, 1)) !== -1 && n.indexOf(e.substr(2, 1)) !== -1 && (t.axis = e);
141
+ },
142
+ approx: function() {
143
+ t.approx = !0;
144
+ },
145
+ over: function() {
146
+ t.over = !0;
147
+ }
148
+ };
149
+ for (r in n) i = n[r], r in o ? (a = o[r], typeof a == "function" ? a(i) : t[a] = i) : t[r] = i;
150
+ return typeof t.datumCode == "string" && t.datumCode !== "WGS84" && (t.datumCode = t.datumCode.toLowerCase()), t.projStr = e, t;
151
+ }
152
+ //#endregion
153
+ //#region node_modules/wkt-parser/PROJJSONBuilderBase.js
154
+ var x = class {
155
+ static getId(e) {
156
+ let t = e.find((e) => Array.isArray(e) && e[0] === "ID");
157
+ return t && t.length >= 3 ? {
158
+ authority: t[1],
159
+ code: parseInt(t[2], 10)
160
+ } : null;
161
+ }
162
+ static convertUnit(e, t = "unit") {
163
+ if (!e || e.length < 3) return {
164
+ type: t,
165
+ name: "unknown",
166
+ conversion_factor: null
167
+ };
168
+ let n = e[1], r = parseFloat(e[2]) || null, i = e.find((e) => Array.isArray(e) && e[0] === "ID");
169
+ return {
170
+ type: t,
171
+ name: n,
172
+ conversion_factor: r,
173
+ id: i ? {
174
+ authority: i[1],
175
+ code: parseInt(i[2], 10)
176
+ } : null
177
+ };
178
+ }
179
+ static convertAxis(e) {
180
+ let t = e[1] || "Unknown", n, r = t.match(/^\((.)\)$/);
181
+ if (r) {
182
+ let e = r[1].toUpperCase();
183
+ if (e === "E") n = "east";
184
+ else if (e === "N") n = "north";
185
+ else if (e === "U") n = "up";
186
+ else throw Error(`Unknown axis abbreviation: ${e}`);
187
+ } else n = e[2] ? e[2].toLowerCase() : "unknown";
188
+ let i = e.find((e) => Array.isArray(e) && e[0] === "ORDER"), a = i ? parseInt(i[1], 10) : null, o = e.find((e) => Array.isArray(e) && (e[0] === "LENGTHUNIT" || e[0] === "ANGLEUNIT" || e[0] === "SCALEUNIT")), s = this.convertUnit(o);
189
+ return {
190
+ name: t,
191
+ direction: n,
192
+ unit: s,
193
+ order: a
194
+ };
195
+ }
196
+ static extractAxes(e) {
197
+ return e.filter((e) => Array.isArray(e) && e[0] === "AXIS").map((e) => this.convertAxis(e)).sort((e, t) => (e.order || 0) - (t.order || 0));
198
+ }
199
+ static convert(e, t = {}) {
200
+ switch (e[0]) {
201
+ case "PROJCRS":
202
+ t.type = "ProjectedCRS", t.name = e[1], t.base_crs = e.find((e) => Array.isArray(e) && e[0] === "BASEGEOGCRS") ? this.convert(e.find((e) => Array.isArray(e) && e[0] === "BASEGEOGCRS")) : null, t.conversion = e.find((e) => Array.isArray(e) && e[0] === "CONVERSION") ? this.convert(e.find((e) => Array.isArray(e) && e[0] === "CONVERSION")) : null;
203
+ let n = e.find((e) => Array.isArray(e) && e[0] === "CS");
204
+ n && (t.coordinate_system = {
205
+ type: n[1],
206
+ axis: this.extractAxes(e)
207
+ });
208
+ let r = e.find((e) => Array.isArray(e) && e[0] === "LENGTHUNIT");
209
+ if (r) {
210
+ let e = this.convertUnit(r);
211
+ t.coordinate_system.unit = e;
212
+ }
213
+ t.id = this.getId(e);
214
+ break;
215
+ case "BASEGEOGCRS":
216
+ case "GEOGCRS":
217
+ t.type = "GeographicCRS", t.name = e[1];
218
+ let i = e.find((e) => Array.isArray(e) && (e[0] === "DATUM" || e[0] === "ENSEMBLE"));
219
+ if (i) {
220
+ let n = this.convert(i);
221
+ i[0] === "ENSEMBLE" ? t.datum_ensemble = n : t.datum = n;
222
+ let r = e.find((e) => Array.isArray(e) && e[0] === "PRIMEM");
223
+ r && r[1] !== "Greenwich" && (n.prime_meridian = {
224
+ name: r[1],
225
+ longitude: parseFloat(r[2])
226
+ });
227
+ }
228
+ t.coordinate_system = {
229
+ type: "ellipsoidal",
230
+ axis: this.extractAxes(e)
231
+ }, t.id = this.getId(e);
232
+ break;
233
+ case "DATUM":
234
+ t.type = "GeodeticReferenceFrame", t.name = e[1], t.ellipsoid = e.find((e) => Array.isArray(e) && e[0] === "ELLIPSOID") ? this.convert(e.find((e) => Array.isArray(e) && e[0] === "ELLIPSOID")) : null;
235
+ break;
236
+ case "ENSEMBLE":
237
+ t.type = "DatumEnsemble", t.name = e[1], t.members = e.filter((e) => Array.isArray(e) && e[0] === "MEMBER").map((e) => ({
238
+ type: "DatumEnsembleMember",
239
+ name: e[1],
240
+ id: this.getId(e)
241
+ }));
242
+ let a = e.find((e) => Array.isArray(e) && e[0] === "ENSEMBLEACCURACY");
243
+ a && (t.accuracy = parseFloat(a[1]));
244
+ let o = e.find((e) => Array.isArray(e) && e[0] === "ELLIPSOID");
245
+ o && (t.ellipsoid = this.convert(o)), t.id = this.getId(e);
246
+ break;
247
+ case "ELLIPSOID":
248
+ t.type = "Ellipsoid", t.name = e[1], t.semi_major_axis = parseFloat(e[2]), t.inverse_flattening = parseFloat(e[3]), e.find((e) => Array.isArray(e) && e[0] === "LENGTHUNIT") && this.convert(e.find((e) => Array.isArray(e) && e[0] === "LENGTHUNIT"), t);
249
+ break;
250
+ case "CONVERSION":
251
+ t.type = "Conversion", t.name = e[1], t.method = e.find((e) => Array.isArray(e) && e[0] === "METHOD") ? this.convert(e.find((e) => Array.isArray(e) && e[0] === "METHOD")) : null, t.parameters = e.filter((e) => Array.isArray(e) && e[0] === "PARAMETER").map((e) => this.convert(e));
252
+ break;
253
+ case "METHOD":
254
+ t.type = "Method", t.name = e[1], t.id = this.getId(e);
255
+ break;
256
+ case "PARAMETER":
257
+ t.type = "Parameter", t.name = e[1], t.value = parseFloat(e[2]), t.unit = this.convertUnit(e.find((e) => Array.isArray(e) && (e[0] === "LENGTHUNIT" || e[0] === "ANGLEUNIT" || e[0] === "SCALEUNIT"))), t.id = this.getId(e);
258
+ break;
259
+ case "BOUNDCRS":
260
+ t.type = "BoundCRS";
261
+ let s = e.find((e) => Array.isArray(e) && e[0] === "SOURCECRS");
262
+ if (s) {
263
+ let e = s.find((e) => Array.isArray(e));
264
+ t.source_crs = e ? this.convert(e) : null;
265
+ }
266
+ let c = e.find((e) => Array.isArray(e) && e[0] === "TARGETCRS");
267
+ if (c) {
268
+ let e = c.find((e) => Array.isArray(e));
269
+ t.target_crs = e ? this.convert(e) : null;
270
+ }
271
+ let l = e.find((e) => Array.isArray(e) && e[0] === "ABRIDGEDTRANSFORMATION");
272
+ l ? t.transformation = this.convert(l) : t.transformation = null;
273
+ break;
274
+ case "ABRIDGEDTRANSFORMATION":
275
+ if (t.type = "Transformation", t.name = e[1], t.method = e.find((e) => Array.isArray(e) && e[0] === "METHOD") ? this.convert(e.find((e) => Array.isArray(e) && e[0] === "METHOD")) : null, t.parameters = e.filter((e) => Array.isArray(e) && (e[0] === "PARAMETER" || e[0] === "PARAMETERFILE")).map((e) => {
276
+ if (e[0] === "PARAMETER") return this.convert(e);
277
+ if (e[0] === "PARAMETERFILE") return {
278
+ name: e[1],
279
+ value: e[2],
280
+ id: {
281
+ authority: "EPSG",
282
+ code: 8656
283
+ }
284
+ };
285
+ }), t.parameters.length === 7) {
286
+ let e = t.parameters[6];
287
+ e.name === "Scale difference" && (e.value = Math.round((e.value - 1) * 0xe8d4a51000) / 1e6);
288
+ }
289
+ t.id = this.getId(e);
290
+ break;
291
+ case "AXIS":
292
+ t.coordinate_system ||= {
293
+ type: "unspecified",
294
+ axis: []
295
+ }, t.coordinate_system.axis.push(this.convertAxis(e));
296
+ break;
297
+ case "LENGTHUNIT":
298
+ let u = this.convertUnit(e, "LinearUnit");
299
+ t.coordinate_system && t.coordinate_system.axis && t.coordinate_system.axis.forEach((e) => {
300
+ e.unit ||= u;
301
+ }), u.conversion_factor && u.conversion_factor !== 1 && (t.semi_major_axis &&= {
302
+ value: t.semi_major_axis,
303
+ unit: u
304
+ });
305
+ break;
306
+ default:
307
+ t.keyword = e[0];
308
+ break;
309
+ }
310
+ return t;
311
+ }
312
+ }, S = class extends x {
313
+ static convert(e, t = {}) {
314
+ return super.convert(e, t), t.coordinate_system && t.coordinate_system.subtype === "Cartesian" && delete t.coordinate_system, t.usage && delete t.usage, t;
315
+ }
316
+ }, C = class extends x {
317
+ static convert(e, t = {}) {
318
+ super.convert(e, t);
319
+ let n = e.find((e) => Array.isArray(e) && e[0] === "CS");
320
+ n && (t.coordinate_system = {
321
+ subtype: n[1],
322
+ axis: this.extractAxes(e)
323
+ });
324
+ let r = e.find((e) => Array.isArray(e) && e[0] === "USAGE");
325
+ if (r) {
326
+ let e = r.find((e) => Array.isArray(e) && e[0] === "SCOPE"), n = r.find((e) => Array.isArray(e) && e[0] === "AREA"), i = r.find((e) => Array.isArray(e) && e[0] === "BBOX");
327
+ t.usage = {}, e && (t.usage.scope = e[1]), n && (t.usage.area = n[1]), i && (t.usage.bbox = i.slice(1));
328
+ }
329
+ return t;
330
+ }
331
+ };
332
+ //#endregion
333
+ //#region node_modules/wkt-parser/buildPROJJSON.js
334
+ function w(e) {
335
+ return e.find((e) => Array.isArray(e) && e[0] === "USAGE") ? "2019" : (e.find((e) => Array.isArray(e) && e[0] === "CS") || e[0] === "BOUNDCRS" || e[0] === "PROJCRS" || e[0], "2015");
336
+ }
337
+ function T(e) {
338
+ return (w(e) === "2019" ? C : S).convert(e);
339
+ }
340
+ //#endregion
341
+ //#region node_modules/wkt-parser/detectWKTVersion.js
342
+ function E(e) {
343
+ let t = e.toUpperCase();
344
+ return t.includes("PROJCRS") || t.includes("GEOGCRS") || t.includes("BOUNDCRS") || t.includes("VERTCRS") || t.includes("LENGTHUNIT") || t.includes("ANGLEUNIT") || t.includes("SCALEUNIT") ? "WKT2" : (t.includes("PROJCS") || t.includes("GEOGCS") || t.includes("LOCAL_CS") || t.includes("VERT_CS") || t.includes("UNIT"), "WKT1");
345
+ }
346
+ //#endregion
347
+ //#region node_modules/wkt-parser/parser.js
348
+ var D = ue, O = 1, ee = 2, te = 3, ne = 4, re = 5, ie = -1, ae = /\s/, oe = /[A-Za-z]/, se = /[A-Za-z84_]/, ce = /[,\]]/, le = /[\d\.E\-\+]/;
349
+ function k(e) {
350
+ if (typeof e != "string") throw Error("not a string");
351
+ this.text = e.trim(), this.level = 0, this.place = 0, this.root = null, this.stack = [], this.currentObject = null, this.state = O;
352
+ }
353
+ k.prototype.readCharicter = function() {
354
+ var e = this.text[this.place++];
355
+ if (this.state !== ne) for (; ae.test(e);) {
356
+ if (this.place >= this.text.length) return;
357
+ e = this.text[this.place++];
358
+ }
359
+ switch (this.state) {
360
+ case O: return this.neutral(e);
361
+ case ee: return this.keyword(e);
362
+ case ne: return this.quoted(e);
363
+ case re: return this.afterquote(e);
364
+ case te: return this.number(e);
365
+ case ie: return;
366
+ }
367
+ }, k.prototype.afterquote = function(e) {
368
+ if (e === "\"") {
369
+ this.word += "\"", this.state = ne;
370
+ return;
371
+ }
372
+ if (ce.test(e)) {
373
+ this.word = this.word.trim(), this.afterItem(e);
374
+ return;
375
+ }
376
+ throw Error("havn't handled \"" + e + "\" in afterquote yet, index " + this.place);
377
+ }, k.prototype.afterItem = function(e) {
378
+ if (e === ",") {
379
+ this.word !== null && this.currentObject.push(this.word), this.word = null, this.state = O;
380
+ return;
381
+ }
382
+ if (e === "]") {
383
+ this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = O, this.currentObject = this.stack.pop(), this.currentObject || (this.state = ie);
384
+ return;
385
+ }
386
+ }, k.prototype.number = function(e) {
387
+ if (le.test(e)) {
388
+ this.word += e;
389
+ return;
390
+ }
391
+ if (ce.test(e)) {
392
+ this.word = parseFloat(this.word), this.afterItem(e);
393
+ return;
394
+ }
395
+ throw Error("havn't handled \"" + e + "\" in number yet, index " + this.place);
396
+ }, k.prototype.quoted = function(e) {
397
+ if (e === "\"") {
398
+ this.state = re;
399
+ return;
400
+ }
401
+ this.word += e;
402
+ }, k.prototype.keyword = function(e) {
403
+ if (se.test(e)) {
404
+ this.word += e;
405
+ return;
406
+ }
407
+ if (e === "[") {
408
+ var t = [];
409
+ t.push(this.word), this.level++, this.root === null ? this.root = t : this.currentObject.push(t), this.stack.push(this.currentObject), this.currentObject = t, this.state = O;
410
+ return;
411
+ }
412
+ if (ce.test(e)) {
413
+ this.afterItem(e);
414
+ return;
415
+ }
416
+ throw Error("havn't handled \"" + e + "\" in keyword yet, index " + this.place);
417
+ }, k.prototype.neutral = function(e) {
418
+ if (oe.test(e)) {
419
+ this.word = e, this.state = ee;
420
+ return;
421
+ }
422
+ if (e === "\"") {
423
+ this.word = "", this.state = ne;
424
+ return;
425
+ }
426
+ if (le.test(e)) {
427
+ this.word = e, this.state = te;
428
+ return;
429
+ }
430
+ if (ce.test(e)) {
431
+ this.afterItem(e);
432
+ return;
433
+ }
434
+ throw Error("havn't handled \"" + e + "\" in neutral yet, index " + this.place);
435
+ }, k.prototype.output = function() {
436
+ for (; this.place < this.text.length;) this.readCharicter();
437
+ if (this.state === ie) return this.root;
438
+ throw Error("unable to parse string \"" + this.text + "\". State is " + this.state);
439
+ };
440
+ function ue(e) {
441
+ return new k(e).output();
442
+ }
443
+ //#endregion
444
+ //#region node_modules/wkt-parser/process.js
445
+ function de(e, t, n) {
446
+ Array.isArray(t) && (n.unshift(t), t = null);
447
+ var r = t ? {} : e, i = n.reduce(function(e, t) {
448
+ return A(t, e), e;
449
+ }, r);
450
+ t && (e[t] = i);
451
+ }
452
+ function A(e, t) {
453
+ if (!Array.isArray(e)) {
454
+ t[e] = !0;
455
+ return;
456
+ }
457
+ var n = e.shift();
458
+ if (n === "PARAMETER" && (n = e.shift()), e.length === 1) {
459
+ if (Array.isArray(e[0])) {
460
+ t[n] = {}, A(e[0], t[n]);
461
+ return;
462
+ }
463
+ t[n] = e[0];
464
+ return;
465
+ }
466
+ if (!e.length) {
467
+ t[n] = !0;
468
+ return;
469
+ }
470
+ if (n === "TOWGS84") {
471
+ t[n] = e;
472
+ return;
473
+ }
474
+ if (n === "AXIS") {
475
+ n in t || (t[n] = []), t[n].push(e);
476
+ return;
477
+ }
478
+ Array.isArray(n) || (t[n] = {});
479
+ var r;
480
+ switch (n) {
481
+ case "UNIT":
482
+ case "PRIMEM":
483
+ case "VERT_DATUM":
484
+ t[n] = {
485
+ name: e[0].toLowerCase(),
486
+ convert: e[1]
487
+ }, e.length === 3 && A(e[2], t[n]);
488
+ return;
489
+ case "SPHEROID":
490
+ case "ELLIPSOID":
491
+ t[n] = {
492
+ name: e[0],
493
+ a: e[1],
494
+ rf: e[2]
495
+ }, e.length === 4 && A(e[3], t[n]);
496
+ return;
497
+ case "EDATUM":
498
+ case "ENGINEERINGDATUM":
499
+ case "LOCAL_DATUM":
500
+ case "DATUM":
501
+ case "VERT_CS":
502
+ case "VERTCRS":
503
+ case "VERTICALCRS":
504
+ e[0] = ["name", e[0]], de(t, n, e);
505
+ return;
506
+ case "COMPD_CS":
507
+ case "COMPOUNDCRS":
508
+ case "FITTED_CS":
509
+ case "PROJECTEDCRS":
510
+ case "PROJCRS":
511
+ case "GEOGCS":
512
+ case "GEOCCS":
513
+ case "PROJCS":
514
+ case "LOCAL_CS":
515
+ case "GEODCRS":
516
+ case "GEODETICCRS":
517
+ case "GEODETICDATUM":
518
+ case "ENGCRS":
519
+ case "ENGINEERINGCRS":
520
+ e[0] = ["name", e[0]], de(t, n, e), t[n].type = n;
521
+ return;
522
+ default:
523
+ for (r = -1; ++r < e.length;) if (!Array.isArray(e[r])) return A(e, t[n]);
524
+ return de(t, n, e);
525
+ }
526
+ }
527
+ //#endregion
528
+ //#region node_modules/wkt-parser/util.js
529
+ var fe = .017453292519943295;
530
+ function j(e) {
531
+ return e * fe;
532
+ }
533
+ function pe(e) {
534
+ let t = (e.projName || "").toLowerCase().replace(/_/g, " ");
535
+ !e.long0 && e.longc && (t === "albers conic equal area" || t === "lambert azimuthal equal area") && (e.long0 = e.longc), !e.lat_ts && e.lat1 && (t === "stereographic south pole" || t === "polar stereographic (variant b)") ? (e.lat0 = j(e.lat1 > 0 ? 90 : -90), e.lat_ts = e.lat1, delete e.lat1) : !e.lat_ts && e.lat0 && (t === "polar stereographic" || t === "polar stereographic (variant a)") && (e.lat_ts = e.lat0, e.lat0 = j(e.lat0 > 0 ? 90 : -90), delete e.lat1);
536
+ }
537
+ //#endregion
538
+ //#region node_modules/wkt-parser/transformPROJJSON.js
539
+ function me(e) {
540
+ let t = {
541
+ units: null,
542
+ to_meter: void 0
543
+ };
544
+ return typeof e == "string" ? (t.units = e.toLowerCase(), t.units === "metre" && (t.units = "meter"), t.units === "meter" && (t.to_meter = 1)) : e && e.name && (t.units = e.name.toLowerCase(), t.units === "metre" && (t.units = "meter"), t.to_meter = e.conversion_factor), t;
545
+ }
546
+ function he(e) {
547
+ return typeof e == "object" ? e.value * e.unit.conversion_factor : e;
548
+ }
549
+ function ge(e, t) {
550
+ e.ellipsoid.radius ? (t.a = e.ellipsoid.radius, t.rf = 0) : (t.a = he(e.ellipsoid.semi_major_axis), e.ellipsoid.inverse_flattening === void 0 ? e.ellipsoid.semi_major_axis !== void 0 && e.ellipsoid.semi_minor_axis !== void 0 && (t.rf = t.a / (t.a - he(e.ellipsoid.semi_minor_axis))) : t.rf = e.ellipsoid.inverse_flattening);
551
+ }
552
+ function _e(e, t = {}) {
553
+ return !e || typeof e != "object" ? e : e.type === "BoundCRS" ? (_e(e.source_crs, t), e.transformation && (e.transformation.method && e.transformation.method.name === "NTv2" ? t.nadgrids = e.transformation.parameters[0].value : t.datum_params = e.transformation.parameters.map((e) => e.value)), t) : (Object.keys(e).forEach((n) => {
554
+ let r = e[n];
555
+ if (r !== null) switch (n) {
556
+ case "name":
557
+ if (t.srsCode) break;
558
+ t.name = r, t.srsCode = r;
559
+ break;
560
+ case "type":
561
+ r === "GeographicCRS" ? t.projName = "longlat" : r === "ProjectedCRS" && e.conversion && e.conversion.method && (t.projName = e.conversion.method.name);
562
+ break;
563
+ case "datum":
564
+ case "datum_ensemble":
565
+ r.ellipsoid && (t.ellps = r.ellipsoid.name, ge(r, t)), r.prime_meridian && (t.from_greenwich = r.prime_meridian.longitude * Math.PI / 180);
566
+ break;
567
+ case "ellipsoid":
568
+ t.ellps = r.name, ge(r, t);
569
+ break;
570
+ case "prime_meridian":
571
+ t.long0 = (r.longitude || 0) * Math.PI / 180;
572
+ break;
573
+ case "coordinate_system":
574
+ if (r.axis) {
575
+ if (t.axis = r.axis.map((e) => {
576
+ let t = e.direction;
577
+ if (t === "east") return "e";
578
+ if (t === "north") return "n";
579
+ if (t === "west") return "w";
580
+ if (t === "south") return "s";
581
+ throw Error(`Unknown axis direction: ${t}`);
582
+ }).join("") + "u", r.unit) {
583
+ let { units: e, to_meter: n } = me(r.unit);
584
+ t.units = e, t.to_meter = n;
585
+ } else if (r.axis[0] && r.axis[0].unit) {
586
+ let { units: e, to_meter: n } = me(r.axis[0].unit);
587
+ t.units = e, t.to_meter = n;
588
+ }
589
+ }
590
+ break;
591
+ case "id":
592
+ r.authority && r.code && (t.title = r.authority + ":" + r.code);
593
+ break;
594
+ case "conversion":
595
+ r.method && r.method.name && (t.projName = r.method.name), r.parameters && r.parameters.forEach((e) => {
596
+ let n = e.name.toLowerCase().replace(/\s+/g, "_"), r = e.value;
597
+ e.unit && e.unit.conversion_factor ? t[n] = r * e.unit.conversion_factor : e.unit === "degree" ? t[n] = r * Math.PI / 180 : t[n] = r;
598
+ });
599
+ break;
600
+ case "unit":
601
+ r.name && (t.units = r.name.toLowerCase(), t.units === "metre" && (t.units = "meter")), r.conversion_factor && (t.to_meter = r.conversion_factor);
602
+ break;
603
+ case "base_crs":
604
+ _e(r, t), t.datumCode = r.id ? r.id.authority + "_" + r.id.code : r.name;
605
+ break;
606
+ default: break;
607
+ }
608
+ }), t.latitude_of_false_origin !== void 0 && (t.lat0 = t.latitude_of_false_origin), t.longitude_of_false_origin !== void 0 && (t.long0 = t.longitude_of_false_origin), t.latitude_of_standard_parallel !== void 0 && (t.lat0 = t.latitude_of_standard_parallel, t.lat1 = t.latitude_of_standard_parallel), t.latitude_of_1st_standard_parallel !== void 0 && (t.lat1 = t.latitude_of_1st_standard_parallel), t.latitude_of_2nd_standard_parallel !== void 0 && (t.lat2 = t.latitude_of_2nd_standard_parallel), t.latitude_of_projection_centre !== void 0 && (t.lat0 = t.latitude_of_projection_centre), t.longitude_of_projection_centre !== void 0 && (t.longc = t.longitude_of_projection_centre), t.easting_at_false_origin !== void 0 && (t.x0 = t.easting_at_false_origin), t.northing_at_false_origin !== void 0 && (t.y0 = t.northing_at_false_origin), t.latitude_of_natural_origin !== void 0 && (t.lat0 = t.latitude_of_natural_origin), t.longitude_of_natural_origin !== void 0 && (t.long0 = t.longitude_of_natural_origin), t.longitude_of_origin !== void 0 && (t.long0 = t.longitude_of_origin), t.false_easting !== void 0 && (t.x0 = t.false_easting), t.easting_at_projection_centre && (t.x0 = t.easting_at_projection_centre), t.false_northing !== void 0 && (t.y0 = t.false_northing), t.northing_at_projection_centre && (t.y0 = t.northing_at_projection_centre), t.standard_parallel_1 !== void 0 && (t.lat1 = t.standard_parallel_1), t.standard_parallel_2 !== void 0 && (t.lat2 = t.standard_parallel_2), t.scale_factor_at_natural_origin !== void 0 && (t.k0 = t.scale_factor_at_natural_origin), t.scale_factor_at_projection_centre !== void 0 && (t.k0 = t.scale_factor_at_projection_centre), t.scale_factor_on_pseudo_standard_parallel !== void 0 && (t.k0 = t.scale_factor_on_pseudo_standard_parallel), t.azimuth !== void 0 && (t.alpha = t.azimuth), t.azimuth_at_projection_centre !== void 0 && (t.alpha = t.azimuth_at_projection_centre), t.angle_from_rectified_to_skew_grid && (t.rectified_grid_angle = t.angle_from_rectified_to_skew_grid), pe(t), t);
609
+ }
610
+ //#endregion
611
+ //#region node_modules/wkt-parser/index.js
612
+ var ve = [
613
+ "PROJECTEDCRS",
614
+ "PROJCRS",
615
+ "GEOGCS",
616
+ "GEOCCS",
617
+ "PROJCS",
618
+ "LOCAL_CS",
619
+ "GEODCRS",
620
+ "GEODETICCRS",
621
+ "GEODETICDATUM",
622
+ "ENGCRS",
623
+ "ENGINEERINGCRS"
624
+ ];
625
+ function ye(e, t) {
626
+ var n = t[0], r = t[1];
627
+ !(n in e) && r in e && (e[n] = e[r], t.length === 3 && (e[n] = t[2](e[n])));
628
+ }
629
+ function be(e) {
630
+ for (var t = Object.keys(e), n = 0, r = t.length; n < r; ++n) {
631
+ var i = t[n];
632
+ ve.indexOf(i) !== -1 && xe(e[i]), typeof e[i] == "object" && be(e[i]);
633
+ }
634
+ }
635
+ function xe(e) {
636
+ if (e.AUTHORITY) {
637
+ var t = Object.keys(e.AUTHORITY)[0];
638
+ t && t in e.AUTHORITY && (e.title = t + ":" + e.AUTHORITY[t]);
639
+ }
640
+ if (e.type === "GEOGCS" ? e.projName = "longlat" : e.type === "LOCAL_CS" ? (e.projName = "identity", e.local = !0) : typeof e.PROJECTION == "object" ? e.projName = Object.keys(e.PROJECTION)[0] : e.projName = e.PROJECTION, e.AXIS) {
641
+ for (var n = "", r = 0, i = e.AXIS.length; r < i; ++r) {
642
+ var a = [e.AXIS[r][0].toLowerCase(), e.AXIS[r][1].toLowerCase()];
643
+ a[0].indexOf("north") !== -1 || (a[0] === "y" || a[0] === "lat") && a[1] === "north" ? n += "n" : a[0].indexOf("south") !== -1 || (a[0] === "y" || a[0] === "lat") && a[1] === "south" ? n += "s" : a[0].indexOf("east") !== -1 || (a[0] === "x" || a[0] === "lon") && a[1] === "east" ? n += "e" : (a[0].indexOf("west") !== -1 || (a[0] === "x" || a[0] === "lon") && a[1] === "west") && (n += "w");
644
+ }
645
+ n.length === 2 && (n += "u"), n.length === 3 && (e.axis = n);
646
+ }
647
+ e.UNIT && (e.units = e.UNIT.name.toLowerCase(), e.units === "metre" && (e.units = "meter"), e.UNIT.convert && (e.type === "GEOGCS" ? e.DATUM && e.DATUM.SPHEROID && (e.to_meter = e.UNIT.convert * e.DATUM.SPHEROID.a) : e.to_meter = e.UNIT.convert));
648
+ var o = e.GEOGCS;
649
+ e.type === "GEOGCS" && (o = e), o && (o.DATUM ? e.datumCode = o.DATUM.name.toLowerCase() : e.datumCode = o.name.toLowerCase(), e.datumCode.slice(0, 2) === "d_" && (e.datumCode = e.datumCode.slice(2)), e.datumCode === "new_zealand_1949" && (e.datumCode = "nzgd49"), (e.datumCode === "wgs_1984" || e.datumCode === "world_geodetic_system_1984") && (e.PROJECTION === "Mercator_Auxiliary_Sphere" && (e.sphere = !0), e.datumCode = "wgs84"), e.datumCode === "belge_1972" && (e.datumCode = "rnb72"), o.DATUM && o.DATUM.SPHEROID && (e.ellps = o.DATUM.SPHEROID.name.replace("_19", "").replace(/[Cc]larke\_18/, "clrk"), e.ellps.toLowerCase().slice(0, 13) === "international" && (e.ellps = "intl"), e.a = o.DATUM.SPHEROID.a, e.rf = parseFloat(o.DATUM.SPHEROID.rf, 10)), o.DATUM && o.DATUM.TOWGS84 && (e.datum_params = o.DATUM.TOWGS84), ~e.datumCode.indexOf("osgb_1936") && (e.datumCode = "osgb36"), ~e.datumCode.indexOf("osni_1952") && (e.datumCode = "osni52"), (~e.datumCode.indexOf("tm65") || ~e.datumCode.indexOf("geodetic_datum_of_1965")) && (e.datumCode = "ire65"), e.datumCode === "ch1903+" && (e.datumCode = "ch1903"), ~e.datumCode.indexOf("israel") && (e.datumCode = "isr93")), e.b && !isFinite(e.b) && (e.b = e.a), e.rectified_grid_angle &&= j(e.rectified_grid_angle);
650
+ function s(t) {
651
+ return t * (e.to_meter || 1);
652
+ }
653
+ [
654
+ ["standard_parallel_1", "Standard_Parallel_1"],
655
+ ["standard_parallel_1", "Latitude of 1st standard parallel"],
656
+ ["standard_parallel_2", "Standard_Parallel_2"],
657
+ ["standard_parallel_2", "Latitude of 2nd standard parallel"],
658
+ ["false_easting", "False_Easting"],
659
+ ["false_easting", "False easting"],
660
+ ["false-easting", "Easting at false origin"],
661
+ ["false_northing", "False_Northing"],
662
+ ["false_northing", "False northing"],
663
+ ["false_northing", "Northing at false origin"],
664
+ ["central_meridian", "Central_Meridian"],
665
+ ["central_meridian", "Longitude of natural origin"],
666
+ ["central_meridian", "Longitude of false origin"],
667
+ ["latitude_of_origin", "Latitude_Of_Origin"],
668
+ ["latitude_of_origin", "Central_Parallel"],
669
+ ["latitude_of_origin", "Latitude of natural origin"],
670
+ ["latitude_of_origin", "Latitude of false origin"],
671
+ ["scale_factor", "Scale_Factor"],
672
+ ["k0", "scale_factor"],
673
+ ["latitude_of_center", "Latitude_Of_Center"],
674
+ ["latitude_of_center", "Latitude_of_center"],
675
+ [
676
+ "lat0",
677
+ "latitude_of_center",
678
+ j
679
+ ],
680
+ ["longitude_of_center", "Longitude_Of_Center"],
681
+ ["longitude_of_center", "Longitude_of_center"],
682
+ [
683
+ "longc",
684
+ "longitude_of_center",
685
+ j
686
+ ],
687
+ [
688
+ "x0",
689
+ "false_easting",
690
+ s
691
+ ],
692
+ [
693
+ "y0",
694
+ "false_northing",
695
+ s
696
+ ],
697
+ [
698
+ "long0",
699
+ "central_meridian",
700
+ j
701
+ ],
702
+ [
703
+ "lat0",
704
+ "latitude_of_origin",
705
+ j
706
+ ],
707
+ [
708
+ "lat0",
709
+ "standard_parallel_1",
710
+ j
711
+ ],
712
+ [
713
+ "lat1",
714
+ "standard_parallel_1",
715
+ j
716
+ ],
717
+ [
718
+ "lat2",
719
+ "standard_parallel_2",
720
+ j
721
+ ],
722
+ ["azimuth", "Azimuth"],
723
+ [
724
+ "alpha",
725
+ "azimuth",
726
+ j
727
+ ],
728
+ ["srsCode", "name"]
729
+ ].forEach(function(t) {
730
+ return ye(e, t);
731
+ }), pe(e);
732
+ }
733
+ function Se(e) {
734
+ if (typeof e == "object") return _e(e);
735
+ let t = E(e);
736
+ var n = D(e);
737
+ if (t === "WKT2") return _e(T(n));
738
+ var r = n[0], i = {};
739
+ return A(n, i), be(i), i[r];
740
+ }
741
+ //#endregion
742
+ //#region node_modules/proj4/lib/defs.js
743
+ function M(e) {
744
+ var t = this;
745
+ if (arguments.length === 2) {
746
+ var n = arguments[1];
747
+ typeof n == "string" ? n.charAt(0) === "+" ? M[e] = b(arguments[1]) : M[e] = Se(arguments[1]) : n && typeof n == "object" && !("projName" in n) ? M[e] = Se(arguments[1]) : (M[e] = n, n || delete M[e]);
748
+ } else if (arguments.length === 1) {
749
+ if (Array.isArray(e)) return e.map(function(e) {
750
+ return Array.isArray(e) ? M.apply(t, e) : M(e);
751
+ });
752
+ if (typeof e == "string") {
753
+ if (e in M) return M[e];
754
+ } else "EPSG" in e ? M["EPSG:" + e.EPSG] = e : "ESRI" in e ? M["ESRI:" + e.ESRI] = e : "IAU2000" in e ? M["IAU2000:" + e.IAU2000] = e : console.log(e);
755
+ return;
756
+ }
757
+ }
758
+ t(M);
759
+ //#endregion
760
+ //#region node_modules/proj4/lib/parseCode.js
761
+ function Ce(e) {
762
+ return typeof e == "string";
763
+ }
764
+ function we(e) {
765
+ return e in M;
766
+ }
767
+ function Te(e) {
768
+ return e.indexOf("+") !== 0 && e.indexOf("[") !== -1 || typeof e == "object" && !("srsCode" in e);
769
+ }
770
+ var Ee = [
771
+ "3857",
772
+ "900913",
773
+ "3785",
774
+ "102113"
775
+ ];
776
+ function De(e) {
777
+ var t = y(e, "authority");
778
+ if (t) {
779
+ var n = y(t, "epsg");
780
+ return n && Ee.indexOf(n) > -1;
781
+ }
782
+ }
783
+ function Oe(e) {
784
+ var t = y(e, "extension");
785
+ if (t) return y(t, "proj4");
786
+ }
787
+ function ke(e) {
788
+ return e[0] === "+";
789
+ }
790
+ function Ae(e) {
791
+ if (Ce(e)) {
792
+ if (we(e)) return M[e];
793
+ if (Te(e)) {
794
+ var t = Se(e);
795
+ if (De(t)) return M["EPSG:3857"];
796
+ var n = Oe(t);
797
+ return n ? b(n) : t;
798
+ }
799
+ if (ke(e)) return b(e);
800
+ } else if ("projName" in e) return e;
801
+ else return Se(e);
802
+ }
803
+ //#endregion
804
+ //#region node_modules/proj4/lib/extend.js
805
+ function je(e, t) {
806
+ e ||= {};
807
+ var n, r;
808
+ if (!t) return e;
809
+ for (r in t) n = t[r], n !== void 0 && (e[r] = n);
810
+ return e;
811
+ }
812
+ //#endregion
813
+ //#region node_modules/proj4/lib/common/msfnz.js
814
+ function N(e, t, n) {
815
+ var r = e * t;
816
+ return n / Math.sqrt(1 - r * r);
817
+ }
818
+ //#endregion
819
+ //#region node_modules/proj4/lib/common/sign.js
820
+ function Me(e) {
821
+ return e < 0 ? -1 : 1;
822
+ }
823
+ //#endregion
824
+ //#region node_modules/proj4/lib/common/adjust_lon.js
825
+ function P(e, t) {
826
+ return t || Math.abs(e) <= 3.14159265359 ? e : e - Me(e) * m;
827
+ }
828
+ //#endregion
829
+ //#region node_modules/proj4/lib/common/tsfnz.js
830
+ function F(e, t, n) {
831
+ var r = e * n, i = .5 * e;
832
+ return r = ((1 - r) / (1 + r)) ** i, Math.tan(.5 * (o - t)) / r;
833
+ }
834
+ //#endregion
835
+ //#region node_modules/proj4/lib/common/phi2z.js
836
+ function Ne(e, t) {
837
+ for (var n = .5 * e, r, i, a = o - 2 * Math.atan(t), s = 0; s <= 15; s++) if (r = e * Math.sin(a), i = o - 2 * Math.atan(t * ((1 - r) / (1 + r)) ** n) - a, a += i, Math.abs(i) <= 1e-10) return a;
838
+ return -9999;
839
+ }
840
+ //#endregion
841
+ //#region node_modules/proj4/lib/projections/merc.js
842
+ function Pe() {
843
+ var e = this.b / this.a;
844
+ this.es = 1 - e * e, "x0" in this || (this.x0 = 0), "y0" in this || (this.y0 = 0), this.e = Math.sqrt(this.es), this.lat_ts ? this.sphere ? this.k0 = Math.cos(this.lat_ts) : this.k0 = N(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
845
+ }
846
+ function Fe(e) {
847
+ var t = e.x, n = e.y;
848
+ if (n * 57.29577951308232 > 90 && n * 57.29577951308232 < -90 && t * 57.29577951308232 > 180 && t * 57.29577951308232 < -180) return null;
849
+ var r, i;
850
+ if (Math.abs(Math.abs(n) - o) <= 1e-10) return null;
851
+ if (this.sphere) r = this.x0 + this.a * this.k0 * P(t - this.long0, this.over), i = this.y0 + this.a * this.k0 * Math.log(Math.tan(p + .5 * n));
852
+ else {
853
+ var a = Math.sin(n), s = F(this.e, n, a);
854
+ r = this.x0 + this.a * this.k0 * P(t - this.long0, this.over), i = this.y0 - this.a * this.k0 * Math.log(s);
855
+ }
856
+ return e.x = r, e.y = i, e;
857
+ }
858
+ function Ie(e) {
859
+ var t = e.x - this.x0, n = e.y - this.y0, r, i;
860
+ if (this.sphere) i = o - 2 * Math.atan(Math.exp(-n / (this.a * this.k0)));
861
+ else {
862
+ var a = Math.exp(-n / (this.a * this.k0));
863
+ if (i = Ne(this.e, a), i === -9999) return null;
864
+ }
865
+ return r = P(this.long0 + t / (this.a * this.k0), this.over), e.x = r, e.y = i, e;
866
+ }
867
+ var Le = {
868
+ init: Pe,
869
+ forward: Fe,
870
+ inverse: Ie,
871
+ names: [
872
+ "Mercator",
873
+ "Popular Visualisation Pseudo Mercator",
874
+ "Mercator_1SP",
875
+ "Mercator_Auxiliary_Sphere",
876
+ "Mercator_Variant_A",
877
+ "merc"
878
+ ]
879
+ };
880
+ //#endregion
881
+ //#region node_modules/proj4/lib/projections/longlat.js
882
+ function Re() {}
883
+ function ze(e) {
884
+ return e;
885
+ }
886
+ var Be = ["longlat", "identity"], Ve = [Le, {
887
+ init: Re,
888
+ forward: ze,
889
+ inverse: ze,
890
+ names: Be
891
+ }], I = {}, He = [];
892
+ function Ue(e, t) {
893
+ var n = He.length;
894
+ return e.names ? (He[n] = e, e.names.forEach(function(e) {
895
+ I[e.toLowerCase()] = n;
896
+ }), this) : (console.log(t), !0);
897
+ }
898
+ function We(e) {
899
+ return e.replace(/[-\(\)\s]+/g, " ").trim().replace(/ /g, "_");
900
+ }
901
+ function Ge(e) {
902
+ if (!e) return !1;
903
+ var t = e.toLowerCase();
904
+ if (I[t] !== void 0 && He[I[t]] || (t = We(t), t in I && He[I[t]])) return He[I[t]];
905
+ }
906
+ function Ke() {
907
+ Ve.forEach(Ue);
908
+ }
909
+ var qe = {
910
+ start: Ke,
911
+ add: Ue,
912
+ get: Ge
913
+ }, Je = {
914
+ MERIT: {
915
+ a: 6378137,
916
+ rf: 298.257,
917
+ ellipseName: "MERIT 1983"
918
+ },
919
+ SGS85: {
920
+ a: 6378136,
921
+ rf: 298.257,
922
+ ellipseName: "Soviet Geodetic System 85"
923
+ },
924
+ GRS80: {
925
+ a: 6378137,
926
+ rf: 298.257222101,
927
+ ellipseName: "GRS 1980(IUGG, 1980)"
928
+ },
929
+ IAU76: {
930
+ a: 6378140,
931
+ rf: 298.257,
932
+ ellipseName: "IAU 1976"
933
+ },
934
+ airy: {
935
+ a: 6377563.396,
936
+ b: 6356256.91,
937
+ ellipseName: "Airy 1830"
938
+ },
939
+ APL4: {
940
+ a: 6378137,
941
+ rf: 298.25,
942
+ ellipseName: "Appl. Physics. 1965"
943
+ },
944
+ NWL9D: {
945
+ a: 6378145,
946
+ rf: 298.25,
947
+ ellipseName: "Naval Weapons Lab., 1965"
948
+ },
949
+ mod_airy: {
950
+ a: 6377340.189,
951
+ b: 6356034.446,
952
+ ellipseName: "Modified Airy"
953
+ },
954
+ andrae: {
955
+ a: 6377104.43,
956
+ rf: 300,
957
+ ellipseName: "Andrae 1876 (Den., Iclnd.)"
958
+ },
959
+ aust_SA: {
960
+ a: 6378160,
961
+ rf: 298.25,
962
+ ellipseName: "Australian Natl & S. Amer. 1969"
963
+ },
964
+ GRS67: {
965
+ a: 6378160,
966
+ rf: 298.247167427,
967
+ ellipseName: "GRS 67(IUGG 1967)"
968
+ },
969
+ bessel: {
970
+ a: 6377397.155,
971
+ rf: 299.1528128,
972
+ ellipseName: "Bessel 1841"
973
+ },
974
+ bess_nam: {
975
+ a: 6377483.865,
976
+ rf: 299.1528128,
977
+ ellipseName: "Bessel 1841 (Namibia)"
978
+ },
979
+ clrk66: {
980
+ a: 6378206.4,
981
+ b: 6356583.8,
982
+ ellipseName: "Clarke 1866"
983
+ },
984
+ clrk80: {
985
+ a: 6378249.145,
986
+ rf: 293.4663,
987
+ ellipseName: "Clarke 1880 mod."
988
+ },
989
+ clrk80ign: {
990
+ a: 6378249.2,
991
+ b: 6356515,
992
+ rf: 293.4660213,
993
+ ellipseName: "Clarke 1880 (IGN)"
994
+ },
995
+ clrk58: {
996
+ a: 6378293.645208759,
997
+ rf: 294.2606763692654,
998
+ ellipseName: "Clarke 1858"
999
+ },
1000
+ CPM: {
1001
+ a: 6375738.7,
1002
+ rf: 334.29,
1003
+ ellipseName: "Comm. des Poids et Mesures 1799"
1004
+ },
1005
+ delmbr: {
1006
+ a: 6376428,
1007
+ rf: 311.5,
1008
+ ellipseName: "Delambre 1810 (Belgium)"
1009
+ },
1010
+ engelis: {
1011
+ a: 6378136.05,
1012
+ rf: 298.2566,
1013
+ ellipseName: "Engelis 1985"
1014
+ },
1015
+ evrst30: {
1016
+ a: 6377276.345,
1017
+ rf: 300.8017,
1018
+ ellipseName: "Everest 1830"
1019
+ },
1020
+ evrst48: {
1021
+ a: 6377304.063,
1022
+ rf: 300.8017,
1023
+ ellipseName: "Everest 1948"
1024
+ },
1025
+ evrst56: {
1026
+ a: 6377301.243,
1027
+ rf: 300.8017,
1028
+ ellipseName: "Everest 1956"
1029
+ },
1030
+ evrst69: {
1031
+ a: 6377295.664,
1032
+ rf: 300.8017,
1033
+ ellipseName: "Everest 1969"
1034
+ },
1035
+ evrstSS: {
1036
+ a: 6377298.556,
1037
+ rf: 300.8017,
1038
+ ellipseName: "Everest (Sabah & Sarawak)"
1039
+ },
1040
+ fschr60: {
1041
+ a: 6378166,
1042
+ rf: 298.3,
1043
+ ellipseName: "Fischer (Mercury Datum) 1960"
1044
+ },
1045
+ fschr60m: {
1046
+ a: 6378155,
1047
+ rf: 298.3,
1048
+ ellipseName: "Fischer 1960"
1049
+ },
1050
+ fschr68: {
1051
+ a: 6378150,
1052
+ rf: 298.3,
1053
+ ellipseName: "Fischer 1968"
1054
+ },
1055
+ helmert: {
1056
+ a: 6378200,
1057
+ rf: 298.3,
1058
+ ellipseName: "Helmert 1906"
1059
+ },
1060
+ hough: {
1061
+ a: 6378270,
1062
+ rf: 297,
1063
+ ellipseName: "Hough"
1064
+ },
1065
+ intl: {
1066
+ a: 6378388,
1067
+ rf: 297,
1068
+ ellipseName: "International 1909 (Hayford)"
1069
+ },
1070
+ kaula: {
1071
+ a: 6378163,
1072
+ rf: 298.24,
1073
+ ellipseName: "Kaula 1961"
1074
+ },
1075
+ lerch: {
1076
+ a: 6378139,
1077
+ rf: 298.257,
1078
+ ellipseName: "Lerch 1979"
1079
+ },
1080
+ mprts: {
1081
+ a: 6397300,
1082
+ rf: 191,
1083
+ ellipseName: "Maupertius 1738"
1084
+ },
1085
+ new_intl: {
1086
+ a: 6378157.5,
1087
+ b: 6356772.2,
1088
+ ellipseName: "New International 1967"
1089
+ },
1090
+ plessis: {
1091
+ a: 6376523,
1092
+ rf: 6355863,
1093
+ ellipseName: "Plessis 1817 (France)"
1094
+ },
1095
+ krass: {
1096
+ a: 6378245,
1097
+ rf: 298.3,
1098
+ ellipseName: "Krassovsky, 1942"
1099
+ },
1100
+ SEasia: {
1101
+ a: 6378155,
1102
+ b: 6356773.3205,
1103
+ ellipseName: "Southeast Asia"
1104
+ },
1105
+ walbeck: {
1106
+ a: 6376896,
1107
+ b: 6355834.8467,
1108
+ ellipseName: "Walbeck"
1109
+ },
1110
+ WGS60: {
1111
+ a: 6378165,
1112
+ rf: 298.3,
1113
+ ellipseName: "WGS 60"
1114
+ },
1115
+ WGS66: {
1116
+ a: 6378145,
1117
+ rf: 298.25,
1118
+ ellipseName: "WGS 66"
1119
+ },
1120
+ WGS7: {
1121
+ a: 6378135,
1122
+ rf: 298.26,
1123
+ ellipseName: "WGS 72"
1124
+ },
1125
+ WGS84: {
1126
+ a: 6378137,
1127
+ rf: 298.257223563,
1128
+ ellipseName: "WGS 84"
1129
+ },
1130
+ sphere: {
1131
+ a: 6370997,
1132
+ b: 6370997,
1133
+ ellipseName: "Normal Sphere (r=6370997)"
1134
+ }
1135
+ }, Ye = Je.WGS84;
1136
+ function Xe(e, t, n, r) {
1137
+ var i = e * e, a = t * t, o = (i - a) / i, u = 0;
1138
+ r ? (e *= 1 - o * (s + o * (c + o * l)), i = e * e, o = 0) : u = Math.sqrt(o);
1139
+ var d = (i - a) / a;
1140
+ return {
1141
+ es: o,
1142
+ e: u,
1143
+ ep2: d
1144
+ };
1145
+ }
1146
+ function Ze(e, t, n, r, i) {
1147
+ if (!e) {
1148
+ var a = y(Je, r);
1149
+ a ||= Ye, e = a.a, t = a.b, n = a.rf;
1150
+ }
1151
+ return n && !t && (t = (1 - 1 / n) * e), (n === 0 || Math.abs(e - t) < 1e-10) && (i = !0, t = e), {
1152
+ a: e,
1153
+ b: t,
1154
+ rf: n,
1155
+ sphere: i
1156
+ };
1157
+ }
1158
+ //#endregion
1159
+ //#region node_modules/proj4/lib/constants/Datum.js
1160
+ var Qe = {
1161
+ wgs84: {
1162
+ towgs84: "0,0,0",
1163
+ ellipse: "WGS84",
1164
+ datumName: "WGS84"
1165
+ },
1166
+ ch1903: {
1167
+ towgs84: "674.374,15.056,405.346",
1168
+ ellipse: "bessel",
1169
+ datumName: "swiss"
1170
+ },
1171
+ ggrs87: {
1172
+ towgs84: "-199.87,74.79,246.62",
1173
+ ellipse: "GRS80",
1174
+ datumName: "Greek_Geodetic_Reference_System_1987"
1175
+ },
1176
+ nad83: {
1177
+ towgs84: "0,0,0",
1178
+ ellipse: "GRS80",
1179
+ datumName: "North_American_Datum_1983"
1180
+ },
1181
+ nad27: {
1182
+ nadgrids: "@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",
1183
+ ellipse: "clrk66",
1184
+ datumName: "North_American_Datum_1927"
1185
+ },
1186
+ potsdam: {
1187
+ towgs84: "598.1,73.7,418.2,0.202,0.045,-2.455,6.7",
1188
+ ellipse: "bessel",
1189
+ datumName: "Potsdam Rauenberg 1950 DHDN"
1190
+ },
1191
+ carthage: {
1192
+ towgs84: "-263.0,6.0,431.0",
1193
+ ellipse: "clark80",
1194
+ datumName: "Carthage 1934 Tunisia"
1195
+ },
1196
+ hermannskogel: {
1197
+ towgs84: "577.326,90.129,463.919,5.137,1.474,5.297,2.4232",
1198
+ ellipse: "bessel",
1199
+ datumName: "Hermannskogel"
1200
+ },
1201
+ mgi: {
1202
+ towgs84: "577.326,90.129,463.919,5.137,1.474,5.297,2.4232",
1203
+ ellipse: "bessel",
1204
+ datumName: "Militar-Geographische Institut"
1205
+ },
1206
+ osni52: {
1207
+ towgs84: "482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",
1208
+ ellipse: "airy",
1209
+ datumName: "Irish National"
1210
+ },
1211
+ ire65: {
1212
+ towgs84: "482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",
1213
+ ellipse: "mod_airy",
1214
+ datumName: "Ireland 1965"
1215
+ },
1216
+ rassadiran: {
1217
+ towgs84: "-133.63,-157.5,-158.62",
1218
+ ellipse: "intl",
1219
+ datumName: "Rassadiran"
1220
+ },
1221
+ nzgd49: {
1222
+ towgs84: "59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",
1223
+ ellipse: "intl",
1224
+ datumName: "New Zealand Geodetic Datum 1949"
1225
+ },
1226
+ osgb36: {
1227
+ towgs84: "446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",
1228
+ ellipse: "airy",
1229
+ datumName: "Ordnance Survey of Great Britain 1936"
1230
+ },
1231
+ s_jtsk: {
1232
+ towgs84: "589,76,480",
1233
+ ellipse: "bessel",
1234
+ datumName: "S-JTSK (Ferro)"
1235
+ },
1236
+ beduaram: {
1237
+ towgs84: "-106,-87,188",
1238
+ ellipse: "clrk80",
1239
+ datumName: "Beduaram"
1240
+ },
1241
+ gunung_segara: {
1242
+ towgs84: "-403,684,41",
1243
+ ellipse: "bessel",
1244
+ datumName: "Gunung Segara Jakarta"
1245
+ },
1246
+ rnb72: {
1247
+ towgs84: "106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",
1248
+ ellipse: "intl",
1249
+ datumName: "Reseau National Belge 1972"
1250
+ },
1251
+ EPSG_5451: { towgs84: "6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649" },
1252
+ IGNF_LURESG: { towgs84: "-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43" },
1253
+ EPSG_4614: { towgs84: "-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065" },
1254
+ EPSG_4615: { towgs84: "-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748" },
1255
+ ESRI_37241: { towgs84: "-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031" },
1256
+ ESRI_37249: { towgs84: "-440.296,58.548,296.265,1.128,10.202,4.559,-0.438" },
1257
+ ESRI_37245: { towgs84: "-511.151,-181.269,139.609,1.05,2.703,1.798,3.071" },
1258
+ EPSG_4178: { towgs84: "24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01" },
1259
+ EPSG_4622: { towgs84: "-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984" },
1260
+ EPSG_4625: { towgs84: "126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227" },
1261
+ EPSG_5252: { towgs84: "0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439" },
1262
+ EPSG_4314: { towgs84: "597.1,71.4,412.1,0.894,0.068,-1.563,7.58" },
1263
+ EPSG_4282: { towgs84: "-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166" },
1264
+ EPSG_4231: { towgs84: "-83.11,-97.38,-117.22,0.0276,-0.2167,0.2147,0.1218" },
1265
+ EPSG_4274: { towgs84: "-230.994,102.591,25.199,0.633,-0.239,0.9,1.95" },
1266
+ EPSG_4134: { towgs84: "-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006" },
1267
+ EPSG_4254: { towgs84: "18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013" },
1268
+ EPSG_4159: { towgs84: "-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175" },
1269
+ EPSG_4687: { towgs84: "0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093" },
1270
+ EPSG_4227: { towgs84: "-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225" },
1271
+ EPSG_4746: { towgs84: "599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46" },
1272
+ EPSG_4745: { towgs84: "612.4,77,440.2,-0.054,0.057,-2.797,2.55" },
1273
+ EPSG_6311: { towgs84: "8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926" },
1274
+ EPSG_4289: { towgs84: "565.7381,50.4018,465.2904,-1.91514,1.60363,-9.09546,4.07244" },
1275
+ EPSG_4230: { towgs84: "-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4" },
1276
+ EPSG_4154: { towgs84: "-123.02,-158.95,-168.47" },
1277
+ EPSG_4156: { towgs84: "570.8,85.7,462.8,4.998,1.587,5.261,3.56" },
1278
+ EPSG_4299: { towgs84: "482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15" },
1279
+ EPSG_4179: { towgs84: "33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84" },
1280
+ EPSG_4313: { towgs84: "-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747" },
1281
+ EPSG_4194: { towgs84: "163.511,127.533,-159.789" },
1282
+ EPSG_4195: { towgs84: "105,326,-102.5" },
1283
+ EPSG_4196: { towgs84: "-45,417,-3.5" },
1284
+ EPSG_4611: { towgs84: "-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246" },
1285
+ EPSG_4633: { towgs84: "137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824" },
1286
+ EPSG_4641: { towgs84: "-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993" },
1287
+ EPSG_4643: { towgs84: "-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002" },
1288
+ EPSG_4300: { towgs84: "482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15" },
1289
+ EPSG_4188: { towgs84: "482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15" },
1290
+ EPSG_4660: { towgs84: "982.6087,552.753,-540.873,32.39344,-153.25684,-96.2266,16.805" },
1291
+ EPSG_4662: { towgs84: "97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259" },
1292
+ EPSG_3906: { towgs84: "577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664" },
1293
+ EPSG_4307: { towgs84: "-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547" },
1294
+ EPSG_6892: { towgs84: "-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686" },
1295
+ EPSG_4690: { towgs84: "221.597,152.441,176.523,2.403,1.3893,0.884,11.4648" },
1296
+ EPSG_4691: { towgs84: "218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817" },
1297
+ EPSG_4629: { towgs84: "72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653" },
1298
+ EPSG_4630: { towgs84: "165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111" },
1299
+ EPSG_4692: { towgs84: "217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093" },
1300
+ EPSG_9333: { towgs84: "0,0,0,-8.393,0.749,-10.276,0" },
1301
+ EPSG_9059: { towgs84: "0,0,0" },
1302
+ EPSG_4312: { towgs84: "601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887" },
1303
+ EPSG_4123: { towgs84: "-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496" },
1304
+ EPSG_4309: { towgs84: "-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365" },
1305
+ ESRI_104106: { towgs84: "-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058" },
1306
+ EPSG_4281: { towgs84: "-219.247,-73.802,269.529" },
1307
+ EPSG_4322: { towgs84: "0,0,4.5" },
1308
+ EPSG_4324: { towgs84: "0,0,1.9" },
1309
+ EPSG_4284: { towgs84: "43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549" },
1310
+ EPSG_4277: { towgs84: "446.448,-125.157,542.06,0.15,0.247,0.842,-20.489" },
1311
+ EPSG_4207: { towgs84: "-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46" },
1312
+ EPSG_4688: { towgs84: "347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647" },
1313
+ EPSG_4689: { towgs84: "410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218" },
1314
+ EPSG_4720: { towgs84: "0,0,4.5" },
1315
+ EPSG_4273: { towgs84: "278.3,93,474.5,7.889,0.05,-6.61,6.21" },
1316
+ EPSG_4240: { towgs84: "204.64,834.74,293.8" },
1317
+ EPSG_4817: { towgs84: "278.3,93,474.5,7.889,0.05,-6.61,6.21" },
1318
+ ESRI_104131: { towgs84: "426.62,142.62,460.09,4.98,4.49,-12.42,-17.1" },
1319
+ EPSG_4265: { towgs84: "-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68" },
1320
+ EPSG_4263: { towgs84: "-111.92,-87.85,114.5,1.875,0.202,0.219,0.032" },
1321
+ EPSG_4298: { towgs84: "-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536" },
1322
+ EPSG_4270: { towgs84: "-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424" },
1323
+ EPSG_4229: { towgs84: "-121.8,98.1,-10.7" },
1324
+ EPSG_4220: { towgs84: "-55.5,-348,-229.2" },
1325
+ EPSG_4214: { towgs84: "12.646,-155.176,-80.863" },
1326
+ EPSG_4232: { towgs84: "-345,3,223" },
1327
+ EPSG_4238: { towgs84: "-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037" },
1328
+ EPSG_4168: { towgs84: "-170,33,326" },
1329
+ EPSG_4131: { towgs84: "199,931,318.9" },
1330
+ EPSG_4152: { towgs84: "-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0" },
1331
+ EPSG_5228: { towgs84: "572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378" },
1332
+ EPSG_8351: { towgs84: "485.021,169.465,483.839,7.786342,4.397554,4.102655,0" },
1333
+ EPSG_4683: { towgs84: "-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06" },
1334
+ EPSG_4133: { towgs84: "0,0,0" },
1335
+ EPSG_7373: { towgs84: "0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693" },
1336
+ EPSG_9075: { towgs84: "-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0" },
1337
+ EPSG_9072: { towgs84: "-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0" },
1338
+ EPSG_9294: { towgs84: "1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388" },
1339
+ EPSG_4212: { towgs84: "-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492" },
1340
+ EPSG_4191: { towgs84: "-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703" },
1341
+ EPSG_4237: { towgs84: "52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191" },
1342
+ EPSG_4740: { towgs84: "-1.08,-0.27,-0.9" },
1343
+ EPSG_4124: { towgs84: "419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496" },
1344
+ EPSG_5681: { towgs84: "584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922" },
1345
+ EPSG_4141: { towgs84: "23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262" },
1346
+ EPSG_4204: { towgs84: "-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194" },
1347
+ EPSG_4319: { towgs84: "226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798" },
1348
+ EPSG_4200: { towgs84: "24.82,-131.21,-82.66" },
1349
+ EPSG_4130: { towgs84: "0,0,0" },
1350
+ EPSG_4127: { towgs84: "-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359" },
1351
+ EPSG_4149: { towgs84: "674.374,15.056,405.346" },
1352
+ EPSG_4617: { towgs84: "-0.991,1.9072,0.5129,1.25033e-7,4.6785e-8,5.6529e-8,0" },
1353
+ EPSG_4663: { towgs84: "-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485" },
1354
+ EPSG_4664: { towgs84: "-211.939,137.626,58.3,-0.089,0.251,0.079,0.384" },
1355
+ EPSG_4665: { towgs84: "-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048" },
1356
+ EPSG_4666: { towgs84: "631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43" },
1357
+ EPSG_4756: { towgs84: "-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188" },
1358
+ EPSG_4723: { towgs84: "-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925" },
1359
+ EPSG_4726: { towgs84: "8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081" },
1360
+ EPSG_4267: { towgs84: "-8.0,160.0,176.0" },
1361
+ EPSG_5365: { towgs84: "-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693" },
1362
+ EPSG_4218: { towgs84: "304.5,306.5,-318.1" },
1363
+ EPSG_4242: { towgs84: "-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95" },
1364
+ EPSG_4216: { towgs84: "-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289" },
1365
+ ESRI_104105: { towgs84: "631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43" },
1366
+ ESRI_104129: { towgs84: "0,0,0" },
1367
+ EPSG_4673: { towgs84: "174.05,-25.49,112.57" },
1368
+ EPSG_4202: { towgs84: "-124,-60,154" },
1369
+ EPSG_4203: { towgs84: "-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191" },
1370
+ EPSG_3819: { towgs84: "595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408" },
1371
+ EPSG_8694: { towgs84: "-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169" },
1372
+ EPSG_4145: { towgs84: "275.57,676.78,229.6" },
1373
+ EPSG_4283: { towgs84: "61.55,-10.87,-40.19,39.4924,32.7221,32.8979,-9.994" },
1374
+ EPSG_4317: { towgs84: "2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266" },
1375
+ EPSG_4272: { towgs84: "59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993" },
1376
+ EPSG_4248: { towgs84: "-307.7,265.3,-363.5" },
1377
+ EPSG_5561: { towgs84: "24,-121,-76" },
1378
+ EPSG_5233: { towgs84: "-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338" },
1379
+ ESRI_104130: { towgs84: "-86,-98,-119" },
1380
+ ESRI_104102: { towgs84: "682,-203,480" },
1381
+ ESRI_37207: { towgs84: "7,-10,-26" },
1382
+ EPSG_4675: { towgs84: "59.935,118.4,-10.871" },
1383
+ ESRI_104109: { towgs84: "-89.121,-348.182,260.871" },
1384
+ ESRI_104112: { towgs84: "-185.583,-230.096,281.361" },
1385
+ ESRI_104113: { towgs84: "25.1,-275.6,222.6" },
1386
+ IGNF_WGS72G: { towgs84: "0,12,6" },
1387
+ IGNF_NTFG: { towgs84: "-168,-60,320" },
1388
+ IGNF_EFATE57G: { towgs84: "-127,-769,472" },
1389
+ IGNF_PGP50G: { towgs84: "324.8,153.6,172.1" },
1390
+ IGNF_REUN47G: { towgs84: "94,-948,-1262" },
1391
+ IGNF_CSG67G: { towgs84: "-186,230,110" },
1392
+ IGNF_GUAD48G: { towgs84: "-467,-16,-300" },
1393
+ IGNF_TAHI51G: { towgs84: "162,117,154" },
1394
+ IGNF_TAHAAG: { towgs84: "65,342,77" },
1395
+ IGNF_NUKU72G: { towgs84: "84,274,65" },
1396
+ IGNF_PETRELS72G: { towgs84: "365,194,166" },
1397
+ IGNF_WALL78G: { towgs84: "253,-133,-127" },
1398
+ IGNF_MAYO50G: { towgs84: "-382,-59,-262" },
1399
+ IGNF_TANNAG: { towgs84: "-139,-967,436" },
1400
+ IGNF_IGN72G: { towgs84: "-13,-348,292" },
1401
+ IGNF_ATIGG: { towgs84: "1118,23,66" },
1402
+ IGNF_FANGA84G: { towgs84: "150.57,158.33,118.32" },
1403
+ IGNF_RUSAT84G: { towgs84: "202.13,174.6,-15.74" },
1404
+ IGNF_KAUE70G: { towgs84: "126.74,300.1,-75.49" },
1405
+ IGNF_MOP90G: { towgs84: "-10.8,-1.8,12.77" },
1406
+ IGNF_MHPF67G: { towgs84: "338.08,212.58,-296.17" },
1407
+ IGNF_TAHI79G: { towgs84: "160.61,116.05,153.69" },
1408
+ IGNF_ANAA92G: { towgs84: "1.5,3.84,4.81" },
1409
+ IGNF_MARQUI72G: { towgs84: "330.91,-13.92,58.56" },
1410
+ IGNF_APAT86G: { towgs84: "143.6,197.82,74.05" },
1411
+ IGNF_TUBU69G: { towgs84: "237.17,171.61,-77.84" },
1412
+ IGNF_STPM50G: { towgs84: "11.363,424.148,373.13" },
1413
+ EPSG_4150: { towgs84: "674.374,15.056,405.346" },
1414
+ EPSG_4754: { towgs84: "-208.4058,-109.8777,-2.5764" },
1415
+ ESRI_104101: { towgs84: "374,150,588" },
1416
+ EPSG_4693: { towgs84: "0,-0.15,0.68" },
1417
+ EPSG_6207: { towgs84: "293.17,726.18,245.36" },
1418
+ EPSG_4153: { towgs84: "-133.63,-157.5,-158.62" },
1419
+ EPSG_4132: { towgs84: "-241.54,-163.64,396.06" },
1420
+ EPSG_4221: { towgs84: "-154.5,150.7,100.4" },
1421
+ EPSG_4266: { towgs84: "-80.7,-132.5,41.1" },
1422
+ EPSG_4193: { towgs84: "-70.9,-151.8,-41.4" },
1423
+ EPSG_5340: { towgs84: "-0.41,0.46,-0.35" },
1424
+ EPSG_4246: { towgs84: "-294.7,-200.1,525.5" },
1425
+ EPSG_4318: { towgs84: "-3.2,-5.7,2.8" },
1426
+ EPSG_4121: { towgs84: "-199.87,74.79,246.62" },
1427
+ EPSG_4223: { towgs84: "-260.1,5.5,432.2" },
1428
+ EPSG_4158: { towgs84: "-0.465,372.095,171.736" },
1429
+ EPSG_4285: { towgs84: "-128.16,-282.42,21.93" },
1430
+ EPSG_4613: { towgs84: "-404.78,685.68,45.47" },
1431
+ EPSG_4607: { towgs84: "195.671,332.517,274.607" },
1432
+ EPSG_4475: { towgs84: "-381.788,-57.501,-256.673" },
1433
+ EPSG_4208: { towgs84: "-157.84,308.54,-146.6" },
1434
+ EPSG_4743: { towgs84: "70.995,-335.916,262.898" },
1435
+ EPSG_4710: { towgs84: "-323.65,551.39,-491.22" },
1436
+ EPSG_7881: { towgs84: "-0.077,0.079,0.086" },
1437
+ EPSG_4682: { towgs84: "283.729,735.942,261.143" },
1438
+ EPSG_4739: { towgs84: "-156,-271,-189" },
1439
+ EPSG_4679: { towgs84: "-80.01,253.26,291.19" },
1440
+ EPSG_4750: { towgs84: "-56.263,16.136,-22.856" },
1441
+ EPSG_4644: { towgs84: "-10.18,-350.43,291.37" },
1442
+ EPSG_4695: { towgs84: "-103.746,-9.614,-255.95" },
1443
+ EPSG_4292: { towgs84: "-355,21,72" },
1444
+ EPSG_4302: { towgs84: "-61.702,284.488,472.052" },
1445
+ EPSG_4143: { towgs84: "-124.76,53,466.79" },
1446
+ EPSG_4606: { towgs84: "-153,153,307" },
1447
+ EPSG_4699: { towgs84: "-770.1,158.4,-498.2" },
1448
+ EPSG_4247: { towgs84: "-273.5,110.6,-357.9" },
1449
+ EPSG_4160: { towgs84: "8.88,184.86,106.69" },
1450
+ EPSG_4161: { towgs84: "-233.43,6.65,173.64" },
1451
+ EPSG_9251: { towgs84: "-9.5,122.9,138.2" },
1452
+ EPSG_9253: { towgs84: "-78.1,101.6,133.3" },
1453
+ EPSG_4297: { towgs84: "-198.383,-240.517,-107.909" },
1454
+ EPSG_4269: { towgs84: "0,0,0" },
1455
+ EPSG_4301: { towgs84: "-147,506,687" },
1456
+ EPSG_4618: { towgs84: "-59,-11,-52" },
1457
+ EPSG_4612: { towgs84: "0,0,0" },
1458
+ EPSG_4678: { towgs84: "44.585,-131.212,-39.544" },
1459
+ EPSG_4250: { towgs84: "-130,29,364" },
1460
+ EPSG_4144: { towgs84: "214,804,268" },
1461
+ EPSG_4147: { towgs84: "-17.51,-108.32,-62.39" },
1462
+ EPSG_4259: { towgs84: "-254.1,-5.36,-100.29" },
1463
+ EPSG_4164: { towgs84: "-76,-138,67" },
1464
+ EPSG_4211: { towgs84: "-378.873,676.002,-46.255" },
1465
+ EPSG_4182: { towgs84: "-422.651,-172.995,84.02" },
1466
+ EPSG_4224: { towgs84: "-143.87,243.37,-33.52" },
1467
+ EPSG_4225: { towgs84: "-205.57,168.77,-4.12" },
1468
+ EPSG_5527: { towgs84: "-67.35,3.88,-38.22" },
1469
+ EPSG_4752: { towgs84: "98,390,-22" },
1470
+ EPSG_4310: { towgs84: "-30,190,89" },
1471
+ EPSG_9248: { towgs84: "-192.26,65.72,132.08" },
1472
+ EPSG_4680: { towgs84: "124.5,-63.5,-281" },
1473
+ EPSG_4701: { towgs84: "-79.9,-158,-168.9" },
1474
+ EPSG_4706: { towgs84: "-146.21,112.63,4.05" },
1475
+ EPSG_4805: { towgs84: "682,-203,480" },
1476
+ EPSG_4201: { towgs84: "-165,-11,206" },
1477
+ EPSG_4210: { towgs84: "-157,-2,-299" },
1478
+ EPSG_4183: { towgs84: "-104,167,-38" },
1479
+ EPSG_4139: { towgs84: "11,72,-101" },
1480
+ EPSG_4668: { towgs84: "-86,-98,-119" },
1481
+ EPSG_4717: { towgs84: "-2,151,181" },
1482
+ EPSG_4732: { towgs84: "102,52,-38" },
1483
+ EPSG_4280: { towgs84: "-377,681,-50" },
1484
+ EPSG_4209: { towgs84: "-138,-105,-289" },
1485
+ EPSG_4261: { towgs84: "31,146,47" },
1486
+ EPSG_4658: { towgs84: "-73,46,-86" },
1487
+ EPSG_4721: { towgs84: "265.025,384.929,-194.046" },
1488
+ EPSG_4222: { towgs84: "-136,-108,-292" },
1489
+ EPSG_4601: { towgs84: "-255,-15,71" },
1490
+ EPSG_4602: { towgs84: "725,685,536" },
1491
+ EPSG_4603: { towgs84: "72,213.7,93" },
1492
+ EPSG_4605: { towgs84: "9,183,236" },
1493
+ EPSG_4621: { towgs84: "137,248,-430" },
1494
+ EPSG_4657: { towgs84: "-28,199,5" },
1495
+ EPSG_4316: { towgs84: "103.25,-100.4,-307.19" },
1496
+ EPSG_4642: { towgs84: "-13,-348,292" },
1497
+ EPSG_4698: { towgs84: "145,-187,103" },
1498
+ EPSG_4192: { towgs84: "-206.1,-174.7,-87.7" },
1499
+ EPSG_4311: { towgs84: "-265,120,-358" },
1500
+ EPSG_4135: { towgs84: "58,-283,-182" },
1501
+ ESRI_104138: { towgs84: "198,-226,-347" },
1502
+ EPSG_4245: { towgs84: "-11,851,5" },
1503
+ EPSG_4142: { towgs84: "-125,53,467" },
1504
+ EPSG_4213: { towgs84: "-106,-87,188" },
1505
+ EPSG_4253: { towgs84: "-133,-77,-51" },
1506
+ EPSG_4129: { towgs84: "-132,-110,-335" },
1507
+ EPSG_4713: { towgs84: "-77,-128,142" },
1508
+ EPSG_4239: { towgs84: "217,823,299" },
1509
+ EPSG_4146: { towgs84: "295,736,257" },
1510
+ EPSG_4155: { towgs84: "-83,37,124" },
1511
+ EPSG_4165: { towgs84: "-173,253,27" },
1512
+ EPSG_4672: { towgs84: "175,-38,113" },
1513
+ EPSG_4236: { towgs84: "-637,-549,-203" },
1514
+ EPSG_4251: { towgs84: "-90,40,88" },
1515
+ EPSG_4271: { towgs84: "-2,374,172" },
1516
+ EPSG_4175: { towgs84: "-88,4,101" },
1517
+ EPSG_4716: { towgs84: "298,-304,-375" },
1518
+ EPSG_4315: { towgs84: "-23,259,-9" },
1519
+ EPSG_4744: { towgs84: "-242.2,-144.9,370.3" },
1520
+ EPSG_4244: { towgs84: "-97,787,86" },
1521
+ EPSG_4293: { towgs84: "616,97,-251" },
1522
+ EPSG_4714: { towgs84: "-127,-769,472" },
1523
+ EPSG_4736: { towgs84: "260,12,-147" },
1524
+ EPSG_6883: { towgs84: "-235,-110,393" },
1525
+ EPSG_6894: { towgs84: "-63,176,185" },
1526
+ EPSG_4205: { towgs84: "-43,-163,45" },
1527
+ EPSG_4256: { towgs84: "41,-220,-134" },
1528
+ EPSG_4262: { towgs84: "639,405,60" },
1529
+ EPSG_4604: { towgs84: "174,359,365" },
1530
+ EPSG_4169: { towgs84: "-115,118,426" },
1531
+ EPSG_4620: { towgs84: "-106,-129,165" },
1532
+ EPSG_4184: { towgs84: "-203,141,53" },
1533
+ EPSG_4616: { towgs84: "-289,-124,60" },
1534
+ EPSG_9403: { towgs84: "-307,-92,127" },
1535
+ EPSG_4684: { towgs84: "-133,-321,50" },
1536
+ EPSG_4708: { towgs84: "-491,-22,435" },
1537
+ EPSG_4707: { towgs84: "114,-116,-333" },
1538
+ EPSG_4709: { towgs84: "145,75,-272" },
1539
+ EPSG_4712: { towgs84: "-205,107,53" },
1540
+ EPSG_4711: { towgs84: "124,-234,-25" },
1541
+ EPSG_4718: { towgs84: "230,-199,-752" },
1542
+ EPSG_4719: { towgs84: "211,147,111" },
1543
+ EPSG_4724: { towgs84: "208,-435,-229" },
1544
+ EPSG_4725: { towgs84: "189,-79,-202" },
1545
+ EPSG_4735: { towgs84: "647,1777,-1124" },
1546
+ EPSG_4722: { towgs84: "-794,119,-298" },
1547
+ EPSG_4728: { towgs84: "-307,-92,127" },
1548
+ EPSG_4734: { towgs84: "-632,438,-609" },
1549
+ EPSG_4727: { towgs84: "912,-58,1227" },
1550
+ EPSG_4729: { towgs84: "185,165,42" },
1551
+ EPSG_4730: { towgs84: "170,42,84" },
1552
+ EPSG_4733: { towgs84: "276,-57,149" },
1553
+ ESRI_37218: { towgs84: "230,-199,-752" },
1554
+ ESRI_37240: { towgs84: "-7,215,225" },
1555
+ ESRI_37221: { towgs84: "252,-209,-751" },
1556
+ ESRI_4305: { towgs84: "-123,-206,219" },
1557
+ ESRI_104139: { towgs84: "-73,-247,227" },
1558
+ EPSG_4748: { towgs84: "51,391,-36" },
1559
+ EPSG_4219: { towgs84: "-384,664,-48" },
1560
+ EPSG_4255: { towgs84: "-333,-222,114" },
1561
+ EPSG_4257: { towgs84: "-587.8,519.75,145.76" },
1562
+ EPSG_4646: { towgs84: "-963,510,-359" },
1563
+ EPSG_6881: { towgs84: "-24,-203,268" },
1564
+ EPSG_6882: { towgs84: "-183,-15,273" },
1565
+ EPSG_4715: { towgs84: "-104,-129,239" },
1566
+ IGNF_RGF93GDD: { towgs84: "0,0,0" },
1567
+ IGNF_RGM04GDD: { towgs84: "0,0,0" },
1568
+ IGNF_RGSPM06GDD: { towgs84: "0,0,0" },
1569
+ IGNF_RGTAAF07GDD: { towgs84: "0,0,0" },
1570
+ IGNF_RGFG95GDD: { towgs84: "0,0,0" },
1571
+ IGNF_RGNCG: { towgs84: "0,0,0" },
1572
+ IGNF_RGPFGDD: { towgs84: "0,0,0" },
1573
+ IGNF_ETRS89G: { towgs84: "0,0,0" },
1574
+ IGNF_RGR92GDD: { towgs84: "0,0,0" },
1575
+ EPSG_4173: { towgs84: "0,0,0" },
1576
+ EPSG_4180: { towgs84: "0,0,0" },
1577
+ EPSG_4619: { towgs84: "0,0,0" },
1578
+ EPSG_4667: { towgs84: "0,0,0" },
1579
+ EPSG_4075: { towgs84: "0,0,0" },
1580
+ EPSG_6706: { towgs84: "0,0,0" },
1581
+ EPSG_7798: { towgs84: "0,0,0" },
1582
+ EPSG_4661: { towgs84: "0,0,0" },
1583
+ EPSG_4669: { towgs84: "0,0,0" },
1584
+ EPSG_8685: { towgs84: "0,0,0" },
1585
+ EPSG_4151: { towgs84: "0,0,0" },
1586
+ EPSG_9702: { towgs84: "0,0,0" },
1587
+ EPSG_4758: { towgs84: "0,0,0" },
1588
+ EPSG_4761: { towgs84: "0,0,0" },
1589
+ EPSG_4765: { towgs84: "0,0,0" },
1590
+ EPSG_8997: { towgs84: "0,0,0" },
1591
+ EPSG_4023: { towgs84: "0,0,0" },
1592
+ EPSG_4670: { towgs84: "0,0,0" },
1593
+ EPSG_4694: { towgs84: "0,0,0" },
1594
+ EPSG_4148: { towgs84: "0,0,0" },
1595
+ EPSG_4163: { towgs84: "0,0,0" },
1596
+ EPSG_4167: { towgs84: "0,0,0" },
1597
+ EPSG_4189: { towgs84: "0,0,0" },
1598
+ EPSG_4190: { towgs84: "0,0,0" },
1599
+ EPSG_4176: { towgs84: "0,0,0" },
1600
+ EPSG_4659: { towgs84: "0,0,0" },
1601
+ EPSG_3824: { towgs84: "0,0,0" },
1602
+ EPSG_3889: { towgs84: "0,0,0" },
1603
+ EPSG_4046: { towgs84: "0,0,0" },
1604
+ EPSG_4081: { towgs84: "0,0,0" },
1605
+ EPSG_4558: { towgs84: "0,0,0" },
1606
+ EPSG_4483: { towgs84: "0,0,0" },
1607
+ EPSG_5013: { towgs84: "0,0,0" },
1608
+ EPSG_5264: { towgs84: "0,0,0" },
1609
+ EPSG_5324: { towgs84: "0,0,0" },
1610
+ EPSG_5354: { towgs84: "0,0,0" },
1611
+ EPSG_5371: { towgs84: "0,0,0" },
1612
+ EPSG_5373: { towgs84: "0,0,0" },
1613
+ EPSG_5381: { towgs84: "0,0,0" },
1614
+ EPSG_5393: { towgs84: "0,0,0" },
1615
+ EPSG_5489: { towgs84: "0,0,0" },
1616
+ EPSG_5593: { towgs84: "0,0,0" },
1617
+ EPSG_6135: { towgs84: "0,0,0" },
1618
+ EPSG_6365: { towgs84: "0,0,0" },
1619
+ EPSG_5246: { towgs84: "0,0,0" },
1620
+ EPSG_7886: { towgs84: "0,0,0" },
1621
+ EPSG_8431: { towgs84: "0,0,0" },
1622
+ EPSG_8427: { towgs84: "0,0,0" },
1623
+ EPSG_8699: { towgs84: "0,0,0" },
1624
+ EPSG_8818: { towgs84: "0,0,0" },
1625
+ EPSG_4757: { towgs84: "0,0,0" },
1626
+ EPSG_9140: { towgs84: "0,0,0" },
1627
+ EPSG_8086: { towgs84: "0,0,0" },
1628
+ EPSG_4686: { towgs84: "0,0,0" },
1629
+ EPSG_4737: { towgs84: "0,0,0" },
1630
+ EPSG_4702: { towgs84: "0,0,0" },
1631
+ EPSG_4747: { towgs84: "0,0,0" },
1632
+ EPSG_4749: { towgs84: "0,0,0" },
1633
+ EPSG_4674: { towgs84: "0,0,0" },
1634
+ EPSG_4755: { towgs84: "0,0,0" },
1635
+ EPSG_4759: { towgs84: "0,0,0" },
1636
+ EPSG_4762: { towgs84: "0,0,0" },
1637
+ EPSG_4763: { towgs84: "0,0,0" },
1638
+ EPSG_4764: { towgs84: "0,0,0" },
1639
+ EPSG_4166: { towgs84: "0,0,0" },
1640
+ EPSG_4170: { towgs84: "0,0,0" },
1641
+ EPSG_5546: { towgs84: "0,0,0" },
1642
+ EPSG_7844: { towgs84: "0,0,0" },
1643
+ EPSG_4818: { towgs84: "589,76,480" }
1644
+ };
1645
+ for (var $e in Qe) {
1646
+ var et = Qe[$e];
1647
+ et.datumName && (Qe[et.datumName] = et);
1648
+ }
1649
+ //#endregion
1650
+ //#region node_modules/proj4/lib/datum.js
1651
+ function tt(e, t, n, r, i, o, s) {
1652
+ var c = {};
1653
+ return e === void 0 || e === "none" ? c.datum_type = 5 : c.datum_type = 4, t && (c.datum_params = t.map(parseFloat), (c.datum_params[0] !== 0 || c.datum_params[1] !== 0 || c.datum_params[2] !== 0) && (c.datum_type = 1), c.datum_params.length > 3 && (c.datum_params[3] !== 0 || c.datum_params[4] !== 0 || c.datum_params[5] !== 0 || c.datum_params[6] !== 0) && (c.datum_type = 2, c.datum_params[3] *= a, c.datum_params[4] *= a, c.datum_params[5] *= a, c.datum_params[6] = c.datum_params[6] / 1e6 + 1)), s && (c.datum_type = 3, c.grids = s), c.a = n, c.b = r, c.es = i, c.ep2 = o, c;
1654
+ }
1655
+ //#endregion
1656
+ //#region node_modules/proj4/lib/nadgrid.js
1657
+ var nt = {};
1658
+ function rt(e, t, n) {
1659
+ return t instanceof ArrayBuffer ? it(e, t, n) : { ready: at(e, t) };
1660
+ }
1661
+ function it(e, t, n) {
1662
+ var r = !0;
1663
+ n !== void 0 && n.includeErrorFields === !1 && (r = !1);
1664
+ var i = new DataView(t), a = lt(i), o = ut(i, a), s = {
1665
+ header: o,
1666
+ subgrids: ft(i, o, a, r)
1667
+ };
1668
+ return nt[e] = s, s;
1669
+ }
1670
+ async function at(e, t) {
1671
+ for (var n = [], r = await t.getImageCount(), i = r - 1; i >= 0; i--) {
1672
+ var a = await t.getImage(i), o = await a.readRasters(), s = [a.getWidth(), a.getHeight()], c = a.getBoundingBox().map(ct), l = [a.fileDirectory.ModelPixelScale[0], a.fileDirectory.ModelPixelScale[1]].map(ct), u = c[0] + (s[0] - 1) * l[0], d = c[3] - (s[1] - 1) * l[1], f = o[0], p = o[1], m = [];
1673
+ for (let e = s[1] - 1; e >= 0; e--) for (let t = s[0] - 1; t >= 0; t--) {
1674
+ var h = e * s[0] + t;
1675
+ m.push([-L(p[h]), L(f[h])]);
1676
+ }
1677
+ n.push({
1678
+ del: l,
1679
+ lim: s,
1680
+ ll: [-u, d],
1681
+ cvs: m
1682
+ });
1683
+ }
1684
+ var g = {
1685
+ header: { nSubgrids: r },
1686
+ subgrids: n
1687
+ };
1688
+ return nt[e] = g, g;
1689
+ }
1690
+ function ot(e) {
1691
+ return e === void 0 ? null : e.split(",").map(st);
1692
+ }
1693
+ function st(e) {
1694
+ if (e.length === 0) return null;
1695
+ var t = e[0] === "@";
1696
+ return t && (e = e.slice(1)), e === "null" ? {
1697
+ name: "null",
1698
+ mandatory: !t,
1699
+ grid: null,
1700
+ isNull: !0
1701
+ } : {
1702
+ name: e,
1703
+ mandatory: !t,
1704
+ grid: nt[e] || null,
1705
+ isNull: !1
1706
+ };
1707
+ }
1708
+ function ct(e) {
1709
+ return e * Math.PI / 180;
1710
+ }
1711
+ function L(e) {
1712
+ return e / 3600 * Math.PI / 180;
1713
+ }
1714
+ function lt(e) {
1715
+ var t = e.getInt32(8, !1);
1716
+ return t === 11 ? !1 : (t = e.getInt32(8, !0), t !== 11 && console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"), !0);
1717
+ }
1718
+ function ut(e, t) {
1719
+ return {
1720
+ nFields: e.getInt32(8, t),
1721
+ nSubgridFields: e.getInt32(24, t),
1722
+ nSubgrids: e.getInt32(40, t),
1723
+ shiftType: dt(e, 56, 64).trim(),
1724
+ fromSemiMajorAxis: e.getFloat64(120, t),
1725
+ fromSemiMinorAxis: e.getFloat64(136, t),
1726
+ toSemiMajorAxis: e.getFloat64(152, t),
1727
+ toSemiMinorAxis: e.getFloat64(168, t)
1728
+ };
1729
+ }
1730
+ function dt(e, t, n) {
1731
+ return String.fromCharCode.apply(null, new Uint8Array(e.buffer.slice(t, n)));
1732
+ }
1733
+ function ft(e, t, n, r) {
1734
+ for (var i = 176, a = [], o = 0; o < t.nSubgrids; o++) {
1735
+ var s = mt(e, i, n), c = ht(e, i, s, n, r), l = Math.round(1 + (s.upperLongitude - s.lowerLongitude) / s.longitudeInterval), u = Math.round(1 + (s.upperLatitude - s.lowerLatitude) / s.latitudeInterval);
1736
+ a.push({
1737
+ ll: [L(s.lowerLongitude), L(s.lowerLatitude)],
1738
+ del: [L(s.longitudeInterval), L(s.latitudeInterval)],
1739
+ lim: [l, u],
1740
+ count: s.gridNodeCount,
1741
+ cvs: pt(c)
1742
+ });
1743
+ var d = 16;
1744
+ r === !1 && (d = 8), i += 176 + s.gridNodeCount * d;
1745
+ }
1746
+ return a;
1747
+ }
1748
+ function pt(e) {
1749
+ return e.map(function(e) {
1750
+ return [L(e.longitudeShift), L(e.latitudeShift)];
1751
+ });
1752
+ }
1753
+ function mt(e, t, n) {
1754
+ return {
1755
+ name: dt(e, t + 8, t + 16).trim(),
1756
+ parent: dt(e, t + 24, t + 24 + 8).trim(),
1757
+ lowerLatitude: e.getFloat64(t + 72, n),
1758
+ upperLatitude: e.getFloat64(t + 88, n),
1759
+ lowerLongitude: e.getFloat64(t + 104, n),
1760
+ upperLongitude: e.getFloat64(t + 120, n),
1761
+ latitudeInterval: e.getFloat64(t + 136, n),
1762
+ longitudeInterval: e.getFloat64(t + 152, n),
1763
+ gridNodeCount: e.getInt32(t + 168, n)
1764
+ };
1765
+ }
1766
+ function ht(e, t, n, r, i) {
1767
+ var a = t + 176, o = 16;
1768
+ i === !1 && (o = 8);
1769
+ for (var s = [], c = 0; c < n.gridNodeCount; c++) {
1770
+ var l = {
1771
+ latitudeShift: e.getFloat32(a + c * o, r),
1772
+ longitudeShift: e.getFloat32(a + c * o + 4, r)
1773
+ };
1774
+ i !== !1 && (l.latitudeAccuracy = e.getFloat32(a + c * o + 8, r), l.longitudeAccuracy = e.getFloat32(a + c * o + 12, r)), s.push(l);
1775
+ }
1776
+ return s;
1777
+ }
1778
+ //#endregion
1779
+ //#region node_modules/proj4/lib/Proj.js
1780
+ function R(e, t) {
1781
+ if (!(this instanceof R)) return new R(e);
1782
+ this.forward = null, this.inverse = null, this.init = null, this.name, this.names = null, this.title, t ||= function(e) {
1783
+ if (e) throw e;
1784
+ };
1785
+ var n = Ae(e);
1786
+ if (typeof n != "object") {
1787
+ t("Could not parse to valid json: " + e);
1788
+ return;
1789
+ }
1790
+ var r = R.projections.get(n.projName);
1791
+ if (!r) {
1792
+ t("Could not get projection name from: " + e);
1793
+ return;
1794
+ }
1795
+ if (n.datumCode && n.datumCode !== "none") {
1796
+ var i = y(Qe, n.datumCode);
1797
+ i && (n.datum_params = n.datum_params || (i.towgs84 ? i.towgs84.split(",") : null), n.ellps = i.ellipse, n.datumName = i.datumName ? i.datumName : n.datumCode);
1798
+ }
1799
+ n.k0 = n.k0 || 1, n.axis = n.axis || "enu", n.ellps = n.ellps || "wgs84", n.lat1 = n.lat1 || n.lat0;
1800
+ var a = Ze(n.a, n.b, n.rf, n.ellps, n.sphere), o = Xe(a.a, a.b, a.rf, n.R_A), s = ot(n.nadgrids), c = n.datum || tt(n.datumCode, n.datum_params, a.a, a.b, o.es, o.ep2, s);
1801
+ je(this, n), je(this, r), this.a = a.a, this.b = a.b, this.rf = a.rf, this.sphere = a.sphere, this.es = o.es, this.e = o.e, this.ep2 = o.ep2, this.datum = c, "init" in this && typeof this.init == "function" && this.init(), t(null, this);
1802
+ }
1803
+ R.projections = qe, R.projections.start();
1804
+ //#endregion
1805
+ //#region node_modules/proj4/lib/datumUtils.js
1806
+ function gt(e, t) {
1807
+ return e.datum_type === t.datum_type ? e.a !== t.a || Math.abs(e.es - t.es) > 5e-11 ? !1 : e.datum_type === 1 ? e.datum_params[0] === t.datum_params[0] && e.datum_params[1] === t.datum_params[1] && e.datum_params[2] === t.datum_params[2] : e.datum_type === 2 ? e.datum_params[0] === t.datum_params[0] && e.datum_params[1] === t.datum_params[1] && e.datum_params[2] === t.datum_params[2] && e.datum_params[3] === t.datum_params[3] && e.datum_params[4] === t.datum_params[4] && e.datum_params[5] === t.datum_params[5] && e.datum_params[6] === t.datum_params[6] : !0 : !1;
1808
+ }
1809
+ function _t(e, t, n) {
1810
+ var r = e.x, i = e.y, a = e.z ? e.z : 0, s, c, l, u;
1811
+ if (i < -o && i > -1.001 * o) i = -o;
1812
+ else if (i > o && i < 1.001 * o) i = o;
1813
+ else if (i < -o) return {
1814
+ x: -Infinity,
1815
+ y: -Infinity,
1816
+ z: e.z
1817
+ };
1818
+ else if (i > o) return {
1819
+ x: Infinity,
1820
+ y: Infinity,
1821
+ z: e.z
1822
+ };
1823
+ return r > Math.PI && (r -= 2 * Math.PI), c = Math.sin(i), u = Math.cos(i), l = c * c, s = n / Math.sqrt(1 - t * l), {
1824
+ x: (s + a) * u * Math.cos(r),
1825
+ y: (s + a) * u * Math.sin(r),
1826
+ z: (s * (1 - t) + a) * c
1827
+ };
1828
+ }
1829
+ function vt(e, t, n, r) {
1830
+ var i = 1e-12, a = i * i, s = 30, c, l, u, d, f, p, m, h, g, _, v, y, b, x = e.x, S = e.y, C = e.z ? e.z : 0, w, T, E;
1831
+ if (c = Math.sqrt(x * x + S * S), l = Math.sqrt(x * x + S * S + C * C), c / n < i) {
1832
+ if (w = 0, l / n < i) return T = o, E = -r, {
1833
+ x: e.x,
1834
+ y: e.y,
1835
+ z: e.z
1836
+ };
1837
+ } else w = Math.atan2(S, x);
1838
+ u = C / l, d = c / l, f = 1 / Math.sqrt(1 - t * (2 - t) * d * d), h = d * (1 - t) * f, g = u * f, b = 0;
1839
+ do
1840
+ b++, m = n / Math.sqrt(1 - t * g * g), E = c * h + C * g - m * (1 - t * g * g), p = t * m / (m + E), f = 1 / Math.sqrt(1 - p * (2 - p) * d * d), _ = d * (1 - p) * f, v = u * f, y = v * h - _ * g, h = _, g = v;
1841
+ while (y * y > a && b < s);
1842
+ return T = Math.atan(v / Math.abs(_)), {
1843
+ x: w,
1844
+ y: T,
1845
+ z: E
1846
+ };
1847
+ }
1848
+ function yt(e, t, n) {
1849
+ if (t === 1) return {
1850
+ x: e.x + n[0],
1851
+ y: e.y + n[1],
1852
+ z: e.z + n[2]
1853
+ };
1854
+ if (t === 2) {
1855
+ var r = n[0], i = n[1], a = n[2], o = n[3], s = n[4], c = n[5], l = n[6];
1856
+ return {
1857
+ x: l * (e.x - c * e.y + s * e.z) + r,
1858
+ y: l * (c * e.x + e.y - o * e.z) + i,
1859
+ z: l * (-s * e.x + o * e.y + e.z) + a
1860
+ };
1861
+ }
1862
+ }
1863
+ function bt(e, t, n) {
1864
+ if (t === 1) return {
1865
+ x: e.x - n[0],
1866
+ y: e.y - n[1],
1867
+ z: e.z - n[2]
1868
+ };
1869
+ if (t === 2) {
1870
+ var r = n[0], i = n[1], a = n[2], o = n[3], s = n[4], c = n[5], l = n[6], u = (e.x - r) / l, d = (e.y - i) / l, f = (e.z - a) / l;
1871
+ return {
1872
+ x: u + c * d - s * f,
1873
+ y: -c * u + d + o * f,
1874
+ z: s * u - o * d + f
1875
+ };
1876
+ }
1877
+ }
1878
+ //#endregion
1879
+ //#region node_modules/proj4/lib/datum_transform.js
1880
+ function xt(e) {
1881
+ return e === 1 || e === 2;
1882
+ }
1883
+ function St(e, t, a) {
1884
+ if (gt(e, t) || e.datum_type === 5 || t.datum_type === 5) return a;
1885
+ var o = e.a, s = e.es;
1886
+ if (e.datum_type === 3) {
1887
+ if (Ct(e, !1, a) !== 0) return;
1888
+ o = n, s = i;
1889
+ }
1890
+ var c = t.a, l = t.b, u = t.es;
1891
+ if (t.datum_type === 3 && (c = n, l = r, u = i), s === u && o === c && !xt(e.datum_type) && !xt(t.datum_type) || (a = _t(a, s, o), xt(e.datum_type) && (a = yt(a, e.datum_type, e.datum_params)), xt(t.datum_type) && (a = bt(a, t.datum_type, t.datum_params)), a = vt(a, u, c, l), !(t.datum_type === 3 && Ct(t, !0, a) !== 0))) return a;
1892
+ }
1893
+ function Ct(e, t, n) {
1894
+ if (e.grids === null || e.grids.length === 0) return console.log("Grid shift grids not found"), -1;
1895
+ var r = {
1896
+ x: -n.x,
1897
+ y: n.y
1898
+ }, i = {
1899
+ x: NaN,
1900
+ y: NaN
1901
+ }, a = [];
1902
+ outer: for (var o = 0; o < e.grids.length; o++) {
1903
+ var s = e.grids[o];
1904
+ if (a.push(s.name), s.isNull) {
1905
+ i = r;
1906
+ break;
1907
+ }
1908
+ if (s.grid === null) {
1909
+ if (s.mandatory) return console.log("Unable to find mandatory grid '" + s.name + "'"), -1;
1910
+ continue;
1911
+ }
1912
+ for (var c = s.grid.subgrids, l = 0, u = c.length; l < u; l++) {
1913
+ var d = c[l], p = (Math.abs(d.del[1]) + Math.abs(d.del[0])) / 1e4, m = d.ll[0] - p, h = d.ll[1] - p, g = d.ll[0] + (d.lim[0] - 1) * d.del[0] + p, _ = d.ll[1] + (d.lim[1] - 1) * d.del[1] + p;
1914
+ if (!(h > r.y || m > r.x || _ < r.y || g < r.x) && (i = wt(r, t, d), !isNaN(i.x))) break outer;
1915
+ }
1916
+ }
1917
+ return isNaN(i.x) ? (console.log("Failed to find a grid shift table for location '" + -r.x * f + " " + r.y * f + " tried: '" + a + "'"), -1) : (n.x = -i.x, n.y = i.y, 0);
1918
+ }
1919
+ function wt(e, t, n) {
1920
+ var r = {
1921
+ x: NaN,
1922
+ y: NaN
1923
+ };
1924
+ if (isNaN(e.x)) return r;
1925
+ var i = {
1926
+ x: e.x,
1927
+ y: e.y
1928
+ };
1929
+ i.x -= n.ll[0], i.y -= n.ll[1], i.x = P(i.x - Math.PI) + Math.PI;
1930
+ var a = Tt(i, n);
1931
+ if (t) {
1932
+ if (isNaN(a.x)) return r;
1933
+ a.x = i.x - a.x, a.y = i.y - a.y;
1934
+ var o = 9, s = 1e-12, c, l;
1935
+ do {
1936
+ if (l = Tt(a, n), isNaN(l.x)) {
1937
+ console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");
1938
+ break;
1939
+ }
1940
+ c = {
1941
+ x: i.x - (l.x + a.x),
1942
+ y: i.y - (l.y + a.y)
1943
+ }, a.x += c.x, a.y += c.y;
1944
+ } while (o-- && Math.abs(c.x) > s && Math.abs(c.y) > s);
1945
+ if (o < 0) return console.log("Inverse grid shift iterator failed to converge."), r;
1946
+ r.x = P(a.x + n.ll[0]), r.y = a.y + n.ll[1];
1947
+ } else isNaN(a.x) || (r.x = e.x + a.x, r.y = e.y + a.y);
1948
+ return r;
1949
+ }
1950
+ function Tt(e, t) {
1951
+ var n = {
1952
+ x: e.x / t.del[0],
1953
+ y: e.y / t.del[1]
1954
+ }, r = {
1955
+ x: Math.floor(n.x),
1956
+ y: Math.floor(n.y)
1957
+ }, i = {
1958
+ x: n.x - 1 * r.x,
1959
+ y: n.y - 1 * r.y
1960
+ }, a = {
1961
+ x: NaN,
1962
+ y: NaN
1963
+ }, o;
1964
+ if (r.x < 0 || r.x >= t.lim[0] || r.y < 0 || r.y >= t.lim[1]) return a;
1965
+ o = r.y * t.lim[0] + r.x;
1966
+ var s = {
1967
+ x: t.cvs[o][0],
1968
+ y: t.cvs[o][1]
1969
+ };
1970
+ o++;
1971
+ var c = {
1972
+ x: t.cvs[o][0],
1973
+ y: t.cvs[o][1]
1974
+ };
1975
+ o += t.lim[0];
1976
+ var l = {
1977
+ x: t.cvs[o][0],
1978
+ y: t.cvs[o][1]
1979
+ };
1980
+ o--;
1981
+ var u = {
1982
+ x: t.cvs[o][0],
1983
+ y: t.cvs[o][1]
1984
+ }, d = i.x * i.y, f = i.x * (1 - i.y), p = (1 - i.x) * (1 - i.y), m = (1 - i.x) * i.y;
1985
+ return a.x = p * s.x + f * c.x + m * u.x + d * l.x, a.y = p * s.y + f * c.y + m * u.y + d * l.y, a;
1986
+ }
1987
+ //#endregion
1988
+ //#region node_modules/proj4/lib/adjust_axis.js
1989
+ function Et(e, t, n) {
1990
+ var r = n.x, i = n.y, a = n.z || 0, o, s, c, l = {};
1991
+ for (c = 0; c < 3; c++) if (!(t && c === 2 && n.z === void 0)) switch (c === 0 ? (o = r, s = "ew".indexOf(e.axis[c]) === -1 ? "y" : "x") : c === 1 ? (o = i, s = "ns".indexOf(e.axis[c]) === -1 ? "x" : "y") : (o = a, s = "z"), e.axis[c]) {
1992
+ case "e":
1993
+ l[s] = o;
1994
+ break;
1995
+ case "w":
1996
+ l[s] = -o;
1997
+ break;
1998
+ case "n":
1999
+ l[s] = o;
2000
+ break;
2001
+ case "s":
2002
+ l[s] = -o;
2003
+ break;
2004
+ case "u":
2005
+ n[s] !== void 0 && (l.z = o);
2006
+ break;
2007
+ case "d":
2008
+ n[s] !== void 0 && (l.z = -o);
2009
+ break;
2010
+ default: return null;
2011
+ }
2012
+ return l;
2013
+ }
2014
+ //#endregion
2015
+ //#region node_modules/proj4/lib/common/toPoint.js
2016
+ function Dt(e) {
2017
+ var t = {
2018
+ x: e[0],
2019
+ y: e[1]
2020
+ };
2021
+ return e.length > 2 && (t.z = e[2]), e.length > 3 && (t.m = e[3]), t;
2022
+ }
2023
+ //#endregion
2024
+ //#region node_modules/proj4/lib/checkSanity.js
2025
+ function Ot(e) {
2026
+ kt(e.x), kt(e.y);
2027
+ }
2028
+ function kt(e) {
2029
+ if (typeof Number.isFinite == "function") {
2030
+ if (Number.isFinite(e)) return;
2031
+ throw TypeError("coordinates must be finite numbers");
2032
+ }
2033
+ if (typeof e != "number" || e !== e || !isFinite(e)) throw TypeError("coordinates must be finite numbers");
2034
+ }
2035
+ //#endregion
2036
+ //#region node_modules/proj4/lib/transform.js
2037
+ function At(e, t) {
2038
+ return (e.datum.datum_type === 1 || e.datum.datum_type === 2 || e.datum.datum_type === 3) && t.datumCode !== "WGS84" || (t.datum.datum_type === 1 || t.datum.datum_type === 2 || t.datum.datum_type === 3) && e.datumCode !== "WGS84";
2039
+ }
2040
+ function jt(e, t, n, r) {
2041
+ var i;
2042
+ n = Array.isArray(n) ? Dt(n) : {
2043
+ x: n.x,
2044
+ y: n.y,
2045
+ z: n.z,
2046
+ m: n.m
2047
+ };
2048
+ var a = n.z !== void 0;
2049
+ if (Ot(n), e.datum && t.datum && At(e, t) && (i = new R("WGS84"), n = jt(e, i, n, r), e = i), r && e.axis !== "enu" && (n = Et(e, !1, n)), e.projName === "longlat") n = {
2050
+ x: n.x * d,
2051
+ y: n.y * d,
2052
+ z: n.z || 0
2053
+ };
2054
+ else if (e.to_meter && (n = {
2055
+ x: n.x * e.to_meter,
2056
+ y: n.y * e.to_meter,
2057
+ z: n.z || 0
2058
+ }), n = e.inverse(n), !n) return;
2059
+ if (e.from_greenwich && (n.x += e.from_greenwich), n = St(e.datum, t.datum, n), n) return n = n, t.from_greenwich && (n = {
2060
+ x: n.x - t.from_greenwich,
2061
+ y: n.y,
2062
+ z: n.z || 0
2063
+ }), t.projName === "longlat" ? n = {
2064
+ x: n.x * f,
2065
+ y: n.y * f,
2066
+ z: n.z || 0
2067
+ } : (n = t.forward(n), t.to_meter && (n = {
2068
+ x: n.x / t.to_meter,
2069
+ y: n.y / t.to_meter,
2070
+ z: n.z || 0
2071
+ })), r && t.axis !== "enu" ? Et(t, !0, n) : (n && !a && delete n.z, n);
2072
+ }
2073
+ //#endregion
2074
+ //#region node_modules/proj4/lib/core.js
2075
+ var Mt = R("WGS84");
2076
+ function Nt(e, t, n, r) {
2077
+ var i, a, o;
2078
+ return Array.isArray(n) ? (i = jt(e, t, n, r) || {
2079
+ x: NaN,
2080
+ y: NaN
2081
+ }, n.length > 2 ? e.name !== void 0 && e.name === "geocent" || t.name !== void 0 && t.name === "geocent" ? typeof i.z == "number" ? [
2082
+ i.x,
2083
+ i.y,
2084
+ i.z
2085
+ ].concat(n.slice(3)) : [
2086
+ i.x,
2087
+ i.y,
2088
+ n[2]
2089
+ ].concat(n.slice(3)) : [i.x, i.y].concat(n.slice(2)) : [i.x, i.y]) : (a = jt(e, t, n, r), o = Object.keys(n), o.length === 2 || o.forEach(function(r) {
2090
+ if (e.name !== void 0 && e.name === "geocent" || t.name !== void 0 && t.name === "geocent") {
2091
+ if (r === "x" || r === "y" || r === "z") return;
2092
+ } else if (r === "x" || r === "y") return;
2093
+ a[r] = n[r];
2094
+ }), a);
2095
+ }
2096
+ function Pt(e) {
2097
+ return e instanceof R ? e : typeof e == "object" && "oProj" in e ? e.oProj : R(e);
2098
+ }
2099
+ function Ft(e, t, n) {
2100
+ var r, i, a = !1, o;
2101
+ return t === void 0 ? (i = Pt(e), r = Mt, a = !0) : (t.x !== void 0 || Array.isArray(t)) && (n = t, i = Pt(e), r = Mt, a = !0), r ||= Pt(e), i ||= Pt(t), n ? Nt(r, i, n) : (o = {
2102
+ forward: function(e, t) {
2103
+ return Nt(r, i, e, t);
2104
+ },
2105
+ inverse: function(e, t) {
2106
+ return Nt(i, r, e, t);
2107
+ }
2108
+ }, a && (o.oProj = i), o);
2109
+ }
2110
+ //#endregion
2111
+ //#region node_modules/mgrs/mgrs.js
2112
+ var It = 6, Lt = "AJSAJS", Rt = "AFAFAF", z = 65, B = 73, V = 79, zt = 86, Bt = 90, Vt = {
2113
+ forward: Ht,
2114
+ inverse: Ut,
2115
+ toPoint: Wt
2116
+ };
2117
+ function Ht(e, t) {
2118
+ return t ||= 5, Xt(qt({
2119
+ lat: e[1],
2120
+ lon: e[0]
2121
+ }), t);
2122
+ }
2123
+ function Ut(e) {
2124
+ var t = Jt(en(e.toUpperCase()));
2125
+ return t.lat && t.lon ? [
2126
+ t.lon,
2127
+ t.lat,
2128
+ t.lon,
2129
+ t.lat
2130
+ ] : [
2131
+ t.left,
2132
+ t.bottom,
2133
+ t.right,
2134
+ t.top
2135
+ ];
2136
+ }
2137
+ function Wt(e) {
2138
+ var t = Jt(en(e.toUpperCase()));
2139
+ return t.lat && t.lon ? [t.lon, t.lat] : [(t.left + t.right) / 2, (t.top + t.bottom) / 2];
2140
+ }
2141
+ function Gt(e) {
2142
+ return Math.PI / 180 * e;
2143
+ }
2144
+ function Kt(e) {
2145
+ return e / Math.PI * 180;
2146
+ }
2147
+ function qt(e) {
2148
+ var t = e.lat, n = e.lon, r = 6378137, i = .00669438, a = .9996, o, s, c, l, u, d, f, p = Gt(t), m = Gt(n), h, g = Math.floor((n + 180) / 6) + 1;
2149
+ n === 180 && (g = 60), t >= 56 && t < 64 && n >= 3 && n < 12 && (g = 32), t >= 72 && t < 84 && (n >= 0 && n < 9 ? g = 31 : n >= 9 && n < 21 ? g = 33 : n >= 21 && n < 33 ? g = 35 : n >= 33 && n < 42 && (g = 37)), o = (g - 1) * 6 - 180 + 3, h = Gt(o), s = i / (1 - i), c = r / Math.sqrt(1 - i * Math.sin(p) * Math.sin(p)), l = Math.tan(p) * Math.tan(p), u = s * Math.cos(p) * Math.cos(p), d = Math.cos(p) * (m - h), f = r * ((1 - i / 4 - 3 * i * i / 64 - 5 * i * i * i / 256) * p - (3 * i / 8 + 3 * i * i / 32 + 45 * i * i * i / 1024) * Math.sin(2 * p) + (15 * i * i / 256 + 45 * i * i * i / 1024) * Math.sin(4 * p) - 35 * i * i * i / 3072 * Math.sin(6 * p));
2150
+ var _ = a * c * (d + (1 - l + u) * d * d * d / 6 + (5 - 18 * l + l * l + 72 * u - 58 * s) * d * d * d * d * d / 120) + 5e5, v = a * (f + c * Math.tan(p) * (d * d / 2 + (5 - l + 9 * u + 4 * u * u) * d * d * d * d / 24 + (61 - 58 * l + l * l + 600 * u - 330 * s) * d * d * d * d * d * d / 720));
2151
+ return t < 0 && (v += 1e7), {
2152
+ northing: Math.round(v),
2153
+ easting: Math.round(_),
2154
+ zoneNumber: g,
2155
+ zoneLetter: Yt(t)
2156
+ };
2157
+ }
2158
+ function Jt(e) {
2159
+ var t = e.northing, n = e.easting, r = e.zoneLetter, i = e.zoneNumber;
2160
+ if (i < 0 || i > 60) return null;
2161
+ var a = .9996, o = 6378137, s = .00669438, c, l = (1 - Math.sqrt(1 - s)) / (1 + Math.sqrt(1 - s)), u, d, f, p, m, h, g, _, v, y = n - 5e5, b = t;
2162
+ r < "N" && (b -= 1e7), g = (i - 1) * 6 - 180 + 3, c = s / (1 - s), h = b / a, _ = h / (o * (1 - s / 4 - 3 * s * s / 64 - 5 * s * s * s / 256)), v = _ + (3 * l / 2 - 27 * l * l * l / 32) * Math.sin(2 * _) + (21 * l * l / 16 - 55 * l * l * l * l / 32) * Math.sin(4 * _) + 151 * l * l * l / 96 * Math.sin(6 * _), u = o / Math.sqrt(1 - s * Math.sin(v) * Math.sin(v)), d = Math.tan(v) * Math.tan(v), f = c * Math.cos(v) * Math.cos(v), p = o * (1 - s) / (1 - s * Math.sin(v) * Math.sin(v)) ** 1.5, m = y / (u * a);
2163
+ var x = v - u * Math.tan(v) / p * (m * m / 2 - (5 + 3 * d + 10 * f - 4 * f * f - 9 * c) * m * m * m * m / 24 + (61 + 90 * d + 298 * f + 45 * d * d - 252 * c - 3 * f * f) * m * m * m * m * m * m / 720);
2164
+ x = Kt(x);
2165
+ var S = (m - (1 + 2 * d + f) * m * m * m / 6 + (5 - 2 * f + 28 * d - 3 * f * f + 8 * c + 24 * d * d) * m * m * m * m * m / 120) / Math.cos(v);
2166
+ S = g + Kt(S);
2167
+ var C;
2168
+ if (e.accuracy) {
2169
+ var w = Jt({
2170
+ northing: e.northing + e.accuracy,
2171
+ easting: e.easting + e.accuracy,
2172
+ zoneLetter: e.zoneLetter,
2173
+ zoneNumber: e.zoneNumber
2174
+ });
2175
+ C = {
2176
+ top: w.lat,
2177
+ right: w.lon,
2178
+ bottom: x,
2179
+ left: S
2180
+ };
2181
+ } else C = {
2182
+ lat: x,
2183
+ lon: S
2184
+ };
2185
+ return C;
2186
+ }
2187
+ function Yt(e) {
2188
+ var t = "Z";
2189
+ return 84 >= e && e >= 72 ? t = "X" : 72 > e && e >= 64 ? t = "W" : 64 > e && e >= 56 ? t = "V" : 56 > e && e >= 48 ? t = "U" : 48 > e && e >= 40 ? t = "T" : 40 > e && e >= 32 ? t = "S" : 32 > e && e >= 24 ? t = "R" : 24 > e && e >= 16 ? t = "Q" : 16 > e && e >= 8 ? t = "P" : 8 > e && e >= 0 ? t = "N" : 0 > e && e >= -8 ? t = "M" : -8 > e && e >= -16 ? t = "L" : -16 > e && e >= -24 ? t = "K" : -24 > e && e >= -32 ? t = "J" : -32 > e && e >= -40 ? t = "H" : -40 > e && e >= -48 ? t = "G" : -48 > e && e >= -56 ? t = "F" : -56 > e && e >= -64 ? t = "E" : -64 > e && e >= -72 ? t = "D" : -72 > e && e >= -80 && (t = "C"), t;
2190
+ }
2191
+ function Xt(e, t) {
2192
+ var n = "00000" + e.easting, r = "00000" + e.northing;
2193
+ return e.zoneNumber + e.zoneLetter + Zt(e.easting, e.northing, e.zoneNumber) + n.substr(n.length - 5, t) + r.substr(r.length - 5, t);
2194
+ }
2195
+ function Zt(e, t, n) {
2196
+ var r = Qt(n);
2197
+ return $t(Math.floor(e / 1e5), Math.floor(t / 1e5) % 20, r);
2198
+ }
2199
+ function Qt(e) {
2200
+ var t = e % It;
2201
+ return t === 0 && (t = It), t;
2202
+ }
2203
+ function $t(e, t, n) {
2204
+ var r = n - 1, i = Lt.charCodeAt(r), a = Rt.charCodeAt(r), o = i + e - 1, s = a + t, c = !1;
2205
+ return o > Bt && (o = o - Bt + z - 1, c = !0), (o === B || i < B && o > B || (o > B || i < B) && c) && o++, (o === V || i < V && o > V || (o > V || i < V) && c) && (o++, o === B && o++), o > Bt && (o = o - Bt + z - 1), s > zt ? (s = s - zt + z - 1, c = !0) : c = !1, (s === B || a < B && s > B || (s > B || a < B) && c) && s++, (s === V || a < V && s > V || (s > V || a < V) && c) && (s++, s === B && s++), s > zt && (s = s - zt + z - 1), String.fromCharCode(o) + String.fromCharCode(s);
2206
+ }
2207
+ function en(e) {
2208
+ if (e && e.length === 0) throw "MGRSPoint coverting from nothing";
2209
+ for (var t = e.length, n = null, r = "", i, a = 0; !/[A-Z]/.test(i = e.charAt(a));) {
2210
+ if (a >= 2) throw "MGRSPoint bad conversion from: " + e;
2211
+ r += i, a++;
2212
+ }
2213
+ var o = parseInt(r, 10);
2214
+ if (a === 0 || a + 3 > t) throw "MGRSPoint bad conversion from: " + e;
2215
+ var s = e.charAt(a++);
2216
+ if (s <= "A" || s === "B" || s === "Y" || s >= "Z" || s === "I" || s === "O") throw "MGRSPoint zone letter " + s + " not handled: " + e;
2217
+ n = e.substring(a, a += 2);
2218
+ for (var c = Qt(o), l = tn(n.charAt(0), c), u = nn(n.charAt(1), c); u < rn(s);) u += 2e6;
2219
+ var d = t - a;
2220
+ if (d % 2 != 0) throw "MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters" + e;
2221
+ var f = d / 2, p = 0, m = 0, h, g, _, v, y;
2222
+ return f > 0 && (h = 1e5 / 10 ** f, g = e.substring(a, a + f), p = parseFloat(g) * h, _ = e.substring(a + f), m = parseFloat(_) * h), v = p + l, y = m + u, {
2223
+ easting: v,
2224
+ northing: y,
2225
+ zoneLetter: s,
2226
+ zoneNumber: o,
2227
+ accuracy: h
2228
+ };
2229
+ }
2230
+ function tn(e, t) {
2231
+ for (var n = Lt.charCodeAt(t - 1), r = 1e5, i = !1; n !== e.charCodeAt(0);) {
2232
+ if (n++, n === B && n++, n === V && n++, n > Bt) {
2233
+ if (i) throw "Bad character: " + e;
2234
+ n = z, i = !0;
2235
+ }
2236
+ r += 1e5;
2237
+ }
2238
+ return r;
2239
+ }
2240
+ function nn(e, t) {
2241
+ if (e > "V") throw "MGRSPoint given invalid Northing " + e;
2242
+ for (var n = Rt.charCodeAt(t - 1), r = 0, i = !1; n !== e.charCodeAt(0);) {
2243
+ if (n++, n === B && n++, n === V && n++, n > zt) {
2244
+ if (i) throw "Bad character: " + e;
2245
+ n = z, i = !0;
2246
+ }
2247
+ r += 1e5;
2248
+ }
2249
+ return r;
2250
+ }
2251
+ function rn(e) {
2252
+ var t;
2253
+ switch (e) {
2254
+ case "C":
2255
+ t = 11e5;
2256
+ break;
2257
+ case "D":
2258
+ t = 2e6;
2259
+ break;
2260
+ case "E":
2261
+ t = 28e5;
2262
+ break;
2263
+ case "F":
2264
+ t = 37e5;
2265
+ break;
2266
+ case "G":
2267
+ t = 46e5;
2268
+ break;
2269
+ case "H":
2270
+ t = 55e5;
2271
+ break;
2272
+ case "J":
2273
+ t = 64e5;
2274
+ break;
2275
+ case "K":
2276
+ t = 73e5;
2277
+ break;
2278
+ case "L":
2279
+ t = 82e5;
2280
+ break;
2281
+ case "M":
2282
+ t = 91e5;
2283
+ break;
2284
+ case "N":
2285
+ t = 0;
2286
+ break;
2287
+ case "P":
2288
+ t = 8e5;
2289
+ break;
2290
+ case "Q":
2291
+ t = 17e5;
2292
+ break;
2293
+ case "R":
2294
+ t = 26e5;
2295
+ break;
2296
+ case "S":
2297
+ t = 35e5;
2298
+ break;
2299
+ case "T":
2300
+ t = 44e5;
2301
+ break;
2302
+ case "U":
2303
+ t = 53e5;
2304
+ break;
2305
+ case "V":
2306
+ t = 62e5;
2307
+ break;
2308
+ case "W":
2309
+ t = 7e6;
2310
+ break;
2311
+ case "X":
2312
+ t = 79e5;
2313
+ break;
2314
+ default: t = -1;
2315
+ }
2316
+ if (t >= 0) return t;
2317
+ throw "Invalid zone letter: " + e;
2318
+ }
2319
+ //#endregion
2320
+ //#region node_modules/proj4/lib/Point.js
2321
+ function H(e, t, n) {
2322
+ if (!(this instanceof H)) return new H(e, t, n);
2323
+ if (Array.isArray(e)) this.x = e[0], this.y = e[1], this.z = e[2] || 0;
2324
+ else if (typeof e == "object") this.x = e.x, this.y = e.y, this.z = e.z || 0;
2325
+ else if (typeof e == "string" && t === void 0) {
2326
+ var r = e.split(",");
2327
+ this.x = parseFloat(r[0]), this.y = parseFloat(r[1]), this.z = parseFloat(r[2]) || 0;
2328
+ } else this.x = e, this.y = t, this.z = n || 0;
2329
+ console.warn("proj4.Point will be removed in version 3, use proj4.toPoint");
2330
+ }
2331
+ H.fromMGRS = function(e) {
2332
+ return new H(Wt(e));
2333
+ }, H.prototype.toMGRS = function(e) {
2334
+ return Ht([this.x, this.y], e);
2335
+ };
2336
+ //#endregion
2337
+ //#region node_modules/proj4/lib/common/pj_enfn.js
2338
+ var an = 1, on = .25, sn = .046875, cn = .01953125, ln = .01068115234375, un = .75, dn = .46875, fn = .013020833333333334, pn = .007120768229166667, mn = .3645833333333333, hn = .005696614583333333, gn = .3076171875;
2339
+ function _n(e) {
2340
+ var t = [];
2341
+ t[0] = an - e * (on + e * (sn + e * (cn + e * ln))), t[1] = e * (un - e * (sn + e * (cn + e * ln)));
2342
+ var n = e * e;
2343
+ return t[2] = n * (dn - e * (fn + e * pn)), n *= e, t[3] = n * (mn - e * hn), t[4] = n * e * gn, t;
2344
+ }
2345
+ //#endregion
2346
+ //#region node_modules/proj4/lib/common/pj_mlfn.js
2347
+ function U(e, t, n, r) {
2348
+ return n *= t, t *= t, r[0] * e - n * (r[1] + t * (r[2] + t * (r[3] + t * r[4])));
2349
+ }
2350
+ //#endregion
2351
+ //#region node_modules/proj4/lib/common/pj_inv_mlfn.js
2352
+ var vn = 20;
2353
+ function yn(e, t, n) {
2354
+ for (var r = 1 / (1 - t), i = e, a = vn; a; --a) {
2355
+ var o = Math.sin(i), s = 1 - t * o * o;
2356
+ if (s = (U(i, o, Math.cos(i), n) - e) * (s * Math.sqrt(s)) * r, i -= s, Math.abs(s) < 1e-10) return i;
2357
+ }
2358
+ return i;
2359
+ }
2360
+ //#endregion
2361
+ //#region node_modules/proj4/lib/projections/tmerc.js
2362
+ function bn() {
2363
+ this.x0 = this.x0 === void 0 ? 0 : this.x0, this.y0 = this.y0 === void 0 ? 0 : this.y0, this.long0 = this.long0 === void 0 ? 0 : this.long0, this.lat0 = this.lat0 === void 0 ? 0 : this.lat0, this.es && (this.en = _n(this.es), this.ml0 = U(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
2364
+ }
2365
+ function xn(e) {
2366
+ var t = e.x, n = e.y, r = P(t - this.long0, this.over), i, a, o, s = Math.sin(n), c = Math.cos(n);
2367
+ if (this.es) {
2368
+ var l = c * r, u = l ** 2, d = this.ep2 * c ** 2, f = d ** 2, p = (Math.abs(c) > 1e-10 ? Math.tan(n) : 0) ** 2, m = p ** 2;
2369
+ i = 1 - this.es * s ** 2, l /= Math.sqrt(i);
2370
+ var h = U(n, s, c, this.en);
2371
+ a = this.a * (this.k0 * l * (1 + u / 6 * (1 - p + d + u / 20 * (5 - 18 * p + m + 14 * d - 58 * p * d + u / 42 * (61 + 179 * m - m * p - 479 * p))))) + this.x0, o = this.a * (this.k0 * (h - this.ml0 + s * r * l / 2 * (1 + u / 12 * (5 - p + 9 * d + 4 * f + u / 30 * (61 + m - 58 * p + 270 * d - 330 * p * d + u / 56 * (1385 + 543 * m - m * p - 3111 * p)))))) + this.y0;
2372
+ } else {
2373
+ var g = c * Math.sin(r);
2374
+ if (Math.abs(Math.abs(g) - 1) < 1e-10) return 93;
2375
+ if (a = .5 * this.a * this.k0 * Math.log((1 + g) / (1 - g)) + this.x0, o = c * Math.cos(r) / Math.sqrt(1 - g ** 2), g = Math.abs(o), g >= 1) {
2376
+ if (g - 1 > 1e-10) return 93;
2377
+ o = 0;
2378
+ } else o = Math.acos(o);
2379
+ n < 0 && (o = -o), o = this.a * this.k0 * (o - this.lat0) + this.y0;
2380
+ }
2381
+ return e.x = a, e.y = o, e;
2382
+ }
2383
+ function Sn(e) {
2384
+ var t, n, r, i, a = (e.x - this.x0) * (1 / this.a), s = (e.y - this.y0) * (1 / this.a);
2385
+ if (!this.es) {
2386
+ var c = Math.exp(a / this.k0), l = .5 * (c - 1 / c), u = this.lat0 + s / this.k0, d = Math.cos(u);
2387
+ t = Math.sqrt((1 - d ** 2) / (1 + l ** 2)), r = Math.asin(t), s < 0 && (r = -r), i = l === 0 && d === 0 ? 0 : P(Math.atan2(l, d) + this.long0, this.over);
2388
+ } else if (t = this.ml0 + s / this.k0, n = yn(t, this.es, this.en), Math.abs(n) < o) {
2389
+ var f = Math.sin(n), p = Math.cos(n), m = Math.abs(p) > 1e-10 ? Math.tan(n) : 0, h = this.ep2 * p ** 2, g = h ** 2, _ = m ** 2, v = _ ** 2;
2390
+ t = 1 - this.es * f ** 2;
2391
+ var y = a * Math.sqrt(t) / this.k0, b = y ** 2;
2392
+ t *= m, r = n - t * b / (1 - this.es) * .5 * (1 - b / 12 * (5 + 3 * _ - 9 * h * _ + h - 4 * g - b / 30 * (61 + 90 * _ - 252 * h * _ + 45 * v + 46 * h - b / 56 * (1385 + 3633 * _ + 4095 * v + 1574 * v * _)))), i = P(this.long0 + y * (1 - b / 6 * (1 + 2 * _ + h - b / 20 * (5 + 28 * _ + 24 * v + 8 * h * _ + 6 * h - b / 42 * (61 + 662 * _ + 1320 * v + 720 * v * _)))) / p, this.over);
2393
+ } else r = o * Me(s), i = 0;
2394
+ return e.x = i, e.y = r, e;
2395
+ }
2396
+ var Cn = {
2397
+ init: bn,
2398
+ forward: xn,
2399
+ inverse: Sn,
2400
+ names: ["Fast_Transverse_Mercator", "Fast Transverse Mercator"]
2401
+ };
2402
+ //#endregion
2403
+ //#region node_modules/proj4/lib/common/sinh.js
2404
+ function wn(e) {
2405
+ var t = Math.exp(e);
2406
+ return t = (t - 1 / t) / 2, t;
2407
+ }
2408
+ //#endregion
2409
+ //#region node_modules/proj4/lib/common/hypot.js
2410
+ function W(e, t) {
2411
+ e = Math.abs(e), t = Math.abs(t);
2412
+ var n = Math.max(e, t), r = Math.min(e, t) / (n || 1);
2413
+ return n * Math.sqrt(1 + r ** 2);
2414
+ }
2415
+ //#endregion
2416
+ //#region node_modules/proj4/lib/common/log1py.js
2417
+ function Tn(e) {
2418
+ var t = 1 + e, n = t - 1;
2419
+ return n === 0 ? e : e * Math.log(t) / n;
2420
+ }
2421
+ //#endregion
2422
+ //#region node_modules/proj4/lib/common/asinhy.js
2423
+ function En(e) {
2424
+ var t = Math.abs(e);
2425
+ return t = Tn(t * (1 + t / (W(1, t) + 1))), e < 0 ? -t : t;
2426
+ }
2427
+ //#endregion
2428
+ //#region node_modules/proj4/lib/common/gatg.js
2429
+ function Dn(e, t) {
2430
+ for (var n = 2 * Math.cos(2 * t), r = e.length - 1, i = e[r], a = 0, o; --r >= 0;) o = -a + n * i + e[r], a = i, i = o;
2431
+ return t + o * Math.sin(2 * t);
2432
+ }
2433
+ //#endregion
2434
+ //#region node_modules/proj4/lib/common/clens.js
2435
+ function On(e, t) {
2436
+ for (var n = 2 * Math.cos(t), r = e.length - 1, i = e[r], a = 0, o; --r >= 0;) o = -a + n * i + e[r], a = i, i = o;
2437
+ return Math.sin(t) * o;
2438
+ }
2439
+ //#endregion
2440
+ //#region node_modules/proj4/lib/common/cosh.js
2441
+ function kn(e) {
2442
+ var t = Math.exp(e);
2443
+ return t = (t + 1 / t) / 2, t;
2444
+ }
2445
+ //#endregion
2446
+ //#region node_modules/proj4/lib/common/clens_cmplx.js
2447
+ function An(e, t, n) {
2448
+ for (var r = Math.sin(t), i = Math.cos(t), a = wn(n), o = kn(n), s = 2 * i * o, c = -2 * r * a, l = e.length - 1, u = e[l], d = 0, f = 0, p = 0, m, h; --l >= 0;) m = f, h = d, f = u, d = p, u = -m + s * f - c * d + e[l], p = -h + c * f + s * d;
2449
+ return s = r * o, c = i * a, [s * u - c * p, s * p + c * u];
2450
+ }
2451
+ //#endregion
2452
+ //#region node_modules/proj4/lib/projections/etmerc.js
2453
+ function jn() {
2454
+ if (!this.approx && (isNaN(this.es) || this.es <= 0)) throw Error("Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION[\"Fast_Transverse_Mercator\"] in the WKT.");
2455
+ this.approx && (Cn.init.apply(this), this.forward = Cn.forward, this.inverse = Cn.inverse), this.x0 = this.x0 === void 0 ? 0 : this.x0, this.y0 = this.y0 === void 0 ? 0 : this.y0, this.long0 = this.long0 === void 0 ? 0 : this.long0, this.lat0 = this.lat0 === void 0 ? 0 : this.lat0, this.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
2456
+ var e = this.es / (1 + Math.sqrt(1 - this.es)), t = e / (2 - e), n = t;
2457
+ this.cgb[0] = t * (2 + t * (-2 / 3 + t * (-2 + t * (116 / 45 + t * (26 / 45 + -2854 / 675 * t))))), this.cbg[0] = t * (-2 + t * (2 / 3 + t * (4 / 3 + t * (-82 / 45 + t * (32 / 45 + 4642 / 4725 * t))))), n *= t, this.cgb[1] = n * (7 / 3 + t * (-8 / 5 + t * (-227 / 45 + t * (2704 / 315 + 2323 / 945 * t)))), this.cbg[1] = n * (5 / 3 + t * (-16 / 15 + t * (-13 / 9 + t * (904 / 315 + -1522 / 945 * t)))), n *= t, this.cgb[2] = n * (56 / 15 + t * (-136 / 35 + t * (-1262 / 105 + 73814 / 2835 * t))), this.cbg[2] = n * (-26 / 15 + t * (34 / 21 + t * (8 / 5 + -12686 / 2835 * t))), n *= t, this.cgb[3] = n * (4279 / 630 + t * (-332 / 35 + -399572 / 14175 * t)), this.cbg[3] = n * (1237 / 630 + t * (-12 / 5 + -24832 / 14175 * t)), n *= t, this.cgb[4] = n * (4174 / 315 + -144838 / 6237 * t), this.cbg[4] = n * (-734 / 315 + 109598 / 31185 * t), n *= t, this.cgb[5] = 601676 / 22275 * n, this.cbg[5] = 444337 / 155925 * n, n = t ** 2, this.Qn = this.k0 / (1 + t) * (1 + n * (1 / 4 + n * (1 / 64 + n / 256))), this.utg[0] = t * (-.5 + t * (2 / 3 + t * (-37 / 96 + t * (1 / 360 + t * (81 / 512 + -96199 / 604800 * t))))), this.gtu[0] = t * (.5 + t * (-2 / 3 + t * (5 / 16 + t * (41 / 180 + t * (-127 / 288 + 7891 / 37800 * t))))), this.utg[1] = n * (-1 / 48 + t * (-1 / 15 + t * (437 / 1440 + t * (-46 / 105 + 1118711 / 3870720 * t)))), this.gtu[1] = n * (13 / 48 + t * (-3 / 5 + t * (557 / 1440 + t * (281 / 630 + -1983433 / 1935360 * t)))), n *= t, this.utg[2] = n * (-17 / 480 + t * (37 / 840 + t * (209 / 4480 + -5569 / 90720 * t))), this.gtu[2] = n * (61 / 240 + t * (-103 / 140 + t * (15061 / 26880 + 167603 / 181440 * t))), n *= t, this.utg[3] = n * (-4397 / 161280 + t * (11 / 504 + 830251 / 7257600 * t)), this.gtu[3] = n * (49561 / 161280 + t * (-179 / 168 + 6601661 / 7257600 * t)), n *= t, this.utg[4] = n * (-4583 / 161280 + 108847 / 3991680 * t), this.gtu[4] = n * (34729 / 80640 + -3418889 / 1995840 * t), n *= t, this.utg[5] = -20648693 / 638668800 * n, this.gtu[5] = 212378941 / 319334400 * n;
2458
+ var r = Dn(this.cbg, this.lat0);
2459
+ this.Zb = -this.Qn * (r + On(this.gtu, 2 * r));
2460
+ }
2461
+ function Mn(e) {
2462
+ var t = P(e.x - this.long0, this.over), n = e.y;
2463
+ n = Dn(this.cbg, n);
2464
+ var r = Math.sin(n), i = Math.cos(n), a = Math.sin(t), o = Math.cos(t);
2465
+ n = Math.atan2(r, o * i), t = Math.atan2(a * i, W(r, i * o)), t = En(Math.tan(t));
2466
+ var s = An(this.gtu, 2 * n, 2 * t);
2467
+ n += s[0], t += s[1];
2468
+ var c, l;
2469
+ return Math.abs(t) <= 2.623395162778 ? (c = this.a * (this.Qn * t) + this.x0, l = this.a * (this.Qn * n + this.Zb) + this.y0) : (c = Infinity, l = Infinity), e.x = c, e.y = l, e;
2470
+ }
2471
+ function Nn(e) {
2472
+ var t = (e.x - this.x0) * (1 / this.a), n = (e.y - this.y0) * (1 / this.a);
2473
+ n = (n - this.Zb) / this.Qn, t /= this.Qn;
2474
+ var r, i;
2475
+ if (Math.abs(t) <= 2.623395162778) {
2476
+ var a = An(this.utg, 2 * n, 2 * t);
2477
+ n += a[0], t += a[1], t = Math.atan(wn(t));
2478
+ var o = Math.sin(n), s = Math.cos(n), c = Math.sin(t), l = Math.cos(t);
2479
+ n = Math.atan2(o * l, W(c, l * s)), t = Math.atan2(c, l * s), r = P(t + this.long0, this.over), i = Dn(this.cgb, n);
2480
+ } else r = Infinity, i = Infinity;
2481
+ return e.x = r, e.y = i, e;
2482
+ }
2483
+ var Pn = {
2484
+ init: jn,
2485
+ forward: Mn,
2486
+ inverse: Nn,
2487
+ names: [
2488
+ "Extended_Transverse_Mercator",
2489
+ "Extended Transverse Mercator",
2490
+ "etmerc",
2491
+ "Transverse_Mercator",
2492
+ "Transverse Mercator",
2493
+ "Gauss Kruger",
2494
+ "Gauss_Kruger",
2495
+ "tmerc"
2496
+ ]
2497
+ };
2498
+ //#endregion
2499
+ //#region node_modules/proj4/lib/common/adjust_zone.js
2500
+ function Fn(e, t) {
2501
+ if (e === void 0) {
2502
+ if (e = Math.floor((P(t) + Math.PI) * 30 / Math.PI) + 1, e < 0) return 0;
2503
+ if (e > 60) return 60;
2504
+ }
2505
+ return e;
2506
+ }
2507
+ //#endregion
2508
+ //#region node_modules/proj4/lib/projections/utm.js
2509
+ var In = "etmerc";
2510
+ function Ln() {
2511
+ var e = Fn(this.zone, this.long0);
2512
+ if (e === void 0) throw Error("unknown utm zone");
2513
+ this.lat0 = 0, this.long0 = (6 * Math.abs(e) - 183) * d, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = .9996, Pn.init.apply(this), this.forward = Pn.forward, this.inverse = Pn.inverse;
2514
+ }
2515
+ var Rn = {
2516
+ init: Ln,
2517
+ names: ["Universal Transverse Mercator System", "utm"],
2518
+ dependsOn: In
2519
+ };
2520
+ //#endregion
2521
+ //#region node_modules/proj4/lib/common/srat.js
2522
+ function zn(e, t) {
2523
+ return ((1 - e) / (1 + e)) ** t;
2524
+ }
2525
+ //#endregion
2526
+ //#region node_modules/proj4/lib/projections/gauss.js
2527
+ var Bn = 20;
2528
+ function Vn() {
2529
+ var e = Math.sin(this.lat0), t = Math.cos(this.lat0);
2530
+ t *= t, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * e * e), this.C = Math.sqrt(1 + this.es * t * t / (1 - this.es)), this.phic0 = Math.asin(e / this.C), this.ratexp = .5 * this.C * this.e, this.K = Math.tan(.5 * this.phic0 + p) / (Math.tan(.5 * this.lat0 + p) ** +this.C * zn(this.e * e, this.ratexp));
2531
+ }
2532
+ function Hn(e) {
2533
+ var t = e.x, n = e.y;
2534
+ return e.y = 2 * Math.atan(this.K * Math.tan(.5 * n + p) ** +this.C * zn(this.e * Math.sin(n), this.ratexp)) - o, e.x = this.C * t, e;
2535
+ }
2536
+ function Un(e) {
2537
+ for (var t = 1e-14, n = e.x / this.C, r = e.y, i = (Math.tan(.5 * r + p) / this.K) ** (1 / this.C), a = Bn; a > 0 && (r = 2 * Math.atan(i * zn(this.e * Math.sin(e.y), -.5 * this.e)) - o, !(Math.abs(r - e.y) < t)); --a) e.y = r;
2538
+ return a ? (e.x = n, e.y = r, e) : null;
2539
+ }
2540
+ var Wn = {
2541
+ init: Vn,
2542
+ forward: Hn,
2543
+ inverse: Un,
2544
+ names: ["gauss"]
2545
+ };
2546
+ //#endregion
2547
+ //#region node_modules/proj4/lib/projections/sterea.js
2548
+ function Gn() {
2549
+ Wn.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title ||= "Oblique Stereographic Alternative");
2550
+ }
2551
+ function Kn(e) {
2552
+ var t, n, r, i;
2553
+ return e.x = P(e.x - this.long0, this.over), Wn.forward.apply(this, [e]), t = Math.sin(e.y), n = Math.cos(e.y), r = Math.cos(e.x), i = this.k0 * this.R2 / (1 + this.sinc0 * t + this.cosc0 * n * r), e.x = i * n * Math.sin(e.x), e.y = i * (this.cosc0 * t - this.sinc0 * n * r), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
2554
+ }
2555
+ function qn(e) {
2556
+ var t, n, r, i, a;
2557
+ if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, e.x /= this.k0, e.y /= this.k0, a = W(e.x, e.y)) {
2558
+ var o = 2 * Math.atan2(a, this.R2);
2559
+ t = Math.sin(o), n = Math.cos(o), i = Math.asin(n * this.sinc0 + e.y * t * this.cosc0 / a), r = Math.atan2(e.x * t, a * this.cosc0 * n - e.y * this.sinc0 * t);
2560
+ } else i = this.phic0, r = 0;
2561
+ return e.x = r, e.y = i, Wn.inverse.apply(this, [e]), e.x = P(e.x + this.long0, this.over), e;
2562
+ }
2563
+ var Jn = {
2564
+ init: Gn,
2565
+ forward: Kn,
2566
+ inverse: qn,
2567
+ names: [
2568
+ "Stereographic_North_Pole",
2569
+ "Oblique_Stereographic",
2570
+ "sterea",
2571
+ "Oblique Stereographic Alternative",
2572
+ "Double_Stereographic"
2573
+ ]
2574
+ };
2575
+ //#endregion
2576
+ //#region node_modules/proj4/lib/projections/stere.js
2577
+ function Yn(e, t, n) {
2578
+ return t *= n, Math.tan(.5 * (o + e)) * ((1 - t) / (1 + t)) ** (.5 * n);
2579
+ }
2580
+ function Xn() {
2581
+ this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= 1e-10 && (this.k0 = .5 * (1 + Me(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= 1e-10 && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt((1 + this.e) ** +(1 + this.e) * (1 - this.e) ** (1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= 1e-10 && Math.abs(Math.cos(this.lat_ts)) > 1e-10 && (this.k0 = .5 * this.cons * N(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / F(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = N(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(Yn(this.lat0, this.sinlat0, this.e)) - o, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
2582
+ }
2583
+ function Zn(e) {
2584
+ var t = e.x, n = e.y, r = Math.sin(n), i = Math.cos(n), a, s, c, l, u, d, f = P(t - this.long0, this.over);
2585
+ return Math.abs(Math.abs(t - this.long0) - Math.PI) <= 1e-10 && Math.abs(n + this.lat0) <= 1e-10 ? (e.x = NaN, e.y = NaN, e) : this.sphere ? (a = 2 * this.k0 / (1 + this.sinlat0 * r + this.coslat0 * i * Math.cos(f)), e.x = this.a * a * i * Math.sin(f) + this.x0, e.y = this.a * a * (this.coslat0 * r - this.sinlat0 * i * Math.cos(f)) + this.y0, e) : (s = 2 * Math.atan(Yn(n, r, this.e)) - o, l = Math.cos(s), c = Math.sin(s), Math.abs(this.coslat0) <= 1e-10 ? (u = F(this.e, n * this.con, this.con * r), d = 2 * this.a * this.k0 * u / this.cons, e.x = this.x0 + d * Math.sin(t - this.long0), e.y = this.y0 - this.con * d * Math.cos(t - this.long0), e) : (Math.abs(this.sinlat0) < 1e-10 ? (a = 2 * this.a * this.k0 / (1 + l * Math.cos(f)), e.y = a * c) : (a = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * c + this.cosX0 * l * Math.cos(f))), e.y = a * (this.cosX0 * c - this.sinX0 * l * Math.cos(f)) + this.y0), e.x = a * l * Math.sin(f) + this.x0, e));
2586
+ }
2587
+ function Qn(e) {
2588
+ e.x -= this.x0, e.y -= this.y0;
2589
+ var t, n, r, i, a, s = Math.sqrt(e.x * e.x + e.y * e.y);
2590
+ if (this.sphere) {
2591
+ var c = 2 * Math.atan(s / (2 * this.a * this.k0));
2592
+ return t = this.long0, n = this.lat0, s <= 1e-10 ? (e.x = t, e.y = n, e) : (n = Math.asin(Math.cos(c) * this.sinlat0 + e.y * Math.sin(c) * this.coslat0 / s), t = Math.abs(this.coslat0) < 1e-10 ? this.lat0 > 0 ? P(this.long0 + Math.atan2(e.x, -1 * e.y), this.over) : P(this.long0 + Math.atan2(e.x, e.y), this.over) : P(this.long0 + Math.atan2(e.x * Math.sin(c), s * this.coslat0 * Math.cos(c) - e.y * this.sinlat0 * Math.sin(c)), this.over), e.x = t, e.y = n, e);
2593
+ } else if (Math.abs(this.coslat0) <= 1e-10) {
2594
+ if (s <= 1e-10) return n = this.lat0, t = this.long0, e.x = t, e.y = n, e;
2595
+ e.x *= this.con, e.y *= this.con, r = s * this.cons / (2 * this.a * this.k0), n = this.con * Ne(this.e, r), t = this.con * P(this.con * this.long0 + Math.atan2(e.x, -1 * e.y), this.over);
2596
+ } else i = 2 * Math.atan(s * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), t = this.long0, s <= 1e-10 ? a = this.X0 : (a = Math.asin(Math.cos(i) * this.sinX0 + e.y * Math.sin(i) * this.cosX0 / s), t = P(this.long0 + Math.atan2(e.x * Math.sin(i), s * this.cosX0 * Math.cos(i) - e.y * this.sinX0 * Math.sin(i)), this.over)), n = -1 * Ne(this.e, Math.tan(.5 * (o + a)));
2597
+ return e.x = t, e.y = n, e;
2598
+ }
2599
+ var $n = {
2600
+ init: Xn,
2601
+ forward: Zn,
2602
+ inverse: Qn,
2603
+ names: [
2604
+ "stere",
2605
+ "Stereographic_South_Pole",
2606
+ "Polar_Stereographic_variant_A",
2607
+ "Polar_Stereographic_variant_B",
2608
+ "Polar_Stereographic"
2609
+ ],
2610
+ ssfn_: Yn
2611
+ };
2612
+ //#endregion
2613
+ //#region node_modules/proj4/lib/projections/somerc.js
2614
+ function er() {
2615
+ var e = this.lat0;
2616
+ this.lambda0 = this.long0;
2617
+ var t = Math.sin(e), n = this.a, r = 1 / this.rf, i = 2 * r - r ** 2, a = this.e = Math.sqrt(i);
2618
+ this.R = this.k0 * n * Math.sqrt(1 - i) / (1 - i * t ** 2), this.alpha = Math.sqrt(1 + i / (1 - i) * Math.cos(e) ** 4), this.b0 = Math.asin(t / this.alpha);
2619
+ var o = Math.log(Math.tan(Math.PI / 4 + this.b0 / 2)), s = Math.log(Math.tan(Math.PI / 4 + e / 2)), c = Math.log((1 + a * t) / (1 - a * t));
2620
+ this.K = o - this.alpha * s + this.alpha * a / 2 * c;
2621
+ }
2622
+ function tr(e) {
2623
+ var t = Math.log(Math.tan(Math.PI / 4 - e.y / 2)), n = this.e / 2 * Math.log((1 + this.e * Math.sin(e.y)) / (1 - this.e * Math.sin(e.y))), r = -this.alpha * (t + n) + this.K, i = 2 * (Math.atan(Math.exp(r)) - Math.PI / 4), a = this.alpha * (e.x - this.lambda0), o = Math.atan(Math.sin(a) / (Math.sin(this.b0) * Math.tan(i) + Math.cos(this.b0) * Math.cos(a))), s = Math.asin(Math.cos(this.b0) * Math.sin(i) - Math.sin(this.b0) * Math.cos(i) * Math.cos(a));
2624
+ return e.y = this.R / 2 * Math.log((1 + Math.sin(s)) / (1 - Math.sin(s))) + this.y0, e.x = this.R * o + this.x0, e;
2625
+ }
2626
+ function nr(e) {
2627
+ for (var t = e.x - this.x0, n = e.y - this.y0, r = t / this.R, i = 2 * (Math.atan(Math.exp(n / this.R)) - Math.PI / 4), a = Math.asin(Math.cos(this.b0) * Math.sin(i) + Math.sin(this.b0) * Math.cos(i) * Math.cos(r)), o = Math.atan(Math.sin(r) / (Math.cos(this.b0) * Math.cos(r) - Math.sin(this.b0) * Math.tan(i))), s = this.lambda0 + o / this.alpha, c = 0, l = a, u = -1e3, d = 0; Math.abs(l - u) > 1e-7;) {
2628
+ if (++d > 20) return;
2629
+ c = 1 / this.alpha * (Math.log(Math.tan(Math.PI / 4 + a / 2)) - this.K) + this.e * Math.log(Math.tan(Math.PI / 4 + Math.asin(this.e * Math.sin(l)) / 2)), u = l, l = 2 * Math.atan(Math.exp(c)) - Math.PI / 2;
2630
+ }
2631
+ return e.x = s, e.y = l, e;
2632
+ }
2633
+ var rr = {
2634
+ init: er,
2635
+ forward: tr,
2636
+ inverse: nr,
2637
+ names: ["somerc"]
2638
+ }, G = 1e-7;
2639
+ function ir(e) {
2640
+ var t = [
2641
+ "Hotine_Oblique_Mercator",
2642
+ "Hotine_Oblique_Mercator_variant_A",
2643
+ "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"
2644
+ ], n = typeof e.projName == "object" ? Object.keys(e.projName)[0] : e.projName;
2645
+ return "no_uoff" in e || "no_off" in e || t.indexOf(n) !== -1 || t.indexOf(We(n)) !== -1;
2646
+ }
2647
+ function ar() {
2648
+ var e, t, n, r, i, a, s, c, l, u, d = 0, f, h = 0, g = 0, _ = 0, v = 0, y = 0, b = 0;
2649
+ this.no_off = ir(this), this.no_rot = "no_rot" in this;
2650
+ var x = !1;
2651
+ "alpha" in this && (x = !0);
2652
+ var S = !1;
2653
+ if ("rectified_grid_angle" in this && (S = !0), x && (b = this.alpha), S && (d = this.rectified_grid_angle), x || S) h = this.longc;
2654
+ else if (g = this.long1, v = this.lat1, _ = this.long2, y = this.lat2, Math.abs(v - y) <= G || (e = Math.abs(v)) <= G || Math.abs(e - o) <= G || Math.abs(Math.abs(this.lat0) - o) <= G || Math.abs(Math.abs(y) - o) <= G) throw Error();
2655
+ var C = 1 - this.es;
2656
+ t = Math.sqrt(C), Math.abs(this.lat0) > 1e-10 ? (c = Math.sin(this.lat0), n = Math.cos(this.lat0), e = 1 - this.es * c * c, this.B = n * n, this.B = Math.sqrt(1 + this.es * this.B * this.B / C), this.A = this.B * this.k0 * t / e, r = this.B * t / (n * Math.sqrt(e)), i = r * r - 1, i <= 0 ? i = 0 : (i = Math.sqrt(i), this.lat0 < 0 && (i = -i)), this.E = i += r, this.E *= F(this.e, this.lat0, c) ** +this.B) : (this.B = 1 / t, this.A = this.k0, this.E = r = i = 1), x || S ? (x ? (f = Math.asin(Math.sin(b) / r), S || (d = b)) : (f = d, b = Math.asin(r * Math.sin(f))), this.lam0 = h - Math.asin(.5 * (i - 1 / i) * Math.tan(f)) / this.B) : (a = F(this.e, v, Math.sin(v)) ** +this.B, s = F(this.e, y, Math.sin(y)) ** +this.B, i = this.E / a, l = (s - a) / (s + a), u = this.E * this.E, u = (u - s * a) / (u + s * a), e = g - _, e < -Math.PI ? _ -= m : e > Math.PI && (_ += m), this.lam0 = P(.5 * (g + _) - Math.atan(u * Math.tan(.5 * this.B * (g - _)) / l) / this.B, this.over), f = Math.atan(2 * Math.sin(this.B * P(g - this.lam0, this.over)) / (i - 1 / i)), d = b = Math.asin(r * Math.sin(f))), this.singam = Math.sin(f), this.cosgam = Math.cos(f), this.sinrot = Math.sin(d), this.cosrot = Math.cos(d), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(r * r - 1) / Math.cos(b))), this.lat0 < 0 && (this.u_0 = -this.u_0)), i = .5 * f, this.v_pole_n = this.ArB * Math.log(Math.tan(p - i)), this.v_pole_s = this.ArB * Math.log(Math.tan(p + i));
2657
+ }
2658
+ function or(e) {
2659
+ var t = {}, n, r, i, a, s, c, l, u;
2660
+ if (e.x -= this.lam0, Math.abs(Math.abs(e.y) - o) > 1e-10) {
2661
+ if (s = this.E / F(this.e, e.y, Math.sin(e.y)) ** +this.B, c = 1 / s, n = .5 * (s - c), r = .5 * (s + c), a = Math.sin(this.B * e.x), i = (n * this.singam - a * this.cosgam) / r, Math.abs(Math.abs(i) - 1) < 1e-10) throw Error();
2662
+ u = .5 * this.ArB * Math.log((1 - i) / (1 + i)), c = Math.cos(this.B * e.x), l = Math.abs(c) < G ? this.A * e.x : this.ArB * Math.atan2(n * this.cosgam + a * this.singam, c);
2663
+ } else u = e.y > 0 ? this.v_pole_n : this.v_pole_s, l = this.ArB * e.y;
2664
+ return this.no_rot ? (t.x = l, t.y = u) : (l -= this.u_0, t.x = u * this.cosrot + l * this.sinrot, t.y = l * this.cosrot - u * this.sinrot), t.x = this.a * t.x + this.x0, t.y = this.a * t.y + this.y0, t;
2665
+ }
2666
+ function sr(e) {
2667
+ var t, n, r, i, a, s, c, l = {};
2668
+ if (e.x = (e.x - this.x0) * (1 / this.a), e.y = (e.y - this.y0) * (1 / this.a), this.no_rot ? (n = e.y, t = e.x) : (n = e.x * this.cosrot - e.y * this.sinrot, t = e.y * this.cosrot + e.x * this.sinrot + this.u_0), r = Math.exp(-this.BrA * n), i = .5 * (r - 1 / r), a = .5 * (r + 1 / r), s = Math.sin(this.BrA * t), c = (s * this.cosgam + i * this.singam) / a, Math.abs(Math.abs(c) - 1) < 1e-10) l.x = 0, l.y = c < 0 ? -o : o;
2669
+ else {
2670
+ if (l.y = this.E / Math.sqrt((1 + c) / (1 - c)), l.y = Ne(this.e, l.y ** (1 / this.B)), l.y === Infinity) throw Error();
2671
+ l.x = -this.rB * Math.atan2(i * this.cosgam - s * this.singam, Math.cos(this.BrA * t));
2672
+ }
2673
+ return l.x += this.lam0, l;
2674
+ }
2675
+ var cr = {
2676
+ init: ar,
2677
+ forward: or,
2678
+ inverse: sr,
2679
+ names: [
2680
+ "Hotine_Oblique_Mercator",
2681
+ "Hotine Oblique Mercator",
2682
+ "Hotine_Oblique_Mercator_variant_A",
2683
+ "Hotine_Oblique_Mercator_Variant_B",
2684
+ "Hotine_Oblique_Mercator_Azimuth_Natural_Origin",
2685
+ "Hotine_Oblique_Mercator_Two_Point_Natural_Origin",
2686
+ "Hotine_Oblique_Mercator_Azimuth_Center",
2687
+ "Oblique_Mercator",
2688
+ "omerc"
2689
+ ]
2690
+ };
2691
+ //#endregion
2692
+ //#region node_modules/proj4/lib/projections/lcc.js
2693
+ function lr() {
2694
+ if (this.lat2 ||= this.lat1, this.k0 ||= 1, this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, !(Math.abs(this.lat1 + this.lat2) < 1e-10)) {
2695
+ var e = this.b / this.a;
2696
+ this.e = Math.sqrt(1 - e * e);
2697
+ var t = Math.sin(this.lat1), n = Math.cos(this.lat1), r = N(this.e, t, n), i = F(this.e, this.lat1, t), a = Math.sin(this.lat2), s = Math.cos(this.lat2), c = N(this.e, a, s), l = F(this.e, this.lat2, a), u = Math.abs(Math.abs(this.lat0) - o) < 1e-10 ? 0 : F(this.e, this.lat0, Math.sin(this.lat0));
2698
+ Math.abs(this.lat1 - this.lat2) > 1e-10 ? this.ns = Math.log(r / c) / Math.log(i / l) : this.ns = t, isNaN(this.ns) && (this.ns = t), this.f0 = r / (this.ns * i ** +this.ns), this.rh = this.a * this.f0 * u ** +this.ns, this.title ||= "Lambert Conformal Conic";
2699
+ }
2700
+ }
2701
+ function ur(e) {
2702
+ var t = e.x, n = e.y;
2703
+ Math.abs(2 * Math.abs(n) - Math.PI) <= 1e-10 && (n = Me(n) * (o - 2 * u));
2704
+ var r = Math.abs(Math.abs(n) - o), i, a;
2705
+ if (r > 1e-10) i = F(this.e, n, Math.sin(n)), a = this.a * this.f0 * i ** +this.ns;
2706
+ else {
2707
+ if (r = n * this.ns, r <= 0) return null;
2708
+ a = 0;
2709
+ }
2710
+ var s = this.ns * P(t - this.long0, this.over);
2711
+ return e.x = this.k0 * (a * Math.sin(s)) + this.x0, e.y = this.k0 * (this.rh - a * Math.cos(s)) + this.y0, e;
2712
+ }
2713
+ function dr(e) {
2714
+ var t, n, r, i, a, s = (e.x - this.x0) / this.k0, c = this.rh - (e.y - this.y0) / this.k0;
2715
+ this.ns > 0 ? (t = Math.sqrt(s * s + c * c), n = 1) : (t = -Math.sqrt(s * s + c * c), n = -1);
2716
+ var l = 0;
2717
+ if (t !== 0 && (l = Math.atan2(n * s, n * c)), t !== 0 || this.ns > 0) {
2718
+ if (n = 1 / this.ns, r = (t / (this.a * this.f0)) ** +n, i = Ne(this.e, r), i === -9999) return null;
2719
+ } else i = -o;
2720
+ return a = P(l / this.ns + this.long0, this.over), e.x = a, e.y = i, e;
2721
+ }
2722
+ var fr = {
2723
+ init: lr,
2724
+ forward: ur,
2725
+ inverse: dr,
2726
+ names: [
2727
+ "Lambert Tangential Conformal Conic Projection",
2728
+ "Lambert_Conformal_Conic",
2729
+ "Lambert_Conformal_Conic_1SP",
2730
+ "Lambert_Conformal_Conic_2SP",
2731
+ "lcc",
2732
+ "Lambert Conic Conformal (1SP)",
2733
+ "Lambert Conic Conformal (2SP)"
2734
+ ]
2735
+ };
2736
+ //#endregion
2737
+ //#region node_modules/proj4/lib/projections/krovak.js
2738
+ function pr() {
2739
+ this.a = 6377397.155, this.es = .006674372230614, this.e = Math.sqrt(this.es), this.lat0 ||= .863937979737193, this.long0 ||= .4334234309119251, this.k0 ||= .9999, this.s45 = .785398163397448, this.s90 = 2 * this.s45, this.fi0 = this.lat0, this.e2 = this.es, this.e = Math.sqrt(this.e2), this.alfa = Math.sqrt(1 + this.e2 * Math.cos(this.fi0) ** 4 / (1 - this.e2)), this.uq = 1.04216856380474, this.u0 = Math.asin(Math.sin(this.fi0) / this.alfa), this.g = ((1 + this.e * Math.sin(this.fi0)) / (1 - this.e * Math.sin(this.fi0))) ** (this.alfa * this.e / 2), this.k = Math.tan(this.u0 / 2 + this.s45) / Math.tan(this.fi0 / 2 + this.s45) ** +this.alfa * this.g, this.k1 = this.k0, this.n0 = this.a * Math.sqrt(1 - this.e2) / (1 - this.e2 * Math.sin(this.fi0) ** 2), this.s0 = 1.37008346281555, this.n = Math.sin(this.s0), this.ro0 = this.k1 * this.n0 / Math.tan(this.s0), this.ad = this.s90 - this.uq;
2740
+ }
2741
+ function mr(e) {
2742
+ var t, n, r, i, a, o, s, c = e.x, l = e.y, u = P(c - this.long0, this.over);
2743
+ return t = ((1 + this.e * Math.sin(l)) / (1 - this.e * Math.sin(l))) ** (this.alfa * this.e / 2), n = 2 * (Math.atan(this.k * Math.tan(l / 2 + this.s45) ** +this.alfa / t) - this.s45), r = -u * this.alfa, i = Math.asin(Math.cos(this.ad) * Math.sin(n) + Math.sin(this.ad) * Math.cos(n) * Math.cos(r)), a = Math.asin(Math.cos(n) * Math.sin(r) / Math.cos(i)), o = this.n * a, s = this.ro0 * Math.tan(this.s0 / 2 + this.s45) ** +this.n / Math.tan(i / 2 + this.s45) ** +this.n, e.y = s * Math.cos(o) / 1, e.x = s * Math.sin(o) / 1, this.czech || (e.y *= -1, e.x *= -1), e;
2744
+ }
2745
+ function hr(e) {
2746
+ var t, n, r, i, a, o, s, c, l = e.x;
2747
+ e.x = e.y, e.y = l, this.czech || (e.y *= -1, e.x *= -1), o = Math.sqrt(e.x * e.x + e.y * e.y), a = Math.atan2(e.y, e.x), i = a / Math.sin(this.s0), r = 2 * (Math.atan((this.ro0 / o) ** (1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), t = Math.asin(Math.cos(this.ad) * Math.sin(r) - Math.sin(this.ad) * Math.cos(r) * Math.cos(i)), n = Math.asin(Math.cos(r) * Math.sin(i) / Math.cos(t)), e.x = this.long0 - n / this.alfa, s = t, c = 0;
2748
+ var u = 0;
2749
+ do
2750
+ e.y = 2 * (Math.atan(this.k ** (-1 / this.alfa) * Math.tan(t / 2 + this.s45) ** (1 / this.alfa) * ((1 + this.e * Math.sin(s)) / (1 - this.e * Math.sin(s))) ** (this.e / 2)) - this.s45), Math.abs(s - e.y) < 1e-10 && (c = 1), s = e.y, u += 1;
2751
+ while (c === 0 && u < 15);
2752
+ return u >= 15 ? null : e;
2753
+ }
2754
+ var gr = {
2755
+ init: pr,
2756
+ forward: mr,
2757
+ inverse: hr,
2758
+ names: ["Krovak", "krovak"]
2759
+ };
2760
+ //#endregion
2761
+ //#region node_modules/proj4/lib/common/mlfn.js
2762
+ function K(e, t, n, r, i) {
2763
+ return e * i - t * Math.sin(2 * i) + n * Math.sin(4 * i) - r * Math.sin(6 * i);
2764
+ }
2765
+ //#endregion
2766
+ //#region node_modules/proj4/lib/common/e0fn.js
2767
+ function _r(e) {
2768
+ return 1 - .25 * e * (1 + e / 16 * (3 + 1.25 * e));
2769
+ }
2770
+ //#endregion
2771
+ //#region node_modules/proj4/lib/common/e1fn.js
2772
+ function vr(e) {
2773
+ return .375 * e * (1 + .25 * e * (1 + .46875 * e));
2774
+ }
2775
+ //#endregion
2776
+ //#region node_modules/proj4/lib/common/e2fn.js
2777
+ function yr(e) {
2778
+ return .05859375 * e * e * (1 + .75 * e);
2779
+ }
2780
+ //#endregion
2781
+ //#region node_modules/proj4/lib/common/e3fn.js
2782
+ function br(e) {
2783
+ return e * e * e * (35 / 3072);
2784
+ }
2785
+ //#endregion
2786
+ //#region node_modules/proj4/lib/common/gN.js
2787
+ function xr(e, t, n) {
2788
+ var r = t * n;
2789
+ return e / Math.sqrt(1 - r * r);
2790
+ }
2791
+ //#endregion
2792
+ //#region node_modules/proj4/lib/common/adjust_lat.js
2793
+ function q(e) {
2794
+ return Math.abs(e) < o ? e : e - Me(e) * Math.PI;
2795
+ }
2796
+ //#endregion
2797
+ //#region node_modules/proj4/lib/common/imlfn.js
2798
+ function Sr(e, t, n, r, i) {
2799
+ for (var a = e / t, o, s = 0; s < 15; s++) if (o = (e - (t * a - n * Math.sin(2 * a) + r * Math.sin(4 * a) - i * Math.sin(6 * a))) / (t - 2 * n * Math.cos(2 * a) + 4 * r * Math.cos(4 * a) - 6 * i * Math.cos(6 * a)), a += o, Math.abs(o) <= 1e-10) return a;
2800
+ return NaN;
2801
+ }
2802
+ //#endregion
2803
+ //#region node_modules/proj4/lib/projections/cass.js
2804
+ function Cr() {
2805
+ this.sphere || (this.e0 = _r(this.es), this.e1 = vr(this.es), this.e2 = yr(this.es), this.e3 = br(this.es), this.ml0 = this.a * K(this.e0, this.e1, this.e2, this.e3, this.lat0));
2806
+ }
2807
+ function wr(e) {
2808
+ var t, n, r = e.x, i = e.y;
2809
+ if (r = P(r - this.long0, this.over), this.sphere) t = this.a * Math.asin(Math.cos(i) * Math.sin(r)), n = this.a * (Math.atan2(Math.tan(i), Math.cos(r)) - this.lat0);
2810
+ else {
2811
+ var a = Math.sin(i), o = Math.cos(i), s = xr(this.a, this.e, a), c = Math.tan(i) * Math.tan(i), l = r * Math.cos(i), u = l * l, d = this.es * o * o / (1 - this.es), f = this.a * K(this.e0, this.e1, this.e2, this.e3, i);
2812
+ t = s * l * (1 - u * c * (1 / 6 - (8 - c + 8 * d) * u / 120)), n = f - this.ml0 + s * a / o * u * (.5 + (5 - c + 6 * d) * u / 24);
2813
+ }
2814
+ return e.x = t + this.x0, e.y = n + this.y0, e;
2815
+ }
2816
+ function Tr(e) {
2817
+ e.x -= this.x0, e.y -= this.y0;
2818
+ var t = e.x / this.a, n = e.y / this.a, r, i;
2819
+ if (this.sphere) {
2820
+ var a = n + this.lat0;
2821
+ r = Math.asin(Math.sin(a) * Math.cos(t)), i = Math.atan2(Math.tan(t), Math.cos(a));
2822
+ } else {
2823
+ var s = Sr(this.ml0 / this.a + n, this.e0, this.e1, this.e2, this.e3);
2824
+ if (Math.abs(Math.abs(s) - o) <= 1e-10) return e.x = this.long0, e.y = o, n < 0 && (e.y *= -1), e;
2825
+ var c = xr(this.a, this.e, Math.sin(s)), l = c * c * c / this.a / this.a * (1 - this.es), u = Math.tan(s) ** 2, d = t * this.a / c, f = d * d;
2826
+ r = s - c * Math.tan(s) / l * d * d * (.5 - (1 + 3 * u) * d * d / 24), i = d * (1 - f * (u / 3 + (1 + 3 * u) * u * f / 15)) / Math.cos(s);
2827
+ }
2828
+ return e.x = P(i + this.long0, this.over), e.y = q(r), e;
2829
+ }
2830
+ var Er = {
2831
+ init: Cr,
2832
+ forward: wr,
2833
+ inverse: Tr,
2834
+ names: [
2835
+ "Cassini",
2836
+ "Cassini_Soldner",
2837
+ "cass"
2838
+ ]
2839
+ };
2840
+ //#endregion
2841
+ //#region node_modules/proj4/lib/common/qsfnz.js
2842
+ function J(e, t) {
2843
+ var n;
2844
+ return e > 1e-7 ? (n = e * t, (1 - e * e) * (t / (1 - n * n) - .5 / e * Math.log((1 - n) / (1 + n)))) : 2 * t;
2845
+ }
2846
+ function Dr() {
2847
+ var e = Math.abs(this.lat0);
2848
+ if (Math.abs(e - o) < 1e-10 ? this.mode = this.lat0 < 0 ? 1 : 2 : Math.abs(e) < 1e-10 ? this.mode = 3 : this.mode = 4, this.es > 0) {
2849
+ var t;
2850
+ switch (this.qp = J(this.e, 1), this.mmf = .5 / (1 - this.es), this.apa = Ir(this.es), this.mode) {
2851
+ case 2:
2852
+ this.dd = 1;
2853
+ break;
2854
+ case 1:
2855
+ this.dd = 1;
2856
+ break;
2857
+ case 3:
2858
+ this.rq = Math.sqrt(.5 * this.qp), this.dd = 1 / this.rq, this.xmf = 1, this.ymf = .5 * this.qp;
2859
+ break;
2860
+ case 4:
2861
+ this.rq = Math.sqrt(.5 * this.qp), t = Math.sin(this.lat0), this.sinb1 = J(this.e, t) / this.qp, this.cosb1 = Math.sqrt(1 - this.sinb1 * this.sinb1), this.dd = Math.cos(this.lat0) / (Math.sqrt(1 - this.es * t * t) * this.rq * this.cosb1), this.ymf = (this.xmf = this.rq) / this.dd, this.xmf *= this.dd;
2862
+ break;
2863
+ }
2864
+ } else this.mode === 4 && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
2865
+ }
2866
+ function Or(e) {
2867
+ var t, n, r, i, a, s, c, l, u, d, f = e.x, m = e.y;
2868
+ if (f = P(f - this.long0, this.over), this.sphere) {
2869
+ if (a = Math.sin(m), d = Math.cos(m), r = Math.cos(f), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
2870
+ if (n = this.mode === this.EQUIT ? 1 + d * r : 1 + this.sinph0 * a + this.cosph0 * d * r, n <= 1e-10) return null;
2871
+ n = Math.sqrt(2 / n), t = n * d * Math.sin(f), n *= this.mode === this.EQUIT ? a : this.cosph0 * a - this.sinph0 * d * r;
2872
+ } else if (this.mode === this.N_POLE || this.mode === this.S_POLE) {
2873
+ if (this.mode === this.N_POLE && (r = -r), Math.abs(m + this.lat0) < 1e-10) return null;
2874
+ n = p - m * .5, n = 2 * (this.mode === this.S_POLE ? Math.cos(n) : Math.sin(n)), t = n * Math.sin(f), n *= r;
2875
+ }
2876
+ } else {
2877
+ switch (c = 0, l = 0, u = 0, r = Math.cos(f), i = Math.sin(f), a = Math.sin(m), s = J(this.e, a), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (c = s / this.qp, l = Math.sqrt(1 - c * c)), this.mode) {
2878
+ case this.OBLIQ:
2879
+ u = 1 + this.sinb1 * c + this.cosb1 * l * r;
2880
+ break;
2881
+ case this.EQUIT:
2882
+ u = 1 + l * r;
2883
+ break;
2884
+ case this.N_POLE:
2885
+ u = o + m, s = this.qp - s;
2886
+ break;
2887
+ case this.S_POLE:
2888
+ u = m - o, s = this.qp + s;
2889
+ break;
2890
+ }
2891
+ if (Math.abs(u) < 1e-10) return null;
2892
+ switch (this.mode) {
2893
+ case this.OBLIQ:
2894
+ case this.EQUIT:
2895
+ u = Math.sqrt(2 / u), n = this.mode === this.OBLIQ ? this.ymf * u * (this.cosb1 * c - this.sinb1 * l * r) : (u = Math.sqrt(2 / (1 + l * r))) * c * this.ymf, t = this.xmf * u * l * i;
2896
+ break;
2897
+ case this.N_POLE:
2898
+ case this.S_POLE:
2899
+ s >= 0 ? (t = (u = Math.sqrt(s)) * i, n = r * (this.mode === this.S_POLE ? u : -u)) : t = n = 0;
2900
+ break;
2901
+ }
2902
+ }
2903
+ return e.x = this.a * t + this.x0, e.y = this.a * n + this.y0, e;
2904
+ }
2905
+ function kr(e) {
2906
+ e.x -= this.x0, e.y -= this.y0;
2907
+ var t = e.x / this.a, n = e.y / this.a, r, i, a, s, c, l, u;
2908
+ if (this.sphere) {
2909
+ var d = 0, f, p = 0;
2910
+ if (f = Math.sqrt(t * t + n * n), i = f * .5, i > 1) return null;
2911
+ switch (i = 2 * Math.asin(i), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (p = Math.sin(i), d = Math.cos(i)), this.mode) {
2912
+ case this.EQUIT:
2913
+ i = Math.abs(f) <= 1e-10 ? 0 : Math.asin(n * p / f), t *= p, n = d * f;
2914
+ break;
2915
+ case this.OBLIQ:
2916
+ i = Math.abs(f) <= 1e-10 ? this.lat0 : Math.asin(d * this.sinph0 + n * p * this.cosph0 / f), t *= p * this.cosph0, n = (d - Math.sin(i) * this.sinph0) * f;
2917
+ break;
2918
+ case this.N_POLE:
2919
+ n = -n, i = o - i;
2920
+ break;
2921
+ case this.S_POLE:
2922
+ i -= o;
2923
+ break;
2924
+ }
2925
+ r = n === 0 && (this.mode === this.EQUIT || this.mode === this.OBLIQ) ? 0 : Math.atan2(t, n);
2926
+ } else {
2927
+ if (u = 0, this.mode === this.OBLIQ || this.mode === this.EQUIT) {
2928
+ if (t /= this.dd, n *= this.dd, l = Math.sqrt(t * t + n * n), l < 1e-10) return e.x = this.long0, e.y = this.lat0, e;
2929
+ s = 2 * Math.asin(.5 * l / this.rq), a = Math.cos(s), t *= s = Math.sin(s), this.mode === this.OBLIQ ? (u = a * this.sinb1 + n * s * this.cosb1 / l, c = this.qp * u, n = l * this.cosb1 * a - n * this.sinb1 * s) : (u = n * s / l, c = this.qp * u, n = l * a);
2930
+ } else if (this.mode === this.N_POLE || this.mode === this.S_POLE) {
2931
+ if (this.mode === this.N_POLE && (n = -n), c = t * t + n * n, !c) return e.x = this.long0, e.y = this.lat0, e;
2932
+ u = 1 - c / this.qp, this.mode === this.S_POLE && (u = -u);
2933
+ }
2934
+ r = Math.atan2(t, n), i = Lr(Math.asin(u), this.apa);
2935
+ }
2936
+ return e.x = P(this.long0 + r, this.over), e.y = i, e;
2937
+ }
2938
+ var Ar = .3333333333333333, jr = .17222222222222222, Mr = .10257936507936508, Nr = .06388888888888888, Pr = .0664021164021164, Fr = .016415012942191543;
2939
+ function Ir(e) {
2940
+ var t, n = [];
2941
+ return n[0] = e * Ar, t = e * e, n[0] += t * jr, n[1] = t * Nr, t *= e, n[0] += t * Mr, n[1] += t * Pr, n[2] = t * Fr, n;
2942
+ }
2943
+ function Lr(e, t) {
2944
+ var n = e + e;
2945
+ return e + t[0] * Math.sin(n) + t[1] * Math.sin(n + n) + t[2] * Math.sin(n + n + n);
2946
+ }
2947
+ var Rr = {
2948
+ init: Dr,
2949
+ forward: Or,
2950
+ inverse: kr,
2951
+ names: [
2952
+ "Lambert Azimuthal Equal Area",
2953
+ "Lambert_Azimuthal_Equal_Area",
2954
+ "laea"
2955
+ ],
2956
+ S_POLE: 1,
2957
+ N_POLE: 2,
2958
+ EQUIT: 3,
2959
+ OBLIQ: 4
2960
+ };
2961
+ //#endregion
2962
+ //#region node_modules/proj4/lib/common/asinz.js
2963
+ function Y(e) {
2964
+ return Math.abs(e) > 1 && (e = e > 1 ? 1 : -1), Math.asin(e);
2965
+ }
2966
+ //#endregion
2967
+ //#region node_modules/proj4/lib/projections/aea.js
2968
+ function zr() {
2969
+ Math.abs(this.lat1 + this.lat2) < 1e-10 || (this.temp = this.b / this.a, this.es = 1 - this.temp ** 2, this.e3 = Math.sqrt(this.es), this.sin_po = Math.sin(this.lat1), this.cos_po = Math.cos(this.lat1), this.t1 = this.sin_po, this.con = this.sin_po, this.ms1 = N(this.e3, this.sin_po, this.cos_po), this.qs1 = J(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat2), this.cos_po = Math.cos(this.lat2), this.t2 = this.sin_po, this.ms2 = N(this.e3, this.sin_po, this.cos_po), this.qs2 = J(this.e3, this.sin_po), this.sin_po = Math.sin(this.lat0), this.cos_po = Math.cos(this.lat0), this.t3 = this.sin_po, this.qs0 = J(this.e3, this.sin_po), Math.abs(this.lat1 - this.lat2) > 1e-10 ? this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1) : this.ns0 = this.con, this.c = this.ms1 * this.ms1 + this.ns0 * this.qs1, this.rh = this.a * Math.sqrt(this.c - this.ns0 * this.qs0) / this.ns0);
2970
+ }
2971
+ function Br(e) {
2972
+ var t = e.x, n = e.y;
2973
+ this.sin_phi = Math.sin(n), this.cos_phi = Math.cos(n);
2974
+ var r = J(this.e3, this.sin_phi), i = this.a * Math.sqrt(this.c - this.ns0 * r) / this.ns0, a = this.ns0 * P(t - this.long0, this.over), o = i * Math.sin(a) + this.x0, s = this.rh - i * Math.cos(a) + this.y0;
2975
+ return e.x = o, e.y = s, e;
2976
+ }
2977
+ function Vr(e) {
2978
+ var t, n, r, i, a, o;
2979
+ return e.x -= this.x0, e.y = this.rh - e.y + this.y0, this.ns0 >= 0 ? (t = Math.sqrt(e.x * e.x + e.y * e.y), r = 1) : (t = -Math.sqrt(e.x * e.x + e.y * e.y), r = -1), i = 0, t !== 0 && (i = Math.atan2(r * e.x, r * e.y)), r = t * this.ns0 / this.a, this.sphere ? o = Math.asin((this.c - r * r) / (2 * this.ns0)) : (n = (this.c - r * r) / this.ns0, o = this.phi1z(this.e3, n)), a = P(i / this.ns0 + this.long0, this.over), e.x = a, e.y = o, e;
2980
+ }
2981
+ function Hr(e, t) {
2982
+ var n, r, i, a, o, s = Y(.5 * t);
2983
+ if (e < 1e-10) return s;
2984
+ for (var c = e * e, l = 1; l <= 25; l++) if (n = Math.sin(s), r = Math.cos(s), i = e * n, a = 1 - i * i, o = .5 * a * a / r * (t / (1 - c) - n / a + .5 / e * Math.log((1 - i) / (1 + i))), s += o, Math.abs(o) <= 1e-7) return s;
2985
+ return null;
2986
+ }
2987
+ var Ur = {
2988
+ init: zr,
2989
+ forward: Br,
2990
+ inverse: Vr,
2991
+ names: [
2992
+ "Albers_Conic_Equal_Area",
2993
+ "Albers_Equal_Area",
2994
+ "Albers",
2995
+ "aea"
2996
+ ],
2997
+ phi1z: Hr
2998
+ };
2999
+ //#endregion
3000
+ //#region node_modules/proj4/lib/projections/gnom.js
3001
+ function Wr() {
3002
+ this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
3003
+ }
3004
+ function Gr(e) {
3005
+ var t, n, r, i, a, o, s, c, l = e.x, u = e.y;
3006
+ return r = P(l - this.long0, this.over), t = Math.sin(u), n = Math.cos(u), i = Math.cos(r), o = this.sin_p14 * t + this.cos_p14 * n * i, a = 1, o > 0 || Math.abs(o) <= 1e-10 ? (s = this.x0 + this.a * a * n * Math.sin(r) / o, c = this.y0 + this.a * a * (this.cos_p14 * t - this.sin_p14 * n * i) / o) : (s = this.x0 + this.infinity_dist * n * Math.sin(r), c = this.y0 + this.infinity_dist * (this.cos_p14 * t - this.sin_p14 * n * i)), e.x = s, e.y = c, e;
3007
+ }
3008
+ function Kr(e) {
3009
+ var t, n, r, i, a, o;
3010
+ return e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, e.x /= this.k0, e.y /= this.k0, (t = Math.sqrt(e.x * e.x + e.y * e.y)) ? (i = Math.atan2(t, this.rc), n = Math.sin(i), r = Math.cos(i), o = Y(r * this.sin_p14 + e.y * n * this.cos_p14 / t), a = Math.atan2(e.x * n, t * this.cos_p14 * r - e.y * this.sin_p14 * n), a = P(this.long0 + a, this.over)) : (o = this.phic0, a = 0), e.x = a, e.y = o, e;
3011
+ }
3012
+ var qr = {
3013
+ init: Wr,
3014
+ forward: Gr,
3015
+ inverse: Kr,
3016
+ names: ["gnom"]
3017
+ };
3018
+ //#endregion
3019
+ //#region node_modules/proj4/lib/common/iqsfnz.js
3020
+ function Jr(e, t) {
3021
+ var n = 1 - (1 - e * e) / (2 * e) * Math.log((1 - e) / (1 + e));
3022
+ if (Math.abs(Math.abs(t) - n) < 1e-6) return t < 0 ? -1 * o : o;
3023
+ for (var r = Math.asin(.5 * t), i, a, s, c, l = 0; l < 30; l++) if (a = Math.sin(r), s = Math.cos(r), c = e * a, i = (1 - c * c) ** 2 / (2 * s) * (t / (1 - e * e) - a / (1 - c * c) + .5 / e * Math.log((1 - c) / (1 + c))), r += i, Math.abs(i) <= 1e-10) return r;
3024
+ return NaN;
3025
+ }
3026
+ //#endregion
3027
+ //#region node_modules/proj4/lib/projections/cea.js
3028
+ function Yr() {
3029
+ this.sphere || (this.k0 = N(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
3030
+ }
3031
+ function Xr(e) {
3032
+ var t = e.x, n = e.y, r, i, a = P(t - this.long0, this.over);
3033
+ if (this.sphere) r = this.x0 + this.a * a * Math.cos(this.lat_ts), i = this.y0 + this.a * Math.sin(n) / Math.cos(this.lat_ts);
3034
+ else {
3035
+ var o = J(this.e, Math.sin(n));
3036
+ r = this.x0 + this.a * this.k0 * a, i = this.y0 + this.a * o * .5 / this.k0;
3037
+ }
3038
+ return e.x = r, e.y = i, e;
3039
+ }
3040
+ function Zr(e) {
3041
+ e.x -= this.x0, e.y -= this.y0;
3042
+ var t, n;
3043
+ return this.sphere ? (t = P(this.long0 + e.x / this.a / Math.cos(this.lat_ts), this.over), n = Math.asin(e.y / this.a * Math.cos(this.lat_ts))) : (n = Jr(this.e, 2 * e.y * this.k0 / this.a), t = P(this.long0 + e.x / (this.a * this.k0), this.over)), e.x = t, e.y = n, e;
3044
+ }
3045
+ var Qr = {
3046
+ init: Yr,
3047
+ forward: Xr,
3048
+ inverse: Zr,
3049
+ names: ["cea"]
3050
+ };
3051
+ //#endregion
3052
+ //#region node_modules/proj4/lib/projections/eqc.js
3053
+ function $r() {
3054
+ this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Equidistant Cylindrical (Plate Carre)", this.rc = Math.cos(this.lat_ts);
3055
+ }
3056
+ function ei(e) {
3057
+ var t = e.x, n = e.y, r = P(t - this.long0, this.over), i = q(n - this.lat0);
3058
+ return e.x = this.x0 + this.a * r * this.rc, e.y = this.y0 + this.a * i, e;
3059
+ }
3060
+ function ti(e) {
3061
+ var t = e.x, n = e.y;
3062
+ return e.x = P(this.long0 + (t - this.x0) / (this.a * this.rc), this.over), e.y = q(this.lat0 + (n - this.y0) / this.a), e;
3063
+ }
3064
+ var ni = {
3065
+ init: $r,
3066
+ forward: ei,
3067
+ inverse: ti,
3068
+ names: [
3069
+ "Equirectangular",
3070
+ "Equidistant_Cylindrical",
3071
+ "Equidistant_Cylindrical_Spherical",
3072
+ "eqc"
3073
+ ]
3074
+ }, ri = 20;
3075
+ function ii() {
3076
+ this.temp = this.b / this.a, this.es = 1 - this.temp ** 2, this.e = Math.sqrt(this.es), this.e0 = _r(this.es), this.e1 = vr(this.es), this.e2 = yr(this.es), this.e3 = br(this.es), this.ml0 = this.a * K(this.e0, this.e1, this.e2, this.e3, this.lat0);
3077
+ }
3078
+ function ai(e) {
3079
+ var t = e.x, n = e.y, r, i, a, o = P(t - this.long0, this.over);
3080
+ if (a = o * Math.sin(n), this.sphere) Math.abs(n) <= 1e-10 ? (r = this.a * o, i = -1 * this.a * this.lat0) : (r = this.a * Math.sin(a) / Math.tan(n), i = this.a * (q(n - this.lat0) + (1 - Math.cos(a)) / Math.tan(n)));
3081
+ else if (Math.abs(n) <= 1e-10) r = this.a * o, i = -1 * this.ml0;
3082
+ else {
3083
+ var s = xr(this.a, this.e, Math.sin(n)) / Math.tan(n);
3084
+ r = s * Math.sin(a), i = this.a * K(this.e0, this.e1, this.e2, this.e3, n) - this.ml0 + s * (1 - Math.cos(a));
3085
+ }
3086
+ return e.x = r + this.x0, e.y = i + this.y0, e;
3087
+ }
3088
+ function oi(e) {
3089
+ var t, n, r = e.x - this.x0, i = e.y - this.y0, a, o, s, c, l;
3090
+ if (this.sphere) if (Math.abs(i + this.a * this.lat0) <= 1e-10) t = P(r / this.a + this.long0, this.over), n = 0;
3091
+ else {
3092
+ o = this.lat0 + i / this.a, s = r * r / this.a / this.a + o * o, c = o;
3093
+ var u;
3094
+ for (a = ri; a; --a) if (u = Math.tan(c), l = -1 * (o * (c * u + 1) - c - .5 * (c * c + s) * u) / ((c - o) / u - 1), c += l, Math.abs(l) <= 1e-10) {
3095
+ n = c;
3096
+ break;
3097
+ }
3098
+ t = P(this.long0 + Math.asin(r * Math.tan(c) / this.a) / Math.sin(n), this.over);
3099
+ }
3100
+ else if (Math.abs(i + this.ml0) <= 1e-10) n = 0, t = P(this.long0 + r / this.a, this.over);
3101
+ else {
3102
+ o = (this.ml0 + i) / this.a, s = r * r / this.a / this.a + o * o, c = o;
3103
+ var d, f, p, m, h;
3104
+ for (a = ri; a; --a) if (h = this.e * Math.sin(c), d = Math.sqrt(1 - h * h) * Math.tan(c), f = this.a * K(this.e0, this.e1, this.e2, this.e3, c), p = this.e0 - 2 * this.e1 * Math.cos(2 * c) + 4 * this.e2 * Math.cos(4 * c) - 6 * this.e3 * Math.cos(6 * c), m = f / this.a, l = (o * (d * m + 1) - m - .5 * d * (m * m + s)) / (this.es * Math.sin(2 * c) * (m * m + s - 2 * o * m) / (4 * d) + (o - m) * (d * p - 2 / Math.sin(2 * c)) - p), c -= l, Math.abs(l) <= 1e-10) {
3105
+ n = c;
3106
+ break;
3107
+ }
3108
+ d = Math.sqrt(1 - this.es * Math.sin(n) ** 2) * Math.tan(n), t = P(this.long0 + Math.asin(r * d / this.a) / Math.sin(n), this.over);
3109
+ }
3110
+ return e.x = t, e.y = n, e;
3111
+ }
3112
+ var si = {
3113
+ init: ii,
3114
+ forward: ai,
3115
+ inverse: oi,
3116
+ names: [
3117
+ "Polyconic",
3118
+ "American_Polyconic",
3119
+ "poly"
3120
+ ]
3121
+ };
3122
+ //#endregion
3123
+ //#region node_modules/proj4/lib/projections/nzmg.js
3124
+ function ci() {
3125
+ this.A = [], this.A[1] = .6399175073, this.A[2] = -.1358797613, this.A[3] = .063294409, this.A[4] = -.02526853, this.A[5] = .0117879, this.A[6] = -.0055161, this.A[7] = .0026906, this.A[8] = -.001333, this.A[9] = 67e-5, this.A[10] = -34e-5, this.B_re = [], this.B_im = [], this.B_re[1] = .7557853228, this.B_im[1] = 0, this.B_re[2] = .249204646, this.B_im[2] = .003371507, this.B_re[3] = -.001541739, this.B_im[3] = .04105856, this.B_re[4] = -.10162907, this.B_im[4] = .01727609, this.B_re[5] = -.26623489, this.B_im[5] = -.36249218, this.B_re[6] = -.6870983, this.B_im[6] = -1.1651967, this.C_re = [], this.C_im = [], this.C_re[1] = 1.3231270439, this.C_im[1] = 0, this.C_re[2] = -.577245789, this.C_im[2] = -.007809598, this.C_re[3] = .508307513, this.C_im[3] = -.112208952, this.C_re[4] = -.15094762, this.C_im[4] = .18200602, this.C_re[5] = 1.01418179, this.C_im[5] = 1.64497696, this.C_re[6] = 1.9660549, this.C_im[6] = 2.5127645, this.D = [], this.D[1] = 1.5627014243, this.D[2] = .5185406398, this.D[3] = -.03333098, this.D[4] = -.1052906, this.D[5] = -.0368594, this.D[6] = .007317, this.D[7] = .0122, this.D[8] = .00394, this.D[9] = -.0013;
3126
+ }
3127
+ function li(e) {
3128
+ var t, n = e.x, r = e.y - this.lat0, i = n - this.long0, o = r / a * 1e-5, s = i, c = 1, l = 0;
3129
+ for (t = 1; t <= 10; t++) c *= o, l += this.A[t] * c;
3130
+ var u = l, d = s, f = 1, p = 0, m, h, g = 0, _ = 0;
3131
+ for (t = 1; t <= 6; t++) m = f * u - p * d, h = p * u + f * d, f = m, p = h, g = g + this.B_re[t] * f - this.B_im[t] * p, _ = _ + this.B_im[t] * f + this.B_re[t] * p;
3132
+ return e.x = _ * this.a + this.x0, e.y = g * this.a + this.y0, e;
3133
+ }
3134
+ function ui(e) {
3135
+ var t, n = e.x, r = e.y, i = n - this.x0, o = (r - this.y0) / this.a, s = i / this.a, c = 1, l = 0, u, d, f = 0, p = 0;
3136
+ for (t = 1; t <= 6; t++) u = c * o - l * s, d = l * o + c * s, c = u, l = d, f = f + this.C_re[t] * c - this.C_im[t] * l, p = p + this.C_im[t] * c + this.C_re[t] * l;
3137
+ for (var m = 0; m < this.iterations; m++) {
3138
+ var h = f, g = p, _, v, y = o, b = s;
3139
+ for (t = 2; t <= 6; t++) _ = h * f - g * p, v = g * f + h * p, h = _, g = v, y += (t - 1) * (this.B_re[t] * h - this.B_im[t] * g), b += (t - 1) * (this.B_im[t] * h + this.B_re[t] * g);
3140
+ h = 1, g = 0;
3141
+ var x = this.B_re[1], S = this.B_im[1];
3142
+ for (t = 2; t <= 6; t++) _ = h * f - g * p, v = g * f + h * p, h = _, g = v, x += t * (this.B_re[t] * h - this.B_im[t] * g), S += t * (this.B_im[t] * h + this.B_re[t] * g);
3143
+ var C = x * x + S * S;
3144
+ f = (y * x + b * S) / C, p = (b * x - y * S) / C;
3145
+ }
3146
+ var w = f, T = p, E = 1, D = 0;
3147
+ for (t = 1; t <= 9; t++) E *= w, D += this.D[t] * E;
3148
+ var O = this.lat0 + D * a * 1e5;
3149
+ return e.x = this.long0 + T, e.y = O, e;
3150
+ }
3151
+ var di = {
3152
+ init: ci,
3153
+ forward: li,
3154
+ inverse: ui,
3155
+ names: ["New_Zealand_Map_Grid", "nzmg"]
3156
+ };
3157
+ //#endregion
3158
+ //#region node_modules/proj4/lib/projections/mill.js
3159
+ function fi() {}
3160
+ function pi(e) {
3161
+ var t = e.x, n = e.y, r = P(t - this.long0, this.over), i = this.x0 + this.a * r, a = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + n / 2.5)) * 1.25;
3162
+ return e.x = i, e.y = a, e;
3163
+ }
3164
+ function mi(e) {
3165
+ e.x -= this.x0, e.y -= this.y0;
3166
+ var t = P(this.long0 + e.x / this.a, this.over), n = 2.5 * (Math.atan(Math.exp(.8 * e.y / this.a)) - Math.PI / 4);
3167
+ return e.x = t, e.y = n, e;
3168
+ }
3169
+ var hi = {
3170
+ init: fi,
3171
+ forward: pi,
3172
+ inverse: mi,
3173
+ names: ["Miller_Cylindrical", "mill"]
3174
+ }, gi = 20;
3175
+ function _i() {
3176
+ this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en = _n(this.es);
3177
+ }
3178
+ function vi(e) {
3179
+ var t, n, r = e.x, i = e.y;
3180
+ if (r = P(r - this.long0, this.over), this.sphere) {
3181
+ if (!this.m) i = this.n === 1 ? i : Math.asin(this.n * Math.sin(i));
3182
+ else for (var a = this.n * Math.sin(i), o = gi; o; --o) {
3183
+ var s = (this.m * i + Math.sin(i) - a) / (this.m + Math.cos(i));
3184
+ if (i -= s, Math.abs(s) < 1e-10) break;
3185
+ }
3186
+ t = this.a * this.C_x * r * (this.m + Math.cos(i)), n = this.a * this.C_y * i;
3187
+ } else {
3188
+ var c = Math.sin(i), l = Math.cos(i);
3189
+ n = this.a * U(i, c, l, this.en), t = this.a * r * l / Math.sqrt(1 - this.es * c * c);
3190
+ }
3191
+ return e.x = t, e.y = n, e;
3192
+ }
3193
+ function yi(e) {
3194
+ var t, n, r, i;
3195
+ return e.x -= this.x0, r = e.x / this.a, e.y -= this.y0, t = e.y / this.a, this.sphere ? (t /= this.C_y, r /= this.C_x * (this.m + Math.cos(t)), this.m ? t = Y((this.m * t + Math.sin(t)) / this.n) : this.n !== 1 && (t = Y(Math.sin(t) / this.n)), r = P(r + this.long0, this.over), t = q(t)) : (t = yn(e.y / this.a, this.es, this.en), i = Math.abs(t), i < o ? (i = Math.sin(t), n = this.long0 + e.x * Math.sqrt(1 - this.es * i * i) / (this.a * Math.cos(t)), r = P(n, this.over)) : i - 1e-10 < o && (r = this.long0)), e.x = r, e.y = t, e;
3196
+ }
3197
+ var bi = {
3198
+ init: _i,
3199
+ forward: vi,
3200
+ inverse: yi,
3201
+ names: ["Sinusoidal", "sinu"]
3202
+ };
3203
+ //#endregion
3204
+ //#region node_modules/proj4/lib/projections/moll.js
3205
+ function xi() {
3206
+ this.x0 = this.x0 === void 0 ? 0 : this.x0, this.y0 = this.y0 === void 0 ? 0 : this.y0, this.long0 = this.long0 === void 0 ? 0 : this.long0;
3207
+ }
3208
+ function Si(e) {
3209
+ for (var t = e.x, n = e.y, r = P(t - this.long0, this.over), i = n, a = Math.PI * Math.sin(n);;) {
3210
+ var o = -(i + Math.sin(i) - a) / (1 + Math.cos(i));
3211
+ if (i += o, Math.abs(o) < 1e-10) break;
3212
+ }
3213
+ i /= 2, Math.PI / 2 - Math.abs(n) < 1e-10 && (r = 0);
3214
+ var s = .900316316158 * this.a * r * Math.cos(i) + this.x0, c = 1.4142135623731 * this.a * Math.sin(i) + this.y0;
3215
+ return e.x = s, e.y = c, e;
3216
+ }
3217
+ function Ci(e) {
3218
+ var t, n;
3219
+ e.x -= this.x0, e.y -= this.y0, n = e.y / (1.4142135623731 * this.a), Math.abs(n) > .999999999999 && (n = .999999999999), t = Math.asin(n);
3220
+ var r = P(this.long0 + e.x / (.900316316158 * this.a * Math.cos(t)), this.over);
3221
+ r < -Math.PI && (r = -Math.PI), r > Math.PI && (r = Math.PI), n = (2 * t + Math.sin(2 * t)) / Math.PI, Math.abs(n) > 1 && (n = 1);
3222
+ var i = Math.asin(n);
3223
+ return e.x = r, e.y = i, e;
3224
+ }
3225
+ var wi = {
3226
+ init: xi,
3227
+ forward: Si,
3228
+ inverse: Ci,
3229
+ names: ["Mollweide", "moll"]
3230
+ };
3231
+ //#endregion
3232
+ //#region node_modules/proj4/lib/projections/eqdc.js
3233
+ function Ti() {
3234
+ Math.abs(this.lat1 + this.lat2) < 1e-10 || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - this.temp ** 2, this.e = Math.sqrt(this.es), this.e0 = _r(this.es), this.e1 = vr(this.es), this.e2 = yr(this.es), this.e3 = br(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 = N(this.e, this.sin_phi, this.cos_phi), this.ml1 = K(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < 1e-10 ? this.ns = this.sin_phi : (this.sin_phi = Math.sin(this.lat2), this.cos_phi = Math.cos(this.lat2), this.ms2 = N(this.e, this.sin_phi, this.cos_phi), this.ml2 = K(this.e0, this.e1, this.e2, this.e3, this.lat2), this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1)), this.g = this.ml1 + this.ms1 / this.ns, this.ml0 = K(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
3235
+ }
3236
+ function Ei(e) {
3237
+ var t = e.x, n = e.y, r;
3238
+ if (this.sphere) r = this.a * (this.g - n);
3239
+ else {
3240
+ var i = K(this.e0, this.e1, this.e2, this.e3, n);
3241
+ r = this.a * (this.g - i);
3242
+ }
3243
+ var a = this.ns * P(t - this.long0, this.over), o = this.x0 + r * Math.sin(a), s = this.y0 + this.rh - r * Math.cos(a);
3244
+ return e.x = o, e.y = s, e;
3245
+ }
3246
+ function Di(e) {
3247
+ e.x -= this.x0, e.y = this.rh - e.y + this.y0;
3248
+ var t, n, r, i;
3249
+ this.ns >= 0 ? (n = Math.sqrt(e.x * e.x + e.y * e.y), t = 1) : (n = -Math.sqrt(e.x * e.x + e.y * e.y), t = -1);
3250
+ var a = 0;
3251
+ return n !== 0 && (a = Math.atan2(t * e.x, t * e.y)), this.sphere ? (i = P(this.long0 + a / this.ns, this.over), r = q(this.g - n / this.a), e.x = i, e.y = r, e) : (r = Sr(this.g - n / this.a, this.e0, this.e1, this.e2, this.e3), i = P(this.long0 + a / this.ns, this.over), e.x = i, e.y = r, e);
3252
+ }
3253
+ var Oi = {
3254
+ init: Ti,
3255
+ forward: Ei,
3256
+ inverse: Di,
3257
+ names: ["Equidistant_Conic", "eqdc"]
3258
+ };
3259
+ //#endregion
3260
+ //#region node_modules/proj4/lib/projections/vandg.js
3261
+ function ki() {
3262
+ this.R = this.a;
3263
+ }
3264
+ function Ai(e) {
3265
+ var t = e.x, n = e.y, r = P(t - this.long0, this.over), i, a;
3266
+ Math.abs(n) <= 1e-10 && (i = this.x0 + this.R * r, a = this.y0);
3267
+ var s = Y(2 * Math.abs(n / Math.PI));
3268
+ (Math.abs(r) <= 1e-10 || Math.abs(Math.abs(n) - o) <= 1e-10) && (i = this.x0, a = n >= 0 ? this.y0 + Math.PI * this.R * Math.tan(.5 * s) : this.y0 + Math.PI * this.R * -Math.tan(.5 * s));
3269
+ var c = .5 * Math.abs(Math.PI / r - r / Math.PI), l = c * c, u = Math.sin(s), d = Math.cos(s), f = d / (u + d - 1), p = f * f, m = f * (2 / u - 1), h = m * m, g = Math.PI * this.R * (c * (f - h) + Math.sqrt(l * (f - h) * (f - h) - (h + l) * (p - h))) / (h + l);
3270
+ r < 0 && (g = -g), i = this.x0 + g;
3271
+ var _ = l + f;
3272
+ return g = Math.PI * this.R * (m * _ - c * Math.sqrt((h + l) * (l + 1) - _ * _)) / (h + l), a = n >= 0 ? this.y0 + g : this.y0 - g, e.x = i, e.y = a, e;
3273
+ }
3274
+ function ji(e) {
3275
+ var t, n, r, i, a, o, s, c, l, u, d, f, p;
3276
+ return e.x -= this.x0, e.y -= this.y0, d = Math.PI * this.R, r = e.x / d, i = e.y / d, a = r * r + i * i, o = -Math.abs(i) * (1 + a), s = o - 2 * i * i + r * r, c = -2 * o + 1 + 2 * i * i + a * a, p = i * i / c + (2 * s * s * s / c / c / c - 9 * o * s / c / c) / 27, l = (o - s * s / 3 / c) / c, u = 2 * Math.sqrt(-l / 3), d = 3 * p / l / u, Math.abs(d) > 1 && (d = d >= 0 ? 1 : -1), f = Math.acos(d) / 3, n = e.y >= 0 ? (-u * Math.cos(f + Math.PI / 3) - s / 3 / c) * Math.PI : -(-u * Math.cos(f + Math.PI / 3) - s / 3 / c) * Math.PI, t = Math.abs(r) < 1e-10 ? this.long0 : P(this.long0 + Math.PI * (a - 1 + Math.sqrt(1 + 2 * (r * r - i * i) + a * a)) / 2 / r, this.over), e.x = t, e.y = n, e;
3277
+ }
3278
+ var Mi = {
3279
+ init: ki,
3280
+ forward: Ai,
3281
+ inverse: ji,
3282
+ names: [
3283
+ "Van_der_Grinten_I",
3284
+ "VanDerGrinten",
3285
+ "Van_der_Grinten",
3286
+ "vandg"
3287
+ ]
3288
+ };
3289
+ //#endregion
3290
+ //#region node_modules/proj4/lib/common/vincenty.js
3291
+ function Ni(e, t, n, r, i, a) {
3292
+ let o = r - t, s = Math.atan((1 - a) * Math.tan(e)), c = Math.atan((1 - a) * Math.tan(n)), l = Math.sin(s), u = Math.cos(s), d = Math.sin(c), f = Math.cos(c), p = o, m, h = 100, g, _, v, y, b, x, S, C, w, T, E, D, O, ee;
3293
+ do {
3294
+ if (g = Math.sin(p), _ = Math.cos(p), v = Math.sqrt(f * g * (f * g) + (u * d - l * f * _) * (u * d - l * f * _)), v === 0) return {
3295
+ azi1: 0,
3296
+ s12: 0
3297
+ };
3298
+ y = l * d + u * f * _, b = Math.atan2(v, y), x = u * f * g / v, S = 1 - x * x, C = S === 0 ? 0 : y - 2 * l * d / S, w = a / 16 * S * (4 + a * (4 - 3 * S)), m = p, p = o + (1 - w) * a * x * (b + w * v * (C + w * y * (-1 + 2 * C * C)));
3299
+ } while (Math.abs(p - m) > 1e-12 && --h > 0);
3300
+ return h === 0 ? {
3301
+ azi1: NaN,
3302
+ s12: NaN
3303
+ } : (T = S * (i * i - i * (1 - a) * (i * (1 - a))) / (i * (1 - a) * (i * (1 - a))), E = 1 + T / 16384 * (4096 + T * (-768 + T * (320 - 175 * T))), D = T / 1024 * (256 + T * (-128 + T * (74 - 47 * T))), O = D * v * (C + D / 4 * (y * (-1 + 2 * C * C) - D / 6 * C * (-3 + 4 * v * v) * (-3 + 4 * C * C))), ee = i * (1 - a) * E * (b - O), {
3304
+ azi1: Math.atan2(f * g, u * d - l * f * _),
3305
+ s12: ee
3306
+ });
3307
+ }
3308
+ function Pi(e, t, n, r, i, a) {
3309
+ let o = Math.atan((1 - a) * Math.tan(e)), s = Math.sin(o), c = Math.cos(o), l = Math.sin(n), u = Math.cos(n), d = Math.atan2(s, c * u), f = c * l, p = 1 - f * f, m = p * (i * i - i * (1 - a) * (i * (1 - a))) / (i * (1 - a) * (i * (1 - a))), h = 1 + m / 16384 * (4096 + m * (-768 + m * (320 - 175 * m))), g = m / 1024 * (256 + m * (-128 + m * (74 - 47 * m))), _ = r / (i * (1 - a) * h), v, y = 100, b, x, S, C;
3310
+ do
3311
+ b = Math.cos(2 * d + _), x = Math.sin(_), S = Math.cos(_), C = g * x * (b + g / 4 * (S * (-1 + 2 * b * b) - g / 6 * b * (-3 + 4 * x * x) * (-3 + 4 * b * b))), v = _, _ = r / (i * (1 - a) * h) + C;
3312
+ while (Math.abs(_ - v) > 1e-12 && --y > 0);
3313
+ if (y === 0) return {
3314
+ lat2: NaN,
3315
+ lon2: NaN
3316
+ };
3317
+ let w = s * x - c * S * u, T = Math.atan2(s * S + c * x * u, (1 - a) * Math.sqrt(f * f + w * w)), E = Math.atan2(x * l, c * S - s * x * u), D = a / 16 * p * (4 + a * (4 - 3 * p));
3318
+ return {
3319
+ lat2: T,
3320
+ lon2: t + (E - (1 - D) * a * f * (_ + D * x * (b + D * S * (-1 + 2 * b * b))))
3321
+ };
3322
+ }
3323
+ //#endregion
3324
+ //#region node_modules/proj4/lib/projections/aeqd.js
3325
+ function Fi() {
3326
+ this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0), this.f = this.es / (1 + Math.sqrt(1 - this.es));
3327
+ }
3328
+ function Ii(e) {
3329
+ var t = e.x, n = e.y, r = Math.sin(e.y), i = Math.cos(e.y), a = P(t - this.long0, this.over), s, c, l, u, d, f, p, m, h, g, _;
3330
+ return this.sphere ? Math.abs(this.sin_p12 - 1) <= 1e-10 ? (e.x = this.x0 + this.a * (o - n) * Math.sin(a), e.y = this.y0 - this.a * (o - n) * Math.cos(a), e) : Math.abs(this.sin_p12 + 1) <= 1e-10 ? (e.x = this.x0 + this.a * (o + n) * Math.sin(a), e.y = this.y0 + this.a * (o + n) * Math.cos(a), e) : (h = this.sin_p12 * r + this.cos_p12 * i * Math.cos(a), p = Math.acos(h), m = p ? p / Math.sin(p) : 1, e.x = this.x0 + this.a * m * i * Math.sin(a), e.y = this.y0 + this.a * m * (this.cos_p12 * r - this.sin_p12 * i * Math.cos(a)), e) : (s = _r(this.es), c = vr(this.es), l = yr(this.es), u = br(this.es), Math.abs(this.sin_p12 - 1) <= 1e-10 ? (d = this.a * K(s, c, l, u, o), f = this.a * K(s, c, l, u, n), e.x = this.x0 + (d - f) * Math.sin(a), e.y = this.y0 - (d - f) * Math.cos(a), e) : Math.abs(this.sin_p12 + 1) <= 1e-10 ? (d = this.a * K(s, c, l, u, o), f = this.a * K(s, c, l, u, n), e.x = this.x0 + (d + f) * Math.sin(a), e.y = this.y0 + (d + f) * Math.cos(a), e) : Math.abs(t) < 1e-10 && Math.abs(n - this.lat0) < 1e-10 ? (e.x = e.y = 0, e) : (g = Ni(this.lat0, this.long0, n, t, this.a, this.f), _ = g.azi1, e.x = g.s12 * Math.sin(_), e.y = g.s12 * Math.cos(_), e));
3331
+ }
3332
+ function Li(e) {
3333
+ e.x -= this.x0, e.y -= this.y0;
3334
+ var t, n, r, i, a, s, c, l, u, d, f, p, m, h, g, _;
3335
+ return this.sphere ? (t = Math.sqrt(e.x * e.x + e.y * e.y), t > 2 * o * this.a ? void 0 : (n = t / this.a, r = Math.sin(n), i = Math.cos(n), a = this.long0, Math.abs(t) <= 1e-10 ? s = this.lat0 : (s = Y(i * this.sin_p12 + e.y * r * this.cos_p12 / t), c = Math.abs(this.lat0) - o, a = Math.abs(c) <= 1e-10 ? this.lat0 >= 0 ? P(this.long0 + Math.atan2(e.x, -e.y), this.over) : P(this.long0 - Math.atan2(-e.x, e.y), this.over) : P(this.long0 + Math.atan2(e.x * r, t * this.cos_p12 * i - e.y * this.sin_p12 * r), this.over)), e.x = a, e.y = s, e)) : (l = _r(this.es), u = vr(this.es), d = yr(this.es), f = br(this.es), Math.abs(this.sin_p12 - 1) <= 1e-10 ? (p = this.a * K(l, u, d, f, o), t = Math.sqrt(e.x * e.x + e.y * e.y), m = p - t, s = Sr(m / this.a, l, u, d, f), a = P(this.long0 + Math.atan2(e.x, -1 * e.y), this.over), e.x = a, e.y = s, e) : Math.abs(this.sin_p12 + 1) <= 1e-10 ? (p = this.a * K(l, u, d, f, o), t = Math.sqrt(e.x * e.x + e.y * e.y), m = t - p, s = Sr(m / this.a, l, u, d, f), a = P(this.long0 + Math.atan2(e.x, e.y), this.over), e.x = a, e.y = s, e) : (h = Math.atan2(e.x, e.y), g = Math.sqrt(e.x * e.x + e.y * e.y), _ = Pi(this.lat0, this.long0, h, g, this.a, this.f), e.x = _.lon2, e.y = _.lat2, e));
3336
+ }
3337
+ var Ri = {
3338
+ init: Fi,
3339
+ forward: Ii,
3340
+ inverse: Li,
3341
+ names: ["Azimuthal_Equidistant", "aeqd"]
3342
+ };
3343
+ //#endregion
3344
+ //#region node_modules/proj4/lib/projections/ortho.js
3345
+ function zi() {
3346
+ this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0);
3347
+ }
3348
+ function Bi(e) {
3349
+ var t, n, r, i, a, o, s, c, l = e.x, u = e.y;
3350
+ return r = P(l - this.long0, this.over), t = Math.sin(u), n = Math.cos(u), i = Math.cos(r), o = this.sin_p14 * t + this.cos_p14 * n * i, a = 1, (o > 0 || Math.abs(o) <= 1e-10) && (s = this.a * a * n * Math.sin(r), c = this.y0 + this.a * a * (this.cos_p14 * t - this.sin_p14 * n * i)), e.x = s, e.y = c, e;
3351
+ }
3352
+ function Vi(e) {
3353
+ var t, n, r, i, a, s, c;
3354
+ return e.x -= this.x0, e.y -= this.y0, t = Math.sqrt(e.x * e.x + e.y * e.y), n = Y(t / this.a), r = Math.sin(n), i = Math.cos(n), s = this.long0, Math.abs(t) <= 1e-10 ? (c = this.lat0, e.x = s, e.y = c, e) : (c = Y(i * this.sin_p14 + e.y * r * this.cos_p14 / t), a = Math.abs(this.lat0) - o, Math.abs(a) <= 1e-10 ? (s = this.lat0 >= 0 ? P(this.long0 + Math.atan2(e.x, -e.y), this.over) : P(this.long0 - Math.atan2(-e.x, e.y), this.over), e.x = s, e.y = c, e) : (s = P(this.long0 + Math.atan2(e.x * r, t * this.cos_p14 * i - e.y * this.sin_p14 * r), this.over), e.x = s, e.y = c, e));
3355
+ }
3356
+ var Hi = {
3357
+ init: zi,
3358
+ forward: Bi,
3359
+ inverse: Vi,
3360
+ names: ["ortho"]
3361
+ }, X = {
3362
+ FRONT: 1,
3363
+ RIGHT: 2,
3364
+ BACK: 3,
3365
+ LEFT: 4,
3366
+ TOP: 5,
3367
+ BOTTOM: 6
3368
+ }, Z = {
3369
+ AREA_0: 1,
3370
+ AREA_1: 2,
3371
+ AREA_2: 3,
3372
+ AREA_3: 4
3373
+ };
3374
+ function Ui() {
3375
+ this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Quadrilateralized Spherical Cube", this.lat0 >= o - p / 2 ? this.face = X.TOP : this.lat0 <= -(o - p / 2) ? this.face = X.BOTTOM : Math.abs(this.long0) <= p ? this.face = X.FRONT : Math.abs(this.long0) <= o + p ? this.face = this.long0 > 0 ? X.RIGHT : X.LEFT : this.face = X.BACK, this.es !== 0 && (this.one_minus_f = 1 - (this.a - this.b) / this.a, this.one_minus_f_squared = this.one_minus_f * this.one_minus_f);
3376
+ }
3377
+ function Wi(e) {
3378
+ var t = {
3379
+ x: 0,
3380
+ y: 0
3381
+ }, n, r, i, a, s, c, l = { value: 0 };
3382
+ if (e.x -= this.long0, n = this.es === 0 ? e.y : Math.atan(this.one_minus_f_squared * Math.tan(e.y)), r = e.x, this.face === X.TOP) a = o - n, r >= p && r <= o + p ? (l.value = Z.AREA_0, i = r - o) : r > o + p || r <= -(o + p) ? (l.value = Z.AREA_1, i = r > 0 ? r - h : r + h) : r > -(o + p) && r <= -p ? (l.value = Z.AREA_2, i = r + o) : (l.value = Z.AREA_3, i = r);
3383
+ else if (this.face === X.BOTTOM) a = o + n, r >= p && r <= o + p ? (l.value = Z.AREA_0, i = -r + o) : r < p && r >= -p ? (l.value = Z.AREA_1, i = -r) : r < -p && r >= -(o + p) ? (l.value = Z.AREA_2, i = -r - o) : (l.value = Z.AREA_3, i = r > 0 ? -r + h : -r - h);
3384
+ else {
3385
+ var u, d, f, m, g, _, v;
3386
+ this.face === X.RIGHT ? r = Q(r, +o) : this.face === X.BACK ? r = Q(r, +h) : this.face === X.LEFT && (r = Q(r, -o)), m = Math.sin(n), g = Math.cos(n), _ = Math.sin(r), v = Math.cos(r), u = g * v, d = g * _, f = m, this.face === X.FRONT ? (a = Math.acos(u), i = Ki(a, f, d, l)) : this.face === X.RIGHT ? (a = Math.acos(d), i = Ki(a, f, -u, l)) : this.face === X.BACK ? (a = Math.acos(-u), i = Ki(a, f, -d, l)) : this.face === X.LEFT ? (a = Math.acos(-d), i = Ki(a, f, u, l)) : (a = i = 0, l.value = Z.AREA_0);
3387
+ }
3388
+ return c = Math.atan(12 / h * (i + Math.acos(Math.sin(i) * Math.cos(p)) - o)), s = Math.sqrt((1 - Math.cos(a)) / (Math.cos(c) * Math.cos(c)) / (1 - Math.cos(Math.atan(1 / Math.cos(i))))), l.value === Z.AREA_1 ? c += o : l.value === Z.AREA_2 ? c += h : l.value === Z.AREA_3 && (c += 1.5 * h), t.x = s * Math.cos(c), t.y = s * Math.sin(c), t.x = t.x * this.a + this.x0, t.y = t.y * this.a + this.y0, e.x = t.x, e.y = t.y, e;
3389
+ }
3390
+ function Gi(e) {
3391
+ var t = {
3392
+ lam: 0,
3393
+ phi: 0
3394
+ }, n, r, i, a, s, c, l, u, d, f = { value: 0 };
3395
+ if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, r = Math.atan(Math.sqrt(e.x * e.x + e.y * e.y)), n = Math.atan2(e.y, e.x), e.x >= 0 && e.x >= Math.abs(e.y) ? f.value = Z.AREA_0 : e.y >= 0 && e.y >= Math.abs(e.x) ? (f.value = Z.AREA_1, n -= o) : e.x < 0 && -e.x >= Math.abs(e.y) ? (f.value = Z.AREA_2, n = n < 0 ? n + h : n - h) : (f.value = Z.AREA_3, n += o), d = h / 12 * Math.tan(n), s = Math.sin(d) / (Math.cos(d) - 1 / Math.sqrt(2)), c = Math.atan(s), i = Math.cos(n), a = Math.tan(r), l = 1 - i * i * a * a * (1 - Math.cos(Math.atan(1 / Math.cos(c)))), l < -1 ? l = -1 : l > 1 && (l = 1), this.face === X.TOP) u = Math.acos(l), t.phi = o - u, f.value === Z.AREA_0 ? t.lam = c + o : f.value === Z.AREA_1 ? t.lam = c < 0 ? c + h : c - h : f.value === Z.AREA_2 ? t.lam = c - o : t.lam = c;
3396
+ else if (this.face === X.BOTTOM) u = Math.acos(l), t.phi = u - o, f.value === Z.AREA_0 ? t.lam = -c + o : f.value === Z.AREA_1 ? t.lam = -c : f.value === Z.AREA_2 ? t.lam = -c - o : t.lam = c < 0 ? -c - h : -c + h;
3397
+ else {
3398
+ var p = l, m, g;
3399
+ d = p * p, g = d >= 1 ? 0 : Math.sqrt(1 - d) * Math.sin(c), d += g * g, m = d >= 1 ? 0 : Math.sqrt(1 - d), f.value === Z.AREA_1 ? (d = m, m = -g, g = d) : f.value === Z.AREA_2 ? (m = -m, g = -g) : f.value === Z.AREA_3 && (d = m, m = g, g = -d), this.face === X.RIGHT ? (d = p, p = -m, m = d) : this.face === X.BACK ? (p = -p, m = -m) : this.face === X.LEFT && (d = p, p = m, m = -d), t.phi = Math.acos(-g) - o, t.lam = Math.atan2(m, p), this.face === X.RIGHT ? t.lam = Q(t.lam, -o) : this.face === X.BACK ? t.lam = Q(t.lam, -h) : this.face === X.LEFT && (t.lam = Q(t.lam, +o));
3400
+ }
3401
+ if (this.es !== 0) {
3402
+ var _ = +(t.phi < 0), v = Math.tan(t.phi), y = this.b / Math.sqrt(v * v + this.one_minus_f_squared);
3403
+ t.phi = Math.atan(Math.sqrt(this.a * this.a - y * y) / (this.one_minus_f * y)), _ && (t.phi = -t.phi);
3404
+ }
3405
+ return t.lam += this.long0, e.x = t.lam, e.y = t.phi, e;
3406
+ }
3407
+ function Ki(e, t, n, r) {
3408
+ var i;
3409
+ return e < 1e-10 ? (r.value = Z.AREA_0, i = 0) : (i = Math.atan2(t, n), Math.abs(i) <= p ? r.value = Z.AREA_0 : i > p && i <= o + p ? (r.value = Z.AREA_1, i -= o) : i > o + p || i <= -(o + p) ? (r.value = Z.AREA_2, i = i >= 0 ? i - h : i + h) : (r.value = Z.AREA_3, i += o)), i;
3410
+ }
3411
+ function Q(e, t) {
3412
+ var n = e + t;
3413
+ return n < -3.14159265359 ? n += m : n > 3.14159265359 && (n -= m), n;
3414
+ }
3415
+ var qi = {
3416
+ init: Ui,
3417
+ forward: Wi,
3418
+ inverse: Gi,
3419
+ names: [
3420
+ "Quadrilateralized Spherical Cube",
3421
+ "Quadrilateralized_Spherical_Cube",
3422
+ "qsc"
3423
+ ]
3424
+ }, Ji = [
3425
+ [
3426
+ 1,
3427
+ 22199e-21,
3428
+ -715515e-10,
3429
+ 31103e-10
3430
+ ],
3431
+ [
3432
+ .9986,
3433
+ -482243e-9,
3434
+ -24897e-9,
3435
+ -13309e-10
3436
+ ],
3437
+ [
3438
+ .9954,
3439
+ -83103e-8,
3440
+ -448605e-10,
3441
+ -9.86701e-7
3442
+ ],
3443
+ [
3444
+ .99,
3445
+ -.00135364,
3446
+ -59661e-9,
3447
+ 36777e-10
3448
+ ],
3449
+ [
3450
+ .9822,
3451
+ -.00167442,
3452
+ -449547e-11,
3453
+ -572411e-11
3454
+ ],
3455
+ [
3456
+ .973,
3457
+ -.00214868,
3458
+ -903571e-10,
3459
+ 1.8736e-8
3460
+ ],
3461
+ [
3462
+ .96,
3463
+ -.00305085,
3464
+ -900761e-10,
3465
+ 164917e-11
3466
+ ],
3467
+ [
3468
+ .9427,
3469
+ -.00382792,
3470
+ -653386e-10,
3471
+ -26154e-10
3472
+ ],
3473
+ [
3474
+ .9216,
3475
+ -.00467746,
3476
+ -10457e-8,
3477
+ 481243e-11
3478
+ ],
3479
+ [
3480
+ .8962,
3481
+ -.00536223,
3482
+ -323831e-10,
3483
+ -543432e-11
3484
+ ],
3485
+ [
3486
+ .8679,
3487
+ -.00609363,
3488
+ -113898e-9,
3489
+ 332484e-11
3490
+ ],
3491
+ [
3492
+ .835,
3493
+ -.00698325,
3494
+ -640253e-10,
3495
+ 9.34959e-7
3496
+ ],
3497
+ [
3498
+ .7986,
3499
+ -.00755338,
3500
+ -500009e-10,
3501
+ 9.35324e-7
3502
+ ],
3503
+ [
3504
+ .7597,
3505
+ -.00798324,
3506
+ -35971e-9,
3507
+ -227626e-11
3508
+ ],
3509
+ [
3510
+ .7186,
3511
+ -.00851367,
3512
+ -701149e-10,
3513
+ -86303e-10
3514
+ ],
3515
+ [
3516
+ .6732,
3517
+ -.00986209,
3518
+ -199569e-9,
3519
+ 191974e-10
3520
+ ],
3521
+ [
3522
+ .6213,
3523
+ -.010418,
3524
+ 883923e-10,
3525
+ 624051e-11
3526
+ ],
3527
+ [
3528
+ .5722,
3529
+ -.00906601,
3530
+ 182e-6,
3531
+ 624051e-11
3532
+ ],
3533
+ [
3534
+ .5322,
3535
+ -.00677797,
3536
+ 275608e-9,
3537
+ 624051e-11
3538
+ ]
3539
+ ], Yi = [
3540
+ [
3541
+ -520417e-23,
3542
+ .0124,
3543
+ 121431e-23,
3544
+ -845284e-16
3545
+ ],
3546
+ [
3547
+ .062,
3548
+ .0124,
3549
+ -1.26793e-9,
3550
+ 422642e-15
3551
+ ],
3552
+ [
3553
+ .124,
3554
+ .0124,
3555
+ 5.07171e-9,
3556
+ -1.60604e-9
3557
+ ],
3558
+ [
3559
+ .186,
3560
+ .0123999,
3561
+ -1.90189e-8,
3562
+ 6.00152e-9
3563
+ ],
3564
+ [
3565
+ .248,
3566
+ .0124002,
3567
+ 7.10039e-8,
3568
+ -2.24e-8
3569
+ ],
3570
+ [
3571
+ .31,
3572
+ .0123992,
3573
+ -2.64997e-7,
3574
+ 8.35986e-8
3575
+ ],
3576
+ [
3577
+ .372,
3578
+ .0124029,
3579
+ 9.88983e-7,
3580
+ -3.11994e-7
3581
+ ],
3582
+ [
3583
+ .434,
3584
+ .0123893,
3585
+ -369093e-11,
3586
+ -4.35621e-7
3587
+ ],
3588
+ [
3589
+ .4958,
3590
+ .0123198,
3591
+ -102252e-10,
3592
+ -3.45523e-7
3593
+ ],
3594
+ [
3595
+ .5571,
3596
+ .0121916,
3597
+ -154081e-10,
3598
+ -5.82288e-7
3599
+ ],
3600
+ [
3601
+ .6176,
3602
+ .0119938,
3603
+ -241424e-10,
3604
+ -5.25327e-7
3605
+ ],
3606
+ [
3607
+ .6769,
3608
+ .011713,
3609
+ -320223e-10,
3610
+ -5.16405e-7
3611
+ ],
3612
+ [
3613
+ .7346,
3614
+ .0113541,
3615
+ -397684e-10,
3616
+ -6.09052e-7
3617
+ ],
3618
+ [
3619
+ .7903,
3620
+ .0109107,
3621
+ -489042e-10,
3622
+ -104739e-11
3623
+ ],
3624
+ [
3625
+ .8435,
3626
+ .0103431,
3627
+ -64615e-9,
3628
+ -1.40374e-9
3629
+ ],
3630
+ [
3631
+ .8936,
3632
+ .00969686,
3633
+ -64636e-9,
3634
+ -8547e-9
3635
+ ],
3636
+ [
3637
+ .9394,
3638
+ .00840947,
3639
+ -192841e-9,
3640
+ -42106e-10
3641
+ ],
3642
+ [
3643
+ .9761,
3644
+ .00616527,
3645
+ -256e-6,
3646
+ -42106e-10
3647
+ ],
3648
+ [
3649
+ 1,
3650
+ .00328947,
3651
+ -319159e-9,
3652
+ -42106e-10
3653
+ ]
3654
+ ], Xi = .8487, Zi = 1.3523, Qi = f / 5, $i = 1 / Qi, ea = 18, ta = function(e, t) {
3655
+ return e[0] + t * (e[1] + t * (e[2] + t * e[3]));
3656
+ }, na = function(e, t) {
3657
+ return e[1] + t * (2 * e[2] + t * 3 * e[3]);
3658
+ };
3659
+ function ra(e, t, n, r) {
3660
+ for (var i = t; r; --r) {
3661
+ var a = e(i);
3662
+ if (i -= a, Math.abs(a) < n) break;
3663
+ }
3664
+ return i;
3665
+ }
3666
+ function ia() {
3667
+ this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
3668
+ }
3669
+ function aa(e) {
3670
+ var t = P(e.x - this.long0, this.over), n = Math.abs(e.y), r = Math.floor(n * Qi);
3671
+ r < 0 ? r = 0 : r >= ea && (r = ea - 1), n = f * (n - $i * r);
3672
+ var i = {
3673
+ x: ta(Ji[r], n) * t,
3674
+ y: ta(Yi[r], n)
3675
+ };
3676
+ return e.y < 0 && (i.y = -i.y), i.x = i.x * this.a * Xi + this.x0, i.y = i.y * this.a * Zi + this.y0, i;
3677
+ }
3678
+ function oa(e) {
3679
+ var t = {
3680
+ x: (e.x - this.x0) / (this.a * Xi),
3681
+ y: Math.abs(e.y - this.y0) / (this.a * Zi)
3682
+ };
3683
+ if (t.y >= 1) t.x /= Ji[ea][0], t.y = e.y < 0 ? -o : o;
3684
+ else {
3685
+ var n = Math.floor(t.y * ea);
3686
+ for (n < 0 ? n = 0 : n >= ea && (n = ea - 1);;) if (Yi[n][0] > t.y) --n;
3687
+ else if (Yi[n + 1][0] <= t.y) ++n;
3688
+ else break;
3689
+ var r = Yi[n], i = 5 * (t.y - r[0]) / (Yi[n + 1][0] - r[0]);
3690
+ i = ra(function(e) {
3691
+ return (ta(r, e) - t.y) / na(r, e);
3692
+ }, i, u, 100), t.x /= ta(Ji[n], i), t.y = (5 * n + i) * d, e.y < 0 && (t.y = -t.y);
3693
+ }
3694
+ return t.x = P(t.x + this.long0, this.over), t;
3695
+ }
3696
+ var sa = {
3697
+ init: ia,
3698
+ forward: aa,
3699
+ inverse: oa,
3700
+ names: ["Robinson", "robin"]
3701
+ };
3702
+ //#endregion
3703
+ //#region node_modules/proj4/lib/projections/geocent.js
3704
+ function ca() {
3705
+ this.name = "geocent";
3706
+ }
3707
+ function la(e) {
3708
+ return _t(e, this.es, this.a);
3709
+ }
3710
+ function ua(e) {
3711
+ return vt(e, this.es, this.a, this.b);
3712
+ }
3713
+ var da = {
3714
+ init: ca,
3715
+ forward: la,
3716
+ inverse: ua,
3717
+ names: [
3718
+ "Geocentric",
3719
+ "geocentric",
3720
+ "geocent",
3721
+ "Geocent"
3722
+ ]
3723
+ }, $ = {
3724
+ N_POLE: 0,
3725
+ S_POLE: 1,
3726
+ EQUIT: 2,
3727
+ OBLIQ: 3
3728
+ }, fa = {
3729
+ h: {
3730
+ def: 1e5,
3731
+ num: !0
3732
+ },
3733
+ azi: {
3734
+ def: 0,
3735
+ num: !0,
3736
+ degrees: !0
3737
+ },
3738
+ tilt: {
3739
+ def: 0,
3740
+ num: !0,
3741
+ degrees: !0
3742
+ },
3743
+ long0: {
3744
+ def: 0,
3745
+ num: !0
3746
+ },
3747
+ lat0: {
3748
+ def: 0,
3749
+ num: !0
3750
+ }
3751
+ };
3752
+ function pa() {
3753
+ if (Object.keys(fa).forEach(function(e) {
3754
+ if (this[e] === void 0) this[e] = fa[e].def;
3755
+ else if (fa[e].num && isNaN(this[e])) throw Error("Invalid parameter value, must be numeric " + e + " = " + this[e]);
3756
+ else fa[e].num && (this[e] = parseFloat(this[e]));
3757
+ fa[e].degrees && (this[e] = this[e] * d);
3758
+ }.bind(this)), Math.abs(Math.abs(this.lat0) - o) < 1e-10 ? this.mode = this.lat0 < 0 ? $.S_POLE : $.N_POLE : Math.abs(this.lat0) < 1e-10 ? this.mode = $.EQUIT : (this.mode = $.OBLIQ, this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0)), this.pn1 = this.h / this.a, this.pn1 <= 0 || this.pn1 > 1e10) throw Error("Invalid height");
3759
+ this.p = 1 + this.pn1, this.rp = 1 / this.p, this.h1 = 1 / this.pn1, this.pfact = (this.p + 1) * this.h1, this.es = 0;
3760
+ var e = this.tilt, t = this.azi;
3761
+ this.cg = Math.cos(t), this.sg = Math.sin(t), this.cw = Math.cos(e), this.sw = Math.sin(e);
3762
+ }
3763
+ function ma(e) {
3764
+ e.x -= this.long0;
3765
+ var t = Math.sin(e.y), n = Math.cos(e.y), r = Math.cos(e.x), i, a;
3766
+ switch (this.mode) {
3767
+ case $.OBLIQ:
3768
+ a = this.sinph0 * t + this.cosph0 * n * r;
3769
+ break;
3770
+ case $.EQUIT:
3771
+ a = n * r;
3772
+ break;
3773
+ case $.S_POLE:
3774
+ a = -t;
3775
+ break;
3776
+ case $.N_POLE:
3777
+ a = t;
3778
+ break;
3779
+ }
3780
+ switch (a = this.pn1 / (this.p - a), i = a * n * Math.sin(e.x), this.mode) {
3781
+ case $.OBLIQ:
3782
+ a *= this.cosph0 * t - this.sinph0 * n * r;
3783
+ break;
3784
+ case $.EQUIT:
3785
+ a *= t;
3786
+ break;
3787
+ case $.N_POLE:
3788
+ a *= -(n * r);
3789
+ break;
3790
+ case $.S_POLE:
3791
+ a *= n * r;
3792
+ break;
3793
+ }
3794
+ var o = a * this.cg + i * this.sg, s = 1 / (o * this.sw * this.h1 + this.cw);
3795
+ return i = (i * this.cg - a * this.sg) * this.cw * s, a = o * s, e.x = i * this.a, e.y = a * this.a, e;
3796
+ }
3797
+ function ha(e) {
3798
+ e.x /= this.a, e.y /= this.a;
3799
+ var t = {
3800
+ x: e.x,
3801
+ y: e.y
3802
+ }, n, r, i = 1 / (this.pn1 - e.y * this.sw);
3803
+ n = this.pn1 * e.x * i, r = this.pn1 * e.y * this.cw * i, e.x = n * this.cg + r * this.sg, e.y = r * this.cg - n * this.sg;
3804
+ var a = W(e.x, e.y);
3805
+ if (Math.abs(a) < 1e-10) t.x = 0, t.y = e.y;
3806
+ else {
3807
+ var o, s = 1 - a * a * this.pfact;
3808
+ switch (s = (this.p - Math.sqrt(s)) / (this.pn1 / a + a / this.pn1), o = Math.sqrt(1 - s * s), this.mode) {
3809
+ case $.OBLIQ:
3810
+ t.y = Math.asin(o * this.sinph0 + e.y * s * this.cosph0 / a), e.y = (o - this.sinph0 * Math.sin(t.y)) * a, e.x *= s * this.cosph0;
3811
+ break;
3812
+ case $.EQUIT:
3813
+ t.y = Math.asin(e.y * s / a), e.y = o * a, e.x *= s;
3814
+ break;
3815
+ case $.N_POLE:
3816
+ t.y = Math.asin(o), e.y = -e.y;
3817
+ break;
3818
+ case $.S_POLE:
3819
+ t.y = -Math.asin(o);
3820
+ break;
3821
+ }
3822
+ t.x = Math.atan2(e.x, e.y);
3823
+ }
3824
+ return e.x = t.x + this.long0, e.y = t.y, e;
3825
+ }
3826
+ var ga = {
3827
+ init: pa,
3828
+ forward: ma,
3829
+ inverse: ha,
3830
+ names: ["Tilted_Perspective", "tpers"]
3831
+ };
3832
+ //#endregion
3833
+ //#region node_modules/proj4/lib/projections/geos.js
3834
+ function _a() {
3835
+ if (this.flip_axis = +(this.sweep === "x"), this.h = Number(this.h), this.radius_g_1 = this.h / this.a, this.radius_g_1 <= 0 || this.radius_g_1 > 1e10) throw Error();
3836
+ if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
3837
+ var e = 1 - this.es, t = 1 / e;
3838
+ this.radius_p = Math.sqrt(e), this.radius_p2 = e, this.radius_p_inv2 = t, this.shape = "ellipse";
3839
+ } else this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
3840
+ this.title ||= "Geostationary Satellite View";
3841
+ }
3842
+ function va(e) {
3843
+ var t = e.x, n = e.y, r, i, a, o;
3844
+ if (t -= this.long0, this.shape === "ellipse") {
3845
+ n = Math.atan(this.radius_p2 * Math.tan(n));
3846
+ var s = this.radius_p / W(this.radius_p * Math.cos(n), Math.sin(n));
3847
+ if (i = s * Math.cos(t) * Math.cos(n), a = s * Math.sin(t) * Math.cos(n), o = s * Math.sin(n), (this.radius_g - i) * i - a * a - o * o * this.radius_p_inv2 < 0) return e.x = NaN, e.y = NaN, e;
3848
+ r = this.radius_g - i, this.flip_axis ? (e.x = this.radius_g_1 * Math.atan(a / W(o, r)), e.y = this.radius_g_1 * Math.atan(o / r)) : (e.x = this.radius_g_1 * Math.atan(a / r), e.y = this.radius_g_1 * Math.atan(o / W(a, r)));
3849
+ } else this.shape === "sphere" && (r = Math.cos(n), i = Math.cos(t) * r, a = Math.sin(t) * r, o = Math.sin(n), r = this.radius_g - i, this.flip_axis ? (e.x = this.radius_g_1 * Math.atan(a / W(o, r)), e.y = this.radius_g_1 * Math.atan(o / r)) : (e.x = this.radius_g_1 * Math.atan(a / r), e.y = this.radius_g_1 * Math.atan(o / W(a, r))));
3850
+ return e.x *= this.a, e.y *= this.a, e;
3851
+ }
3852
+ function ya(e) {
3853
+ var t = -1, n = 0, r = 0, i, a, o, s;
3854
+ if (e.x /= this.a, e.y /= this.a, this.shape === "ellipse") {
3855
+ this.flip_axis ? (r = Math.tan(e.y / this.radius_g_1), n = Math.tan(e.x / this.radius_g_1) * W(1, r)) : (n = Math.tan(e.x / this.radius_g_1), r = Math.tan(e.y / this.radius_g_1) * W(1, n));
3856
+ var c = r / this.radius_p;
3857
+ if (i = n * n + c * c + t * t, a = 2 * this.radius_g * t, o = a * a - 4 * i * this.C, o < 0) return e.x = NaN, e.y = NaN, e;
3858
+ s = (-a - Math.sqrt(o)) / (2 * i), t = this.radius_g + s * t, n *= s, r *= s, e.x = Math.atan2(n, t), e.y = Math.atan(r * Math.cos(e.x) / t), e.y = Math.atan(this.radius_p_inv2 * Math.tan(e.y));
3859
+ } else if (this.shape === "sphere") {
3860
+ if (this.flip_axis ? (r = Math.tan(e.y / this.radius_g_1), n = Math.tan(e.x / this.radius_g_1) * Math.sqrt(1 + r * r)) : (n = Math.tan(e.x / this.radius_g_1), r = Math.tan(e.y / this.radius_g_1) * Math.sqrt(1 + n * n)), i = n * n + r * r + t * t, a = 2 * this.radius_g * t, o = a * a - 4 * i * this.C, o < 0) return e.x = NaN, e.y = NaN, e;
3861
+ s = (-a - Math.sqrt(o)) / (2 * i), t = this.radius_g + s * t, n *= s, r *= s, e.x = Math.atan2(n, t), e.y = Math.atan(r * Math.cos(e.x) / t);
3862
+ }
3863
+ return e.x += this.long0, e;
3864
+ }
3865
+ var ba = {
3866
+ init: _a,
3867
+ forward: va,
3868
+ inverse: ya,
3869
+ names: [
3870
+ "Geostationary Satellite View",
3871
+ "Geostationary_Satellite",
3872
+ "geos"
3873
+ ]
3874
+ }, xa = 1.340264, Sa = -.081106, Ca = 893e-6, wa = .003796, Ta = Math.sqrt(3) / 2;
3875
+ function Ea() {
3876
+ this.es = 0, this.long0 = this.long0 === void 0 ? 0 : this.long0, this.x0 = this.x0 === void 0 ? 0 : this.x0, this.y0 = this.y0 === void 0 ? 0 : this.y0;
3877
+ }
3878
+ function Da(e) {
3879
+ var t = P(e.x - this.long0, this.over), n = e.y, r = Math.asin(Ta * Math.sin(n)), i = r * r, a = i * i * i;
3880
+ return e.x = t * Math.cos(r) / (Ta * (xa + 3 * Sa * i + a * (7 * Ca + 9 * wa * i))), e.y = r * (xa + Sa * i + a * (Ca + wa * i)), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
3881
+ }
3882
+ function Oa(e) {
3883
+ e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a;
3884
+ var t = 1e-9, n = 12, r = e.y, i, a, o, s, c, l;
3885
+ for (l = 0; l < n && (i = r * r, a = i * i * i, o = r * (xa + Sa * i + a * (Ca + wa * i)) - e.y, s = xa + 3 * Sa * i + a * (7 * Ca + 9 * wa * i), r -= c = o / s, !(Math.abs(c) < t)); ++l);
3886
+ return i = r * r, a = i * i * i, e.x = Ta * e.x * (xa + 3 * Sa * i + a * (7 * Ca + 9 * wa * i)) / Math.cos(r), e.y = Math.asin(Math.sin(r) / Ta), e.x = P(e.x + this.long0, this.over), e;
3887
+ }
3888
+ var ka = {
3889
+ init: Ea,
3890
+ forward: Da,
3891
+ inverse: Oa,
3892
+ names: [
3893
+ "eqearth",
3894
+ "Equal Earth",
3895
+ "Equal_Earth"
3896
+ ]
3897
+ }, Aa = 1e-10;
3898
+ function ja() {
3899
+ var e;
3900
+ if (this.phi1 = this.lat1, Math.abs(this.phi1) < Aa) throw Error();
3901
+ this.es ? (this.en = _n(this.es), this.m1 = U(this.phi1, this.am1 = Math.sin(this.phi1), e = Math.cos(this.phi1), this.en), this.am1 = e / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = Na, this.forward = Ma) : (Math.abs(this.phi1) + Aa >= o ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = Fa, this.forward = Pa);
3902
+ }
3903
+ function Ma(e) {
3904
+ var t = P(e.x - (this.long0 || 0), this.over), n = e.y, r = this.am1 + this.m1 - U(n, i = Math.sin(n), a = Math.cos(n), this.en), i = a * t / (r * Math.sqrt(1 - this.es * i * i)), a;
3905
+ return e.x = r * Math.sin(i), e.y = this.am1 - r * Math.cos(i), e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
3906
+ }
3907
+ function Na(e) {
3908
+ e.x = (e.x - (this.x0 || 0)) / this.a, e.y = (e.y - (this.y0 || 0)) / this.a;
3909
+ var t, n = W(e.x, e.y = this.am1 - e.y), r, i = yn(this.am1 + this.m1 - n, this.es, this.en);
3910
+ if ((t = Math.abs(i)) < o) t = Math.sin(i), r = n * Math.atan2(e.x, e.y) * Math.sqrt(1 - this.es * t * t) / Math.cos(i);
3911
+ else if (Math.abs(t - o) <= Aa) r = 0;
3912
+ else throw Error();
3913
+ return e.x = P(r + (this.long0 || 0), this.over), e.y = q(i), e;
3914
+ }
3915
+ function Pa(e) {
3916
+ var t = P(e.x - (this.long0 || 0), this.over), n = e.y, r, i = this.cphi1 + this.phi1 - n;
3917
+ return Math.abs(i) > Aa ? (e.x = i * Math.sin(r = t * Math.cos(n) / i), e.y = this.cphi1 - i * Math.cos(r)) : e.x = e.y = 0, e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
3918
+ }
3919
+ function Fa(e) {
3920
+ e.x = (e.x - (this.x0 || 0)) / this.a, e.y = (e.y - (this.y0 || 0)) / this.a;
3921
+ var t, n, r = W(e.x, e.y = this.cphi1 - e.y);
3922
+ if (n = this.cphi1 + this.phi1 - r, Math.abs(n) > o) throw Error();
3923
+ return t = Math.abs(Math.abs(n) - o) <= Aa ? 0 : r * Math.atan2(e.x, e.y) / Math.cos(n), e.x = P(t + (this.long0 || 0), this.over), e.y = q(n), e;
3924
+ }
3925
+ var Ia = {
3926
+ init: ja,
3927
+ names: ["bonne", "Bonne (Werner lat_1=90)"]
3928
+ }, La = {
3929
+ OBLIQUE: {
3930
+ forward: Ua,
3931
+ inverse: Ga
3932
+ },
3933
+ TRANSVERSE: {
3934
+ forward: Wa,
3935
+ inverse: Ka
3936
+ }
3937
+ }, Ra = {
3938
+ ROTATE: {
3939
+ o_alpha: "oAlpha",
3940
+ o_lon_c: "oLongC",
3941
+ o_lat_c: "oLatC"
3942
+ },
3943
+ NEW_POLE: {
3944
+ o_lat_p: "oLatP",
3945
+ o_lon_p: "oLongP"
3946
+ },
3947
+ NEW_EQUATOR: {
3948
+ o_lon_1: "oLong1",
3949
+ o_lat_1: "oLat1",
3950
+ o_lon_2: "oLong2",
3951
+ o_lat_2: "oLat2"
3952
+ }
3953
+ };
3954
+ function za() {
3955
+ if (this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.title = this.title || "General Oblique Transformation", this.isIdentity = Be.includes(this.o_proj), !this.o_proj) throw Error("Missing parameter: o_proj");
3956
+ if (this.o_proj === "ob_tran") throw Error("Invalid value for o_proj: " + this.o_proj);
3957
+ let e = R(this.projStr.replace("+proj=ob_tran", "").replace("+o_proj=", "+proj=").trim());
3958
+ if (!e) throw Error("Invalid parameter: o_proj. Unknown projection " + this.o_proj);
3959
+ e.long0 = 0, this.obliqueProjection = e;
3960
+ let t, n = Object.keys(Ra), r = (e) => {
3961
+ if (this[e] === void 0) return;
3962
+ let t = parseFloat(this[e]) * d;
3963
+ if (isNaN(t)) throw Error("Invalid value for " + e + ": " + this[e]);
3964
+ return t;
3965
+ };
3966
+ for (let e = 0; e < n.length; e++) {
3967
+ let i = Ra[n[e]], a = Object.entries(i);
3968
+ if (a.some(([e]) => this[e] !== void 0)) {
3969
+ t = i;
3970
+ for (let e = 0; e < a.length; e++) {
3971
+ let [t, n] = a[e], i = r(t);
3972
+ if (i === void 0) throw Error("Missing parameter: " + t + ".");
3973
+ this[n] = i;
3974
+ }
3975
+ break;
3976
+ }
3977
+ }
3978
+ if (!t) throw Error("No valid parameters provided for ob_tran projection.");
3979
+ let { lamp: i, phip: a } = Ha(this, t);
3980
+ this.lamp = i, Math.abs(a) > 1e-10 ? (this.cphip = Math.cos(a), this.sphip = Math.sin(a), this.projectionType = La.OBLIQUE) : this.projectionType = La.TRANSVERSE;
3981
+ }
3982
+ function Ba(e) {
3983
+ return this.projectionType.forward(this, e);
3984
+ }
3985
+ function Va(e) {
3986
+ return this.projectionType.inverse(this, e);
3987
+ }
3988
+ function Ha(e, t) {
3989
+ let n, r;
3990
+ if (t === Ra.ROTATE) {
3991
+ let t = e.oLongC, i = e.oLatC, a = e.oAlpha;
3992
+ if (Math.abs(Math.abs(i) - o) <= 1e-10) throw Error("Invalid value for o_lat_c: " + e.o_lat_c + " should be < 90°");
3993
+ r = t + Math.atan2(-1 * Math.cos(a), -1 * Math.sin(a) * Math.sin(i)), n = Math.asin(Math.cos(i) * Math.sin(a));
3994
+ } else if (t === Ra.NEW_POLE) r = e.oLongP, n = e.oLatP;
3995
+ else {
3996
+ let t = e.oLong1, i = e.oLat1, a = e.oLong2, s = e.oLat2, c = Math.abs(i);
3997
+ if (Math.abs(i) > o - 1e-10) throw Error("Invalid value for o_lat_1: " + e.o_lat_1 + " should be < 90°");
3998
+ if (Math.abs(s) > o - 1e-10) throw Error("Invalid value for o_lat_2: " + e.o_lat_2 + " should be < 90°");
3999
+ if (Math.abs(i - s) < 1e-10) throw Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");
4000
+ if (c < 1e-10) throw Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");
4001
+ r = Math.atan2(Math.cos(i) * Math.sin(s) * Math.cos(t) - Math.sin(i) * Math.cos(s) * Math.cos(a), Math.sin(i) * Math.cos(s) * Math.sin(a) - Math.cos(i) * Math.sin(s) * Math.sin(t)), n = Math.atan(-1 * Math.cos(r - t) / Math.tan(i));
4002
+ }
4003
+ return {
4004
+ lamp: r,
4005
+ phip: n
4006
+ };
4007
+ }
4008
+ function Ua(e, t) {
4009
+ let { x: n, y: r } = t;
4010
+ n += e.long0;
4011
+ let i = Math.cos(n), a = Math.sin(r), o = Math.cos(r);
4012
+ t.x = P(Math.atan2(o * Math.sin(n), e.sphip * o * i + e.cphip * a) + e.lamp), t.y = Math.asin(e.sphip * a - e.cphip * o * i);
4013
+ let s = e.obliqueProjection.forward(t);
4014
+ return e.isIdentity && (s.x *= f, s.y *= f), s;
4015
+ }
4016
+ function Wa(e, t) {
4017
+ let { x: n, y: r } = t;
4018
+ n += e.long0;
4019
+ let i = Math.cos(r), a = Math.cos(n);
4020
+ t.x = P(Math.atan2(i * Math.sin(n), Math.sin(r)) + e.lamp), t.y = Math.asin(-1 * i * a);
4021
+ let o = e.obliqueProjection.forward(t);
4022
+ return e.isIdentity && (o.x *= f, o.y *= f), o;
4023
+ }
4024
+ function Ga(e, t) {
4025
+ e.isIdentity && (t.x *= d, t.y *= d);
4026
+ let { x: n, y: r } = e.obliqueProjection.inverse(t);
4027
+ if (n < Number.MAX_VALUE) {
4028
+ n -= e.lamp;
4029
+ let i = Math.cos(n), a = Math.sin(r), o = Math.cos(r);
4030
+ t.x = Math.atan2(o * Math.sin(n), e.sphip * o * i - e.cphip * a), t.y = Math.asin(e.sphip * a + e.cphip * o * i);
4031
+ }
4032
+ return t.x = P(t.x + e.long0), t;
4033
+ }
4034
+ function Ka(e, t) {
4035
+ e.isIdentity && (t.x *= d, t.y *= d);
4036
+ let { x: n, y: r } = e.obliqueProjection.inverse(t);
4037
+ if (n < Number.MAX_VALUE) {
4038
+ let i = Math.cos(r);
4039
+ n -= e.lamp, t.x = Math.atan2(i * Math.sin(n), -1 * Math.sin(r)), t.y = Math.asin(i * Math.cos(n));
4040
+ }
4041
+ return t.x = P(t.x + e.long0), t;
4042
+ }
4043
+ var qa = {
4044
+ init: za,
4045
+ forward: Ba,
4046
+ inverse: Va,
4047
+ names: [
4048
+ "General Oblique Transformation",
4049
+ "General_Oblique_Transformation",
4050
+ "ob_tran"
4051
+ ]
4052
+ };
4053
+ //#endregion
4054
+ //#region node_modules/proj4/projs.js
4055
+ function Ja(e) {
4056
+ e.Proj.projections.add(Cn), e.Proj.projections.add(Pn), e.Proj.projections.add(Rn), e.Proj.projections.add(Jn), e.Proj.projections.add($n), e.Proj.projections.add(rr), e.Proj.projections.add(cr), e.Proj.projections.add(fr), e.Proj.projections.add(gr), e.Proj.projections.add(Er), e.Proj.projections.add(Rr), e.Proj.projections.add(Ur), e.Proj.projections.add(qr), e.Proj.projections.add(Qr), e.Proj.projections.add(ni), e.Proj.projections.add(si), e.Proj.projections.add(di), e.Proj.projections.add(hi), e.Proj.projections.add(bi), e.Proj.projections.add(wi), e.Proj.projections.add(Oi), e.Proj.projections.add(Mi), e.Proj.projections.add(Ri), e.Proj.projections.add(Hi), e.Proj.projections.add(qi), e.Proj.projections.add(sa), e.Proj.projections.add(da), e.Proj.projections.add(ga), e.Proj.projections.add(ba), e.Proj.projections.add(ka), e.Proj.projections.add(Ia), e.Proj.projections.add(qa);
4057
+ }
4058
+ //#endregion
4059
+ //#region node_modules/proj4/lib/index.js
4060
+ var Ya = /* @__PURE__ */ e({ default: () => Xa }), Xa = Object.assign(Ft, {
4061
+ defaultDatum: "WGS84",
4062
+ Proj: R,
4063
+ WGS84: new R("WGS84"),
4064
+ Point: H,
4065
+ toPoint: Dt,
4066
+ defs: M,
4067
+ nadgrid: rt,
4068
+ transform: jt,
4069
+ mgrs: Vt,
4070
+ version: "__VERSION__"
4071
+ });
4072
+ Ja(Xa);
4073
+ //#endregion
4074
+ export { Xa as n, Ya as t };