gis-leaflet-helper 3.1.0 → 3.1.1

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.
@@ -3,27 +3,8 @@ var _l = (i, r, o) => r in i ? pl(i, r, { enumerable: !0, configurable: !0, writ
3
3
  var vt = (i, r, o) => _l(i, typeof r != "symbol" ? r + "" : r, o);
4
4
  import * as ml from "gis-common";
5
5
  import { Color as Ko, CoordsUtil as Hn, Util as gl, ArrayUtil as xo, StringUtil as yl } from "gis-common";
6
- function vl(i, r) {
7
- for (var o = 0; o < r.length; o++) {
8
- const c = r[o];
9
- if (typeof c != "string" && !Array.isArray(c)) {
10
- for (const d in c)
11
- if (d !== "default" && !(d in i)) {
12
- const m = Object.getOwnPropertyDescriptor(c, d);
13
- m && Object.defineProperty(i, d, m.get ? m : {
14
- enumerable: !0,
15
- get: () => c[d]
16
- });
17
- }
18
- }
19
- }
20
- return Object.freeze(Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }));
21
- }
22
6
  var $s = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
23
- function Ml(i) {
24
- return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
25
- }
26
- function xl(i) {
7
+ function vl(i) {
27
8
  if (i.__esModule) return i;
28
9
  var r = i.default;
29
10
  if (typeof r == "function") {
@@ -91,7 +72,7 @@ function mh() {
91
72
  p ? y = arguments : (t.apply(l, arguments), setTimeout(F, s), p = !0);
92
73
  }, E;
93
74
  }
94
- function Z(t, s, l) {
75
+ function j(t, s, l) {
95
76
  var p = s[1], y = s[0], E = p - y;
96
77
  return t === p && l ? t : ((t - y) % E + E) % E + y;
97
78
  }
@@ -171,7 +152,7 @@ function mh() {
171
152
  },
172
153
  stamp: C,
173
154
  throttle: D,
174
- wrapNum: Z,
155
+ wrapNum: j,
175
156
  falseFn: R,
176
157
  formatNum: H,
177
158
  trim: et,
@@ -848,7 +829,7 @@ function mh() {
848
829
  // Returns a `LatLng` where lat and lng has been wrapped according to the
849
830
  // CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.
850
831
  wrapLatLng: function(t) {
851
- var s = this.wrapLng ? Z(t.lng, this.wrapLng, !0) : t.lng, l = this.wrapLat ? Z(t.lat, this.wrapLat, !0) : t.lat, p = t.alt;
832
+ var s = this.wrapLng ? j(t.lng, this.wrapLng, !0) : t.lng, l = this.wrapLat ? j(t.lat, this.wrapLat, !0) : t.lat, p = t.alt;
852
833
  return new Gt(l, s, p);
853
834
  },
854
835
  // @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
@@ -5320,8 +5301,8 @@ function mh() {
5320
5301
  },
5321
5302
  _wrapCoords: function(t) {
5322
5303
  var s = new Ct(
5323
- this._wrapX ? Z(t.x, this._wrapX) : t.x,
5324
- this._wrapY ? Z(t.y, this._wrapY) : t.y
5304
+ this._wrapX ? j(t.x, this._wrapX) : t.x,
5305
+ this._wrapY ? j(t.y, this._wrapY) : t.y
5325
5306
  );
5326
5307
  return s.z = t.z, s;
5327
5308
  },
@@ -6357,11 +6338,7 @@ function mh() {
6357
6338
  });
6358
6339
  }(da, da.exports)), da.exports;
6359
6340
  }
6360
- var G = mh();
6361
- const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
6362
- __proto__: null,
6363
- default: Ll
6364
- }, [G]);
6341
+ var Z = mh();
6365
6342
  (() => {
6366
6343
  var Vo, Ho;
6367
6344
  var i = Object.create, r = Object.defineProperty, o = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, d = Object.getPrototypeOf, m = Object.prototype.hasOwnProperty, _ = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports), M = (e, n, a, h) => {
@@ -6372,13 +6349,13 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
6372
6349
  this.__data__ = [], this.size = 0;
6373
6350
  }
6374
6351
  n.exports = a;
6375
- }), Z = _((e, n) => {
6352
+ }), j = _((e, n) => {
6376
6353
  function a(h, u) {
6377
6354
  return h === u || h !== h && u !== u;
6378
6355
  }
6379
6356
  n.exports = a;
6380
6357
  }), R = _((e, n) => {
6381
- var a = Z();
6358
+ var a = j();
6382
6359
  function h(u, f) {
6383
6360
  for (var g = u.length; g--; ) if (a(u[g][0], f)) return g;
6384
6361
  return -1;
@@ -6684,7 +6661,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
6684
6661
  }
6685
6662
  n.exports = h;
6686
6663
  }), mr = _((e, n) => {
6687
- var a = Di(), h = Z();
6664
+ var a = Di(), h = j();
6688
6665
  function u(f, g, v) {
6689
6666
  (v !== void 0 && !h(f[g], v) || v === void 0 && !(g in f)) && a(f, g, v);
6690
6667
  }
@@ -6831,10 +6808,10 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
6831
6808
  }), kr = _((e, n) => {
6832
6809
  var a = Me(), h = wr(), u = Oi(), f = "[object Arguments]", g = "[object Array]", v = "[object Boolean]", x = "[object Date]", w = "[object Error]", I = "[object Function]", S = "[object Map]", W = "[object Number]", J = "[object Object]", at = "[object RegExp]", lt = "[object Set]", _t = "[object String]", Rt = "[object WeakMap]", O = "[object ArrayBuffer]", z = "[object DataView]", q = "[object Float32Array]", Q = "[object Float64Array]", V = "[object Int8Array]", Y = "[object Int16Array]", b = "[object Int32Array]", k = "[object Uint8Array]", P = "[object Uint8ClampedArray]", B = "[object Uint16Array]", A = "[object Uint32Array]", T = {};
6833
6810
  T[q] = T[Q] = T[V] = T[Y] = T[b] = T[k] = T[P] = T[B] = T[A] = !0, T[f] = T[g] = T[O] = T[v] = T[z] = T[x] = T[w] = T[I] = T[S] = T[W] = T[J] = T[at] = T[lt] = T[_t] = T[Rt] = !1;
6834
- function j(N) {
6811
+ function G(N) {
6835
6812
  return u(N) && h(N.length) && !!T[a(N)];
6836
6813
  }
6837
- n.exports = j;
6814
+ n.exports = G;
6838
6815
  }), Sa = _((e, n) => {
6839
6816
  function a(h) {
6840
6817
  return function(u) {
@@ -6860,7 +6837,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
6860
6837
  }
6861
6838
  n.exports = a;
6862
6839
  }), Oa = _((e, n) => {
6863
- var a = Di(), h = Z(), u = Object.prototype, f = u.hasOwnProperty;
6840
+ var a = Di(), h = j(), u = Object.prototype, f = u.hasOwnProperty;
6864
6841
  function g(v, x, w) {
6865
6842
  var I = v[x];
6866
6843
  (!(f.call(v, x) && h(I, w)) || w === void 0 && !(x in v)) && a(v, x, w);
@@ -6937,8 +6914,8 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
6937
6914
  }
6938
6915
  var A = Y ? Y(k, P, q + "", O, z, b) : void 0, T = A === void 0;
6939
6916
  if (T) {
6940
- var j = x(P), N = !j && I(P), U = !j && !N && at(P);
6941
- A = P, j || N || U ? x(k) ? A = k : w(k) ? A = f(k) : N ? (T = !1, A = h(P, !0)) : U ? (T = !1, A = u(P, !0)) : A = [] : J(P) || v(P) ? (A = k, v(k) ? A = _t(k) : (!W(k) || S(k)) && (A = g(P))) : T = !1;
6917
+ var G = x(P), N = !G && I(P), U = !G && !N && at(P);
6918
+ A = P, G || N || U ? x(k) ? A = k : w(k) ? A = f(k) : N ? (T = !1, A = h(P, !0)) : U ? (T = !1, A = u(P, !0)) : A = [] : J(P) || v(P) ? (A = k, v(k) ? A = _t(k) : (!W(k) || S(k)) && (A = g(P))) : T = !1;
6942
6919
  }
6943
6920
  T && (b.set(P, A), V(A, P, Q, Y, b), b.delete(P)), a(O, q, A);
6944
6921
  }
@@ -7021,7 +6998,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7021
6998
  }
7022
6999
  n.exports = f;
7023
7000
  }), ja = _((e, n) => {
7024
- var a = Z(), h = vi(), u = Ar(), f = Nt();
7001
+ var a = j(), h = vi(), u = Ar(), f = Nt();
7025
7002
  function g(v, x, w) {
7026
7003
  if (!f(w)) return !1;
7027
7004
  var I = typeof x;
@@ -7149,7 +7126,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7149
7126
  (function Y(b, k, P, B, A) {
7150
7127
  for (; B > P; ) {
7151
7128
  if (B - P > 600) {
7152
- var T = B - P + 1, j = k - P + 1, N = Math.log(T), U = 0.5 * Math.exp(2 * N / 3), $ = 0.5 * Math.sqrt(N * U * (T - U) / T) * (j - T / 2 < 0 ? -1 : 1), K = Math.max(P, Math.floor(k - j * U / T + $)), st = Math.min(B, Math.floor(k + (T - j) * U / T + $));
7129
+ var T = B - P + 1, G = k - P + 1, N = Math.log(T), U = 0.5 * Math.exp(2 * N / 3), $ = 0.5 * Math.sqrt(N * U * (T - U) / T) * (G - T / 2 < 0 ? -1 : 1), K = Math.max(P, Math.floor(k - G * U / T + $)), st = Math.min(B, Math.floor(k + (T - G) * U / T + $));
7153
7130
  Y(b, k, K, st, A);
7154
7131
  }
7155
7132
  var ft = b[k], mt = P, xt = B;
@@ -7298,20 +7275,20 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7298
7275
  var A = Math.min(B + P - 1, q);
7299
7276
  Rt(O, B, A, k, this.compareMinY);
7300
7277
  for (var T = B; T <= A; T += k) {
7301
- var j = Math.min(T + k - 1, A);
7302
- V.children.push(this._build(O, T, j, Q - 1));
7278
+ var G = Math.min(T + k - 1, A);
7279
+ V.children.push(this._build(O, T, G, Q - 1));
7303
7280
  }
7304
7281
  }
7305
7282
  return v(V, this.toBBox), V;
7306
7283
  }, f.prototype._chooseSubtree = function(O, z, q, Q) {
7307
7284
  for (; Q.push(z), !z.leaf && Q.length - 1 !== q; ) {
7308
7285
  for (var V = 1 / 0, Y = 1 / 0, b = void 0, k = 0; k < z.children.length; k++) {
7309
- var P = z.children[k], B = W(P), A = (T = O, j = P, (Math.max(j.maxX, T.maxX) - Math.min(j.minX, T.minX)) * (Math.max(j.maxY, T.maxY) - Math.min(j.minY, T.minY)) - B);
7286
+ var P = z.children[k], B = W(P), A = (T = O, G = P, (Math.max(G.maxX, T.maxX) - Math.min(G.minX, T.minX)) * (Math.max(G.maxY, T.maxY) - Math.min(G.minY, T.minY)) - B);
7310
7287
  A < Y ? (Y = A, V = B < V ? B : V, b = P) : A === Y && B < V && (V = B, b = P);
7311
7288
  }
7312
7289
  z = b || z.children[0];
7313
7290
  }
7314
- var T, j;
7291
+ var T, G;
7315
7292
  return z;
7316
7293
  }, f.prototype._insert = function(O, z, q) {
7317
7294
  var Q = q ? O : this.toBBox(O), V = [], Y = this._chooseSubtree(Q, this.data, z, V);
@@ -7325,9 +7302,9 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7325
7302
  }, f.prototype._splitRoot = function(O, z) {
7326
7303
  this.data = _t([O, z]), this.data.height = O.height + 1, this.data.leaf = !1, v(this.data, this.toBBox);
7327
7304
  }, f.prototype._chooseSplitIndex = function(O, z, q) {
7328
- for (var Q, V, Y, b, k, P, B, A = 1 / 0, T = 1 / 0, j = z; j <= q - z; j++) {
7329
- var N = x(O, 0, j, this.toBBox), U = x(O, j, q, this.toBBox), $ = (V = N, Y = U, b = void 0, k = void 0, P = void 0, B = void 0, b = Math.max(V.minX, Y.minX), k = Math.max(V.minY, Y.minY), P = Math.min(V.maxX, Y.maxX), B = Math.min(V.maxY, Y.maxY), Math.max(0, P - b) * Math.max(0, B - k)), K = W(N) + W(U);
7330
- $ < A ? (A = $, Q = j, T = K < T ? K : T) : $ === A && K < T && (T = K, Q = j);
7305
+ for (var Q, V, Y, b, k, P, B, A = 1 / 0, T = 1 / 0, G = z; G <= q - z; G++) {
7306
+ var N = x(O, 0, G, this.toBBox), U = x(O, G, q, this.toBBox), $ = (V = N, Y = U, b = void 0, k = void 0, P = void 0, B = void 0, b = Math.max(V.minX, Y.minX), k = Math.max(V.minY, Y.minY), P = Math.min(V.maxX, Y.maxX), B = Math.min(V.maxY, Y.maxY), Math.max(0, P - b) * Math.max(0, B - k)), K = W(N) + W(U);
7307
+ $ < A ? (A = $, Q = G, T = K < T ? K : T) : $ === A && K < T && (T = K, Q = G);
7331
7308
  }
7332
7309
  return Q || q - z;
7333
7310
  }, f.prototype._chooseSplitAxis = function(O, z, q) {
@@ -7354,8 +7331,8 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7354
7331
  Object.defineProperty(e, "__esModule", { value: !0 }), e.earthRadius = 63710088e-1, e.factors = { centimeters: e.earthRadius * 100, centimetres: e.earthRadius * 100, degrees: e.earthRadius / 111325, feet: e.earthRadius * 3.28084, inches: e.earthRadius * 39.37, kilometers: e.earthRadius / 1e3, kilometres: e.earthRadius / 1e3, meters: e.earthRadius, metres: e.earthRadius, miles: e.earthRadius / 1609.344, millimeters: e.earthRadius * 1e3, millimetres: e.earthRadius * 1e3, nauticalmiles: e.earthRadius / 1852, radians: 1, yards: e.earthRadius * 1.0936 }, e.unitsFactors = { centimeters: 100, centimetres: 100, degrees: 1 / 111325, feet: 3.28084, inches: 39.37, kilometers: 1 / 1e3, kilometres: 1 / 1e3, meters: 1, metres: 1, miles: 1 / 1609.344, millimeters: 1e3, millimetres: 1e3, nauticalmiles: 1 / 1852, radians: 1 / e.earthRadius, yards: 1.0936133 }, e.areaFactors = { acres: 247105e-9, centimeters: 1e4, centimetres: 1e4, feet: 10.763910417, hectares: 1e-4, inches: 1550.003100006, kilometers: 1e-6, kilometres: 1e-6, meters: 1, metres: 1, miles: 386e-9, millimeters: 1e6, millimetres: 1e6, yards: 1.195990046 };
7355
7332
  function n(B, A, T) {
7356
7333
  T === void 0 && (T = {});
7357
- var j = { type: "Feature" };
7358
- return (T.id === 0 || T.id) && (j.id = T.id), T.bbox && (j.bbox = T.bbox), j.properties = A || {}, j.geometry = B, j;
7334
+ var G = { type: "Feature" };
7335
+ return (T.id === 0 || T.id) && (G.id = T.id), T.bbox && (G.bbox = T.bbox), G.properties = A || {}, G.geometry = B, G;
7359
7336
  }
7360
7337
  e.feature = n;
7361
7338
  function a(B, A, T) {
@@ -7382,20 +7359,20 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7382
7359
  if (!Array.isArray(B)) throw new Error("coordinates must be an Array");
7383
7360
  if (B.length < 2) throw new Error("coordinates must be at least 2 numbers long");
7384
7361
  if (!Y(B[0]) || !Y(B[1])) throw new Error("coordinates must contain numbers");
7385
- var j = { type: "Point", coordinates: B };
7386
- return n(j, A, T);
7362
+ var G = { type: "Point", coordinates: B };
7363
+ return n(G, A, T);
7387
7364
  }
7388
7365
  e.point = h;
7389
7366
  function u(B, A, T) {
7390
- return T === void 0 && (T = {}), w(B.map(function(j) {
7391
- return h(j, A);
7367
+ return T === void 0 && (T = {}), w(B.map(function(G) {
7368
+ return h(G, A);
7392
7369
  }), T);
7393
7370
  }
7394
7371
  e.points = u;
7395
7372
  function f(B, A, T) {
7396
7373
  T === void 0 && (T = {});
7397
- for (var j = 0, N = B; j < N.length; j++) {
7398
- var U = N[j];
7374
+ for (var G = 0, N = B; G < N.length; G++) {
7375
+ var U = N[G];
7399
7376
  if (U.length < 4) throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");
7400
7377
  for (var $ = 0; $ < U[U.length - 1].length; $++) if (U[U.length - 1][$] !== U[0][$]) throw new Error("First and last Position are not equivalent.");
7401
7378
  }
@@ -7404,20 +7381,20 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7404
7381
  }
7405
7382
  e.polygon = f;
7406
7383
  function g(B, A, T) {
7407
- return T === void 0 && (T = {}), w(B.map(function(j) {
7408
- return f(j, A);
7384
+ return T === void 0 && (T = {}), w(B.map(function(G) {
7385
+ return f(G, A);
7409
7386
  }), T);
7410
7387
  }
7411
7388
  e.polygons = g;
7412
7389
  function v(B, A, T) {
7413
7390
  if (T === void 0 && (T = {}), B.length < 2) throw new Error("coordinates must be an array of two or more positions");
7414
- var j = { type: "LineString", coordinates: B };
7415
- return n(j, A, T);
7391
+ var G = { type: "LineString", coordinates: B };
7392
+ return n(G, A, T);
7416
7393
  }
7417
7394
  e.lineString = v;
7418
7395
  function x(B, A, T) {
7419
- return T === void 0 && (T = {}), w(B.map(function(j) {
7420
- return v(j, A);
7396
+ return T === void 0 && (T = {}), w(B.map(function(G) {
7397
+ return v(G, A);
7421
7398
  }), T);
7422
7399
  }
7423
7400
  e.lineStrings = x;
@@ -7429,26 +7406,26 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7429
7406
  e.featureCollection = w;
7430
7407
  function I(B, A, T) {
7431
7408
  T === void 0 && (T = {});
7432
- var j = { type: "MultiLineString", coordinates: B };
7433
- return n(j, A, T);
7409
+ var G = { type: "MultiLineString", coordinates: B };
7410
+ return n(G, A, T);
7434
7411
  }
7435
7412
  e.multiLineString = I;
7436
7413
  function S(B, A, T) {
7437
7414
  T === void 0 && (T = {});
7438
- var j = { type: "MultiPoint", coordinates: B };
7439
- return n(j, A, T);
7415
+ var G = { type: "MultiPoint", coordinates: B };
7416
+ return n(G, A, T);
7440
7417
  }
7441
7418
  e.multiPoint = S;
7442
7419
  function W(B, A, T) {
7443
7420
  T === void 0 && (T = {});
7444
- var j = { type: "MultiPolygon", coordinates: B };
7445
- return n(j, A, T);
7421
+ var G = { type: "MultiPolygon", coordinates: B };
7422
+ return n(G, A, T);
7446
7423
  }
7447
7424
  e.multiPolygon = W;
7448
7425
  function J(B, A, T) {
7449
7426
  T === void 0 && (T = {});
7450
- var j = { type: "GeometryCollection", geometries: B };
7451
- return n(j, A, T);
7427
+ var G = { type: "GeometryCollection", geometries: B };
7428
+ return n(G, A, T);
7452
7429
  }
7453
7430
  e.geometryCollection = J;
7454
7431
  function at(B, A) {
@@ -7497,11 +7474,11 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7497
7474
  e.convertLength = Q;
7498
7475
  function V(B, A, T) {
7499
7476
  if (A === void 0 && (A = "meters"), T === void 0 && (T = "kilometers"), !(B >= 0)) throw new Error("area must be a positive number");
7500
- var j = e.areaFactors[A];
7501
- if (!j) throw new Error("invalid original units");
7477
+ var G = e.areaFactors[A];
7478
+ if (!G) throw new Error("invalid original units");
7502
7479
  var N = e.areaFactors[T];
7503
7480
  if (!N) throw new Error("invalid final units");
7504
- return B / j * N;
7481
+ return B / G * N;
7505
7482
  }
7506
7483
  e.convertArea = V;
7507
7484
  function Y(B) {
@@ -7530,7 +7507,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7530
7507
  Object.defineProperty(e, "__esModule", { value: !0 });
7531
7508
  var n = $t();
7532
7509
  function a(z, q, Q) {
7533
- if (z !== null) for (var V, Y, b, k, P, B, A, T = 0, j = 0, N, U = z.type, $ = U === "FeatureCollection", K = U === "Feature", st = $ ? z.features.length : 1, ft = 0; ft < st; ft++) {
7510
+ if (z !== null) for (var V, Y, b, k, P, B, A, T = 0, G = 0, N, U = z.type, $ = U === "FeatureCollection", K = U === "Feature", st = $ ? z.features.length : 1, ft = 0; ft < st; ft++) {
7534
7511
  A = $ ? z.features[ft].geometry : K ? z.geometry : z, N = A ? A.type === "GeometryCollection" : !1, P = N ? A.geometries.length : 1;
7535
7512
  for (var mt = 0; mt < P; mt++) {
7536
7513
  var xt = 0, jt = 0;
@@ -7541,14 +7518,14 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7541
7518
  case null:
7542
7519
  break;
7543
7520
  case "Point":
7544
- if (q(B, j, ft, xt, jt) === !1) return !1;
7545
- j++, xt++;
7521
+ if (q(B, G, ft, xt, jt) === !1) return !1;
7522
+ G++, xt++;
7546
7523
  break;
7547
7524
  case "LineString":
7548
7525
  case "MultiPoint":
7549
7526
  for (V = 0; V < B.length; V++) {
7550
- if (q(B[V], j, ft, xt, jt) === !1) return !1;
7551
- j++, Vt === "MultiPoint" && xt++;
7527
+ if (q(B[V], G, ft, xt, jt) === !1) return !1;
7528
+ G++, Vt === "MultiPoint" && xt++;
7552
7529
  }
7553
7530
  Vt === "LineString" && xt++;
7554
7531
  break;
@@ -7556,8 +7533,8 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7556
7533
  case "MultiLineString":
7557
7534
  for (V = 0; V < B.length; V++) {
7558
7535
  for (Y = 0; Y < B[V].length - T; Y++) {
7559
- if (q(B[V][Y], j, ft, xt, jt) === !1) return !1;
7560
- j++;
7536
+ if (q(B[V][Y], G, ft, xt, jt) === !1) return !1;
7537
+ G++;
7561
7538
  }
7562
7539
  Vt === "MultiLineString" && xt++, Vt === "Polygon" && jt++;
7563
7540
  }
@@ -7567,8 +7544,8 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7567
7544
  for (V = 0; V < B.length; V++) {
7568
7545
  for (jt = 0, Y = 0; Y < B[V].length; Y++) {
7569
7546
  for (b = 0; b < B[V][Y].length - T; b++) {
7570
- if (q(B[V][Y][b], j, ft, xt, jt) === !1) return !1;
7571
- j++;
7547
+ if (q(B[V][Y][b], G, ft, xt, jt) === !1) return !1;
7548
+ G++;
7572
7549
  }
7573
7550
  jt++;
7574
7551
  }
@@ -7625,11 +7602,11 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7625
7602
  }), q;
7626
7603
  }
7627
7604
  function w(z, q) {
7628
- var Q, V, Y, b, k, P, B, A, T, j, N = 0, U = z.type === "FeatureCollection", $ = z.type === "Feature", K = U ? z.features.length : 1;
7605
+ var Q, V, Y, b, k, P, B, A, T, G, N = 0, U = z.type === "FeatureCollection", $ = z.type === "Feature", K = U ? z.features.length : 1;
7629
7606
  for (Q = 0; Q < K; Q++) {
7630
- for (P = U ? z.features[Q].geometry : $ ? z.geometry : z, A = U ? z.features[Q].properties : $ ? z.properties : {}, T = U ? z.features[Q].bbox : $ ? z.bbox : void 0, j = U ? z.features[Q].id : $ ? z.id : void 0, B = P ? P.type === "GeometryCollection" : !1, k = B ? P.geometries.length : 1, Y = 0; Y < k; Y++) {
7607
+ for (P = U ? z.features[Q].geometry : $ ? z.geometry : z, A = U ? z.features[Q].properties : $ ? z.properties : {}, T = U ? z.features[Q].bbox : $ ? z.bbox : void 0, G = U ? z.features[Q].id : $ ? z.id : void 0, B = P ? P.type === "GeometryCollection" : !1, k = B ? P.geometries.length : 1, Y = 0; Y < k; Y++) {
7631
7608
  if (b = B ? P.geometries[Y] : P, b === null) {
7632
- if (q(null, N, A, T, j) === !1) return !1;
7609
+ if (q(null, N, A, T, G) === !1) return !1;
7633
7610
  continue;
7634
7611
  }
7635
7612
  switch (b.type) {
@@ -7639,11 +7616,11 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7639
7616
  case "Polygon":
7640
7617
  case "MultiLineString":
7641
7618
  case "MultiPolygon": {
7642
- if (q(b, N, A, T, j) === !1) return !1;
7619
+ if (q(b, N, A, T, G) === !1) return !1;
7643
7620
  break;
7644
7621
  }
7645
7622
  case "GeometryCollection": {
7646
- for (V = 0; V < b.geometries.length; V++) if (q(b.geometries[V], N, A, T, j) === !1) return !1;
7623
+ for (V = 0; V < b.geometries.length; V++) if (q(b.geometries[V], N, A, T, G) === !1) return !1;
7647
7624
  break;
7648
7625
  }
7649
7626
  default:
@@ -7682,8 +7659,8 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7682
7659
  break;
7683
7660
  }
7684
7661
  for (var A = 0; A < Q.coordinates.length; A++) {
7685
- var T = Q.coordinates[A], j = { type: B, coordinates: T };
7686
- if (q(n.feature(j, Y), V, A) === !1) return !1;
7662
+ var T = Q.coordinates[A], G = { type: B, coordinates: T };
7663
+ if (q(n.feature(G, Y), V, A) === !1) return !1;
7687
7664
  }
7688
7665
  });
7689
7666
  }
@@ -7700,14 +7677,14 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
7700
7677
  var k = Q.geometry.type;
7701
7678
  if (!(k === "Point" || k === "MultiPoint")) {
7702
7679
  var P, B = 0, A = 0, T = 0;
7703
- if (a(Q, function(j, N, U, $, K) {
7680
+ if (a(Q, function(G, N, U, $, K) {
7704
7681
  if (P === void 0 || V > B || $ > A || K > T) {
7705
- P = j, B = V, A = $, T = K, b = 0;
7682
+ P = G, B = V, A = $, T = K, b = 0;
7706
7683
  return;
7707
7684
  }
7708
- var st = n.lineString([P, j], Q.properties);
7685
+ var st = n.lineString([P, G], Q.properties);
7709
7686
  if (q(st, V, Y, K, b) === !1) return !1;
7710
- b++, P = j;
7687
+ b++, P = G;
7711
7688
  }) === !1) return !1;
7712
7689
  }
7713
7690
  }
@@ -8172,7 +8149,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
8172
8149
  let st = V * P * (k + V / 4 * (B * (-1 + 2 * k * k) - V / 6 * k * (-3 + 4 * P * P) * (-3 + 4 * k * k)));
8173
8150
  b = Y, Y = w / (f * Q) + st;
8174
8151
  }
8175
- let A = _t * P - lt * B * J, T = Math.atan2(_t * B + lt * P * J, (1 - g) * Math.sqrt(O * O + A * A)), j = Math.atan2(P * W, lt * B - _t * P * J), N = g / 16 * z * (4 + g * (4 - 3 * z)), U = j - (1 - N) * g * O * (Y + N * P * (k + N * B * (-1 + 2 * k * k))), $ = v + U * 180 / I, K = T * 180 / I;
8152
+ let A = _t * P - lt * B * J, T = Math.atan2(_t * B + lt * P * J, (1 - g) * Math.sqrt(O * O + A * A)), G = Math.atan2(P * W, lt * B - _t * P * J), N = g / 16 * z * (4 + g * (4 - 3 * z)), U = G - (1 - N) * g * O * (Y + N * P * (k + N * B * (-1 + 2 * k * k))), $ = v + U * 180 / I, K = T * 180 / I;
8176
8153
  return L.latLng($, K);
8177
8154
  }
8178
8155
  function Vr(e, n, a, h, u = !0) {
@@ -9627,7 +9604,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9627
9604
  function Us(e) {
9628
9605
  var n, a, h, u = O.prototype = { constructor: O, toString: null, valueOf: null }, f = new O(1), g = 20, v = 4, x = -7, w = 21, I = -1e7, S = 1e7, W = !1, J = 1, at = 0, lt = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: " ", suffix: "" }, _t = "0123456789abcdefghijklmnopqrstuvwxyz", Rt = !0;
9629
9606
  function O(b, k) {
9630
- var P, B, A, T, j, N, U, $, K = this;
9607
+ var P, B, A, T, G, N, U, $, K = this;
9631
9608
  if (!(K instanceof O)) return new O(b, k);
9632
9609
  if (k == null) {
9633
9610
  if (b && b._isBigNumber === !0) {
@@ -9636,7 +9613,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9636
9613
  }
9637
9614
  if ((N = typeof b == "number") && b * 0 == 0) {
9638
9615
  if (K.s = 1 / b < 0 ? (b = -b, -1) : 1, b === ~~b) {
9639
- for (T = 0, j = b; j >= 10; j /= 10, T++) ;
9616
+ for (T = 0, G = b; G >= 10; G /= 10, T++) ;
9640
9617
  T > S ? K.c = K.e = null : (K.e = T, K.c = [b]);
9641
9618
  return;
9642
9619
  }
@@ -9645,39 +9622,39 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9645
9622
  if (!pn.test($ = String(b))) return h(K, $, N);
9646
9623
  K.s = $.charCodeAt(0) == 45 ? ($ = $.slice(1), -1) : 1;
9647
9624
  }
9648
- (T = $.indexOf(".")) > -1 && ($ = $.replace(".", "")), (j = $.search(/e/i)) > 0 ? (T < 0 && (T = j), T += +$.slice(j + 1), $ = $.substring(0, j)) : T < 0 && (T = $.length);
9625
+ (T = $.indexOf(".")) > -1 && ($ = $.replace(".", "")), (G = $.search(/e/i)) > 0 ? (T < 0 && (T = G), T += +$.slice(G + 1), $ = $.substring(0, G)) : T < 0 && (T = $.length);
9649
9626
  } else {
9650
9627
  if (Xt(k, 2, _t.length, "Base"), k == 10 && Rt) return K = new O(b), V(K, g + K.e + 1, v);
9651
9628
  if ($ = String(b), N = typeof b == "number") {
9652
9629
  if (b * 0 != 0) return h(K, $, N, k);
9653
9630
  if (K.s = 1 / b < 0 ? ($ = $.slice(1), -1) : 1, O.DEBUG && $.replace(/^0\.0*|\./, "").length > 15) throw Error(Zs + b);
9654
9631
  } else K.s = $.charCodeAt(0) === 45 ? ($ = $.slice(1), -1) : 1;
9655
- for (P = _t.slice(0, k), T = j = 0, U = $.length; j < U; j++) if (P.indexOf(B = $.charAt(j)) < 0) {
9632
+ for (P = _t.slice(0, k), T = G = 0, U = $.length; G < U; G++) if (P.indexOf(B = $.charAt(G)) < 0) {
9656
9633
  if (B == ".") {
9657
- if (j > T) {
9634
+ if (G > T) {
9658
9635
  T = U;
9659
9636
  continue;
9660
9637
  }
9661
9638
  } else if (!A && ($ == $.toUpperCase() && ($ = $.toLowerCase()) || $ == $.toLowerCase() && ($ = $.toUpperCase()))) {
9662
- A = !0, j = -1, T = 0;
9639
+ A = !0, G = -1, T = 0;
9663
9640
  continue;
9664
9641
  }
9665
9642
  return h(K, String(b), N, k);
9666
9643
  }
9667
9644
  N = !1, $ = a($, k, 10, K.s), (T = $.indexOf(".")) > -1 ? $ = $.replace(".", "") : T = $.length;
9668
9645
  }
9669
- for (j = 0; $.charCodeAt(j) === 48; j++) ;
9646
+ for (G = 0; $.charCodeAt(G) === 48; G++) ;
9670
9647
  for (U = $.length; $.charCodeAt(--U) === 48; ) ;
9671
- if ($ = $.slice(j, ++U)) {
9672
- if (U -= j, N && O.DEBUG && U > 15 && (b > zn || b !== me(b))) throw Error(Zs + K.s * b);
9673
- if ((T = T - j - 1) > S) K.c = K.e = null;
9648
+ if ($ = $.slice(G, ++U)) {
9649
+ if (U -= G, N && O.DEBUG && U > 15 && (b > zn || b !== me(b))) throw Error(Zs + K.s * b);
9650
+ if ((T = T - G - 1) > S) K.c = K.e = null;
9674
9651
  else if (T < I) K.c = [K.e = 0];
9675
9652
  else {
9676
- if (K.e = T, K.c = [], j = (T + 1) % wt, T < 0 && (j += wt), j < U) {
9677
- for (j && K.c.push(+$.slice(0, j)), U -= wt; j < U; ) K.c.push(+$.slice(j, j += wt));
9678
- j = wt - ($ = $.slice(j)).length;
9679
- } else j -= U;
9680
- for (; j--; $ += "0") ;
9653
+ if (K.e = T, K.c = [], G = (T + 1) % wt, T < 0 && (G += wt), G < U) {
9654
+ for (G && K.c.push(+$.slice(0, G)), U -= wt; G < U; ) K.c.push(+$.slice(G, G += wt));
9655
+ G = wt - ($ = $.slice(G)).length;
9656
+ } else G -= U;
9657
+ for (; G--; $ += "0") ;
9681
9658
  K.c.push(+$);
9682
9659
  }
9683
9660
  } else K.c = [K.e = 0];
@@ -9726,16 +9703,16 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9726
9703
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
9727
9704
  };
9728
9705
  return function(P) {
9729
- var B, A, T, j, N, U = 0, $ = [], K = new O(f);
9730
- if (P == null ? P = g : Xt(P, 0, he), j = js(P / wt), W) if (crypto.getRandomValues) {
9731
- for (B = crypto.getRandomValues(new Uint32Array(j *= 2)); U < j; ) N = B[U] * 131072 + (B[U + 1] >>> 11), N >= 9e15 ? (A = crypto.getRandomValues(new Uint32Array(2)), B[U] = A[0], B[U + 1] = A[1]) : ($.push(N % 1e14), U += 2);
9732
- U = j / 2;
9706
+ var B, A, T, G, N, U = 0, $ = [], K = new O(f);
9707
+ if (P == null ? P = g : Xt(P, 0, he), G = js(P / wt), W) if (crypto.getRandomValues) {
9708
+ for (B = crypto.getRandomValues(new Uint32Array(G *= 2)); U < G; ) N = B[U] * 131072 + (B[U + 1] >>> 11), N >= 9e15 ? (A = crypto.getRandomValues(new Uint32Array(2)), B[U] = A[0], B[U + 1] = A[1]) : ($.push(N % 1e14), U += 2);
9709
+ U = G / 2;
9733
9710
  } else if (crypto.randomBytes) {
9734
- for (B = crypto.randomBytes(j *= 7); U < j; ) N = (B[U] & 31) * 281474976710656 + B[U + 1] * 1099511627776 + B[U + 2] * 4294967296 + B[U + 3] * 16777216 + (B[U + 4] << 16) + (B[U + 5] << 8) + B[U + 6], N >= 9e15 ? crypto.randomBytes(7).copy(B, U) : ($.push(N % 1e14), U += 7);
9735
- U = j / 7;
9711
+ for (B = crypto.randomBytes(G *= 7); U < G; ) N = (B[U] & 31) * 281474976710656 + B[U + 1] * 1099511627776 + B[U + 2] * 4294967296 + B[U + 3] * 16777216 + (B[U + 4] << 16) + (B[U + 5] << 8) + B[U + 6], N >= 9e15 ? crypto.randomBytes(7).copy(B, U) : ($.push(N % 1e14), U += 7);
9712
+ U = G / 7;
9736
9713
  } else throw W = !1, Error(ue + "crypto unavailable");
9737
- if (!W) for (; U < j; ) N = k(), N < 9e15 && ($[U++] = N % 1e14);
9738
- for (j = $[--U], P %= wt, j && P && (N = Nn[wt - P], $[U] = me(j / N) * N); $[U] === 0; $.pop(), U--) ;
9714
+ if (!W) for (; U < G; ) N = k(), N < 9e15 && ($[U++] = N % 1e14);
9715
+ for (G = $[--U], P %= wt, G && P && (N = Nn[wt - P], $[U] = me(G / N) * N); $[U] === 0; $.pop(), U--) ;
9739
9716
  if (U < 0) $ = [T = 0];
9740
9717
  else {
9741
9718
  for (T = -1; $[0] === 0; $.splice(0, 1), T -= wt) ;
@@ -9750,15 +9727,15 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9750
9727
  }, a = /* @__PURE__ */ function() {
9751
9728
  var b = "0123456789";
9752
9729
  function k(P, B, A, T) {
9753
- for (var j, N = [0], U, $ = 0, K = P.length; $ < K; ) {
9730
+ for (var G, N = [0], U, $ = 0, K = P.length; $ < K; ) {
9754
9731
  for (U = N.length; U--; N[U] *= B) ;
9755
- for (N[0] += T.indexOf(P.charAt($++)), j = 0; j < N.length; j++) N[j] > A - 1 && (N[j + 1] == null && (N[j + 1] = 0), N[j + 1] += N[j] / A | 0, N[j] %= A);
9732
+ for (N[0] += T.indexOf(P.charAt($++)), G = 0; G < N.length; G++) N[G] > A - 1 && (N[G + 1] == null && (N[G + 1] = 0), N[G + 1] += N[G] / A | 0, N[G] %= A);
9756
9733
  }
9757
9734
  return N.reverse();
9758
9735
  }
9759
- return function(P, B, A, T, j) {
9736
+ return function(P, B, A, T, G) {
9760
9737
  var N, U, $, K, st, ft, mt, xt, jt = P.indexOf("."), Vt = g, zt = v;
9761
- for (jt >= 0 && (K = at, at = 0, P = P.replace(".", ""), xt = new O(B), ft = xt.pow(P.length - jt), at = K, xt.c = k(l(Ae(ft.c), ft.e, "0"), 10, A, b), xt.e = xt.c.length), mt = k(P, B, A, j ? (N = _t, b) : (N = b, _t)), $ = K = mt.length; mt[--K] == 0; mt.pop()) ;
9738
+ for (jt >= 0 && (K = at, at = 0, P = P.replace(".", ""), xt = new O(B), ft = xt.pow(P.length - jt), at = K, xt.c = k(l(Ae(ft.c), ft.e, "0"), 10, A, b), xt.e = xt.c.length), mt = k(P, B, A, G ? (N = _t, b) : (N = b, _t)), $ = K = mt.length; mt[--K] == 0; mt.pop()) ;
9762
9739
  if (!mt[0]) return N.charAt(0);
9763
9740
  if (jt < 0 ? --$ : (ft.c = mt, ft.e = $, ft.s = T, ft = n(ft, xt, Vt, zt, A), mt = ft.c, st = ft.r, $ = ft.e), U = $ + Vt + 1, jt = mt[U], K = A / 2, st = st || U < 0 || mt[U + 1] != null, st = zt < 4 ? (jt != null || st) && (zt == 0 || zt == (ft.s < 0 ? 3 : 2)) : jt > K || jt == K && (zt == 4 || st || zt == 6 && mt[U - 1] & 1 || zt == (ft.s < 0 ? 8 : 7)), U < 1 || !mt[0]) P = st ? l(N.charAt(1), -Vt, N.charAt(0)) : N.charAt(0);
9764
9741
  else {
@@ -9771,24 +9748,24 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9771
9748
  };
9772
9749
  }(), n = /* @__PURE__ */ function() {
9773
9750
  function b(B, A, T) {
9774
- var j, N, U, $, K = 0, st = B.length, ft = A % ri, mt = A / ri | 0;
9775
- for (B = B.slice(); st--; ) U = B[st] % ri, $ = B[st] / ri | 0, j = mt * U + $ * ft, N = ft * U + j % ri * ri + K, K = (N / T | 0) + (j / ri | 0) + mt * $, B[st] = N % T;
9751
+ var G, N, U, $, K = 0, st = B.length, ft = A % ri, mt = A / ri | 0;
9752
+ for (B = B.slice(); st--; ) U = B[st] % ri, $ = B[st] / ri | 0, G = mt * U + $ * ft, N = ft * U + G % ri * ri + K, K = (N / T | 0) + (G / ri | 0) + mt * $, B[st] = N % T;
9776
9753
  return K && (B = [K].concat(B)), B;
9777
9754
  }
9778
- function k(B, A, T, j) {
9755
+ function k(B, A, T, G) {
9779
9756
  var N, U;
9780
- if (T != j) U = T > j ? 1 : -1;
9757
+ if (T != G) U = T > G ? 1 : -1;
9781
9758
  else for (N = U = 0; N < T; N++) if (B[N] != A[N]) {
9782
9759
  U = B[N] > A[N] ? 1 : -1;
9783
9760
  break;
9784
9761
  }
9785
9762
  return U;
9786
9763
  }
9787
- function P(B, A, T, j) {
9788
- for (var N = 0; T--; ) B[T] -= N, N = B[T] < A[T] ? 1 : 0, B[T] = N * j + B[T] - A[T];
9764
+ function P(B, A, T, G) {
9765
+ for (var N = 0; T--; ) B[T] -= N, N = B[T] < A[T] ? 1 : 0, B[T] = N * G + B[T] - A[T];
9789
9766
  for (; !B[0] && B.length > 1; B.splice(0, 1)) ;
9790
9767
  }
9791
- return function(B, A, T, j, N) {
9768
+ return function(B, A, T, G, N) {
9792
9769
  var U, $, K, st, ft, mt, xt, jt, Vt, zt, Ht, Ee, ca, vo, Mo, pi, Hs, Ye = B.s == A.s ? 1 : -1, Te = B.c, ae = A.c;
9793
9770
  if (!Te || !Te[0] || !ae || !ae[0]) return new O(!B.s || !A.s || (Te ? ae && Te[0] == ae[0] : !ae) ? NaN : Te && Te[0] == 0 || !ae ? Ye * 0 : Ye / 0);
9794
9771
  for (jt = new O(Ye), Vt = jt.c = [], $ = B.e - A.e, Ye = T + $ + 1, N || (N = Fe, $ = ze(B.e / wt) - ze(A.e / wt), Ye = Ye / wt | 0), K = 0; ae[K] == (Te[K] || 0); K++) ;
@@ -9808,19 +9785,19 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9808
9785
  }
9809
9786
  if (N == Fe) {
9810
9787
  for (K = 1, Ye = Vt[0]; Ye >= 10; Ye /= 10, K++) ;
9811
- V(jt, T + (jt.e = K + $ * wt - 1) + 1, j, st);
9788
+ V(jt, T + (jt.e = K + $ * wt - 1) + 1, G, st);
9812
9789
  } else jt.e = $, jt.r = +st;
9813
9790
  return jt;
9814
9791
  };
9815
9792
  }();
9816
9793
  function z(b, k, P, B) {
9817
- var A, T, j, N, U;
9794
+ var A, T, G, N, U;
9818
9795
  if (P == null ? P = v : Xt(P, 0, 8), !b.c) return b.toString();
9819
- if (A = b.c[0], j = b.e, k == null) U = Ae(b.c), U = B == 1 || B == 2 && (j <= x || j >= w) ? s(U, j) : l(U, j, "0");
9796
+ if (A = b.c[0], G = b.e, k == null) U = Ae(b.c), U = B == 1 || B == 2 && (G <= x || G >= w) ? s(U, G) : l(U, G, "0");
9820
9797
  else if (b = V(new O(b), k, P), T = b.e, U = Ae(b.c), N = U.length, B == 1 || B == 2 && (k <= T || T <= x)) {
9821
9798
  for (; N < k; U += "0", N++) ;
9822
9799
  U = s(U, T);
9823
- } else if (k -= j, U = l(U, T, "0"), T + 1 > N) {
9800
+ } else if (k -= G, U = l(U, T, "0"), T + 1 > N) {
9824
9801
  if (--k > 0) for (U += "."; k--; U += "0") ;
9825
9802
  } else if (k += T - N, k > 0) for (T + 1 == N && (U += "."); k--; U += "0") ;
9826
9803
  return b.s < 0 && A ? "-" + U : U;
@@ -9836,37 +9813,37 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9836
9813
  }
9837
9814
  h = /* @__PURE__ */ function() {
9838
9815
  var b = /^(-?)0([xbo])(?=\w[\w.]*$)/i, k = /^([^.]+)\.$/, P = /^\.([^.]+)$/, B = /^-?(Infinity|NaN)$/, A = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
9839
- return function(T, j, N, U) {
9840
- var $, K = N ? j : j.replace(A, "");
9816
+ return function(T, G, N, U) {
9817
+ var $, K = N ? G : G.replace(A, "");
9841
9818
  if (B.test(K)) T.s = isNaN(K) ? null : K < 0 ? -1 : 1;
9842
9819
  else {
9843
9820
  if (!N && (K = K.replace(b, function(st, ft, mt) {
9844
9821
  return $ = (mt = mt.toLowerCase()) == "x" ? 16 : mt == "b" ? 2 : 8, !U || U == $ ? ft : st;
9845
- }), U && ($ = U, K = K.replace(k, "$1").replace(P, "0.$1")), j != K)) return new O(K, $);
9846
- if (O.DEBUG) throw Error(ue + "Not a" + (U ? " base " + U : "") + " number: " + j);
9822
+ }), U && ($ = U, K = K.replace(k, "$1").replace(P, "0.$1")), G != K)) return new O(K, $);
9823
+ if (O.DEBUG) throw Error(ue + "Not a" + (U ? " base " + U : "") + " number: " + G);
9847
9824
  T.s = null;
9848
9825
  }
9849
9826
  T.c = T.e = null;
9850
9827
  };
9851
9828
  }();
9852
9829
  function V(b, k, P, B) {
9853
- var A, T, j, N, U, $, K, st = b.c, ft = Nn;
9830
+ var A, T, G, N, U, $, K, st = b.c, ft = Nn;
9854
9831
  if (st) {
9855
9832
  t: {
9856
9833
  for (A = 1, N = st[0]; N >= 10; N /= 10, A++) ;
9857
- if (T = k - A, T < 0) T += wt, j = k, U = st[$ = 0], K = me(U / ft[A - j - 1] % 10);
9834
+ if (T = k - A, T < 0) T += wt, G = k, U = st[$ = 0], K = me(U / ft[A - G - 1] % 10);
9858
9835
  else if ($ = js((T + 1) / wt), $ >= st.length) if (B) {
9859
9836
  for (; st.length <= $; st.push(0)) ;
9860
- U = K = 0, A = 1, T %= wt, j = T - wt + 1;
9837
+ U = K = 0, A = 1, T %= wt, G = T - wt + 1;
9861
9838
  } else break t;
9862
9839
  else {
9863
9840
  for (U = N = st[$], A = 1; N >= 10; N /= 10, A++) ;
9864
- T %= wt, j = T - wt + A, K = j < 0 ? 0 : me(U / ft[A - j - 1] % 10);
9841
+ T %= wt, G = T - wt + A, K = G < 0 ? 0 : me(U / ft[A - G - 1] % 10);
9865
9842
  }
9866
- if (B = B || k < 0 || st[$ + 1] != null || (j < 0 ? U : U % ft[A - j - 1]), B = P < 4 ? (K || B) && (P == 0 || P == (b.s < 0 ? 3 : 2)) : K > 5 || K == 5 && (P == 4 || B || P == 6 && (T > 0 ? j > 0 ? U / ft[A - j] : 0 : st[$ - 1]) % 10 & 1 || P == (b.s < 0 ? 8 : 7)), k < 1 || !st[0]) return st.length = 0, B ? (k -= b.e + 1, st[0] = ft[(wt - k % wt) % wt], b.e = -k || 0) : st[0] = b.e = 0, b;
9867
- if (T == 0 ? (st.length = $, N = 1, $--) : (st.length = $ + 1, N = ft[wt - T], st[$] = j > 0 ? me(U / ft[A - j] % ft[j]) * N : 0), B) for (; ; ) if ($ == 0) {
9868
- for (T = 1, j = st[0]; j >= 10; j /= 10, T++) ;
9869
- for (j = st[0] += N, N = 1; j >= 10; j /= 10, N++) ;
9843
+ if (B = B || k < 0 || st[$ + 1] != null || (G < 0 ? U : U % ft[A - G - 1]), B = P < 4 ? (K || B) && (P == 0 || P == (b.s < 0 ? 3 : 2)) : K > 5 || K == 5 && (P == 4 || B || P == 6 && (T > 0 ? G > 0 ? U / ft[A - G] : 0 : st[$ - 1]) % 10 & 1 || P == (b.s < 0 ? 8 : 7)), k < 1 || !st[0]) return st.length = 0, B ? (k -= b.e + 1, st[0] = ft[(wt - k % wt) % wt], b.e = -k || 0) : st[0] = b.e = 0, b;
9844
+ if (T == 0 ? (st.length = $, N = 1, $--) : (st.length = $ + 1, N = ft[wt - T], st[$] = G > 0 ? me(U / ft[A - G] % ft[G]) * N : 0), B) for (; ; ) if ($ == 0) {
9845
+ for (T = 1, G = st[0]; G >= 10; G /= 10, T++) ;
9846
+ for (G = st[0] += N, N = 1; G >= 10; G /= 10, N++) ;
9870
9847
  T != N && (b.e++, st[0] == Fe && (st[0] = 1));
9871
9848
  break;
9872
9849
  } else {
@@ -9899,7 +9876,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9899
9876
  }, u.dividedToIntegerBy = u.idiv = function(b, k) {
9900
9877
  return n(this, new O(b, k), 0, 1);
9901
9878
  }, u.exponentiatedBy = u.pow = function(b, k) {
9902
- var P, B, A, T, j, N, U, $, K, st = this;
9879
+ var P, B, A, T, G, N, U, $, K, st = this;
9903
9880
  if (b = new O(b), b.c && !b.isInteger()) throw Error(ue + "Exponent not an integer: " + Y(b));
9904
9881
  if (k != null && (k = new O(k)), N = b.e > 14, !st.c || !st.c[0] || st.c[0] == 1 && !st.e && st.c.length == 1 || !b.c || !b.c[0]) return K = new O(Math.pow(+Y(st), N ? b.s * (2 - t(b)) : +Y(b))), k ? K.mod(k) : K;
9905
9882
  if (U = b.s < 0, k) {
@@ -9924,7 +9901,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9924
9901
  }
9925
9902
  st = st.times(st), T ? st.c && st.c.length > T && (st.c.length = T) : B && (st = st.mod(k));
9926
9903
  }
9927
- return B ? K : (U && (K = f.div(K)), k ? K.mod(k) : T ? V(K, at, v, j) : K);
9904
+ return B ? K : (U && (K = f.div(K)), k ? K.mod(k) : T ? V(K, at, v, G) : K);
9928
9905
  }, u.integerValue = function(b) {
9929
9906
  var k = new O(this);
9930
9907
  return b == null ? b = v : Xt(b, 0, 8), V(k, k.e + 1, b);
@@ -9951,13 +9928,13 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9951
9928
  }, u.isZero = function() {
9952
9929
  return !!this.c && this.c[0] == 0;
9953
9930
  }, u.minus = function(b, k) {
9954
- var P, B, A, T, j = this, N = j.s;
9931
+ var P, B, A, T, G = this, N = G.s;
9955
9932
  if (b = new O(b, k), k = b.s, !N || !k) return new O(NaN);
9956
- if (N != k) return b.s = -k, j.plus(b);
9957
- var U = j.e / wt, $ = b.e / wt, K = j.c, st = b.c;
9933
+ if (N != k) return b.s = -k, G.plus(b);
9934
+ var U = G.e / wt, $ = b.e / wt, K = G.c, st = b.c;
9958
9935
  if (!U || !$) {
9959
- if (!K || !st) return K ? (b.s = -k, b) : new O(st ? j : NaN);
9960
- if (!K[0] || !st[0]) return st[0] ? (b.s = -k, b) : new O(K[0] ? j : v == 3 ? -0 : 0);
9936
+ if (!K || !st) return K ? (b.s = -k, b) : new O(st ? G : NaN);
9937
+ if (!K[0] || !st[0]) return st[0] ? (b.s = -k, b) : new O(K[0] ? G : v == 3 ? -0 : 0);
9961
9938
  }
9962
9939
  if (U = ze(U), $ = ze($), K = K.slice(), N = U - $) {
9963
9940
  for ((T = N < 0) ? (N = -N, A = K) : ($ = U, A = st), A.reverse(), k = N; k--; A.push(0)) ;
@@ -9980,11 +9957,11 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9980
9957
  var P, B, A = this;
9981
9958
  return b = new O(b, k), !A.c || !b.s || b.c && !b.c[0] ? new O(NaN) : !b.c || A.c && !A.c[0] ? new O(A) : (J == 9 ? (B = b.s, b.s = 1, P = n(A, b, 0, 3), b.s = B, P.s *= B) : P = n(A, b, 0, J), b = A.minus(P.times(b)), !b.c[0] && J == 1 && (b.s = A.s), b);
9982
9959
  }, u.multipliedBy = u.times = function(b, k) {
9983
- var P, B, A, T, j, N, U, $, K, st, ft, mt, xt, jt, Vt, zt = this, Ht = zt.c, Ee = (b = new O(b, k)).c;
9960
+ var P, B, A, T, G, N, U, $, K, st, ft, mt, xt, jt, Vt, zt = this, Ht = zt.c, Ee = (b = new O(b, k)).c;
9984
9961
  if (!Ht || !Ee || !Ht[0] || !Ee[0]) return !zt.s || !b.s || Ht && !Ht[0] && !Ee || Ee && !Ee[0] && !Ht ? b.c = b.e = b.s = null : (b.s *= zt.s, !Ht || !Ee ? b.c = b.e = null : (b.c = [0], b.e = 0)), b;
9985
9962
  for (B = ze(zt.e / wt) + ze(b.e / wt), b.s *= zt.s, U = Ht.length, st = Ee.length, U < st && (xt = Ht, Ht = Ee, Ee = xt, A = U, U = st, st = A), A = U + st, xt = []; A--; xt.push(0)) ;
9986
9963
  for (jt = Fe, Vt = ri, A = st; --A >= 0; ) {
9987
- for (P = 0, ft = Ee[A] % Vt, mt = Ee[A] / Vt | 0, j = U, T = A + j; T > A; ) $ = Ht[--j] % Vt, K = Ht[j] / Vt | 0, N = mt * $ + K * ft, $ = ft * $ + N % Vt * Vt + xt[T] + P, P = ($ / jt | 0) + (N / Vt | 0) + mt * K, xt[T--] = $ % jt;
9964
+ for (P = 0, ft = Ee[A] % Vt, mt = Ee[A] / Vt | 0, G = U, T = A + G; T > A; ) $ = Ht[--G] % Vt, K = Ht[G] / Vt | 0, N = mt * $ + K * ft, $ = ft * $ + N % Vt * Vt + xt[T] + P, P = ($ / jt | 0) + (N / Vt | 0) + mt * K, xt[T--] = $ % jt;
9988
9965
  xt[T] = P;
9989
9966
  }
9990
9967
  return P ? ++B : xt.splice(0, 1), Q(b, xt, B);
@@ -9995,17 +9972,17 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
9995
9972
  var P, B = this, A = B.s;
9996
9973
  if (b = new O(b, k), k = b.s, !A || !k) return new O(NaN);
9997
9974
  if (A != k) return b.s = -k, B.minus(b);
9998
- var T = B.e / wt, j = b.e / wt, N = B.c, U = b.c;
9999
- if (!T || !j) {
9975
+ var T = B.e / wt, G = b.e / wt, N = B.c, U = b.c;
9976
+ if (!T || !G) {
10000
9977
  if (!N || !U) return new O(A / 0);
10001
9978
  if (!N[0] || !U[0]) return U[0] ? b : new O(N[0] ? B : A * 0);
10002
9979
  }
10003
- if (T = ze(T), j = ze(j), N = N.slice(), A = T - j) {
10004
- for (A > 0 ? (j = T, P = U) : (A = -A, P = N), P.reverse(); A--; P.push(0)) ;
9980
+ if (T = ze(T), G = ze(G), N = N.slice(), A = T - G) {
9981
+ for (A > 0 ? (G = T, P = U) : (A = -A, P = N), P.reverse(); A--; P.push(0)) ;
10005
9982
  P.reverse();
10006
9983
  }
10007
9984
  for (A = N.length, k = U.length, A - k < 0 && (P = U, U = N, N = P, k = A), A = 0; k; ) A = (N[--k] = N[k] + U[k] + A) / Fe | 0, N[k] = Fe === N[k] ? 0 : N[k] % Fe;
10008
- return A && (N = [A].concat(N), ++j), Q(b, N, j);
9985
+ return A && (N = [A].concat(N), ++G), Q(b, N, G);
10009
9986
  }, u.precision = u.sd = function(b, k) {
10010
9987
  var P, B, A, T = this;
10011
9988
  if (b != null && b !== !!b) return Xt(b, 1, he), k == null ? k = v : Xt(k, 0, 8), V(new O(T), b, k);
@@ -10018,9 +9995,9 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
10018
9995
  }, u.shiftedBy = function(b) {
10019
9996
  return Xt(b, -zn, zn), this.times("1e" + b);
10020
9997
  }, u.squareRoot = u.sqrt = function() {
10021
- var b, k, P, B, A, T = this, j = T.c, N = T.s, U = T.e, $ = g + 4, K = new O("0.5");
10022
- if (N !== 1 || !j || !j[0]) return new O(!N || N < 0 && (!j || j[0]) ? NaN : j ? T : 1 / 0);
10023
- if (N = Math.sqrt(+Y(T)), N == 0 || N == 1 / 0 ? (k = Ae(j), (k.length + U) % 2 == 0 && (k += "0"), N = Math.sqrt(+k), U = ze((U + 1) / 2) - (U < 0 || U % 2), N == 1 / 0 ? k = "5e" + U : (k = N.toExponential(), k = k.slice(0, k.indexOf("e") + 1) + U), P = new O(k)) : P = new O(N + ""), P.c[0]) {
9998
+ var b, k, P, B, A, T = this, G = T.c, N = T.s, U = T.e, $ = g + 4, K = new O("0.5");
9999
+ if (N !== 1 || !G || !G[0]) return new O(!N || N < 0 && (!G || G[0]) ? NaN : G ? T : 1 / 0);
10000
+ if (N = Math.sqrt(+Y(T)), N == 0 || N == 1 / 0 ? (k = Ae(G), (k.length + U) % 2 == 0 && (k += "0"), N = Math.sqrt(+k), U = ze((U + 1) / 2) - (U < 0 || U % 2), N == 1 / 0 ? k = "5e" + U : (k = N.toExponential(), k = k.slice(0, k.indexOf("e") + 1) + U), P = new O(k)) : P = new O(N + ""), P.c[0]) {
10024
10001
  for (U = P.e, N = U + $, N < 3 && (N = 0); ; ) if (A = P, P = K.times(A.plus(n(T, A, $, 1))), Ae(A.c).slice(0, N) === (k = Ae(P.c)).slice(0, N)) if (P.e < U && --N, k = k.slice(N - 3, N + 1), k == "9999" || !B && k == "4999") {
10025
10002
  if (!B && (V(A, A.e + g + 2, 0), A.times(A).eq(T))) {
10026
10003
  P = A;
@@ -10042,7 +10019,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
10042
10019
  if (P == null) b != null && k && typeof k == "object" ? (P = k, k = null) : b && typeof b == "object" ? (P = b, b = k = null) : P = lt;
10043
10020
  else if (typeof P != "object") throw Error(ue + "Argument not an object: " + P);
10044
10021
  if (B = A.toFixed(b, k), A.c) {
10045
- var T, j = B.split("."), N = +P.groupSize, U = +P.secondaryGroupSize, $ = P.groupSeparator || "", K = j[0], st = j[1], ft = A.s < 0, mt = ft ? K.slice(1) : K, xt = mt.length;
10022
+ var T, G = B.split("."), N = +P.groupSize, U = +P.secondaryGroupSize, $ = P.groupSeparator || "", K = G[0], st = G[1], ft = A.s < 0, mt = ft ? K.slice(1) : K, xt = mt.length;
10046
10023
  if (U && (T = N, N = U, U = T, xt -= T), N > 0 && xt > 0) {
10047
10024
  for (T = xt % N || N, K = mt.substr(0, T); T < xt; T += N) K += $ + mt.substr(T, N);
10048
10025
  U > 0 && (K += $ + mt.slice(T)), ft && (K = "-" + K);
@@ -10051,11 +10028,11 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
10051
10028
  }
10052
10029
  return (P.prefix || "") + B + (P.suffix || "");
10053
10030
  }, u.toFraction = function(b) {
10054
- var k, P, B, A, T, j, N, U, $, K, st, ft, mt = this, xt = mt.c;
10031
+ var k, P, B, A, T, G, N, U, $, K, st, ft, mt = this, xt = mt.c;
10055
10032
  if (b != null && (N = new O(b), !N.isInteger() && (N.c || N.s !== 1) || N.lt(f))) throw Error(ue + "Argument " + (N.isInteger() ? "out of range: " : "not an integer: ") + Y(N));
10056
10033
  if (!xt) return new O(mt);
10057
- for (k = new O(f), $ = P = new O(f), B = U = new O(f), ft = Ae(xt), T = k.e = ft.length - mt.e - 1, k.c[0] = Nn[(j = T % wt) < 0 ? wt + j : j], b = !b || N.comparedTo(k) > 0 ? T > 0 ? k : $ : N, j = S, S = 1 / 0, N = new O(ft), U.c[0] = 0; K = n(N, k, 0, 1), A = P.plus(K.times(B)), A.comparedTo(b) != 1; ) P = B, B = A, $ = U.plus(K.times(A = $)), U = A, k = N.minus(K.times(A = k)), N = A;
10058
- return A = n(b.minus(P), B, 0, 1), U = U.plus(A.times($)), P = P.plus(A.times(B)), U.s = $.s = mt.s, T = T * 2, st = n($, B, T, v).minus(mt).abs().comparedTo(n(U, P, T, v).minus(mt).abs()) < 1 ? [$, B] : [U, P], S = j, st;
10034
+ for (k = new O(f), $ = P = new O(f), B = U = new O(f), ft = Ae(xt), T = k.e = ft.length - mt.e - 1, k.c[0] = Nn[(G = T % wt) < 0 ? wt + G : G], b = !b || N.comparedTo(k) > 0 ? T > 0 ? k : $ : N, G = S, S = 1 / 0, N = new O(ft), U.c[0] = 0; K = n(N, k, 0, 1), A = P.plus(K.times(B)), A.comparedTo(b) != 1; ) P = B, B = A, $ = U.plus(K.times(A = $)), U = A, k = N.minus(K.times(A = k)), N = A;
10035
+ return A = n(b.minus(P), B, 0, 1), U = U.plus(A.times($)), P = P.plus(A.times(B)), U.s = $.s = mt.s, T = T * 2, st = n($, B, T, v).minus(mt).abs().comparedTo(n(U, P, T, v).minus(mt).abs()) < 1 ? [$, B] : [U, P], S = G, st;
10059
10036
  }, u.toNumber = function() {
10060
10037
  return +Y(this);
10061
10038
  }, u.toPrecision = function(b, k) {
@@ -12009,7 +11986,7 @@ const Ll = /* @__PURE__ */ Ml(G), bl = /* @__PURE__ */ vl({
12009
11986
  h && (L.DomEvent.fakeStop(e), this._fireEvent([h], e));
12010
11987
  } }), L.PM.initialize();
12011
11988
  })();
12012
- const Cl = {
11989
+ const Ml = {
12013
11990
  en_US: {
12014
11991
  showEagle: "Show Eagle Map",
12015
11992
  hideEagle: "Hide Eagle Map"
@@ -12018,7 +11995,7 @@ const Cl = {
12018
11995
  showEagle: "显示鹰眼图",
12019
11996
  hideEagle: "隐藏鹰眼图"
12020
11997
  }
12021
- }, wl = {
11998
+ }, xl = {
12022
11999
  en_US: {
12023
12000
  coordinate: "Coordinate",
12024
12001
  zoomLevel: "Zoom Level",
@@ -12066,7 +12043,7 @@ const Cl = {
12066
12043
  lng: "经度",
12067
12044
  lat: "纬度"
12068
12045
  }
12069
- }, yh = G.Control.extend({
12046
+ }, yh = Z.Control.extend({
12070
12047
  options: {
12071
12048
  position: "bottomleft",
12072
12049
  coordinateUnit: "decimal",
@@ -12075,12 +12052,12 @@ const Cl = {
12075
12052
  showFPS: !0
12076
12053
  },
12077
12054
  initialize(i) {
12078
- G.setOptions(this, i), this.lastTime = +/* @__PURE__ */ new Date(), this.frames = 0, G.Control.prototype.initialize.call(this, this.options);
12055
+ Z.setOptions(this, i), this.lastTime = +/* @__PURE__ */ new Date(), this.frames = 0, Z.Control.prototype.initialize.call(this, this.options);
12079
12056
  },
12080
12057
  onAdd(i) {
12081
- this.map = i, this.lang = i.lang, this.langDic = wl, this._container = G.DomUtil.create("div", `${i.clsPrefix}-statusbar`), this.zoom = i.getZoom();
12058
+ this.map = i, this.lang = i.lang, this.langDic = xl, this._container = Z.DomUtil.create("div", `${i.clsPrefix}-statusbar`), this.zoom = i.getZoom();
12082
12059
  const r = i.getCenter();
12083
- return this.lng = r.lng, this.lat = r.lat, this.options.showCoordinate && (this._latlngContainer = G.DomUtil.create("div", `${i.clsPrefix}-statusbar-item coordinate`, this._container), this._latlngContainer.innerHTML = `<b>${this.langDic[this.lang].coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`), this.options.showLevel && (this._levelContainer = G.DomUtil.create("div", `${i.clsPrefix}-statusbar-item level`, this._container), this._levelContainer.innerHTML = `<b>${this.langDic[this.lang].zoomLevel}:</b>${this.zoom + 1}`), this.options.showFPS && (this._fpsContainer = G.DomUtil.create("div", `${i.clsPrefix}-statusbar-item fps`, this._container), this._fpsContainer.innerHTML = `<b>${this.langDic[this.lang].FPS}:</b>60`), this.initEvt(), this._container;
12060
+ return this.lng = r.lng, this.lat = r.lat, this.options.showCoordinate && (this._latlngContainer = Z.DomUtil.create("div", `${i.clsPrefix}-statusbar-item coordinate`, this._container), this._latlngContainer.innerHTML = `<b>${this.langDic[this.lang].coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`), this.options.showLevel && (this._levelContainer = Z.DomUtil.create("div", `${i.clsPrefix}-statusbar-item level`, this._container), this._levelContainer.innerHTML = `<b>${this.langDic[this.lang].zoomLevel}:</b>${this.zoom + 1}`), this.options.showFPS && (this._fpsContainer = Z.DomUtil.create("div", `${i.clsPrefix}-statusbar-item fps`, this._container), this._fpsContainer.innerHTML = `<b>${this.langDic[this.lang].FPS}:</b>60`), this.initEvt(), this._container;
12084
12061
  },
12085
12062
  initEvt() {
12086
12063
  this.map.on("mousemove", (i) => {
@@ -12113,8 +12090,8 @@ const Cl = {
12113
12090
  }
12114
12091
  requestAnimationFrame(this.calcFPS.bind(this));
12115
12092
  }
12116
- }), vh = G.Control.extend({
12117
- includes: G.Evented ? G.Evented.prototype : G.Mixin.Events,
12093
+ }), vh = Z.Control.extend({
12094
+ includes: Z.Evented ? Z.Evented.prototype : Z.Mixin.Events,
12118
12095
  options: {
12119
12096
  position: "bottomright",
12120
12097
  toggleDisplay: !0,
@@ -12134,10 +12111,10 @@ const Cl = {
12134
12111
  mapOptions: {}
12135
12112
  },
12136
12113
  initialize(i, r) {
12137
- G.Util.setOptions(this, r), this.options.aimingRectOptions.interactive = !1, this.options.shadowRectOptions.interactive = !1, this._layer = i;
12114
+ Z.Util.setOptions(this, r), this.options.aimingRectOptions.interactive = !1, this.options.shadowRectOptions.interactive = !1, this._layer = i;
12138
12115
  },
12139
12116
  onAdd(i) {
12140
- this._mainMap = i, this.lang = i.options.lang ?? this.options.lang ?? "zh_CN", this.langDic = Cl, this.options.strings = { hideText: this.langDic[this.lang].hideEagle, showText: this.langDic[this.lang].showEagle }, this._container = G.DomUtil.create("div", `${i.clsPrefix}-eaglemap`), this._container.style.width = this.options.width + "px", this._container.style.height = this.options.height + "px", G.DomEvent.disableClickPropagation(this._container), G.DomEvent.on(this._container, "mousewheel", G.DomEvent.stopPropagation);
12117
+ this._mainMap = i, this.lang = i.options.lang ?? this.options.lang ?? "zh_CN", this.langDic = Ml, this.options.strings = { hideText: this.langDic[this.lang].hideEagle, showText: this.langDic[this.lang].showEagle }, this._container = Z.DomUtil.create("div", `${i.clsPrefix}-eaglemap`), this._container.style.width = this.options.width + "px", this._container.style.height = this.options.height + "px", Z.DomEvent.disableClickPropagation(this._container), Z.DomEvent.on(this._container, "mousewheel", Z.DomEvent.stopPropagation);
12141
12118
  let r = {
12142
12119
  attributionControl: !1,
12143
12120
  dragging: !this.options.centerFixed,
@@ -12150,14 +12127,14 @@ const Cl = {
12150
12127
  boxZoom: !this._isZoomLevelFixed(),
12151
12128
  crs: i.options.crs
12152
12129
  };
12153
- return r = G.Util.extend(this.options.mapOptions, r), this._eagleMap = new G.Map(this._container, r), this._layer instanceof G.Layer && this._eagleMap.addLayer(this._layer), this._mainMapMoving = !1, this._eagleMapMoving = !1, this._userToggledDisplay = !1, this._minimized = !1, this.options.toggleDisplay && this._addToggleButton(), this._eagleMap.whenReady(
12154
- G.Util.bind(function() {
12155
- this._aimingRect = new G.Rectangle(this._mainMap.getBounds(), this.options.aimingRectOptions).addTo(this._eagleMap), this._shadowRect = new G.Rectangle(this._mainMap.getBounds(), this.options.shadowRectOptions).addTo(this._eagleMap), this._mainMap.on("moveend", this._onMainMapMoved, this), this._mainMap.on("move", this._onMainMapMoving, this), this._eagleMap.on("movestart", this._onEagleMapMoveStarted, this), this._eagleMap.on("move", this._onEagleMapMoving, this), this._eagleMap.on("moveend", this._onEagleMapMoved, this);
12130
+ return r = Z.Util.extend(this.options.mapOptions, r), this._eagleMap = new Z.Map(this._container, r), this._layer instanceof Z.Layer && this._eagleMap.addLayer(this._layer), this._mainMapMoving = !1, this._eagleMapMoving = !1, this._userToggledDisplay = !1, this._minimized = !1, this.options.toggleDisplay && this._addToggleButton(), this._eagleMap.whenReady(
12131
+ Z.Util.bind(function() {
12132
+ this._aimingRect = new Z.Rectangle(this._mainMap.getBounds(), this.options.aimingRectOptions).addTo(this._eagleMap), this._shadowRect = new Z.Rectangle(this._mainMap.getBounds(), this.options.shadowRectOptions).addTo(this._eagleMap), this._mainMap.on("moveend", this._onMainMapMoved, this), this._mainMap.on("move", this._onMainMapMoving, this), this._eagleMap.on("movestart", this._onEagleMapMoveStarted, this), this._eagleMap.on("move", this._onEagleMapMoving, this), this._eagleMap.on("moveend", this._onEagleMapMoved, this);
12156
12133
  }, this)
12157
12134
  ), this._container;
12158
12135
  },
12159
12136
  addTo(i) {
12160
- G.Control.prototype.addTo.call(this, i);
12137
+ Z.Control.prototype.addTo.call(this, i);
12161
12138
  const r = this.options.centerFixed || this._mainMap.getCenter();
12162
12139
  return this._eagleMap.setView(r, this._decideZoom(!0)), this._setDisplay(this.options.minimized), this;
12163
12140
  },
@@ -12181,10 +12158,10 @@ const Cl = {
12181
12158
  return this.options.minimized ? this.langDic[this.lang].showEagle : this.langDic[this.lang].hideEagle;
12182
12159
  },
12183
12160
  _createButton(i, r, o, c, d, m) {
12184
- const _ = G.DomUtil.create("a", o, c);
12161
+ const _ = Z.DomUtil.create("a", o, c);
12185
12162
  _.innerHTML = i, _.href = "#", _.title = r;
12186
- const M = G.DomEvent.stopPropagation;
12187
- return G.DomEvent.on(_, "click", M).on(_, "mousedown", M).on(_, "dblclick", M).on(_, "click", G.DomEvent.preventDefault).on(_, "click", d, m), _;
12163
+ const M = Z.DomEvent.stopPropagation;
12164
+ return Z.DomEvent.on(_, "click", M).on(_, "mousedown", M).on(_, "dblclick", M).on(_, "click", Z.DomEvent.preventDefault).on(_, "click", d, m), _;
12188
12165
  },
12189
12166
  _toggleDisplayButtonClicked() {
12190
12167
  this._userToggledDisplay = !0, this._minimized ? this._restore() : this._minimize();
@@ -12218,7 +12195,7 @@ const Cl = {
12218
12195
  },
12219
12196
  _onEagleMapMoving(i) {
12220
12197
  this.options.centerFixed || !this._mainMapMoving && this._lastAimingRectPosition && (this._shadowRect.setBounds(
12221
- new G.LatLngBounds(this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.sw), this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.ne))
12198
+ new Z.LatLngBounds(this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.sw), this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.ne))
12222
12199
  ), this._shadowRect.setStyle({ opacity: 1, fillOpacity: 0.3 }));
12223
12200
  },
12224
12201
  _onEagleMapMoved(i) {
@@ -12249,12 +12226,12 @@ const Cl = {
12249
12226
  return typeof i < "u";
12250
12227
  },
12251
12228
  _onToggle() {
12252
- G.Util.requestAnimFrame(function() {
12253
- G.DomEvent.on(this._container, "transitionend", this._fireToggleEvents, this), G.Browser.any3d || G.Util.requestAnimFrame(this._fireToggleEvents, this);
12229
+ Z.Util.requestAnimFrame(function() {
12230
+ Z.DomEvent.on(this._container, "transitionend", this._fireToggleEvents, this), Z.Browser.any3d || Z.Util.requestAnimFrame(this._fireToggleEvents, this);
12254
12231
  }, this);
12255
12232
  },
12256
12233
  _fireToggleEvents() {
12257
- G.DomEvent.off(this._container, "transitionend", this._fireToggleEvents, this);
12234
+ Z.DomEvent.off(this._container, "transitionend", this._fireToggleEvents, this);
12258
12235
  const i = { minimized: this._minimized };
12259
12236
  this.fire(this._minimized ? "minimize" : "restore", i), this.fire("toggle", i);
12260
12237
  }
@@ -12267,7 +12244,7 @@ const Cl = {
12267
12244
  typeof i.getLatLngs == "function" && (C = i.getLatLngs());
12268
12245
  for (let H = _ ? 0 : 1, et = C.length - (M ? 0 : 1); H < et; H++) {
12269
12246
  const nt = C[H];
12270
- var D = typeof m == "function" ? m.call(this, H, C) : m || "", Z = L.divIcon({ className: o, html: D, iconSize: c, iconAnchor: d }), R = L.marker(nt, { icon: Z, pmIgnore: !0, index: H });
12247
+ var D = typeof m == "function" ? m.call(this, H, C) : m || "", j = L.divIcon({ className: o, html: D, iconSize: c, iconAnchor: d }), R = L.marker(nt, { icon: j, pmIgnore: !0, index: H });
12271
12248
  this.markers.push(R);
12272
12249
  }
12273
12250
  L.FeatureGroup.prototype.initialize.call(this, this.markers);
@@ -12307,11 +12284,11 @@ class ma extends L[L.Layer ? "Layer" : "Class"] {
12307
12284
  }
12308
12285
  }
12309
12286
  function Wo(i, r, o) {
12310
- i._leaflet_pos = r, G.DomUtil.setTransform(i, r, o);
12287
+ i._leaflet_pos = r, Z.DomUtil.setTransform(i, r, o);
12311
12288
  }
12312
- G.Map.addInitHook(function() {
12289
+ Z.Map.addInitHook(function() {
12313
12290
  var i, r, o;
12314
- this.pm && this.pm.setLang(this.options.lang.split("_")[0]), (i = this.options.eagleMapControl) != null && i.show && (this.eagleMapControl = new vh(this.options.eagleMapControl), this.addControl(this.eagleMapControl)), (r = this.options.statusBarControl) != null && r.show && (this.statusBarControl = new yh(this.options.statusBarControl), this.addControl(this.statusBarControl)), (o = this.options.scaleControl) != null && o.show && (this.scaleControl = new G.Control.Scale(
12291
+ this.pm && this.pm.setLang(this.options.lang.split("_")[0]), (i = this.options.eagleMapControl) != null && i.show && (this.eagleMapControl = new vh(this.options.eagleMapControl), this.addControl(this.eagleMapControl)), (r = this.options.statusBarControl) != null && r.show && (this.statusBarControl = new yh(this.options.statusBarControl), this.addControl(this.statusBarControl)), (o = this.options.scaleControl) != null && o.show && (this.scaleControl = new Z.Control.Scale(
12315
12292
  Object.assign(
12316
12293
  {
12317
12294
  position: "bottomleft",
@@ -12323,22 +12300,22 @@ G.Map.addInitHook(function() {
12323
12300
  )
12324
12301
  ), this.addControl(this.scaleControl));
12325
12302
  });
12326
- G.TileLayer.mergeOptions({
12303
+ Z.TileLayer.mergeOptions({
12327
12304
  errorTileUrl: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAIAAADTED8xAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAoNSURBVHhe7drLgquqFoXh8/5PtdvVTz/t9Ku9DsgEQSdEczGxxv+1Vikiwhxeqtb//gHCCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKR9aQB+J/ZD7fd2vUQ3b+fQ783vcaV77s/5/b1FG8f/8BQp+sYA/F5//osuN9swG+waywf+XMdlsbXdoW6XaUzbLnrPFKVcvZJ1fB5fGABbbq8EH63/zWUtVf+56QtdrOvz+L4AvKH+rcv7x+2u/9zzK/RG9/b6/3le6mj3wnyBrwvA6+t/c/mfq/5v16n02lf9/fXfu9bb9brxmyPYldHv8m0BeLj+e9+t+0tie/3fe4e+pP7+u1xtw0jnnN369ybqVfWfR77xQ/rE9f/JAHi/rXis/n+nBRsd9BNvZx5rF+2v/zsGF7PZi+o/JDXe0e2noF//uZOt1X/u+v9gALzV2l//qfbNcgnKWnZVR+TGr6r/l/T3VP3Hqr+U9/OmrTVdjq2ZzTvKsaeu/88FYLla0b76j0+QslyLd+EoHzJQ92atvZM/wru+3R6q/5/LXPWzpq01bbeFj4qp5fCjOLUIyrHnrv+PBcCrj+31f6/2g1IOV3vZqcyvuNa4ad79nNjDrmV/Xdh7YWJjCiWd2FvMaqLCJVUTUoTj8uZmHKv6Hz5Hi7lVtUQnr/9PBWBQ/yuxhOfmzVr5tR/U9bziBG1unyrGPW674emHepOQpOnK47+EwVaTYUJcwjd3Pq9Xnza6NLg5OjFm6V9ONZdpD73X1+T1fyqfCUBV0EVv6cM65eaVuMrd4spdufXnnds5wTMZyOffXxahzgp73yi3/3A7j0+n+gaQ+S/6wZ36n2/pdifxZq668a/uN17/5/KRAAzqf7p9NcKit+XZve2bvIjtMmb5PPWufIKwMaz29M9JOJO1yDb934H5Xmkbtli9di1rqx6Yia846cCqqCvePLdNww/+LX26+Fj6qYd4McsBBssxntAnAuCti02lV7K5+bQK49qvGwfrhfFOXTbmk9el1g7IKcIXWQ11WVvNhS3b206//t1L8CY6W1xl/4azHOMZfSAAXhEOlsVr3rNYuuUhfld5a3Xy9jmQt+eGb7C6uFVthXf1+DB0a84Gtpg9d+tgonuf0lG49dizpuKO5WyOD4BXhYNl8Zr7Sn2GxXKWvtdT3txpPdm6xp2+9uvV1ovqfz4+Fn2o+upawyHxnh+O6uThJ/5WKsThT9T/8QHINVLP2yvq3/qYOvHWPne0PMngBKnLe58cs94p9uvVlrvdu9rOnJbjf53STnd5a1lxHgyx194YT+boAHj15q5VMijPhdQytVsf1e1nfILwzbu5lu0q8mVMH5DxZrm9h6JXW+52u4Jm9sorXNu0Or6MNn9HxydB/PXp6I8g9rSYOu2N8WwODoC3WjaVz9V/EFbHelge5pdDtOsEI6WgbAy5Y++q7unVlru9zGj6Q27MXPx5suihPn5Z6Hn8RcxufCTESFibWm+Mp3NsAMpqVXNqU/l0/dfqPnMnXi8Pn6C1PsUzHafBr+fDrTk7UWhtu4tVB+7xSXzJiQ+sqcGKszSDvk7m0ADMq2UbAptKZ5Lzrs40h0Xrvl2UI6/5X17/r6n/Uv3p1WByWP3bxtB6qmGz/oVN4B7vCbf8+H9H81/iBivz1Lx9iSMD8Fj9e7uC4d5SlElVmrUX1P98orqTLR0v30GydF3ry3JrbjQJ076f+P/A5x8Xw0x/gBu89He4YzmpAwPwyvrPJebvnfdHvXXaUqZD80naYWzpuHN1dui0OX1yWnrdmhtNke3LR6yPzw2y+PUweusvnp63r3JcAOq1zZwVjM/fuACjxS1r4O+NtTOvbm+dnlvH+Eue6fDYQTuILR13ri4fWovd+F0Opmg5QdZ0Pj7+HnR9rlaVCDsqsq57U382hwXAm7e8gmGWy//9CmKbweKW4zoltqoit5lfU5tUxe/8lnNDx7nJfHXpd+2LcYf6Sy8wnS7tPyY5M7ScoFX918INP7/zLwaQ1atgY/EX5oSOCkCet1AwzSeW4179r8tnlvfFM9nfg6N1nXZq6q6q+Mej21D/ocmmP0jtHeuq/bD+V1Ig5gVqLtP6di/9lN4eAJvO1TK30tO2vH7mJXTmOe9aL2fZU46rtgRT+KaWUThTZD9tUdd+twIGI8/qcNdj9n95E4zuBmvrEeyr/yHrfONQzuC9AWgrsOa+Xha2ZFFoN5ufGu1q9u/LTdWa9LkXhPMP1Glpan/92jMrI/drZO4oXUB4AnTrPpsnMWZkZPpotqbz6echPc86+jv1f1wAxhW/0A/OpF6A6eXZtocdXm02TbayhMWKnY/NL+V9VXQHQoas/Rbb+qw03e8++q6/VP/vDkC4LW2q+JXp7zp225ktbpf1G3SozXsnmr/17sYhVVBdO/drP/EeObVwEZv6aXifCq6p96Z7u4bmQfqoNIY/Vf+HfQS/R34lfaCmjH0KLNhO6/+B7q2fJdt7IKv/XU+cjjzZf6r+Tx6AsCrhEWP/fIePFC0OdPYAAE8hAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAYf/+/R9s8HzCwqXCjgAAAABJRU5ErkJggg=="
12328
12305
  });
12329
- G.Marker.addInitHook(function() {
12306
+ Z.Marker.addInitHook(function() {
12330
12307
  let r = this.options.icon && this.options.icon.options && this.options.icon.options.iconAnchor;
12331
12308
  r && (r = r[0] + "px " + r[1] + "px"), this.options.rotationOrigin = this.options.rotationOrigin || r || "center bottom", this.options.rotationAngle = this.options.rotationAngle || 0, this.on("drag", (o) => {
12332
12309
  o.target._applyRotation();
12333
12310
  });
12334
12311
  });
12335
- G.Marker.mergeOptions({
12312
+ Z.Marker.mergeOptions({
12336
12313
  minZoom: 0,
12337
12314
  maxZoom: 16,
12338
12315
  hideOnMinZoom: !0,
12339
12316
  minificationScale: 0.6
12340
12317
  });
12341
- G.Marker.include({
12318
+ Z.Marker.include({
12342
12319
  _setPos(i) {
12343
12320
  this._icon.style.display = "initial";
12344
12321
  let r;
@@ -12350,7 +12327,7 @@ G.Marker.include({
12350
12327
  this._icon && Wo(this._icon, i, r || 1), this._shadow && Wo(this._shadow, i, r || 1), this._zIndex = i.y + this.options.zIndexOffset, this._resetZIndex(), this._applyRotation();
12351
12328
  },
12352
12329
  _applyRotation() {
12353
- this.options.rotationAngle && (this._icon.style[G.DomUtil.TRANSFORM + "Origin"] = this.options.rotationOrigin, G.DomUtil.TRANSFORM === "msTransform" ? this._icon.style[G.DomUtil.TRANSFORM] = "rotate(" + this.options.rotationAngle + "deg)" : this._icon.style[G.DomUtil.TRANSFORM] += " rotateZ(" + this.options.rotationAngle + "deg)");
12330
+ this.options.rotationAngle && (this._icon.style[Z.DomUtil.TRANSFORM + "Origin"] = this.options.rotationOrigin, Z.DomUtil.TRANSFORM === "msTransform" ? this._icon.style[Z.DomUtil.TRANSFORM] = "rotate(" + this.options.rotationAngle + "deg)" : this._icon.style[Z.DomUtil.TRANSFORM] += " rotateZ(" + this.options.rotationAngle + "deg)");
12354
12331
  },
12355
12332
  setRotationAngle(i) {
12356
12333
  return this.options.rotationAngle = i, this.update(), this;
@@ -12366,18 +12343,18 @@ G.Marker.include({
12366
12343
  d();
12367
12344
  }
12368
12345
  });
12369
- G.Map.include({
12346
+ Z.Map.include({
12370
12347
  hasLayer: function(i) {
12371
- return i && G.Util.stamp(i) in this._layers;
12348
+ return i && Z.Util.stamp(i) in this._layers;
12372
12349
  }
12373
12350
  });
12374
- G.Path.addInitHook(function() {
12351
+ Z.Path.addInitHook(function() {
12375
12352
  this.options.color && (this.color = Ko.from(this.options.color)), this.options.fillColor && (this.fillColor = Ko.from(this.options.fillColor));
12376
12353
  });
12377
- G.Polyline.addInitHook(function() {
12354
+ Z.Polyline.addInitHook(function() {
12378
12355
  this.options.showMeasurements && this.showMeasurements();
12379
12356
  });
12380
- G.Circle.include({
12357
+ Z.Circle.include({
12381
12358
  toGeoJSON() {
12382
12359
  return {
12383
12360
  type: "Feature",
@@ -12390,10 +12367,10 @@ G.Circle.include({
12390
12367
  };
12391
12368
  }
12392
12369
  });
12393
- G.Layer.addInitHook(function() {
12394
- this._leaflet_id = this.options.id || G.stamp({});
12370
+ Z.Layer.addInitHook(function() {
12371
+ this._leaflet_id = this.options.id || Z.stamp({});
12395
12372
  });
12396
- G.LayerGroup.include({
12373
+ Z.LayerGroup.include({
12397
12374
  // override
12398
12375
  getLayerId(i) {
12399
12376
  return i._leaflet_id;
@@ -12402,26 +12379,26 @@ G.LayerGroup.include({
12402
12379
  return i ? (["number", "string"].includes(typeof i) ? i : this.getLayerId(i)) in this._layers : !1;
12403
12380
  }
12404
12381
  });
12405
- G.GridLayer.include({
12382
+ Z.GridLayer.include({
12406
12383
  _setZoomTransform: function(i, c, o) {
12407
12384
  var d = c, c = (d != null && this.options && (this.options.corrdType == "gcj02" ? d = Hn.gcjEncrypt(c.lat, c.lng) : this.options.corrdType == "bd09" && (c = Hn.gcjEncrypt(c.lat, c.lng), d = Hn.bdEncrypt(c.lat, c.lng))), this._map.getZoomScale(o, i.zoom)), d = i.origin.multiplyBy(c).subtract(this._map._getNewPixelOrigin(d, o)).round();
12408
- G.Browser.any3d ? G.DomUtil.setTransform(i.el, d, c) : G.DomUtil.setPosition(i.el, d);
12385
+ Z.Browser.any3d ? Z.DomUtil.setTransform(i.el, d, c) : Z.DomUtil.setPosition(i.el, d);
12409
12386
  },
12410
12387
  _getTiledPixelBounds: function(c) {
12411
12388
  var o = c, c = (o != null && this.options && (this.options.corrdType == "gcj02" ? o = Hn.gcjEncrypt(c.lat, c.lng) : this.options.corrdType == "bd09" && (c = Hn.gcjEncrypt(c.lat, c.lng), o = Hn.bdEncrypt(c.lat, c.lng))), this._map), r = c._animatingZoom ? Math.max(c._animateToZoom, c.getZoom()) : c.getZoom(), r = c.getZoomScale(r, this._tileZoom), o = c.project(o, this._tileZoom).floor(), c = c.getSize().divideBy(2 * r);
12412
- return new G.Bounds(o.subtract(c), o.add(c));
12389
+ return new Z.Bounds(o.subtract(c), o.add(c));
12413
12390
  }
12414
12391
  });
12415
- G.TileLayer.addInitHook(function() {
12392
+ Z.TileLayer.addInitHook(function() {
12416
12393
  this.on("add", function(i) {
12417
12394
  this._container.style.filter = Object.keys(this.options.style || {}).map((r) => `${r}(${this.options.style[r]})`).join(" ");
12418
12395
  });
12419
12396
  });
12420
- G.Polyline.include({
12421
- _originalOnAdd: G.Polyline.prototype.onAdd,
12422
- _originalOnRemove: G.Polyline.prototype.onRemove,
12423
- _originalSetLatLngs: G.Polyline.prototype.setLatLngs,
12424
- _originalAddLatLng: G.Polyline.prototype.addLatLng,
12397
+ Z.Polyline.include({
12398
+ _originalOnAdd: Z.Polyline.prototype.onAdd,
12399
+ _originalOnRemove: Z.Polyline.prototype.onRemove,
12400
+ _originalSetLatLngs: Z.Polyline.prototype.setLatLngs,
12401
+ _originalAddLatLng: Z.Polyline.prototype.addLatLng,
12425
12402
  setLatLngs: function(i) {
12426
12403
  var r = this._map && this._vertexMarkers && this._latlngs.length !== i.length;
12427
12404
  this._originalSetLatLngs(i), r && (this.removeVertexMarkers(), this.destroyVertexMarkers(), this.createVertexMarkers()), this.options.showMeasurements && this.updateMeasurements();
@@ -12445,7 +12422,7 @@ G.Polyline.include({
12445
12422
  this.removeVertexMarkers(), this._originalOnRemove(i), this.options.showMeasurements && this.hideMeasurements();
12446
12423
  },
12447
12424
  showMeasurements(i) {
12448
- return !this._map || this._measurementLayer ? this : (this._measurementOptions = G.extend(
12425
+ return !this._map || this._measurementLayer ? this : (this._measurementOptions = Z.extend(
12449
12426
  {
12450
12427
  showOnHover: !1,
12451
12428
  minPixelDistance: 30,
@@ -12460,7 +12437,7 @@ G.Polyline.include({
12460
12437
  map: this._map
12461
12438
  },
12462
12439
  i || {}
12463
- ), this._measurementLayer = new G.LayerGroup().addTo(this._map), this.updateMeasurements(), this._map.on("zoomend", this.updateMeasurements, this), this);
12440
+ ), this._measurementLayer = new Z.LayerGroup().addTo(this._map), this.updateMeasurements(), this._map.on("zoomend", this.updateMeasurements, this), this);
12464
12441
  },
12465
12442
  hideMeasurements() {
12466
12443
  return this._map.off("zoomend", this.updateMeasurements, this), this._measurementLayer ? (this._map.removeLayer(this._measurementLayer), this._measurementLayer = null, this) : this;
@@ -12472,9 +12449,9 @@ G.Polyline.include({
12472
12449
  o.push(nt);
12473
12450
  }
12474
12451
  const c = o.length;
12475
- let d = 0, m, _, M, C, D, Z;
12452
+ let d = 0, m, _, M, C, D, j;
12476
12453
  for (let et = 0; et < c - 1; et++)
12477
- m = o[et], M = m.x, C = m.y, _ = o[et + 1], D = _.x, Z = _.y, d += Math.sqrt((M - D) * (M - D) + (C - Z) * (C - Z));
12454
+ m = o[et], M = m.x, C = m.y, _ = o[et + 1], D = _.x, j = _.y, d += Math.sqrt((M - D) * (M - D) + (C - j) * (C - j));
12478
12455
  const R = d;
12479
12456
  let H = "";
12480
12457
  return R > 1e3 ? H = "总长:" + Number(R / 1e3).toFixed(1) + "公里" : H = "总长:" + Math.round(R) + "米", H;
@@ -12483,9 +12460,9 @@ G.Polyline.include({
12483
12460
  const o = this._map.options.crs;
12484
12461
  i = o.project(i), i = new Array(i), r = o.project(r), i.push(r);
12485
12462
  const c = i.length;
12486
- let d = 0, m, _, M, C, D, Z;
12463
+ let d = 0, m, _, M, C, D, j;
12487
12464
  for (let et = 0; et < c - 1; et++)
12488
- m = i[et], M = m.x, C = m.y, _ = i[et + 1], D = _.x, Z = _.y, d += Math.sqrt((M - D) * (M - D) + (C - Z) * (C - Z));
12465
+ m = i[et], M = m.x, C = m.y, _ = i[et + 1], D = _.x, j = _.y, d += Math.sqrt((M - D) * (M - D) + (C - j) * (C - j));
12489
12466
  const R = d;
12490
12467
  let H = "";
12491
12468
  return R > 1e3 ? H = Number(R / 1e3).toFixed(1) + "公里" : H = Math.round(R) + "米", H;
@@ -12502,7 +12479,7 @@ G.Polyline.include({
12502
12479
  break;
12503
12480
  }
12504
12481
  const m = o.length;
12505
- let _ = 0, M, C, D = 0, Z = 0, R = 0, H = 0;
12482
+ let _ = 0, M, C, D = 0, j = 0, R = 0, H = 0;
12506
12483
  if (o != null) {
12507
12484
  let it;
12508
12485
  if (c)
@@ -12514,7 +12491,7 @@ G.Polyline.include({
12514
12491
  M = o[d], pt = M.x, d == 0 ? (Mt = pt, yt = pt) : (pt < Mt && (Mt = pt), pt > yt && (yt = pt));
12515
12492
  const St = parseInt(((Mt + yt) / 2 + 3) / 6);
12516
12493
  for (var d = 0; d < m; d++)
12517
- it = (d + 1) % m, d == 0 ? (M = o[d], D = widget.LonLatToXA80N(St, M.x, M.y)[0], Z = widget.LonLatToXA80N(St, M.x, M.y)[1]) : (D = R, Z = H), C = o[it], R = widget.LonLatToXA80N(St, C.x, C.y)[0], H = widget.LonLatToXA80N(St, C.x, C.y)[1], _ += D * H, _ -= R * Z;
12494
+ it = (d + 1) % m, d == 0 ? (M = o[d], D = widget.LonLatToXA80N(St, M.x, M.y)[0], j = widget.LonLatToXA80N(St, M.x, M.y)[1]) : (D = R, j = H), C = o[it], R = widget.LonLatToXA80N(St, C.x, C.y)[0], H = widget.LonLatToXA80N(St, C.x, C.y)[1], _ += D * H, _ -= R * j;
12518
12495
  }
12519
12496
  }
12520
12497
  const et = Math.abs(_ / 2);
@@ -12528,12 +12505,12 @@ G.Polyline.include({
12528
12505
  const i = this.getLatLngs();
12529
12506
  new Array().push(i);
12530
12507
  let o = this.getLatLngs();
12531
- const c = this instanceof G.Polygon, d = this._measurementOptions;
12508
+ const c = this instanceof Z.Polygon, d = this._measurementOptions;
12532
12509
  let m, _, M, C, D;
12533
- if (o && o.length && G.Util.isArray(o[0]) && (o = o[0]), this._measurementLayer.clearLayers(), this._measurementOptions.showDistances && o.length > 1) {
12510
+ if (o && o.length && Z.Util.isArray(o[0]) && (o = o[0]), this._measurementLayer.clearLayers(), this._measurementOptions.showDistances && o.length > 1) {
12534
12511
  i.length - 1;
12535
- for (let Z = 1, R = o.length; c && Z <= R || Z < R; Z++)
12536
- if (m = o[Z - 1], _ = o[Z % R], m.distanceTo(_), M = this._map.latLngToLayerPoint(m), C = this._map.latLngToLayerPoint(_), D = M.distanceTo(C), D >= d.minPixelDistance) {
12512
+ for (let j = 1, R = o.length; c && j <= R || j < R; j++)
12513
+ if (m = o[j - 1], _ = o[j % R], m.distanceTo(_), M = this._map.latLngToLayerPoint(m), C = this._map.latLngToLayerPoint(_), D = M.distanceTo(C), D >= d.minPixelDistance) {
12537
12514
  const H = this.tempMoveFormatDistance(m, _);
12538
12515
  new ma(
12539
12516
  this._map.layerPointToLatLng([(M.x + C.x) / 2, (M.y + C.y) / 2]),
@@ -12552,10 +12529,10 @@ G.Polyline.include({
12552
12529
  return Math.atan((c.y - o.y) / (c.x - o.x));
12553
12530
  }
12554
12531
  });
12555
- G.LatLng.prototype.toArray = function() {
12532
+ Z.LatLng.prototype.toArray = function() {
12556
12533
  return [this.lat, this.lng];
12557
12534
  };
12558
- G.Path.include({
12535
+ Z.Path.include({
12559
12536
  getArea(i) {
12560
12537
  var r, o = this._latlngs[0], c = (i || this._map).options.crs, d = o.length;
12561
12538
  let m = 0, _, M;
@@ -12566,20 +12543,20 @@ G.Path.include({
12566
12543
  },
12567
12544
  getLength(i) {
12568
12545
  for (var r = [], o = (i || this._map).options.crs, c = this._latlngs, d = 0; d < c.length; d++)
12569
- this instanceof G.Polygon ? r.push(...c[d]) : this instanceof G.Polyline && r.push(c[d]);
12546
+ this instanceof Z.Polygon ? r.push(...c[d]) : this instanceof Z.Polyline && r.push(c[d]);
12570
12547
  let m = 0, _, M;
12571
12548
  for (let H = 0, et = r.length - 1; H < et; H++) {
12572
12549
  _ = 180 < r[H][0] && 90 < r[H][1] ? { x: r[H].lat, y: r[H].lng } : o.project(r[H]), M = 180 < r[H + 1][0] && 90 < r[H + 1][1] ? { x: r[H + 1].lat, y: r[H + 1].lng } : o.project(r[H + 1]);
12573
- var C = _.x, D = _.y, Z = M.x, R = M.y;
12574
- m += Math.sqrt((C - Z) * (C - Z) + (D - R) * (D - R));
12550
+ var C = _.x, D = _.y, j = M.x, R = M.y;
12551
+ m += Math.sqrt((C - j) * (C - j) + (D - R) * (D - R));
12575
12552
  }
12576
12553
  return m;
12577
12554
  }
12578
12555
  });
12579
- G.Control.mergeOptions({
12556
+ Z.Control.mergeOptions({
12580
12557
  offset: [0, 0]
12581
12558
  });
12582
- G.Control.addInitHook(function() {
12559
+ Z.Control.addInitHook(function() {
12583
12560
  const {
12584
12561
  className: i,
12585
12562
  offset: [r, o]
@@ -12589,11 +12566,11 @@ G.Control.addInitHook(function() {
12589
12566
  c && (c.style.transform = `translate(${r}px, ${o}px)`, i && c.classList.add(i));
12590
12567
  }, 200);
12591
12568
  });
12592
- var El = { exports: {} };
12593
- function kl(i) {
12569
+ var Ll = { exports: {} };
12570
+ function bl(i) {
12594
12571
  i("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), i("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), i("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"), i.WGS84 = i["EPSG:4326"], i["EPSG:3785"] = i["EPSG:3857"], i.GOOGLE = i["EPSG:3857"], i["EPSG:900913"] = i["EPSG:3857"], i["EPSG:102113"] = i["EPSG:3857"];
12595
12572
  }
12596
- var _n = 1, mn = 2, Qn = 3, Bl = 4, Eo = 5, Xo = 6378137, Pl = 6356752314e-3, Yo = 0.0066943799901413165, Js = 484813681109536e-20, ot = Math.PI / 2, Al = 0.16666666666666666, Tl = 0.04722222222222222, Sl = 0.022156084656084655, ut = 1e-10, ye = 0.017453292519943295, mi = 57.29577951308232, Zt = Math.PI / 4, sr = Math.PI * 2, le = 3.14159265359, je = {};
12573
+ var _n = 1, mn = 2, Qn = 3, Cl = 4, Eo = 5, Xo = 6378137, wl = 6356752314e-3, Yo = 0.0066943799901413165, Js = 484813681109536e-20, ot = Math.PI / 2, El = 0.16666666666666666, kl = 0.04722222222222222, Bl = 0.022156084656084655, ut = 1e-10, ye = 0.017453292519943295, mi = 57.29577951308232, Zt = Math.PI / 4, sr = Math.PI * 2, le = 3.14159265359, je = {};
12597
12574
  je.greenwich = 0;
12598
12575
  je.lisbon = -9.131906111111;
12599
12576
  je.paris = 2.337229166667;
@@ -12607,7 +12584,7 @@ je.brussels = 4.367975;
12607
12584
  je.stockholm = 18.058277777778;
12608
12585
  je.athens = 23.7163375;
12609
12586
  je.oslo = 10.722916666667;
12610
- const Dl = {
12587
+ const Pl = {
12611
12588
  ft: { to_meter: 0.3048 },
12612
12589
  "us-ft": { to_meter: 1200 / 3937 }
12613
12590
  };
@@ -12703,7 +12680,7 @@ function ko(i) {
12703
12680
  },
12704
12681
  units: function(M) {
12705
12682
  r.units = M;
12706
- var C = Ki(Dl, M);
12683
+ var C = Ki(Pl, M);
12707
12684
  C && (r.to_meter = C.to_meter);
12708
12685
  },
12709
12686
  from_greenwich: function(M) {
@@ -12728,7 +12705,7 @@ function ko(i) {
12728
12705
  d = o[c], c in _ ? (m = _[c], typeof m == "function" ? m(d) : r[m] = d) : r[c] = d;
12729
12706
  return typeof r.datumCode == "string" && r.datumCode !== "WGS84" && (r.datumCode = r.datumCode.toLowerCase()), r;
12730
12707
  }
12731
- var rr = 1, xh = 2, Lh = 3, Ma = 4, bh = 5, To = -1, Ol = /\s/, Il = /[A-Za-z]/, Rl = /[A-Za-z84_]/, Ea = /[,\]]/, Ch = /[\d\.E\-\+]/;
12708
+ var rr = 1, xh = 2, Lh = 3, Ma = 4, bh = 5, To = -1, Al = /\s/, Tl = /[A-Za-z]/, Sl = /[A-Za-z84_]/, Ea = /[,\]]/, Ch = /[\d\.E\-\+]/;
12732
12709
  function Si(i) {
12733
12710
  if (typeof i != "string")
12734
12711
  throw new Error("not a string");
@@ -12737,7 +12714,7 @@ function Si(i) {
12737
12714
  Si.prototype.readCharicter = function() {
12738
12715
  var i = this.text[this.place++];
12739
12716
  if (this.state !== Ma)
12740
- for (; Ol.test(i); ) {
12717
+ for (; Al.test(i); ) {
12741
12718
  if (this.place >= this.text.length)
12742
12719
  return;
12743
12720
  i = this.text[this.place++];
@@ -12797,7 +12774,7 @@ Si.prototype.quoted = function(i) {
12797
12774
  this.word += i;
12798
12775
  };
12799
12776
  Si.prototype.keyword = function(i) {
12800
- if (Rl.test(i)) {
12777
+ if (Sl.test(i)) {
12801
12778
  this.word += i;
12802
12779
  return;
12803
12780
  }
@@ -12813,7 +12790,7 @@ Si.prototype.keyword = function(i) {
12813
12790
  throw new Error(`havn't handled "` + i + '" in keyword yet, index ' + this.place);
12814
12791
  };
12815
12792
  Si.prototype.neutral = function(i) {
12816
- if (Il.test(i)) {
12793
+ if (Tl.test(i)) {
12817
12794
  this.word = i, this.state = xh;
12818
12795
  return;
12819
12796
  }
@@ -12838,7 +12815,7 @@ Si.prototype.output = function() {
12838
12815
  return this.root;
12839
12816
  throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
12840
12817
  };
12841
- function Fl(i) {
12818
+ function Dl(i) {
12842
12819
  var r = new Si(i);
12843
12820
  return r.output();
12844
12821
  }
@@ -12924,15 +12901,15 @@ function $n(i, r) {
12924
12901
  return Jo(r, o, i);
12925
12902
  }
12926
12903
  }
12927
- var zl = 0.017453292519943295;
12928
- function Nl(i, r) {
12904
+ var Ol = 0.017453292519943295;
12905
+ function Il(i, r) {
12929
12906
  var o = r[0], c = r[1];
12930
12907
  !(o in i) && c in i && (i[o] = i[c], r.length === 3 && (i[o] = r[2](i[o])));
12931
12908
  }
12932
12909
  function _i(i) {
12933
- return i * zl;
12910
+ return i * Ol;
12934
12911
  }
12935
- function Gl(i) {
12912
+ function Rl(i) {
12936
12913
  if (i.type === "GEOGCS" ? i.projName = "longlat" : i.type === "LOCAL_CS" ? (i.projName = "identity", i.local = !0) : typeof i.PROJECTION == "object" ? i.projName = Object.keys(i.PROJECTION)[0] : i.projName = i.PROJECTION, i.AXIS) {
12937
12914
  for (var r = "", o = 0, c = i.AXIS.length; o < c; ++o) {
12938
12915
  var d = [i.AXIS[o][0].toLowerCase(), i.AXIS[o][1].toLowerCase()];
@@ -12944,11 +12921,11 @@ function Gl(i) {
12944
12921
  var m = i.GEOGCS;
12945
12922
  i.type === "GEOGCS" && (m = i), m && (m.DATUM ? i.datumCode = m.DATUM.name.toLowerCase() : i.datumCode = m.name.toLowerCase(), i.datumCode.slice(0, 2) === "d_" && (i.datumCode = i.datumCode.slice(2)), (i.datumCode === "new_zealand_geodetic_datum_1949" || i.datumCode === "new_zealand_1949") && (i.datumCode = "nzgd49"), (i.datumCode === "wgs_1984" || i.datumCode === "world_geodetic_system_1984") && (i.PROJECTION === "Mercator_Auxiliary_Sphere" && (i.sphere = !0), i.datumCode = "wgs84"), i.datumCode.slice(-6) === "_ferro" && (i.datumCode = i.datumCode.slice(0, -6)), i.datumCode.slice(-8) === "_jakarta" && (i.datumCode = i.datumCode.slice(0, -8)), ~i.datumCode.indexOf("belge") && (i.datumCode = "rnb72"), m.DATUM && m.DATUM.SPHEROID && (i.ellps = m.DATUM.SPHEROID.name.replace("_19", "").replace(/[Cc]larke\_18/, "clrk"), i.ellps.toLowerCase().slice(0, 13) === "international" && (i.ellps = "intl"), i.a = m.DATUM.SPHEROID.a, i.rf = parseFloat(m.DATUM.SPHEROID.rf, 10)), m.DATUM && m.DATUM.TOWGS84 && (i.datum_params = m.DATUM.TOWGS84), ~i.datumCode.indexOf("osgb_1936") && (i.datumCode = "osgb36"), ~i.datumCode.indexOf("osni_1952") && (i.datumCode = "osni52"), (~i.datumCode.indexOf("tm65") || ~i.datumCode.indexOf("geodetic_datum_of_1965")) && (i.datumCode = "ire65"), i.datumCode === "ch1903+" && (i.datumCode = "ch1903"), ~i.datumCode.indexOf("israel") && (i.datumCode = "isr93")), i.b && !isFinite(i.b) && (i.b = i.a);
12946
12923
  function _(D) {
12947
- var Z = i.to_meter || 1;
12948
- return D * Z;
12924
+ var j = i.to_meter || 1;
12925
+ return D * j;
12949
12926
  }
12950
12927
  var M = function(D) {
12951
- return Nl(i, D);
12928
+ return Il(i, D);
12952
12929
  }, C = [
12953
12930
  ["standard_parallel_1", "Standard_Parallel_1"],
12954
12931
  ["standard_parallel_1", "Latitude of 1st standard parallel"],
@@ -12989,10 +12966,10 @@ function Gl(i) {
12989
12966
  C.forEach(M), !i.long0 && i.longc && (i.projName === "Albers_Conic_Equal_Area" || i.projName === "Lambert_Azimuthal_Equal_Area") && (i.long0 = i.longc), !i.lat_ts && i.lat1 && (i.projName === "Stereographic_South_Pole" || i.projName === "Polar Stereographic (variant B)") ? (i.lat0 = _i(i.lat1 > 0 ? 90 : -90), i.lat_ts = i.lat1) : !i.lat_ts && i.lat0 && i.projName === "Polar_Stereographic" && (i.lat_ts = i.lat0, i.lat0 = _i(i.lat0 > 0 ? 90 : -90));
12990
12967
  }
12991
12968
  function wh(i) {
12992
- var r = Fl(i), o = r.shift(), c = r.shift();
12969
+ var r = Dl(i), o = r.shift(), c = r.shift();
12993
12970
  r.unshift(["name", c]), r.unshift(["type", o]);
12994
12971
  var d = {};
12995
- return $n(r, d), Gl(d), d;
12972
+ return $n(r, d), Rl(d), d;
12996
12973
  }
12997
12974
  function Se(i) {
12998
12975
  var r = this;
@@ -13011,47 +12988,47 @@ function Se(i) {
13011
12988
  return;
13012
12989
  }
13013
12990
  }
13014
- kl(Se);
13015
- function jl(i) {
12991
+ bl(Se);
12992
+ function Fl(i) {
13016
12993
  return typeof i == "string";
13017
12994
  }
13018
- function Zl(i) {
12995
+ function zl(i) {
13019
12996
  return i in Se;
13020
12997
  }
13021
- var Ul = ["PROJECTEDCRS", "PROJCRS", "GEOGCS", "GEOCCS", "PROJCS", "LOCAL_CS", "GEODCRS", "GEODETICCRS", "GEODETICDATUM", "ENGCRS", "ENGINEERINGCRS"];
13022
- function ql(i) {
13023
- return Ul.some(function(r) {
12998
+ var Nl = ["PROJECTEDCRS", "PROJCRS", "GEOGCS", "GEOCCS", "PROJCS", "LOCAL_CS", "GEODCRS", "GEODETICCRS", "GEODETICDATUM", "ENGCRS", "ENGINEERINGCRS"];
12999
+ function Gl(i) {
13000
+ return Nl.some(function(r) {
13024
13001
  return i.indexOf(r) > -1;
13025
13002
  });
13026
13003
  }
13027
- var Vl = ["3857", "900913", "3785", "102113"];
13028
- function Hl(i) {
13004
+ var jl = ["3857", "900913", "3785", "102113"];
13005
+ function Zl(i) {
13029
13006
  var r = Ki(i, "authority");
13030
13007
  if (r) {
13031
13008
  var o = Ki(r, "epsg");
13032
- return o && Vl.indexOf(o) > -1;
13009
+ return o && jl.indexOf(o) > -1;
13033
13010
  }
13034
13011
  }
13035
- function Kl(i) {
13012
+ function Ul(i) {
13036
13013
  var r = Ki(i, "extension");
13037
13014
  if (r)
13038
13015
  return Ki(r, "proj4");
13039
13016
  }
13040
- function $l(i) {
13017
+ function ql(i) {
13041
13018
  return i[0] === "+";
13042
13019
  }
13043
- function Wl(i) {
13044
- if (jl(i)) {
13045
- if (Zl(i))
13020
+ function Vl(i) {
13021
+ if (Fl(i)) {
13022
+ if (zl(i))
13046
13023
  return Se[i];
13047
- if (ql(i)) {
13024
+ if (Gl(i)) {
13048
13025
  var r = wh(i);
13049
- if (Hl(r))
13026
+ if (Zl(r))
13050
13027
  return Se["EPSG:3857"];
13051
- var o = Kl(r);
13028
+ var o = Ul(r);
13052
13029
  return o ? ko(o) : r;
13053
13030
  }
13054
- if ($l(i))
13031
+ if (ql(i))
13055
13032
  return ko(i);
13056
13033
  } else
13057
13034
  return i;
@@ -13085,11 +13062,11 @@ function ar(i, r) {
13085
13062
  return m;
13086
13063
  return -9999;
13087
13064
  }
13088
- function Xl() {
13065
+ function Hl() {
13089
13066
  var i = this.b / this.a;
13090
13067
  this.es = 1 - i * i, "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 = yi(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
13091
13068
  }
13092
- function Yl(i) {
13069
+ function Kl(i) {
13093
13070
  var r = i.x, o = i.y;
13094
13071
  if (o * mi > 90 && o * mi < -90 && r * mi > 180 && r * mi < -180)
13095
13072
  return null;
@@ -13104,7 +13081,7 @@ function Yl(i) {
13104
13081
  }
13105
13082
  return i.x = c, i.y = d, i;
13106
13083
  }
13107
- function Ql(i) {
13084
+ function $l(i) {
13108
13085
  var r = i.x - this.x0, o = i.y - this.y0, c, d;
13109
13086
  if (this.sphere)
13110
13087
  d = ot - 2 * Math.atan(Math.exp(-o / (this.a * this.k0)));
@@ -13115,46 +13092,46 @@ function Ql(i) {
13115
13092
  }
13116
13093
  return c = ct(this.long0 + r / (this.a * this.k0)), i.x = c, i.y = d, i;
13117
13094
  }
13118
- var Jl = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "merc"];
13119
- const tu = {
13120
- init: Xl,
13121
- forward: Yl,
13122
- inverse: Ql,
13123
- names: Jl
13095
+ var Wl = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "merc"];
13096
+ const Xl = {
13097
+ init: Hl,
13098
+ forward: Kl,
13099
+ inverse: $l,
13100
+ names: Wl
13124
13101
  };
13125
- function eu() {
13102
+ function Yl() {
13126
13103
  }
13127
13104
  function eh(i) {
13128
13105
  return i;
13129
13106
  }
13130
- var iu = ["longlat", "identity"];
13131
- const nu = {
13132
- init: eu,
13107
+ var Ql = ["longlat", "identity"];
13108
+ const Jl = {
13109
+ init: Yl,
13133
13110
  forward: eh,
13134
13111
  inverse: eh,
13135
- names: iu
13112
+ names: Ql
13136
13113
  };
13137
- var su = [tu, nu], ga = {}, xa = [];
13114
+ var tu = [Xl, Jl], ga = {}, xa = [];
13138
13115
  function Eh(i, r) {
13139
13116
  var o = xa.length;
13140
13117
  return i.names ? (xa[o] = i, i.names.forEach(function(c) {
13141
13118
  ga[c.toLowerCase()] = o;
13142
13119
  }), this) : (console.log(r), !0);
13143
13120
  }
13144
- function ru(i) {
13121
+ function eu(i) {
13145
13122
  if (!i)
13146
13123
  return !1;
13147
13124
  var r = i.toLowerCase();
13148
13125
  if (typeof ga[r] < "u" && xa[ga[r]])
13149
13126
  return xa[ga[r]];
13150
13127
  }
13151
- function au() {
13152
- su.forEach(Eh);
13128
+ function iu() {
13129
+ tu.forEach(Eh);
13153
13130
  }
13154
- const ou = {
13155
- start: au,
13131
+ const nu = {
13132
+ start: iu,
13156
13133
  add: Eh,
13157
- get: ru
13134
+ get: eu
13158
13135
  };
13159
13136
  var Et = {};
13160
13137
  Et.MERIT = {
@@ -13368,7 +13345,7 @@ Et.WGS7 = {
13368
13345
  rf: 298.26,
13369
13346
  ellipseName: "WGS 72"
13370
13347
  };
13371
- var hu = Et.WGS84 = {
13348
+ var su = Et.WGS84 = {
13372
13349
  a: 6378137,
13373
13350
  rf: 298.257223563,
13374
13351
  ellipseName: "WGS 84"
@@ -13378,9 +13355,9 @@ Et.sphere = {
13378
13355
  b: 6370997,
13379
13356
  ellipseName: "Normal Sphere (r=6370997)"
13380
13357
  };
13381
- function lu(i, r, o, c) {
13358
+ function ru(i, r, o, c) {
13382
13359
  var d = i * i, m = r * r, _ = (d - m) / d, M = 0;
13383
- c ? (i *= 1 - _ * (Al + _ * (Tl + _ * Sl)), d = i * i, _ = 0) : M = Math.sqrt(_);
13360
+ c ? (i *= 1 - _ * (El + _ * (kl + _ * Bl)), d = i * i, _ = 0) : M = Math.sqrt(_);
13384
13361
  var C = (d - m) / m;
13385
13362
  return {
13386
13363
  es: _,
@@ -13388,10 +13365,10 @@ function lu(i, r, o, c) {
13388
13365
  ep2: C
13389
13366
  };
13390
13367
  }
13391
- function uu(i, r, o, c, d) {
13368
+ function au(i, r, o, c, d) {
13392
13369
  if (!i) {
13393
13370
  var m = Ki(Et, c);
13394
- m || (m = hu), i = m.a, r = m.b, o = m.rf;
13371
+ m || (m = su), i = m.a, r = m.b, o = m.rf;
13395
13372
  }
13396
13373
  return o && !r && (r = (1 - 1 / o) * i), (o === 0 || Math.abs(i - r) < ut) && (d = !0, r = i), {
13397
13374
  a: i,
@@ -13491,22 +13468,22 @@ pe.rnb72 = {
13491
13468
  ellipse: "intl",
13492
13469
  datumName: "Reseau National Belge 1972"
13493
13470
  };
13494
- function cu(i, r, o, c, d, m, _) {
13471
+ function ou(i, r, o, c, d, m, _) {
13495
13472
  var M = {};
13496
- return i === void 0 || i === "none" ? M.datum_type = Eo : M.datum_type = Bl, r && (M.datum_params = r.map(parseFloat), (M.datum_params[0] !== 0 || M.datum_params[1] !== 0 || M.datum_params[2] !== 0) && (M.datum_type = _n), M.datum_params.length > 3 && (M.datum_params[3] !== 0 || M.datum_params[4] !== 0 || M.datum_params[5] !== 0 || M.datum_params[6] !== 0) && (M.datum_type = mn, M.datum_params[3] *= Js, M.datum_params[4] *= Js, M.datum_params[5] *= Js, M.datum_params[6] = M.datum_params[6] / 1e6 + 1)), _ && (M.datum_type = Qn, M.grids = _), M.a = o, M.b = c, M.es = d, M.ep2 = m, M;
13473
+ return i === void 0 || i === "none" ? M.datum_type = Eo : M.datum_type = Cl, r && (M.datum_params = r.map(parseFloat), (M.datum_params[0] !== 0 || M.datum_params[1] !== 0 || M.datum_params[2] !== 0) && (M.datum_type = _n), M.datum_params.length > 3 && (M.datum_params[3] !== 0 || M.datum_params[4] !== 0 || M.datum_params[5] !== 0 || M.datum_params[6] !== 0) && (M.datum_type = mn, M.datum_params[3] *= Js, M.datum_params[4] *= Js, M.datum_params[5] *= Js, M.datum_params[6] = M.datum_params[6] / 1e6 + 1)), _ && (M.datum_type = Qn, M.grids = _), M.a = o, M.b = c, M.es = d, M.ep2 = m, M;
13497
13474
  }
13498
13475
  var kh = {};
13499
- function du(i, r) {
13500
- var o = new DataView(r), c = _u(o), d = mu(o, c), m = gu(o, d, c), _ = { header: d, subgrids: m };
13476
+ function hu(i, r) {
13477
+ var o = new DataView(r), c = cu(o), d = du(o, c), m = fu(o, d, c), _ = { header: d, subgrids: m };
13501
13478
  return kh[i] = _, _;
13502
13479
  }
13503
- function fu(i) {
13480
+ function lu(i) {
13504
13481
  if (i === void 0)
13505
13482
  return null;
13506
13483
  var r = i.split(",");
13507
- return r.map(pu);
13484
+ return r.map(uu);
13508
13485
  }
13509
- function pu(i) {
13486
+ function uu(i) {
13510
13487
  if (i.length === 0)
13511
13488
  return null;
13512
13489
  var r = i[0] === "@";
@@ -13520,11 +13497,11 @@ function pu(i) {
13520
13497
  function Wn(i) {
13521
13498
  return i / 3600 * Math.PI / 180;
13522
13499
  }
13523
- function _u(i) {
13500
+ function cu(i) {
13524
13501
  var r = i.getInt32(8, !1);
13525
13502
  return r === 11 ? !1 : (r = i.getInt32(8, !0), r !== 11 && console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"), !0);
13526
13503
  }
13527
- function mu(i, r) {
13504
+ function du(i, r) {
13528
13505
  return {
13529
13506
  nFields: i.getInt32(8, r),
13530
13507
  nSubgridFields: i.getInt32(24, r),
@@ -13539,9 +13516,9 @@ function mu(i, r) {
13539
13516
  function Bo(i, r, o) {
13540
13517
  return String.fromCharCode.apply(null, new Uint8Array(i.buffer.slice(r, o)));
13541
13518
  }
13542
- function gu(i, r, o) {
13519
+ function fu(i, r, o) {
13543
13520
  for (var c = 176, d = [], m = 0; m < r.nSubgrids; m++) {
13544
- var _ = vu(i, c, o), M = Mu(i, c, _, o), C = Math.round(
13521
+ var _ = _u(i, c, o), M = mu(i, c, _, o), C = Math.round(
13545
13522
  1 + (_.upperLongitude - _.lowerLongitude) / _.longitudeInterval
13546
13523
  ), D = Math.round(
13547
13524
  1 + (_.upperLatitude - _.lowerLatitude) / _.latitudeInterval
@@ -13551,17 +13528,17 @@ function gu(i, r, o) {
13551
13528
  del: [Wn(_.longitudeInterval), Wn(_.latitudeInterval)],
13552
13529
  lim: [C, D],
13553
13530
  count: _.gridNodeCount,
13554
- cvs: yu(M)
13531
+ cvs: pu(M)
13555
13532
  }), c += 176 + _.gridNodeCount * 16;
13556
13533
  }
13557
13534
  return d;
13558
13535
  }
13559
- function yu(i) {
13536
+ function pu(i) {
13560
13537
  return i.map(function(r) {
13561
13538
  return [Wn(r.longitudeShift), Wn(r.latitudeShift)];
13562
13539
  });
13563
13540
  }
13564
- function vu(i, r, o) {
13541
+ function _u(i, r, o) {
13565
13542
  return {
13566
13543
  name: Bo(i, r + 8, r + 16).trim(),
13567
13544
  parent: Bo(i, r + 24, r + 24 + 8).trim(),
@@ -13574,7 +13551,7 @@ function vu(i, r, o) {
13574
13551
  gridNodeCount: i.getInt32(r + 168, o)
13575
13552
  };
13576
13553
  }
13577
- function Mu(i, r, o, c) {
13554
+ function mu(i, r, o, c) {
13578
13555
  for (var d = r + 176, m = 16, _ = [], M = 0; M < o.gridNodeCount; M++) {
13579
13556
  var C = {
13580
13557
  latitudeShift: i.getFloat32(d + M * m, c),
@@ -13593,7 +13570,7 @@ function gi(i, r) {
13593
13570
  if (D)
13594
13571
  throw D;
13595
13572
  };
13596
- var o = Wl(i);
13573
+ var o = Vl(i);
13597
13574
  if (typeof o != "object") {
13598
13575
  r("Could not parse to valid json: " + i);
13599
13576
  return;
@@ -13608,7 +13585,7 @@ function gi(i, r) {
13608
13585
  d && (o.datum_params = o.datum_params || (d.towgs84 ? d.towgs84.split(",") : null), o.ellps = d.ellipse, o.datumName = d.datumName ? d.datumName : o.datumCode);
13609
13586
  }
13610
13587
  o.k0 = o.k0 || 1, o.axis = o.axis || "enu", o.ellps = o.ellps || "wgs84", o.lat1 = o.lat1 || o.lat0;
13611
- var m = uu(o.a, o.b, o.rf, o.ellps, o.sphere), _ = lu(m.a, m.b, m.rf, o.R_A), M = fu(o.nadgrids), C = o.datum || cu(
13588
+ var m = au(o.a, o.b, o.rf, o.ellps, o.sphere), _ = ru(m.a, m.b, m.rf, o.R_A), M = lu(o.nadgrids), C = o.datum || ou(
13612
13589
  o.datumCode,
13613
13590
  o.datum_params,
13614
13591
  m.a,
@@ -13619,9 +13596,9 @@ function gi(i, r) {
13619
13596
  );
13620
13597
  th(this, o), th(this, c), this.a = m.a, this.b = m.b, this.rf = m.rf, this.sphere = m.sphere, this.es = _.es, this.e = _.e, this.ep2 = _.ep2, this.datum = C, this.init(), r(null, this);
13621
13598
  }
13622
- gi.projections = ou;
13599
+ gi.projections = nu;
13623
13600
  gi.projections.start();
13624
- function xu(i, r) {
13601
+ function gu(i, r) {
13625
13602
  return i.datum_type !== r.datum_type || i.a !== r.a || Math.abs(i.es - r.es) > 5e-11 ? !1 : i.datum_type === _n ? i.datum_params[0] === r.datum_params[0] && i.datum_params[1] === r.datum_params[1] && i.datum_params[2] === r.datum_params[2] : i.datum_type === mn ? i.datum_params[0] === r.datum_params[0] && i.datum_params[1] === r.datum_params[1] && i.datum_params[2] === r.datum_params[2] && i.datum_params[3] === r.datum_params[3] && i.datum_params[4] === r.datum_params[4] && i.datum_params[5] === r.datum_params[5] && i.datum_params[6] === r.datum_params[6] : !0;
13626
13603
  }
13627
13604
  function Bh(i, r, o) {
@@ -13643,7 +13620,7 @@ function Bh(i, r, o) {
13643
13620
  };
13644
13621
  }
13645
13622
  function Ph(i, r, o, c) {
13646
- var d = 1e-12, m = d * d, _ = 30, M, C, D, Z, R, H, et, nt, it, ht, pt, Mt, yt, St = i.x, Tt = i.y, Pt = i.z ? i.z : 0, Qt, Kt, ve;
13623
+ var d = 1e-12, m = d * d, _ = 30, M, C, D, j, R, H, et, nt, it, ht, pt, Mt, yt, St = i.x, Tt = i.y, Pt = i.z ? i.z : 0, Qt, Kt, ve;
13647
13624
  if (M = Math.sqrt(St * St + Tt * Tt), C = Math.sqrt(St * St + Tt * Tt + Pt * Pt), M / o < d) {
13648
13625
  if (Qt = 0, C / o < d)
13649
13626
  return Kt = ot, ve = -c, {
@@ -13653,9 +13630,9 @@ function Ph(i, r, o, c) {
13653
13630
  };
13654
13631
  } else
13655
13632
  Qt = Math.atan2(Tt, St);
13656
- D = Pt / C, Z = M / C, R = 1 / Math.sqrt(1 - r * (2 - r) * Z * Z), nt = Z * (1 - r) * R, it = D * R, yt = 0;
13633
+ D = Pt / C, j = M / C, R = 1 / Math.sqrt(1 - r * (2 - r) * j * j), nt = j * (1 - r) * R, it = D * R, yt = 0;
13657
13634
  do
13658
- yt++, et = o / Math.sqrt(1 - r * it * it), ve = M * nt + Pt * it - et * (1 - r * it * it), H = r * et / (et + ve), R = 1 / Math.sqrt(1 - H * (2 - H) * Z * Z), ht = Z * (1 - H) * R, pt = D * R, Mt = pt * nt - ht * it, nt = ht, it = pt;
13635
+ yt++, et = o / Math.sqrt(1 - r * it * it), ve = M * nt + Pt * it - et * (1 - r * it * it), H = r * et / (et + ve), R = 1 / Math.sqrt(1 - H * (2 - H) * j * j), ht = j * (1 - H) * R, pt = D * R, Mt = pt * nt - ht * it, nt = ht, it = pt;
13659
13636
  while (Mt * Mt > m && yt < _);
13660
13637
  return Kt = Math.atan(pt / Math.abs(ht)), {
13661
13638
  x: Qt,
@@ -13663,7 +13640,7 @@ function Ph(i, r, o, c) {
13663
13640
  z: ve
13664
13641
  };
13665
13642
  }
13666
- function Lu(i, r, o) {
13643
+ function yu(i, r, o) {
13667
13644
  if (r === _n)
13668
13645
  return {
13669
13646
  x: i.x + o[0],
@@ -13679,7 +13656,7 @@ function Lu(i, r, o) {
13679
13656
  };
13680
13657
  }
13681
13658
  }
13682
- function bu(i, r, o) {
13659
+ function vu(i, r, o) {
13683
13660
  if (r === _n)
13684
13661
  return {
13685
13662
  x: i.x - o[0],
@@ -13687,19 +13664,19 @@ function bu(i, r, o) {
13687
13664
  z: i.z - o[2]
13688
13665
  };
13689
13666
  if (r === mn) {
13690
- var c = o[0], d = o[1], m = o[2], _ = o[3], M = o[4], C = o[5], D = o[6], Z = (i.x - c) / D, R = (i.y - d) / D, H = (i.z - m) / D;
13667
+ var c = o[0], d = o[1], m = o[2], _ = o[3], M = o[4], C = o[5], D = o[6], j = (i.x - c) / D, R = (i.y - d) / D, H = (i.z - m) / D;
13691
13668
  return {
13692
- x: Z + C * R - M * H,
13693
- y: -C * Z + R + _ * H,
13694
- z: M * Z - _ * R + H
13669
+ x: j + C * R - M * H,
13670
+ y: -C * j + R + _ * H,
13671
+ z: M * j - _ * R + H
13695
13672
  };
13696
13673
  }
13697
13674
  }
13698
13675
  function fa(i) {
13699
13676
  return i === _n || i === mn;
13700
13677
  }
13701
- function Cu(i, r, o) {
13702
- if (xu(i, r) || i.datum_type === Eo || r.datum_type === Eo)
13678
+ function Mu(i, r, o) {
13679
+ if (gu(i, r) || i.datum_type === Eo || r.datum_type === Eo)
13703
13680
  return o;
13704
13681
  var c = i.a, d = i.es;
13705
13682
  if (i.datum_type === Qn) {
@@ -13709,9 +13686,9 @@ function Cu(i, r, o) {
13709
13686
  c = Xo, d = Yo;
13710
13687
  }
13711
13688
  var _ = r.a, M = r.b, C = r.es;
13712
- if (r.datum_type === Qn && (_ = Xo, M = Pl, C = Yo), d === C && c === _ && !fa(i.datum_type) && !fa(r.datum_type))
13689
+ if (r.datum_type === Qn && (_ = Xo, M = wl, C = Yo), d === C && c === _ && !fa(i.datum_type) && !fa(r.datum_type))
13713
13690
  return o;
13714
- if (o = Bh(o, d, c), fa(i.datum_type) && (o = Lu(o, i.datum_type, i.datum_params)), fa(r.datum_type) && (o = bu(o, r.datum_type, r.datum_params)), o = Ph(o, C, _, M), r.datum_type === Qn) {
13691
+ if (o = Bh(o, d, c), fa(i.datum_type) && (o = yu(o, i.datum_type, i.datum_params)), fa(r.datum_type) && (o = vu(o, r.datum_type, r.datum_params)), o = Ph(o, C, _, M), r.datum_type === Qn) {
13715
13692
  var D = ih(r, !0, o);
13716
13693
  if (D !== 0)
13717
13694
  return;
@@ -13734,15 +13711,15 @@ function ih(i, r, o) {
13734
13711
  return console.log("Unable to find mandatory grid '" + M.name + "'"), -1;
13735
13712
  continue;
13736
13713
  }
13737
- for (var C = M.grid.subgrids, D = 0, Z = C.length; D < Z; D++) {
13714
+ for (var C = M.grid.subgrids, D = 0, j = C.length; D < j; D++) {
13738
13715
  var R = C[D], H = (Math.abs(R.del[1]) + Math.abs(R.del[0])) / 1e4, et = R.ll[0] - H, nt = R.ll[1] - H, it = R.ll[0] + (R.lim[0] - 1) * R.del[0] + H, ht = R.ll[1] + (R.lim[1] - 1) * R.del[1] + H;
13739
- if (!(nt > c.y || et > c.x || ht < c.y || it < c.x) && (d = wu(c, r, R), !isNaN(d.x)))
13716
+ if (!(nt > c.y || et > c.x || ht < c.y || it < c.x) && (d = xu(c, r, R), !isNaN(d.x)))
13740
13717
  break t;
13741
13718
  }
13742
13719
  }
13743
13720
  return isNaN(d.x) ? (console.log("Failed to find a grid shift table for location '" + -c.x * mi + " " + c.y * mi + " tried: '" + m + "'"), -1) : (o.x = -d.x, o.y = d.y, 0);
13744
13721
  }
13745
- function wu(i, r, o) {
13722
+ function xu(i, r, o) {
13746
13723
  var c = { x: Number.NaN, y: Number.NaN };
13747
13724
  if (isNaN(i.x))
13748
13725
  return c;
@@ -13779,8 +13756,8 @@ function nh(i, r) {
13779
13756
  _ += r.lim[0];
13780
13757
  var D = { x: r.cvs[_][0], y: r.cvs[_][1] };
13781
13758
  _--;
13782
- var Z = { x: r.cvs[_][0], y: r.cvs[_][1] }, R = d.x * d.y, H = d.x * (1 - d.y), et = (1 - d.x) * (1 - d.y), nt = (1 - d.x) * d.y;
13783
- return m.x = et * M.x + H * C.x + nt * Z.x + R * D.x, m.y = et * M.y + H * C.y + nt * Z.y + R * D.y, m;
13759
+ var j = { x: r.cvs[_][0], y: r.cvs[_][1] }, R = d.x * d.y, H = d.x * (1 - d.y), et = (1 - d.x) * (1 - d.y), nt = (1 - d.x) * d.y;
13760
+ return m.x = et * M.x + H * C.x + nt * j.x + R * D.x, m.y = et * M.y + H * C.y + nt * j.y + R * D.y, m;
13784
13761
  }
13785
13762
  function sh(i, r, o) {
13786
13763
  var c = o.x, d = o.y, m = o.z || 0, _, M, C, D = {};
@@ -13817,7 +13794,7 @@ function Ah(i) {
13817
13794
  };
13818
13795
  return i.length > 2 && (r.z = i[2]), i.length > 3 && (r.m = i[3]), r;
13819
13796
  }
13820
- function Eu(i) {
13797
+ function Lu(i) {
13821
13798
  rh(i.x), rh(i.y);
13822
13799
  }
13823
13800
  function rh(i) {
@@ -13829,7 +13806,7 @@ function rh(i) {
13829
13806
  if (typeof i != "number" || i !== i || !isFinite(i))
13830
13807
  throw new TypeError("coordinates must be finite numbers");
13831
13808
  }
13832
- function ku(i, r) {
13809
+ function bu(i, r) {
13833
13810
  return (i.datum.datum_type === _n || i.datum.datum_type === mn || i.datum.datum_type === Qn) && r.datumCode !== "WGS84" || (r.datum.datum_type === _n || r.datum.datum_type === mn || r.datum.datum_type === Qn) && i.datumCode !== "WGS84";
13834
13811
  }
13835
13812
  function La(i, r, o, c) {
@@ -13841,7 +13818,7 @@ function La(i, r, o, c) {
13841
13818
  m: o.m
13842
13819
  };
13843
13820
  var m = o.z !== void 0;
13844
- if (Eu(o), i.datum && r.datum && ku(i, r) && (d = new gi("WGS84"), o = La(i, d, o, c), i = d), c && i.axis !== "enu" && (o = sh(i, !1, o)), i.projName === "longlat")
13821
+ if (Lu(o), i.datum && r.datum && bu(i, r) && (d = new gi("WGS84"), o = La(i, d, o, c), i = d), c && i.axis !== "enu" && (o = sh(i, !1, o)), i.projName === "longlat")
13845
13822
  o = {
13846
13823
  x: o.x * ye,
13847
13824
  y: o.y * ye,
@@ -13853,7 +13830,7 @@ function La(i, r, o, c) {
13853
13830
  z: o.z || 0
13854
13831
  }), o = i.inverse(o), !o)
13855
13832
  return;
13856
- if (i.from_greenwich && (o.x += i.from_greenwich), o = Cu(i.datum, r.datum, o), !!o)
13833
+ if (i.from_greenwich && (o.x += i.from_greenwich), o = Mu(i.datum, r.datum, o), !!o)
13857
13834
  return r.from_greenwich && (o = {
13858
13835
  x: o.x - r.from_greenwich,
13859
13836
  y: o.y,
@@ -13896,18 +13873,18 @@ function Ve(i, r, o) {
13896
13873
  }, c && (d.oProj = r), d);
13897
13874
  }
13898
13875
  var hh = 6, Th = "AJSAJS", Sh = "AFAFAF", Xn = 65, Ne = 73, Qe = 79, Xs = 86, Ys = 90;
13899
- const Bu = {
13876
+ const Cu = {
13900
13877
  forward: Dh,
13901
- inverse: Pu,
13878
+ inverse: wu,
13902
13879
  toPoint: Oh
13903
13880
  };
13904
13881
  function Dh(i, r) {
13905
- return r = r || 5, Su(Au({
13882
+ return r = r || 5, Bu(Eu({
13906
13883
  lat: i[1],
13907
13884
  lon: i[0]
13908
13885
  }), r);
13909
13886
  }
13910
- function Pu(i) {
13887
+ function wu(i) {
13911
13888
  var r = So(Rh(i.toUpperCase()));
13912
13889
  return r.lat && r.lon ? [r.lon, r.lat, r.lon, r.lat] : [r.left, r.bottom, r.right, r.top];
13913
13890
  }
@@ -13921,24 +13898,24 @@ function Co(i) {
13921
13898
  function lh(i) {
13922
13899
  return 180 * (i / Math.PI);
13923
13900
  }
13924
- function Au(i) {
13925
- var r = i.lat, o = i.lon, c = 6378137, d = 669438e-8, m = 0.9996, _, M, C, D, Z, R, H, et = Co(r), nt = Co(o), it, ht;
13926
- ht = Math.floor((o + 180) / 6) + 1, o === 180 && (ht = 60), r >= 56 && r < 64 && o >= 3 && o < 12 && (ht = 32), r >= 72 && r < 84 && (o >= 0 && o < 9 ? ht = 31 : o >= 9 && o < 21 ? ht = 33 : o >= 21 && o < 33 ? ht = 35 : o >= 33 && o < 42 && (ht = 37)), _ = (ht - 1) * 6 - 180 + 3, it = Co(_), M = d / (1 - d), C = c / Math.sqrt(1 - d * Math.sin(et) * Math.sin(et)), D = Math.tan(et) * Math.tan(et), Z = M * Math.cos(et) * Math.cos(et), R = Math.cos(et) * (nt - it), H = c * ((1 - d / 4 - 3 * d * d / 64 - 5 * d * d * d / 256) * et - (3 * d / 8 + 3 * d * d / 32 + 45 * d * d * d / 1024) * Math.sin(2 * et) + (15 * d * d / 256 + 45 * d * d * d / 1024) * Math.sin(4 * et) - 35 * d * d * d / 3072 * Math.sin(6 * et));
13927
- var pt = m * C * (R + (1 - D + Z) * R * R * R / 6 + (5 - 18 * D + D * D + 72 * Z - 58 * M) * R * R * R * R * R / 120) + 5e5, Mt = m * (H + C * Math.tan(et) * (R * R / 2 + (5 - D + 9 * Z + 4 * Z * Z) * R * R * R * R / 24 + (61 - 58 * D + D * D + 600 * Z - 330 * M) * R * R * R * R * R * R / 720));
13901
+ function Eu(i) {
13902
+ var r = i.lat, o = i.lon, c = 6378137, d = 669438e-8, m = 0.9996, _, M, C, D, j, R, H, et = Co(r), nt = Co(o), it, ht;
13903
+ ht = Math.floor((o + 180) / 6) + 1, o === 180 && (ht = 60), r >= 56 && r < 64 && o >= 3 && o < 12 && (ht = 32), r >= 72 && r < 84 && (o >= 0 && o < 9 ? ht = 31 : o >= 9 && o < 21 ? ht = 33 : o >= 21 && o < 33 ? ht = 35 : o >= 33 && o < 42 && (ht = 37)), _ = (ht - 1) * 6 - 180 + 3, it = Co(_), M = d / (1 - d), C = c / Math.sqrt(1 - d * Math.sin(et) * Math.sin(et)), D = Math.tan(et) * Math.tan(et), j = M * Math.cos(et) * Math.cos(et), R = Math.cos(et) * (nt - it), H = c * ((1 - d / 4 - 3 * d * d / 64 - 5 * d * d * d / 256) * et - (3 * d / 8 + 3 * d * d / 32 + 45 * d * d * d / 1024) * Math.sin(2 * et) + (15 * d * d / 256 + 45 * d * d * d / 1024) * Math.sin(4 * et) - 35 * d * d * d / 3072 * Math.sin(6 * et));
13904
+ var pt = m * C * (R + (1 - D + j) * R * R * R / 6 + (5 - 18 * D + D * D + 72 * j - 58 * M) * R * R * R * R * R / 120) + 5e5, Mt = m * (H + C * Math.tan(et) * (R * R / 2 + (5 - D + 9 * j + 4 * j * j) * R * R * R * R / 24 + (61 - 58 * D + D * D + 600 * j - 330 * M) * R * R * R * R * R * R / 720));
13928
13905
  return r < 0 && (Mt += 1e7), {
13929
13906
  northing: Math.round(Mt),
13930
13907
  easting: Math.round(pt),
13931
13908
  zoneNumber: ht,
13932
- zoneLetter: Tu(r)
13909
+ zoneLetter: ku(r)
13933
13910
  };
13934
13911
  }
13935
13912
  function So(i) {
13936
13913
  var r = i.northing, o = i.easting, c = i.zoneLetter, d = i.zoneNumber;
13937
13914
  if (d < 0 || d > 60)
13938
13915
  return null;
13939
- var m = 0.9996, _ = 6378137, M = 669438e-8, C, D = (1 - Math.sqrt(1 - M)) / (1 + Math.sqrt(1 - M)), Z, R, H, et, nt, it, ht, pt, Mt, yt = o - 5e5, St = r;
13940
- c < "N" && (St -= 1e7), ht = (d - 1) * 6 - 180 + 3, C = M / (1 - M), it = St / m, pt = it / (_ * (1 - M / 4 - 3 * M * M / 64 - 5 * M * M * M / 256)), Mt = pt + (3 * D / 2 - 27 * D * D * D / 32) * Math.sin(2 * pt) + (21 * D * D / 16 - 55 * D * D * D * D / 32) * Math.sin(4 * pt) + 151 * D * D * D / 96 * Math.sin(6 * pt), Z = _ / Math.sqrt(1 - M * Math.sin(Mt) * Math.sin(Mt)), R = Math.tan(Mt) * Math.tan(Mt), H = C * Math.cos(Mt) * Math.cos(Mt), et = _ * (1 - M) / Math.pow(1 - M * Math.sin(Mt) * Math.sin(Mt), 1.5), nt = yt / (Z * m);
13941
- var Tt = Mt - Z * Math.tan(Mt) / et * (nt * nt / 2 - (5 + 3 * R + 10 * H - 4 * H * H - 9 * C) * nt * nt * nt * nt / 24 + (61 + 90 * R + 298 * H + 45 * R * R - 252 * C - 3 * H * H) * nt * nt * nt * nt * nt * nt / 720);
13916
+ var m = 0.9996, _ = 6378137, M = 669438e-8, C, D = (1 - Math.sqrt(1 - M)) / (1 + Math.sqrt(1 - M)), j, R, H, et, nt, it, ht, pt, Mt, yt = o - 5e5, St = r;
13917
+ c < "N" && (St -= 1e7), ht = (d - 1) * 6 - 180 + 3, C = M / (1 - M), it = St / m, pt = it / (_ * (1 - M / 4 - 3 * M * M / 64 - 5 * M * M * M / 256)), Mt = pt + (3 * D / 2 - 27 * D * D * D / 32) * Math.sin(2 * pt) + (21 * D * D / 16 - 55 * D * D * D * D / 32) * Math.sin(4 * pt) + 151 * D * D * D / 96 * Math.sin(6 * pt), j = _ / Math.sqrt(1 - M * Math.sin(Mt) * Math.sin(Mt)), R = Math.tan(Mt) * Math.tan(Mt), H = C * Math.cos(Mt) * Math.cos(Mt), et = _ * (1 - M) / Math.pow(1 - M * Math.sin(Mt) * Math.sin(Mt), 1.5), nt = yt / (j * m);
13918
+ var Tt = Mt - j * Math.tan(Mt) / et * (nt * nt / 2 - (5 + 3 * R + 10 * H - 4 * H * H - 9 * C) * nt * nt * nt * nt / 24 + (61 + 90 * R + 298 * H + 45 * R * R - 252 * C - 3 * H * H) * nt * nt * nt * nt * nt * nt / 720);
13942
13919
  Tt = lh(Tt);
13943
13920
  var Pt = (nt - (1 + 2 * R + H) * nt * nt * nt / 6 + (5 - 2 * H + 28 * R - 3 * H * H + 8 * C + 24 * R * R) * nt * nt * nt * nt * nt / 120) / Math.cos(Mt);
13944
13921
  Pt = ht + lh(Pt);
@@ -13963,23 +13940,23 @@ function So(i) {
13963
13940
  };
13964
13941
  return Qt;
13965
13942
  }
13966
- function Tu(i) {
13943
+ function ku(i) {
13967
13944
  var r = "Z";
13968
13945
  return 84 >= i && i >= 72 ? r = "X" : 72 > i && i >= 64 ? r = "W" : 64 > i && i >= 56 ? r = "V" : 56 > i && i >= 48 ? r = "U" : 48 > i && i >= 40 ? r = "T" : 40 > i && i >= 32 ? r = "S" : 32 > i && i >= 24 ? r = "R" : 24 > i && i >= 16 ? r = "Q" : 16 > i && i >= 8 ? r = "P" : 8 > i && i >= 0 ? r = "N" : 0 > i && i >= -8 ? r = "M" : -8 > i && i >= -16 ? r = "L" : -16 > i && i >= -24 ? r = "K" : -24 > i && i >= -32 ? r = "J" : -32 > i && i >= -40 ? r = "H" : -40 > i && i >= -48 ? r = "G" : -48 > i && i >= -56 ? r = "F" : -56 > i && i >= -64 ? r = "E" : -64 > i && i >= -72 ? r = "D" : -72 > i && i >= -80 && (r = "C"), r;
13969
13946
  }
13970
- function Su(i, r) {
13947
+ function Bu(i, r) {
13971
13948
  var o = "00000" + i.easting, c = "00000" + i.northing;
13972
- return i.zoneNumber + i.zoneLetter + Du(i.easting, i.northing, i.zoneNumber) + o.substr(o.length - 5, r) + c.substr(c.length - 5, r);
13949
+ return i.zoneNumber + i.zoneLetter + Pu(i.easting, i.northing, i.zoneNumber) + o.substr(o.length - 5, r) + c.substr(c.length - 5, r);
13973
13950
  }
13974
- function Du(i, r, o) {
13951
+ function Pu(i, r, o) {
13975
13952
  var c = Ih(o), d = Math.floor(i / 1e5), m = Math.floor(r / 1e5) % 20;
13976
- return Ou(d, m, c);
13953
+ return Au(d, m, c);
13977
13954
  }
13978
13955
  function Ih(i) {
13979
13956
  var r = i % hh;
13980
13957
  return r === 0 && (r = hh), r;
13981
13958
  }
13982
- function Ou(i, r, o) {
13959
+ function Au(i, r, o) {
13983
13960
  var c = o - 1, d = Th.charCodeAt(c), m = Sh.charCodeAt(c), _ = d + i - 1, M = m + r, C = !1;
13984
13961
  _ > Ys && (_ = _ - Ys + Xn - 1, C = !0), (_ === Ne || d < Ne && _ > Ne || (_ > Ne || d < Ne) && C) && _++, (_ === Qe || d < Qe && _ > Qe || (_ > Qe || d < Qe) && C) && (_++, _ === Ne && _++), _ > Ys && (_ = _ - Ys + Xn - 1), M > Xs ? (M = M - Xs + Xn - 1, C = !0) : C = !1, (M === Ne || m < Ne && M > Ne || (M > Ne || m < Ne) && C) && M++, (M === Qe || m < Qe && M > Qe || (M > Qe || m < Qe) && C) && (M++, M === Ne && M++), M > Xs && (M = M - Xs + Xn - 1);
13985
13962
  var D = String.fromCharCode(_) + String.fromCharCode(M);
@@ -14000,8 +13977,8 @@ function Rh(i) {
14000
13977
  if (M <= "A" || M === "B" || M === "Y" || M >= "Z" || M === "I" || M === "O")
14001
13978
  throw "MGRSPoint zone letter " + M + " not handled: " + i;
14002
13979
  o = i.substring(m, m += 2);
14003
- for (var C = Ih(_), D = Iu(o.charAt(0), C), Z = Ru(o.charAt(1), C); Z < Fu(M); )
14004
- Z += 2e6;
13980
+ for (var C = Ih(_), D = Tu(o.charAt(0), C), j = Su(o.charAt(1), C); j < Du(M); )
13981
+ j += 2e6;
14005
13982
  var R = r - m;
14006
13983
  if (R % 2 !== 0)
14007
13984
  throw `MGRSPoint has to have an even number
@@ -14009,7 +13986,7 @@ of digits after the zone letter and two 100km letters - front
14009
13986
  half for easting meters, second half for
14010
13987
  northing meters` + i;
14011
13988
  var H = R / 2, et = 0, nt = 0, it, ht, pt, Mt, yt;
14012
- return H > 0 && (it = 1e5 / Math.pow(10, H), ht = i.substring(m, m + H), et = parseFloat(ht) * it, pt = i.substring(m + H), nt = parseFloat(pt) * it), Mt = et + D, yt = nt + Z, {
13989
+ return H > 0 && (it = 1e5 / Math.pow(10, H), ht = i.substring(m, m + H), et = parseFloat(ht) * it, pt = i.substring(m + H), nt = parseFloat(pt) * it), Mt = et + D, yt = nt + j, {
14013
13990
  easting: Mt,
14014
13991
  northing: yt,
14015
13992
  zoneLetter: M,
@@ -14017,7 +13994,7 @@ northing meters` + i;
14017
13994
  accuracy: it
14018
13995
  };
14019
13996
  }
14020
- function Iu(i, r) {
13997
+ function Tu(i, r) {
14021
13998
  for (var o = Th.charCodeAt(r - 1), c = 1e5, d = !1; o !== i.charCodeAt(0); ) {
14022
13999
  if (o++, o === Ne && o++, o === Qe && o++, o > Ys) {
14023
14000
  if (d)
@@ -14028,7 +14005,7 @@ function Iu(i, r) {
14028
14005
  }
14029
14006
  return c;
14030
14007
  }
14031
- function Ru(i, r) {
14008
+ function Su(i, r) {
14032
14009
  if (i > "V")
14033
14010
  throw "MGRSPoint given invalid Northing " + i;
14034
14011
  for (var o = Sh.charCodeAt(r - 1), c = 0, d = !1; o !== i.charCodeAt(0); ) {
@@ -14041,7 +14018,7 @@ function Ru(i, r) {
14041
14018
  }
14042
14019
  return c;
14043
14020
  }
14044
- function Fu(i) {
14021
+ function Du(i) {
14045
14022
  var r;
14046
14023
  switch (i) {
14047
14024
  case "C":
@@ -14131,35 +14108,35 @@ ts.fromMGRS = function(i) {
14131
14108
  ts.prototype.toMGRS = function(i) {
14132
14109
  return Dh([this.x, this.y], i);
14133
14110
  };
14134
- var zu = 1, Nu = 0.25, uh = 0.046875, ch = 0.01953125, dh = 0.01068115234375, Gu = 0.75, ju = 0.46875, Zu = 0.013020833333333334, Uu = 0.007120768229166667, qu = 0.3645833333333333, Vu = 0.005696614583333333, Hu = 0.3076171875;
14111
+ var Ou = 1, Iu = 0.25, uh = 0.046875, ch = 0.01953125, dh = 0.01068115234375, Ru = 0.75, Fu = 0.46875, zu = 0.013020833333333334, Nu = 0.007120768229166667, Gu = 0.3645833333333333, ju = 0.005696614583333333, Zu = 0.3076171875;
14135
14112
  function Do(i) {
14136
14113
  var r = [];
14137
- r[0] = zu - i * (Nu + i * (uh + i * (ch + i * dh))), r[1] = i * (Gu - i * (uh + i * (ch + i * dh)));
14114
+ r[0] = Ou - i * (Iu + i * (uh + i * (ch + i * dh))), r[1] = i * (Ru - i * (uh + i * (ch + i * dh)));
14138
14115
  var o = i * i;
14139
- return r[2] = o * (ju - i * (Zu + i * Uu)), o *= i, r[3] = o * (qu - i * Vu), r[4] = o * i * Hu, r;
14116
+ return r[2] = o * (Fu - i * (zu + i * Nu)), o *= i, r[3] = o * (Gu - i * ju), r[4] = o * i * Zu, r;
14140
14117
  }
14141
14118
  function is(i, r, o, c) {
14142
14119
  return o *= r, r *= r, c[0] * i - o * (c[1] + r * (c[2] + r * (c[3] + r * c[4])));
14143
14120
  }
14144
- var Ku = 20;
14121
+ var Uu = 20;
14145
14122
  function Oo(i, r, o) {
14146
- for (var c = 1 / (1 - r), d = i, m = Ku; m; --m) {
14123
+ for (var c = 1 / (1 - r), d = i, m = Uu; m; --m) {
14147
14124
  var _ = Math.sin(d), M = 1 - r * _ * _;
14148
14125
  if (M = (is(d, _, Math.cos(d), o) - i) * (M * Math.sqrt(M)) * c, d -= M, Math.abs(M) < ut)
14149
14126
  return d;
14150
14127
  }
14151
14128
  return d;
14152
14129
  }
14153
- function $u() {
14130
+ function qu() {
14154
14131
  this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = Do(this.es), this.ml0 = is(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
14155
14132
  }
14156
- function Wu(i) {
14133
+ function Vu(i) {
14157
14134
  var r = i.x, o = i.y, c = ct(r - this.long0), d, m, _, M = Math.sin(o), C = Math.cos(o);
14158
14135
  if (this.es) {
14159
- var Z = C * c, R = Math.pow(Z, 2), H = this.ep2 * Math.pow(C, 2), et = Math.pow(H, 2), nt = Math.abs(C) > ut ? Math.tan(o) : 0, it = Math.pow(nt, 2), ht = Math.pow(it, 2);
14160
- d = 1 - this.es * Math.pow(M, 2), Z = Z / Math.sqrt(d);
14136
+ var j = C * c, R = Math.pow(j, 2), H = this.ep2 * Math.pow(C, 2), et = Math.pow(H, 2), nt = Math.abs(C) > ut ? Math.tan(o) : 0, it = Math.pow(nt, 2), ht = Math.pow(it, 2);
14137
+ d = 1 - this.es * Math.pow(M, 2), j = j / Math.sqrt(d);
14161
14138
  var pt = is(o, M, C, this.en);
14162
- m = this.a * (this.k0 * Z * (1 + R / 6 * (1 - it + H + R / 20 * (5 - 18 * it + ht + 14 * H - 58 * it * H + R / 42 * (61 + 179 * ht - ht * it - 479 * it))))) + this.x0, _ = this.a * (this.k0 * (pt - this.ml0 + M * c * Z / 2 * (1 + R / 12 * (5 - it + 9 * H + 4 * et + R / 30 * (61 + ht - 58 * it + 270 * H - 330 * it * H + R / 56 * (1385 + 543 * ht - ht * it - 3111 * it)))))) + this.y0;
14139
+ m = this.a * (this.k0 * j * (1 + R / 6 * (1 - it + H + R / 20 * (5 - 18 * it + ht + 14 * H - 58 * it * H + R / 42 * (61 + 179 * ht - ht * it - 479 * it))))) + this.x0, _ = this.a * (this.k0 * (pt - this.ml0 + M * c * j / 2 * (1 + R / 12 * (5 - it + 9 * H + 4 * et + R / 30 * (61 + ht - 58 * it + 270 * H - 330 * it * H + R / 56 * (1385 + 543 * ht - ht * it - 3111 * it)))))) + this.y0;
14163
14140
  } else {
14164
14141
  var D = C * Math.sin(c);
14165
14142
  if (Math.abs(Math.abs(D) - 1) < ut)
@@ -14174,7 +14151,7 @@ function Wu(i) {
14174
14151
  }
14175
14152
  return i.x = m, i.y = _, i;
14176
14153
  }
14177
- function Xu(i) {
14154
+ function Hu(i) {
14178
14155
  var r, o, c, d, m = (i.x - this.x0) * (1 / this.a), _ = (i.y - this.y0) * (1 / this.a);
14179
14156
  if (this.es)
14180
14157
  if (r = this.ml0 + _ / this.k0, o = Oo(r, this.es, this.en), Math.abs(o) < ot) {
@@ -14185,17 +14162,17 @@ function Xu(i) {
14185
14162
  } else
14186
14163
  c = ot * hr(_), d = 0;
14187
14164
  else {
14188
- var M = Math.exp(m / this.k0), C = 0.5 * (M - 1 / M), D = this.lat0 + _ / this.k0, Z = Math.cos(D);
14189
- r = Math.sqrt((1 - Math.pow(Z, 2)) / (1 + Math.pow(C, 2))), c = Math.asin(r), _ < 0 && (c = -c), C === 0 && Z === 0 ? d = 0 : d = ct(Math.atan2(C, Z) + this.long0);
14165
+ var M = Math.exp(m / this.k0), C = 0.5 * (M - 1 / M), D = this.lat0 + _ / this.k0, j = Math.cos(D);
14166
+ r = Math.sqrt((1 - Math.pow(j, 2)) / (1 + Math.pow(C, 2))), c = Math.asin(r), _ < 0 && (c = -c), C === 0 && j === 0 ? d = 0 : d = ct(Math.atan2(C, j) + this.long0);
14190
14167
  }
14191
14168
  return i.x = d, i.y = c, i;
14192
14169
  }
14193
- var Yu = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
14170
+ var Ku = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
14194
14171
  const ya = {
14195
- init: $u,
14196
- forward: Wu,
14197
- inverse: Xu,
14198
- names: Yu
14172
+ init: qu,
14173
+ forward: Vu,
14174
+ inverse: Hu,
14175
+ names: Ku
14199
14176
  };
14200
14177
  function Fh(i) {
14201
14178
  var r = Math.exp(i);
@@ -14206,53 +14183,53 @@ function Ge(i, r) {
14206
14183
  var o = Math.max(i, r), c = Math.min(i, r) / (o || 1);
14207
14184
  return o * Math.sqrt(1 + Math.pow(c, 2));
14208
14185
  }
14209
- function Qu(i) {
14186
+ function $u(i) {
14210
14187
  var r = 1 + i, o = r - 1;
14211
14188
  return o === 0 ? i : i * Math.log(r) / o;
14212
14189
  }
14213
- function Ju(i) {
14190
+ function Wu(i) {
14214
14191
  var r = Math.abs(i);
14215
- return r = Qu(r * (1 + r / (Ge(1, r) + 1))), i < 0 ? -r : r;
14192
+ return r = $u(r * (1 + r / (Ge(1, r) + 1))), i < 0 ? -r : r;
14216
14193
  }
14217
14194
  function Io(i, r) {
14218
14195
  for (var o = 2 * Math.cos(2 * r), c = i.length - 1, d = i[c], m = 0, _; --c >= 0; )
14219
14196
  _ = -m + o * d + i[c], m = d, d = _;
14220
14197
  return r + _ * Math.sin(2 * r);
14221
14198
  }
14222
- function tc(i, r) {
14199
+ function Xu(i, r) {
14223
14200
  for (var o = 2 * Math.cos(r), c = i.length - 1, d = i[c], m = 0, _; --c >= 0; )
14224
14201
  _ = -m + o * d + i[c], m = d, d = _;
14225
14202
  return Math.sin(r) * _;
14226
14203
  }
14227
- function ec(i) {
14204
+ function Yu(i) {
14228
14205
  var r = Math.exp(i);
14229
14206
  return r = (r + 1 / r) / 2, r;
14230
14207
  }
14231
14208
  function zh(i, r, o) {
14232
- for (var c = Math.sin(r), d = Math.cos(r), m = Fh(o), _ = ec(o), M = 2 * d * _, C = -2 * c * m, D = i.length - 1, Z = i[D], R = 0, H = 0, et = 0, nt, it; --D >= 0; )
14233
- nt = H, it = R, H = Z, R = et, Z = -nt + M * H - C * R + i[D], et = -it + C * H + M * R;
14234
- return M = c * _, C = d * m, [M * Z - C * et, M * et + C * Z];
14209
+ for (var c = Math.sin(r), d = Math.cos(r), m = Fh(o), _ = Yu(o), M = 2 * d * _, C = -2 * c * m, D = i.length - 1, j = i[D], R = 0, H = 0, et = 0, nt, it; --D >= 0; )
14210
+ nt = H, it = R, H = j, R = et, j = -nt + M * H - C * R + i[D], et = -it + C * H + M * R;
14211
+ return M = c * _, C = d * m, [M * j - C * et, M * et + C * j];
14235
14212
  }
14236
- function ic() {
14213
+ function Qu() {
14237
14214
  if (!this.approx && (isNaN(this.es) || this.es <= 0))
14238
14215
  throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
14239
14216
  this.approx && (ya.init.apply(this), this.forward = ya.forward, this.inverse = ya.inverse), this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
14240
14217
  var i = this.es / (1 + Math.sqrt(1 - this.es)), r = i / (2 - i), o = r;
14241
14218
  this.cgb[0] = r * (2 + r * (-2 / 3 + r * (-2 + r * (116 / 45 + r * (26 / 45 + r * (-2854 / 675)))))), this.cbg[0] = r * (-2 + r * (2 / 3 + r * (4 / 3 + r * (-82 / 45 + r * (32 / 45 + r * (4642 / 4725)))))), o = o * r, this.cgb[1] = o * (7 / 3 + r * (-8 / 5 + r * (-227 / 45 + r * (2704 / 315 + r * (2323 / 945))))), this.cbg[1] = o * (5 / 3 + r * (-16 / 15 + r * (-13 / 9 + r * (904 / 315 + r * (-1522 / 945))))), o = o * r, this.cgb[2] = o * (56 / 15 + r * (-136 / 35 + r * (-1262 / 105 + r * (73814 / 2835)))), this.cbg[2] = o * (-26 / 15 + r * (34 / 21 + r * (8 / 5 + r * (-12686 / 2835)))), o = o * r, this.cgb[3] = o * (4279 / 630 + r * (-332 / 35 + r * (-399572 / 14175))), this.cbg[3] = o * (1237 / 630 + r * (-12 / 5 + r * (-24832 / 14175))), o = o * r, this.cgb[4] = o * (4174 / 315 + r * (-144838 / 6237)), this.cbg[4] = o * (-734 / 315 + r * (109598 / 31185)), o = o * r, this.cgb[5] = o * (601676 / 22275), this.cbg[5] = o * (444337 / 155925), o = Math.pow(r, 2), this.Qn = this.k0 / (1 + r) * (1 + o * (1 / 4 + o * (1 / 64 + o / 256))), this.utg[0] = r * (-0.5 + r * (2 / 3 + r * (-37 / 96 + r * (1 / 360 + r * (81 / 512 + r * (-96199 / 604800)))))), this.gtu[0] = r * (0.5 + r * (-2 / 3 + r * (5 / 16 + r * (41 / 180 + r * (-127 / 288 + r * (7891 / 37800)))))), this.utg[1] = o * (-1 / 48 + r * (-1 / 15 + r * (437 / 1440 + r * (-46 / 105 + r * (1118711 / 3870720))))), this.gtu[1] = o * (13 / 48 + r * (-3 / 5 + r * (557 / 1440 + r * (281 / 630 + r * (-1983433 / 1935360))))), o = o * r, this.utg[2] = o * (-17 / 480 + r * (37 / 840 + r * (209 / 4480 + r * (-5569 / 90720)))), this.gtu[2] = o * (61 / 240 + r * (-103 / 140 + r * (15061 / 26880 + r * (167603 / 181440)))), o = o * r, this.utg[3] = o * (-4397 / 161280 + r * (11 / 504 + r * (830251 / 7257600))), this.gtu[3] = o * (49561 / 161280 + r * (-179 / 168 + r * (6601661 / 7257600))), o = o * r, this.utg[4] = o * (-4583 / 161280 + r * (108847 / 3991680)), this.gtu[4] = o * (34729 / 80640 + r * (-3418889 / 1995840)), o = o * r, this.utg[5] = o * (-20648693 / 638668800), this.gtu[5] = o * (212378941 / 319334400);
14242
14219
  var c = Io(this.cbg, this.lat0);
14243
- this.Zb = -this.Qn * (c + tc(this.gtu, 2 * c));
14220
+ this.Zb = -this.Qn * (c + Xu(this.gtu, 2 * c));
14244
14221
  }
14245
- function nc(i) {
14222
+ function Ju(i) {
14246
14223
  var r = ct(i.x - this.long0), o = i.y;
14247
14224
  o = Io(this.cbg, o);
14248
14225
  var c = Math.sin(o), d = Math.cos(o), m = Math.sin(r), _ = Math.cos(r);
14249
- o = Math.atan2(c, _ * d), r = Math.atan2(m * d, Ge(c, d * _)), r = Ju(Math.tan(r));
14226
+ o = Math.atan2(c, _ * d), r = Math.atan2(m * d, Ge(c, d * _)), r = Wu(Math.tan(r));
14250
14227
  var M = zh(this.gtu, 2 * o, 2 * r);
14251
14228
  o = o + M[0], r = r + M[1];
14252
14229
  var C, D;
14253
14230
  return Math.abs(r) <= 2.623395162778 ? (C = this.a * (this.Qn * r) + this.x0, D = this.a * (this.Qn * o + this.Zb) + this.y0) : (C = 1 / 0, D = 1 / 0), i.x = C, i.y = D, i;
14254
14231
  }
14255
- function sc(i) {
14232
+ function tc(i) {
14256
14233
  var r = (i.x - this.x0) * (1 / this.a), o = (i.y - this.y0) * (1 / this.a);
14257
14234
  o = (o - this.Zb) / this.Qn, r = r / this.Qn;
14258
14235
  var c, d;
@@ -14265,14 +14242,14 @@ function sc(i) {
14265
14242
  c = 1 / 0, d = 1 / 0;
14266
14243
  return i.x = c, i.y = d, i;
14267
14244
  }
14268
- var rc = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
14245
+ var ec = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
14269
14246
  const va = {
14270
- init: ic,
14271
- forward: nc,
14272
- inverse: sc,
14273
- names: rc
14247
+ init: Qu,
14248
+ forward: Ju,
14249
+ inverse: tc,
14250
+ names: ec
14274
14251
  };
14275
- function ac(i, r) {
14252
+ function ic(i, r) {
14276
14253
  if (i === void 0) {
14277
14254
  if (i = Math.floor((ct(r) + Math.PI) * 30 / Math.PI) + 1, i < 0)
14278
14255
  return 0;
@@ -14281,51 +14258,51 @@ function ac(i, r) {
14281
14258
  }
14282
14259
  return i;
14283
14260
  }
14284
- var oc = "etmerc";
14285
- function hc() {
14286
- var i = ac(this.zone, this.long0);
14261
+ var nc = "etmerc";
14262
+ function sc() {
14263
+ var i = ic(this.zone, this.long0);
14287
14264
  if (i === void 0)
14288
14265
  throw new Error("unknown utm zone");
14289
14266
  this.lat0 = 0, this.long0 = (6 * Math.abs(i) - 183) * ye, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, va.init.apply(this), this.forward = va.forward, this.inverse = va.inverse;
14290
14267
  }
14291
- var lc = ["Universal Transverse Mercator System", "utm"];
14292
- const uc = {
14293
- init: hc,
14294
- names: lc,
14295
- dependsOn: oc
14268
+ var rc = ["Universal Transverse Mercator System", "utm"];
14269
+ const ac = {
14270
+ init: sc,
14271
+ names: rc,
14272
+ dependsOn: nc
14296
14273
  };
14297
14274
  function Ro(i, r) {
14298
14275
  return Math.pow((1 - i) / (1 + i), r);
14299
14276
  }
14300
- var cc = 20;
14301
- function dc() {
14277
+ var oc = 20;
14278
+ function hc() {
14302
14279
  var i = Math.sin(this.lat0), r = Math.cos(this.lat0);
14303
14280
  r *= r, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * i * i), this.C = Math.sqrt(1 + this.es * r * r / (1 - this.es)), this.phic0 = Math.asin(i / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + Zt) / (Math.pow(Math.tan(0.5 * this.lat0 + Zt), this.C) * Ro(this.e * i, this.ratexp));
14304
14281
  }
14305
- function fc(i) {
14282
+ function lc(i) {
14306
14283
  var r = i.x, o = i.y;
14307
14284
  return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * o + Zt), this.C) * Ro(this.e * Math.sin(o), this.ratexp)) - ot, i.x = this.C * r, i;
14308
14285
  }
14309
- function pc(i) {
14310
- for (var r = 1e-14, o = i.x / this.C, c = i.y, d = Math.pow(Math.tan(0.5 * c + Zt) / this.K, 1 / this.C), m = cc; m > 0 && (c = 2 * Math.atan(d * Ro(this.e * Math.sin(i.y), -0.5 * this.e)) - ot, !(Math.abs(c - i.y) < r)); --m)
14286
+ function uc(i) {
14287
+ for (var r = 1e-14, o = i.x / this.C, c = i.y, d = Math.pow(Math.tan(0.5 * c + Zt) / this.K, 1 / this.C), m = oc; m > 0 && (c = 2 * Math.atan(d * Ro(this.e * Math.sin(i.y), -0.5 * this.e)) - ot, !(Math.abs(c - i.y) < r)); --m)
14311
14288
  i.y = c;
14312
14289
  return m ? (i.x = o, i.y = c, i) : null;
14313
14290
  }
14314
- var _c = ["gauss"];
14291
+ var cc = ["gauss"];
14315
14292
  const Fo = {
14316
- init: dc,
14317
- forward: fc,
14318
- inverse: pc,
14319
- names: _c
14293
+ init: hc,
14294
+ forward: lc,
14295
+ inverse: uc,
14296
+ names: cc
14320
14297
  };
14321
- function mc() {
14298
+ function dc() {
14322
14299
  Fo.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
14323
14300
  }
14324
- function gc(i) {
14301
+ function fc(i) {
14325
14302
  var r, o, c, d;
14326
14303
  return i.x = ct(i.x - this.long0), Fo.forward.apply(this, [i]), r = Math.sin(i.y), o = Math.cos(i.y), c = Math.cos(i.x), d = this.k0 * this.R2 / (1 + this.sinc0 * r + this.cosc0 * o * c), i.x = d * o * Math.sin(i.x), i.y = d * (this.cosc0 * r - this.sinc0 * o * c), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
14327
14304
  }
14328
- function yc(i) {
14305
+ function pc(i) {
14329
14306
  var r, o, c, d, m;
14330
14307
  if (i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a, i.x /= this.k0, i.y /= this.k0, m = Ge(i.x, i.y)) {
14331
14308
  var _ = 2 * Math.atan2(m, this.R2);
@@ -14334,24 +14311,24 @@ function yc(i) {
14334
14311
  d = this.phic0, c = 0;
14335
14312
  return i.x = c, i.y = d, Fo.inverse.apply(this, [i]), i.x = ct(i.x + this.long0), i;
14336
14313
  }
14337
- var vc = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
14338
- const Mc = {
14339
- init: mc,
14340
- forward: gc,
14341
- inverse: yc,
14342
- names: vc
14314
+ var _c = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
14315
+ const mc = {
14316
+ init: dc,
14317
+ forward: fc,
14318
+ inverse: pc,
14319
+ names: _c
14343
14320
  };
14344
- function xc(i, r, o) {
14321
+ function gc(i, r, o) {
14345
14322
  return r *= o, Math.tan(0.5 * (ot + i)) * Math.pow((1 - r) / (1 + r), 0.5 * o);
14346
14323
  }
14347
- function Lc() {
14324
+ function yc() {
14348
14325
  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) <= ut && (this.k0 = 0.5 * (1 + hr(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= ut && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= ut && Math.abs(Math.cos(this.lat_ts)) > ut && (this.k0 = 0.5 * this.cons * yi(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / ai(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = yi(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(this.ssfn_(this.lat0, this.sinlat0, this.e)) - ot, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
14349
14326
  }
14350
- function bc(i) {
14351
- var r = i.x, o = i.y, c = Math.sin(o), d = Math.cos(o), m, _, M, C, D, Z, R = ct(r - this.long0);
14352
- return Math.abs(Math.abs(r - this.long0) - Math.PI) <= ut && Math.abs(o + this.lat0) <= ut ? (i.x = NaN, i.y = NaN, i) : this.sphere ? (m = 2 * this.k0 / (1 + this.sinlat0 * c + this.coslat0 * d * Math.cos(R)), i.x = this.a * m * d * Math.sin(R) + this.x0, i.y = this.a * m * (this.coslat0 * c - this.sinlat0 * d * Math.cos(R)) + this.y0, i) : (_ = 2 * Math.atan(this.ssfn_(o, c, this.e)) - ot, C = Math.cos(_), M = Math.sin(_), Math.abs(this.coslat0) <= ut ? (D = ai(this.e, o * this.con, this.con * c), Z = 2 * this.a * this.k0 * D / this.cons, i.x = this.x0 + Z * Math.sin(r - this.long0), i.y = this.y0 - this.con * Z * Math.cos(r - this.long0), i) : (Math.abs(this.sinlat0) < ut ? (m = 2 * this.a * this.k0 / (1 + C * Math.cos(R)), i.y = m * M) : (m = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * M + this.cosX0 * C * Math.cos(R))), i.y = m * (this.cosX0 * M - this.sinX0 * C * Math.cos(R)) + this.y0), i.x = m * C * Math.sin(R) + this.x0, i));
14327
+ function vc(i) {
14328
+ var r = i.x, o = i.y, c = Math.sin(o), d = Math.cos(o), m, _, M, C, D, j, R = ct(r - this.long0);
14329
+ return Math.abs(Math.abs(r - this.long0) - Math.PI) <= ut && Math.abs(o + this.lat0) <= ut ? (i.x = NaN, i.y = NaN, i) : this.sphere ? (m = 2 * this.k0 / (1 + this.sinlat0 * c + this.coslat0 * d * Math.cos(R)), i.x = this.a * m * d * Math.sin(R) + this.x0, i.y = this.a * m * (this.coslat0 * c - this.sinlat0 * d * Math.cos(R)) + this.y0, i) : (_ = 2 * Math.atan(this.ssfn_(o, c, this.e)) - ot, C = Math.cos(_), M = Math.sin(_), Math.abs(this.coslat0) <= ut ? (D = ai(this.e, o * this.con, this.con * c), j = 2 * this.a * this.k0 * D / this.cons, i.x = this.x0 + j * Math.sin(r - this.long0), i.y = this.y0 - this.con * j * Math.cos(r - this.long0), i) : (Math.abs(this.sinlat0) < ut ? (m = 2 * this.a * this.k0 / (1 + C * Math.cos(R)), i.y = m * M) : (m = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * M + this.cosX0 * C * Math.cos(R))), i.y = m * (this.cosX0 * M - this.sinX0 * C * Math.cos(R)) + this.y0), i.x = m * C * Math.sin(R) + this.x0, i));
14353
14330
  }
14354
- function Cc(i) {
14331
+ function Mc(i) {
14355
14332
  i.x -= this.x0, i.y -= this.y0;
14356
14333
  var r, o, c, d, m, _ = Math.sqrt(i.x * i.x + i.y * i.y);
14357
14334
  if (this.sphere) {
@@ -14365,15 +14342,15 @@ function Cc(i) {
14365
14342
  d = 2 * Math.atan(_ * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), r = this.long0, _ <= ut ? m = this.X0 : (m = Math.asin(Math.cos(d) * this.sinX0 + i.y * Math.sin(d) * this.cosX0 / _), r = ct(this.long0 + Math.atan2(i.x * Math.sin(d), _ * this.cosX0 * Math.cos(d) - i.y * this.sinX0 * Math.sin(d)))), o = -1 * ar(this.e, Math.tan(0.5 * (ot + m)));
14366
14343
  return i.x = r, i.y = o, i;
14367
14344
  }
14368
- var wc = ["stere", "Stereographic_South_Pole", "Polar Stereographic (variant B)", "Polar_Stereographic"];
14369
- const Ec = {
14370
- init: Lc,
14371
- forward: bc,
14372
- inverse: Cc,
14373
- names: wc,
14374
- ssfn_: xc
14345
+ var xc = ["stere", "Stereographic_South_Pole", "Polar Stereographic (variant B)", "Polar_Stereographic"];
14346
+ const Lc = {
14347
+ init: yc,
14348
+ forward: vc,
14349
+ inverse: Mc,
14350
+ names: xc,
14351
+ ssfn_: gc
14375
14352
  };
14376
- function kc() {
14353
+ function bc() {
14377
14354
  var i = this.lat0;
14378
14355
  this.lambda0 = this.long0;
14379
14356
  var r = Math.sin(i), o = this.a, c = this.rf, d = 1 / c, m = 2 * d - Math.pow(d, 2), _ = this.e = Math.sqrt(m);
@@ -14381,44 +14358,44 @@ function kc() {
14381
14358
  var M = Math.log(Math.tan(Math.PI / 4 + this.b0 / 2)), C = Math.log(Math.tan(Math.PI / 4 + i / 2)), D = Math.log((1 + _ * r) / (1 - _ * r));
14382
14359
  this.K = M - this.alpha * C + this.alpha * _ / 2 * D;
14383
14360
  }
14384
- function Bc(i) {
14361
+ function Cc(i) {
14385
14362
  var r = Math.log(Math.tan(Math.PI / 4 - i.y / 2)), o = this.e / 2 * Math.log((1 + this.e * Math.sin(i.y)) / (1 - this.e * Math.sin(i.y))), c = -this.alpha * (r + o) + this.K, d = 2 * (Math.atan(Math.exp(c)) - Math.PI / 4), m = this.alpha * (i.x - this.lambda0), _ = Math.atan(Math.sin(m) / (Math.sin(this.b0) * Math.tan(d) + Math.cos(this.b0) * Math.cos(m))), M = Math.asin(Math.cos(this.b0) * Math.sin(d) - Math.sin(this.b0) * Math.cos(d) * Math.cos(m));
14386
14363
  return i.y = this.R / 2 * Math.log((1 + Math.sin(M)) / (1 - Math.sin(M))) + this.y0, i.x = this.R * _ + this.x0, i;
14387
14364
  }
14388
- function Pc(i) {
14389
- for (var r = i.x - this.x0, o = i.y - this.y0, c = r / this.R, d = 2 * (Math.atan(Math.exp(o / this.R)) - Math.PI / 4), m = Math.asin(Math.cos(this.b0) * Math.sin(d) + Math.sin(this.b0) * Math.cos(d) * Math.cos(c)), _ = Math.atan(Math.sin(c) / (Math.cos(this.b0) * Math.cos(c) - Math.sin(this.b0) * Math.tan(d))), M = this.lambda0 + _ / this.alpha, C = 0, D = m, Z = -1e3, R = 0; Math.abs(D - Z) > 1e-7; ) {
14365
+ function wc(i) {
14366
+ for (var r = i.x - this.x0, o = i.y - this.y0, c = r / this.R, d = 2 * (Math.atan(Math.exp(o / this.R)) - Math.PI / 4), m = Math.asin(Math.cos(this.b0) * Math.sin(d) + Math.sin(this.b0) * Math.cos(d) * Math.cos(c)), _ = Math.atan(Math.sin(c) / (Math.cos(this.b0) * Math.cos(c) - Math.sin(this.b0) * Math.tan(d))), M = this.lambda0 + _ / this.alpha, C = 0, D = m, j = -1e3, R = 0; Math.abs(D - j) > 1e-7; ) {
14390
14367
  if (++R > 20)
14391
14368
  return;
14392
- C = 1 / this.alpha * (Math.log(Math.tan(Math.PI / 4 + m / 2)) - this.K) + this.e * Math.log(Math.tan(Math.PI / 4 + Math.asin(this.e * Math.sin(D)) / 2)), Z = D, D = 2 * Math.atan(Math.exp(C)) - Math.PI / 2;
14369
+ C = 1 / this.alpha * (Math.log(Math.tan(Math.PI / 4 + m / 2)) - this.K) + this.e * Math.log(Math.tan(Math.PI / 4 + Math.asin(this.e * Math.sin(D)) / 2)), j = D, D = 2 * Math.atan(Math.exp(C)) - Math.PI / 2;
14393
14370
  }
14394
14371
  return i.x = M, i.y = D, i;
14395
14372
  }
14396
- var Ac = ["somerc"];
14397
- const Tc = {
14398
- init: kc,
14399
- forward: Bc,
14400
- inverse: Pc,
14401
- names: Ac
14373
+ var Ec = ["somerc"];
14374
+ const kc = {
14375
+ init: bc,
14376
+ forward: Cc,
14377
+ inverse: wc,
14378
+ names: Ec
14402
14379
  };
14403
14380
  var Kn = 1e-7;
14404
- function Sc(i) {
14381
+ function Bc(i) {
14405
14382
  var r = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], o = typeof i.PROJECTION == "object" ? Object.keys(i.PROJECTION)[0] : i.PROJECTION;
14406
14383
  return "no_uoff" in i || "no_off" in i || r.indexOf(o) !== -1;
14407
14384
  }
14408
- function Dc() {
14409
- var i, r, o, c, d, m, _, M, C, D, Z = 0, R, H = 0, et = 0, nt = 0, it = 0, ht = 0, pt = 0;
14410
- this.no_off = Sc(this), this.no_rot = "no_rot" in this;
14385
+ function Pc() {
14386
+ var i, r, o, c, d, m, _, M, C, D, j = 0, R, H = 0, et = 0, nt = 0, it = 0, ht = 0, pt = 0;
14387
+ this.no_off = Bc(this), this.no_rot = "no_rot" in this;
14411
14388
  var Mt = !1;
14412
14389
  "alpha" in this && (Mt = !0);
14413
14390
  var yt = !1;
14414
- if ("rectified_grid_angle" in this && (yt = !0), Mt && (pt = this.alpha), yt && (Z = this.rectified_grid_angle * ye), Mt || yt)
14391
+ if ("rectified_grid_angle" in this && (yt = !0), Mt && (pt = this.alpha), yt && (j = this.rectified_grid_angle * ye), Mt || yt)
14415
14392
  H = this.longc;
14416
14393
  else if (et = this.long1, it = this.lat1, nt = this.long2, ht = this.lat2, Math.abs(it - ht) <= Kn || (i = Math.abs(it)) <= Kn || Math.abs(i - ot) <= Kn || Math.abs(Math.abs(this.lat0) - ot) <= Kn || Math.abs(Math.abs(ht) - ot) <= Kn)
14417
14394
  throw new Error();
14418
14395
  var St = 1 - this.es;
14419
- r = Math.sqrt(St), Math.abs(this.lat0) > ut ? (M = Math.sin(this.lat0), o = Math.cos(this.lat0), i = 1 - this.es * M * M, this.B = o * o, this.B = Math.sqrt(1 + this.es * this.B * this.B / St), this.A = this.B * this.k0 * r / i, c = this.B * r / (o * Math.sqrt(i)), d = c * c - 1, d <= 0 ? d = 0 : (d = Math.sqrt(d), this.lat0 < 0 && (d = -d)), this.E = d += c, this.E *= Math.pow(ai(this.e, this.lat0, M), this.B)) : (this.B = 1 / r, this.A = this.k0, this.E = c = d = 1), Mt || yt ? (Mt ? (R = Math.asin(Math.sin(pt) / c), yt || (Z = pt)) : (R = Z, pt = Math.asin(c * Math.sin(R))), this.lam0 = H - Math.asin(0.5 * (d - 1 / d) * Math.tan(R)) / this.B) : (m = Math.pow(ai(this.e, it, Math.sin(it)), this.B), _ = Math.pow(ai(this.e, ht, Math.sin(ht)), this.B), d = this.E / m, C = (_ - m) / (_ + m), D = this.E * this.E, D = (D - _ * m) / (D + _ * m), i = et - nt, i < -Math.pi ? nt -= sr : i > Math.pi && (nt += sr), this.lam0 = ct(0.5 * (et + nt) - Math.atan(D * Math.tan(0.5 * this.B * (et - nt)) / C) / this.B), R = Math.atan(2 * Math.sin(this.B * ct(et - this.lam0)) / (d - 1 / d)), Z = pt = Math.asin(c * Math.sin(R))), this.singam = Math.sin(R), this.cosgam = Math.cos(R), this.sinrot = Math.sin(Z), this.cosrot = Math.cos(Z), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.A * this.B, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(c * c - 1) / Math.cos(pt))), this.lat0 < 0 && (this.u_0 = -this.u_0)), d = 0.5 * R, this.v_pole_n = this.ArB * Math.log(Math.tan(Zt - d)), this.v_pole_s = this.ArB * Math.log(Math.tan(Zt + d));
14396
+ r = Math.sqrt(St), Math.abs(this.lat0) > ut ? (M = Math.sin(this.lat0), o = Math.cos(this.lat0), i = 1 - this.es * M * M, this.B = o * o, this.B = Math.sqrt(1 + this.es * this.B * this.B / St), this.A = this.B * this.k0 * r / i, c = this.B * r / (o * Math.sqrt(i)), d = c * c - 1, d <= 0 ? d = 0 : (d = Math.sqrt(d), this.lat0 < 0 && (d = -d)), this.E = d += c, this.E *= Math.pow(ai(this.e, this.lat0, M), this.B)) : (this.B = 1 / r, this.A = this.k0, this.E = c = d = 1), Mt || yt ? (Mt ? (R = Math.asin(Math.sin(pt) / c), yt || (j = pt)) : (R = j, pt = Math.asin(c * Math.sin(R))), this.lam0 = H - Math.asin(0.5 * (d - 1 / d) * Math.tan(R)) / this.B) : (m = Math.pow(ai(this.e, it, Math.sin(it)), this.B), _ = Math.pow(ai(this.e, ht, Math.sin(ht)), this.B), d = this.E / m, C = (_ - m) / (_ + m), D = this.E * this.E, D = (D - _ * m) / (D + _ * m), i = et - nt, i < -Math.pi ? nt -= sr : i > Math.pi && (nt += sr), this.lam0 = ct(0.5 * (et + nt) - Math.atan(D * Math.tan(0.5 * this.B * (et - nt)) / C) / this.B), R = Math.atan(2 * Math.sin(this.B * ct(et - this.lam0)) / (d - 1 / d)), j = pt = Math.asin(c * Math.sin(R))), this.singam = Math.sin(R), this.cosgam = Math.cos(R), this.sinrot = Math.sin(j), this.cosrot = Math.cos(j), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.A * this.B, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(c * c - 1) / Math.cos(pt))), this.lat0 < 0 && (this.u_0 = -this.u_0)), d = 0.5 * R, this.v_pole_n = this.ArB * Math.log(Math.tan(Zt - d)), this.v_pole_s = this.ArB * Math.log(Math.tan(Zt + d));
14420
14397
  }
14421
- function Oc(i) {
14398
+ function Ac(i) {
14422
14399
  var r = {}, o, c, d, m, _, M, C, D;
14423
14400
  if (i.x = i.x - this.lam0, Math.abs(Math.abs(i.y) - ot) > ut) {
14424
14401
  if (_ = this.E / Math.pow(ai(this.e, i.y, Math.sin(i.y)), this.B), M = 1 / _, o = 0.5 * (_ - M), c = 0.5 * (_ + M), m = Math.sin(this.B * i.x), d = (o * this.singam - m * this.cosgam) / c, Math.abs(Math.abs(d) - 1) < ut)
@@ -14428,7 +14405,7 @@ function Oc(i) {
14428
14405
  D = i.y > 0 ? this.v_pole_n : this.v_pole_s, C = this.ArB * i.y;
14429
14406
  return this.no_rot ? (r.x = C, r.y = D) : (C -= this.u_0, r.x = D * this.cosrot + C * this.sinrot, r.y = C * this.cosrot - D * this.sinrot), r.x = this.a * r.x + this.x0, r.y = this.a * r.y + this.y0, r;
14430
14407
  }
14431
- function Ic(i) {
14408
+ function Tc(i) {
14432
14409
  var r, o, c, d, m, _, M, C = {};
14433
14410
  if (i.x = (i.x - this.x0) * (1 / this.a), i.y = (i.y - this.y0) * (1 / this.a), this.no_rot ? (o = i.y, r = i.x) : (o = i.x * this.cosrot - i.y * this.sinrot, r = i.y * this.cosrot + i.x * this.sinrot + this.u_0), c = Math.exp(-this.BrA * o), d = 0.5 * (c - 1 / c), m = 0.5 * (c + 1 / c), _ = Math.sin(this.BrA * r), M = (_ * this.cosgam + d * this.singam) / m, Math.abs(Math.abs(M) - 1) < ut)
14434
14411
  C.x = 0, C.y = M < 0 ? -ot : ot;
@@ -14439,14 +14416,14 @@ function Ic(i) {
14439
14416
  }
14440
14417
  return C.x += this.lam0, C;
14441
14418
  }
14442
- var Rc = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "Oblique_Mercator", "omerc"];
14443
- const Fc = {
14444
- init: Dc,
14445
- forward: Oc,
14446
- inverse: Ic,
14447
- names: Rc
14419
+ var Sc = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "Oblique_Mercator", "omerc"];
14420
+ const Dc = {
14421
+ init: Pc,
14422
+ forward: Ac,
14423
+ inverse: Tc,
14424
+ names: Sc
14448
14425
  };
14449
- function zc() {
14426
+ function Oc() {
14450
14427
  if (this.lat2 || (this.lat2 = this.lat1), this.k0 || (this.k0 = 1), this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, !(Math.abs(this.lat1 + this.lat2) < ut)) {
14451
14428
  var i = this.b / this.a;
14452
14429
  this.e = Math.sqrt(1 - i * i);
@@ -14454,7 +14431,7 @@ function zc() {
14454
14431
  Math.abs(this.lat1 - this.lat2) > ut ? this.ns = Math.log(c / M) / Math.log(d / C) : this.ns = r, isNaN(this.ns) && (this.ns = r), this.f0 = c / (this.ns * Math.pow(d, this.ns)), this.rh = this.a * this.f0 * Math.pow(D, this.ns), this.title || (this.title = "Lambert Conformal Conic");
14455
14432
  }
14456
14433
  }
14457
- function Nc(i) {
14434
+ function Ic(i) {
14458
14435
  var r = i.x, o = i.y;
14459
14436
  Math.abs(2 * Math.abs(o) - Math.PI) <= ut && (o = hr(o) * (ot - 2 * ut));
14460
14437
  var c = Math.abs(Math.abs(o) - ot), d, m;
@@ -14468,7 +14445,7 @@ function Nc(i) {
14468
14445
  var _ = this.ns * ct(r - this.long0);
14469
14446
  return i.x = this.k0 * (m * Math.sin(_)) + this.x0, i.y = this.k0 * (this.rh - m * Math.cos(_)) + this.y0, i;
14470
14447
  }
14471
- function Gc(i) {
14448
+ function Rc(i) {
14472
14449
  var r, o, c, d, m, _ = (i.x - this.x0) / this.k0, M = this.rh - (i.y - this.y0) / this.k0;
14473
14450
  this.ns > 0 ? (r = Math.sqrt(_ * _ + M * M), o = 1) : (r = -Math.sqrt(_ * _ + M * M), o = -1);
14474
14451
  var C = 0;
@@ -14479,7 +14456,7 @@ function Gc(i) {
14479
14456
  d = -ot;
14480
14457
  return m = ct(C / this.ns + this.long0), i.x = m, i.y = d, i;
14481
14458
  }
14482
- var jc = [
14459
+ var Fc = [
14483
14460
  "Lambert Tangential Conformal Conic Projection",
14484
14461
  "Lambert_Conformal_Conic",
14485
14462
  "Lambert_Conformal_Conic_1SP",
@@ -14488,34 +14465,34 @@ var jc = [
14488
14465
  "Lambert Conic Conformal (1SP)",
14489
14466
  "Lambert Conic Conformal (2SP)"
14490
14467
  ];
14491
- const Zc = {
14492
- init: zc,
14493
- forward: Nc,
14494
- inverse: Gc,
14495
- names: jc
14468
+ const zc = {
14469
+ init: Oc,
14470
+ forward: Ic,
14471
+ inverse: Rc,
14472
+ names: Fc
14496
14473
  };
14497
- function Uc() {
14474
+ function Nc() {
14498
14475
  this.a = 6377397155e-3, this.es = 0.006674372230614, this.e = Math.sqrt(this.es), this.lat0 || (this.lat0 = 0.863937979737193), this.long0 || (this.long0 = 0.7417649320975901 - 0.308341501185665), this.k0 || (this.k0 = 0.9999), this.s45 = 0.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.pow(Math.cos(this.fi0), 4) / (1 - this.e2)), this.uq = 1.04216856380474, this.u0 = Math.asin(Math.sin(this.fi0) / this.alfa), this.g = Math.pow((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.pow(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.pow(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;
14499
14476
  }
14500
- function qc(i) {
14501
- var r, o, c, d, m, _, M, C = i.x, D = i.y, Z = ct(C - this.long0);
14502
- return r = Math.pow((1 + this.e * Math.sin(D)) / (1 - this.e * Math.sin(D)), this.alfa * this.e / 2), o = 2 * (Math.atan(this.k * Math.pow(Math.tan(D / 2 + this.s45), this.alfa) / r) - this.s45), c = -Z * this.alfa, d = Math.asin(Math.cos(this.ad) * Math.sin(o) + Math.sin(this.ad) * Math.cos(o) * Math.cos(c)), m = Math.asin(Math.cos(o) * Math.sin(c) / Math.cos(d)), _ = this.n * m, M = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(d / 2 + this.s45), this.n), i.y = M * Math.cos(_) / 1, i.x = M * Math.sin(_) / 1, this.czech || (i.y *= -1, i.x *= -1), i;
14477
+ function Gc(i) {
14478
+ var r, o, c, d, m, _, M, C = i.x, D = i.y, j = ct(C - this.long0);
14479
+ return r = Math.pow((1 + this.e * Math.sin(D)) / (1 - this.e * Math.sin(D)), this.alfa * this.e / 2), o = 2 * (Math.atan(this.k * Math.pow(Math.tan(D / 2 + this.s45), this.alfa) / r) - this.s45), c = -j * this.alfa, d = Math.asin(Math.cos(this.ad) * Math.sin(o) + Math.sin(this.ad) * Math.cos(o) * Math.cos(c)), m = Math.asin(Math.cos(o) * Math.sin(c) / Math.cos(d)), _ = this.n * m, M = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(d / 2 + this.s45), this.n), i.y = M * Math.cos(_) / 1, i.x = M * Math.sin(_) / 1, this.czech || (i.y *= -1, i.x *= -1), i;
14503
14480
  }
14504
- function Vc(i) {
14481
+ function jc(i) {
14505
14482
  var r, o, c, d, m, _, M, C, D = i.x;
14506
14483
  i.x = i.y, i.y = D, this.czech || (i.y *= -1, i.x *= -1), _ = Math.sqrt(i.x * i.x + i.y * i.y), m = Math.atan2(i.y, i.x), d = m / Math.sin(this.s0), c = 2 * (Math.atan(Math.pow(this.ro0 / _, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), r = Math.asin(Math.cos(this.ad) * Math.sin(c) - Math.sin(this.ad) * Math.cos(c) * Math.cos(d)), o = Math.asin(Math.cos(c) * Math.sin(d) / Math.cos(r)), i.x = this.long0 - o / this.alfa, M = r, C = 0;
14507
- var Z = 0;
14484
+ var j = 0;
14508
14485
  do
14509
- i.y = 2 * (Math.atan(Math.pow(this.k, -1 / this.alfa) * Math.pow(Math.tan(r / 2 + this.s45), 1 / this.alfa) * Math.pow((1 + this.e * Math.sin(M)) / (1 - this.e * Math.sin(M)), this.e / 2)) - this.s45), Math.abs(M - i.y) < 1e-10 && (C = 1), M = i.y, Z += 1;
14510
- while (C === 0 && Z < 15);
14511
- return Z >= 15 ? null : i;
14486
+ i.y = 2 * (Math.atan(Math.pow(this.k, -1 / this.alfa) * Math.pow(Math.tan(r / 2 + this.s45), 1 / this.alfa) * Math.pow((1 + this.e * Math.sin(M)) / (1 - this.e * Math.sin(M)), this.e / 2)) - this.s45), Math.abs(M - i.y) < 1e-10 && (C = 1), M = i.y, j += 1;
14487
+ while (C === 0 && j < 15);
14488
+ return j >= 15 ? null : i;
14512
14489
  }
14513
- var Hc = ["Krovak", "krovak"];
14514
- const Kc = {
14515
- init: Uc,
14516
- forward: qc,
14517
- inverse: Vc,
14518
- names: Hc
14490
+ var Zc = ["Krovak", "krovak"];
14491
+ const Uc = {
14492
+ init: Nc,
14493
+ forward: Gc,
14494
+ inverse: jc,
14495
+ names: Zc
14519
14496
  };
14520
14497
  function De(i, r, o, c, d) {
14521
14498
  return i * d - r * Math.sin(2 * d) + o * Math.sin(4 * d) - c * Math.sin(6 * d);
@@ -14547,20 +14524,20 @@ function ba(i, r, o, c, d) {
14547
14524
  return m;
14548
14525
  return NaN;
14549
14526
  }
14550
- function $c() {
14527
+ function qc() {
14551
14528
  this.sphere || (this.e0 = lr(this.es), this.e1 = ur(this.es), this.e2 = cr(this.es), this.e3 = dr(this.es), this.ml0 = this.a * De(this.e0, this.e1, this.e2, this.e3, this.lat0));
14552
14529
  }
14553
- function Wc(i) {
14530
+ function Vc(i) {
14554
14531
  var r, o, c = i.x, d = i.y;
14555
14532
  if (c = ct(c - this.long0), this.sphere)
14556
14533
  r = this.a * Math.asin(Math.cos(d) * Math.sin(c)), o = this.a * (Math.atan2(Math.tan(d), Math.cos(c)) - this.lat0);
14557
14534
  else {
14558
- var m = Math.sin(d), _ = Math.cos(d), M = es(this.a, this.e, m), C = Math.tan(d) * Math.tan(d), D = c * Math.cos(d), Z = D * D, R = this.es * _ * _ / (1 - this.es), H = this.a * De(this.e0, this.e1, this.e2, this.e3, d);
14559
- r = M * D * (1 - Z * C * (1 / 6 - (8 - C + 8 * R) * Z / 120)), o = H - this.ml0 + M * m / _ * Z * (0.5 + (5 - C + 6 * R) * Z / 24);
14535
+ var m = Math.sin(d), _ = Math.cos(d), M = es(this.a, this.e, m), C = Math.tan(d) * Math.tan(d), D = c * Math.cos(d), j = D * D, R = this.es * _ * _ / (1 - this.es), H = this.a * De(this.e0, this.e1, this.e2, this.e3, d);
14536
+ r = M * D * (1 - j * C * (1 / 6 - (8 - C + 8 * R) * j / 120)), o = H - this.ml0 + M * m / _ * j * (0.5 + (5 - C + 6 * R) * j / 24);
14560
14537
  }
14561
14538
  return i.x = r + this.x0, i.y = o + this.y0, i;
14562
14539
  }
14563
- function Xc(i) {
14540
+ function Hc(i) {
14564
14541
  i.x -= this.x0, i.y -= this.y0;
14565
14542
  var r = i.x / this.a, o = i.y / this.a, c, d;
14566
14543
  if (this.sphere) {
@@ -14570,28 +14547,28 @@ function Xc(i) {
14570
14547
  var _ = this.ml0 / this.a + o, M = ba(_, this.e0, this.e1, this.e2, this.e3);
14571
14548
  if (Math.abs(Math.abs(M) - ot) <= ut)
14572
14549
  return i.x = this.long0, i.y = ot, o < 0 && (i.y *= -1), i;
14573
- var C = es(this.a, this.e, Math.sin(M)), D = C * C * C / this.a / this.a * (1 - this.es), Z = Math.pow(Math.tan(M), 2), R = r * this.a / C, H = R * R;
14574
- c = M - C * Math.tan(M) / D * R * R * (0.5 - (1 + 3 * Z) * R * R / 24), d = R * (1 - H * (Z / 3 + (1 + 3 * Z) * Z * H / 15)) / Math.cos(M);
14550
+ var C = es(this.a, this.e, Math.sin(M)), D = C * C * C / this.a / this.a * (1 - this.es), j = Math.pow(Math.tan(M), 2), R = r * this.a / C, H = R * R;
14551
+ c = M - C * Math.tan(M) / D * R * R * (0.5 - (1 + 3 * j) * R * R / 24), d = R * (1 - H * (j / 3 + (1 + 3 * j) * j * H / 15)) / Math.cos(M);
14575
14552
  }
14576
14553
  return i.x = ct(d + this.long0), i.y = Wi(c), i;
14577
14554
  }
14578
- var Yc = ["Cassini", "Cassini_Soldner", "cass"];
14579
- const Qc = {
14580
- init: $c,
14581
- forward: Wc,
14582
- inverse: Xc,
14583
- names: Yc
14555
+ var Kc = ["Cassini", "Cassini_Soldner", "cass"];
14556
+ const $c = {
14557
+ init: qc,
14558
+ forward: Vc,
14559
+ inverse: Hc,
14560
+ names: Kc
14584
14561
  };
14585
14562
  function Hi(i, r) {
14586
14563
  var o;
14587
14564
  return i > 1e-7 ? (o = i * r, (1 - i * i) * (r / (1 - o * o) - 0.5 / i * Math.log((1 - o) / (1 + o)))) : 2 * r;
14588
14565
  }
14589
- var Jc = 1, t0 = 2, e0 = 3, i0 = 4;
14590
- function n0() {
14566
+ var Wc = 1, Xc = 2, Yc = 3, Qc = 4;
14567
+ function Jc() {
14591
14568
  var i = Math.abs(this.lat0);
14592
14569
  if (Math.abs(i - ot) < ut ? this.mode = this.lat0 < 0 ? this.S_POLE : this.N_POLE : Math.abs(i) < ut ? this.mode = this.EQUIT : this.mode = this.OBLIQ, this.es > 0) {
14593
14570
  var r;
14594
- switch (this.qp = Hi(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = d0(this.es), this.mode) {
14571
+ switch (this.qp = Hi(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = h0(this.es), this.mode) {
14595
14572
  case this.N_POLE:
14596
14573
  this.dd = 1;
14597
14574
  break;
@@ -14608,13 +14585,13 @@ function n0() {
14608
14585
  } else
14609
14586
  this.mode === this.OBLIQ && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
14610
14587
  }
14611
- function s0(i) {
14612
- var r, o, c, d, m, _, M, C, D, Z, R = i.x, H = i.y;
14588
+ function t0(i) {
14589
+ var r, o, c, d, m, _, M, C, D, j, R = i.x, H = i.y;
14613
14590
  if (R = ct(R - this.long0), this.sphere) {
14614
- if (m = Math.sin(H), Z = Math.cos(H), c = Math.cos(R), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
14615
- if (o = this.mode === this.EQUIT ? 1 + Z * c : 1 + this.sinph0 * m + this.cosph0 * Z * c, o <= ut)
14591
+ if (m = Math.sin(H), j = Math.cos(H), c = Math.cos(R), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
14592
+ if (o = this.mode === this.EQUIT ? 1 + j * c : 1 + this.sinph0 * m + this.cosph0 * j * c, o <= ut)
14616
14593
  return null;
14617
- o = Math.sqrt(2 / o), r = o * Z * Math.sin(R), o *= this.mode === this.EQUIT ? m : this.cosph0 * m - this.sinph0 * Z * c;
14594
+ o = Math.sqrt(2 / o), r = o * j * Math.sin(R), o *= this.mode === this.EQUIT ? m : this.cosph0 * m - this.sinph0 * j * c;
14618
14595
  } else if (this.mode === this.N_POLE || this.mode === this.S_POLE) {
14619
14596
  if (this.mode === this.N_POLE && (c = -c), Math.abs(H + this.lat0) < ut)
14620
14597
  return null;
@@ -14650,19 +14627,19 @@ function s0(i) {
14650
14627
  }
14651
14628
  return i.x = this.a * r + this.x0, i.y = this.a * o + this.y0, i;
14652
14629
  }
14653
- function r0(i) {
14630
+ function e0(i) {
14654
14631
  i.x -= this.x0, i.y -= this.y0;
14655
14632
  var r = i.x / this.a, o = i.y / this.a, c, d, m, _, M, C, D;
14656
14633
  if (this.sphere) {
14657
- var Z = 0, R, H = 0;
14634
+ var j = 0, R, H = 0;
14658
14635
  if (R = Math.sqrt(r * r + o * o), d = R * 0.5, d > 1)
14659
14636
  return null;
14660
- switch (d = 2 * Math.asin(d), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (H = Math.sin(d), Z = Math.cos(d)), this.mode) {
14637
+ switch (d = 2 * Math.asin(d), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (H = Math.sin(d), j = Math.cos(d)), this.mode) {
14661
14638
  case this.EQUIT:
14662
- d = Math.abs(R) <= ut ? 0 : Math.asin(o * H / R), r *= H, o = Z * R;
14639
+ d = Math.abs(R) <= ut ? 0 : Math.asin(o * H / R), r *= H, o = j * R;
14663
14640
  break;
14664
14641
  case this.OBLIQ:
14665
- d = Math.abs(R) <= ut ? this.lat0 : Math.asin(Z * this.sinph0 + o * H * this.cosph0 / R), r *= H * this.cosph0, o = (Z - Math.sin(d) * this.sinph0) * R;
14642
+ d = Math.abs(R) <= ut ? this.lat0 : Math.asin(j * this.sinph0 + o * H * this.cosph0 / R), r *= H * this.cosph0, o = (j - Math.sin(d) * this.sinph0) * R;
14666
14643
  break;
14667
14644
  case this.N_POLE:
14668
14645
  o = -o, d = ot - d;
@@ -14682,47 +14659,47 @@ function r0(i) {
14682
14659
  return i.x = this.long0, i.y = this.lat0, i;
14683
14660
  D = 1 - M / this.qp, this.mode === this.S_POLE && (D = -D);
14684
14661
  }
14685
- c = Math.atan2(r, o), d = f0(Math.asin(D), this.apa);
14662
+ c = Math.atan2(r, o), d = l0(Math.asin(D), this.apa);
14686
14663
  }
14687
14664
  return i.x = ct(this.long0 + c), i.y = d, i;
14688
14665
  }
14689
- var a0 = 0.3333333333333333, o0 = 0.17222222222222222, h0 = 0.10257936507936508, l0 = 0.06388888888888888, u0 = 0.0664021164021164, c0 = 0.016415012942191543;
14690
- function d0(i) {
14666
+ var i0 = 0.3333333333333333, n0 = 0.17222222222222222, s0 = 0.10257936507936508, r0 = 0.06388888888888888, a0 = 0.0664021164021164, o0 = 0.016415012942191543;
14667
+ function h0(i) {
14691
14668
  var r, o = [];
14692
- return o[0] = i * a0, r = i * i, o[0] += r * o0, o[1] = r * l0, r *= i, o[0] += r * h0, o[1] += r * u0, o[2] = r * c0, o;
14669
+ return o[0] = i * i0, r = i * i, o[0] += r * n0, o[1] = r * r0, r *= i, o[0] += r * s0, o[1] += r * a0, o[2] = r * o0, o;
14693
14670
  }
14694
- function f0(i, r) {
14671
+ function l0(i, r) {
14695
14672
  var o = i + i;
14696
14673
  return i + r[0] * Math.sin(o) + r[1] * Math.sin(o + o) + r[2] * Math.sin(o + o + o);
14697
14674
  }
14698
- var p0 = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
14699
- const _0 = {
14700
- init: n0,
14701
- forward: s0,
14702
- inverse: r0,
14703
- names: p0,
14704
- S_POLE: Jc,
14705
- N_POLE: t0,
14706
- EQUIT: e0,
14707
- OBLIQ: i0
14675
+ var u0 = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
14676
+ const c0 = {
14677
+ init: Jc,
14678
+ forward: t0,
14679
+ inverse: e0,
14680
+ names: u0,
14681
+ S_POLE: Wc,
14682
+ N_POLE: Xc,
14683
+ EQUIT: Yc,
14684
+ OBLIQ: Qc
14708
14685
  };
14709
14686
  function $i(i) {
14710
14687
  return Math.abs(i) > 1 && (i = i > 1 ? 1 : -1), Math.asin(i);
14711
14688
  }
14712
- function m0() {
14689
+ function d0() {
14713
14690
  Math.abs(this.lat1 + this.lat2) < ut || (this.temp = this.b / this.a, this.es = 1 - Math.pow(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 = yi(this.e3, this.sin_po, this.cos_po), this.qs1 = Hi(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 = yi(this.e3, this.sin_po, this.cos_po), this.qs2 = Hi(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 = Hi(this.e3, this.sin_po), Math.abs(this.lat1 - this.lat2) > ut ? 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);
14714
14691
  }
14715
- function g0(i) {
14692
+ function f0(i) {
14716
14693
  var r = i.x, o = i.y;
14717
14694
  this.sin_phi = Math.sin(o), this.cos_phi = Math.cos(o);
14718
14695
  var c = Hi(this.e3, this.sin_phi), d = this.a * Math.sqrt(this.c - this.ns0 * c) / this.ns0, m = this.ns0 * ct(r - this.long0), _ = d * Math.sin(m) + this.x0, M = this.rh - d * Math.cos(m) + this.y0;
14719
14696
  return i.x = _, i.y = M, i;
14720
14697
  }
14721
- function y0(i) {
14698
+ function p0(i) {
14722
14699
  var r, o, c, d, m, _;
14723
14700
  return i.x -= this.x0, i.y = this.rh - i.y + this.y0, this.ns0 >= 0 ? (r = Math.sqrt(i.x * i.x + i.y * i.y), c = 1) : (r = -Math.sqrt(i.x * i.x + i.y * i.y), c = -1), d = 0, r !== 0 && (d = Math.atan2(c * i.x, c * i.y)), c = r * this.ns0 / this.a, this.sphere ? _ = Math.asin((this.c - c * c) / (2 * this.ns0)) : (o = (this.c - c * c) / this.ns0, _ = this.phi1z(this.e3, o)), m = ct(d / this.ns0 + this.long0), i.x = m, i.y = _, i;
14724
14701
  }
14725
- function v0(i, r) {
14702
+ function _0(i, r) {
14726
14703
  var o, c, d, m, _, M = $i(0.5 * r);
14727
14704
  if (i < ut)
14728
14705
  return M;
@@ -14731,33 +14708,33 @@ function v0(i, r) {
14731
14708
  return M;
14732
14709
  return null;
14733
14710
  }
14734
- var M0 = ["Albers_Conic_Equal_Area", "Albers", "aea"];
14735
- const x0 = {
14736
- init: m0,
14737
- forward: g0,
14738
- inverse: y0,
14739
- names: M0,
14740
- phi1z: v0
14711
+ var m0 = ["Albers_Conic_Equal_Area", "Albers", "aea"];
14712
+ const g0 = {
14713
+ init: d0,
14714
+ forward: f0,
14715
+ inverse: p0,
14716
+ names: m0,
14717
+ phi1z: _0
14741
14718
  };
14742
- function L0() {
14719
+ function y0() {
14743
14720
  this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
14744
14721
  }
14745
- function b0(i) {
14746
- var r, o, c, d, m, _, M, C, D = i.x, Z = i.y;
14747
- return c = ct(D - this.long0), r = Math.sin(Z), o = Math.cos(Z), d = Math.cos(c), _ = this.sin_p14 * r + this.cos_p14 * o * d, m = 1, _ > 0 || Math.abs(_) <= ut ? (M = this.x0 + this.a * m * o * Math.sin(c) / _, C = this.y0 + this.a * m * (this.cos_p14 * r - this.sin_p14 * o * d) / _) : (M = this.x0 + this.infinity_dist * o * Math.sin(c), C = this.y0 + this.infinity_dist * (this.cos_p14 * r - this.sin_p14 * o * d)), i.x = M, i.y = C, i;
14722
+ function v0(i) {
14723
+ var r, o, c, d, m, _, M, C, D = i.x, j = i.y;
14724
+ return c = ct(D - this.long0), r = Math.sin(j), o = Math.cos(j), d = Math.cos(c), _ = this.sin_p14 * r + this.cos_p14 * o * d, m = 1, _ > 0 || Math.abs(_) <= ut ? (M = this.x0 + this.a * m * o * Math.sin(c) / _, C = this.y0 + this.a * m * (this.cos_p14 * r - this.sin_p14 * o * d) / _) : (M = this.x0 + this.infinity_dist * o * Math.sin(c), C = this.y0 + this.infinity_dist * (this.cos_p14 * r - this.sin_p14 * o * d)), i.x = M, i.y = C, i;
14748
14725
  }
14749
- function C0(i) {
14726
+ function M0(i) {
14750
14727
  var r, o, c, d, m, _;
14751
14728
  return i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a, i.x /= this.k0, i.y /= this.k0, (r = Math.sqrt(i.x * i.x + i.y * i.y)) ? (d = Math.atan2(r, this.rc), o = Math.sin(d), c = Math.cos(d), _ = $i(c * this.sin_p14 + i.y * o * this.cos_p14 / r), m = Math.atan2(i.x * o, r * this.cos_p14 * c - i.y * this.sin_p14 * o), m = ct(this.long0 + m)) : (_ = this.phic0, m = 0), i.x = m, i.y = _, i;
14752
14729
  }
14753
- var w0 = ["gnom"];
14754
- const E0 = {
14755
- init: L0,
14756
- forward: b0,
14757
- inverse: C0,
14758
- names: w0
14730
+ var x0 = ["gnom"];
14731
+ const L0 = {
14732
+ init: y0,
14733
+ forward: v0,
14734
+ inverse: M0,
14735
+ names: x0
14759
14736
  };
14760
- function k0(i, r) {
14737
+ function b0(i, r) {
14761
14738
  var o = 1 - (1 - i * i) / (2 * i) * Math.log((1 - i) / (1 + i));
14762
14739
  if (Math.abs(Math.abs(r) - o) < 1e-6)
14763
14740
  return r < 0 ? -1 * ot : ot;
@@ -14766,10 +14743,10 @@ function k0(i, r) {
14766
14743
  return c;
14767
14744
  return NaN;
14768
14745
  }
14769
- function B0() {
14746
+ function C0() {
14770
14747
  this.sphere || (this.k0 = yi(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
14771
14748
  }
14772
- function P0(i) {
14749
+ function w0(i) {
14773
14750
  var r = i.x, o = i.y, c, d, m = ct(r - this.long0);
14774
14751
  if (this.sphere)
14775
14752
  c = this.x0 + this.a * m * Math.cos(this.lat_ts), d = this.y0 + this.a * Math.sin(o) / Math.cos(this.lat_ts);
@@ -14779,41 +14756,41 @@ function P0(i) {
14779
14756
  }
14780
14757
  return i.x = c, i.y = d, i;
14781
14758
  }
14782
- function A0(i) {
14759
+ function E0(i) {
14783
14760
  i.x -= this.x0, i.y -= this.y0;
14784
14761
  var r, o;
14785
- return this.sphere ? (r = ct(this.long0 + i.x / this.a / Math.cos(this.lat_ts)), o = Math.asin(i.y / this.a * Math.cos(this.lat_ts))) : (o = k0(this.e, 2 * i.y * this.k0 / this.a), r = ct(this.long0 + i.x / (this.a * this.k0))), i.x = r, i.y = o, i;
14762
+ return this.sphere ? (r = ct(this.long0 + i.x / this.a / Math.cos(this.lat_ts)), o = Math.asin(i.y / this.a * Math.cos(this.lat_ts))) : (o = b0(this.e, 2 * i.y * this.k0 / this.a), r = ct(this.long0 + i.x / (this.a * this.k0))), i.x = r, i.y = o, i;
14786
14763
  }
14787
- var T0 = ["cea"];
14788
- const S0 = {
14789
- init: B0,
14790
- forward: P0,
14791
- inverse: A0,
14792
- names: T0
14764
+ var k0 = ["cea"];
14765
+ const B0 = {
14766
+ init: C0,
14767
+ forward: w0,
14768
+ inverse: E0,
14769
+ names: k0
14793
14770
  };
14794
- function D0() {
14771
+ function P0() {
14795
14772
  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);
14796
14773
  }
14797
- function O0(i) {
14774
+ function A0(i) {
14798
14775
  var r = i.x, o = i.y, c = ct(r - this.long0), d = Wi(o - this.lat0);
14799
14776
  return i.x = this.x0 + this.a * c * this.rc, i.y = this.y0 + this.a * d, i;
14800
14777
  }
14801
- function I0(i) {
14778
+ function T0(i) {
14802
14779
  var r = i.x, o = i.y;
14803
14780
  return i.x = ct(this.long0 + (r - this.x0) / (this.a * this.rc)), i.y = Wi(this.lat0 + (o - this.y0) / this.a), i;
14804
14781
  }
14805
- var R0 = ["Equirectangular", "Equidistant_Cylindrical", "eqc"];
14806
- const F0 = {
14807
- init: D0,
14808
- forward: O0,
14809
- inverse: I0,
14810
- names: R0
14782
+ var S0 = ["Equirectangular", "Equidistant_Cylindrical", "eqc"];
14783
+ const D0 = {
14784
+ init: P0,
14785
+ forward: A0,
14786
+ inverse: T0,
14787
+ names: S0
14811
14788
  };
14812
14789
  var fh = 20;
14813
- function z0() {
14790
+ function O0() {
14814
14791
  this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = lr(this.es), this.e1 = ur(this.es), this.e2 = cr(this.es), this.e3 = dr(this.es), this.ml0 = this.a * De(this.e0, this.e1, this.e2, this.e3, this.lat0);
14815
14792
  }
14816
- function N0(i) {
14793
+ function I0(i) {
14817
14794
  var r = i.x, o = i.y, c, d, m, _ = ct(r - this.long0);
14818
14795
  if (m = _ * Math.sin(o), this.sphere)
14819
14796
  Math.abs(o) <= ut ? (c = this.a * _, d = -1 * this.a * this.lat0) : (c = this.a * Math.sin(m) / Math.tan(o), d = this.a * (Wi(o - this.lat0) + (1 - Math.cos(m)) / Math.tan(o)));
@@ -14825,16 +14802,16 @@ function N0(i) {
14825
14802
  }
14826
14803
  return i.x = c + this.x0, i.y = d + this.y0, i;
14827
14804
  }
14828
- function G0(i) {
14805
+ function R0(i) {
14829
14806
  var r, o, c, d, m, _, M, C, D;
14830
14807
  if (c = i.x - this.x0, d = i.y - this.y0, this.sphere)
14831
14808
  if (Math.abs(d + this.a * this.lat0) <= ut)
14832
14809
  r = ct(c / this.a + this.long0), o = 0;
14833
14810
  else {
14834
14811
  _ = this.lat0 + d / this.a, M = c * c / this.a / this.a + _ * _, C = _;
14835
- var Z;
14812
+ var j;
14836
14813
  for (m = fh; m; --m)
14837
- if (Z = Math.tan(C), D = -1 * (_ * (C * Z + 1) - C - 0.5 * (C * C + M) * Z) / ((C - _) / Z - 1), C += D, Math.abs(D) <= ut) {
14814
+ if (j = Math.tan(C), D = -1 * (_ * (C * j + 1) - C - 0.5 * (C * C + M) * j) / ((C - _) / j - 1), C += D, Math.abs(D) <= ut) {
14838
14815
  o = C;
14839
14816
  break;
14840
14817
  }
@@ -14854,29 +14831,29 @@ function G0(i) {
14854
14831
  }
14855
14832
  return i.x = r, i.y = o, i;
14856
14833
  }
14857
- var j0 = ["Polyconic", "poly"];
14858
- const Z0 = {
14859
- init: z0,
14860
- forward: N0,
14861
- inverse: G0,
14862
- names: j0
14834
+ var F0 = ["Polyconic", "poly"];
14835
+ const z0 = {
14836
+ init: O0,
14837
+ forward: I0,
14838
+ inverse: R0,
14839
+ names: F0
14863
14840
  };
14864
- function U0() {
14841
+ function N0() {
14865
14842
  this.A = [], this.A[1] = 0.6399175073, this.A[2] = -0.1358797613, this.A[3] = 0.063294409, this.A[4] = -0.02526853, this.A[5] = 0.0117879, this.A[6] = -55161e-7, this.A[7] = 26906e-7, this.A[8] = -1333e-6, this.A[9] = 67e-5, this.A[10] = -34e-5, this.B_re = [], this.B_im = [], this.B_re[1] = 0.7557853228, this.B_im[1] = 0, this.B_re[2] = 0.249204646, this.B_im[2] = 3371507e-9, this.B_re[3] = -1541739e-9, this.B_im[3] = 0.04105856, this.B_re[4] = -0.10162907, this.B_im[4] = 0.01727609, this.B_re[5] = -0.26623489, this.B_im[5] = -0.36249218, this.B_re[6] = -0.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] = -0.577245789, this.C_im[2] = -7809598e-9, this.C_re[3] = 0.508307513, this.C_im[3] = -0.112208952, this.C_re[4] = -0.15094762, this.C_im[4] = 0.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] = 0.5185406398, this.D[3] = -0.03333098, this.D[4] = -0.1052906, this.D[5] = -0.0368594, this.D[6] = 7317e-6, this.D[7] = 0.0122, this.D[8] = 394e-5, this.D[9] = -13e-4;
14866
14843
  }
14867
- function q0(i) {
14844
+ function G0(i) {
14868
14845
  var r, o = i.x, c = i.y, d = c - this.lat0, m = o - this.long0, _ = d / Js * 1e-5, M = m, C = 1, D = 0;
14869
14846
  for (r = 1; r <= 10; r++)
14870
14847
  C = C * _, D = D + this.A[r] * C;
14871
- var Z = D, R = M, H = 1, et = 0, nt, it, ht = 0, pt = 0;
14848
+ var j = D, R = M, H = 1, et = 0, nt, it, ht = 0, pt = 0;
14872
14849
  for (r = 1; r <= 6; r++)
14873
- nt = H * Z - et * R, it = et * Z + H * R, H = nt, et = it, ht = ht + this.B_re[r] * H - this.B_im[r] * et, pt = pt + this.B_im[r] * H + this.B_re[r] * et;
14850
+ nt = H * j - et * R, it = et * j + H * R, H = nt, et = it, ht = ht + this.B_re[r] * H - this.B_im[r] * et, pt = pt + this.B_im[r] * H + this.B_re[r] * et;
14874
14851
  return i.x = pt * this.a + this.x0, i.y = ht * this.a + this.y0, i;
14875
14852
  }
14876
- function V0(i) {
14877
- var r, o = i.x, c = i.y, d = o - this.x0, m = c - this.y0, _ = m / this.a, M = d / this.a, C = 1, D = 0, Z, R, H = 0, et = 0;
14853
+ function j0(i) {
14854
+ var r, o = i.x, c = i.y, d = o - this.x0, m = c - this.y0, _ = m / this.a, M = d / this.a, C = 1, D = 0, j, R, H = 0, et = 0;
14878
14855
  for (r = 1; r <= 6; r++)
14879
- Z = C * _ - D * M, R = D * _ + C * M, C = Z, D = R, H = H + this.C_re[r] * C - this.C_im[r] * D, et = et + this.C_im[r] * C + this.C_re[r] * D;
14856
+ j = C * _ - D * M, R = D * _ + C * M, C = j, D = R, H = H + this.C_re[r] * C - this.C_im[r] * D, et = et + this.C_im[r] * C + this.C_re[r] * D;
14880
14857
  for (var nt = 0; nt < this.iterations; nt++) {
14881
14858
  var it = H, ht = et, pt, Mt, yt = _, St = M;
14882
14859
  for (r = 2; r <= 6; r++)
@@ -14894,42 +14871,42 @@ function V0(i) {
14894
14871
  var oe = this.lat0 + Nt * Js * 1e5, ns = this.long0 + ve;
14895
14872
  return i.x = ns, i.y = oe, i;
14896
14873
  }
14897
- var H0 = ["New_Zealand_Map_Grid", "nzmg"];
14898
- const K0 = {
14899
- init: U0,
14900
- forward: q0,
14901
- inverse: V0,
14902
- names: H0
14874
+ var Z0 = ["New_Zealand_Map_Grid", "nzmg"];
14875
+ const U0 = {
14876
+ init: N0,
14877
+ forward: G0,
14878
+ inverse: j0,
14879
+ names: Z0
14903
14880
  };
14904
- function $0() {
14881
+ function q0() {
14905
14882
  }
14906
- function W0(i) {
14883
+ function V0(i) {
14907
14884
  var r = i.x, o = i.y, c = ct(r - this.long0), d = this.x0 + this.a * c, m = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + o / 2.5)) * 1.25;
14908
14885
  return i.x = d, i.y = m, i;
14909
14886
  }
14910
- function X0(i) {
14887
+ function H0(i) {
14911
14888
  i.x -= this.x0, i.y -= this.y0;
14912
14889
  var r = ct(this.long0 + i.x / this.a), o = 2.5 * (Math.atan(Math.exp(0.8 * i.y / this.a)) - Math.PI / 4);
14913
14890
  return i.x = r, i.y = o, i;
14914
14891
  }
14915
- var Y0 = ["Miller_Cylindrical", "mill"];
14916
- const Q0 = {
14917
- init: $0,
14918
- forward: W0,
14919
- inverse: X0,
14920
- names: Y0
14892
+ var K0 = ["Miller_Cylindrical", "mill"];
14893
+ const $0 = {
14894
+ init: q0,
14895
+ forward: V0,
14896
+ inverse: H0,
14897
+ names: K0
14921
14898
  };
14922
- var J0 = 20;
14923
- function td() {
14899
+ var W0 = 20;
14900
+ function X0() {
14924
14901
  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 = Do(this.es);
14925
14902
  }
14926
- function ed(i) {
14903
+ function Y0(i) {
14927
14904
  var r, o, c = i.x, d = i.y;
14928
14905
  if (c = ct(c - this.long0), this.sphere) {
14929
14906
  if (!this.m)
14930
14907
  d = this.n !== 1 ? Math.asin(this.n * Math.sin(d)) : d;
14931
14908
  else
14932
- for (var m = this.n * Math.sin(d), _ = J0; _; --_) {
14909
+ for (var m = this.n * Math.sin(d), _ = W0; _; --_) {
14933
14910
  var M = (this.m * d + Math.sin(d) - m) / (this.m + Math.cos(d));
14934
14911
  if (d -= M, Math.abs(M) < ut)
14935
14912
  break;
@@ -14941,20 +14918,20 @@ function ed(i) {
14941
14918
  }
14942
14919
  return i.x = r, i.y = o, i;
14943
14920
  }
14944
- function id(i) {
14921
+ function Q0(i) {
14945
14922
  var r, o, c, d;
14946
14923
  return i.x -= this.x0, c = i.x / this.a, i.y -= this.y0, r = i.y / this.a, this.sphere ? (r /= this.C_y, c = c / (this.C_x * (this.m + Math.cos(r))), this.m ? r = $i((this.m * r + Math.sin(r)) / this.n) : this.n !== 1 && (r = $i(Math.sin(r) / this.n)), c = ct(c + this.long0), r = Wi(r)) : (r = Oo(i.y / this.a, this.es, this.en), d = Math.abs(r), d < ot ? (d = Math.sin(r), o = this.long0 + i.x * Math.sqrt(1 - this.es * d * d) / (this.a * Math.cos(r)), c = ct(o)) : d - ut < ot && (c = this.long0)), i.x = c, i.y = r, i;
14947
14924
  }
14948
- var nd = ["Sinusoidal", "sinu"];
14949
- const sd = {
14950
- init: td,
14951
- forward: ed,
14952
- inverse: id,
14953
- names: nd
14925
+ var J0 = ["Sinusoidal", "sinu"];
14926
+ const td = {
14927
+ init: X0,
14928
+ forward: Y0,
14929
+ inverse: Q0,
14930
+ names: J0
14954
14931
  };
14955
- function rd() {
14932
+ function ed() {
14956
14933
  }
14957
- function ad(i) {
14934
+ function id(i) {
14958
14935
  for (var r = i.x, o = i.y, c = ct(r - this.long0), d = o, m = Math.PI * Math.sin(o); ; ) {
14959
14936
  var _ = -(d + Math.sin(d) - m) / (1 + Math.cos(d));
14960
14937
  if (d += _, Math.abs(_) < ut)
@@ -14964,7 +14941,7 @@ function ad(i) {
14964
14941
  var M = 0.900316316158 * this.a * c * Math.cos(d) + this.x0, C = 1.4142135623731 * this.a * Math.sin(d) + this.y0;
14965
14942
  return i.x = M, i.y = C, i;
14966
14943
  }
14967
- function od(i) {
14944
+ function nd(i) {
14968
14945
  var r, o;
14969
14946
  i.x -= this.x0, i.y -= this.y0, o = i.y / (1.4142135623731 * this.a), Math.abs(o) > 0.999999999999 && (o = 0.999999999999), r = Math.asin(o);
14970
14947
  var c = ct(this.long0 + i.x / (0.900316316158 * this.a * Math.cos(r)));
@@ -14972,17 +14949,17 @@ function od(i) {
14972
14949
  var d = Math.asin(o);
14973
14950
  return i.x = c, i.y = d, i;
14974
14951
  }
14975
- var hd = ["Mollweide", "moll"];
14976
- const ld = {
14977
- init: rd,
14978
- forward: ad,
14979
- inverse: od,
14980
- names: hd
14952
+ var sd = ["Mollweide", "moll"];
14953
+ const rd = {
14954
+ init: ed,
14955
+ forward: id,
14956
+ inverse: nd,
14957
+ names: sd
14981
14958
  };
14982
- function ud() {
14959
+ function ad() {
14983
14960
  Math.abs(this.lat1 + this.lat2) < ut || (this.lat2 = this.lat2 || this.lat1, this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = lr(this.es), this.e1 = ur(this.es), this.e2 = cr(this.es), this.e3 = dr(this.es), this.sinphi = Math.sin(this.lat1), this.cosphi = Math.cos(this.lat1), this.ms1 = yi(this.e, this.sinphi, this.cosphi), this.ml1 = De(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < ut ? this.ns = this.sinphi : (this.sinphi = Math.sin(this.lat2), this.cosphi = Math.cos(this.lat2), this.ms2 = yi(this.e, this.sinphi, this.cosphi), this.ml2 = De(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 = De(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
14984
14961
  }
14985
- function cd(i) {
14962
+ function od(i) {
14986
14963
  var r = i.x, o = i.y, c;
14987
14964
  if (this.sphere)
14988
14965
  c = this.a * (this.g - o);
@@ -14993,7 +14970,7 @@ function cd(i) {
14993
14970
  var m = this.ns * ct(r - this.long0), _ = this.x0 + c * Math.sin(m), M = this.y0 + this.rh - c * Math.cos(m);
14994
14971
  return i.x = _, i.y = M, i;
14995
14972
  }
14996
- function dd(i) {
14973
+ function hd(i) {
14997
14974
  i.x -= this.x0, i.y = this.rh - i.y + this.y0;
14998
14975
  var r, o, c, d;
14999
14976
  this.ns >= 0 ? (o = Math.sqrt(i.x * i.x + i.y * i.y), r = 1) : (o = -Math.sqrt(i.x * i.x + i.y * i.y), r = -1);
@@ -15003,73 +14980,73 @@ function dd(i) {
15003
14980
  var _ = this.g - o / this.a;
15004
14981
  return c = ba(_, this.e0, this.e1, this.e2, this.e3), d = ct(this.long0 + m / this.ns), i.x = d, i.y = c, i;
15005
14982
  }
15006
- var fd = ["Equidistant_Conic", "eqdc"];
15007
- const pd = {
15008
- init: ud,
15009
- forward: cd,
15010
- inverse: dd,
15011
- names: fd
14983
+ var ld = ["Equidistant_Conic", "eqdc"];
14984
+ const ud = {
14985
+ init: ad,
14986
+ forward: od,
14987
+ inverse: hd,
14988
+ names: ld
15012
14989
  };
15013
- function _d() {
14990
+ function cd() {
15014
14991
  this.R = this.a;
15015
14992
  }
15016
- function md(i) {
14993
+ function dd(i) {
15017
14994
  var r = i.x, o = i.y, c = ct(r - this.long0), d, m;
15018
14995
  Math.abs(o) <= ut && (d = this.x0 + this.R * c, m = this.y0);
15019
14996
  var _ = $i(2 * Math.abs(o / Math.PI));
15020
14997
  (Math.abs(c) <= ut || Math.abs(Math.abs(o) - ot) <= ut) && (d = this.x0, o >= 0 ? m = this.y0 + Math.PI * this.R * Math.tan(0.5 * _) : m = this.y0 + Math.PI * this.R * -Math.tan(0.5 * _));
15021
- var M = 0.5 * Math.abs(Math.PI / c - c / Math.PI), C = M * M, D = Math.sin(_), Z = Math.cos(_), R = Z / (D + Z - 1), H = R * R, et = R * (2 / D - 1), nt = et * et, it = Math.PI * this.R * (M * (R - nt) + Math.sqrt(C * (R - nt) * (R - nt) - (nt + C) * (H - nt))) / (nt + C);
14998
+ var M = 0.5 * Math.abs(Math.PI / c - c / Math.PI), C = M * M, D = Math.sin(_), j = Math.cos(_), R = j / (D + j - 1), H = R * R, et = R * (2 / D - 1), nt = et * et, it = Math.PI * this.R * (M * (R - nt) + Math.sqrt(C * (R - nt) * (R - nt) - (nt + C) * (H - nt))) / (nt + C);
15022
14999
  c < 0 && (it = -it), d = this.x0 + it;
15023
15000
  var ht = C + R;
15024
15001
  return it = Math.PI * this.R * (et * ht - M * Math.sqrt((nt + C) * (C + 1) - ht * ht)) / (nt + C), o >= 0 ? m = this.y0 + it : m = this.y0 - it, i.x = d, i.y = m, i;
15025
15002
  }
15026
- function gd(i) {
15027
- var r, o, c, d, m, _, M, C, D, Z, R, H, et;
15028
- return i.x -= this.x0, i.y -= this.y0, R = Math.PI * this.R, c = i.x / R, d = i.y / R, m = c * c + d * d, _ = -Math.abs(d) * (1 + m), M = _ - 2 * d * d + c * c, C = -2 * _ + 1 + 2 * d * d + m * m, et = d * d / C + (2 * M * M * M / C / C / C - 9 * _ * M / C / C) / 27, D = (_ - M * M / 3 / C) / C, Z = 2 * Math.sqrt(-D / 3), R = 3 * et / D / Z, Math.abs(R) > 1 && (R >= 0 ? R = 1 : R = -1), H = Math.acos(R) / 3, i.y >= 0 ? o = (-Z * Math.cos(H + Math.PI / 3) - M / 3 / C) * Math.PI : o = -(-Z * Math.cos(H + Math.PI / 3) - M / 3 / C) * Math.PI, Math.abs(c) < ut ? r = this.long0 : r = ct(this.long0 + Math.PI * (m - 1 + Math.sqrt(1 + 2 * (c * c - d * d) + m * m)) / 2 / c), i.x = r, i.y = o, i;
15003
+ function fd(i) {
15004
+ var r, o, c, d, m, _, M, C, D, j, R, H, et;
15005
+ return i.x -= this.x0, i.y -= this.y0, R = Math.PI * this.R, c = i.x / R, d = i.y / R, m = c * c + d * d, _ = -Math.abs(d) * (1 + m), M = _ - 2 * d * d + c * c, C = -2 * _ + 1 + 2 * d * d + m * m, et = d * d / C + (2 * M * M * M / C / C / C - 9 * _ * M / C / C) / 27, D = (_ - M * M / 3 / C) / C, j = 2 * Math.sqrt(-D / 3), R = 3 * et / D / j, Math.abs(R) > 1 && (R >= 0 ? R = 1 : R = -1), H = Math.acos(R) / 3, i.y >= 0 ? o = (-j * Math.cos(H + Math.PI / 3) - M / 3 / C) * Math.PI : o = -(-j * Math.cos(H + Math.PI / 3) - M / 3 / C) * Math.PI, Math.abs(c) < ut ? r = this.long0 : r = ct(this.long0 + Math.PI * (m - 1 + Math.sqrt(1 + 2 * (c * c - d * d) + m * m)) / 2 / c), i.x = r, i.y = o, i;
15029
15006
  }
15030
- var yd = ["Van_der_Grinten_I", "VanDerGrinten", "vandg"];
15031
- const vd = {
15032
- init: _d,
15033
- forward: md,
15034
- inverse: gd,
15035
- names: yd
15007
+ var pd = ["Van_der_Grinten_I", "VanDerGrinten", "vandg"];
15008
+ const _d = {
15009
+ init: cd,
15010
+ forward: dd,
15011
+ inverse: fd,
15012
+ names: pd
15036
15013
  };
15037
- function Md() {
15014
+ function md() {
15038
15015
  this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0);
15039
15016
  }
15040
- function xd(i) {
15041
- var r = i.x, o = i.y, c = Math.sin(i.y), d = Math.cos(i.y), m = ct(r - this.long0), _, M, C, D, Z, R, H, et, nt, it, ht, pt, Mt, yt, St, Tt, Pt, Qt, Kt, ve, Me, Nt, oe;
15042
- return this.sphere ? Math.abs(this.sin_p12 - 1) <= ut ? (i.x = this.x0 + this.a * (ot - o) * Math.sin(m), i.y = this.y0 - this.a * (ot - o) * Math.cos(m), i) : Math.abs(this.sin_p12 + 1) <= ut ? (i.x = this.x0 + this.a * (ot + o) * Math.sin(m), i.y = this.y0 + this.a * (ot + o) * Math.cos(m), i) : (Qt = this.sin_p12 * c + this.cos_p12 * d * Math.cos(m), Tt = Math.acos(Qt), Pt = Tt ? Tt / Math.sin(Tt) : 1, i.x = this.x0 + this.a * Pt * d * Math.sin(m), i.y = this.y0 + this.a * Pt * (this.cos_p12 * c - this.sin_p12 * d * Math.cos(m)), i) : (_ = lr(this.es), M = ur(this.es), C = cr(this.es), D = dr(this.es), Math.abs(this.sin_p12 - 1) <= ut ? (Z = this.a * De(_, M, C, D, ot), R = this.a * De(_, M, C, D, o), i.x = this.x0 + (Z - R) * Math.sin(m), i.y = this.y0 - (Z - R) * Math.cos(m), i) : Math.abs(this.sin_p12 + 1) <= ut ? (Z = this.a * De(_, M, C, D, ot), R = this.a * De(_, M, C, D, o), i.x = this.x0 + (Z + R) * Math.sin(m), i.y = this.y0 + (Z + R) * Math.cos(m), i) : (H = c / d, et = es(this.a, this.e, this.sin_p12), nt = es(this.a, this.e, c), it = Math.atan((1 - this.es) * H + this.es * et * this.sin_p12 / (nt * d)), ht = Math.atan2(Math.sin(m), this.cos_p12 * Math.tan(it) - this.sin_p12 * Math.cos(m)), ht === 0 ? Kt = Math.asin(this.cos_p12 * Math.sin(it) - this.sin_p12 * Math.cos(it)) : Math.abs(Math.abs(ht) - Math.PI) <= ut ? Kt = -Math.asin(this.cos_p12 * Math.sin(it) - this.sin_p12 * Math.cos(it)) : Kt = Math.asin(Math.sin(m) * Math.cos(it) / Math.sin(ht)), pt = this.e * this.sin_p12 / Math.sqrt(1 - this.es), Mt = this.e * this.cos_p12 * Math.cos(ht) / Math.sqrt(1 - this.es), yt = pt * Mt, St = Mt * Mt, ve = Kt * Kt, Me = ve * Kt, Nt = Me * Kt, oe = Nt * Kt, Tt = et * Kt * (1 - ve * St * (1 - St) / 6 + Me / 8 * yt * (1 - 2 * St) + Nt / 120 * (St * (4 - 7 * St) - 3 * pt * pt * (1 - 7 * St)) - oe / 48 * yt), i.x = this.x0 + Tt * Math.sin(ht), i.y = this.y0 + Tt * Math.cos(ht), i));
15017
+ function gd(i) {
15018
+ var r = i.x, o = i.y, c = Math.sin(i.y), d = Math.cos(i.y), m = ct(r - this.long0), _, M, C, D, j, R, H, et, nt, it, ht, pt, Mt, yt, St, Tt, Pt, Qt, Kt, ve, Me, Nt, oe;
15019
+ return this.sphere ? Math.abs(this.sin_p12 - 1) <= ut ? (i.x = this.x0 + this.a * (ot - o) * Math.sin(m), i.y = this.y0 - this.a * (ot - o) * Math.cos(m), i) : Math.abs(this.sin_p12 + 1) <= ut ? (i.x = this.x0 + this.a * (ot + o) * Math.sin(m), i.y = this.y0 + this.a * (ot + o) * Math.cos(m), i) : (Qt = this.sin_p12 * c + this.cos_p12 * d * Math.cos(m), Tt = Math.acos(Qt), Pt = Tt ? Tt / Math.sin(Tt) : 1, i.x = this.x0 + this.a * Pt * d * Math.sin(m), i.y = this.y0 + this.a * Pt * (this.cos_p12 * c - this.sin_p12 * d * Math.cos(m)), i) : (_ = lr(this.es), M = ur(this.es), C = cr(this.es), D = dr(this.es), Math.abs(this.sin_p12 - 1) <= ut ? (j = this.a * De(_, M, C, D, ot), R = this.a * De(_, M, C, D, o), i.x = this.x0 + (j - R) * Math.sin(m), i.y = this.y0 - (j - R) * Math.cos(m), i) : Math.abs(this.sin_p12 + 1) <= ut ? (j = this.a * De(_, M, C, D, ot), R = this.a * De(_, M, C, D, o), i.x = this.x0 + (j + R) * Math.sin(m), i.y = this.y0 + (j + R) * Math.cos(m), i) : (H = c / d, et = es(this.a, this.e, this.sin_p12), nt = es(this.a, this.e, c), it = Math.atan((1 - this.es) * H + this.es * et * this.sin_p12 / (nt * d)), ht = Math.atan2(Math.sin(m), this.cos_p12 * Math.tan(it) - this.sin_p12 * Math.cos(m)), ht === 0 ? Kt = Math.asin(this.cos_p12 * Math.sin(it) - this.sin_p12 * Math.cos(it)) : Math.abs(Math.abs(ht) - Math.PI) <= ut ? Kt = -Math.asin(this.cos_p12 * Math.sin(it) - this.sin_p12 * Math.cos(it)) : Kt = Math.asin(Math.sin(m) * Math.cos(it) / Math.sin(ht)), pt = this.e * this.sin_p12 / Math.sqrt(1 - this.es), Mt = this.e * this.cos_p12 * Math.cos(ht) / Math.sqrt(1 - this.es), yt = pt * Mt, St = Mt * Mt, ve = Kt * Kt, Me = ve * Kt, Nt = Me * Kt, oe = Nt * Kt, Tt = et * Kt * (1 - ve * St * (1 - St) / 6 + Me / 8 * yt * (1 - 2 * St) + Nt / 120 * (St * (4 - 7 * St) - 3 * pt * pt * (1 - 7 * St)) - oe / 48 * yt), i.x = this.x0 + Tt * Math.sin(ht), i.y = this.y0 + Tt * Math.cos(ht), i));
15043
15020
  }
15044
- function Ld(i) {
15021
+ function yd(i) {
15045
15022
  i.x -= this.x0, i.y -= this.y0;
15046
- var r, o, c, d, m, _, M, C, D, Z, R, H, et, nt, it, ht, pt, Mt, yt, St, Tt, Pt, Qt, Kt;
15047
- return this.sphere ? (r = Math.sqrt(i.x * i.x + i.y * i.y), r > 2 * ot * this.a ? void 0 : (o = r / this.a, c = Math.sin(o), d = Math.cos(o), m = this.long0, Math.abs(r) <= ut ? _ = this.lat0 : (_ = $i(d * this.sin_p12 + i.y * c * this.cos_p12 / r), M = Math.abs(this.lat0) - ot, Math.abs(M) <= ut ? this.lat0 >= 0 ? m = ct(this.long0 + Math.atan2(i.x, -i.y)) : m = ct(this.long0 - Math.atan2(-i.x, i.y)) : m = ct(this.long0 + Math.atan2(i.x * c, r * this.cos_p12 * d - i.y * this.sin_p12 * c))), i.x = m, i.y = _, i)) : (C = lr(this.es), D = ur(this.es), Z = cr(this.es), R = dr(this.es), Math.abs(this.sin_p12 - 1) <= ut ? (H = this.a * De(C, D, Z, R, ot), r = Math.sqrt(i.x * i.x + i.y * i.y), et = H - r, _ = ba(et / this.a, C, D, Z, R), m = ct(this.long0 + Math.atan2(i.x, -1 * i.y)), i.x = m, i.y = _, i) : Math.abs(this.sin_p12 + 1) <= ut ? (H = this.a * De(C, D, Z, R, ot), r = Math.sqrt(i.x * i.x + i.y * i.y), et = r - H, _ = ba(et / this.a, C, D, Z, R), m = ct(this.long0 + Math.atan2(i.x, i.y)), i.x = m, i.y = _, i) : (r = Math.sqrt(i.x * i.x + i.y * i.y), ht = Math.atan2(i.x, i.y), nt = es(this.a, this.e, this.sin_p12), pt = Math.cos(ht), Mt = this.e * this.cos_p12 * pt, yt = -Mt * Mt / (1 - this.es), St = 3 * this.es * (1 - yt) * this.sin_p12 * this.cos_p12 * pt / (1 - this.es), Tt = r / nt, Pt = Tt - yt * (1 + yt) * Math.pow(Tt, 3) / 6 - St * (1 + 3 * yt) * Math.pow(Tt, 4) / 24, Qt = 1 - yt * Pt * Pt / 2 - Tt * Pt * Pt * Pt / 6, it = Math.asin(this.sin_p12 * Math.cos(Pt) + this.cos_p12 * Math.sin(Pt) * pt), m = ct(this.long0 + Math.asin(Math.sin(ht) * Math.sin(Pt) / Math.cos(it))), Kt = Math.sin(it), _ = Math.atan2((Kt - this.es * Qt * this.sin_p12) * Math.tan(it), Kt * (1 - this.es)), i.x = m, i.y = _, i));
15023
+ var r, o, c, d, m, _, M, C, D, j, R, H, et, nt, it, ht, pt, Mt, yt, St, Tt, Pt, Qt, Kt;
15024
+ return this.sphere ? (r = Math.sqrt(i.x * i.x + i.y * i.y), r > 2 * ot * this.a ? void 0 : (o = r / this.a, c = Math.sin(o), d = Math.cos(o), m = this.long0, Math.abs(r) <= ut ? _ = this.lat0 : (_ = $i(d * this.sin_p12 + i.y * c * this.cos_p12 / r), M = Math.abs(this.lat0) - ot, Math.abs(M) <= ut ? this.lat0 >= 0 ? m = ct(this.long0 + Math.atan2(i.x, -i.y)) : m = ct(this.long0 - Math.atan2(-i.x, i.y)) : m = ct(this.long0 + Math.atan2(i.x * c, r * this.cos_p12 * d - i.y * this.sin_p12 * c))), i.x = m, i.y = _, i)) : (C = lr(this.es), D = ur(this.es), j = cr(this.es), R = dr(this.es), Math.abs(this.sin_p12 - 1) <= ut ? (H = this.a * De(C, D, j, R, ot), r = Math.sqrt(i.x * i.x + i.y * i.y), et = H - r, _ = ba(et / this.a, C, D, j, R), m = ct(this.long0 + Math.atan2(i.x, -1 * i.y)), i.x = m, i.y = _, i) : Math.abs(this.sin_p12 + 1) <= ut ? (H = this.a * De(C, D, j, R, ot), r = Math.sqrt(i.x * i.x + i.y * i.y), et = r - H, _ = ba(et / this.a, C, D, j, R), m = ct(this.long0 + Math.atan2(i.x, i.y)), i.x = m, i.y = _, i) : (r = Math.sqrt(i.x * i.x + i.y * i.y), ht = Math.atan2(i.x, i.y), nt = es(this.a, this.e, this.sin_p12), pt = Math.cos(ht), Mt = this.e * this.cos_p12 * pt, yt = -Mt * Mt / (1 - this.es), St = 3 * this.es * (1 - yt) * this.sin_p12 * this.cos_p12 * pt / (1 - this.es), Tt = r / nt, Pt = Tt - yt * (1 + yt) * Math.pow(Tt, 3) / 6 - St * (1 + 3 * yt) * Math.pow(Tt, 4) / 24, Qt = 1 - yt * Pt * Pt / 2 - Tt * Pt * Pt * Pt / 6, it = Math.asin(this.sin_p12 * Math.cos(Pt) + this.cos_p12 * Math.sin(Pt) * pt), m = ct(this.long0 + Math.asin(Math.sin(ht) * Math.sin(Pt) / Math.cos(it))), Kt = Math.sin(it), _ = Math.atan2((Kt - this.es * Qt * this.sin_p12) * Math.tan(it), Kt * (1 - this.es)), i.x = m, i.y = _, i));
15048
15025
  }
15049
- var bd = ["Azimuthal_Equidistant", "aeqd"];
15050
- const Cd = {
15051
- init: Md,
15052
- forward: xd,
15053
- inverse: Ld,
15054
- names: bd
15026
+ var vd = ["Azimuthal_Equidistant", "aeqd"];
15027
+ const Md = {
15028
+ init: md,
15029
+ forward: gd,
15030
+ inverse: yd,
15031
+ names: vd
15055
15032
  };
15056
- function wd() {
15033
+ function xd() {
15057
15034
  this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0);
15058
15035
  }
15059
- function Ed(i) {
15060
- var r, o, c, d, m, _, M, C, D = i.x, Z = i.y;
15061
- return c = ct(D - this.long0), r = Math.sin(Z), o = Math.cos(Z), d = Math.cos(c), _ = this.sin_p14 * r + this.cos_p14 * o * d, m = 1, (_ > 0 || Math.abs(_) <= ut) && (M = this.a * m * o * Math.sin(c), C = this.y0 + this.a * m * (this.cos_p14 * r - this.sin_p14 * o * d)), i.x = M, i.y = C, i;
15036
+ function Ld(i) {
15037
+ var r, o, c, d, m, _, M, C, D = i.x, j = i.y;
15038
+ return c = ct(D - this.long0), r = Math.sin(j), o = Math.cos(j), d = Math.cos(c), _ = this.sin_p14 * r + this.cos_p14 * o * d, m = 1, (_ > 0 || Math.abs(_) <= ut) && (M = this.a * m * o * Math.sin(c), C = this.y0 + this.a * m * (this.cos_p14 * r - this.sin_p14 * o * d)), i.x = M, i.y = C, i;
15062
15039
  }
15063
- function kd(i) {
15040
+ function bd(i) {
15064
15041
  var r, o, c, d, m, _, M;
15065
15042
  return i.x -= this.x0, i.y -= this.y0, r = Math.sqrt(i.x * i.x + i.y * i.y), o = $i(r / this.a), c = Math.sin(o), d = Math.cos(o), _ = this.long0, Math.abs(r) <= ut ? (M = this.lat0, i.x = _, i.y = M, i) : (M = $i(d * this.sin_p14 + i.y * c * this.cos_p14 / r), m = Math.abs(this.lat0) - ot, Math.abs(m) <= ut ? (this.lat0 >= 0 ? _ = ct(this.long0 + Math.atan2(i.x, -i.y)) : _ = ct(this.long0 - Math.atan2(-i.x, i.y)), i.x = _, i.y = M, i) : (_ = ct(this.long0 + Math.atan2(i.x * c, r * this.cos_p14 * d - i.y * this.sin_p14 * c)), i.x = _, i.y = M, i));
15066
15043
  }
15067
- var Bd = ["ortho"];
15068
- const Pd = {
15069
- init: wd,
15070
- forward: Ed,
15071
- inverse: kd,
15072
- names: Bd
15044
+ var Cd = ["ortho"];
15045
+ const wd = {
15046
+ init: xd,
15047
+ forward: Ld,
15048
+ inverse: bd,
15049
+ names: Cd
15073
15050
  };
15074
15051
  var ee = {
15075
15052
  FRONT: 1,
@@ -15084,30 +15061,30 @@ var ee = {
15084
15061
  AREA_2: 3,
15085
15062
  AREA_3: 4
15086
15063
  };
15087
- function Ad() {
15064
+ function Ed() {
15088
15065
  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 >= ot - Zt / 2 ? this.face = ee.TOP : this.lat0 <= -(ot - Zt / 2) ? this.face = ee.BOTTOM : Math.abs(this.long0) <= Zt ? this.face = ee.FRONT : Math.abs(this.long0) <= ot + Zt ? this.face = this.long0 > 0 ? ee.RIGHT : ee.LEFT : this.face = ee.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);
15089
15066
  }
15090
- function Td(i) {
15067
+ function kd(i) {
15091
15068
  var r = { x: 0, y: 0 }, o, c, d, m, _, M, C = { value: 0 };
15092
15069
  if (i.x -= this.long0, this.es !== 0 ? o = Math.atan(this.one_minus_f_squared * Math.tan(i.y)) : o = i.y, c = i.x, this.face === ee.TOP)
15093
15070
  m = ot - o, c >= Zt && c <= ot + Zt ? (C.value = Ut.AREA_0, d = c - ot) : c > ot + Zt || c <= -(ot + Zt) ? (C.value = Ut.AREA_1, d = c > 0 ? c - le : c + le) : c > -(ot + Zt) && c <= -Zt ? (C.value = Ut.AREA_2, d = c + ot) : (C.value = Ut.AREA_3, d = c);
15094
15071
  else if (this.face === ee.BOTTOM)
15095
15072
  m = ot + o, c >= Zt && c <= ot + Zt ? (C.value = Ut.AREA_0, d = -c + ot) : c < Zt && c >= -Zt ? (C.value = Ut.AREA_1, d = -c) : c < -Zt && c >= -(ot + Zt) ? (C.value = Ut.AREA_2, d = -c - ot) : (C.value = Ut.AREA_3, d = c > 0 ? -c + le : -c - le);
15096
15073
  else {
15097
- var D, Z, R, H, et, nt, it;
15098
- this.face === ee.RIGHT ? c = Jn(c, +ot) : this.face === ee.BACK ? c = Jn(c, +le) : this.face === ee.LEFT && (c = Jn(c, -ot)), H = Math.sin(o), et = Math.cos(o), nt = Math.sin(c), it = Math.cos(c), D = et * it, Z = et * nt, R = H, this.face === ee.FRONT ? (m = Math.acos(D), d = pa(m, R, Z, C)) : this.face === ee.RIGHT ? (m = Math.acos(Z), d = pa(m, R, -D, C)) : this.face === ee.BACK ? (m = Math.acos(-D), d = pa(m, R, -Z, C)) : this.face === ee.LEFT ? (m = Math.acos(-Z), d = pa(m, R, D, C)) : (m = d = 0, C.value = Ut.AREA_0);
15074
+ var D, j, R, H, et, nt, it;
15075
+ this.face === ee.RIGHT ? c = Jn(c, +ot) : this.face === ee.BACK ? c = Jn(c, +le) : this.face === ee.LEFT && (c = Jn(c, -ot)), H = Math.sin(o), et = Math.cos(o), nt = Math.sin(c), it = Math.cos(c), D = et * it, j = et * nt, R = H, this.face === ee.FRONT ? (m = Math.acos(D), d = pa(m, R, j, C)) : this.face === ee.RIGHT ? (m = Math.acos(j), d = pa(m, R, -D, C)) : this.face === ee.BACK ? (m = Math.acos(-D), d = pa(m, R, -j, C)) : this.face === ee.LEFT ? (m = Math.acos(-j), d = pa(m, R, D, C)) : (m = d = 0, C.value = Ut.AREA_0);
15099
15076
  }
15100
15077
  return M = Math.atan(12 / le * (d + Math.acos(Math.sin(d) * Math.cos(Zt)) - ot)), _ = Math.sqrt((1 - Math.cos(m)) / (Math.cos(M) * Math.cos(M)) / (1 - Math.cos(Math.atan(1 / Math.cos(d))))), C.value === Ut.AREA_1 ? M += ot : C.value === Ut.AREA_2 ? M += le : C.value === Ut.AREA_3 && (M += 1.5 * le), r.x = _ * Math.cos(M), r.y = _ * Math.sin(M), r.x = r.x * this.a + this.x0, r.y = r.y * this.a + this.y0, i.x = r.x, i.y = r.y, i;
15101
15078
  }
15102
- function Sd(i) {
15103
- var r = { lam: 0, phi: 0 }, o, c, d, m, _, M, C, D, Z, R = { value: 0 };
15104
- if (i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a, c = Math.atan(Math.sqrt(i.x * i.x + i.y * i.y)), o = Math.atan2(i.y, i.x), i.x >= 0 && i.x >= Math.abs(i.y) ? R.value = Ut.AREA_0 : i.y >= 0 && i.y >= Math.abs(i.x) ? (R.value = Ut.AREA_1, o -= ot) : i.x < 0 && -i.x >= Math.abs(i.y) ? (R.value = Ut.AREA_2, o = o < 0 ? o + le : o - le) : (R.value = Ut.AREA_3, o += ot), Z = le / 12 * Math.tan(o), _ = Math.sin(Z) / (Math.cos(Z) - 1 / Math.sqrt(2)), M = Math.atan(_), d = Math.cos(o), m = Math.tan(c), C = 1 - d * d * m * m * (1 - Math.cos(Math.atan(1 / Math.cos(M)))), C < -1 ? C = -1 : C > 1 && (C = 1), this.face === ee.TOP)
15079
+ function Bd(i) {
15080
+ var r = { lam: 0, phi: 0 }, o, c, d, m, _, M, C, D, j, R = { value: 0 };
15081
+ if (i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a, c = Math.atan(Math.sqrt(i.x * i.x + i.y * i.y)), o = Math.atan2(i.y, i.x), i.x >= 0 && i.x >= Math.abs(i.y) ? R.value = Ut.AREA_0 : i.y >= 0 && i.y >= Math.abs(i.x) ? (R.value = Ut.AREA_1, o -= ot) : i.x < 0 && -i.x >= Math.abs(i.y) ? (R.value = Ut.AREA_2, o = o < 0 ? o + le : o - le) : (R.value = Ut.AREA_3, o += ot), j = le / 12 * Math.tan(o), _ = Math.sin(j) / (Math.cos(j) - 1 / Math.sqrt(2)), M = Math.atan(_), d = Math.cos(o), m = Math.tan(c), C = 1 - d * d * m * m * (1 - Math.cos(Math.atan(1 / Math.cos(M)))), C < -1 ? C = -1 : C > 1 && (C = 1), this.face === ee.TOP)
15105
15082
  D = Math.acos(C), r.phi = ot - D, R.value === Ut.AREA_0 ? r.lam = M + ot : R.value === Ut.AREA_1 ? r.lam = M < 0 ? M + le : M - le : R.value === Ut.AREA_2 ? r.lam = M - ot : r.lam = M;
15106
15083
  else if (this.face === ee.BOTTOM)
15107
15084
  D = Math.acos(C), r.phi = D - ot, R.value === Ut.AREA_0 ? r.lam = -M + ot : R.value === Ut.AREA_1 ? r.lam = -M : R.value === Ut.AREA_2 ? r.lam = -M - ot : r.lam = M < 0 ? -M - le : -M + le;
15108
15085
  else {
15109
15086
  var H, et, nt;
15110
- H = C, Z = H * H, Z >= 1 ? nt = 0 : nt = Math.sqrt(1 - Z) * Math.sin(M), Z += nt * nt, Z >= 1 ? et = 0 : et = Math.sqrt(1 - Z), R.value === Ut.AREA_1 ? (Z = et, et = -nt, nt = Z) : R.value === Ut.AREA_2 ? (et = -et, nt = -nt) : R.value === Ut.AREA_3 && (Z = et, et = nt, nt = -Z), this.face === ee.RIGHT ? (Z = H, H = -et, et = Z) : this.face === ee.BACK ? (H = -H, et = -et) : this.face === ee.LEFT && (Z = H, H = et, et = -Z), r.phi = Math.acos(-nt) - ot, r.lam = Math.atan2(et, H), this.face === ee.RIGHT ? r.lam = Jn(r.lam, -ot) : this.face === ee.BACK ? r.lam = Jn(r.lam, -le) : this.face === ee.LEFT && (r.lam = Jn(r.lam, +ot));
15087
+ H = C, j = H * H, j >= 1 ? nt = 0 : nt = Math.sqrt(1 - j) * Math.sin(M), j += nt * nt, j >= 1 ? et = 0 : et = Math.sqrt(1 - j), R.value === Ut.AREA_1 ? (j = et, et = -nt, nt = j) : R.value === Ut.AREA_2 ? (et = -et, nt = -nt) : R.value === Ut.AREA_3 && (j = et, et = nt, nt = -j), this.face === ee.RIGHT ? (j = H, H = -et, et = j) : this.face === ee.BACK ? (H = -H, et = -et) : this.face === ee.LEFT && (j = H, H = et, et = -j), r.phi = Math.acos(-nt) - ot, r.lam = Math.atan2(et, H), this.face === ee.RIGHT ? r.lam = Jn(r.lam, -ot) : this.face === ee.BACK ? r.lam = Jn(r.lam, -le) : this.face === ee.LEFT && (r.lam = Jn(r.lam, +ot));
15111
15088
  }
15112
15089
  if (this.es !== 0) {
15113
15090
  var it, ht, pt;
@@ -15123,12 +15100,12 @@ function Jn(i, r) {
15123
15100
  var o = i + r;
15124
15101
  return o < -le ? o += sr : o > +le && (o -= sr), o;
15125
15102
  }
15126
- var Dd = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
15127
- const Od = {
15128
- init: Ad,
15129
- forward: Td,
15130
- inverse: Sd,
15131
- names: Dd
15103
+ var Pd = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
15104
+ const Ad = {
15105
+ init: Ed,
15106
+ forward: kd,
15107
+ inverse: Bd,
15108
+ names: Pd
15132
15109
  };
15133
15110
  var Po = [
15134
15111
  [1, 22199e-21, -715515e-10, 31103e-10],
@@ -15170,12 +15147,12 @@ var Po = [
15170
15147
  [0.9394, 840947e-8, -192841e-9, -42106e-10],
15171
15148
  [0.9761, 616527e-8, -256e-6, -42106e-10],
15172
15149
  [1, 328947e-8, -319159e-9, -42106e-10]
15173
- ], Nh = 0.8487, Gh = 1.3523, jh = mi / 5, Id = 1 / jh, Yn = 18, Ca = function(i, r) {
15150
+ ], Nh = 0.8487, Gh = 1.3523, jh = mi / 5, Td = 1 / jh, Yn = 18, Ca = function(i, r) {
15174
15151
  return i[0] + r * (i[1] + r * (i[2] + r * i[3]));
15175
- }, Rd = function(i, r) {
15152
+ }, Sd = function(i, r) {
15176
15153
  return i[1] + r * (2 * i[2] + r * 3 * i[3]);
15177
15154
  };
15178
- function Fd(i, r, o, c) {
15155
+ function Dd(i, r, o, c) {
15179
15156
  for (var d = r; c; --c) {
15180
15157
  var m = i(d);
15181
15158
  if (d -= m, Math.abs(m) < o)
@@ -15183,19 +15160,19 @@ function Fd(i, r, o, c) {
15183
15160
  }
15184
15161
  return d;
15185
15162
  }
15186
- function zd() {
15163
+ function Od() {
15187
15164
  this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
15188
15165
  }
15189
- function Nd(i) {
15166
+ function Id(i) {
15190
15167
  var r = ct(i.x - this.long0), o = Math.abs(i.y), c = Math.floor(o * jh);
15191
- c < 0 ? c = 0 : c >= Yn && (c = Yn - 1), o = mi * (o - Id * c);
15168
+ c < 0 ? c = 0 : c >= Yn && (c = Yn - 1), o = mi * (o - Td * c);
15192
15169
  var d = {
15193
15170
  x: Ca(Po[c], o) * r,
15194
15171
  y: Ca(Qs[c], o)
15195
15172
  };
15196
15173
  return i.y < 0 && (d.y = -d.y), d.x = d.x * this.a * Nh + this.x0, d.y = d.y * this.a * Gh + this.y0, d;
15197
15174
  }
15198
- function Gd(i) {
15175
+ function Rd(i) {
15199
15176
  var r = {
15200
15177
  x: (i.x - this.x0) / (this.a * Nh),
15201
15178
  y: Math.abs(i.y - this.y0) / (this.a * Gh)
@@ -15212,36 +15189,36 @@ function Gd(i) {
15212
15189
  else
15213
15190
  break;
15214
15191
  var c = Qs[o], d = 5 * (r.y - c[0]) / (Qs[o + 1][0] - c[0]);
15215
- d = Fd(function(m) {
15216
- return (Ca(c, m) - r.y) / Rd(c, m);
15192
+ d = Dd(function(m) {
15193
+ return (Ca(c, m) - r.y) / Sd(c, m);
15217
15194
  }, d, ut, 100), r.x /= Ca(Po[o], d), r.y = (5 * o + d) * ye, i.y < 0 && (r.y = -r.y);
15218
15195
  }
15219
15196
  return r.x = ct(r.x + this.long0), r;
15220
15197
  }
15221
- var jd = ["Robinson", "robin"];
15222
- const Zd = {
15223
- init: zd,
15224
- forward: Nd,
15225
- inverse: Gd,
15226
- names: jd
15198
+ var Fd = ["Robinson", "robin"];
15199
+ const zd = {
15200
+ init: Od,
15201
+ forward: Id,
15202
+ inverse: Rd,
15203
+ names: Fd
15227
15204
  };
15228
- function Ud() {
15205
+ function Nd() {
15229
15206
  this.name = "geocent";
15230
15207
  }
15231
- function qd(i) {
15208
+ function Gd(i) {
15232
15209
  var r = Bh(i, this.es, this.a);
15233
15210
  return r;
15234
15211
  }
15235
- function Vd(i) {
15212
+ function jd(i) {
15236
15213
  var r = Ph(i, this.es, this.a, this.b);
15237
15214
  return r;
15238
15215
  }
15239
- var Hd = ["Geocentric", "geocentric", "geocent", "Geocent"];
15240
- const Kd = {
15241
- init: Ud,
15242
- forward: qd,
15243
- inverse: Vd,
15244
- names: Hd
15216
+ var Zd = ["Geocentric", "geocentric", "geocent", "Geocent"];
15217
+ const Ud = {
15218
+ init: Nd,
15219
+ forward: Gd,
15220
+ inverse: jd,
15221
+ names: Zd
15245
15222
  };
15246
15223
  var ke = {
15247
15224
  N_POLE: 0,
@@ -15260,7 +15237,7 @@ var ke = {
15260
15237
  lat0: { def: 0, num: !0 }
15261
15238
  // default is Equator, conversion to rad is automatic
15262
15239
  };
15263
- function $d() {
15240
+ function qd() {
15264
15241
  if (Object.keys(Ks).forEach((function(o) {
15265
15242
  if (typeof this[o] > "u")
15266
15243
  this[o] = Ks[o].def;
@@ -15276,7 +15253,7 @@ function $d() {
15276
15253
  var i = this.tilt, r = this.azi;
15277
15254
  this.cg = Math.cos(r), this.sg = Math.sin(r), this.cw = Math.cos(i), this.sw = Math.sin(i);
15278
15255
  }
15279
- function Wd(i) {
15256
+ function Vd(i) {
15280
15257
  i.x -= this.long0;
15281
15258
  var r = Math.sin(i.y), o = Math.cos(i.y), c = Math.cos(i.x), d, m;
15282
15259
  switch (this.mode) {
@@ -15310,7 +15287,7 @@ function Wd(i) {
15310
15287
  var _, M;
15311
15288
  return _ = m * this.cg + d * this.sg, M = 1 / (_ * this.sw * this.h1 + this.cw), d = (d * this.cg - m * this.sg) * this.cw * M, m = _ * M, i.x = d * this.a, i.y = m * this.a, i;
15312
15289
  }
15313
- function Xd(i) {
15290
+ function Hd(i) {
15314
15291
  i.x /= this.a, i.y /= this.a;
15315
15292
  var r = { x: i.x, y: i.y }, o, c, d;
15316
15293
  d = 1 / (this.pn1 - i.y * this.sw), o = this.pn1 * i.x * d, c = this.pn1 * i.y * this.cw * d, i.x = o * this.cg + c * this.sg, i.y = c * this.cg - o * this.sg;
@@ -15337,14 +15314,14 @@ function Xd(i) {
15337
15314
  }
15338
15315
  return i.x = r.x + this.long0, i.y = r.y, i;
15339
15316
  }
15340
- var Yd = ["Tilted_Perspective", "tpers"];
15341
- const Qd = {
15342
- init: $d,
15343
- forward: Wd,
15344
- inverse: Xd,
15345
- names: Yd
15317
+ var Kd = ["Tilted_Perspective", "tpers"];
15318
+ const $d = {
15319
+ init: qd,
15320
+ forward: Vd,
15321
+ inverse: Hd,
15322
+ names: Kd
15346
15323
  };
15347
- function Jd() {
15324
+ function Wd() {
15348
15325
  if (this.flip_axis = this.sweep === "x" ? 1 : 0, this.h = Number(this.h), this.radius_g_1 = this.h / this.a, this.radius_g_1 <= 0 || this.radius_g_1 > 1e10)
15349
15326
  throw new Error();
15350
15327
  if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
@@ -15354,7 +15331,7 @@ function Jd() {
15354
15331
  this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
15355
15332
  this.title || (this.title = "Geostationary Satellite View");
15356
15333
  }
15357
- function tf(i) {
15334
+ function Xd(i) {
15358
15335
  var r = i.x, o = i.y, c, d, m, _;
15359
15336
  if (r = r - this.long0, this.shape === "ellipse") {
15360
15337
  o = Math.atan(this.radius_p2 * Math.tan(o));
@@ -15365,7 +15342,7 @@ function tf(i) {
15365
15342
  } else this.shape === "sphere" && (c = Math.cos(o), d = Math.cos(r) * c, m = Math.sin(r) * c, _ = Math.sin(o), c = this.radius_g - d, this.flip_axis ? (i.x = this.radius_g_1 * Math.atan(m / Ge(_, c)), i.y = this.radius_g_1 * Math.atan(_ / c)) : (i.x = this.radius_g_1 * Math.atan(m / c), i.y = this.radius_g_1 * Math.atan(_ / Ge(m, c))));
15366
15343
  return i.x = i.x * this.a, i.y = i.y * this.a, i;
15367
15344
  }
15368
- function ef(i) {
15345
+ function Yd(i) {
15369
15346
  var r = -1, o = 0, c = 0, d, m, _, M;
15370
15347
  if (i.x = i.x / this.a, i.y = i.y / this.a, this.shape === "ellipse") {
15371
15348
  this.flip_axis ? (c = Math.tan(i.y / this.radius_g_1), o = Math.tan(i.x / this.radius_g_1) * Ge(1, c)) : (o = Math.tan(i.x / this.radius_g_1), c = Math.tan(i.y / this.radius_g_1) * Ge(1, o));
@@ -15380,37 +15357,37 @@ function ef(i) {
15380
15357
  }
15381
15358
  return i.x = i.x + this.long0, i;
15382
15359
  }
15383
- var nf = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
15384
- const sf = {
15385
- init: Jd,
15386
- forward: tf,
15387
- inverse: ef,
15388
- names: nf
15360
+ var Qd = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
15361
+ const Jd = {
15362
+ init: Wd,
15363
+ forward: Xd,
15364
+ inverse: Yd,
15365
+ names: Qd
15389
15366
  };
15390
15367
  var tr = 1.340264, er = -0.081106, ir = 893e-6, nr = 3796e-6, wa = Math.sqrt(3) / 2;
15391
- function rf() {
15368
+ function tf() {
15392
15369
  this.es = 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0;
15393
15370
  }
15394
- function af(i) {
15371
+ function ef(i) {
15395
15372
  var r = ct(i.x - this.long0), o = i.y, c = Math.asin(wa * Math.sin(o)), d = c * c, m = d * d * d;
15396
15373
  return i.x = r * Math.cos(c) / (wa * (tr + 3 * er * d + m * (7 * ir + 9 * nr * d))), i.y = c * (tr + er * d + m * (ir + nr * d)), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
15397
15374
  }
15398
- function of(i) {
15375
+ function nf(i) {
15399
15376
  i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a;
15400
15377
  var r = 1e-9, o = 12, c = i.y, d, m, _, M, C, D;
15401
15378
  for (D = 0; D < o && (d = c * c, m = d * d * d, _ = c * (tr + er * d + m * (ir + nr * d)) - i.y, M = tr + 3 * er * d + m * (7 * ir + 9 * nr * d), c -= C = _ / M, !(Math.abs(C) < r)); ++D)
15402
15379
  ;
15403
15380
  return d = c * c, m = d * d * d, i.x = wa * i.x * (tr + 3 * er * d + m * (7 * ir + 9 * nr * d)) / Math.cos(c), i.y = Math.asin(Math.sin(c) / wa), i.x = ct(i.x + this.long0), i;
15404
15381
  }
15405
- var hf = ["eqearth", "Equal Earth", "Equal_Earth"];
15406
- const lf = {
15407
- init: rf,
15408
- forward: af,
15409
- inverse: of,
15410
- names: hf
15382
+ var sf = ["eqearth", "Equal Earth", "Equal_Earth"];
15383
+ const rf = {
15384
+ init: tf,
15385
+ forward: ef,
15386
+ inverse: nf,
15387
+ names: sf
15411
15388
  };
15412
15389
  var or = 1e-10;
15413
- function uf() {
15390
+ function af() {
15414
15391
  var i;
15415
15392
  if (this.phi1 = this.lat1, Math.abs(this.phi1) < or)
15416
15393
  throw new Error();
@@ -15419,13 +15396,13 @@ function uf() {
15419
15396
  this.am1 = Math.sin(this.phi1),
15420
15397
  i = Math.cos(this.phi1),
15421
15398
  this.en
15422
- ), this.am1 = i / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = df, this.forward = cf) : (Math.abs(this.phi1) + or >= ot ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = pf, this.forward = ff);
15399
+ ), this.am1 = i / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = hf, this.forward = of) : (Math.abs(this.phi1) + or >= ot ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = uf, this.forward = lf);
15423
15400
  }
15424
- function cf(i) {
15401
+ function of(i) {
15425
15402
  var r = ct(i.x - (this.long0 || 0)), o = i.y, c, d, m;
15426
15403
  return c = this.am1 + this.m1 - is(o, d = Math.sin(o), m = Math.cos(o), this.en), d = m * r / (c * Math.sqrt(1 - this.es * d * d)), i.x = c * Math.sin(d), i.y = this.am1 - c * Math.cos(d), i.x = this.a * i.x + (this.x0 || 0), i.y = this.a * i.y + (this.y0 || 0), i;
15427
15404
  }
15428
- function df(i) {
15405
+ function hf(i) {
15429
15406
  i.x = (i.x - (this.x0 || 0)) / this.a, i.y = (i.y - (this.y0 || 0)) / this.a;
15430
15407
  var r, o, c, d;
15431
15408
  if (o = Ge(i.x, i.y = this.am1 - i.y), d = Oo(this.am1 + this.m1 - o, this.es, this.en), (r = Math.abs(d)) < ot)
@@ -15436,24 +15413,24 @@ function df(i) {
15436
15413
  throw new Error();
15437
15414
  return i.x = ct(c + (this.long0 || 0)), i.y = Wi(d), i;
15438
15415
  }
15439
- function ff(i) {
15416
+ function lf(i) {
15440
15417
  var r = ct(i.x - (this.long0 || 0)), o = i.y, c, d;
15441
15418
  return d = this.cphi1 + this.phi1 - o, Math.abs(d) > or ? (i.x = d * Math.sin(c = r * Math.cos(o) / d), i.y = this.cphi1 - d * Math.cos(c)) : i.x = i.y = 0, i.x = this.a * i.x + (this.x0 || 0), i.y = this.a * i.y + (this.y0 || 0), i;
15442
15419
  }
15443
- function pf(i) {
15420
+ function uf(i) {
15444
15421
  i.x = (i.x - (this.x0 || 0)) / this.a, i.y = (i.y - (this.y0 || 0)) / this.a;
15445
15422
  var r, o, c = Ge(i.x, i.y = this.cphi1 - i.y);
15446
15423
  if (o = this.cphi1 + this.phi1 - c, Math.abs(o) > ot)
15447
15424
  throw new Error();
15448
15425
  return Math.abs(Math.abs(o) - ot) <= or ? r = 0 : r = c * Math.atan2(i.x, i.y) / Math.cos(o), i.x = ct(r + (this.long0 || 0)), i.y = Wi(o), i;
15449
15426
  }
15450
- var _f = ["bonne", "Bonne (Werner lat_1=90)"];
15451
- const mf = {
15452
- init: uf,
15453
- names: _f
15427
+ var cf = ["bonne", "Bonne (Werner lat_1=90)"];
15428
+ const df = {
15429
+ init: af,
15430
+ names: cf
15454
15431
  };
15455
- function gf(i) {
15456
- i.Proj.projections.add(ya), i.Proj.projections.add(va), i.Proj.projections.add(uc), i.Proj.projections.add(Mc), i.Proj.projections.add(Ec), i.Proj.projections.add(Tc), i.Proj.projections.add(Fc), i.Proj.projections.add(Zc), i.Proj.projections.add(Kc), i.Proj.projections.add(Qc), i.Proj.projections.add(_0), i.Proj.projections.add(x0), i.Proj.projections.add(E0), i.Proj.projections.add(S0), i.Proj.projections.add(F0), i.Proj.projections.add(Z0), i.Proj.projections.add(K0), i.Proj.projections.add(Q0), i.Proj.projections.add(sd), i.Proj.projections.add(ld), i.Proj.projections.add(pd), i.Proj.projections.add(vd), i.Proj.projections.add(Cd), i.Proj.projections.add(Pd), i.Proj.projections.add(Od), i.Proj.projections.add(Zd), i.Proj.projections.add(Kd), i.Proj.projections.add(Qd), i.Proj.projections.add(sf), i.Proj.projections.add(lf), i.Proj.projections.add(mf);
15432
+ function ff(i) {
15433
+ i.Proj.projections.add(ya), i.Proj.projections.add(va), i.Proj.projections.add(ac), i.Proj.projections.add(mc), i.Proj.projections.add(Lc), i.Proj.projections.add(kc), i.Proj.projections.add(Dc), i.Proj.projections.add(zc), i.Proj.projections.add(Uc), i.Proj.projections.add($c), i.Proj.projections.add(c0), i.Proj.projections.add(g0), i.Proj.projections.add(L0), i.Proj.projections.add(B0), i.Proj.projections.add(D0), i.Proj.projections.add(z0), i.Proj.projections.add(U0), i.Proj.projections.add($0), i.Proj.projections.add(td), i.Proj.projections.add(rd), i.Proj.projections.add(ud), i.Proj.projections.add(_d), i.Proj.projections.add(Md), i.Proj.projections.add(wd), i.Proj.projections.add(Ad), i.Proj.projections.add(zd), i.Proj.projections.add(Ud), i.Proj.projections.add($d), i.Proj.projections.add(Jd), i.Proj.projections.add(rf), i.Proj.projections.add(df);
15457
15434
  }
15458
15435
  Ve.defaultDatum = "WGS84";
15459
15436
  Ve.Proj = gi;
@@ -15461,19 +15438,19 @@ Ve.WGS84 = new Ve.Proj("WGS84");
15461
15438
  Ve.Point = ts;
15462
15439
  Ve.toPoint = Ah;
15463
15440
  Ve.defs = Se;
15464
- Ve.nadgrid = du;
15441
+ Ve.nadgrid = hu;
15465
15442
  Ve.transform = La;
15466
- Ve.mgrs = Bu;
15443
+ Ve.mgrs = Cu;
15467
15444
  Ve.version = "__VERSION__";
15468
- gf(Ve);
15469
- const yf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15445
+ ff(Ve);
15446
+ const pf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15470
15447
  __proto__: null,
15471
15448
  default: Ve
15472
- }, Symbol.toStringTag, { value: "Module" })), vf = /* @__PURE__ */ xl(yf);
15449
+ }, Symbol.toStringTag, { value: "Module" })), _f = /* @__PURE__ */ vl(pf);
15473
15450
  (function(i) {
15474
15451
  (function(r) {
15475
15452
  var o, c;
15476
- o = mh(), c = vf, i.exports = r(o, c);
15453
+ o = mh(), c = _f, i.exports = r(o, c);
15477
15454
  })(function(r, o) {
15478
15455
  return o.__esModule && o.default && (o = o.default), r.Proj = {}, r.Proj._isProj4Obj = function(c) {
15479
15456
  return typeof c.inverse < "u" && typeof c.forward < "u";
@@ -15516,8 +15493,8 @@ const yf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15516
15493
  this._scales = this.options.scales;
15517
15494
  else if (this.options.resolutions) {
15518
15495
  this._scales = [];
15519
- for (var Z = this.options.resolutions.length - 1; Z >= 0; Z--)
15520
- this.options.resolutions[Z] && (this._scales[Z] = 1 / this.options.resolutions[Z]);
15496
+ for (var j = this.options.resolutions.length - 1; j >= 0; j--)
15497
+ this.options.resolutions[j] && (this._scales[j] = 1 / this.options.resolutions[j]);
15521
15498
  }
15522
15499
  this.infinite = !this.options.bounds;
15523
15500
  },
@@ -15586,8 +15563,8 @@ const yf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15586
15563
  return new r.Proj.ImageOverlay(c, d, m);
15587
15564
  }, r.Proj;
15588
15565
  });
15589
- })(El);
15590
- const Zh = new G.Proj.CRS(
15566
+ })(Ll);
15567
+ const Zh = new Z.Proj.CRS(
15591
15568
  "EPSG:900913",
15592
15569
  "+proj=merc +a=6378206 +b=6356584.314245179 +lat_ts=0.0 +lon_0=0.0 +x_0=0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs",
15593
15570
  {
@@ -15599,9 +15576,9 @@ const Zh = new G.Proj.CRS(
15599
15576
  return i;
15600
15577
  }(),
15601
15578
  origin: [0, 0],
15602
- bounds: G.bounds([20037508342789244e-9, 0], [0, 20037508342789244e-9])
15579
+ bounds: Z.bounds([20037508342789244e-9, 0], [0, 20037508342789244e-9])
15603
15580
  }
15604
- ), Mf = G.Layer.extend({
15581
+ ), mf = Z.Layer.extend({
15605
15582
  provide: {
15606
15583
  TDT: "tdt",
15607
15584
  BAIDU: "bd",
@@ -15629,7 +15606,7 @@ const Zh = new G.Proj.CRS(
15629
15606
  accessToken: "016b31f15f25e1365e85aec7e7b0464e"
15630
15607
  },
15631
15608
  initialize(i) {
15632
- i = gl.deleteEmptyProperty(i), G.Util.setOptions(this, i);
15609
+ i = gl.deleteEmptyProperty(i), Z.Util.setOptions(this, i);
15633
15610
  },
15634
15611
  onAdd(i) {
15635
15612
  this.map = i, this.replaceProjection(), this.tileLayers = this.getLayerGroup(), i.addLayer(this.tileLayers);
@@ -15640,7 +15617,7 @@ const Zh = new G.Proj.CRS(
15640
15617
  },
15641
15618
  replaceProjection() {
15642
15619
  const i = this.map.getCenter(), r = this.map.getZoom();
15643
- this.options.provide === this.provide.BAIDU ? this.map.options.crs = Zh : this.options.provide === this.provide.YANDEX ? this.map.options.crs = G.CRS.EPSG3395 : this.map.options.crs = G.CRS.EPSG3857, this._resetMapStatus(i, r);
15620
+ this.options.provide === this.provide.BAIDU ? this.map.options.crs = Zh : this.options.provide === this.provide.YANDEX ? this.map.options.crs = Z.CRS.EPSG3395 : this.map.options.crs = Z.CRS.EPSG3857, this._resetMapStatus(i, r);
15644
15621
  },
15645
15622
  _resetMapStatus(i, r) {
15646
15623
  this.map.setView(i), this.map._resetView(i, r, !0);
@@ -15677,7 +15654,7 @@ const Zh = new G.Proj.CRS(
15677
15654
  break;
15678
15655
  }
15679
15656
  if (this.options.opacity >= 0 && (i.opacity = this.options.opacity), this.options.url)
15680
- return new G.TileLayer(this.options.url, { ...r, style: i });
15657
+ return new Z.TileLayer(this.options.url, { ...r, style: i });
15681
15658
  switch (this.options.provide) {
15682
15659
  case this.provide.TDT:
15683
15660
  let o;
@@ -15698,9 +15675,9 @@ const Zh = new G.Proj.CRS(
15698
15675
  o = ["img_w"];
15699
15676
  break;
15700
15677
  }
15701
- return new G.LayerGroup(
15678
+ return new Z.LayerGroup(
15702
15679
  o.map(
15703
- (c) => new G.TileLayer(`http://t{s}.tianditu.gov.cn/DataServer?T=${c}&x={x}&y={y}&l={z}&tk=${this.options.accessToken}`, {
15680
+ (c) => new Z.TileLayer(`http://t{s}.tianditu.gov.cn/DataServer?T=${c}&x={x}&y={y}&l={z}&tk=${this.options.accessToken}`, {
15704
15681
  ...r,
15705
15682
  style: i
15706
15683
  })
@@ -15709,28 +15686,28 @@ const Zh = new G.Proj.CRS(
15709
15686
  case this.provide.BAIDU:
15710
15687
  switch (this.options.source) {
15711
15688
  case this.source.VECTOR:
15712
- return r.maxNativeZoom = 19, new G.TileLayer("http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1", {
15689
+ return r.maxNativeZoom = 19, new Z.TileLayer("http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1", {
15713
15690
  ...r,
15714
15691
  style: i
15715
15692
  });
15716
15693
  case this.source.ANNO:
15717
- return r.maxNativeZoom = 19, new G.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl", {
15694
+ return r.maxNativeZoom = 19, new Z.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl", {
15718
15695
  ...r,
15719
15696
  style: i
15720
15697
  });
15721
15698
  case this.source.SATELITE:
15722
- return r.maxNativeZoom = 17, new G.LayerGroup([
15723
- new G.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46", {
15699
+ return r.maxNativeZoom = 17, new Z.LayerGroup([
15700
+ new Z.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46", {
15724
15701
  ...r,
15725
15702
  style: i
15726
15703
  }),
15727
- new G.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl", {
15704
+ new Z.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl", {
15728
15705
  ...r,
15729
15706
  style: i
15730
15707
  })
15731
15708
  ]);
15732
15709
  case this.source.SATELITE_NO_ANNO:
15733
- return r.maxNativeZoom = 19, new G.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46", {
15710
+ return r.maxNativeZoom = 19, new Z.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46", {
15734
15711
  ...r,
15735
15712
  style: i
15736
15713
  });
@@ -15739,28 +15716,28 @@ const Zh = new G.Proj.CRS(
15739
15716
  case this.provide.GAODE:
15740
15717
  switch (this.options.source) {
15741
15718
  case this.source.VECTOR:
15742
- return r.maxNativeZoom = 18, new G.TileLayer("http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
15719
+ return r.maxNativeZoom = 18, new Z.TileLayer("http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
15743
15720
  ...r,
15744
15721
  style: i
15745
15722
  });
15746
15723
  case this.source.ANNO:
15747
- return r.maxNativeZoom = 18, new G.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
15724
+ return r.maxNativeZoom = 18, new Z.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
15748
15725
  ...r,
15749
15726
  style: i
15750
15727
  });
15751
15728
  case this.source.SATELITE:
15752
- return r.maxNativeZoom = 16, new G.LayerGroup([
15753
- new G.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6", {
15729
+ return r.maxNativeZoom = 16, new Z.LayerGroup([
15730
+ new Z.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6", {
15754
15731
  ...r,
15755
15732
  style: i
15756
15733
  }),
15757
- new G.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
15734
+ new Z.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
15758
15735
  ...r,
15759
15736
  style: i
15760
15737
  })
15761
15738
  ]);
15762
15739
  case this.source.SATELITE_NO_ANNO:
15763
- return r.maxNativeZoom = 18, new G.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6", {
15740
+ return r.maxNativeZoom = 18, new Z.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6", {
15764
15741
  ...r,
15765
15742
  style: i
15766
15743
  });
@@ -15769,7 +15746,7 @@ const Zh = new G.Proj.CRS(
15769
15746
  case this.provide.YANDEX:
15770
15747
  switch (this.options.source) {
15771
15748
  case this.source.ANNO:
15772
- return new G.TileLayer(
15749
+ return new Z.TileLayer(
15773
15750
  "https://core-renderer-tiles.maps.yandex.net/tiles?l=skl&v=24.05.19-0-b240515214430&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps&experimental_ranking_mode_name=default-web-ranking&experimental_data_hd=vegetation_model_exp",
15774
15751
  {
15775
15752
  ...r,
@@ -15777,13 +15754,13 @@ const Zh = new G.Proj.CRS(
15777
15754
  }
15778
15755
  );
15779
15756
  case this.source.SATELITE:
15780
- return new G.LayerGroup([
15781
- new G.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps", {
15757
+ return new Z.LayerGroup([
15758
+ new Z.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps", {
15782
15759
  ...r,
15783
15760
  subdomains: ["01", "02", "03", "04"],
15784
15761
  style: i
15785
15762
  }),
15786
- new G.TileLayer(
15763
+ new Z.TileLayer(
15787
15764
  "https://core-renderer-tiles.maps.yandex.net/tiles?l=skl&v=24.05.19-0-b240515214430&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps&experimental_ranking_mode_name=default-web-ranking&experimental_data_hd=vegetation_model_exp",
15788
15765
  {
15789
15766
  ...r,
@@ -15792,7 +15769,7 @@ const Zh = new G.Proj.CRS(
15792
15769
  )
15793
15770
  ]);
15794
15771
  case this.source.SATELITE_NO_ANNO:
15795
- return new G.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps", {
15772
+ return new Z.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps", {
15796
15773
  ...r,
15797
15774
  subdomains: ["01", "02", "03", "04"],
15798
15775
  style: i
@@ -15802,50 +15779,50 @@ const Zh = new G.Proj.CRS(
15802
15779
  }
15803
15780
  },
15804
15781
  setOptions(i) {
15805
- G.Util.setOptions(this, i);
15782
+ Z.Util.setOptions(this, i);
15806
15783
  const r = this.getLayerGroup();
15807
15784
  this.map.removeLayer(this.tileLayers), setTimeout(() => {
15808
15785
  this.replaceProjection(), this.tileLayers = r.addTo(this.map);
15809
15786
  }, 500);
15810
15787
  }
15811
- }), xf = G.ImageOverlay.extend({
15788
+ }), gf = Z.ImageOverlay.extend({
15812
15789
  initialize(i, r, o, c) {
15813
- typeof i == "string" ? this._url = i : this._rawImage = i, this.topRightMarker = r, this.bottomLeftMarker = o, this.angle = 0, G.setOptions(this, c), this._topLeft = new G.LatLng(c.corners[0]), this._topRight = new G.LatLng(c.corners[1]), this._bottomLeft = new G.LatLng(c.corners[3]), r.on("drag dragend", this.reposition, this), o.on("drag dragend", this.reposition, this);
15790
+ typeof i == "string" ? this._url = i : this._rawImage = i, this.topRightMarker = r, this.bottomLeftMarker = o, this.angle = 0, Z.setOptions(this, c), this._topLeft = new Z.LatLng(c.corners[0]), this._topRight = new Z.LatLng(c.corners[1]), this._bottomLeft = new Z.LatLng(c.corners[3]), r.on("drag dragend", this.reposition, this), o.on("drag dragend", this.reposition, this);
15814
15791
  },
15815
15792
  onAdd(i) {
15816
- this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (G.DomUtil.addClass(this._rawImage, "leaflet-interactive"), this.addInteractiveTarget(this._rawImage)), i.on("zoomend resetview", this._reset, this), this.getPane().appendChild(this._image), this._reset();
15793
+ this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (Z.DomUtil.addClass(this._rawImage, "leaflet-interactive"), this.addInteractiveTarget(this._rawImage)), i.on("zoomend resetview", this._reset, this), this.getPane().appendChild(this._image), this._reset();
15817
15794
  },
15818
15795
  onRemove(i) {
15819
- i.off("zoomend resetview", this._reset, this), G.ImageOverlay.prototype.onRemove.call(this, i);
15796
+ i.off("zoomend resetview", this._reset, this), Z.ImageOverlay.prototype.onRemove.call(this, i);
15820
15797
  },
15821
15798
  _initImage() {
15822
15799
  let i = this._rawImage;
15823
- this._url && (i = G.DomUtil.create("img"), i.style.display = "none", this.options.crossOrigin && (i.crossOrigin = ""), i.src = this._url, this._rawImage = i), G.DomUtil.addClass(i, "leaflet-image-layer");
15824
- const r = this._image = G.DomUtil.create("div", "leaflet-image-layer " + (this._zoomAnimated ? "leaflet-zoom-animated" : ""));
15825
- this._updateZIndex && this._updateZIndex(), r.appendChild(i), r.onselectstart = G.Util.falseFn, r.onmousemove = G.Util.falseFn, i.onload = (function() {
15826
- this._reset(), i.style.display = "block", this.options.w = this._rawImage.width, this.options.h = this._rawImage.height, this.boundsRectBottomLeft = new G.Point(0, 0), this.boundsRectTopRight = new G.Point(this.options.w, this.options.h), this.diagonalVector = this.boundsRectTopRight.subtract(this.boundsRectBottomLeft), this.fire("load");
15800
+ this._url && (i = Z.DomUtil.create("img"), i.style.display = "none", this.options.crossOrigin && (i.crossOrigin = ""), i.src = this._url, this._rawImage = i), Z.DomUtil.addClass(i, "leaflet-image-layer");
15801
+ const r = this._image = Z.DomUtil.create("div", "leaflet-image-layer " + (this._zoomAnimated ? "leaflet-zoom-animated" : ""));
15802
+ this._updateZIndex && this._updateZIndex(), r.appendChild(i), r.onselectstart = Z.Util.falseFn, r.onmousemove = Z.Util.falseFn, i.onload = (function() {
15803
+ this._reset(), i.style.display = "block", this.options.w = this._rawImage.width, this.options.h = this._rawImage.height, this.boundsRectBottomLeft = new Z.Point(0, 0), this.boundsRectTopRight = new Z.Point(this.options.w, this.options.h), this.diagonalVector = this.boundsRectTopRight.subtract(this.boundsRectBottomLeft), this.fire("load");
15827
15804
  }).bind(this), i.alt = this.options.alt;
15828
15805
  },
15829
15806
  _reset() {
15830
- const i = this._image, r = this._map.latLngToLayerPoint(this._topLeft), o = this._map.latLngToLayerPoint(this._topRight), c = this._map.latLngToLayerPoint(this._bottomLeft), d = o.subtract(r).add(c), m = new G.Bounds([r, o, c, d]), _ = m.getSize(), M = r.subtract(m.min), C = o.subtract(r), D = c.subtract(r), Z = Math.atan2(C.y, C.x), R = Math.atan2(D.x, D.y);
15831
- this.angle = ((Math.abs(Z) + Math.abs(R)) / 2 * 180).toFixed(2), this._bounds = new G.LatLngBounds(this._map.layerPointToLatLng(m.min), this._map.layerPointToLatLng(m.max)), G.DomUtil.setPosition(i, m.min), i.pxBounds = m, i.style.width = _.x + "px", i.style.height = _.y + "px";
15807
+ const i = this._image, r = this._map.latLngToLayerPoint(this._topLeft), o = this._map.latLngToLayerPoint(this._topRight), c = this._map.latLngToLayerPoint(this._bottomLeft), d = o.subtract(r).add(c), m = new Z.Bounds([r, o, c, d]), _ = m.getSize(), M = r.subtract(m.min), C = o.subtract(r), D = c.subtract(r), j = Math.atan2(C.y, C.x), R = Math.atan2(D.x, D.y);
15808
+ this.angle = ((Math.abs(j) + Math.abs(R)) / 2 * 180).toFixed(2), this._bounds = new Z.LatLngBounds(this._map.layerPointToLatLng(m.min), this._map.layerPointToLatLng(m.max)), Z.DomUtil.setPosition(i, m.min), i.pxBounds = m, i.style.width = _.x + "px", i.style.height = _.y + "px";
15832
15809
  const H = this._rawImage.width, et = this._rawImage.height;
15833
15810
  if (!H || !et)
15834
15811
  return;
15835
- const nt = r.distanceTo(o) / H * Math.cos(Z), it = r.distanceTo(c) / et * Math.cos(R);
15836
- this._rawImage.style.transformOrigin = "0 0", this._rawImage.style.transform = "translate(" + M.x + "px, " + M.y + "px)skew(" + R + "rad, " + Z + "rad) scale(" + nt + ", " + it + ") ";
15812
+ const nt = r.distanceTo(o) / H * Math.cos(j), it = r.distanceTo(c) / et * Math.cos(R);
15813
+ this._rawImage.style.transformOrigin = "0 0", this._rawImage.style.transform = "translate(" + M.x + "px, " + M.y + "px)skew(" + R + "rad, " + j + "rad) scale(" + nt + ", " + it + ") ";
15837
15814
  },
15838
15815
  _animateZoom(i) {
15839
15816
  const r = this._map.getZoomScale(i.zoom), c = this._map._latLngBoundsToNewLayerBounds(this._bounds, i.zoom, i.center).min;
15840
- G.DomUtil.setTransform(this._image, c, r);
15817
+ Z.DomUtil.setTransform(this._image, c, r);
15841
15818
  },
15842
15819
  reposition() {
15843
- const i = this.topRightMarker.getLatLng(), r = this.bottomLeftMarker.getLatLng(), o = this.options.w, c = this.options.h, d = this.getCornerLatLng(new G.Point(0, c), r, i), m = this.getCornerLatLng(new G.Point(o, c), r, i), _ = this.getCornerLatLng(new G.Point(0, 0), r, i), M = this.getCornerLatLng(new G.Point(o, 0), r, i);
15844
- this.options.corners = [d, m, M, _], this._topLeft = new G.LatLng(d), this._topRight = new G.LatLng(m), this._bottomLeft = new G.LatLng(_), this._reset();
15820
+ const i = this.topRightMarker.getLatLng(), r = this.bottomLeftMarker.getLatLng(), o = this.options.w, c = this.options.h, d = this.getCornerLatLng(new Z.Point(0, c), r, i), m = this.getCornerLatLng(new Z.Point(o, c), r, i), _ = this.getCornerLatLng(new Z.Point(0, 0), r, i), M = this.getCornerLatLng(new Z.Point(o, 0), r, i);
15821
+ this.options.corners = [d, m, M, _], this._topLeft = new Z.LatLng(d), this._topRight = new Z.LatLng(m), this._bottomLeft = new Z.LatLng(_), this._reset();
15845
15822
  },
15846
15823
  getCornerLatLng(i, r, o) {
15847
- const c = this.boundsRectBottomLeft, d = this.diagonalVector, m = i.subtract(c), _ = this.getClockWiseRotate90DegreePoint(d), M = this.getDotProduction(d, m) / this.getDotProduction(d, d), C = -this.getDotProduction(_, m) / this.getDotProduction(_, _), D = new G.Projection.SphericalMercator.project(r), Z = new G.Projection.SphericalMercator.project(o), R = D.add(Z.subtract(D).multiplyBy(M)), H = this.getClockWiseRotate90DegreePoint(D.subtract(Z)).multiplyBy(C), et = R.add(H);
15848
- return new G.Projection.SphericalMercator.unproject(et);
15824
+ const c = this.boundsRectBottomLeft, d = this.diagonalVector, m = i.subtract(c), _ = this.getClockWiseRotate90DegreePoint(d), M = this.getDotProduction(d, m) / this.getDotProduction(d, d), C = -this.getDotProduction(_, m) / this.getDotProduction(_, _), D = new Z.Projection.SphericalMercator.project(r), j = new Z.Projection.SphericalMercator.project(o), R = D.add(j.subtract(D).multiplyBy(M)), H = this.getClockWiseRotate90DegreePoint(D.subtract(j)).multiplyBy(C), et = R.add(H);
15825
+ return new Z.Projection.SphericalMercator.unproject(et);
15849
15826
  },
15850
15827
  setUrl(i) {
15851
15828
  return this._url = i, this._rawImage && (this._rawImage.src = i), this;
@@ -15854,9 +15831,9 @@ const Zh = new G.Proj.CRS(
15854
15831
  return i.x * r.x + i.y * r.y;
15855
15832
  },
15856
15833
  getClockWiseRotate90DegreePoint(i) {
15857
- return new G.Point([i.y, -i.x]);
15834
+ return new Z.Point([i.y, -i.x]);
15858
15835
  }
15859
- }), Lf = G.Marker.extend({
15836
+ }), yf = Z.Marker.extend({
15860
15837
  options: {
15861
15838
  fontSize: "12px",
15862
15839
  color: "#f00",
@@ -15867,9 +15844,9 @@ const Zh = new G.Proj.CRS(
15867
15844
  maxZoom: void 0
15868
15845
  },
15869
15846
  initialize(i, r, o = {}) {
15870
- this._latlng = i, this._enabled = !1, this.options.id = o.id || "text_" + Utils.guid(), this.options.text = r || "", o = Object.assign(this.options, o), G.setOptions(this, o);
15847
+ this._latlng = i, this._enabled = !1, this.options.id = o.id || "text_" + Utils.guid(), this.options.text = r || "", o = Object.assign(this.options, o), Z.setOptions(this, o);
15871
15848
  const { id: c, fontSize: d, color: m, fontWeight: _, background: M, fontShadowColor: C } = this.options;
15872
- this.options.icon = new G.DivIcon({
15849
+ this.options.icon = new Z.DivIcon({
15873
15850
  html: `<span id=${c} style="padding:2px 4px;white-space:nowrap;font-weight:${_};font-size:${d};color:${m};background:${M};text-shadow:${C} 1px 0px 2px">${r || ""}</span>`,
15874
15851
  className: "leaflet-text"
15875
15852
  });
@@ -15882,7 +15859,7 @@ const Zh = new G.Proj.CRS(
15882
15859
  const { fontSize: r, color: o, text: c } = this.options;
15883
15860
  if (!this._enabled) {
15884
15861
  this._enabled = !0;
15885
- const d = new G.DivIcon({
15862
+ const d = new Z.DivIcon({
15886
15863
  html: `<input type="text" id="text-input-icon" style="font-size:${r};color:${o};" value=${c}></input>`,
15887
15864
  className: "leaflet-text"
15888
15865
  });
@@ -15898,16 +15875,16 @@ const Zh = new G.Proj.CRS(
15898
15875
  disableEdit(i) {
15899
15876
  if (this._enabled) {
15900
15877
  this._enabled = !1;
15901
- const { id: r, color: o, fontSize: c, fontWeight: d, fontShadowColor: m } = this.options, _ = new G.DivIcon({
15878
+ const { id: r, color: o, fontSize: c, fontWeight: d, fontShadowColor: m } = this.options, _ = new Z.DivIcon({
15902
15879
  html: `<span id=${r} style="padding:2px 4px;white-space:nowrap;font-weight:${d};font-size:${c};color:${o};text-shadow:${m} 1px 2px 3px">${this.options.text}</span>`,
15903
15880
  className: "leaflet-text"
15904
15881
  });
15905
15882
  return this.setIcon(_), i && i(this), this;
15906
15883
  }
15907
15884
  }
15908
- }), bf = G.Draggable.extend({
15885
+ }), vf = Z.Draggable.extend({
15909
15886
  initialize(i, r, o) {
15910
- G.Draggable.prototype.initialize.call(this, i, i), this._element = i, this._stepHeight = r ?? 5.45, this._knobHeight = o ?? 10, this.on(
15887
+ Z.Draggable.prototype.initialize.call(this, i, i), this._element = i, this._stepHeight = r ?? 5.45, this._knobHeight = o ?? 10, this.on(
15911
15888
  "predrag",
15912
15889
  function() {
15913
15890
  this._newPos.x = 0, this._newPos.y = this._adjust(this._newPos.y);
@@ -15931,15 +15908,15 @@ const Zh = new G.Proj.CRS(
15931
15908
  this._maxValue = i - 1, this._k = -this._stepHeight, this._m = 0;
15932
15909
  },
15933
15910
  setPosition(i) {
15934
- G.DomUtil.setPosition(this._element, L.point(0, this._adjust(i)));
15911
+ Z.DomUtil.setPosition(this._element, L.point(0, this._adjust(i)));
15935
15912
  },
15936
15913
  setValue(i) {
15937
15914
  this.setPosition(this._toY(i));
15938
15915
  },
15939
15916
  getValue() {
15940
- return this._toValue(G.DomUtil.getPosition(this._element).y);
15917
+ return this._toValue(Z.DomUtil.getPosition(this._element).y);
15941
15918
  }
15942
- }), Uh = G.Handler.extend({
15919
+ }), Uh = Z.Handler.extend({
15943
15920
  options: {
15944
15921
  color: "#f00",
15945
15922
  weight: 1,
@@ -15949,7 +15926,7 @@ const Zh = new G.Proj.CRS(
15949
15926
  },
15950
15927
  PointEvents: {
15951
15928
  _mouseMove(i) {
15952
- this.tooltip.setLatLng(i.latlng), this.tempPoint.setLatLng(i.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? this.geometry.setLatLng(i.latlng) : (this.tooltip.setContent("点击开始绘制"), this.geometry = new G.CircleMarker(i.latlng, this.options).addTo(this._map)), this.onDrawing && this.onDrawing(this.geometry);
15929
+ this.tooltip.setLatLng(i.latlng), this.tempPoint.setLatLng(i.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? this.geometry.setLatLng(i.latlng) : (this.tooltip.setContent("点击开始绘制"), this.geometry = new Z.CircleMarker(i.latlng, this.options).addTo(this._map)), this.onDrawing && this.onDrawing(this.geometry);
15953
15930
  },
15954
15931
  _mouseClick(i) {
15955
15932
  this.onFinish && this.geometry && this.onFinish(this.geometry), this.geometry = null, !this.options.continue && this.disable();
@@ -15957,7 +15934,7 @@ const Zh = new G.Proj.CRS(
15957
15934
  },
15958
15935
  PolylineEvents: {
15959
15936
  _mouseMove(i) {
15960
- this.tooltip.setLatLng(i.latlng), this.tempPoint.setLatLng(i.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setLatLngs([...this.latlngs, i.latlng]), this.latlngs.length ? this.tooltip.setContent("点击继续绘制,双击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new G.Polyline([i.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
15937
+ this.tooltip.setLatLng(i.latlng), this.tempPoint.setLatLng(i.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setLatLngs([...this.latlngs, i.latlng]), this.latlngs.length ? this.tooltip.setContent("点击继续绘制,双击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new Z.Polyline([i.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
15961
15938
  },
15962
15939
  _mouseClick(i) {
15963
15940
  this.latlngs.push(i.latlng), String(this.latlngs.at(-1)) === String(this.latlngs.at(-2)) && (this.latlngs = this.latlngs.slice(0, this.latlngs.length - 1)), this.geometry.setLatLngs(this.latlngs), this.onVertexAdd && this.onVertexAdd(this.geometry);
@@ -15968,7 +15945,7 @@ const Zh = new G.Proj.CRS(
15968
15945
  },
15969
15946
  RectangleEvents: {
15970
15947
  _mouseMove(i) {
15971
- this.tooltip.setLatLng(i.latlng), this.tempPoint.setLatLng(i.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setBounds([...this.latlngs, i.latlng]), this.latlngs.length ? this.tooltip.setContent("继续点击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new G.Rectangle([i.latlng, i.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
15948
+ this.tooltip.setLatLng(i.latlng), this.tempPoint.setLatLng(i.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setBounds([...this.latlngs, i.latlng]), this.latlngs.length ? this.tooltip.setContent("继续点击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new Z.Rectangle([i.latlng, i.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
15972
15949
  },
15973
15950
  _mouseClick(i) {
15974
15951
  this.latlngs.push(i.latlng), String(this.latlngs.at(-1)) === String(this.latlngs.at(-2)) && (this.latlngs = this.latlngs.slice(0, this.latlngs.length - 1)), this.geometry.setBounds(this.latlngs), this.onVertexAdd && this.onVertexAdd(this.geometry), this.latlngs.length === 2 && (this.onFinish && this.geometry && this.onFinish(this.geometry), this.latlngs = [], this.geometry = null, !this.options.continue && this.disable());
@@ -15978,7 +15955,7 @@ const Zh = new G.Proj.CRS(
15978
15955
  },
15979
15956
  PolygonEvents: {
15980
15957
  _mouseMove(i) {
15981
- this.tooltip.setLatLng(i.latlng), this.tempPoint.setLatLng(i.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setLatLngs([...this.latlngs, i.latlng]), this.latlngs.length ? this.tooltip.setContent("点击继续绘制,双击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new G.Polygon([i.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
15958
+ this.tooltip.setLatLng(i.latlng), this.tempPoint.setLatLng(i.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setLatLngs([...this.latlngs, i.latlng]), this.latlngs.length ? this.tooltip.setContent("点击继续绘制,双击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new Z.Polygon([i.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
15982
15959
  },
15983
15960
  _mouseClick(i) {
15984
15961
  this.latlngs.push(i.latlng), String(this.latlngs.at(-1)) === String(this.latlngs.at(-2)) && (this.latlngs = this.latlngs.slice(0, this.latlngs.length - 1)), this.geometry.setLatLngs(this.latlngs), this.onVertexAdd && this.onVertexAdd(this.geometry);
@@ -15996,26 +15973,26 @@ const Zh = new G.Proj.CRS(
15996
15973
  this[this.drawType + "Events"]._mouseMove && this._map.off("mousemove", this[this.drawType + "Events"]._mouseMove, this), this[this.drawType + "Events"]._mouseClick && this._map.off("click", this[this.drawType + "Events"]._mouseClick, this), this[this.drawType + "Events"]._mouseDblClick && this._map.off("dblclick", this[this.drawType + "Events"]._mouseDblClick, this);
15997
15974
  },
15998
15975
  setOptions(i) {
15999
- return G.Util.setOptions(this, i), this;
15976
+ return Z.Util.setOptions(this, i), this;
16000
15977
  },
16001
15978
  enable(i, r = {}) {
16002
- return G.Util.setOptions(this, r), this.onFinish = r.onFinish || new Function(), this.onDrawing = r.onDrawing || new Function(), this.onVertexAdd = r.onVertexAdd || new Function(), this.drawType = yl.changeCase(i, 1), this.latlngs = r.latlngs || [], this._map.setCursor("draw"), this.tempPoint = new G.CircleMarker([0, 0], { weight: 1, radius: 5, color: "#3388ff", fillColor: "#fff", fillOpacity: 1 }).addTo(this._map), this.tooltip = new G.Tooltip({ offset: [10, -10] }).setContent("点击开始绘制"), G.Handler.prototype.enable.call(this), this;
15979
+ return Z.Util.setOptions(this, r), this.onFinish = r.onFinish || new Function(), this.onDrawing = r.onDrawing || new Function(), this.onVertexAdd = r.onVertexAdd || new Function(), this.drawType = yl.changeCase(i, 1), this.latlngs = r.latlngs || [], this._map.setCursor("draw"), this.tempPoint = new Z.CircleMarker([0, 0], { weight: 1, radius: 5, color: "#3388ff", fillColor: "#fff", fillOpacity: 1 }).addTo(this._map), this.tooltip = new Z.Tooltip({ offset: [10, -10] }).setContent("点击开始绘制"), Z.Handler.prototype.enable.call(this), this;
16003
15980
  },
16004
15981
  disable() {
16005
- return this._map.setCursor(), this.removeHooks(), this._map.closeTooltip(this.tooltip), this._map.removeLayer(this.tempPoint), G.Handler.prototype.disable.call(this), this;
15982
+ return this._map.setCursor(), this.removeHooks(), this._map.closeTooltip(this.tooltip), this._map.removeLayer(this.tempPoint), Z.Handler.prototype.disable.call(this), this;
16006
15983
  }
16007
15984
  });
16008
- G.Map.addInitHook("addHandler", "drawHandler", Uh);
16009
- const Ti = G.Handler.extend({
16010
- _touchstart: G.Browser.msPointer ? "MSPointerDown" : G.Browser.pointer ? "pointerdown" : "touchstart",
15985
+ Z.Map.addInitHook("addHandler", "drawHandler", Uh);
15986
+ const Ti = Z.Handler.extend({
15987
+ _touchstart: Z.Browser.msPointer ? "MSPointerDown" : Z.Browser.pointer ? "pointerdown" : "touchstart",
16011
15988
  initialize(i) {
16012
- G.Handler.prototype.initialize.call(this, i), this._items = [], this._visible = !1, Ti.BASE_CLS = `${i.clsPrefix}-contextmenu`;
16013
- const r = this._container = G.DomUtil.create("div", `${i.clsPrefix}-contextmenu`, i._container);
16014
- r.style.zIndex = 1e4, r.style.position = "absolute", i.options.contextmenuWidth && (r.style.width = i.options.contextmenuWidth + "px"), this._createItems(), G.DomEvent.on(r, "click", G.DomEvent.stop).on(r, "mousedown", G.DomEvent.stop).on(r, "dblclick", G.DomEvent.stop).on(r, "contextmenu", G.DomEvent.stop);
15989
+ Z.Handler.prototype.initialize.call(this, i), this._items = [], this._visible = !1, Ti.BASE_CLS = `${i.clsPrefix}-contextmenu`;
15990
+ const r = this._container = Z.DomUtil.create("div", `${i.clsPrefix}-contextmenu`, i._container);
15991
+ r.style.zIndex = 1e4, r.style.position = "absolute", i.options.contextmenuWidth && (r.style.width = i.options.contextmenuWidth + "px"), this._createItems(), Z.DomEvent.on(r, "click", Z.DomEvent.stop).on(r, "mousedown", Z.DomEvent.stop).on(r, "dblclick", Z.DomEvent.stop).on(r, "contextmenu", Z.DomEvent.stop);
16015
15992
  },
16016
15993
  addHooks() {
16017
15994
  const i = this._map.getContainer();
16018
- G.DomEvent.on(i, "mouseleave", this._hide, this).on(document, "keydown", this._onKeyDown, this), G.Browser.touch && G.DomEvent.on(document, this._touchstart, this._hide, this), this._map.on(
15995
+ Z.DomEvent.on(i, "mouseleave", this._hide, this).on(document, "keydown", this._onKeyDown, this), Z.Browser.touch && Z.DomEvent.on(document, this._touchstart, this._hide, this), this._map.on(
16019
15996
  {
16020
15997
  contextmenu: this._show,
16021
15998
  mousedown: this._hide,
@@ -16026,7 +16003,7 @@ const Ti = G.Handler.extend({
16026
16003
  },
16027
16004
  removeHooks() {
16028
16005
  const i = this._map.getContainer();
16029
- G.DomEvent.off(i, "mouseleave", this._hide, this).off(document, "keydown", this._onKeyDown, this), G.Browser.touch && G.DomEvent.off(document, this._touchstart, this._hide, this), this._map.off(
16006
+ Z.DomEvent.off(i, "mouseleave", this._hide, this).off(document, "keydown", this._onKeyDown, this), Z.Browser.touch && Z.DomEvent.off(document, this._touchstart, this._hide, this), this._map.off(
16030
16007
  {
16031
16008
  contextmenu: this._show,
16032
16009
  mousedown: this._hide,
@@ -16036,7 +16013,7 @@ const Ti = G.Handler.extend({
16036
16013
  );
16037
16014
  },
16038
16015
  showAt(i, r) {
16039
- i instanceof G.LatLng && (i = this._map.latLngToContainerPoint(i)), this._showAtPoint(i, r);
16016
+ i instanceof Z.LatLng && (i = this._map.latLngToContainerPoint(i)), this._showAtPoint(i, r);
16040
16017
  },
16041
16018
  hide() {
16042
16019
  this._hide();
@@ -16055,7 +16032,7 @@ const Ti = G.Handler.extend({
16055
16032
  },
16056
16033
  removeItem(i) {
16057
16034
  const r = this._container;
16058
- return isNaN(i) || (i = r.children[i]), i ? (this._removeItem(G.Util.stamp(i)), this._sizeChanged = !0, this._map.fire("contextmenu.removeitem", {
16035
+ return isNaN(i) || (i = r.children[i]), i ? (this._removeItem(Z.Util.stamp(i)), this._sizeChanged = !0, this._map.fire("contextmenu.removeitem", {
16059
16036
  contextmenu: this,
16060
16037
  el: i
16061
16038
  }), i) : null;
@@ -16064,7 +16041,7 @@ const Ti = G.Handler.extend({
16064
16041
  const i = this._container.children;
16065
16042
  let r;
16066
16043
  for (; i.length; )
16067
- r = i[0], this._removeItem(G.Util.stamp(r));
16044
+ r = i[0], this._removeItem(Z.Util.stamp(r));
16068
16045
  return i;
16069
16046
  },
16070
16047
  hideAllItems() {
@@ -16079,10 +16056,10 @@ const Ti = G.Handler.extend({
16079
16056
  },
16080
16057
  setDisabled(i, r) {
16081
16058
  const o = this._container, c = Ti.BASE_CLS + "-item";
16082
- isNaN(i) || (i = o.children[i]), i && G.DomUtil.hasClass(i, c) && (r ? (G.DomUtil.addClass(i, c + "-disabled"), this._map.fire("contextmenu.disableitem", {
16059
+ isNaN(i) || (i = o.children[i]), i && Z.DomUtil.hasClass(i, c) && (r ? (Z.DomUtil.addClass(i, c + "-disabled"), this._map.fire("contextmenu.disableitem", {
16083
16060
  contextmenu: this,
16084
16061
  el: i
16085
- })) : (G.DomUtil.removeClass(i, c + "-disabled"), this._map.fire("contextmenu.enableitem", {
16062
+ })) : (Z.DomUtil.removeClass(i, c + "-disabled"), this._map.fire("contextmenu.enableitem", {
16086
16063
  contextmenu: this,
16087
16064
  el: i
16088
16065
  })));
@@ -16101,8 +16078,8 @@ const Ti = G.Handler.extend({
16101
16078
  return this._createSeparator(i, o);
16102
16079
  const c = Ti.BASE_CLS + "-item", d = r.disabled ? c + " " + c + "-disabled" : c, m = this._insertElementAt("a", d, i, o), _ = this._createEventHandler(m, r.callback, r.context, r.hideOnSelect), M = this._getIcon(r), C = this._getIconCls(r);
16103
16080
  let D = "";
16104
- return M ? D = '<img class="' + Ti.BASE_CLS + '-icon" src="' + M + '"/>' : C && (D = '<span class="' + Ti.BASE_CLS + "-icon " + C + '"></span>'), m.innerHTML = D + r.text, m.href = "#", G.DomEvent.on(m, "mouseover", this._onItemMouseOver, this).on(m, "mouseout", this._onItemMouseOut, this).on(m, "mousedown", G.DomEvent.stopPropagation).on(m, "click", _), G.Browser.touch && G.DomEvent.on(m, this._touchstart, G.DomEvent.stopPropagation), G.Browser.pointer || G.DomEvent.on(m, "click", this._onItemMouseOut, this), {
16105
- id: G.Util.stamp(m),
16081
+ return M ? D = '<img class="' + Ti.BASE_CLS + '-icon" src="' + M + '"/>' : C && (D = '<span class="' + Ti.BASE_CLS + "-icon " + C + '"></span>'), m.innerHTML = D + r.text, m.href = "#", Z.DomEvent.on(m, "mouseover", this._onItemMouseOver, this).on(m, "mouseout", this._onItemMouseOut, this).on(m, "mousedown", Z.DomEvent.stopPropagation).on(m, "click", _), Z.Browser.touch && Z.DomEvent.on(m, this._touchstart, Z.DomEvent.stopPropagation), Z.Browser.pointer || Z.DomEvent.on(m, "click", this._onItemMouseOut, this), {
16082
+ id: Z.Util.stamp(m),
16106
16083
  el: m,
16107
16084
  callback: _
16108
16085
  };
@@ -16111,13 +16088,13 @@ const Ti = G.Handler.extend({
16111
16088
  let r, o, c, d, m;
16112
16089
  for (c = 0, d = this._items.length; c < d; c++)
16113
16090
  if (r = this._items[c], r.id === i)
16114
- return o = r.el, m = r.callback, m && (G.DomEvent.off(o, "mouseover", this._onItemMouseOver, this).off(o, "mouseover", this._onItemMouseOut, this).off(o, "mousedown", G.DomEvent.stopPropagation).off(o, "click", m), G.Browser.touch && G.DomEvent.off(o, this._touchstart, G.DomEvent.stopPropagation), G.Browser.pointer || G.DomEvent.on(o, "click", this._onItemMouseOut, this)), this._container.removeChild(o), this._items.splice(c, 1), r;
16091
+ return o = r.el, m = r.callback, m && (Z.DomEvent.off(o, "mouseover", this._onItemMouseOver, this).off(o, "mouseover", this._onItemMouseOut, this).off(o, "mousedown", Z.DomEvent.stopPropagation).off(o, "click", m), Z.Browser.touch && Z.DomEvent.off(o, this._touchstart, Z.DomEvent.stopPropagation), Z.Browser.pointer || Z.DomEvent.on(o, "click", this._onItemMouseOut, this)), this._container.removeChild(o), this._items.splice(c, 1), r;
16115
16092
  return null;
16116
16093
  },
16117
16094
  _createSeparator(i, r) {
16118
16095
  const o = this._insertElementAt("div", Ti.BASE_CLS + "-separator", i, r);
16119
16096
  return {
16120
- id: G.Util.stamp(o),
16097
+ id: Z.Util.stamp(o),
16121
16098
  el: o
16122
16099
  };
16123
16100
  },
@@ -16127,11 +16104,11 @@ const Ti = G.Handler.extend({
16127
16104
  const m = Ti.BASE_CLS + "-item-disabled";
16128
16105
  var _ = _ !== void 0 ? _ : !0;
16129
16106
  return function(M) {
16130
- if (G.DomUtil.hasClass(i, m))
16107
+ if (Z.DomUtil.hasClass(i, m))
16131
16108
  return;
16132
- const C = d._map, D = d._showLocation.containerPoint, Z = C.containerPointToLayerPoint(D), R = C.layerPointToLatLng(Z), H = d._showLocation.relatedTarget, et = {
16109
+ const C = d._map, D = d._showLocation.containerPoint, j = C.containerPointToLayerPoint(D), R = C.layerPointToLatLng(j), H = d._showLocation.relatedTarget, et = {
16133
16110
  containerPoint: D,
16134
- layerPoint: Z,
16111
+ layerPoint: j,
16135
16112
  latlng: R,
16136
16113
  relatedTarget: H
16137
16114
  };
@@ -16152,7 +16129,7 @@ const Ti = G.Handler.extend({
16152
16129
  _showAtPoint(i, r) {
16153
16130
  if (this._items.length) {
16154
16131
  this._map;
16155
- const o = G.extend(r || {}, { contextmenu: this });
16132
+ const o = Z.extend(r || {}, { contextmenu: this });
16156
16133
  this._showLocation = {
16157
16134
  containerPoint: i
16158
16135
  }, r && r.relatedTarget && (this._showLocation.relatedTarget = r.relatedTarget), this._setPosition(i), this._visible || (this._container.style.display = "block", this._visible = !0), this._map.fire("contextmenu.show", o);
@@ -16162,15 +16139,15 @@ const Ti = G.Handler.extend({
16162
16139
  this._visible && (this._visible = !1, this._container.style.display = "none", this._map.fire("contextmenu.hide", { contextmenu: this }));
16163
16140
  },
16164
16141
  _getIcon(i) {
16165
- return G.Browser.retina && i.retinaIcon || i.icon;
16142
+ return Z.Browser.retina && i.retinaIcon || i.icon;
16166
16143
  },
16167
16144
  _getIconCls(i) {
16168
- return G.Browser.retina && i.retinaIconCls || i.iconCls;
16145
+ return Z.Browser.retina && i.retinaIconCls || i.iconCls;
16169
16146
  },
16170
16147
  _setPosition(i) {
16171
16148
  const r = this._map.getSize(), o = this._container, c = this._getElementSize(o);
16172
16149
  let d;
16173
- this._map.options.contextmenuAnchor && (d = new G.Point(this._map.options.contextmenuAnchor), i = i.add(d)), o._leaflet_pos = i, i.x + c.x > r.x ? (o.style.left = "auto", o.style.right = Math.min(Math.max(r.x - i.x, 0), r.x - c.x - 1) + "px") : (o.style.left = Math.max(i.x, 0) + "px", o.style.right = "auto"), i.y + c.y > r.y ? (o.style.top = "auto", o.style.bottom = Math.min(Math.max(r.y - i.y, 0), r.y - c.y - 1) + "px") : (o.style.top = Math.max(i.y, 0) + "px", o.style.bottom = "auto");
16150
+ this._map.options.contextmenuAnchor && (d = new Z.Point(this._map.options.contextmenuAnchor), i = i.add(d)), o._leaflet_pos = i, i.x + c.x > r.x ? (o.style.left = "auto", o.style.right = Math.min(Math.max(r.x - i.x, 0), r.x - c.x - 1) + "px") : (o.style.left = Math.max(i.x, 0) + "px", o.style.right = "auto"), i.y + c.y > r.y ? (o.style.top = "auto", o.style.bottom = Math.min(Math.max(r.y - i.y, 0), r.y - c.y - 1) + "px") : (o.style.top = Math.max(i.y, 0) + "px", o.style.bottom = "auto");
16174
16151
  },
16175
16152
  _getElementSize(i) {
16176
16153
  let r = this._size;
@@ -16181,17 +16158,17 @@ const Ti = G.Handler.extend({
16181
16158
  i.keyCode === 27 && this._hide();
16182
16159
  },
16183
16160
  _onItemMouseOver(i) {
16184
- G.DomUtil.addClass(i.target || i.srcElement, "over");
16161
+ Z.DomUtil.addClass(i.target || i.srcElement, "over");
16185
16162
  },
16186
16163
  _onItemMouseOut(i) {
16187
- G.DomUtil.removeClass(i.target || i.srcElement, "over");
16164
+ Z.DomUtil.removeClass(i.target || i.srcElement, "over");
16188
16165
  }
16189
16166
  });
16190
- G.Map.mergeOptions({
16167
+ Z.Map.mergeOptions({
16191
16168
  contextmenuItems: []
16192
16169
  });
16193
- G.Map.addInitHook("addHandler", "contextmenu", Ti);
16194
- const Cf = {
16170
+ Z.Map.addInitHook("addHandler", "contextmenu", Ti);
16171
+ const Mf = {
16195
16172
  bindContextMenu(i) {
16196
16173
  return L.setOptions(this, i), this._initContextMenu(), this;
16197
16174
  },
@@ -16231,7 +16208,7 @@ const Cf = {
16231
16208
  this._items.length = 0, this.options.contextmenuInheritItems || this._map.contextmenu.showAllItems();
16232
16209
  }
16233
16210
  }
16234
- }, ph = [G.Marker, G.Path], _h = {
16211
+ }, ph = [Z.Marker, Z.Path], _h = {
16235
16212
  contextmenu: !1,
16236
16213
  contextmenuItems: [],
16237
16214
  contextmenuInheritItems: !1
@@ -16240,11 +16217,11 @@ for (let i = 0, r = ph.length; i < r; i++) {
16240
16217
  const o = ph[i];
16241
16218
  o.prototype.options ? o.mergeOptions(_h) : o.prototype.options = _h, o.addInitHook(function() {
16242
16219
  this.options.contextmenu && this._initContextMenu();
16243
- }), o.include(Cf);
16220
+ }), o.include(Mf);
16244
16221
  }
16245
- const wf = G.LayerGroup.extend({
16222
+ const xf = Z.LayerGroup.extend({
16246
16223
  initialize(i) {
16247
- G.Util.setOptions(this, i), G.LayerGroup.prototype.initialize.call(this, i);
16224
+ Z.Util.setOptions(this, i), Z.LayerGroup.prototype.initialize.call(this, i);
16248
16225
  },
16249
16226
  /**
16250
16227
  * 递归获取所有的非group图层
@@ -16289,7 +16266,7 @@ const wf = G.LayerGroup.extend({
16289
16266
  return i.length ? Math.max(...i.map((r) => r.options.zIndex)) + 1 : null;
16290
16267
  }
16291
16268
  });
16292
- function Ef(i) {
16269
+ function Lf(i) {
16293
16270
  const r = document.createElement("style"), o = document.head || document.documentElement;
16294
16271
  r.innerHTML = `
16295
16272
  .${i}-statusbar {
@@ -16439,8 +16416,8 @@ function Ef(i) {
16439
16416
  }`, o.appendChild(r);
16440
16417
  }
16441
16418
  ((i) => {
16442
- const r = Object.create(bl) || {};
16443
- return r.LANG = Lo, r.BaseMap = G.Map.extend({
16419
+ const r = Object.create(L) || {};
16420
+ return r.LANG = Lo, r.BaseMap = L.Map.extend({
16444
16421
  options: {
16445
16422
  doubleClickZoom: !1,
16446
16423
  closePopupOnClick: !1,
@@ -16460,13 +16437,13 @@ function Ef(i) {
16460
16437
  var m;
16461
16438
  if (typeof o == "string" && (o = document.getElementById(o)), !o instanceof HTMLElement || !o.clientWidth || !o.clientHeight)
16462
16439
  throw new Error("地图容器不存在或元素尺寸为0");
16463
- this.lang = typeof c.lang == "string" ? c.lang : "zh_CN", this.clsPrefix = typeof c.clsPrefix == "string" ? c.clsPrefix : "gis2d", Ef(this.clsPrefix), G.Util.setOptions(this, c), G.Control.Zoom.mergeOptions({
16440
+ this.lang = typeof c.lang == "string" ? c.lang : "zh_CN", this.clsPrefix = typeof c.clsPrefix == "string" ? c.clsPrefix : "gis2d", Lf(this.clsPrefix), L.Util.setOptions(this, c), L.Control.Zoom.mergeOptions({
16464
16441
  position: ((m = this.options.zoomControl) == null ? void 0 : m.position) || "topleft",
16465
16442
  zoomInTitle: Lo[this.lang].zoomIn,
16466
16443
  zoomOutTitle: Lo[this.lang].zoomOut
16467
- }), G.Control.Attribution.mergeOptions({
16444
+ }), L.Control.Attribution.mergeOptions({
16468
16445
  prefix: `<a href="http://www.${this.clsPrefix}.com" target="_blank">Guo.Yan</a>`
16469
- }), G.Map.prototype.initialize.call(this, o, this.options), G.DomEvent.on(
16446
+ }), L.Map.prototype.initialize.call(this, o, this.options), L.DomEvent.on(
16470
16447
  this._container,
16471
16448
  "click",
16472
16449
  (_) => {
@@ -16489,9 +16466,9 @@ function Ef(i) {
16489
16466
  ["auto", "pointer", "crosshair", "move", "text", "wait", "help", "grab", "default"].includes(o) ? c.style.cursor = `${o}` : c.style.cursor = `url(${o}), auto`;
16490
16467
  },
16491
16468
  flyTo(o, c = 0, d = { animate: !1 }) {
16492
- o instanceof G.Marker ? (o = o._latlng, G.Map.prototype.flyTo.call(this, o, c || this.getZoom(), d)) : o instanceof G.Path || o instanceof G.FeatureGroup ? (o = o.getBounds(), G.Map.prototype.flyToBounds.call(this, o, d)) : G.Map.prototype.flyTo.call(this, o, c || this.getZoom(), d);
16469
+ o instanceof L.Marker ? (o = o._latlng, L.Map.prototype.flyTo.call(this, o, c || this.getZoom(), d)) : o instanceof L.Path || o instanceof L.FeatureGroup ? (o = o.getBounds(), L.Map.prototype.flyToBounds.call(this, o, d)) : L.Map.prototype.flyTo.call(this, o, c || this.getZoom(), d);
16493
16470
  }
16494
- }), r.StatusBar = yh, r.CRS.BaiDu = Zh, r.WebMercatorTiledLayer = Mf, r.Knob = bf, r.Draw = Uh, r.ContextMenu = Ti, r.EagleMap = vh, r.LayerManager = wf, r.ImageOverlay.Rotated = xf, r.Text = Lf, r.VertexMarkers = Mh, r.Measurement = ma, i.L = r;
16471
+ }), r.StatusBar = yh, r.CRS.BaiDu = Zh, r.WebMercatorTiledLayer = mf, r.Knob = vf, r.Draw = Uh, r.ContextMenu = Ti, r.EagleMap = vh, r.LayerManager = xf, r.ImageOverlay.Rotated = gf, r.Text = yf, r.VertexMarkers = Mh, r.Measurement = ma, i.L = r;
16495
16472
  })(window);
16496
16473
  function Ao() {
16497
16474
  if (typeof globalThis < "u")
@@ -16508,7 +16485,7 @@ const zo = function(i, r = {}) {
16508
16485
  zo.installed || (Ao().Gis = ml);
16509
16486
  };
16510
16487
  Ao().Vue && zo(Ao().Vue);
16511
- const Pf = {
16488
+ const wf = {
16512
16489
  install: zo
16513
16490
  };
16514
16491
  export {
@@ -16516,13 +16493,13 @@ export {
16516
16493
  Ti as ContextMenu,
16517
16494
  Uh as Draw,
16518
16495
  vh as EagleMap,
16519
- bf as Knob,
16520
- wf as LayerManager,
16496
+ vf as Knob,
16497
+ xf as LayerManager,
16521
16498
  ma as MeasureMent,
16522
- xf as RotatedImageOverLayer,
16499
+ gf as RotatedImageOverLayer,
16523
16500
  yh as StatusBar,
16524
- Lf as TextLayer,
16501
+ yf as TextLayer,
16525
16502
  Mh as VertexMarker,
16526
- Mf as WebMercatorTiledLayer,
16527
- Pf as default
16503
+ mf as WebMercatorTiledLayer,
16504
+ wf as default
16528
16505
  };