@sl-utils/map 1.0.8 → 1.0.10

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.
@@ -855,7 +855,7 @@ function hr() {
855
855
  t[n] === L.Mixin.Events && console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.", new Error().stack);
856
856
  }
857
857
  }
858
- var At = {
858
+ var Tt = {
859
859
  /* @method on(type: String, fn: Function, context?: Object): this
860
860
  * Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).
861
861
  *
@@ -1018,8 +1018,8 @@ function hr() {
1018
1018
  }, t), !0);
1019
1019
  }
1020
1020
  };
1021
- At.addEventListener = At.on, At.removeEventListener = At.clearAllEventListeners = At.off, At.addOneTimeEventListener = At.once, At.fireEvent = At.fire, At.hasEventListeners = At.listens;
1022
- var Bi = Zt.extend(At);
1021
+ Tt.addEventListener = Tt.on, Tt.removeEventListener = Tt.clearAllEventListeners = Tt.off, Tt.addOneTimeEventListener = Tt.once, Tt.fireEvent = Tt.fire, Tt.hasEventListeners = Tt.listens;
1022
+ var Bi = Zt.extend(Tt);
1023
1023
  function U(t, n, r) {
1024
1024
  this.x = r ? Math.round(t) : t, this.y = r ? Math.round(n) : n;
1025
1025
  }
@@ -1582,7 +1582,7 @@ function hr() {
1582
1582
  }
1583
1583
  return r || "M0 0";
1584
1584
  }
1585
- var cs = document.documentElement.style, be = "ActiveXObject" in window, Dr = be && !document.addEventListener, xn = "msLaunchUri" in navigator && !("documentMode" in document), fs = Ft("webkit"), Pn = Ft("android"), bn = Ft("android 2") || Ft("android 3"), Zr = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), Fr = Pn && Ft("Google") && Zr < 537 && !("AudioNode" in window), ds = !!window.opera, Sn = !xn && Ft("chrome"), En = Ft("gecko") && !fs && !ds && !be, Ur = !Sn && Ft("safari"), Tn = Ft("phantom"), An = "OTransition" in cs, qr = navigator.platform.indexOf("Win") === 0, Ln = be && "transition" in cs, _s = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !bn, Cn = "MozPerspective" in cs, jr = !window.L_DISABLE_3D && (Ln || _s || Cn) && !An && !Tn, Di = typeof orientation < "u" || Ft("mobile"), Hr = Di && fs, Wr = Di && _s, In = !window.PointerEvent && window.MSPointerEvent, Gn = !!(window.PointerEvent || In), Nn = "ontouchstart" in window || !!window.TouchEvent, Xr = !window.L_NO_TOUCH && (Nn || Gn), Yr = Di && ds, Vr = Di && En, Kr = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, $r = (function() {
1585
+ var cs = document.documentElement.style, be = "ActiveXObject" in window, Dr = be && !document.addEventListener, xn = "msLaunchUri" in navigator && !("documentMode" in document), fs = Ft("webkit"), Pn = Ft("android"), bn = Ft("android 2") || Ft("android 3"), Zr = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), Fr = Pn && Ft("Google") && Zr < 537 && !("AudioNode" in window), ds = !!window.opera, Sn = !xn && Ft("chrome"), En = Ft("gecko") && !fs && !ds && !be, Ur = !Sn && Ft("safari"), An = Ft("phantom"), Tn = "OTransition" in cs, qr = navigator.platform.indexOf("Win") === 0, Ln = be && "transition" in cs, _s = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !bn, Cn = "MozPerspective" in cs, jr = !window.L_DISABLE_3D && (Ln || _s || Cn) && !Tn && !An, Di = typeof orientation < "u" || Ft("mobile"), Hr = Di && fs, Wr = Di && _s, In = !window.PointerEvent && window.MSPointerEvent, Gn = !!(window.PointerEvent || In), Nn = "ontouchstart" in window || !!window.TouchEvent, Xr = !window.L_NO_TOUCH && (Nn || Gn), Yr = Di && ds, Vr = Di && En, Kr = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, $r = (function() {
1586
1586
  var t = !1;
1587
1587
  try {
1588
1588
  var n = Object.defineProperty({}, "passive", {
@@ -1624,8 +1624,8 @@ function hr() {
1624
1624
  chrome: Sn,
1625
1625
  gecko: En,
1626
1626
  safari: Ur,
1627
- phantom: Tn,
1628
- opera12: An,
1627
+ phantom: An,
1628
+ opera12: Tn,
1629
1629
  win: qr,
1630
1630
  ie3d: Ln,
1631
1631
  webkit3d: _s,
@@ -1727,9 +1727,9 @@ function hr() {
1727
1727
  function fo(t, n) {
1728
1728
  t.removeEventListener("dblclick", n.dblclick), t.removeEventListener("click", n.simDblclick);
1729
1729
  }
1730
- var ps = Ae(
1730
+ var ps = Te(
1731
1731
  ["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
1732
- ), Zi = Ae(
1732
+ ), Zi = Te(
1733
1733
  ["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
1734
1734
  ), Fn = Zi === "webkitTransition" || Zi === "OTransition" ? Zi + "End" : "transitionend";
1735
1735
  function Un(t) {
@@ -1766,7 +1766,7 @@ function hr() {
1766
1766
  function vs(t, n) {
1767
1767
  if (t.classList !== void 0)
1768
1768
  return t.classList.contains(n);
1769
- var r = Te(t);
1769
+ var r = Ae(t);
1770
1770
  return r.length > 0 && new RegExp("(^|\\s)" + n + "(\\s|$)").test(r);
1771
1771
  }
1772
1772
  function j(t, n) {
@@ -1774,17 +1774,17 @@ function hr() {
1774
1774
  for (var r = w(n), c = 0, d = r.length; c < d; c++)
1775
1775
  t.classList.add(r[c]);
1776
1776
  else if (!vs(t, n)) {
1777
- var g = Te(t);
1777
+ var g = Ae(t);
1778
1778
  ys(t, (g ? g + " " : "") + n);
1779
1779
  }
1780
1780
  }
1781
1781
  function ht(t, n) {
1782
- t.classList !== void 0 ? t.classList.remove(n) : ys(t, M((" " + Te(t) + " ").replace(" " + n + " ", " ")));
1782
+ t.classList !== void 0 ? t.classList.remove(n) : ys(t, M((" " + Ae(t) + " ").replace(" " + n + " ", " ")));
1783
1783
  }
1784
1784
  function ys(t, n) {
1785
1785
  t.className.baseVal === void 0 ? t.className = n : t.className.baseVal = n;
1786
1786
  }
1787
- function Te(t) {
1787
+ function Ae(t) {
1788
1788
  return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
1789
1789
  }
1790
1790
  function Lt(t, n) {
@@ -1800,7 +1800,7 @@ function hr() {
1800
1800
  }
1801
1801
  n = Math.round(n * 100), r ? (r.Enabled = n !== 100, r.Opacity = n) : t.style.filter += " progid:" + c + "(opacity=" + n + ")";
1802
1802
  }
1803
- function Ae(t) {
1803
+ function Te(t) {
1804
1804
  for (var n = document.documentElement.style, r = 0; r < t.length; r++)
1805
1805
  if (t[r] in n)
1806
1806
  return t[r];
@@ -1824,7 +1824,7 @@ function hr() {
1824
1824
  st(window, "selectstart", mt);
1825
1825
  };
1826
1826
  else {
1827
- var ji = Ae(
1827
+ var ji = Te(
1828
1828
  ["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]
1829
1829
  );
1830
1830
  Ui = function() {
@@ -1881,9 +1881,9 @@ function hr() {
1881
1881
  addClass: j,
1882
1882
  removeClass: ht,
1883
1883
  setClass: ys,
1884
- getClass: Te,
1884
+ getClass: Ae,
1885
1885
  setOpacity: Lt,
1886
- testProp: Ae,
1886
+ testProp: Te,
1887
1887
  setTransform: hi,
1888
1888
  setPosition: ct,
1889
1889
  getPosition: li,
@@ -1903,11 +1903,11 @@ function hr() {
1903
1903
  function q(t, n, r, c) {
1904
1904
  if (n && typeof n == "object")
1905
1905
  for (var d in n)
1906
- Ts(t, d, n[d], r);
1906
+ As(t, d, n[d], r);
1907
1907
  else {
1908
1908
  n = w(n);
1909
1909
  for (var g = 0, y = n.length; g < y; g++)
1910
- Ts(t, n[g], r, c);
1910
+ As(t, n[g], r, c);
1911
1911
  }
1912
1912
  return this;
1913
1913
  }
@@ -1917,20 +1917,20 @@ function hr() {
1917
1917
  jn(t), delete t[Ut];
1918
1918
  else if (n && typeof n == "object")
1919
1919
  for (var d in n)
1920
- As(t, d, n[d], r);
1920
+ Ts(t, d, n[d], r);
1921
1921
  else if (n = w(n), arguments.length === 2)
1922
1922
  jn(t, function(P) {
1923
1923
  return z(n, P) !== -1;
1924
1924
  });
1925
1925
  else
1926
1926
  for (var g = 0, y = n.length; g < y; g++)
1927
- As(t, n[g], r, c);
1927
+ Ts(t, n[g], r, c);
1928
1928
  return this;
1929
1929
  }
1930
1930
  function jn(t, n) {
1931
1931
  for (var r in t[Ut]) {
1932
1932
  var c = r.split(/\d/)[0];
1933
- (!n || n(c)) && As(t, c, null, null, r);
1933
+ (!n || n(c)) && Ts(t, c, null, null, r);
1934
1934
  }
1935
1935
  }
1936
1936
  var Es = {
@@ -1938,7 +1938,7 @@ function hr() {
1938
1938
  mouseleave: "mouseout",
1939
1939
  wheel: !("onwheel" in window) && "mousewheel"
1940
1940
  };
1941
- function Ts(t, n, r, c) {
1941
+ function As(t, n, r, c) {
1942
1942
  var d = n + f(r) + (c ? "_" + f(c) : "");
1943
1943
  if (t[Ut] && t[Ut][d])
1944
1944
  return this;
@@ -1949,7 +1949,7 @@ function hr() {
1949
1949
  P = P || window.event, Cs(t, P) && y(P);
1950
1950
  }, t.addEventListener(Es[n], g, !1)) : t.addEventListener(n, y, !1) : t.attachEvent("on" + n, g), t[Ut] = t[Ut] || {}, t[Ut][d] = g;
1951
1951
  }
1952
- function As(t, n, r, c, d) {
1952
+ function Ts(t, n, r, c, d) {
1953
1953
  d = d || n + f(r) + (c ? "_" + f(c) : "");
1954
1954
  var g = t[Ut] && t[Ut][d];
1955
1955
  if (!g)
@@ -1960,7 +1960,7 @@ function hr() {
1960
1960
  return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
1961
1961
  }
1962
1962
  function Ls(t) {
1963
- return Ts(t, "wheel", ui), this;
1963
+ return As(t, "wheel", ui), this;
1964
1964
  }
1965
1965
  function Hi(t) {
1966
1966
  return q(t, "mousedown touchstart dblclick contextmenu", ui), t._leaflet_disable_click = !0, this;
@@ -2254,9 +2254,9 @@ function hr() {
2254
2254
  this._stop();
2255
2255
  var c = this.project(this.getCenter()), d = this.project(t), g = this.getSize(), y = this._zoom;
2256
2256
  t = Y(t), n = n === void 0 ? y : n;
2257
- var P = Math.max(g.x, g.y), b = P * this.getZoomScale(y, n), T = d.distanceTo(c) || 1, O = 1.42, k = O * O;
2257
+ var P = Math.max(g.x, g.y), b = P * this.getZoomScale(y, n), A = d.distanceTo(c) || 1, O = 1.42, k = O * O;
2258
2258
  function H(ft) {
2259
- var Ue = ft ? -1 : 1, ah = ft ? b : P, rh = b * b - P * P + Ue * k * k * T * T, oh = 2 * ah * k * T, Fs = rh / oh, Aa = Math.sqrt(Fs * Fs + 1) - Fs, hh = Aa < 1e-9 ? -18 : Math.log(Aa);
2259
+ var Ue = ft ? -1 : 1, ah = ft ? b : P, rh = b * b - P * P + Ue * k * k * A * A, oh = 2 * ah * k * A, Fs = rh / oh, Ta = Math.sqrt(Fs * Fs + 1) - Fs, hh = Ta < 1e-9 ? -18 : Math.log(Ta);
2260
2260
  return hh;
2261
2261
  }
2262
2262
  function yt(ft) {
@@ -2279,15 +2279,15 @@ function hr() {
2279
2279
  return 1 - Math.pow(1 - ft, 1.5);
2280
2280
  }
2281
2281
  var sh = Date.now(), Ea = (H(1) - Pt) / O, nh = r.duration ? 1e3 * r.duration : 1e3 * Ea * 0.8;
2282
- function Ta() {
2282
+ function Aa() {
2283
2283
  var ft = (Date.now() - sh) / nh, Ue = eh(ft) * Ea;
2284
- ft <= 1 ? (this._flyToFrame = $(Ta, this), this._move(
2285
- this.unproject(c.add(d.subtract(c).multiplyBy(ih(Ue) / T)), y),
2284
+ ft <= 1 ? (this._flyToFrame = $(Aa, this), this._move(
2285
+ this.unproject(c.add(d.subtract(c).multiplyBy(ih(Ue) / A)), y),
2286
2286
  this.getScaleZoom(P / bi(Ue), y),
2287
2287
  { flyTo: !0 }
2288
2288
  )) : this._move(t, n)._moveEnd(!0);
2289
2289
  }
2290
- return this._moveStart(!0, r.noMoveStart), Ta.call(this), this;
2290
+ return this._moveStart(!0, r.noMoveStart), Aa.call(this), this;
2291
2291
  },
2292
2292
  // @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this
2293
2293
  // Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),
@@ -2330,8 +2330,8 @@ function hr() {
2330
2330
  var r = F(n.paddingTopLeft || n.padding || [0, 0]), c = F(n.paddingBottomRight || n.padding || [0, 0]), d = this.project(this.getCenter()), g = this.project(t), y = this.getPixelBounds(), P = wt([y.min.add(r), y.max.subtract(c)]), b = P.getSize();
2331
2331
  if (!P.contains(g)) {
2332
2332
  this._enforcingBounds = !0;
2333
- var T = g.subtract(P.getCenter()), O = P.extend(g).getSize().subtract(b);
2334
- d.x += T.x < 0 ? -O.x : O.x, d.y += T.y < 0 ? -O.y : O.y, this.panTo(this.unproject(d), n), this._enforcingBounds = !1;
2333
+ var A = g.subtract(P.getCenter()), O = P.extend(g).getSize().subtract(b);
2334
+ d.x += A.x < 0 ? -O.x : O.x, d.y += A.y < 0 ? -O.y : O.y, this.panTo(this.unproject(d), n), this._enforcingBounds = !1;
2335
2335
  }
2336
2336
  return this;
2337
2337
  },
@@ -2497,7 +2497,7 @@ function hr() {
2497
2497
  // the given bounds in its entirety.
2498
2498
  getBoundsZoom: function(t, n, r) {
2499
2499
  t = ut(t), r = F(r || [0, 0]);
2500
- var c = this.getZoom() || 0, d = this.getMinZoom(), g = this.getMaxZoom(), y = t.getNorthWest(), P = t.getSouthEast(), b = this.getSize().subtract(r), T = wt(this.project(P, c), this.project(y, c)).getSize(), O = R.any3d ? this.options.zoomSnap : 1, k = b.x / T.x, H = b.y / T.y, yt = n ? Math.max(k, H) : Math.min(k, H);
2500
+ var c = this.getZoom() || 0, d = this.getMinZoom(), g = this.getMaxZoom(), y = t.getNorthWest(), P = t.getSouthEast(), b = this.getSize().subtract(r), A = wt(this.project(P, c), this.project(y, c)).getSize(), O = R.any3d ? this.options.zoomSnap : 1, k = b.x / A.x, H = b.y / A.y, yt = n ? Math.max(k, H) : Math.min(k, H);
2501
2501
  return c = this.getScaleZoom(yt, c), O && (c = Math.round(c / (O / 100)) * (O / 100), c = n ? Math.ceil(c / O) * O : Math.floor(c / O) * O), Math.max(d, Math.min(g, c));
2502
2502
  },
2503
2503
  // @method getSize(): Point
@@ -2780,8 +2780,8 @@ function hr() {
2780
2780
  originalEvent: t
2781
2781
  };
2782
2782
  if (t.type !== "keypress" && t.type !== "keydown" && t.type !== "keyup") {
2783
- var T = P.getLatLng && (!P._radius || P._radius <= 10);
2784
- b.containerPoint = T ? this.latLngToContainerPoint(P.getLatLng()) : this.mouseEventToContainerPoint(t), b.layerPoint = this.containerPointToLayerPoint(b.containerPoint), b.latlng = T ? P.getLatLng() : this.layerPointToLatLng(b.layerPoint);
2783
+ var A = P.getLatLng && (!P._radius || P._radius <= 10);
2784
+ b.containerPoint = A ? this.latLngToContainerPoint(P.getLatLng()) : this.mouseEventToContainerPoint(t), b.layerPoint = this.containerPointToLayerPoint(b.containerPoint), b.latlng = A ? P.getLatLng() : this.layerPointToLatLng(b.layerPoint);
2785
2785
  }
2786
2786
  for (y = 0; y < d.length; y++)
2787
2787
  if (d[y].fire(n, b, !0), b.originalEvent._stopped || d[y].options.bubblingMouseEvents === !1 && z(this._mouseEvents, n) !== -1)
@@ -3376,7 +3376,7 @@ function hr() {
3376
3376
  qt.addTo = function(t, n) {
3377
3377
  return t.addHandler(n, this), this;
3378
3378
  };
3379
- var bo = { Events: At }, $n = R.touch ? "touchstart mousedown" : "mousedown", ti = Bi.extend({
3379
+ var bo = { Events: Tt }, $n = R.touch ? "touchstart mousedown" : "mousedown", ti = Bi.extend({
3380
3380
  options: {
3381
3381
  // @section
3382
3382
  // @aka Draggable options
@@ -3442,18 +3442,18 @@ function hr() {
3442
3442
  }
3443
3443
  });
3444
3444
  function Jn(t, n, r) {
3445
- var c, d = [1, 4, 2, 8], g, y, P, b, T, O, k, H;
3445
+ var c, d = [1, 4, 2, 8], g, y, P, b, A, O, k, H;
3446
3446
  for (g = 0, O = t.length; g < O; g++)
3447
3447
  t[g]._code = fi(t[g], n);
3448
3448
  for (P = 0; P < 4; P++) {
3449
3449
  for (k = d[P], c = [], g = 0, O = t.length, y = O - 1; g < O; y = g++)
3450
- b = t[g], T = t[y], b._code & k ? T._code & k || (H = Ie(T, b, k, n, r), H._code = fi(H, n), c.push(H)) : (T._code & k && (H = Ie(T, b, k, n, r), H._code = fi(H, n), c.push(H)), c.push(b));
3450
+ b = t[g], A = t[y], b._code & k ? A._code & k || (H = Ie(A, b, k, n, r), H._code = fi(H, n), c.push(H)) : (A._code & k && (H = Ie(A, b, k, n, r), H._code = fi(H, n), c.push(H)), c.push(b));
3451
3451
  t = c;
3452
3452
  }
3453
3453
  return t;
3454
3454
  }
3455
3455
  function Qn(t, n) {
3456
- var r, c, d, g, y, P, b, T, O;
3456
+ var r, c, d, g, y, P, b, A, O;
3457
3457
  if (!t || t.length === 0)
3458
3458
  throw new Error("latlngs not passed");
3459
3459
  Ct(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
@@ -3464,9 +3464,9 @@ function hr() {
3464
3464
  var Pt = Y(t[r]);
3465
3465
  It.push(n.project(Y([Pt.lat - k.lat, Pt.lng - k.lng])));
3466
3466
  }
3467
- for (P = b = T = 0, r = 0, c = _t - 1; r < _t; c = r++)
3468
- d = It[r], g = It[c], y = d.y * g.x - g.y * d.x, b += (d.x + g.x) * y, T += (d.y + g.y) * y, P += y * 3;
3469
- P === 0 ? O = It[0] : O = [b / P, T / P];
3467
+ for (P = b = A = 0, r = 0, c = _t - 1; r < _t; c = r++)
3468
+ d = It[r], g = It[c], y = d.y * g.x - g.y * d.x, b += (d.x + g.x) * y, A += (d.y + g.y) * y, P += y * 3;
3469
+ P === 0 ? O = It[0] : O = [b / P, A / P];
3470
3470
  var bi = n.unproject(F(O));
3471
3471
  return Y([bi.lat + k.lat, bi.lng + k.lng]);
3472
3472
  }
@@ -3487,7 +3487,7 @@ function hr() {
3487
3487
  if (!n || !t.length)
3488
3488
  return t.slice();
3489
3489
  var r = n * n;
3490
- return t = Ao(t, r), t = To(t, r), t;
3490
+ return t = To(t, r), t = Ao(t, r), t;
3491
3491
  }
3492
3492
  function ia(t, n, r) {
3493
3493
  return Math.sqrt(Xi(t, n, r, !0));
@@ -3495,7 +3495,7 @@ function hr() {
3495
3495
  function Eo(t, n, r) {
3496
3496
  return Xi(t, n, r);
3497
3497
  }
3498
- function To(t, n) {
3498
+ function Ao(t, n) {
3499
3499
  var r = t.length, c = typeof Uint8Array < "u" ? Uint8Array : Array, d = new c(r);
3500
3500
  d[0] = d[r - 1] = 1, Os(t, d, n, 0, r - 1);
3501
3501
  var g, y = [];
@@ -3509,25 +3509,25 @@ function hr() {
3509
3509
  b = Xi(t[P], t[c], t[d], !0), b > g && (y = P, g = b);
3510
3510
  g > r && (n[y] = 1, Os(t, n, r, c, y), Os(t, n, r, y, d));
3511
3511
  }
3512
- function Ao(t, n) {
3512
+ function To(t, n) {
3513
3513
  for (var r = [t[0]], c = 1, d = 0, g = t.length; c < g; c++)
3514
3514
  Lo(t[c], t[d]) > n && (r.push(t[c]), d = c);
3515
3515
  return d < g - 1 && r.push(t[g - 1]), r;
3516
3516
  }
3517
3517
  var ea;
3518
3518
  function sa(t, n, r, c, d) {
3519
- var g = c ? ea : fi(t, r), y = fi(n, r), P, b, T;
3519
+ var g = c ? ea : fi(t, r), y = fi(n, r), P, b, A;
3520
3520
  for (ea = y; ; ) {
3521
3521
  if (!(g | y))
3522
3522
  return [t, n];
3523
3523
  if (g & y)
3524
3524
  return !1;
3525
- P = g || y, b = Ie(t, n, P, r, d), T = fi(b, r), P === g ? (t = b, g = T) : (n = b, y = T);
3525
+ P = g || y, b = Ie(t, n, P, r, d), A = fi(b, r), P === g ? (t = b, g = A) : (n = b, y = A);
3526
3526
  }
3527
3527
  }
3528
3528
  function Ie(t, n, r, c, d) {
3529
- var g = n.x - t.x, y = n.y - t.y, P = c.min, b = c.max, T, O;
3530
- return r & 8 ? (T = t.x + g * (b.y - t.y) / y, O = b.y) : r & 4 ? (T = t.x + g * (P.y - t.y) / y, O = P.y) : r & 2 ? (T = b.x, O = t.y + y * (b.x - t.x) / g) : r & 1 && (T = P.x, O = t.y + y * (P.x - t.x) / g), new U(T, O, d);
3529
+ var g = n.x - t.x, y = n.y - t.y, P = c.min, b = c.max, A, O;
3530
+ return r & 8 ? (A = t.x + g * (b.y - t.y) / y, O = b.y) : r & 4 ? (A = t.x + g * (P.y - t.y) / y, O = P.y) : r & 2 ? (A = b.x, O = t.y + y * (b.x - t.x) / g) : r & 1 && (A = P.x, O = t.y + y * (P.x - t.x) / g), new U(A, O, d);
3531
3531
  }
3532
3532
  function fi(t, n) {
3533
3533
  var r = 0;
@@ -3538,8 +3538,8 @@ function hr() {
3538
3538
  return r * r + c * c;
3539
3539
  }
3540
3540
  function Xi(t, n, r, c) {
3541
- var d = n.x, g = n.y, y = r.x - d, P = r.y - g, b = y * y + P * P, T;
3542
- return b > 0 && (T = ((t.x - d) * y + (t.y - g) * P) / b, T > 1 ? (d = r.x, g = r.y) : T > 0 && (d += y * T, g += P * T)), y = t.x - d, P = t.y - g, c ? y * y + P * P : new U(d, g);
3541
+ var d = n.x, g = n.y, y = r.x - d, P = r.y - g, b = y * y + P * P, A;
3542
+ return b > 0 && (A = ((t.x - d) * y + (t.y - g) * P) / b, A > 1 ? (d = r.x, g = r.y) : A > 0 && (d += y * A, g += P * A)), y = t.x - d, P = t.y - g, c ? y * y + P * P : new U(d, g);
3543
3543
  }
3544
3544
  function Ct(t) {
3545
3545
  return !G(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
@@ -3548,7 +3548,7 @@ function hr() {
3548
3548
  return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), Ct(t);
3549
3549
  }
3550
3550
  function aa(t, n) {
3551
- var r, c, d, g, y, P, b, T;
3551
+ var r, c, d, g, y, P, b, A;
3552
3552
  if (!t || t.length === 0)
3553
3553
  throw new Error("latlngs not passed");
3554
3554
  Ct(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
@@ -3562,17 +3562,17 @@ function hr() {
3562
3562
  for (r = 0, c = 0; r < yt - 1; r++)
3563
3563
  c += _t[r].distanceTo(_t[r + 1]) / 2;
3564
3564
  if (c === 0)
3565
- T = _t[0];
3565
+ A = _t[0];
3566
3566
  else
3567
3567
  for (r = 0, g = 0; r < yt - 1; r++)
3568
3568
  if (y = _t[r], P = _t[r + 1], d = y.distanceTo(P), g += d, g > c) {
3569
- b = (g - c) / d, T = [
3569
+ b = (g - c) / d, A = [
3570
3570
  P.x - b * (P.x - y.x),
3571
3571
  P.y - b * (P.y - y.y)
3572
3572
  ];
3573
3573
  break;
3574
3574
  }
3575
- var Pt = n.unproject(F(T));
3575
+ var Pt = n.unproject(F(A));
3576
3576
  return Y([Pt.lat + O.lat, Pt.lng + O.lng]);
3577
3577
  }
3578
3578
  var Co = {
@@ -3604,8 +3604,8 @@ function hr() {
3604
3604
  return c = -r * Math.log(Math.max(P, 1e-10)), new U(t.lng * n * r, c);
3605
3605
  },
3606
3606
  unproject: function(t) {
3607
- for (var n = 180 / Math.PI, r = this.R, c = this.R_MINOR / r, d = Math.sqrt(1 - c * c), g = Math.exp(-t.y / r), y = Math.PI / 2 - 2 * Math.atan(g), P = 0, b = 0.1, T; P < 15 && Math.abs(b) > 1e-7; P++)
3608
- T = d * Math.sin(y), T = Math.pow((1 - T) / (1 + T), d / 2), b = Math.PI / 2 - 2 * Math.atan(g * T) - y, y += b;
3607
+ for (var n = 180 / Math.PI, r = this.R, c = this.R_MINOR / r, d = Math.sqrt(1 - c * c), g = Math.exp(-t.y / r), y = Math.PI / 2 - 2 * Math.atan(g), P = 0, b = 0.1, A; P < 15 && Math.abs(b) > 1e-7; P++)
3608
+ A = d * Math.sin(y), A = Math.pow((1 - A) / (1 + A), d / 2), b = Math.PI / 2 - 2 * Math.atan(g * A) - y, y += b;
3609
3609
  return new tt(y * n, t.x * n / r);
3610
3610
  }
3611
3611
  }, Io = {
@@ -4026,11 +4026,11 @@ function hr() {
4026
4026
  y.max._subtract(P).subtract(d)
4027
4027
  );
4028
4028
  if (!b.contains(g)) {
4029
- var T = F(
4029
+ var A = F(
4030
4030
  (Math.max(b.max.x, g.x) - b.max.x) / (y.max.x - b.max.x) - (Math.min(b.min.x, g.x) - b.min.x) / (y.min.x - b.min.x),
4031
4031
  (Math.max(b.max.y, g.y) - b.max.y) / (y.max.y - b.max.y) - (Math.min(b.min.y, g.y) - b.min.y) / (y.min.y - b.min.y)
4032
4032
  ).multiplyBy(c);
4033
- r.panBy(T, { animate: !1 }), this._draggable._newPos._add(T), this._draggable._startPos._add(T), ct(n._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = $(this._adjustPan.bind(this, t));
4033
+ r.panBy(A, { animate: !1 }), this._draggable._newPos._add(A), this._draggable._startPos._add(A), ct(n._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = $(this._adjustPan.bind(this, t));
4034
4034
  }
4035
4035
  },
4036
4036
  _onDragStart: function() {
@@ -4410,8 +4410,8 @@ function hr() {
4410
4410
  _project: function() {
4411
4411
  var t = this._latlng.lng, n = this._latlng.lat, r = this._map, c = r.options.crs;
4412
4412
  if (c.distance === Qt.distance) {
4413
- var d = Math.PI / 180, g = this._mRadius / Qt.R / d, y = r.project([n + g, t]), P = r.project([n - g, t]), b = y.add(P).divideBy(2), T = r.unproject(b).lat, O = Math.acos((Math.cos(g * d) - Math.sin(n * d) * Math.sin(T * d)) / (Math.cos(n * d) * Math.cos(T * d))) / d;
4414
- (isNaN(O) || O === 0) && (O = g / Math.cos(Math.PI / 180 * n)), this._point = b.subtract(r.getPixelOrigin()), this._radius = isNaN(O) ? 0 : b.x - r.project([T, t - O]).x, this._radiusY = b.y - y.y;
4413
+ var d = Math.PI / 180, g = this._mRadius / Qt.R / d, y = r.project([n + g, t]), P = r.project([n - g, t]), b = y.add(P).divideBy(2), A = r.unproject(b).lat, O = Math.acos((Math.cos(g * d) - Math.sin(n * d) * Math.sin(A * d)) / (Math.cos(n * d) * Math.cos(A * d))) / d;
4414
+ (isNaN(O) || O === 0) && (O = g / Math.cos(Math.PI / 180 * n)), this._point = b.subtract(r.getPixelOrigin()), this._radius = isNaN(O) ? 0 : b.x - r.project([A, t - O]).x, this._radiusY = b.y - y.y;
4415
4415
  } else {
4416
4416
  var k = c.unproject(c.project(this._latlng).subtract([this._mRadius, 0]));
4417
4417
  this._point = r.latLngToLayerPoint(this._latlng), this._radius = this._point.x - r.latLngToLayerPoint(k).x;
@@ -4456,8 +4456,8 @@ function hr() {
4456
4456
  // Returns the point closest to `p` on the Polyline.
4457
4457
  closestLayerPoint: function(t) {
4458
4458
  for (var n = 1 / 0, r = null, c = Xi, d, g, y = 0, P = this._parts.length; y < P; y++)
4459
- for (var b = this._parts[y], T = 1, O = b.length; T < O; T++) {
4460
- d = b[T - 1], g = b[T];
4459
+ for (var b = this._parts[y], A = 1, O = b.length; A < O; A++) {
4460
+ d = b[A - 1], g = b[A];
4461
4461
  var k = c(t, d, g, !0);
4462
4462
  k < n && (n = k, r = c(t, d, g));
4463
4463
  }
@@ -4597,11 +4597,11 @@ function hr() {
4597
4597
  },
4598
4598
  // Needed by the `Canvas` renderer for interactivity
4599
4599
  _containsPoint: function(t) {
4600
- var n = !1, r, c, d, g, y, P, b, T;
4600
+ var n = !1, r, c, d, g, y, P, b, A;
4601
4601
  if (!this._pxBounds || !this._pxBounds.contains(t))
4602
4602
  return !1;
4603
4603
  for (g = 0, b = this._parts.length; g < b; g++)
4604
- for (r = this._parts[g], y = 0, T = r.length, P = T - 1; y < T; P = y++)
4604
+ for (r = this._parts[g], y = 0, A = r.length, P = A - 1; y < A; P = y++)
4605
4605
  c = r[y], d = r[P], c.y > t.y != d.y > t.y && t.x < (d.x - c.x) * (t.y - c.y) / (d.y - c.y) + c.x && (n = !n);
4606
4606
  return n || Yt.prototype._containsPoint.call(this, t, !0);
4607
4607
  }
@@ -4695,15 +4695,15 @@ function hr() {
4695
4695
  }
4696
4696
  });
4697
4697
  function Oe(t, n) {
4698
- var r = t.type === "Feature" ? t.geometry : t, c = r ? r.coordinates : null, d = [], g = n && n.pointToLayer, y = n && n.coordsToLatLng || ks, P, b, T, O;
4698
+ var r = t.type === "Feature" ? t.geometry : t, c = r ? r.coordinates : null, d = [], g = n && n.pointToLayer, y = n && n.coordsToLatLng || ks, P, b, A, O;
4699
4699
  if (!c && !r)
4700
4700
  return null;
4701
4701
  switch (r.type) {
4702
4702
  case "Point":
4703
4703
  return P = y(c), ha(g, t, P, n);
4704
4704
  case "MultiPoint":
4705
- for (T = 0, O = c.length; T < O; T++)
4706
- P = y(c[T]), d.push(ha(g, t, P, n));
4705
+ for (A = 0, O = c.length; A < O; A++)
4706
+ P = y(c[A]), d.push(ha(g, t, P, n));
4707
4707
  return new Xt(d);
4708
4708
  case "LineString":
4709
4709
  case "MultiLineString":
@@ -4712,9 +4712,9 @@ function hr() {
4712
4712
  case "MultiPolygon":
4713
4713
  return b = ze(c, r.type === "Polygon" ? 1 : 2, y), new wi(b, n);
4714
4714
  case "GeometryCollection":
4715
- for (T = 0, O = r.geometries.length; T < O; T++) {
4715
+ for (A = 0, O = r.geometries.length; A < O; A++) {
4716
4716
  var k = Oe({
4717
- geometry: r.geometries[T],
4717
+ geometry: r.geometries[A],
4718
4718
  type: "Feature",
4719
4719
  properties: t.properties
4720
4720
  }, n);
@@ -4722,8 +4722,8 @@ function hr() {
4722
4722
  }
4723
4723
  return new Xt(d);
4724
4724
  case "FeatureCollection":
4725
- for (T = 0, O = r.features.length; T < O; T++) {
4726
- var H = Oe(r.features[T], n);
4725
+ for (A = 0, O = r.features.length; A < O; A++) {
4726
+ var H = Oe(r.features[A], n);
4727
4727
  H && d.push(H);
4728
4728
  }
4729
4729
  return new Xt(d);
@@ -5280,8 +5280,8 @@ function hr() {
5280
5280
  }
5281
5281
  var t = this._map, n = parseInt(Fi(this._container, "marginBottom"), 10) || 0, r = this._container.offsetHeight + n, c = this._containerWidth, d = new U(this._containerLeft, -r - this._containerBottom);
5282
5282
  d._add(li(this._container));
5283
- var g = t.layerPointToContainerPoint(d), y = F(this.options.autoPanPadding), P = F(this.options.autoPanPaddingTopLeft || y), b = F(this.options.autoPanPaddingBottomRight || y), T = t.getSize(), O = 0, k = 0;
5284
- g.x + c + b.x > T.x && (O = g.x + c - T.x + b.x), g.x - O - P.x < 0 && (O = g.x - P.x), g.y + r + b.y > T.y && (k = g.y + r - T.y + b.y), g.y - k - P.y < 0 && (k = g.y - P.y), (O || k) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([O, k]));
5283
+ var g = t.layerPointToContainerPoint(d), y = F(this.options.autoPanPadding), P = F(this.options.autoPanPaddingTopLeft || y), b = F(this.options.autoPanPaddingBottomRight || y), A = t.getSize(), O = 0, k = 0;
5284
+ g.x + c + b.x > A.x && (O = g.x + c - A.x + b.x), g.x - O - P.x < 0 && (O = g.x - P.x), g.y + r + b.y > A.y && (k = g.y + r - A.y + b.y), g.y - k - P.y < 0 && (k = g.y - P.y), (O || k) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([O, k]));
5285
5285
  }
5286
5286
  },
5287
5287
  _getAnchor: function() {
@@ -5422,8 +5422,8 @@ function hr() {
5422
5422
  _adjustPan: function() {
5423
5423
  },
5424
5424
  _setPosition: function(t) {
5425
- var n, r, c = this._map, d = this._container, g = c.latLngToContainerPoint(c.getCenter()), y = c.layerPointToContainerPoint(t), P = this.options.direction, b = d.offsetWidth, T = d.offsetHeight, O = F(this.options.offset), k = this._getAnchor();
5426
- P === "top" ? (n = b / 2, r = T) : P === "bottom" ? (n = b / 2, r = 0) : P === "center" ? (n = b / 2, r = T / 2) : P === "right" ? (n = 0, r = T / 2) : P === "left" ? (n = b, r = T / 2) : y.x < g.x ? (P = "right", n = 0, r = T / 2) : (P = "left", n = b + (O.x + k.x) * 2, r = T / 2), t = t.subtract(F(n, r, !0)).add(O).add(k), ht(d, "leaflet-tooltip-right"), ht(d, "leaflet-tooltip-left"), ht(d, "leaflet-tooltip-top"), ht(d, "leaflet-tooltip-bottom"), j(d, "leaflet-tooltip-" + P), ct(d, t);
5425
+ var n, r, c = this._map, d = this._container, g = c.latLngToContainerPoint(c.getCenter()), y = c.layerPointToContainerPoint(t), P = this.options.direction, b = d.offsetWidth, A = d.offsetHeight, O = F(this.options.offset), k = this._getAnchor();
5426
+ P === "top" ? (n = b / 2, r = A) : P === "bottom" ? (n = b / 2, r = 0) : P === "center" ? (n = b / 2, r = A / 2) : P === "right" ? (n = 0, r = A / 2) : P === "left" ? (n = b, r = A / 2) : y.x < g.x ? (P = "right", n = 0, r = A / 2) : (P = "left", n = b + (O.x + k.x) * 2, r = A / 2), t = t.subtract(F(n, r, !0)).add(O).add(k), ht(d, "leaflet-tooltip-right"), ht(d, "leaflet-tooltip-left"), ht(d, "leaflet-tooltip-top"), ht(d, "leaflet-tooltip-bottom"), j(d, "leaflet-tooltip-" + P), ct(d, t);
5427
5427
  },
5428
5428
  _updatePosition: function() {
5429
5429
  var t = this._map.latLngToLayerPoint(this._latlng);
@@ -5783,8 +5783,8 @@ function hr() {
5783
5783
  _retainParent: function(t, n, r, c) {
5784
5784
  var d = Math.floor(t / 2), g = Math.floor(n / 2), y = r - 1, P = new U(+d, +g);
5785
5785
  P.z = +y;
5786
- var b = this._tileCoordsToKey(P), T = this._tiles[b];
5787
- return T && T.active ? (T.retain = !0, !0) : (T && T.loaded && (T.retain = !0), y > c ? this._retainParent(d, g, y, c) : !1);
5786
+ var b = this._tileCoordsToKey(P), A = this._tiles[b];
5787
+ return A && A.active ? (A.retain = !0, !0) : (A && A.loaded && (A.retain = !0), y > c ? this._retainParent(d, g, y, c) : !1);
5788
5788
  },
5789
5789
  _retainChildren: function(t, n, r, c) {
5790
5790
  for (var d = 2 * t; d < 2 * t + 2; d++)
@@ -5853,9 +5853,9 @@ function hr() {
5853
5853
  );
5854
5854
  if (!(isFinite(d.min.x) && isFinite(d.min.y) && isFinite(d.max.x) && isFinite(d.max.y)))
5855
5855
  throw new Error("Attempted to load an infinite number of tiles");
5856
- for (var T in this._tiles) {
5857
- var O = this._tiles[T].coords;
5858
- (O.z !== this._tileZoom || !b.contains(new U(O.x, O.y))) && (this._tiles[T].current = !1);
5856
+ for (var A in this._tiles) {
5857
+ var O = this._tiles[A].coords;
5858
+ (O.z !== this._tileZoom || !b.contains(new U(O.x, O.y))) && (this._tiles[A].current = !1);
5859
5859
  }
5860
5860
  if (Math.abs(r - this._tileZoom) > 1) {
5861
5861
  this._setView(t, r);
@@ -6729,7 +6729,7 @@ function hr() {
6729
6729
  n.fire("moveend");
6730
6730
  else {
6731
6731
  this._prunePositions(+/* @__PURE__ */ new Date());
6732
- var d = this._lastPos.subtract(this._positions[0]), g = (this._lastTime - this._times[0]) / 1e3, y = r.easeLinearity, P = d.multiplyBy(y / g), b = P.distanceTo([0, 0]), T = Math.min(r.inertiaMaxSpeed, b), O = P.multiplyBy(T / b), k = T / (r.inertiaDeceleration * y), H = O.multiplyBy(-k / 2).round();
6732
+ var d = this._lastPos.subtract(this._positions[0]), g = (this._lastTime - this._times[0]) / 1e3, y = r.easeLinearity, P = d.multiplyBy(y / g), b = P.distanceTo([0, 0]), A = Math.min(r.inertiaMaxSpeed, b), O = P.multiplyBy(A / b), k = A / (r.inertiaDeceleration * y), H = O.multiplyBy(-k / 2).round();
6733
6733
  !H.x && !H.y ? n.fire("moveend") : (H = n._limitOffset(H, n.options.maxBounds), $(function() {
6734
6734
  n.panBy(H, {
6735
6735
  duration: k,
@@ -7062,7 +7062,7 @@ function ei(e, i, s) {
7062
7062
  }
7063
7063
  return e || [];
7064
7064
  }
7065
- class Ud {
7065
+ class bh {
7066
7066
  constructor(i, s) {
7067
7067
  this._allArcs = [], this._allLines = [], this._allBLins = [], this._allRects = [], this._allTexts = [], this._allImgs = [], this._allGifs = [], this.map = i, this.canvas = s, this.ctx = s.getContext("2d");
7068
7068
  }
@@ -7235,7 +7235,7 @@ class Ud {
7235
7235
  i.size = s;
7236
7236
  }
7237
7237
  }
7238
- function ur(e, i, s = 0, a = e.length - 1, o = bh) {
7238
+ function ur(e, i, s = 0, a = e.length - 1, o = Sh) {
7239
7239
  for (; a > s; ) {
7240
7240
  if (a - s > 600) {
7241
7241
  const f = a - s + 1, _ = i - s + 1, v = Math.log(f), m = 0.5 * Math.exp(2 * v / 3), p = 0.5 * Math.sqrt(v * m * (f - m) / f) * (_ - f / 2 < 0 ? -1 : 1), M = Math.max(s, Math.floor(i - _ * m / f + p)), w = Math.min(a, Math.floor(i + (f - _) * m / f + p));
@@ -7254,10 +7254,10 @@ function Qi(e, i, s) {
7254
7254
  const a = e[i];
7255
7255
  e[i] = e[s], e[s] = a;
7256
7256
  }
7257
- function bh(e, i) {
7257
+ function Sh(e, i) {
7258
7258
  return e < i ? -1 : e > i ? 1 : 0;
7259
7259
  }
7260
- class Sh {
7260
+ class Eh {
7261
7261
  constructor(i = 9) {
7262
7262
  this._maxEntries = Math.max(4, i), this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4)), this.clear();
7263
7263
  }
@@ -7328,7 +7328,7 @@ class Sh {
7328
7328
  let u, f, _;
7329
7329
  for (; a || h.length; ) {
7330
7330
  if (a || (a = h.pop(), f = h[h.length - 1], u = l.pop(), _ = !0), a.leaf) {
7331
- const v = Eh(i, a.children, s);
7331
+ const v = Ah(i, a.children, s);
7332
7332
  if (v !== -1)
7333
7333
  return a.children.splice(v, 1), h.push(a), this._condense(h), this;
7334
7334
  }
@@ -7379,7 +7379,7 @@ class Sh {
7379
7379
  for (; o.push(s), !(s.leaf || o.length - 1 === a); ) {
7380
7380
  let h = 1 / 0, l = 1 / 0, u;
7381
7381
  for (let f = 0; f < s.children.length; f++) {
7382
- const _ = s.children[f], v = Us(_), m = Lh(i, _) - v;
7382
+ const _ = s.children[f], v = Us(_), m = Ch(i, _) - v;
7383
7383
  m < l ? (l = m, h = v < h ? v : h, u = _) : m === l && v < h && (h = v, u = _);
7384
7384
  }
7385
7385
  s = u || s.children[0];
@@ -7405,14 +7405,14 @@ class Sh {
7405
7405
  _chooseSplitIndex(i, s, a) {
7406
7406
  let o, h = 1 / 0, l = 1 / 0;
7407
7407
  for (let u = s; u <= a - s; u++) {
7408
- const f = ne(i, 0, u, this.toBBox), _ = ne(i, u, a, this.toBBox), v = Ch(f, _), m = Us(f) + Us(_);
7408
+ const f = ne(i, 0, u, this.toBBox), _ = ne(i, u, a, this.toBBox), v = Ih(f, _), m = Us(f) + Us(_);
7409
7409
  v < h ? (h = v, o = u, l = m < l ? m : l) : v === h && m < l && (l = m, o = u);
7410
7410
  }
7411
7411
  return o || a - s;
7412
7412
  }
7413
7413
  // sorts node children by the best axis for split
7414
7414
  _chooseSplitAxis(i, s, a) {
7415
- const o = i.leaf ? this.compareMinX : Th, h = i.leaf ? this.compareMinY : Ah, l = this._allDistMargin(i, s, a, o), u = this._allDistMargin(i, s, a, h);
7415
+ const o = i.leaf ? this.compareMinX : Th, h = i.leaf ? this.compareMinY : Lh, l = this._allDistMargin(i, s, a, o), u = this._allDistMargin(i, s, a, h);
7416
7416
  l < u && i.children.sort(o);
7417
7417
  }
7418
7418
  // total margin of all possible split distributions where each node is at least m full
@@ -7439,7 +7439,7 @@ class Sh {
7439
7439
  i[s].children.length === 0 ? s > 0 ? (a = i[s - 1].children, a.splice(a.indexOf(i[s]), 1)) : this.clear() : Si(i[s], this.toBBox);
7440
7440
  }
7441
7441
  }
7442
- function Eh(e, i, s) {
7442
+ function Ah(e, i, s) {
7443
7443
  if (!s) return i.indexOf(e);
7444
7444
  for (let a = 0; a < i.length; a++)
7445
7445
  if (s(e, i[a])) return a;
@@ -7462,7 +7462,7 @@ function ae(e, i) {
7462
7462
  function Th(e, i) {
7463
7463
  return e.minX - i.minX;
7464
7464
  }
7465
- function Ah(e, i) {
7465
+ function Lh(e, i) {
7466
7466
  return e.minY - i.minY;
7467
7467
  }
7468
7468
  function Us(e) {
@@ -7471,10 +7471,10 @@ function Us(e) {
7471
7471
  function qe(e) {
7472
7472
  return e.maxX - e.minX + (e.maxY - e.minY);
7473
7473
  }
7474
- function Lh(e, i) {
7474
+ function Ch(e, i) {
7475
7475
  return (Math.max(i.maxX, e.maxX) - Math.min(i.minX, e.minX)) * (Math.max(i.maxY, e.maxY) - Math.min(i.minY, e.minY));
7476
7476
  }
7477
- function Ch(e, i) {
7477
+ function Ih(e, i) {
7478
7478
  const s = Math.max(e.minX, i.minX), a = Math.max(e.minY, i.minY), o = Math.min(e.maxX, i.maxX), h = Math.min(e.maxY, i.maxY);
7479
7479
  return Math.max(0, o - s) * Math.max(0, h - a);
7480
7480
  }
@@ -7506,7 +7506,7 @@ function Ra(e, i, s, a, o) {
7506
7506
  const Bt = class Bt {
7507
7507
  /**地图事件控制类 */
7508
7508
  constructor(i) {
7509
- this.rbush = new Sh(), this._listenCbs = /* @__PURE__ */ Object.create(null), this._allMapEvents = /* @__PURE__ */ new Map(), this._allRbush = [], this.perEvents = [], this.cbMapEvent = (s) => {
7509
+ this.rbush = new Eh(), this._listenCbs = /* @__PURE__ */ Object.create(null), this._allMapEvents = /* @__PURE__ */ new Map(), this._allRbush = [], this.perEvents = [], this.cbMapEvent = (s) => {
7510
7510
  let { cb: a, cbs: o } = s.event;
7511
7511
  if (a) {
7512
7512
  a(s);
@@ -7664,7 +7664,7 @@ const Bt = class Bt {
7664
7664
  };
7665
7665
  Bt.ifInitCursor = !0, Bt.ifInit = !0;
7666
7666
  let Ba = Bt;
7667
- class qd {
7667
+ class Gh {
7668
7668
  constructor(i, s) {
7669
7669
  if (this.canvas = document.createElement("canvas"), this.ctx = this.canvas.getContext("2d"), this.width = 0, this.height = 0, this.options = {
7670
7670
  pane: "canvas"
@@ -7792,12 +7792,12 @@ class qd {
7792
7792
  this.layer instanceof it.Layer && this.layer.fire("load");
7793
7793
  }
7794
7794
  }
7795
- var Ye = { exports: {} }, Ih = Ye.exports, ka;
7796
- function Gh() {
7795
+ var Ye = { exports: {} }, Nh = Ye.exports, ka;
7796
+ function Oh() {
7797
7797
  return ka || (ka = 1, (function(e, i) {
7798
7798
  (function(s, a) {
7799
7799
  e.exports = a();
7800
- })(Ih, function() {
7800
+ })(Nh, function() {
7801
7801
  function s(m) {
7802
7802
  var p = [];
7803
7803
  return m.AMapUI && p.push(a(m.AMapUI)), m.Loca && p.push(o(m.Loca)), Promise.all(p);
@@ -7919,28 +7919,28 @@ function Gh() {
7919
7919
  });
7920
7920
  })(Ye)), Ye.exports;
7921
7921
  }
7922
- var Nh = Gh(), js = { exports: {} };
7923
- function Oh(e) {
7922
+ var zh = Oh(), js = { exports: {} };
7923
+ function Rh(e) {
7924
7924
  e("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), e("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), e("EPSG:3857", "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");
7925
7925
  for (var i = 1; i <= 60; ++i)
7926
7926
  e("EPSG:" + (32600 + i), "+proj=utm +zone=" + i + " +datum=WGS84 +units=m"), e("EPSG:" + (32700 + i), "+proj=utm +zone=" + i + " +south +datum=WGS84 +units=m");
7927
7927
  e("EPSG:5041", "+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), e("EPSG:5042", "+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"), e.WGS84 = e["EPSG:4326"], e["EPSG:3785"] = e["EPSG:3857"], e.GOOGLE = e["EPSG:3857"], e["EPSG:900913"] = e["EPSG:3857"], e["EPSG:102113"] = e["EPSG:3857"];
7928
7928
  }
7929
- var _i = 1, mi = 2, Gi = 3, zh = 4, $s = 5, Da = 6378137, Rh = 6356752314e-3, Za = 0.0066943799901413165, ue = 484813681109536e-20, A = Math.PI / 2, Bh = 0.16666666666666666, kh = 0.04722222222222222, Dh = 0.022156084656084655, I = 1e-10, ot = 0.017453292519943295, Et = 57.29577951308232, J = Math.PI / 4, me = Math.PI * 2, lt = 3.14159265359, Tt = {};
7930
- Tt.greenwich = 0;
7931
- Tt.lisbon = -9.131906111111;
7932
- Tt.paris = 2.337229166667;
7933
- Tt.bogota = -74.080916666667;
7934
- Tt.madrid = -3.687938888889;
7935
- Tt.rome = 12.452333333333;
7936
- Tt.bern = 7.439583333333;
7937
- Tt.jakarta = 106.807719444444;
7938
- Tt.ferro = -17.666666666667;
7939
- Tt.brussels = 4.367975;
7940
- Tt.stockholm = 18.058277777778;
7941
- Tt.athens = 23.7163375;
7942
- Tt.oslo = 10.722916666667;
7943
- const Zh = {
7929
+ var _i = 1, mi = 2, Gi = 3, Bh = 4, $s = 5, Da = 6378137, kh = 6356752314e-3, Za = 0.0066943799901413165, ue = 484813681109536e-20, T = Math.PI / 2, Dh = 0.16666666666666666, Zh = 0.04722222222222222, Fh = 0.022156084656084655, I = 1e-10, ot = 0.017453292519943295, Et = 57.29577951308232, J = Math.PI / 4, me = Math.PI * 2, lt = 3.14159265359, At = {};
7930
+ At.greenwich = 0;
7931
+ At.lisbon = -9.131906111111;
7932
+ At.paris = 2.337229166667;
7933
+ At.bogota = -74.080916666667;
7934
+ At.madrid = -3.687938888889;
7935
+ At.rome = 12.452333333333;
7936
+ At.bern = 7.439583333333;
7937
+ At.jakarta = 106.807719444444;
7938
+ At.ferro = -17.666666666667;
7939
+ At.brussels = 4.367975;
7940
+ At.stockholm = 18.058277777778;
7941
+ At.athens = 23.7163375;
7942
+ At.oslo = 10.722916666667;
7943
+ const Uh = {
7944
7944
  mm: { to_meter: 1e-3 },
7945
7945
  cm: { to_meter: 0.01 },
7946
7946
  ft: { to_meter: 0.3048 },
@@ -8054,14 +8054,14 @@ function Js(e) {
8054
8054
  },
8055
8055
  units: function(u) {
8056
8056
  i.units = u;
8057
- var f = ai(Zh, u);
8057
+ var f = ai(Uh, u);
8058
8058
  f && (i.to_meter = f.to_meter);
8059
8059
  },
8060
8060
  from_greenwich: function(u) {
8061
8061
  i.from_greenwich = u * ot;
8062
8062
  },
8063
8063
  pm: function(u) {
8064
- var f = ai(Tt, u);
8064
+ var f = ai(At, u);
8065
8065
  i.from_greenwich = (f || parseFloat(u)) * ot;
8066
8066
  },
8067
8067
  nadgrids: function(u) {
@@ -8250,12 +8250,12 @@ class cr {
8250
8250
  return s;
8251
8251
  }
8252
8252
  }
8253
- class Fh extends cr {
8253
+ class qh extends cr {
8254
8254
  static convert(i, s = {}) {
8255
8255
  return super.convert(i, s), s.coordinate_system && s.coordinate_system.subtype === "Cartesian" && delete s.coordinate_system, s.usage && delete s.usage, s;
8256
8256
  }
8257
8257
  }
8258
- class Uh extends cr {
8258
+ class jh extends cr {
8259
8259
  static convert(i, s = {}) {
8260
8260
  super.convert(i, s);
8261
8261
  const a = i.find((h) => Array.isArray(h) && h[0] === "CS");
@@ -8271,17 +8271,17 @@ class Uh extends cr {
8271
8271
  return s;
8272
8272
  }
8273
8273
  }
8274
- function qh(e) {
8274
+ function Hh(e) {
8275
8275
  return e.find((i) => Array.isArray(i) && i[0] === "USAGE") ? "2019" : (e.find((i) => Array.isArray(i) && i[0] === "CS") || e[0] === "BOUNDCRS" || e[0] === "PROJCRS" || e[0] === "GEOGCRS", "2015");
8276
8276
  }
8277
- function jh(e) {
8278
- return (qh(e) === "2019" ? Uh : Fh).convert(e);
8277
+ function Wh(e) {
8278
+ return (Hh(e) === "2019" ? jh : qh).convert(e);
8279
8279
  }
8280
- function Hh(e) {
8280
+ function Xh(e) {
8281
8281
  const i = e.toUpperCase();
8282
8282
  return i.includes("PROJCRS") || i.includes("GEOGCRS") || i.includes("BOUNDCRS") || i.includes("VERTCRS") || i.includes("LENGTHUNIT") || i.includes("ANGLEUNIT") || i.includes("SCALEUNIT") ? "WKT2" : (i.includes("PROJCS") || i.includes("GEOGCS") || i.includes("LOCAL_CS") || i.includes("VERT_CS") || i.includes("UNIT"), "WKT1");
8283
8283
  }
8284
- var ge = 1, fr = 2, dr = 3, Qe = 4, _r = 5, rn = -1, Wh = /\s/, Xh = /[A-Za-z]/, Yh = /[A-Za-z84_]/, os = /[,\]]/, mr = /[\d\.E\-\+]/;
8284
+ var ge = 1, fr = 2, dr = 3, Qe = 4, _r = 5, rn = -1, Yh = /\s/, Vh = /[A-Za-z]/, Kh = /[A-Za-z84_]/, os = /[,\]]/, mr = /[\d\.E\-\+]/;
8285
8285
  function $t(e) {
8286
8286
  if (typeof e != "string")
8287
8287
  throw new Error("not a string");
@@ -8290,7 +8290,7 @@ function $t(e) {
8290
8290
  $t.prototype.readCharicter = function() {
8291
8291
  var e = this.text[this.place++];
8292
8292
  if (this.state !== Qe)
8293
- for (; Wh.test(e); ) {
8293
+ for (; Yh.test(e); ) {
8294
8294
  if (this.place >= this.text.length)
8295
8295
  return;
8296
8296
  e = this.text[this.place++];
@@ -8350,7 +8350,7 @@ $t.prototype.quoted = function(e) {
8350
8350
  this.word += e;
8351
8351
  };
8352
8352
  $t.prototype.keyword = function(e) {
8353
- if (Yh.test(e)) {
8353
+ if (Kh.test(e)) {
8354
8354
  this.word += e;
8355
8355
  return;
8356
8356
  }
@@ -8366,7 +8366,7 @@ $t.prototype.keyword = function(e) {
8366
8366
  throw new Error(`havn't handled "` + e + '" in keyword yet, index ' + this.place);
8367
8367
  };
8368
8368
  $t.prototype.neutral = function(e) {
8369
- if (Xh.test(e)) {
8369
+ if (Vh.test(e)) {
8370
8370
  this.word = e, this.state = fr;
8371
8371
  return;
8372
8372
  }
@@ -8391,18 +8391,18 @@ $t.prototype.output = function() {
8391
8391
  return this.root;
8392
8392
  throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
8393
8393
  };
8394
- function Vh(e) {
8394
+ function $h(e) {
8395
8395
  var i = new $t(e);
8396
8396
  return i.output();
8397
8397
  }
8398
8398
  function Hs(e, i, s) {
8399
8399
  Array.isArray(i) && (s.unshift(i), i = null);
8400
8400
  var a = i ? {} : e, o = s.reduce(function(h, l) {
8401
- return Ai(l, h), h;
8401
+ return Ti(l, h), h;
8402
8402
  }, a);
8403
8403
  i && (e[i] = o);
8404
8404
  }
8405
- function Ai(e, i) {
8405
+ function Ti(e, i) {
8406
8406
  if (!Array.isArray(e)) {
8407
8407
  i[e] = !0;
8408
8408
  return;
@@ -8410,7 +8410,7 @@ function Ai(e, i) {
8410
8410
  var s = e.shift();
8411
8411
  if (s === "PARAMETER" && (s = e.shift()), e.length === 1) {
8412
8412
  if (Array.isArray(e[0])) {
8413
- i[s] = {}, Ai(e[0], i[s]);
8413
+ i[s] = {}, Ti(e[0], i[s]);
8414
8414
  return;
8415
8415
  }
8416
8416
  i[s] = e[0];
@@ -8437,7 +8437,7 @@ function Ai(e, i) {
8437
8437
  i[s] = {
8438
8438
  name: e[0].toLowerCase(),
8439
8439
  convert: e[1]
8440
- }, e.length === 3 && Ai(e[2], i[s]);
8440
+ }, e.length === 3 && Ti(e[2], i[s]);
8441
8441
  return;
8442
8442
  case "SPHEROID":
8443
8443
  case "ELLIPSOID":
@@ -8445,7 +8445,7 @@ function Ai(e, i) {
8445
8445
  name: e[0],
8446
8446
  a: e[1],
8447
8447
  rf: e[2]
8448
- }, e.length === 4 && Ai(e[3], i[s]);
8448
+ }, e.length === 4 && Ti(e[3], i[s]);
8449
8449
  return;
8450
8450
  case "EDATUM":
8451
8451
  case "ENGINEERINGDATUM":
@@ -8477,13 +8477,13 @@ function Ai(e, i) {
8477
8477
  default:
8478
8478
  for (a = -1; ++a < e.length; )
8479
8479
  if (!Array.isArray(e[a]))
8480
- return Ai(e, i[s]);
8480
+ return Ti(e, i[s]);
8481
8481
  return Hs(i, s, e);
8482
8482
  }
8483
8483
  }
8484
- var Kh = 0.017453292519943295;
8484
+ var Jh = 0.017453292519943295;
8485
8485
  function Rt(e) {
8486
- return e * Kh;
8486
+ return e * Jh;
8487
8487
  }
8488
8488
  function gr(e) {
8489
8489
  const i = (e.projName || "").toLowerCase().replace(/_/g, " ");
@@ -8558,7 +8558,7 @@ function ts(e, i = {}) {
8558
8558
  }
8559
8559
  }), i.latitude_of_false_origin !== void 0 && (i.lat0 = i.latitude_of_false_origin), i.longitude_of_false_origin !== void 0 && (i.long0 = i.longitude_of_false_origin), i.latitude_of_standard_parallel !== void 0 && (i.lat0 = i.latitude_of_standard_parallel, i.lat1 = i.latitude_of_standard_parallel), i.latitude_of_1st_standard_parallel !== void 0 && (i.lat1 = i.latitude_of_1st_standard_parallel), i.latitude_of_2nd_standard_parallel !== void 0 && (i.lat2 = i.latitude_of_2nd_standard_parallel), i.latitude_of_projection_centre !== void 0 && (i.lat0 = i.latitude_of_projection_centre), i.longitude_of_projection_centre !== void 0 && (i.longc = i.longitude_of_projection_centre), i.easting_at_false_origin !== void 0 && (i.x0 = i.easting_at_false_origin), i.northing_at_false_origin !== void 0 && (i.y0 = i.northing_at_false_origin), i.latitude_of_natural_origin !== void 0 && (i.lat0 = i.latitude_of_natural_origin), i.longitude_of_natural_origin !== void 0 && (i.long0 = i.longitude_of_natural_origin), i.longitude_of_origin !== void 0 && (i.long0 = i.longitude_of_origin), i.false_easting !== void 0 && (i.x0 = i.false_easting), i.easting_at_projection_centre && (i.x0 = i.easting_at_projection_centre), i.false_northing !== void 0 && (i.y0 = i.false_northing), i.northing_at_projection_centre && (i.y0 = i.northing_at_projection_centre), i.standard_parallel_1 !== void 0 && (i.lat1 = i.standard_parallel_1), i.standard_parallel_2 !== void 0 && (i.lat2 = i.standard_parallel_2), i.scale_factor_at_natural_origin !== void 0 && (i.k0 = i.scale_factor_at_natural_origin), i.scale_factor_at_projection_centre !== void 0 && (i.k0 = i.scale_factor_at_projection_centre), i.scale_factor_on_pseudo_standard_parallel !== void 0 && (i.k0 = i.scale_factor_on_pseudo_standard_parallel), i.azimuth !== void 0 && (i.alpha = i.azimuth), i.azimuth_at_projection_centre !== void 0 && (i.alpha = i.azimuth_at_projection_centre), i.angle_from_rectified_to_skew_grid && (i.rectified_grid_angle = i.angle_from_rectified_to_skew_grid), gr(i), i);
8560
8560
  }
8561
- var $h = [
8561
+ var Qh = [
8562
8562
  "PROJECTEDCRS",
8563
8563
  "PROJCRS",
8564
8564
  "GEOGCS",
@@ -8571,17 +8571,17 @@ var $h = [
8571
8571
  "ENGCRS",
8572
8572
  "ENGINEERINGCRS"
8573
8573
  ];
8574
- function Jh(e, i) {
8574
+ function tl(e, i) {
8575
8575
  var s = i[0], a = i[1];
8576
8576
  !(s in e) && a in e && (e[s] = e[a], i.length === 3 && (e[s] = i[2](e[s])));
8577
8577
  }
8578
8578
  function pr(e) {
8579
8579
  for (var i = Object.keys(e), s = 0, a = i.length; s < a; ++s) {
8580
8580
  var o = i[s];
8581
- $h.indexOf(o) !== -1 && Qh(e[o]), typeof e[o] == "object" && pr(e[o]);
8581
+ Qh.indexOf(o) !== -1 && il(e[o]), typeof e[o] == "object" && pr(e[o]);
8582
8582
  }
8583
8583
  }
8584
- function Qh(e) {
8584
+ function il(e) {
8585
8585
  if (e.AUTHORITY) {
8586
8586
  var i = Object.keys(e.AUTHORITY)[0];
8587
8587
  i && i in e.AUTHORITY && (e.title = i + ":" + e.AUTHORITY[i]);
@@ -8601,7 +8601,7 @@ function Qh(e) {
8601
8601
  return v * m;
8602
8602
  }
8603
8603
  var f = function(v) {
8604
- return Jh(e, v);
8604
+ return tl(e, v);
8605
8605
  }, _ = [
8606
8606
  ["standard_parallel_1", "Standard_Parallel_1"],
8607
8607
  ["standard_parallel_1", "Latitude of 1st standard parallel"],
@@ -8644,14 +8644,14 @@ function Qh(e) {
8644
8644
  function is(e) {
8645
8645
  if (typeof e == "object")
8646
8646
  return ts(e);
8647
- const i = Hh(e);
8648
- var s = Vh(e);
8647
+ const i = Xh(e);
8648
+ var s = $h(e);
8649
8649
  if (i === "WKT2") {
8650
- const h = jh(s);
8650
+ const h = Wh(s);
8651
8651
  return ts(h);
8652
8652
  }
8653
8653
  var a = s[0], o = {};
8654
- return Ai(s, o), pr(o), o[a];
8654
+ return Ti(s, o), pr(o), o[a];
8655
8655
  }
8656
8656
  function gt(e) {
8657
8657
  var i = this;
@@ -8685,18 +8685,18 @@ function gt(e) {
8685
8685
  return;
8686
8686
  }
8687
8687
  }
8688
- Oh(gt);
8689
- function tl(e) {
8688
+ Rh(gt);
8689
+ function el(e) {
8690
8690
  return typeof e == "string";
8691
8691
  }
8692
- function il(e) {
8692
+ function sl(e) {
8693
8693
  return e in gt;
8694
8694
  }
8695
- function el(e) {
8695
+ function nl(e) {
8696
8696
  return e.indexOf("+") !== 0 && e.indexOf("[") !== -1 || typeof e == "object" && !("srsCode" in e);
8697
8697
  }
8698
8698
  var Ha = ["3857", "900913", "3785", "102113"];
8699
- function sl(e) {
8699
+ function al(e) {
8700
8700
  if (e.title)
8701
8701
  return e.title.toLowerCase().indexOf("epsg:") === 0 && Ha.indexOf(e.title.substr(5)) > -1;
8702
8702
  var i = ai(e, "authority");
@@ -8705,26 +8705,26 @@ function sl(e) {
8705
8705
  return s && Ha.indexOf(s) > -1;
8706
8706
  }
8707
8707
  }
8708
- function nl(e) {
8708
+ function rl(e) {
8709
8709
  var i = ai(e, "extension");
8710
8710
  if (i)
8711
8711
  return ai(i, "proj4");
8712
8712
  }
8713
- function al(e) {
8713
+ function ol(e) {
8714
8714
  return e[0] === "+";
8715
8715
  }
8716
- function rl(e) {
8717
- if (tl(e)) {
8718
- if (il(e))
8716
+ function hl(e) {
8717
+ if (el(e)) {
8718
+ if (sl(e))
8719
8719
  return gt[e];
8720
- if (el(e)) {
8720
+ if (nl(e)) {
8721
8721
  var i = is(e);
8722
- if (sl(i))
8722
+ if (al(i))
8723
8723
  return gt["EPSG:3857"];
8724
- var s = nl(i);
8724
+ var s = rl(i);
8725
8725
  return s ? Js(s) : i;
8726
8726
  }
8727
- if (al(e))
8727
+ if (ol(e))
8728
8728
  return Js(e);
8729
8729
  } else return "projName" in e ? e : is(e);
8730
8730
  }
@@ -8749,24 +8749,24 @@ function N(e, i) {
8749
8749
  }
8750
8750
  function Dt(e, i, s) {
8751
8751
  var a = e * s, o = 0.5 * e;
8752
- return a = Math.pow((1 - a) / (1 + a), o), Math.tan(0.5 * (A - i)) / a;
8752
+ return a = Math.pow((1 - a) / (1 + a), o), Math.tan(0.5 * (T - i)) / a;
8753
8753
  }
8754
8754
  function pe(e, i) {
8755
- for (var s = 0.5 * e, a, o, h = A - 2 * Math.atan(i), l = 0; l <= 15; l++)
8756
- if (a = e * Math.sin(h), o = A - 2 * Math.atan(i * Math.pow((1 - a) / (1 + a), s)) - h, h += o, Math.abs(o) <= 1e-10)
8755
+ for (var s = 0.5 * e, a, o, h = T - 2 * Math.atan(i), l = 0; l <= 15; l++)
8756
+ if (a = e * Math.sin(h), o = T - 2 * Math.atan(i * Math.pow((1 - a) / (1 + a), s)) - h, h += o, Math.abs(o) <= 1e-10)
8757
8757
  return h;
8758
8758
  return -9999;
8759
8759
  }
8760
- function ol() {
8760
+ function ll() {
8761
8761
  var e = this.b / this.a;
8762
8762
  this.es = 1 - e * e, "x0" in this || (this.x0 = 0), "y0" in this || (this.y0 = 0), this.e = Math.sqrt(this.es), this.lat_ts ? this.sphere ? this.k0 = Math.cos(this.lat_ts) : this.k0 = Ht(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
8763
8763
  }
8764
- function hl(e) {
8764
+ function ul(e) {
8765
8765
  var i = e.x, s = e.y;
8766
8766
  if (s * Et > 90 && s * Et < -90 && i * Et > 180 && i * Et < -180)
8767
8767
  return null;
8768
8768
  var a, o;
8769
- if (Math.abs(Math.abs(s) - A) <= I)
8769
+ if (Math.abs(Math.abs(s) - T) <= I)
8770
8770
  return null;
8771
8771
  if (this.sphere)
8772
8772
  a = this.x0 + this.a * this.k0 * N(i - this.long0, this.over), o = this.y0 + this.a * this.k0 * Math.log(Math.tan(J + 0.5 * s));
@@ -8776,10 +8776,10 @@ function hl(e) {
8776
8776
  }
8777
8777
  return e.x = a, e.y = o, e;
8778
8778
  }
8779
- function ll(e) {
8779
+ function cl(e) {
8780
8780
  var i = e.x - this.x0, s = e.y - this.y0, a, o;
8781
8781
  if (this.sphere)
8782
- o = A - 2 * Math.atan(Math.exp(-s / (this.a * this.k0)));
8782
+ o = T - 2 * Math.atan(Math.exp(-s / (this.a * this.k0)));
8783
8783
  else {
8784
8784
  var h = Math.exp(-s / (this.a * this.k0));
8785
8785
  if (o = pe(this.e, h), o === -9999)
@@ -8787,26 +8787,26 @@ function ll(e) {
8787
8787
  }
8788
8788
  return a = N(this.long0 + i / (this.a * this.k0), this.over), e.x = a, e.y = o, e;
8789
8789
  }
8790
- var ul = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "Mercator_Variant_A", "merc"];
8791
- const cl = {
8792
- init: ol,
8793
- forward: hl,
8794
- inverse: ll,
8795
- names: ul
8790
+ var fl = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "Mercator_Variant_A", "merc"];
8791
+ const dl = {
8792
+ init: ll,
8793
+ forward: ul,
8794
+ inverse: cl,
8795
+ names: fl
8796
8796
  };
8797
- function fl() {
8797
+ function _l() {
8798
8798
  }
8799
8799
  function Xa(e) {
8800
8800
  return e;
8801
8801
  }
8802
8802
  var vr = ["longlat", "identity"];
8803
- const dl = {
8804
- init: fl,
8803
+ const ml = {
8804
+ init: _l,
8805
8805
  forward: Xa,
8806
8806
  inverse: Xa,
8807
8807
  names: vr
8808
8808
  };
8809
- var _l = [cl, dl], di = {}, Li = [];
8809
+ var gl = [dl, ml], di = {}, Li = [];
8810
8810
  function yr(e, i) {
8811
8811
  var s = Li.length;
8812
8812
  return e.names ? (Li[s] = e, e.names.forEach(function(a) {
@@ -8816,20 +8816,20 @@ function yr(e, i) {
8816
8816
  function Mr(e) {
8817
8817
  return e.replace(/[-\(\)\s]+/g, " ").trim().replace(/ /g, "_");
8818
8818
  }
8819
- function ml(e) {
8819
+ function pl(e) {
8820
8820
  if (!e)
8821
8821
  return !1;
8822
8822
  var i = e.toLowerCase();
8823
8823
  if (typeof di[i] < "u" && Li[di[i]] || (i = Mr(i), i in di && Li[di[i]]))
8824
8824
  return Li[di[i]];
8825
8825
  }
8826
- function gl() {
8827
- _l.forEach(yr);
8826
+ function vl() {
8827
+ gl.forEach(yr);
8828
8828
  }
8829
- const pl = {
8830
- start: gl,
8829
+ const yl = {
8830
+ start: vl,
8831
8831
  add: yr,
8832
- get: ml
8832
+ get: pl
8833
8833
  };
8834
8834
  var wr = {
8835
8835
  MERIT: {
@@ -9054,10 +9054,10 @@ var wr = {
9054
9054
  ellipseName: "Normal Sphere (r=6370997)"
9055
9055
  }
9056
9056
  };
9057
- const vl = wr.WGS84;
9058
- function yl(e, i, s, a) {
9057
+ const Ml = wr.WGS84;
9058
+ function wl(e, i, s, a) {
9059
9059
  var o = e * e, h = i * i, l = (o - h) / o, u = 0;
9060
- a ? (e *= 1 - l * (Bh + l * (kh + l * Dh)), o = e * e, l = 0) : u = Math.sqrt(l);
9060
+ a ? (e *= 1 - l * (Dh + l * (Zh + l * Fh)), o = e * e, l = 0) : u = Math.sqrt(l);
9061
9061
  var f = (o - h) / h;
9062
9062
  return {
9063
9063
  es: l,
@@ -9065,10 +9065,10 @@ function yl(e, i, s, a) {
9065
9065
  ep2: f
9066
9066
  };
9067
9067
  }
9068
- function Ml(e, i, s, a, o) {
9068
+ function xl(e, i, s, a, o) {
9069
9069
  if (!e) {
9070
9070
  var h = ai(wr, a);
9071
- h || (h = vl), e = h.a, i = h.b, s = h.rf;
9071
+ h || (h = Ml), e = h.a, i = h.b, s = h.rf;
9072
9072
  }
9073
9073
  return s && !i && (i = (1 - 1 / s) * e), (s === 0 || Math.abs(e - i) < I) && (o = !0, i = e), {
9074
9074
  a: e,
@@ -10348,25 +10348,25 @@ var Ve = {
10348
10348
  towgs84: "589,76,480"
10349
10349
  }
10350
10350
  };
10351
- for (var wl in Ve) {
10352
- var Ws = Ve[wl];
10351
+ for (var Pl in Ve) {
10352
+ var Ws = Ve[Pl];
10353
10353
  Ws.datumName && (Ve[Ws.datumName] = Ws);
10354
10354
  }
10355
- function xl(e, i, s, a, o, h, l) {
10355
+ function bl(e, i, s, a, o, h, l) {
10356
10356
  var u = {};
10357
- return e === void 0 || e === "none" ? u.datum_type = $s : u.datum_type = zh, i && (u.datum_params = i.map(parseFloat), (u.datum_params[0] !== 0 || u.datum_params[1] !== 0 || u.datum_params[2] !== 0) && (u.datum_type = _i), u.datum_params.length > 3 && (u.datum_params[3] !== 0 || u.datum_params[4] !== 0 || u.datum_params[5] !== 0 || u.datum_params[6] !== 0) && (u.datum_type = mi, u.datum_params[3] *= ue, u.datum_params[4] *= ue, u.datum_params[5] *= ue, u.datum_params[6] = u.datum_params[6] / 1e6 + 1)), l && (u.datum_type = Gi, u.grids = l), u.a = s, u.b = a, u.es = o, u.ep2 = h, u;
10357
+ return e === void 0 || e === "none" ? u.datum_type = $s : u.datum_type = Bh, i && (u.datum_params = i.map(parseFloat), (u.datum_params[0] !== 0 || u.datum_params[1] !== 0 || u.datum_params[2] !== 0) && (u.datum_type = _i), u.datum_params.length > 3 && (u.datum_params[3] !== 0 || u.datum_params[4] !== 0 || u.datum_params[5] !== 0 || u.datum_params[6] !== 0) && (u.datum_type = mi, u.datum_params[3] *= ue, u.datum_params[4] *= ue, u.datum_params[5] *= ue, u.datum_params[6] = u.datum_params[6] / 1e6 + 1)), l && (u.datum_type = Gi, u.grids = l), u.a = s, u.b = a, u.es = o, u.ep2 = h, u;
10358
10358
  }
10359
10359
  var on = {};
10360
- function Pl(e, i, s) {
10361
- return i instanceof ArrayBuffer ? bl(e, i, s) : { ready: Sl(e, i) };
10360
+ function Sl(e, i, s) {
10361
+ return i instanceof ArrayBuffer ? El(e, i, s) : { ready: Al(e, i) };
10362
10362
  }
10363
- function bl(e, i, s) {
10363
+ function El(e, i, s) {
10364
10364
  var a = !0;
10365
10365
  s !== void 0 && s.includeErrorFields === !1 && (a = !1);
10366
- var o = new DataView(i), h = Al(o), l = Ll(o, h), u = Cl(o, l, h, a), f = { header: l, subgrids: u };
10366
+ var o = new DataView(i), h = Cl(o), l = Il(o, h), u = Gl(o, l, h, a), f = { header: l, subgrids: u };
10367
10367
  return on[e] = f, f;
10368
10368
  }
10369
- async function Sl(e, i) {
10369
+ async function Al(e, i) {
10370
10370
  for (var s = [], a = await i.getImageCount(), o = a - 1; o >= 0; o--) {
10371
10371
  var h = await i.getImage(o), l = await h.readRasters(), u = l, f = [h.getWidth(), h.getHeight()], _ = h.getBoundingBox().map(Ya), v = [h.fileDirectory.ModelPixelScale[0], h.fileDirectory.ModelPixelScale[1]].map(Ya), m = _[0] + (f[0] - 1) * v[0], p = _[3] - (f[1] - 1) * v[1], M = u[0], w = u[1], x = [];
10372
10372
  for (let C = f[1] - 1; C >= 0; C--)
@@ -10389,13 +10389,13 @@ async function Sl(e, i) {
10389
10389
  };
10390
10390
  return on[e] = E, E;
10391
10391
  }
10392
- function El(e) {
10392
+ function Tl(e) {
10393
10393
  if (e === void 0)
10394
10394
  return null;
10395
10395
  var i = e.split(",");
10396
- return i.map(Tl);
10396
+ return i.map(Ll);
10397
10397
  }
10398
- function Tl(e) {
10398
+ function Ll(e) {
10399
10399
  if (e.length === 0)
10400
10400
  return null;
10401
10401
  var i = e[0] === "@";
@@ -10412,11 +10412,11 @@ function Ya(e) {
10412
10412
  function si(e) {
10413
10413
  return e / 3600 * Math.PI / 180;
10414
10414
  }
10415
- function Al(e) {
10415
+ function Cl(e) {
10416
10416
  var i = e.getInt32(8, !1);
10417
10417
  return i === 11 ? !1 : (i = e.getInt32(8, !0), i !== 11 && console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"), !0);
10418
10418
  }
10419
- function Ll(e, i) {
10419
+ function Il(e, i) {
10420
10420
  return {
10421
10421
  nFields: e.getInt32(8, i),
10422
10422
  nSubgridFields: e.getInt32(24, i),
@@ -10431,9 +10431,9 @@ function Ll(e, i) {
10431
10431
  function Qs(e, i, s) {
10432
10432
  return String.fromCharCode.apply(null, new Uint8Array(e.buffer.slice(i, s)));
10433
10433
  }
10434
- function Cl(e, i, s, a) {
10434
+ function Gl(e, i, s, a) {
10435
10435
  for (var o = 176, h = [], l = 0; l < i.nSubgrids; l++) {
10436
- var u = Gl(e, o, s), f = Nl(e, o, u, s, a), _ = Math.round(
10436
+ var u = Ol(e, o, s), f = zl(e, o, u, s, a), _ = Math.round(
10437
10437
  1 + (u.upperLongitude - u.lowerLongitude) / u.longitudeInterval
10438
10438
  ), v = Math.round(
10439
10439
  1 + (u.upperLatitude - u.lowerLatitude) / u.latitudeInterval
@@ -10443,19 +10443,19 @@ function Cl(e, i, s, a) {
10443
10443
  del: [si(u.longitudeInterval), si(u.latitudeInterval)],
10444
10444
  lim: [_, v],
10445
10445
  count: u.gridNodeCount,
10446
- cvs: Il(f)
10446
+ cvs: Nl(f)
10447
10447
  });
10448
10448
  var m = 16;
10449
10449
  a === !1 && (m = 8), o += 176 + u.gridNodeCount * m;
10450
10450
  }
10451
10451
  return h;
10452
10452
  }
10453
- function Il(e) {
10453
+ function Nl(e) {
10454
10454
  return e.map(function(i) {
10455
10455
  return [si(i.longitudeShift), si(i.latitudeShift)];
10456
10456
  });
10457
10457
  }
10458
- function Gl(e, i, s) {
10458
+ function Ol(e, i, s) {
10459
10459
  return {
10460
10460
  name: Qs(e, i + 8, i + 16).trim(),
10461
10461
  parent: Qs(e, i + 24, i + 24 + 8).trim(),
@@ -10468,7 +10468,7 @@ function Gl(e, i, s) {
10468
10468
  gridNodeCount: e.getInt32(i + 168, s)
10469
10469
  };
10470
10470
  }
10471
- function Nl(e, i, s, a, o) {
10471
+ function zl(e, i, s, a, o) {
10472
10472
  var h = i + 176, l = 16;
10473
10473
  o === !1 && (l = 8);
10474
10474
  for (var u = [], f = 0; f < s.gridNodeCount; f++) {
@@ -10487,7 +10487,7 @@ function Nt(e, i) {
10487
10487
  if (_)
10488
10488
  throw _;
10489
10489
  };
10490
- var s = rl(e);
10490
+ var s = hl(e);
10491
10491
  if (typeof s != "object") {
10492
10492
  i("Could not parse to valid json: " + e);
10493
10493
  return;
@@ -10502,7 +10502,7 @@ function Nt(e, i) {
10502
10502
  o && (s.datum_params = s.datum_params || (o.towgs84 ? o.towgs84.split(",") : null), s.ellps = o.ellipse, s.datumName = o.datumName ? o.datumName : s.datumCode);
10503
10503
  }
10504
10504
  s.k0 = s.k0 || 1, s.axis = s.axis || "enu", s.ellps = s.ellps || "wgs84", s.lat1 = s.lat1 || s.lat0;
10505
- var h = Ml(s.a, s.b, s.rf, s.ellps, s.sphere), l = yl(h.a, h.b, h.rf, s.R_A), u = El(s.nadgrids), f = s.datum || xl(
10505
+ var h = xl(s.a, s.b, s.rf, s.ellps, s.sphere), l = wl(h.a, h.b, h.rf, s.R_A), u = Tl(s.nadgrids), f = s.datum || bl(
10506
10506
  s.datumCode,
10507
10507
  s.datum_params,
10508
10508
  h.a,
@@ -10513,21 +10513,21 @@ function Nt(e, i) {
10513
10513
  );
10514
10514
  Wa(this, s), Wa(this, a), this.a = h.a, this.b = h.b, this.rf = h.rf, this.sphere = h.sphere, this.es = l.es, this.e = l.e, this.ep2 = l.ep2, this.datum = f, "init" in this && typeof this.init == "function" && this.init(), i(null, this);
10515
10515
  }
10516
- Nt.projections = pl;
10516
+ Nt.projections = yl;
10517
10517
  Nt.projections.start();
10518
- function Ol(e, i) {
10518
+ function Rl(e, i) {
10519
10519
  return e.datum_type !== i.datum_type || e.a !== i.a || Math.abs(e.es - i.es) > 5e-11 ? !1 : e.datum_type === _i ? e.datum_params[0] === i.datum_params[0] && e.datum_params[1] === i.datum_params[1] && e.datum_params[2] === i.datum_params[2] : e.datum_type === mi ? e.datum_params[0] === i.datum_params[0] && e.datum_params[1] === i.datum_params[1] && e.datum_params[2] === i.datum_params[2] && e.datum_params[3] === i.datum_params[3] && e.datum_params[4] === i.datum_params[4] && e.datum_params[5] === i.datum_params[5] && e.datum_params[6] === i.datum_params[6] : !0;
10520
10520
  }
10521
10521
  function xr(e, i, s) {
10522
10522
  var a = e.x, o = e.y, h = e.z ? e.z : 0, l, u, f, _;
10523
- if (o < -A && o > -1.001 * A)
10524
- o = -A;
10525
- else if (o > A && o < 1.001 * A)
10526
- o = A;
10523
+ if (o < -T && o > -1.001 * T)
10524
+ o = -T;
10525
+ else if (o > T && o < 1.001 * T)
10526
+ o = T;
10527
10527
  else {
10528
- if (o < -A)
10528
+ if (o < -T)
10529
10529
  return { x: -1 / 0, y: -1 / 0, z: e.z };
10530
- if (o > A)
10530
+ if (o > T)
10531
10531
  return { x: 1 / 0, y: 1 / 0, z: e.z };
10532
10532
  }
10533
10533
  return a > Math.PI && (a -= 2 * Math.PI), u = Math.sin(o), _ = Math.cos(o), f = u * u, l = s / Math.sqrt(1 - i * f), {
@@ -10540,7 +10540,7 @@ function Pr(e, i, s, a) {
10540
10540
  var o = 1e-12, h = o * o, l = 30, u, f, _, v, m, p, M, w, x, S, E, C, G, z = e.x, B = e.y, D = e.z ? e.z : 0, W, et, Z;
10541
10541
  if (u = Math.sqrt(z * z + B * B), f = Math.sqrt(z * z + B * B + D * D), u / s < o) {
10542
10542
  if (W = 0, f / s < o)
10543
- return et = A, Z = -a, {
10543
+ return et = T, Z = -a, {
10544
10544
  x: e.x,
10545
10545
  y: e.y,
10546
10546
  z: e.z
@@ -10557,7 +10557,7 @@ function Pr(e, i, s, a) {
10557
10557
  z: Z
10558
10558
  };
10559
10559
  }
10560
- function zl(e, i, s) {
10560
+ function Bl(e, i, s) {
10561
10561
  if (i === _i)
10562
10562
  return {
10563
10563
  x: e.x + s[0],
@@ -10573,7 +10573,7 @@ function zl(e, i, s) {
10573
10573
  };
10574
10574
  }
10575
10575
  }
10576
- function Rl(e, i, s) {
10576
+ function kl(e, i, s) {
10577
10577
  if (i === _i)
10578
10578
  return {
10579
10579
  x: e.x - s[0],
@@ -10592,8 +10592,8 @@ function Rl(e, i, s) {
10592
10592
  function He(e) {
10593
10593
  return e === _i || e === mi;
10594
10594
  }
10595
- function Bl(e, i, s) {
10596
- if (Ol(e, i) || e.datum_type === $s || i.datum_type === $s)
10595
+ function Dl(e, i, s) {
10596
+ if (Rl(e, i) || e.datum_type === $s || i.datum_type === $s)
10597
10597
  return s;
10598
10598
  var a = e.a, o = e.es;
10599
10599
  if (e.datum_type === Gi) {
@@ -10603,9 +10603,9 @@ function Bl(e, i, s) {
10603
10603
  a = Da, o = Za;
10604
10604
  }
10605
10605
  var l = i.a, u = i.b, f = i.es;
10606
- if (i.datum_type === Gi && (l = Da, u = Rh, f = Za), o === f && a === l && !He(e.datum_type) && !He(i.datum_type))
10606
+ if (i.datum_type === Gi && (l = Da, u = kh, f = Za), o === f && a === l && !He(e.datum_type) && !He(i.datum_type))
10607
10607
  return s;
10608
- if (s = xr(s, o, a), He(e.datum_type) && (s = zl(s, e.datum_type, e.datum_params)), He(i.datum_type) && (s = Rl(s, i.datum_type, i.datum_params)), s = Pr(s, f, l, u), i.datum_type === Gi) {
10608
+ if (s = xr(s, o, a), He(e.datum_type) && (s = Bl(s, e.datum_type, e.datum_params)), He(i.datum_type) && (s = kl(s, i.datum_type, i.datum_params)), s = Pr(s, f, l, u), i.datum_type === Gi) {
10609
10609
  var _ = Va(i, !0, s);
10610
10610
  if (_ !== 0)
10611
10611
  return;
@@ -10630,13 +10630,13 @@ function Va(e, i, s) {
10630
10630
  }
10631
10631
  for (var f = u.grid.subgrids, _ = 0, v = f.length; _ < v; _++) {
10632
10632
  var m = f[_], p = (Math.abs(m.del[1]) + Math.abs(m.del[0])) / 1e4, M = m.ll[0] - p, w = m.ll[1] - p, x = m.ll[0] + (m.lim[0] - 1) * m.del[0] + p, S = m.ll[1] + (m.lim[1] - 1) * m.del[1] + p;
10633
- if (!(w > a.y || M > a.x || S < a.y || x < a.x) && (o = kl(a, i, m), !isNaN(o.x)))
10633
+ if (!(w > a.y || M > a.x || S < a.y || x < a.x) && (o = Zl(a, i, m), !isNaN(o.x)))
10634
10634
  break t;
10635
10635
  }
10636
10636
  }
10637
10637
  return isNaN(o.x) ? (console.log("Failed to find a grid shift table for location '" + -a.x * Et + " " + a.y * Et + " tried: '" + h + "'"), -1) : (s.x = -o.x, s.y = o.y, 0);
10638
10638
  }
10639
- function kl(e, i, s) {
10639
+ function Zl(e, i, s) {
10640
10640
  var a = { x: Number.NaN, y: Number.NaN };
10641
10641
  if (isNaN(e.x))
10642
10642
  return a;
@@ -10711,7 +10711,7 @@ function br(e) {
10711
10711
  };
10712
10712
  return e.length > 2 && (i.z = e[2]), e.length > 3 && (i.m = e[3]), i;
10713
10713
  }
10714
- function Dl(e) {
10714
+ function Fl(e) {
10715
10715
  Ja(e.x), Ja(e.y);
10716
10716
  }
10717
10717
  function Ja(e) {
@@ -10723,7 +10723,7 @@ function Ja(e) {
10723
10723
  if (typeof e != "number" || e !== e || !isFinite(e))
10724
10724
  throw new TypeError("coordinates must be finite numbers");
10725
10725
  }
10726
- function Zl(e, i) {
10726
+ function Ul(e, i) {
10727
10727
  return (e.datum.datum_type === _i || e.datum.datum_type === mi || e.datum.datum_type === Gi) && i.datumCode !== "WGS84" || (i.datum.datum_type === _i || i.datum.datum_type === mi || i.datum.datum_type === Gi) && e.datumCode !== "WGS84";
10728
10728
  }
10729
10729
  function es(e, i, s, a) {
@@ -10735,7 +10735,7 @@ function es(e, i, s, a) {
10735
10735
  m: s.m
10736
10736
  };
10737
10737
  var h = s.z !== void 0;
10738
- if (Dl(s), e.datum && i.datum && Zl(e, i) && (o = new Nt("WGS84"), s = es(e, o, s, a), e = o), a && e.axis !== "enu" && (s = $a(e, !1, s)), e.projName === "longlat")
10738
+ if (Fl(s), e.datum && i.datum && Ul(e, i) && (o = new Nt("WGS84"), s = es(e, o, s, a), e = o), a && e.axis !== "enu" && (s = $a(e, !1, s)), e.projName === "longlat")
10739
10739
  s = {
10740
10740
  x: s.x * ot,
10741
10741
  y: s.y * ot,
@@ -10747,7 +10747,7 @@ function es(e, i, s, a) {
10747
10747
  z: s.z || 0
10748
10748
  }), s = e.inverse(s), !s)
10749
10749
  return;
10750
- if (e.from_greenwich && (s.x += e.from_greenwich), s = Bl(e.datum, i.datum, s), !!s)
10750
+ if (e.from_greenwich && (s.x += e.from_greenwich), s = Dl(e.datum, i.datum, s), !!s)
10751
10751
  return s = /** @type {import('./core').InterfaceCoordinates} */
10752
10752
  s, i.from_greenwich && (s = {
10753
10753
  x: s.x - i.from_greenwich,
@@ -10794,7 +10794,7 @@ function We(e) {
10794
10794
  e
10795
10795
  );
10796
10796
  }
10797
- function Fl(e, i, s) {
10797
+ function ql(e, i, s) {
10798
10798
  var a, o, h = !1, l;
10799
10799
  return typeof i > "u" ? (o = We(e), a = Qa, h = !0) : (typeof /** @type {?} */
10800
10800
  i.x < "u" || Array.isArray(i)) && (s = /** @type {T} */
@@ -10824,22 +10824,22 @@ function Fl(e, i, s) {
10824
10824
  }, h && (l.oProj = o), l);
10825
10825
  }
10826
10826
  var tr = 6, Sr = "AJSAJS", Er = "AFAFAF", Ci = 65, bt = 73, Gt = 79, re = 86, oe = 90;
10827
- const Ul = {
10828
- forward: Tr,
10829
- inverse: ql,
10830
- toPoint: Ar
10827
+ const jl = {
10828
+ forward: Ar,
10829
+ inverse: Hl,
10830
+ toPoint: Tr
10831
10831
  };
10832
- function Tr(e, i) {
10833
- return i = i || 5, Wl(jl({
10832
+ function Ar(e, i) {
10833
+ return i = i || 5, Yl(Wl({
10834
10834
  lat: e[1],
10835
10835
  lon: e[0]
10836
10836
  }), i);
10837
10837
  }
10838
- function ql(e) {
10838
+ function Hl(e) {
10839
10839
  var i = hn(Cr(e.toUpperCase()));
10840
10840
  return i.lat && i.lon ? [i.lon, i.lat, i.lon, i.lat] : [i.left, i.bottom, i.right, i.top];
10841
10841
  }
10842
- function Ar(e) {
10842
+ function Tr(e) {
10843
10843
  var i = hn(Cr(e.toUpperCase()));
10844
10844
  return i.lat && i.lon ? [i.lon, i.lat] : [(i.left + i.right) / 2, (i.top + i.bottom) / 2];
10845
10845
  }
@@ -10849,7 +10849,7 @@ function Ys(e) {
10849
10849
  function ir(e) {
10850
10850
  return 180 * (e / Math.PI);
10851
10851
  }
10852
- function jl(e) {
10852
+ function Wl(e) {
10853
10853
  var i = e.lat, s = e.lon, a = 6378137, o = 669438e-8, h = 0.9996, l, u, f, _, v, m, p, M = Ys(i), w = Ys(s), x, S;
10854
10854
  S = Math.floor((s + 180) / 6) + 1, s === 180 && (S = 60), i >= 56 && i < 64 && s >= 3 && s < 12 && (S = 32), i >= 72 && i < 84 && (s >= 0 && s < 9 ? S = 31 : s >= 9 && s < 21 ? S = 33 : s >= 21 && s < 33 ? S = 35 : s >= 33 && s < 42 && (S = 37)), l = (S - 1) * 6 - 180 + 3, x = Ys(l), u = o / (1 - o), f = a / Math.sqrt(1 - o * Math.sin(M) * Math.sin(M)), _ = Math.tan(M) * Math.tan(M), v = u * Math.cos(M) * Math.cos(M), m = Math.cos(M) * (w - x), p = a * ((1 - o / 4 - 3 * o * o / 64 - 5 * o * o * o / 256) * M - (3 * o / 8 + 3 * o * o / 32 + 45 * o * o * o / 1024) * Math.sin(2 * M) + (15 * o * o / 256 + 45 * o * o * o / 1024) * Math.sin(4 * M) - 35 * o * o * o / 3072 * Math.sin(6 * M));
10855
10855
  var E = h * f * (m + (1 - _ + v) * m * m * m / 6 + (5 - 18 * _ + _ * _ + 72 * v - 58 * u) * m * m * m * m * m / 120) + 5e5, C = h * (p + f * Math.tan(M) * (m * m / 2 + (5 - _ + 9 * v + 4 * v * v) * m * m * m * m / 24 + (61 - 58 * _ + _ * _ + 600 * v - 330 * u) * m * m * m * m * m * m / 720));
@@ -10857,7 +10857,7 @@ function jl(e) {
10857
10857
  northing: Math.round(C),
10858
10858
  easting: Math.round(E),
10859
10859
  zoneNumber: S,
10860
- zoneLetter: Hl(i)
10860
+ zoneLetter: Xl(i)
10861
10861
  };
10862
10862
  }
10863
10863
  function hn(e) {
@@ -10891,23 +10891,23 @@ function hn(e) {
10891
10891
  };
10892
10892
  return W;
10893
10893
  }
10894
- function Hl(e) {
10894
+ function Xl(e) {
10895
10895
  var i = "Z";
10896
10896
  return 84 >= e && e >= 72 ? i = "X" : 72 > e && e >= 64 ? i = "W" : 64 > e && e >= 56 ? i = "V" : 56 > e && e >= 48 ? i = "U" : 48 > e && e >= 40 ? i = "T" : 40 > e && e >= 32 ? i = "S" : 32 > e && e >= 24 ? i = "R" : 24 > e && e >= 16 ? i = "Q" : 16 > e && e >= 8 ? i = "P" : 8 > e && e >= 0 ? i = "N" : 0 > e && e >= -8 ? i = "M" : -8 > e && e >= -16 ? i = "L" : -16 > e && e >= -24 ? i = "K" : -24 > e && e >= -32 ? i = "J" : -32 > e && e >= -40 ? i = "H" : -40 > e && e >= -48 ? i = "G" : -48 > e && e >= -56 ? i = "F" : -56 > e && e >= -64 ? i = "E" : -64 > e && e >= -72 ? i = "D" : -72 > e && e >= -80 && (i = "C"), i;
10897
10897
  }
10898
- function Wl(e, i) {
10898
+ function Yl(e, i) {
10899
10899
  var s = "00000" + e.easting, a = "00000" + e.northing;
10900
- return e.zoneNumber + e.zoneLetter + Xl(e.easting, e.northing, e.zoneNumber) + s.substr(s.length - 5, i) + a.substr(a.length - 5, i);
10900
+ return e.zoneNumber + e.zoneLetter + Vl(e.easting, e.northing, e.zoneNumber) + s.substr(s.length - 5, i) + a.substr(a.length - 5, i);
10901
10901
  }
10902
- function Xl(e, i, s) {
10902
+ function Vl(e, i, s) {
10903
10903
  var a = Lr(s), o = Math.floor(e / 1e5), h = Math.floor(i / 1e5) % 20;
10904
- return Yl(o, h, a);
10904
+ return Kl(o, h, a);
10905
10905
  }
10906
10906
  function Lr(e) {
10907
10907
  var i = e % tr;
10908
10908
  return i === 0 && (i = tr), i;
10909
10909
  }
10910
- function Yl(e, i, s) {
10910
+ function Kl(e, i, s) {
10911
10911
  var a = s - 1, o = Sr.charCodeAt(a), h = Er.charCodeAt(a), l = o + e - 1, u = h + i, f = !1;
10912
10912
  l > oe && (l = l - oe + Ci - 1, f = !0), (l === bt || o < bt && l > bt || (l > bt || o < bt) && f) && l++, (l === Gt || o < Gt && l > Gt || (l > Gt || o < Gt) && f) && (l++, l === bt && l++), l > oe && (l = l - oe + Ci - 1), u > re ? (u = u - re + Ci - 1, f = !0) : f = !1, (u === bt || h < bt && u > bt || (u > bt || h < bt) && f) && u++, (u === Gt || h < Gt && u > Gt || (u > Gt || h < Gt) && f) && (u++, u === bt && u++), u > re && (u = u - re + Ci - 1);
10913
10913
  var _ = String.fromCharCode(l) + String.fromCharCode(u);
@@ -10928,7 +10928,7 @@ function Cr(e) {
10928
10928
  if (u <= "A" || u === "B" || u === "Y" || u >= "Z" || u === "I" || u === "O")
10929
10929
  throw "MGRSPoint zone letter " + u + " not handled: " + e;
10930
10930
  s = e.substring(h, h += 2);
10931
- for (var f = Lr(l), _ = Vl(s.charAt(0), f), v = Kl(s.charAt(1), f); v < $l(u); )
10931
+ for (var f = Lr(l), _ = $l(s.charAt(0), f), v = Jl(s.charAt(1), f); v < Ql(u); )
10932
10932
  v += 2e6;
10933
10933
  var m = i - h;
10934
10934
  if (m % 2 !== 0)
@@ -10945,7 +10945,7 @@ northing meters` + e;
10945
10945
  accuracy: x
10946
10946
  };
10947
10947
  }
10948
- function Vl(e, i) {
10948
+ function $l(e, i) {
10949
10949
  for (var s = Sr.charCodeAt(i - 1), a = 1e5, o = !1; s !== e.charCodeAt(0); ) {
10950
10950
  if (s++, s === bt && s++, s === Gt && s++, s > oe) {
10951
10951
  if (o)
@@ -10956,7 +10956,7 @@ function Vl(e, i) {
10956
10956
  }
10957
10957
  return a;
10958
10958
  }
10959
- function Kl(e, i) {
10959
+ function Jl(e, i) {
10960
10960
  if (e > "V")
10961
10961
  throw "MGRSPoint given invalid Northing " + e;
10962
10962
  for (var s = Er.charCodeAt(i - 1), a = 0, o = !1; s !== e.charCodeAt(0); ) {
@@ -10969,7 +10969,7 @@ function Kl(e, i) {
10969
10969
  }
10970
10970
  return a;
10971
10971
  }
10972
- function $l(e) {
10972
+ function Ql(e) {
10973
10973
  var i;
10974
10974
  switch (e) {
10975
10975
  case "C":
@@ -11054,34 +11054,34 @@ function zi(e, i, s) {
11054
11054
  console.warn("proj4.Point will be removed in version 3, use proj4.toPoint");
11055
11055
  }
11056
11056
  zi.fromMGRS = function(e) {
11057
- return new zi(Ar(e));
11057
+ return new zi(Tr(e));
11058
11058
  };
11059
11059
  zi.prototype.toMGRS = function(e) {
11060
- return Tr([this.x, this.y], e);
11060
+ return Ar([this.x, this.y], e);
11061
11061
  };
11062
- var Jl = 1, Ql = 0.25, er = 0.046875, sr = 0.01953125, nr = 0.01068115234375, tu = 0.75, iu = 0.46875, eu = 0.013020833333333334, su = 0.007120768229166667, nu = 0.3645833333333333, au = 0.005696614583333333, ru = 0.3076171875;
11062
+ var tu = 1, iu = 0.25, er = 0.046875, sr = 0.01953125, nr = 0.01068115234375, eu = 0.75, su = 0.46875, nu = 0.013020833333333334, au = 0.007120768229166667, ru = 0.3645833333333333, ou = 0.005696614583333333, hu = 0.3076171875;
11063
11063
  function ln(e) {
11064
11064
  var i = [];
11065
- i[0] = Jl - e * (Ql + e * (er + e * (sr + e * nr))), i[1] = e * (tu - e * (er + e * (sr + e * nr)));
11065
+ i[0] = tu - e * (iu + e * (er + e * (sr + e * nr))), i[1] = e * (eu - e * (er + e * (sr + e * nr)));
11066
11066
  var s = e * e;
11067
- return i[2] = s * (iu - e * (eu + e * su)), s *= e, i[3] = s * (nu - e * au), i[4] = s * e * ru, i;
11067
+ return i[2] = s * (su - e * (nu + e * au)), s *= e, i[3] = s * (ru - e * ou), i[4] = s * e * hu, i;
11068
11068
  }
11069
11069
  function Ri(e, i, s, a) {
11070
11070
  return s *= i, i *= i, a[0] * e - s * (a[1] + i * (a[2] + i * (a[3] + i * a[4])));
11071
11071
  }
11072
- var ou = 20;
11072
+ var lu = 20;
11073
11073
  function un(e, i, s) {
11074
- for (var a = 1 / (1 - i), o = e, h = ou; h; --h) {
11074
+ for (var a = 1 / (1 - i), o = e, h = lu; h; --h) {
11075
11075
  var l = Math.sin(o), u = 1 - i * l * l;
11076
11076
  if (u = (Ri(o, l, Math.cos(o), s) - e) * (u * Math.sqrt(u)) * a, o -= u, Math.abs(u) < I)
11077
11077
  return o;
11078
11078
  }
11079
11079
  return o;
11080
11080
  }
11081
- function hu() {
11081
+ function uu() {
11082
11082
  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 = ln(this.es), this.ml0 = Ri(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
11083
11083
  }
11084
- function lu(e) {
11084
+ function cu(e) {
11085
11085
  var i = e.x, s = e.y, a = N(i - this.long0, this.over), o, h, l, u = Math.sin(s), f = Math.cos(s);
11086
11086
  if (this.es) {
11087
11087
  var v = f * a, m = Math.pow(v, 2), p = this.ep2 * Math.pow(f, 2), M = Math.pow(p, 2), w = Math.abs(f) > I ? Math.tan(s) : 0, x = Math.pow(w, 2), S = Math.pow(x, 2);
@@ -11102,28 +11102,28 @@ function lu(e) {
11102
11102
  }
11103
11103
  return e.x = h, e.y = l, e;
11104
11104
  }
11105
- function uu(e) {
11105
+ function fu(e) {
11106
11106
  var i, s, a, o, h = (e.x - this.x0) * (1 / this.a), l = (e.y - this.y0) * (1 / this.a);
11107
11107
  if (this.es)
11108
- if (i = this.ml0 + l / this.k0, s = un(i, this.es, this.en), Math.abs(s) < A) {
11108
+ if (i = this.ml0 + l / this.k0, s = un(i, this.es, this.en), Math.abs(s) < T) {
11109
11109
  var m = Math.sin(s), p = Math.cos(s), M = Math.abs(p) > I ? Math.tan(s) : 0, w = this.ep2 * Math.pow(p, 2), x = Math.pow(w, 2), S = Math.pow(M, 2), E = Math.pow(S, 2);
11110
11110
  i = 1 - this.es * Math.pow(m, 2);
11111
11111
  var C = h * Math.sqrt(i) / this.k0, G = Math.pow(C, 2);
11112
11112
  i = i * M, a = s - i * G / (1 - this.es) * 0.5 * (1 - G / 12 * (5 + 3 * S - 9 * w * S + w - 4 * x - G / 30 * (61 + 90 * S - 252 * w * S + 45 * E + 46 * w - G / 56 * (1385 + 3633 * S + 4095 * E + 1574 * E * S)))), o = N(this.long0 + C * (1 - G / 6 * (1 + 2 * S + w - G / 20 * (5 + 28 * S + 24 * E + 8 * w * S + 6 * w - G / 42 * (61 + 662 * S + 1320 * E + 720 * E * S)))) / p, this.over);
11113
11113
  } else
11114
- a = A * ye(l), o = 0;
11114
+ a = T * ye(l), o = 0;
11115
11115
  else {
11116
11116
  var u = Math.exp(h / this.k0), f = 0.5 * (u - 1 / u), _ = this.lat0 + l / this.k0, v = Math.cos(_);
11117
11117
  i = Math.sqrt((1 - Math.pow(v, 2)) / (1 + Math.pow(f, 2))), a = Math.asin(i), l < 0 && (a = -a), f === 0 && v === 0 ? o = 0 : o = N(Math.atan2(f, v) + this.long0, this.over);
11118
11118
  }
11119
11119
  return e.x = o, e.y = a, e;
11120
11120
  }
11121
- var cu = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
11121
+ var du = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
11122
11122
  const Ke = {
11123
- init: hu,
11124
- forward: lu,
11125
- inverse: uu,
11126
- names: cu
11123
+ init: uu,
11124
+ forward: cu,
11125
+ inverse: fu,
11126
+ names: du
11127
11127
  };
11128
11128
  function Ir(e) {
11129
11129
  var i = Math.exp(e);
@@ -11134,53 +11134,53 @@ function St(e, i) {
11134
11134
  var s = Math.max(e, i), a = Math.min(e, i) / (s || 1);
11135
11135
  return s * Math.sqrt(1 + Math.pow(a, 2));
11136
11136
  }
11137
- function fu(e) {
11137
+ function _u(e) {
11138
11138
  var i = 1 + e, s = i - 1;
11139
11139
  return s === 0 ? e : e * Math.log(i) / s;
11140
11140
  }
11141
- function du(e) {
11141
+ function mu(e) {
11142
11142
  var i = Math.abs(e);
11143
- return i = fu(i * (1 + i / (St(1, i) + 1))), e < 0 ? -i : i;
11143
+ return i = _u(i * (1 + i / (St(1, i) + 1))), e < 0 ? -i : i;
11144
11144
  }
11145
11145
  function cn(e, i) {
11146
11146
  for (var s = 2 * Math.cos(2 * i), a = e.length - 1, o = e[a], h = 0, l; --a >= 0; )
11147
11147
  l = -h + s * o + e[a], h = o, o = l;
11148
11148
  return i + l * Math.sin(2 * i);
11149
11149
  }
11150
- function _u(e, i) {
11150
+ function gu(e, i) {
11151
11151
  for (var s = 2 * Math.cos(i), a = e.length - 1, o = e[a], h = 0, l; --a >= 0; )
11152
11152
  l = -h + s * o + e[a], h = o, o = l;
11153
11153
  return Math.sin(i) * l;
11154
11154
  }
11155
- function mu(e) {
11155
+ function pu(e) {
11156
11156
  var i = Math.exp(e);
11157
11157
  return i = (i + 1 / i) / 2, i;
11158
11158
  }
11159
11159
  function Gr(e, i, s) {
11160
- for (var a = Math.sin(i), o = Math.cos(i), h = Ir(s), l = mu(s), u = 2 * o * l, f = -2 * a * h, _ = e.length - 1, v = e[_], m = 0, p = 0, M = 0, w, x; --_ >= 0; )
11160
+ for (var a = Math.sin(i), o = Math.cos(i), h = Ir(s), l = pu(s), u = 2 * o * l, f = -2 * a * h, _ = e.length - 1, v = e[_], m = 0, p = 0, M = 0, w, x; --_ >= 0; )
11161
11161
  w = p, x = m, p = v, m = M, v = -w + u * p - f * m + e[_], M = -x + f * p + u * m;
11162
11162
  return u = a * l, f = o * h, [u * v - f * M, u * M + f * v];
11163
11163
  }
11164
- function gu() {
11164
+ function vu() {
11165
11165
  if (!this.approx && (isNaN(this.es) || this.es <= 0))
11166
11166
  throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
11167
11167
  this.approx && (Ke.init.apply(this), this.forward = Ke.forward, this.inverse = Ke.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 = [];
11168
11168
  var e = this.es / (1 + Math.sqrt(1 - this.es)), i = e / (2 - e), s = i;
11169
11169
  this.cgb[0] = i * (2 + i * (-2 / 3 + i * (-2 + i * (116 / 45 + i * (26 / 45 + i * (-2854 / 675)))))), this.cbg[0] = i * (-2 + i * (2 / 3 + i * (4 / 3 + i * (-82 / 45 + i * (32 / 45 + i * (4642 / 4725)))))), s = s * i, this.cgb[1] = s * (7 / 3 + i * (-8 / 5 + i * (-227 / 45 + i * (2704 / 315 + i * (2323 / 945))))), this.cbg[1] = s * (5 / 3 + i * (-16 / 15 + i * (-13 / 9 + i * (904 / 315 + i * (-1522 / 945))))), s = s * i, this.cgb[2] = s * (56 / 15 + i * (-136 / 35 + i * (-1262 / 105 + i * (73814 / 2835)))), this.cbg[2] = s * (-26 / 15 + i * (34 / 21 + i * (8 / 5 + i * (-12686 / 2835)))), s = s * i, this.cgb[3] = s * (4279 / 630 + i * (-332 / 35 + i * (-399572 / 14175))), this.cbg[3] = s * (1237 / 630 + i * (-12 / 5 + i * (-24832 / 14175))), s = s * i, this.cgb[4] = s * (4174 / 315 + i * (-144838 / 6237)), this.cbg[4] = s * (-734 / 315 + i * (109598 / 31185)), s = s * i, this.cgb[5] = s * (601676 / 22275), this.cbg[5] = s * (444337 / 155925), s = Math.pow(i, 2), this.Qn = this.k0 / (1 + i) * (1 + s * (1 / 4 + s * (1 / 64 + s / 256))), this.utg[0] = i * (-0.5 + i * (2 / 3 + i * (-37 / 96 + i * (1 / 360 + i * (81 / 512 + i * (-96199 / 604800)))))), this.gtu[0] = i * (0.5 + i * (-2 / 3 + i * (5 / 16 + i * (41 / 180 + i * (-127 / 288 + i * (7891 / 37800)))))), this.utg[1] = s * (-1 / 48 + i * (-1 / 15 + i * (437 / 1440 + i * (-46 / 105 + i * (1118711 / 3870720))))), this.gtu[1] = s * (13 / 48 + i * (-3 / 5 + i * (557 / 1440 + i * (281 / 630 + i * (-1983433 / 1935360))))), s = s * i, this.utg[2] = s * (-17 / 480 + i * (37 / 840 + i * (209 / 4480 + i * (-5569 / 90720)))), this.gtu[2] = s * (61 / 240 + i * (-103 / 140 + i * (15061 / 26880 + i * (167603 / 181440)))), s = s * i, this.utg[3] = s * (-4397 / 161280 + i * (11 / 504 + i * (830251 / 7257600))), this.gtu[3] = s * (49561 / 161280 + i * (-179 / 168 + i * (6601661 / 7257600))), s = s * i, this.utg[4] = s * (-4583 / 161280 + i * (108847 / 3991680)), this.gtu[4] = s * (34729 / 80640 + i * (-3418889 / 1995840)), s = s * i, this.utg[5] = s * (-20648693 / 638668800), this.gtu[5] = s * (212378941 / 319334400);
11170
11170
  var a = cn(this.cbg, this.lat0);
11171
- this.Zb = -this.Qn * (a + _u(this.gtu, 2 * a));
11171
+ this.Zb = -this.Qn * (a + gu(this.gtu, 2 * a));
11172
11172
  }
11173
- function pu(e) {
11173
+ function yu(e) {
11174
11174
  var i = N(e.x - this.long0, this.over), s = e.y;
11175
11175
  s = cn(this.cbg, s);
11176
11176
  var a = Math.sin(s), o = Math.cos(s), h = Math.sin(i), l = Math.cos(i);
11177
- s = Math.atan2(a, l * o), i = Math.atan2(h * o, St(a, o * l)), i = du(Math.tan(i));
11177
+ s = Math.atan2(a, l * o), i = Math.atan2(h * o, St(a, o * l)), i = mu(Math.tan(i));
11178
11178
  var u = Gr(this.gtu, 2 * s, 2 * i);
11179
11179
  s = s + u[0], i = i + u[1];
11180
11180
  var f, _;
11181
11181
  return Math.abs(i) <= 2.623395162778 ? (f = this.a * (this.Qn * i) + this.x0, _ = this.a * (this.Qn * s + this.Zb) + this.y0) : (f = 1 / 0, _ = 1 / 0), e.x = f, e.y = _, e;
11182
11182
  }
11183
- function vu(e) {
11183
+ function Mu(e) {
11184
11184
  var i = (e.x - this.x0) * (1 / this.a), s = (e.y - this.y0) * (1 / this.a);
11185
11185
  s = (s - this.Zb) / this.Qn, i = i / this.Qn;
11186
11186
  var a, o;
@@ -11193,14 +11193,14 @@ function vu(e) {
11193
11193
  a = 1 / 0, o = 1 / 0;
11194
11194
  return e.x = a, e.y = o, e;
11195
11195
  }
11196
- var yu = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
11196
+ var wu = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
11197
11197
  const $e = {
11198
- init: gu,
11199
- forward: pu,
11200
- inverse: vu,
11201
- names: yu
11198
+ init: vu,
11199
+ forward: yu,
11200
+ inverse: Mu,
11201
+ names: wu
11202
11202
  };
11203
- function Mu(e, i) {
11203
+ function xu(e, i) {
11204
11204
  if (e === void 0) {
11205
11205
  if (e = Math.floor((N(i) + Math.PI) * 30 / Math.PI) + 1, e < 0)
11206
11206
  return 0;
@@ -11209,49 +11209,49 @@ function Mu(e, i) {
11209
11209
  }
11210
11210
  return e;
11211
11211
  }
11212
- var wu = "etmerc";
11213
- function xu() {
11214
- var e = Mu(this.zone, this.long0);
11212
+ var Pu = "etmerc";
11213
+ function bu() {
11214
+ var e = xu(this.zone, this.long0);
11215
11215
  if (e === void 0)
11216
11216
  throw new Error("unknown utm zone");
11217
11217
  this.lat0 = 0, this.long0 = (6 * Math.abs(e) - 183) * ot, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, $e.init.apply(this), this.forward = $e.forward, this.inverse = $e.inverse;
11218
11218
  }
11219
- var Pu = ["Universal Transverse Mercator System", "utm"];
11220
- const bu = {
11221
- init: xu,
11222
- names: Pu,
11223
- dependsOn: wu
11219
+ var Su = ["Universal Transverse Mercator System", "utm"];
11220
+ const Eu = {
11221
+ init: bu,
11222
+ names: Su,
11223
+ dependsOn: Pu
11224
11224
  };
11225
11225
  function fn(e, i) {
11226
11226
  return Math.pow((1 - e) / (1 + e), i);
11227
11227
  }
11228
- var Su = 20;
11229
- function Eu() {
11228
+ var Au = 20;
11229
+ function Tu() {
11230
11230
  var e = Math.sin(this.lat0), i = Math.cos(this.lat0);
11231
11231
  i *= i, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * e * e), this.C = Math.sqrt(1 + this.es * i * i / (1 - this.es)), this.phic0 = Math.asin(e / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + J) / (Math.pow(Math.tan(0.5 * this.lat0 + J), this.C) * fn(this.e * e, this.ratexp));
11232
11232
  }
11233
- function Tu(e) {
11233
+ function Lu(e) {
11234
11234
  var i = e.x, s = e.y;
11235
- return e.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * s + J), this.C) * fn(this.e * Math.sin(s), this.ratexp)) - A, e.x = this.C * i, e;
11235
+ return e.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * s + J), this.C) * fn(this.e * Math.sin(s), this.ratexp)) - T, e.x = this.C * i, e;
11236
11236
  }
11237
- function Au(e) {
11238
- for (var i = 1e-14, s = e.x / this.C, a = e.y, o = Math.pow(Math.tan(0.5 * a + J) / this.K, 1 / this.C), h = Su; h > 0 && (a = 2 * Math.atan(o * fn(this.e * Math.sin(e.y), -0.5 * this.e)) - A, !(Math.abs(a - e.y) < i)); --h)
11237
+ function Cu(e) {
11238
+ for (var i = 1e-14, s = e.x / this.C, a = e.y, o = Math.pow(Math.tan(0.5 * a + J) / this.K, 1 / this.C), h = Au; h > 0 && (a = 2 * Math.atan(o * fn(this.e * Math.sin(e.y), -0.5 * this.e)) - T, !(Math.abs(a - e.y) < i)); --h)
11239
11239
  e.y = a;
11240
11240
  return h ? (e.x = s, e.y = a, e) : null;
11241
11241
  }
11242
11242
  const dn = {
11243
- init: Eu,
11244
- forward: Tu,
11245
- inverse: Au
11243
+ init: Tu,
11244
+ forward: Lu,
11245
+ inverse: Cu
11246
11246
  };
11247
- function Lu() {
11247
+ function Iu() {
11248
11248
  dn.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"));
11249
11249
  }
11250
- function Cu(e) {
11250
+ function Gu(e) {
11251
11251
  var i, s, a, o;
11252
11252
  return e.x = N(e.x - this.long0, this.over), dn.forward.apply(this, [e]), i = Math.sin(e.y), s = Math.cos(e.y), a = Math.cos(e.x), o = this.k0 * this.R2 / (1 + this.sinc0 * i + this.cosc0 * s * a), e.x = o * s * Math.sin(e.x), e.y = o * (this.cosc0 * i - this.sinc0 * s * a), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
11253
11253
  }
11254
- function Iu(e) {
11254
+ function Nu(e) {
11255
11255
  var i, s, a, o, h;
11256
11256
  if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, e.x /= this.k0, e.y /= this.k0, h = St(e.x, e.y)) {
11257
11257
  var l = 2 * Math.atan2(h, this.R2);
@@ -11260,24 +11260,24 @@ function Iu(e) {
11260
11260
  o = this.phic0, a = 0;
11261
11261
  return e.x = a, e.y = o, dn.inverse.apply(this, [e]), e.x = N(e.x + this.long0, this.over), e;
11262
11262
  }
11263
- var Gu = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
11264
- const Nu = {
11265
- init: Lu,
11266
- forward: Cu,
11267
- inverse: Iu,
11268
- names: Gu
11263
+ var Ou = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
11264
+ const zu = {
11265
+ init: Iu,
11266
+ forward: Gu,
11267
+ inverse: Nu,
11268
+ names: Ou
11269
11269
  };
11270
11270
  function _n(e, i, s) {
11271
- return i *= s, Math.tan(0.5 * (A + e)) * Math.pow((1 - i) / (1 + i), 0.5 * s);
11271
+ return i *= s, Math.tan(0.5 * (T + e)) * Math.pow((1 - i) / (1 + i), 0.5 * s);
11272
11272
  }
11273
- function Ou() {
11274
- 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) <= I && (this.k0 = 0.5 * (1 + ye(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= I && (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) <= I && Math.abs(Math.cos(this.lat_ts)) > I && (this.k0 = 0.5 * this.cons * Ht(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / Dt(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = Ht(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(_n(this.lat0, this.sinlat0, this.e)) - A, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
11273
+ function Ru() {
11274
+ 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) <= I && (this.k0 = 0.5 * (1 + ye(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= I && (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) <= I && Math.abs(Math.cos(this.lat_ts)) > I && (this.k0 = 0.5 * this.cons * Ht(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / Dt(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = Ht(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(_n(this.lat0, this.sinlat0, this.e)) - T, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
11275
11275
  }
11276
- function zu(e) {
11276
+ function Bu(e) {
11277
11277
  var i = e.x, s = e.y, a = Math.sin(s), o = Math.cos(s), h, l, u, f, _, v, m = N(i - this.long0, this.over);
11278
- return Math.abs(Math.abs(i - this.long0) - Math.PI) <= I && Math.abs(s + this.lat0) <= I ? (e.x = NaN, e.y = NaN, e) : this.sphere ? (h = 2 * this.k0 / (1 + this.sinlat0 * a + this.coslat0 * o * Math.cos(m)), e.x = this.a * h * o * Math.sin(m) + this.x0, e.y = this.a * h * (this.coslat0 * a - this.sinlat0 * o * Math.cos(m)) + this.y0, e) : (l = 2 * Math.atan(_n(s, a, this.e)) - A, f = Math.cos(l), u = Math.sin(l), Math.abs(this.coslat0) <= I ? (_ = Dt(this.e, s * this.con, this.con * a), v = 2 * this.a * this.k0 * _ / this.cons, e.x = this.x0 + v * Math.sin(i - this.long0), e.y = this.y0 - this.con * v * Math.cos(i - this.long0), e) : (Math.abs(this.sinlat0) < I ? (h = 2 * this.a * this.k0 / (1 + f * Math.cos(m)), e.y = h * u) : (h = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * u + this.cosX0 * f * Math.cos(m))), e.y = h * (this.cosX0 * u - this.sinX0 * f * Math.cos(m)) + this.y0), e.x = h * f * Math.sin(m) + this.x0, e));
11278
+ return Math.abs(Math.abs(i - this.long0) - Math.PI) <= I && Math.abs(s + this.lat0) <= I ? (e.x = NaN, e.y = NaN, e) : this.sphere ? (h = 2 * this.k0 / (1 + this.sinlat0 * a + this.coslat0 * o * Math.cos(m)), e.x = this.a * h * o * Math.sin(m) + this.x0, e.y = this.a * h * (this.coslat0 * a - this.sinlat0 * o * Math.cos(m)) + this.y0, e) : (l = 2 * Math.atan(_n(s, a, this.e)) - T, f = Math.cos(l), u = Math.sin(l), Math.abs(this.coslat0) <= I ? (_ = Dt(this.e, s * this.con, this.con * a), v = 2 * this.a * this.k0 * _ / this.cons, e.x = this.x0 + v * Math.sin(i - this.long0), e.y = this.y0 - this.con * v * Math.cos(i - this.long0), e) : (Math.abs(this.sinlat0) < I ? (h = 2 * this.a * this.k0 / (1 + f * Math.cos(m)), e.y = h * u) : (h = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * u + this.cosX0 * f * Math.cos(m))), e.y = h * (this.cosX0 * u - this.sinX0 * f * Math.cos(m)) + this.y0), e.x = h * f * Math.sin(m) + this.x0, e));
11279
11279
  }
11280
- function Ru(e) {
11280
+ function ku(e) {
11281
11281
  e.x -= this.x0, e.y -= this.y0;
11282
11282
  var i, s, a, o, h, l = Math.sqrt(e.x * e.x + e.y * e.y);
11283
11283
  if (this.sphere) {
@@ -11288,18 +11288,18 @@ function Ru(e) {
11288
11288
  return s = this.lat0, i = this.long0, e.x = i, e.y = s, e;
11289
11289
  e.x *= this.con, e.y *= this.con, a = l * this.cons / (2 * this.a * this.k0), s = this.con * pe(this.e, a), i = this.con * N(this.con * this.long0 + Math.atan2(e.x, -1 * e.y), this.over);
11290
11290
  } else
11291
- o = 2 * Math.atan(l * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), i = this.long0, l <= I ? h = this.X0 : (h = Math.asin(Math.cos(o) * this.sinX0 + e.y * Math.sin(o) * this.cosX0 / l), i = N(this.long0 + Math.atan2(e.x * Math.sin(o), l * this.cosX0 * Math.cos(o) - e.y * this.sinX0 * Math.sin(o)), this.over)), s = -1 * pe(this.e, Math.tan(0.5 * (A + h)));
11291
+ o = 2 * Math.atan(l * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), i = this.long0, l <= I ? h = this.X0 : (h = Math.asin(Math.cos(o) * this.sinX0 + e.y * Math.sin(o) * this.cosX0 / l), i = N(this.long0 + Math.atan2(e.x * Math.sin(o), l * this.cosX0 * Math.cos(o) - e.y * this.sinX0 * Math.sin(o)), this.over)), s = -1 * pe(this.e, Math.tan(0.5 * (T + h)));
11292
11292
  return e.x = i, e.y = s, e;
11293
11293
  }
11294
- var Bu = ["stere", "Stereographic_South_Pole", "Polar_Stereographic_variant_A", "Polar_Stereographic_variant_B", "Polar_Stereographic"];
11295
- const ku = {
11296
- init: Ou,
11297
- forward: zu,
11298
- inverse: Ru,
11299
- names: Bu,
11294
+ var Du = ["stere", "Stereographic_South_Pole", "Polar_Stereographic_variant_A", "Polar_Stereographic_variant_B", "Polar_Stereographic"];
11295
+ const Zu = {
11296
+ init: Ru,
11297
+ forward: Bu,
11298
+ inverse: ku,
11299
+ names: Du,
11300
11300
  ssfn_: _n
11301
11301
  };
11302
- function Du() {
11302
+ function Fu() {
11303
11303
  var e = this.lat0;
11304
11304
  this.lambda0 = this.long0;
11305
11305
  var i = Math.sin(e), s = this.a, a = this.rf, o = 1 / a, h = 2 * o - Math.pow(o, 2), l = this.e = Math.sqrt(h);
@@ -11307,11 +11307,11 @@ function Du() {
11307
11307
  var u = Math.log(Math.tan(Math.PI / 4 + this.b0 / 2)), f = Math.log(Math.tan(Math.PI / 4 + e / 2)), _ = Math.log((1 + l * i) / (1 - l * i));
11308
11308
  this.K = u - this.alpha * f + this.alpha * l / 2 * _;
11309
11309
  }
11310
- function Zu(e) {
11310
+ function Uu(e) {
11311
11311
  var i = Math.log(Math.tan(Math.PI / 4 - e.y / 2)), s = this.e / 2 * Math.log((1 + this.e * Math.sin(e.y)) / (1 - this.e * Math.sin(e.y))), a = -this.alpha * (i + s) + this.K, o = 2 * (Math.atan(Math.exp(a)) - Math.PI / 4), h = this.alpha * (e.x - this.lambda0), l = Math.atan(Math.sin(h) / (Math.sin(this.b0) * Math.tan(o) + Math.cos(this.b0) * Math.cos(h))), u = Math.asin(Math.cos(this.b0) * Math.sin(o) - Math.sin(this.b0) * Math.cos(o) * Math.cos(h));
11312
11312
  return e.y = this.R / 2 * Math.log((1 + Math.sin(u)) / (1 - Math.sin(u))) + this.y0, e.x = this.R * l + this.x0, e;
11313
11313
  }
11314
- function Fu(e) {
11314
+ function qu(e) {
11315
11315
  for (var i = e.x - this.x0, s = e.y - this.y0, a = i / this.R, o = 2 * (Math.atan(Math.exp(s / this.R)) - Math.PI / 4), h = Math.asin(Math.cos(this.b0) * Math.sin(o) + Math.sin(this.b0) * Math.cos(o) * Math.cos(a)), l = Math.atan(Math.sin(a) / (Math.cos(this.b0) * Math.cos(a) - Math.sin(this.b0) * Math.tan(o))), u = this.lambda0 + l / this.alpha, f = 0, _ = h, v = -1e3, m = 0; Math.abs(_ - v) > 1e-7; ) {
11316
11316
  if (++m > 20)
11317
11317
  return;
@@ -11319,45 +11319,45 @@ function Fu(e) {
11319
11319
  }
11320
11320
  return e.x = u, e.y = _, e;
11321
11321
  }
11322
- var Uu = ["somerc"];
11323
- const qu = {
11324
- init: Du,
11325
- forward: Zu,
11326
- inverse: Fu,
11327
- names: Uu
11322
+ var ju = ["somerc"];
11323
+ const Hu = {
11324
+ init: Fu,
11325
+ forward: Uu,
11326
+ inverse: qu,
11327
+ names: ju
11328
11328
  };
11329
- var Ti = 1e-7;
11330
- function ju(e) {
11329
+ var Ai = 1e-7;
11330
+ function Wu(e) {
11331
11331
  var i = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], s = typeof e.projName == "object" ? Object.keys(e.projName)[0] : e.projName;
11332
11332
  return "no_uoff" in e || "no_off" in e || i.indexOf(s) !== -1 || i.indexOf(Mr(s)) !== -1;
11333
11333
  }
11334
- function Hu() {
11334
+ function Xu() {
11335
11335
  var e, i, s, a, o, h, l, u, f, _, v = 0, m, p = 0, M = 0, w = 0, x = 0, S = 0, E = 0;
11336
- this.no_off = ju(this), this.no_rot = "no_rot" in this;
11336
+ this.no_off = Wu(this), this.no_rot = "no_rot" in this;
11337
11337
  var C = !1;
11338
11338
  "alpha" in this && (C = !0);
11339
11339
  var G = !1;
11340
11340
  if ("rectified_grid_angle" in this && (G = !0), C && (E = this.alpha), G && (v = this.rectified_grid_angle), C || G)
11341
11341
  p = this.longc;
11342
- else if (M = this.long1, x = this.lat1, w = this.long2, S = this.lat2, Math.abs(x - S) <= Ti || (e = Math.abs(x)) <= Ti || Math.abs(e - A) <= Ti || Math.abs(Math.abs(this.lat0) - A) <= Ti || Math.abs(Math.abs(S) - A) <= Ti)
11342
+ else if (M = this.long1, x = this.lat1, w = this.long2, S = this.lat2, Math.abs(x - S) <= Ai || (e = Math.abs(x)) <= Ai || Math.abs(e - T) <= Ai || Math.abs(Math.abs(this.lat0) - T) <= Ai || Math.abs(Math.abs(S) - T) <= Ai)
11343
11343
  throw new Error();
11344
11344
  var z = 1 - this.es;
11345
11345
  i = Math.sqrt(z), Math.abs(this.lat0) > I ? (u = Math.sin(this.lat0), s = Math.cos(this.lat0), e = 1 - this.es * u * u, this.B = s * s, this.B = Math.sqrt(1 + this.es * this.B * this.B / z), this.A = this.B * this.k0 * i / e, a = this.B * i / (s * Math.sqrt(e)), o = a * a - 1, o <= 0 ? o = 0 : (o = Math.sqrt(o), this.lat0 < 0 && (o = -o)), this.E = o += a, this.E *= Math.pow(Dt(this.e, this.lat0, u), this.B)) : (this.B = 1 / i, this.A = this.k0, this.E = a = o = 1), C || G ? (C ? (m = Math.asin(Math.sin(E) / a), G || (v = E)) : (m = v, E = Math.asin(a * Math.sin(m))), this.lam0 = p - Math.asin(0.5 * (o - 1 / o) * Math.tan(m)) / this.B) : (h = Math.pow(Dt(this.e, x, Math.sin(x)), this.B), l = Math.pow(Dt(this.e, S, Math.sin(S)), this.B), o = this.E / h, f = (l - h) / (l + h), _ = this.E * this.E, _ = (_ - l * h) / (_ + l * h), e = M - w, e < -Math.PI ? w -= me : e > Math.PI && (w += me), this.lam0 = N(0.5 * (M + w) - Math.atan(_ * Math.tan(0.5 * this.B * (M - w)) / f) / this.B, this.over), m = Math.atan(2 * Math.sin(this.B * N(M - this.lam0, this.over)) / (o - 1 / o)), v = E = Math.asin(a * Math.sin(m))), this.singam = Math.sin(m), this.cosgam = Math.cos(m), this.sinrot = Math.sin(v), this.cosrot = Math.cos(v), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(a * a - 1) / Math.cos(E))), this.lat0 < 0 && (this.u_0 = -this.u_0)), o = 0.5 * m, this.v_pole_n = this.ArB * Math.log(Math.tan(J - o)), this.v_pole_s = this.ArB * Math.log(Math.tan(J + o));
11346
11346
  }
11347
- function Wu(e) {
11347
+ function Yu(e) {
11348
11348
  var i = {}, s, a, o, h, l, u, f, _;
11349
- if (e.x = e.x - this.lam0, Math.abs(Math.abs(e.y) - A) > I) {
11349
+ if (e.x = e.x - this.lam0, Math.abs(Math.abs(e.y) - T) > I) {
11350
11350
  if (l = this.E / Math.pow(Dt(this.e, e.y, Math.sin(e.y)), this.B), u = 1 / l, s = 0.5 * (l - u), a = 0.5 * (l + u), h = Math.sin(this.B * e.x), o = (s * this.singam - h * this.cosgam) / a, Math.abs(Math.abs(o) - 1) < I)
11351
11351
  throw new Error();
11352
- _ = 0.5 * this.ArB * Math.log((1 - o) / (1 + o)), u = Math.cos(this.B * e.x), Math.abs(u) < Ti ? f = this.A * e.x : f = this.ArB * Math.atan2(s * this.cosgam + h * this.singam, u);
11352
+ _ = 0.5 * this.ArB * Math.log((1 - o) / (1 + o)), u = Math.cos(this.B * e.x), Math.abs(u) < Ai ? f = this.A * e.x : f = this.ArB * Math.atan2(s * this.cosgam + h * this.singam, u);
11353
11353
  } else
11354
11354
  _ = e.y > 0 ? this.v_pole_n : this.v_pole_s, f = this.ArB * e.y;
11355
11355
  return this.no_rot ? (i.x = f, i.y = _) : (f -= this.u_0, i.x = _ * this.cosrot + f * this.sinrot, i.y = f * this.cosrot - _ * this.sinrot), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
11356
11356
  }
11357
- function Xu(e) {
11357
+ function Vu(e) {
11358
11358
  var i, s, a, o, h, l, u, f = {};
11359
11359
  if (e.x = (e.x - this.x0) * (1 / this.a), e.y = (e.y - this.y0) * (1 / this.a), this.no_rot ? (s = e.y, i = e.x) : (s = e.x * this.cosrot - e.y * this.sinrot, i = e.y * this.cosrot + e.x * this.sinrot + this.u_0), a = Math.exp(-this.BrA * s), o = 0.5 * (a - 1 / a), h = 0.5 * (a + 1 / a), l = Math.sin(this.BrA * i), u = (l * this.cosgam + o * this.singam) / h, Math.abs(Math.abs(u) - 1) < I)
11360
- f.x = 0, f.y = u < 0 ? -A : A;
11360
+ f.x = 0, f.y = u < 0 ? -T : T;
11361
11361
  else {
11362
11362
  if (f.y = this.E / Math.sqrt((1 + u) / (1 - u)), f.y = pe(this.e, Math.pow(f.y, 1 / this.B)), f.y === 1 / 0)
11363
11363
  throw new Error();
@@ -11365,25 +11365,25 @@ function Xu(e) {
11365
11365
  }
11366
11366
  return f.x += this.lam0, f;
11367
11367
  }
11368
- var Yu = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Variant_B", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "Oblique_Mercator", "omerc"];
11369
- const Vu = {
11370
- init: Hu,
11371
- forward: Wu,
11372
- inverse: Xu,
11373
- names: Yu
11368
+ var Ku = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_variant_A", "Hotine_Oblique_Mercator_Variant_B", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Two_Point_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "Oblique_Mercator", "omerc"];
11369
+ const $u = {
11370
+ init: Xu,
11371
+ forward: Yu,
11372
+ inverse: Vu,
11373
+ names: Ku
11374
11374
  };
11375
- function Ku() {
11375
+ function Ju() {
11376
11376
  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) < I)) {
11377
11377
  var e = this.b / this.a;
11378
11378
  this.e = Math.sqrt(1 - e * e);
11379
- var i = Math.sin(this.lat1), s = Math.cos(this.lat1), a = Ht(this.e, i, s), o = Dt(this.e, this.lat1, i), h = Math.sin(this.lat2), l = Math.cos(this.lat2), u = Ht(this.e, h, l), f = Dt(this.e, this.lat2, h), _ = Math.abs(Math.abs(this.lat0) - A) < I ? 0 : Dt(this.e, this.lat0, Math.sin(this.lat0));
11379
+ var i = Math.sin(this.lat1), s = Math.cos(this.lat1), a = Ht(this.e, i, s), o = Dt(this.e, this.lat1, i), h = Math.sin(this.lat2), l = Math.cos(this.lat2), u = Ht(this.e, h, l), f = Dt(this.e, this.lat2, h), _ = Math.abs(Math.abs(this.lat0) - T) < I ? 0 : Dt(this.e, this.lat0, Math.sin(this.lat0));
11380
11380
  Math.abs(this.lat1 - this.lat2) > I ? this.ns = Math.log(a / u) / Math.log(o / f) : this.ns = i, isNaN(this.ns) && (this.ns = i), this.f0 = a / (this.ns * Math.pow(o, this.ns)), this.rh = this.a * this.f0 * Math.pow(_, this.ns), this.title || (this.title = "Lambert Conformal Conic");
11381
11381
  }
11382
11382
  }
11383
- function $u(e) {
11383
+ function Qu(e) {
11384
11384
  var i = e.x, s = e.y;
11385
- Math.abs(2 * Math.abs(s) - Math.PI) <= I && (s = ye(s) * (A - 2 * I));
11386
- var a = Math.abs(Math.abs(s) - A), o, h;
11385
+ Math.abs(2 * Math.abs(s) - Math.PI) <= I && (s = ye(s) * (T - 2 * I));
11386
+ var a = Math.abs(Math.abs(s) - T), o, h;
11387
11387
  if (a > I)
11388
11388
  o = Dt(this.e, s, Math.sin(s)), h = this.a * this.f0 * Math.pow(o, this.ns);
11389
11389
  else {
@@ -11394,7 +11394,7 @@ function $u(e) {
11394
11394
  var l = this.ns * N(i - this.long0, this.over);
11395
11395
  return e.x = this.k0 * (h * Math.sin(l)) + this.x0, e.y = this.k0 * (this.rh - h * Math.cos(l)) + this.y0, e;
11396
11396
  }
11397
- function Ju(e) {
11397
+ function tc(e) {
11398
11398
  var i, s, a, o, h, l = (e.x - this.x0) / this.k0, u = this.rh - (e.y - this.y0) / this.k0;
11399
11399
  this.ns > 0 ? (i = Math.sqrt(l * l + u * u), s = 1) : (i = -Math.sqrt(l * l + u * u), s = -1);
11400
11400
  var f = 0;
@@ -11402,10 +11402,10 @@ function Ju(e) {
11402
11402
  if (s = 1 / this.ns, a = Math.pow(i / (this.a * this.f0), s), o = pe(this.e, a), o === -9999)
11403
11403
  return null;
11404
11404
  } else
11405
- o = -A;
11405
+ o = -T;
11406
11406
  return h = N(f / this.ns + this.long0, this.over), e.x = h, e.y = o, e;
11407
11407
  }
11408
- var Qu = [
11408
+ var ic = [
11409
11409
  "Lambert Tangential Conformal Conic Projection",
11410
11410
  "Lambert_Conformal_Conic",
11411
11411
  "Lambert_Conformal_Conic_1SP",
@@ -11414,20 +11414,20 @@ var Qu = [
11414
11414
  "Lambert Conic Conformal (1SP)",
11415
11415
  "Lambert Conic Conformal (2SP)"
11416
11416
  ];
11417
- const tc = {
11418
- init: Ku,
11419
- forward: $u,
11420
- inverse: Ju,
11421
- names: Qu
11417
+ const ec = {
11418
+ init: Ju,
11419
+ forward: Qu,
11420
+ inverse: tc,
11421
+ names: ic
11422
11422
  };
11423
- function ic() {
11423
+ function sc() {
11424
11424
  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;
11425
11425
  }
11426
- function ec(e) {
11426
+ function nc(e) {
11427
11427
  var i, s, a, o, h, l, u, f = e.x, _ = e.y, v = N(f - this.long0, this.over);
11428
11428
  return i = Math.pow((1 + this.e * Math.sin(_)) / (1 - this.e * Math.sin(_)), this.alfa * this.e / 2), s = 2 * (Math.atan(this.k * Math.pow(Math.tan(_ / 2 + this.s45), this.alfa) / i) - this.s45), a = -v * this.alfa, o = Math.asin(Math.cos(this.ad) * Math.sin(s) + Math.sin(this.ad) * Math.cos(s) * Math.cos(a)), h = Math.asin(Math.cos(s) * Math.sin(a) / Math.cos(o)), l = this.n * h, u = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(o / 2 + this.s45), this.n), e.y = u * Math.cos(l) / 1, e.x = u * Math.sin(l) / 1, this.czech || (e.y *= -1, e.x *= -1), e;
11429
11429
  }
11430
- function sc(e) {
11430
+ function ac(e) {
11431
11431
  var i, s, a, o, h, l, u, f, _ = e.x;
11432
11432
  e.x = e.y, e.y = _, this.czech || (e.y *= -1, e.x *= -1), l = Math.sqrt(e.x * e.x + e.y * e.y), h = Math.atan2(e.y, e.x), o = h / Math.sin(this.s0), a = 2 * (Math.atan(Math.pow(this.ro0 / l, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), i = Math.asin(Math.cos(this.ad) * Math.sin(a) - Math.sin(this.ad) * Math.cos(a) * Math.cos(o)), s = Math.asin(Math.cos(a) * Math.sin(o) / Math.cos(i)), e.x = this.long0 - s / this.alfa, u = i, f = 0;
11433
11433
  var v = 0;
@@ -11436,12 +11436,12 @@ function sc(e) {
11436
11436
  while (f === 0 && v < 15);
11437
11437
  return v >= 15 ? null : e;
11438
11438
  }
11439
- var nc = ["Krovak", "krovak"];
11440
- const ac = {
11441
- init: ic,
11442
- forward: ec,
11443
- inverse: sc,
11444
- names: nc
11439
+ var rc = ["Krovak", "krovak"];
11440
+ const oc = {
11441
+ init: sc,
11442
+ forward: nc,
11443
+ inverse: ac,
11444
+ names: rc
11445
11445
  };
11446
11446
  function Mt(e, i, s, a, o) {
11447
11447
  return e * o - i * Math.sin(2 * o) + s * Math.sin(4 * o) - a * Math.sin(6 * o);
@@ -11463,7 +11463,7 @@ function mn(e, i, s) {
11463
11463
  return e / Math.sqrt(1 - a * a);
11464
11464
  }
11465
11465
  function oi(e) {
11466
- return Math.abs(e) < A ? e : e - ye(e) * Math.PI;
11466
+ return Math.abs(e) < T ? e : e - ye(e) * Math.PI;
11467
11467
  }
11468
11468
  function ss(e, i, s, a, o) {
11469
11469
  var h, l;
@@ -11473,10 +11473,10 @@ function ss(e, i, s, a, o) {
11473
11473
  return h;
11474
11474
  return NaN;
11475
11475
  }
11476
- function rc() {
11476
+ function hc() {
11477
11477
  this.sphere || (this.e0 = Me(this.es), this.e1 = we(this.es), this.e2 = xe(this.es), this.e3 = Pe(this.es), this.ml0 = this.a * Mt(this.e0, this.e1, this.e2, this.e3, this.lat0));
11478
11478
  }
11479
- function oc(e) {
11479
+ function lc(e) {
11480
11480
  var i, s, a = e.x, o = e.y;
11481
11481
  if (a = N(a - this.long0, this.over), this.sphere)
11482
11482
  i = this.a * Math.asin(Math.cos(o) * Math.sin(a)), s = this.a * (Math.atan2(Math.tan(o), Math.cos(a)) - this.lat0);
@@ -11486,7 +11486,7 @@ function oc(e) {
11486
11486
  }
11487
11487
  return e.x = i + this.x0, e.y = s + this.y0, e;
11488
11488
  }
11489
- function hc(e) {
11489
+ function uc(e) {
11490
11490
  e.x -= this.x0, e.y -= this.y0;
11491
11491
  var i = e.x / this.a, s = e.y / this.a, a, o;
11492
11492
  if (this.sphere) {
@@ -11494,30 +11494,30 @@ function hc(e) {
11494
11494
  a = Math.asin(Math.sin(h) * Math.cos(i)), o = Math.atan2(Math.tan(i), Math.cos(h));
11495
11495
  } else {
11496
11496
  var l = this.ml0 / this.a + s, u = ss(l, this.e0, this.e1, this.e2, this.e3);
11497
- if (Math.abs(Math.abs(u) - A) <= I)
11498
- return e.x = this.long0, e.y = A, s < 0 && (e.y *= -1), e;
11497
+ if (Math.abs(Math.abs(u) - T) <= I)
11498
+ return e.x = this.long0, e.y = T, s < 0 && (e.y *= -1), e;
11499
11499
  var f = mn(this.a, this.e, Math.sin(u)), _ = f * f * f / this.a / this.a * (1 - this.es), v = Math.pow(Math.tan(u), 2), m = i * this.a / f, p = m * m;
11500
11500
  a = u - f * Math.tan(u) / _ * m * m * (0.5 - (1 + 3 * v) * m * m / 24), o = m * (1 - p * (v / 3 + (1 + 3 * v) * v * p / 15)) / Math.cos(u);
11501
11501
  }
11502
11502
  return e.x = N(o + this.long0, this.over), e.y = oi(a), e;
11503
11503
  }
11504
- var lc = ["Cassini", "Cassini_Soldner", "cass"];
11505
- const uc = {
11506
- init: rc,
11507
- forward: oc,
11508
- inverse: hc,
11509
- names: lc
11504
+ var cc = ["Cassini", "Cassini_Soldner", "cass"];
11505
+ const fc = {
11506
+ init: hc,
11507
+ forward: lc,
11508
+ inverse: uc,
11509
+ names: cc
11510
11510
  };
11511
11511
  function ni(e, i) {
11512
11512
  var s;
11513
11513
  return e > 1e-7 ? (s = e * i, (1 - e * e) * (i / (1 - s * s) - 0.5 / e * Math.log((1 - s) / (1 + s)))) : 2 * i;
11514
11514
  }
11515
11515
  var tn = 1, en = 2, sn = 3, Je = 4;
11516
- function cc() {
11516
+ function dc() {
11517
11517
  var e = Math.abs(this.lat0);
11518
- if (Math.abs(e - A) < I ? this.mode = this.lat0 < 0 ? tn : en : Math.abs(e) < I ? this.mode = sn : this.mode = Je, this.es > 0) {
11518
+ if (Math.abs(e - T) < I ? this.mode = this.lat0 < 0 ? tn : en : Math.abs(e) < I ? this.mode = sn : this.mode = Je, this.es > 0) {
11519
11519
  var i;
11520
- switch (this.qp = ni(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = Mc(this.es), this.mode) {
11520
+ switch (this.qp = ni(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = xc(this.es), this.mode) {
11521
11521
  case en:
11522
11522
  this.dd = 1;
11523
11523
  break;
@@ -11534,7 +11534,7 @@ function cc() {
11534
11534
  } else
11535
11535
  this.mode === Je && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
11536
11536
  }
11537
- function fc(e) {
11537
+ function _c(e) {
11538
11538
  var i, s, a, o, h, l, u, f, _, v, m = e.x, p = e.y;
11539
11539
  if (m = N(m - this.long0, this.over), this.sphere) {
11540
11540
  if (h = Math.sin(p), v = Math.cos(p), a = Math.cos(m), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
@@ -11555,10 +11555,10 @@ function fc(e) {
11555
11555
  _ = 1 + f * a;
11556
11556
  break;
11557
11557
  case this.N_POLE:
11558
- _ = A + p, l = this.qp - l;
11558
+ _ = T + p, l = this.qp - l;
11559
11559
  break;
11560
11560
  case this.S_POLE:
11561
- _ = p - A, l = this.qp + l;
11561
+ _ = p - T, l = this.qp + l;
11562
11562
  break;
11563
11563
  }
11564
11564
  if (Math.abs(_) < I)
@@ -11576,7 +11576,7 @@ function fc(e) {
11576
11576
  }
11577
11577
  return e.x = this.a * i + this.x0, e.y = this.a * s + this.y0, e;
11578
11578
  }
11579
- function dc(e) {
11579
+ function mc(e) {
11580
11580
  e.x -= this.x0, e.y -= this.y0;
11581
11581
  var i = e.x / this.a, s = e.y / this.a, a, o, h, l, u, f, _;
11582
11582
  if (this.sphere) {
@@ -11591,10 +11591,10 @@ function dc(e) {
11591
11591
  o = Math.abs(m) <= I ? this.lat0 : Math.asin(v * this.sinph0 + s * p * this.cosph0 / m), i *= p * this.cosph0, s = (v - Math.sin(o) * this.sinph0) * m;
11592
11592
  break;
11593
11593
  case this.N_POLE:
11594
- s = -s, o = A - o;
11594
+ s = -s, o = T - o;
11595
11595
  break;
11596
11596
  case this.S_POLE:
11597
- o -= A;
11597
+ o -= T;
11598
11598
  break;
11599
11599
  }
11600
11600
  a = s === 0 && (this.mode === this.EQUIT || this.mode === this.OBLIQ) ? 0 : Math.atan2(i, s);
@@ -11608,25 +11608,25 @@ function dc(e) {
11608
11608
  return e.x = this.long0, e.y = this.lat0, e;
11609
11609
  _ = 1 - u / this.qp, this.mode === this.S_POLE && (_ = -_);
11610
11610
  }
11611
- a = Math.atan2(i, s), o = wc(Math.asin(_), this.apa);
11611
+ a = Math.atan2(i, s), o = Pc(Math.asin(_), this.apa);
11612
11612
  }
11613
11613
  return e.x = N(this.long0 + a, this.over), e.y = o, e;
11614
11614
  }
11615
- var _c = 0.3333333333333333, mc = 0.17222222222222222, gc = 0.10257936507936508, pc = 0.06388888888888888, vc = 0.0664021164021164, yc = 0.016415012942191543;
11616
- function Mc(e) {
11615
+ var gc = 0.3333333333333333, pc = 0.17222222222222222, vc = 0.10257936507936508, yc = 0.06388888888888888, Mc = 0.0664021164021164, wc = 0.016415012942191543;
11616
+ function xc(e) {
11617
11617
  var i, s = [];
11618
- return s[0] = e * _c, i = e * e, s[0] += i * mc, s[1] = i * pc, i *= e, s[0] += i * gc, s[1] += i * vc, s[2] = i * yc, s;
11618
+ return s[0] = e * gc, i = e * e, s[0] += i * pc, s[1] = i * yc, i *= e, s[0] += i * vc, s[1] += i * Mc, s[2] = i * wc, s;
11619
11619
  }
11620
- function wc(e, i) {
11620
+ function Pc(e, i) {
11621
11621
  var s = e + e;
11622
11622
  return e + i[0] * Math.sin(s) + i[1] * Math.sin(s + s) + i[2] * Math.sin(s + s + s);
11623
11623
  }
11624
- var xc = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
11625
- const Pc = {
11626
- init: cc,
11627
- forward: fc,
11628
- inverse: dc,
11629
- names: xc,
11624
+ var bc = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
11625
+ const Sc = {
11626
+ init: dc,
11627
+ forward: _c,
11628
+ inverse: mc,
11629
+ names: bc,
11630
11630
  S_POLE: tn,
11631
11631
  N_POLE: en,
11632
11632
  EQUIT: sn,
@@ -11635,20 +11635,20 @@ const Pc = {
11635
11635
  function ri(e) {
11636
11636
  return Math.abs(e) > 1 && (e = e > 1 ? 1 : -1), Math.asin(e);
11637
11637
  }
11638
- function bc() {
11638
+ function Ec() {
11639
11639
  Math.abs(this.lat1 + this.lat2) < I || (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 = Ht(this.e3, this.sin_po, this.cos_po), this.qs1 = ni(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 = Ht(this.e3, this.sin_po, this.cos_po), this.qs2 = ni(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 = ni(this.e3, this.sin_po), Math.abs(this.lat1 - this.lat2) > I ? 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);
11640
11640
  }
11641
- function Sc(e) {
11641
+ function Ac(e) {
11642
11642
  var i = e.x, s = e.y;
11643
11643
  this.sin_phi = Math.sin(s), this.cos_phi = Math.cos(s);
11644
11644
  var a = ni(this.e3, this.sin_phi), o = this.a * Math.sqrt(this.c - this.ns0 * a) / this.ns0, h = this.ns0 * N(i - this.long0, this.over), l = o * Math.sin(h) + this.x0, u = this.rh - o * Math.cos(h) + this.y0;
11645
11645
  return e.x = l, e.y = u, e;
11646
11646
  }
11647
- function Ec(e) {
11647
+ function Tc(e) {
11648
11648
  var i, s, a, o, h, l;
11649
11649
  return e.x -= this.x0, e.y = this.rh - e.y + this.y0, this.ns0 >= 0 ? (i = Math.sqrt(e.x * e.x + e.y * e.y), a = 1) : (i = -Math.sqrt(e.x * e.x + e.y * e.y), a = -1), o = 0, i !== 0 && (o = Math.atan2(a * e.x, a * e.y)), a = i * this.ns0 / this.a, this.sphere ? l = Math.asin((this.c - a * a) / (2 * this.ns0)) : (s = (this.c - a * a) / this.ns0, l = this.phi1z(this.e3, s)), h = N(o / this.ns0 + this.long0, this.over), e.x = h, e.y = l, e;
11650
11650
  }
11651
- function Tc(e, i) {
11651
+ function Lc(e, i) {
11652
11652
  var s, a, o, h, l, u = ri(0.5 * i);
11653
11653
  if (e < I)
11654
11654
  return u;
@@ -11657,45 +11657,45 @@ function Tc(e, i) {
11657
11657
  return u;
11658
11658
  return null;
11659
11659
  }
11660
- var Ac = ["Albers_Conic_Equal_Area", "Albers_Equal_Area", "Albers", "aea"];
11661
- const Lc = {
11662
- init: bc,
11663
- forward: Sc,
11664
- inverse: Ec,
11665
- names: Ac,
11666
- phi1z: Tc
11660
+ var Cc = ["Albers_Conic_Equal_Area", "Albers_Equal_Area", "Albers", "aea"];
11661
+ const Ic = {
11662
+ init: Ec,
11663
+ forward: Ac,
11664
+ inverse: Tc,
11665
+ names: Cc,
11666
+ phi1z: Lc
11667
11667
  };
11668
- function Cc() {
11668
+ function Gc() {
11669
11669
  this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
11670
11670
  }
11671
- function Ic(e) {
11671
+ function Nc(e) {
11672
11672
  var i, s, a, o, h, l, u, f, _ = e.x, v = e.y;
11673
11673
  return a = N(_ - this.long0, this.over), i = Math.sin(v), s = Math.cos(v), o = Math.cos(a), l = this.sin_p14 * i + this.cos_p14 * s * o, h = 1, l > 0 || Math.abs(l) <= I ? (u = this.x0 + this.a * h * s * Math.sin(a) / l, f = this.y0 + this.a * h * (this.cos_p14 * i - this.sin_p14 * s * o) / l) : (u = this.x0 + this.infinity_dist * s * Math.sin(a), f = this.y0 + this.infinity_dist * (this.cos_p14 * i - this.sin_p14 * s * o)), e.x = u, e.y = f, e;
11674
11674
  }
11675
- function Gc(e) {
11675
+ function Oc(e) {
11676
11676
  var i, s, a, o, h, l;
11677
11677
  return e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, e.x /= this.k0, e.y /= this.k0, (i = Math.sqrt(e.x * e.x + e.y * e.y)) ? (o = Math.atan2(i, this.rc), s = Math.sin(o), a = Math.cos(o), l = ri(a * this.sin_p14 + e.y * s * this.cos_p14 / i), h = Math.atan2(e.x * s, i * this.cos_p14 * a - e.y * this.sin_p14 * s), h = N(this.long0 + h, this.over)) : (l = this.phic0, h = 0), e.x = h, e.y = l, e;
11678
11678
  }
11679
- var Nc = ["gnom"];
11680
- const Oc = {
11681
- init: Cc,
11682
- forward: Ic,
11683
- inverse: Gc,
11684
- names: Nc
11679
+ var zc = ["gnom"];
11680
+ const Rc = {
11681
+ init: Gc,
11682
+ forward: Nc,
11683
+ inverse: Oc,
11684
+ names: zc
11685
11685
  };
11686
- function zc(e, i) {
11686
+ function Bc(e, i) {
11687
11687
  var s = 1 - (1 - e * e) / (2 * e) * Math.log((1 - e) / (1 + e));
11688
11688
  if (Math.abs(Math.abs(i) - s) < 1e-6)
11689
- return i < 0 ? -1 * A : A;
11689
+ return i < 0 ? -1 * T : T;
11690
11690
  for (var a = Math.asin(0.5 * i), o, h, l, u, f = 0; f < 30; f++)
11691
11691
  if (h = Math.sin(a), l = Math.cos(a), u = e * h, o = Math.pow(1 - u * u, 2) / (2 * l) * (i / (1 - e * e) - h / (1 - u * u) + 0.5 / e * Math.log((1 - u) / (1 + u))), a += o, Math.abs(o) <= 1e-10)
11692
11692
  return a;
11693
11693
  return NaN;
11694
11694
  }
11695
- function Rc() {
11695
+ function kc() {
11696
11696
  this.sphere || (this.k0 = Ht(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)));
11697
11697
  }
11698
- function Bc(e) {
11698
+ function Dc(e) {
11699
11699
  var i = e.x, s = e.y, a, o, h = N(i - this.long0, this.over);
11700
11700
  if (this.sphere)
11701
11701
  a = this.x0 + this.a * h * Math.cos(this.lat_ts), o = this.y0 + this.a * Math.sin(s) / Math.cos(this.lat_ts);
@@ -11705,41 +11705,41 @@ function Bc(e) {
11705
11705
  }
11706
11706
  return e.x = a, e.y = o, e;
11707
11707
  }
11708
- function kc(e) {
11708
+ function Zc(e) {
11709
11709
  e.x -= this.x0, e.y -= this.y0;
11710
11710
  var i, s;
11711
- return this.sphere ? (i = N(this.long0 + e.x / this.a / Math.cos(this.lat_ts), this.over), s = Math.asin(e.y / this.a * Math.cos(this.lat_ts))) : (s = zc(this.e, 2 * e.y * this.k0 / this.a), i = N(this.long0 + e.x / (this.a * this.k0), this.over)), e.x = i, e.y = s, e;
11712
- }
11713
- var Dc = ["cea"];
11714
- const Zc = {
11715
- init: Rc,
11716
- forward: Bc,
11717
- inverse: kc,
11718
- names: Dc
11711
+ return this.sphere ? (i = N(this.long0 + e.x / this.a / Math.cos(this.lat_ts), this.over), s = Math.asin(e.y / this.a * Math.cos(this.lat_ts))) : (s = Bc(this.e, 2 * e.y * this.k0 / this.a), i = N(this.long0 + e.x / (this.a * this.k0), this.over)), e.x = i, e.y = s, e;
11712
+ }
11713
+ var Fc = ["cea"];
11714
+ const Uc = {
11715
+ init: kc,
11716
+ forward: Dc,
11717
+ inverse: Zc,
11718
+ names: Fc
11719
11719
  };
11720
- function Fc() {
11720
+ function qc() {
11721
11721
  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);
11722
11722
  }
11723
- function Uc(e) {
11723
+ function jc(e) {
11724
11724
  var i = e.x, s = e.y, a = N(i - this.long0, this.over), o = oi(s - this.lat0);
11725
11725
  return e.x = this.x0 + this.a * a * this.rc, e.y = this.y0 + this.a * o, e;
11726
11726
  }
11727
- function qc(e) {
11727
+ function Hc(e) {
11728
11728
  var i = e.x, s = e.y;
11729
11729
  return e.x = N(this.long0 + (i - this.x0) / (this.a * this.rc), this.over), e.y = oi(this.lat0 + (s - this.y0) / this.a), e;
11730
11730
  }
11731
- var jc = ["Equirectangular", "Equidistant_Cylindrical", "Equidistant_Cylindrical_Spherical", "eqc"];
11732
- const Hc = {
11733
- init: Fc,
11734
- forward: Uc,
11735
- inverse: qc,
11736
- names: jc
11731
+ var Wc = ["Equirectangular", "Equidistant_Cylindrical", "Equidistant_Cylindrical_Spherical", "eqc"];
11732
+ const Xc = {
11733
+ init: qc,
11734
+ forward: jc,
11735
+ inverse: Hc,
11736
+ names: Wc
11737
11737
  };
11738
11738
  var ar = 20;
11739
- function Wc() {
11739
+ function Yc() {
11740
11740
  this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = Me(this.es), this.e1 = we(this.es), this.e2 = xe(this.es), this.e3 = Pe(this.es), this.ml0 = this.a * Mt(this.e0, this.e1, this.e2, this.e3, this.lat0);
11741
11741
  }
11742
- function Xc(e) {
11742
+ function Vc(e) {
11743
11743
  var i = e.x, s = e.y, a, o, h, l = N(i - this.long0, this.over);
11744
11744
  if (h = l * Math.sin(s), this.sphere)
11745
11745
  Math.abs(s) <= I ? (a = this.a * l, o = -1 * this.a * this.lat0) : (a = this.a * Math.sin(h) / Math.tan(s), o = this.a * (oi(s - this.lat0) + (1 - Math.cos(h)) / Math.tan(s)));
@@ -11751,7 +11751,7 @@ function Xc(e) {
11751
11751
  }
11752
11752
  return e.x = a + this.x0, e.y = o + this.y0, e;
11753
11753
  }
11754
- function Yc(e) {
11754
+ function Kc(e) {
11755
11755
  var i, s, a, o, h, l, u, f, _;
11756
11756
  if (a = e.x - this.x0, o = e.y - this.y0, this.sphere)
11757
11757
  if (Math.abs(o + this.a * this.lat0) <= I)
@@ -11780,17 +11780,17 @@ function Yc(e) {
11780
11780
  }
11781
11781
  return e.x = i, e.y = s, e;
11782
11782
  }
11783
- var Vc = ["Polyconic", "American_Polyconic", "poly"];
11784
- const Kc = {
11785
- init: Wc,
11786
- forward: Xc,
11787
- inverse: Yc,
11788
- names: Vc
11783
+ var $c = ["Polyconic", "American_Polyconic", "poly"];
11784
+ const Jc = {
11785
+ init: Yc,
11786
+ forward: Vc,
11787
+ inverse: Kc,
11788
+ names: $c
11789
11789
  };
11790
- function $c() {
11790
+ function Qc() {
11791
11791
  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;
11792
11792
  }
11793
- function Jc(e) {
11793
+ function tf(e) {
11794
11794
  var i, s = e.x, a = e.y, o = a - this.lat0, h = s - this.long0, l = o / ue * 1e-5, u = h, f = 1, _ = 0;
11795
11795
  for (i = 1; i <= 10; i++)
11796
11796
  f = f * l, _ = _ + this.A[i] * f;
@@ -11799,7 +11799,7 @@ function Jc(e) {
11799
11799
  w = p * v - M * m, x = M * v + p * m, p = w, M = x, S = S + this.B_re[i] * p - this.B_im[i] * M, E = E + this.B_im[i] * p + this.B_re[i] * M;
11800
11800
  return e.x = E * this.a + this.x0, e.y = S * this.a + this.y0, e;
11801
11801
  }
11802
- function Qc(e) {
11802
+ function ef(e) {
11803
11803
  var i, s = e.x, a = e.y, o = s - this.x0, h = a - this.y0, l = h / this.a, u = o / this.a, f = 1, _ = 0, v, m, p = 0, M = 0;
11804
11804
  for (i = 1; i <= 6; i++)
11805
11805
  v = f * l - _ * u, m = _ * l + f * u, f = v, _ = m, p = p + this.C_re[i] * f - this.C_im[i] * _, M = M + this.C_im[i] * f + this.C_re[i] * _;
@@ -11820,42 +11820,42 @@ function Qc(e) {
11820
11820
  var dt = this.lat0 + $ * ue * 1e5, Jt = this.long0 + Z;
11821
11821
  return e.x = Jt, e.y = dt, e;
11822
11822
  }
11823
- var tf = ["New_Zealand_Map_Grid", "nzmg"];
11824
- const ef = {
11825
- init: $c,
11826
- forward: Jc,
11827
- inverse: Qc,
11828
- names: tf
11823
+ var sf = ["New_Zealand_Map_Grid", "nzmg"];
11824
+ const nf = {
11825
+ init: Qc,
11826
+ forward: tf,
11827
+ inverse: ef,
11828
+ names: sf
11829
11829
  };
11830
- function sf() {
11830
+ function af() {
11831
11831
  }
11832
- function nf(e) {
11832
+ function rf(e) {
11833
11833
  var i = e.x, s = e.y, a = N(i - this.long0, this.over), o = this.x0 + this.a * a, h = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + s / 2.5)) * 1.25;
11834
11834
  return e.x = o, e.y = h, e;
11835
11835
  }
11836
- function af(e) {
11836
+ function of(e) {
11837
11837
  e.x -= this.x0, e.y -= this.y0;
11838
11838
  var i = N(this.long0 + e.x / this.a, this.over), s = 2.5 * (Math.atan(Math.exp(0.8 * e.y / this.a)) - Math.PI / 4);
11839
11839
  return e.x = i, e.y = s, e;
11840
11840
  }
11841
- var rf = ["Miller_Cylindrical", "mill"];
11842
- const of = {
11843
- init: sf,
11844
- forward: nf,
11845
- inverse: af,
11846
- names: rf
11841
+ var hf = ["Miller_Cylindrical", "mill"];
11842
+ const lf = {
11843
+ init: af,
11844
+ forward: rf,
11845
+ inverse: of,
11846
+ names: hf
11847
11847
  };
11848
- var hf = 20;
11849
- function lf() {
11848
+ var uf = 20;
11849
+ function cf() {
11850
11850
  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 = ln(this.es);
11851
11851
  }
11852
- function uf(e) {
11852
+ function ff(e) {
11853
11853
  var i, s, a = e.x, o = e.y;
11854
11854
  if (a = N(a - this.long0, this.over), this.sphere) {
11855
11855
  if (!this.m)
11856
11856
  o = this.n !== 1 ? Math.asin(this.n * Math.sin(o)) : o;
11857
11857
  else
11858
- for (var h = this.n * Math.sin(o), l = hf; l; --l) {
11858
+ for (var h = this.n * Math.sin(o), l = uf; l; --l) {
11859
11859
  var u = (this.m * o + Math.sin(o) - h) / (this.m + Math.cos(o));
11860
11860
  if (o -= u, Math.abs(u) < I)
11861
11861
  break;
@@ -11867,21 +11867,21 @@ function uf(e) {
11867
11867
  }
11868
11868
  return e.x = i, e.y = s, e;
11869
11869
  }
11870
- function cf(e) {
11870
+ function df(e) {
11871
11871
  var i, s, a, o;
11872
- return e.x -= this.x0, a = e.x / this.a, e.y -= this.y0, i = e.y / this.a, this.sphere ? (i /= this.C_y, a = a / (this.C_x * (this.m + Math.cos(i))), this.m ? i = ri((this.m * i + Math.sin(i)) / this.n) : this.n !== 1 && (i = ri(Math.sin(i) / this.n)), a = N(a + this.long0, this.over), i = oi(i)) : (i = un(e.y / this.a, this.es, this.en), o = Math.abs(i), o < A ? (o = Math.sin(i), s = this.long0 + e.x * Math.sqrt(1 - this.es * o * o) / (this.a * Math.cos(i)), a = N(s, this.over)) : o - I < A && (a = this.long0)), e.x = a, e.y = i, e;
11873
- }
11874
- var ff = ["Sinusoidal", "sinu"];
11875
- const df = {
11876
- init: lf,
11877
- forward: uf,
11878
- inverse: cf,
11879
- names: ff
11872
+ return e.x -= this.x0, a = e.x / this.a, e.y -= this.y0, i = e.y / this.a, this.sphere ? (i /= this.C_y, a = a / (this.C_x * (this.m + Math.cos(i))), this.m ? i = ri((this.m * i + Math.sin(i)) / this.n) : this.n !== 1 && (i = ri(Math.sin(i) / this.n)), a = N(a + this.long0, this.over), i = oi(i)) : (i = un(e.y / this.a, this.es, this.en), o = Math.abs(i), o < T ? (o = Math.sin(i), s = this.long0 + e.x * Math.sqrt(1 - this.es * o * o) / (this.a * Math.cos(i)), a = N(s, this.over)) : o - I < T && (a = this.long0)), e.x = a, e.y = i, e;
11873
+ }
11874
+ var _f = ["Sinusoidal", "sinu"];
11875
+ const mf = {
11876
+ init: cf,
11877
+ forward: ff,
11878
+ inverse: df,
11879
+ names: _f
11880
11880
  };
11881
- function _f() {
11881
+ function gf() {
11882
11882
  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;
11883
11883
  }
11884
- function mf(e) {
11884
+ function pf(e) {
11885
11885
  for (var i = e.x, s = e.y, a = N(i - this.long0, this.over), o = s, h = Math.PI * Math.sin(s); ; ) {
11886
11886
  var l = -(o + Math.sin(o) - h) / (1 + Math.cos(o));
11887
11887
  if (o += l, Math.abs(l) < I)
@@ -11891,7 +11891,7 @@ function mf(e) {
11891
11891
  var u = 0.900316316158 * this.a * a * Math.cos(o) + this.x0, f = 1.4142135623731 * this.a * Math.sin(o) + this.y0;
11892
11892
  return e.x = u, e.y = f, e;
11893
11893
  }
11894
- function gf(e) {
11894
+ function vf(e) {
11895
11895
  var i, s;
11896
11896
  e.x -= this.x0, e.y -= this.y0, s = e.y / (1.4142135623731 * this.a), Math.abs(s) > 0.999999999999 && (s = 0.999999999999), i = Math.asin(s);
11897
11897
  var a = N(this.long0 + e.x / (0.900316316158 * this.a * Math.cos(i)), this.over);
@@ -11899,17 +11899,17 @@ function gf(e) {
11899
11899
  var o = Math.asin(s);
11900
11900
  return e.x = a, e.y = o, e;
11901
11901
  }
11902
- var pf = ["Mollweide", "moll"];
11903
- const vf = {
11904
- init: _f,
11905
- forward: mf,
11906
- inverse: gf,
11907
- names: pf
11902
+ var yf = ["Mollweide", "moll"];
11903
+ const Mf = {
11904
+ init: gf,
11905
+ forward: pf,
11906
+ inverse: vf,
11907
+ names: yf
11908
11908
  };
11909
- function yf() {
11909
+ function wf() {
11910
11910
  Math.abs(this.lat1 + this.lat2) < I || (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 = Me(this.es), this.e1 = we(this.es), this.e2 = xe(this.es), this.e3 = Pe(this.es), this.sin_phi = Math.sin(this.lat1), this.cos_phi = Math.cos(this.lat1), this.ms1 = Ht(this.e, this.sin_phi, this.cos_phi), this.ml1 = Mt(this.e0, this.e1, this.e2, this.e3, this.lat1), Math.abs(this.lat1 - this.lat2) < I ? this.ns = this.sin_phi : (this.sin_phi = Math.sin(this.lat2), this.cos_phi = Math.cos(this.lat2), this.ms2 = Ht(this.e, this.sin_phi, this.cos_phi), this.ml2 = Mt(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 = Mt(this.e0, this.e1, this.e2, this.e3, this.lat0), this.rh = this.a * (this.g - this.ml0));
11911
11911
  }
11912
- function Mf(e) {
11912
+ function xf(e) {
11913
11913
  var i = e.x, s = e.y, a;
11914
11914
  if (this.sphere)
11915
11915
  a = this.a * (this.g - s);
@@ -11920,7 +11920,7 @@ function Mf(e) {
11920
11920
  var h = this.ns * N(i - this.long0, this.over), l = this.x0 + a * Math.sin(h), u = this.y0 + this.rh - a * Math.cos(h);
11921
11921
  return e.x = l, e.y = u, e;
11922
11922
  }
11923
- function wf(e) {
11923
+ function Pf(e) {
11924
11924
  e.x -= this.x0, e.y = this.rh - e.y + this.y0;
11925
11925
  var i, s, a, o;
11926
11926
  this.ns >= 0 ? (s = Math.sqrt(e.x * e.x + e.y * e.y), i = 1) : (s = -Math.sqrt(e.x * e.x + e.y * e.y), i = -1);
@@ -11930,38 +11930,38 @@ function wf(e) {
11930
11930
  var l = this.g - s / this.a;
11931
11931
  return a = ss(l, this.e0, this.e1, this.e2, this.e3), o = N(this.long0 + h / this.ns, this.over), e.x = o, e.y = a, e;
11932
11932
  }
11933
- var xf = ["Equidistant_Conic", "eqdc"];
11934
- const Pf = {
11935
- init: yf,
11936
- forward: Mf,
11937
- inverse: wf,
11938
- names: xf
11933
+ var bf = ["Equidistant_Conic", "eqdc"];
11934
+ const Sf = {
11935
+ init: wf,
11936
+ forward: xf,
11937
+ inverse: Pf,
11938
+ names: bf
11939
11939
  };
11940
- function bf() {
11940
+ function Ef() {
11941
11941
  this.R = this.a;
11942
11942
  }
11943
- function Sf(e) {
11943
+ function Af(e) {
11944
11944
  var i = e.x, s = e.y, a = N(i - this.long0, this.over), o, h;
11945
11945
  Math.abs(s) <= I && (o = this.x0 + this.R * a, h = this.y0);
11946
11946
  var l = ri(2 * Math.abs(s / Math.PI));
11947
- (Math.abs(a) <= I || Math.abs(Math.abs(s) - A) <= I) && (o = this.x0, s >= 0 ? h = this.y0 + Math.PI * this.R * Math.tan(0.5 * l) : h = this.y0 + Math.PI * this.R * -Math.tan(0.5 * l));
11947
+ (Math.abs(a) <= I || Math.abs(Math.abs(s) - T) <= I) && (o = this.x0, s >= 0 ? h = this.y0 + Math.PI * this.R * Math.tan(0.5 * l) : h = this.y0 + Math.PI * this.R * -Math.tan(0.5 * l));
11948
11948
  var u = 0.5 * Math.abs(Math.PI / a - a / Math.PI), f = u * u, _ = Math.sin(l), v = Math.cos(l), m = v / (_ + v - 1), p = m * m, M = m * (2 / _ - 1), w = M * M, x = Math.PI * this.R * (u * (m - w) + Math.sqrt(f * (m - w) * (m - w) - (w + f) * (p - w))) / (w + f);
11949
11949
  a < 0 && (x = -x), o = this.x0 + x;
11950
11950
  var S = f + m;
11951
11951
  return x = Math.PI * this.R * (M * S - u * Math.sqrt((w + f) * (f + 1) - S * S)) / (w + f), s >= 0 ? h = this.y0 + x : h = this.y0 - x, e.x = o, e.y = h, e;
11952
11952
  }
11953
- function Ef(e) {
11953
+ function Tf(e) {
11954
11954
  var i, s, a, o, h, l, u, f, _, v, m, p, M;
11955
11955
  return e.x -= this.x0, e.y -= this.y0, m = Math.PI * this.R, a = e.x / m, o = e.y / m, h = a * a + o * o, l = -Math.abs(o) * (1 + h), u = l - 2 * o * o + a * a, f = -2 * l + 1 + 2 * o * o + h * h, M = o * o / f + (2 * u * u * u / f / f / f - 9 * l * u / f / f) / 27, _ = (l - u * u / 3 / f) / f, v = 2 * Math.sqrt(-_ / 3), m = 3 * M / _ / v, Math.abs(m) > 1 && (m >= 0 ? m = 1 : m = -1), p = Math.acos(m) / 3, e.y >= 0 ? s = (-v * Math.cos(p + Math.PI / 3) - u / 3 / f) * Math.PI : s = -(-v * Math.cos(p + Math.PI / 3) - u / 3 / f) * Math.PI, Math.abs(a) < I ? i = this.long0 : i = N(this.long0 + Math.PI * (h - 1 + Math.sqrt(1 + 2 * (a * a - o * o) + h * h)) / 2 / a, this.over), e.x = i, e.y = s, e;
11956
11956
  }
11957
- var Tf = ["Van_der_Grinten_I", "VanDerGrinten", "Van_der_Grinten", "vandg"];
11958
- const Af = {
11959
- init: bf,
11960
- forward: Sf,
11961
- inverse: Ef,
11962
- names: Tf
11957
+ var Lf = ["Van_der_Grinten_I", "VanDerGrinten", "Van_der_Grinten", "vandg"];
11958
+ const Cf = {
11959
+ init: Ef,
11960
+ forward: Af,
11961
+ inverse: Tf,
11962
+ names: Lf
11963
11963
  };
11964
- function Lf(e, i, s, a, o, h) {
11964
+ function If(e, i, s, a, o, h) {
11965
11965
  const l = a - i, u = Math.atan((1 - h) * Math.tan(e)), f = Math.atan((1 - h) * Math.tan(s)), _ = Math.sin(u), v = Math.cos(u), m = Math.sin(f), p = Math.cos(f);
11966
11966
  let M = l, w, x = 100, S, E, C, G, z, B, D, W, et, Z, X, $, dt, Jt;
11967
11967
  do {
@@ -11973,7 +11973,7 @@ function Lf(e, i, s, a, o, h) {
11973
11973
  } while (Math.abs(M - w) > 1e-12 && --x > 0);
11974
11974
  return x === 0 ? { azi1: NaN, s12: NaN } : (Z = D * (o * o - o * (1 - h) * (o * (1 - h))) / (o * (1 - h) * (o * (1 - h))), X = 1 + Z / 16384 * (4096 + Z * (-768 + Z * (320 - 175 * Z))), $ = Z / 1024 * (256 + Z * (-128 + Z * (74 - 47 * Z))), dt = $ * C * (W + $ / 4 * (G * (-1 + 2 * W * W) - $ / 6 * W * (-3 + 4 * C * C) * (-3 + 4 * W * W))), Jt = o * (1 - h) * X * (z - dt), { azi1: Math.atan2(p * S, v * m - _ * p * E), s12: Jt });
11975
11975
  }
11976
- function Cf(e, i, s, a, o, h) {
11976
+ function Gf(e, i, s, a, o, h) {
11977
11977
  const l = Math.atan((1 - h) * Math.tan(e)), u = Math.sin(l), f = Math.cos(l), _ = Math.sin(s), v = Math.cos(s), m = Math.atan2(u, f * v), p = f * _, M = 1 - p * p, w = M * (o * o - o * (1 - h) * (o * (1 - h))) / (o * (1 - h) * (o * (1 - h))), x = 1 + w / 16384 * (4096 + w * (-768 + w * (320 - 175 * w))), S = w / 1024 * (256 + w * (-128 + w * (74 - 47 * w)));
11978
11978
  let E = a / (o * (1 - h) * x), C, G = 100, z, B, D, W;
11979
11979
  do
@@ -11990,42 +11990,42 @@ function Cf(e, i, s, a, o, h) {
11990
11990
  ), $ = h / 16 * M * (4 + h * (4 - 3 * M)), dt = X - (1 - $) * h * p * (E + $ * B * (z + $ * D * (-1 + 2 * z * z))), Jt = i + dt;
11991
11991
  return { lat2: Z, lon2: Jt };
11992
11992
  }
11993
- function If() {
11993
+ function Nf() {
11994
11994
  this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0), this.f = this.es / (1 + Math.sqrt(1 - this.es));
11995
11995
  }
11996
- function Gf(e) {
11996
+ function Of(e) {
11997
11997
  var i = e.x, s = e.y, a = Math.sin(e.y), o = Math.cos(e.y), h = N(i - this.long0, this.over), l, u, f, _, v, m, p, M, w, x, S;
11998
- return this.sphere ? Math.abs(this.sin_p12 - 1) <= I ? (e.x = this.x0 + this.a * (A - s) * Math.sin(h), e.y = this.y0 - this.a * (A - s) * Math.cos(h), e) : Math.abs(this.sin_p12 + 1) <= I ? (e.x = this.x0 + this.a * (A + s) * Math.sin(h), e.y = this.y0 + this.a * (A + s) * Math.cos(h), e) : (w = this.sin_p12 * a + this.cos_p12 * o * Math.cos(h), p = Math.acos(w), M = p ? p / Math.sin(p) : 1, e.x = this.x0 + this.a * M * o * Math.sin(h), e.y = this.y0 + this.a * M * (this.cos_p12 * a - this.sin_p12 * o * Math.cos(h)), e) : (l = Me(this.es), u = we(this.es), f = xe(this.es), _ = Pe(this.es), Math.abs(this.sin_p12 - 1) <= I ? (v = this.a * Mt(l, u, f, _, A), m = this.a * Mt(l, u, f, _, s), e.x = this.x0 + (v - m) * Math.sin(h), e.y = this.y0 - (v - m) * Math.cos(h), e) : Math.abs(this.sin_p12 + 1) <= I ? (v = this.a * Mt(l, u, f, _, A), m = this.a * Mt(l, u, f, _, s), e.x = this.x0 + (v + m) * Math.sin(h), e.y = this.y0 + (v + m) * Math.cos(h), e) : Math.abs(i) < I && Math.abs(s - this.lat0) < I ? (e.x = e.y = 0, e) : (x = Lf(this.lat0, this.long0, s, i, this.a, this.f), S = x.azi1, e.x = x.s12 * Math.sin(S), e.y = x.s12 * Math.cos(S), e));
11998
+ return this.sphere ? Math.abs(this.sin_p12 - 1) <= I ? (e.x = this.x0 + this.a * (T - s) * Math.sin(h), e.y = this.y0 - this.a * (T - s) * Math.cos(h), e) : Math.abs(this.sin_p12 + 1) <= I ? (e.x = this.x0 + this.a * (T + s) * Math.sin(h), e.y = this.y0 + this.a * (T + s) * Math.cos(h), e) : (w = this.sin_p12 * a + this.cos_p12 * o * Math.cos(h), p = Math.acos(w), M = p ? p / Math.sin(p) : 1, e.x = this.x0 + this.a * M * o * Math.sin(h), e.y = this.y0 + this.a * M * (this.cos_p12 * a - this.sin_p12 * o * Math.cos(h)), e) : (l = Me(this.es), u = we(this.es), f = xe(this.es), _ = Pe(this.es), Math.abs(this.sin_p12 - 1) <= I ? (v = this.a * Mt(l, u, f, _, T), m = this.a * Mt(l, u, f, _, s), e.x = this.x0 + (v - m) * Math.sin(h), e.y = this.y0 - (v - m) * Math.cos(h), e) : Math.abs(this.sin_p12 + 1) <= I ? (v = this.a * Mt(l, u, f, _, T), m = this.a * Mt(l, u, f, _, s), e.x = this.x0 + (v + m) * Math.sin(h), e.y = this.y0 + (v + m) * Math.cos(h), e) : Math.abs(i) < I && Math.abs(s - this.lat0) < I ? (e.x = e.y = 0, e) : (x = If(this.lat0, this.long0, s, i, this.a, this.f), S = x.azi1, e.x = x.s12 * Math.sin(S), e.y = x.s12 * Math.cos(S), e));
11999
11999
  }
12000
- function Nf(e) {
12000
+ function zf(e) {
12001
12001
  e.x -= this.x0, e.y -= this.y0;
12002
12002
  var i, s, a, o, h, l, u, f, _, v, m, p, M, w, x, S;
12003
- return this.sphere ? (i = Math.sqrt(e.x * e.x + e.y * e.y), i > 2 * A * this.a ? void 0 : (s = i / this.a, a = Math.sin(s), o = Math.cos(s), h = this.long0, Math.abs(i) <= I ? l = this.lat0 : (l = ri(o * this.sin_p12 + e.y * a * this.cos_p12 / i), u = Math.abs(this.lat0) - A, Math.abs(u) <= I ? this.lat0 >= 0 ? h = N(this.long0 + Math.atan2(e.x, -e.y), this.over) : h = N(this.long0 - Math.atan2(-e.x, e.y), this.over) : h = N(this.long0 + Math.atan2(e.x * a, i * this.cos_p12 * o - e.y * this.sin_p12 * a), this.over)), e.x = h, e.y = l, e)) : (f = Me(this.es), _ = we(this.es), v = xe(this.es), m = Pe(this.es), Math.abs(this.sin_p12 - 1) <= I ? (p = this.a * Mt(f, _, v, m, A), i = Math.sqrt(e.x * e.x + e.y * e.y), M = p - i, l = ss(M / this.a, f, _, v, m), h = N(this.long0 + Math.atan2(e.x, -1 * e.y), this.over), e.x = h, e.y = l, e) : Math.abs(this.sin_p12 + 1) <= I ? (p = this.a * Mt(f, _, v, m, A), i = Math.sqrt(e.x * e.x + e.y * e.y), M = i - p, l = ss(M / this.a, f, _, v, m), h = N(this.long0 + Math.atan2(e.x, e.y), this.over), e.x = h, e.y = l, e) : (w = Math.atan2(e.x, e.y), x = Math.sqrt(e.x * e.x + e.y * e.y), S = Cf(this.lat0, this.long0, w, x, this.a, this.f), e.x = S.lon2, e.y = S.lat2, e));
12004
- }
12005
- var Of = ["Azimuthal_Equidistant", "aeqd"];
12006
- const zf = {
12007
- init: If,
12008
- forward: Gf,
12009
- inverse: Nf,
12010
- names: Of
12003
+ return this.sphere ? (i = Math.sqrt(e.x * e.x + e.y * e.y), i > 2 * T * this.a ? void 0 : (s = i / this.a, a = Math.sin(s), o = Math.cos(s), h = this.long0, Math.abs(i) <= I ? l = this.lat0 : (l = ri(o * this.sin_p12 + e.y * a * this.cos_p12 / i), u = Math.abs(this.lat0) - T, Math.abs(u) <= I ? this.lat0 >= 0 ? h = N(this.long0 + Math.atan2(e.x, -e.y), this.over) : h = N(this.long0 - Math.atan2(-e.x, e.y), this.over) : h = N(this.long0 + Math.atan2(e.x * a, i * this.cos_p12 * o - e.y * this.sin_p12 * a), this.over)), e.x = h, e.y = l, e)) : (f = Me(this.es), _ = we(this.es), v = xe(this.es), m = Pe(this.es), Math.abs(this.sin_p12 - 1) <= I ? (p = this.a * Mt(f, _, v, m, T), i = Math.sqrt(e.x * e.x + e.y * e.y), M = p - i, l = ss(M / this.a, f, _, v, m), h = N(this.long0 + Math.atan2(e.x, -1 * e.y), this.over), e.x = h, e.y = l, e) : Math.abs(this.sin_p12 + 1) <= I ? (p = this.a * Mt(f, _, v, m, T), i = Math.sqrt(e.x * e.x + e.y * e.y), M = i - p, l = ss(M / this.a, f, _, v, m), h = N(this.long0 + Math.atan2(e.x, e.y), this.over), e.x = h, e.y = l, e) : (w = Math.atan2(e.x, e.y), x = Math.sqrt(e.x * e.x + e.y * e.y), S = Gf(this.lat0, this.long0, w, x, this.a, this.f), e.x = S.lon2, e.y = S.lat2, e));
12004
+ }
12005
+ var Rf = ["Azimuthal_Equidistant", "aeqd"];
12006
+ const Bf = {
12007
+ init: Nf,
12008
+ forward: Of,
12009
+ inverse: zf,
12010
+ names: Rf
12011
12011
  };
12012
- function Rf() {
12012
+ function kf() {
12013
12013
  this.sin_p14 = Math.sin(this.lat0 || 0), this.cos_p14 = Math.cos(this.lat0 || 0);
12014
12014
  }
12015
- function Bf(e) {
12015
+ function Df(e) {
12016
12016
  var i, s, a, o, h, l, u, f, _ = e.x, v = e.y;
12017
12017
  return a = N(_ - (this.long0 || 0), this.over), i = Math.sin(v), s = Math.cos(v), o = Math.cos(a), l = this.sin_p14 * i + this.cos_p14 * s * o, h = 1, (l > 0 || Math.abs(l) <= I) && (u = this.a * h * s * Math.sin(a), f = (this.y0 || 0) + this.a * h * (this.cos_p14 * i - this.sin_p14 * s * o)), e.x = u, e.y = f, e;
12018
12018
  }
12019
- function kf(e) {
12019
+ function Zf(e) {
12020
12020
  var i, s, a, o, h, l, u, f, _;
12021
- return e.x -= this.x0 || 0, e.y -= this.y0 || 0, i = Math.sqrt(e.x * e.x + e.y * e.y), s = ri(i / this.a), a = Math.sin(s), o = Math.cos(s), f = this.long0 || 0, _ = this.lat0 || 0, l = f, Math.abs(i) <= I ? (u = _, e.x = l, e.y = u, e) : (u = ri(o * this.sin_p14 + e.y * a * this.cos_p14 / i), h = Math.abs(_) - A, Math.abs(h) <= I ? (_ >= 0 ? l = N(f + Math.atan2(e.x, -e.y), this.over) : l = N(f - Math.atan2(-e.x, e.y), this.over), e.x = l, e.y = u, e) : (l = N(f + Math.atan2(e.x * a, i * this.cos_p14 * o - e.y * this.sin_p14 * a), this.over), e.x = l, e.y = u, e));
12022
- }
12023
- var Df = ["ortho"];
12024
- const Zf = {
12025
- init: Rf,
12026
- forward: Bf,
12027
- inverse: kf,
12028
- names: Df
12021
+ return e.x -= this.x0 || 0, e.y -= this.y0 || 0, i = Math.sqrt(e.x * e.x + e.y * e.y), s = ri(i / this.a), a = Math.sin(s), o = Math.cos(s), f = this.long0 || 0, _ = this.lat0 || 0, l = f, Math.abs(i) <= I ? (u = _, e.x = l, e.y = u, e) : (u = ri(o * this.sin_p14 + e.y * a * this.cos_p14 / i), h = Math.abs(_) - T, Math.abs(h) <= I ? (_ >= 0 ? l = N(f + Math.atan2(e.x, -e.y), this.over) : l = N(f - Math.atan2(-e.x, e.y), this.over), e.x = l, e.y = u, e) : (l = N(f + Math.atan2(e.x * a, i * this.cos_p14 * o - e.y * this.sin_p14 * a), this.over), e.x = l, e.y = u, e));
12022
+ }
12023
+ var Ff = ["ortho"];
12024
+ const Uf = {
12025
+ init: kf,
12026
+ forward: Df,
12027
+ inverse: Zf,
12028
+ names: Ff
12029
12029
  };
12030
12030
  var rt = {
12031
12031
  FRONT: 1,
@@ -12040,30 +12040,30 @@ var rt = {
12040
12040
  AREA_2: 3,
12041
12041
  AREA_3: 4
12042
12042
  };
12043
- function Ff() {
12044
- 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 >= A - J / 2 ? this.face = rt.TOP : this.lat0 <= -(A - J / 2) ? this.face = rt.BOTTOM : Math.abs(this.long0) <= J ? this.face = rt.FRONT : Math.abs(this.long0) <= A + J ? this.face = this.long0 > 0 ? rt.RIGHT : rt.LEFT : this.face = rt.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);
12043
+ function qf() {
12044
+ 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 >= T - J / 2 ? this.face = rt.TOP : this.lat0 <= -(T - J / 2) ? this.face = rt.BOTTOM : Math.abs(this.long0) <= J ? this.face = rt.FRONT : Math.abs(this.long0) <= T + J ? this.face = this.long0 > 0 ? rt.RIGHT : rt.LEFT : this.face = rt.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);
12045
12045
  }
12046
- function Uf(e) {
12046
+ function jf(e) {
12047
12047
  var i = { x: 0, y: 0 }, s, a, o, h, l, u, f = { value: 0 };
12048
12048
  if (e.x -= this.long0, this.es !== 0 ? s = Math.atan(this.one_minus_f_squared * Math.tan(e.y)) : s = e.y, a = e.x, this.face === rt.TOP)
12049
- h = A - s, a >= J && a <= A + J ? (f.value = Q.AREA_0, o = a - A) : a > A + J || a <= -(A + J) ? (f.value = Q.AREA_1, o = a > 0 ? a - lt : a + lt) : a > -(A + J) && a <= -J ? (f.value = Q.AREA_2, o = a + A) : (f.value = Q.AREA_3, o = a);
12049
+ h = T - s, a >= J && a <= T + J ? (f.value = Q.AREA_0, o = a - T) : a > T + J || a <= -(T + J) ? (f.value = Q.AREA_1, o = a > 0 ? a - lt : a + lt) : a > -(T + J) && a <= -J ? (f.value = Q.AREA_2, o = a + T) : (f.value = Q.AREA_3, o = a);
12050
12050
  else if (this.face === rt.BOTTOM)
12051
- h = A + s, a >= J && a <= A + J ? (f.value = Q.AREA_0, o = -a + A) : a < J && a >= -J ? (f.value = Q.AREA_1, o = -a) : a < -J && a >= -(A + J) ? (f.value = Q.AREA_2, o = -a - A) : (f.value = Q.AREA_3, o = a > 0 ? -a + lt : -a - lt);
12051
+ h = T + s, a >= J && a <= T + J ? (f.value = Q.AREA_0, o = -a + T) : a < J && a >= -J ? (f.value = Q.AREA_1, o = -a) : a < -J && a >= -(T + J) ? (f.value = Q.AREA_2, o = -a - T) : (f.value = Q.AREA_3, o = a > 0 ? -a + lt : -a - lt);
12052
12052
  else {
12053
12053
  var _, v, m, p, M, w, x;
12054
- this.face === rt.RIGHT ? a = Ni(a, +A) : this.face === rt.BACK ? a = Ni(a, +lt) : this.face === rt.LEFT && (a = Ni(a, -A)), p = Math.sin(s), M = Math.cos(s), w = Math.sin(a), x = Math.cos(a), _ = M * x, v = M * w, m = p, this.face === rt.FRONT ? (h = Math.acos(_), o = Xe(h, m, v, f)) : this.face === rt.RIGHT ? (h = Math.acos(v), o = Xe(h, m, -_, f)) : this.face === rt.BACK ? (h = Math.acos(-_), o = Xe(h, m, -v, f)) : this.face === rt.LEFT ? (h = Math.acos(-v), o = Xe(h, m, _, f)) : (h = o = 0, f.value = Q.AREA_0);
12054
+ this.face === rt.RIGHT ? a = Ni(a, +T) : this.face === rt.BACK ? a = Ni(a, +lt) : this.face === rt.LEFT && (a = Ni(a, -T)), p = Math.sin(s), M = Math.cos(s), w = Math.sin(a), x = Math.cos(a), _ = M * x, v = M * w, m = p, this.face === rt.FRONT ? (h = Math.acos(_), o = Xe(h, m, v, f)) : this.face === rt.RIGHT ? (h = Math.acos(v), o = Xe(h, m, -_, f)) : this.face === rt.BACK ? (h = Math.acos(-_), o = Xe(h, m, -v, f)) : this.face === rt.LEFT ? (h = Math.acos(-v), o = Xe(h, m, _, f)) : (h = o = 0, f.value = Q.AREA_0);
12055
12055
  }
12056
- return u = Math.atan(12 / lt * (o + Math.acos(Math.sin(o) * Math.cos(J)) - A)), l = Math.sqrt((1 - Math.cos(h)) / (Math.cos(u) * Math.cos(u)) / (1 - Math.cos(Math.atan(1 / Math.cos(o))))), f.value === Q.AREA_1 ? u += A : f.value === Q.AREA_2 ? u += lt : f.value === Q.AREA_3 && (u += 1.5 * lt), i.x = l * Math.cos(u), i.y = l * Math.sin(u), i.x = i.x * this.a + this.x0, i.y = i.y * this.a + this.y0, e.x = i.x, e.y = i.y, e;
12056
+ return u = Math.atan(12 / lt * (o + Math.acos(Math.sin(o) * Math.cos(J)) - T)), l = Math.sqrt((1 - Math.cos(h)) / (Math.cos(u) * Math.cos(u)) / (1 - Math.cos(Math.atan(1 / Math.cos(o))))), f.value === Q.AREA_1 ? u += T : f.value === Q.AREA_2 ? u += lt : f.value === Q.AREA_3 && (u += 1.5 * lt), i.x = l * Math.cos(u), i.y = l * Math.sin(u), i.x = i.x * this.a + this.x0, i.y = i.y * this.a + this.y0, e.x = i.x, e.y = i.y, e;
12057
12057
  }
12058
- function qf(e) {
12058
+ function Hf(e) {
12059
12059
  var i = { lam: 0, phi: 0 }, s, a, o, h, l, u, f, _, v, m = { value: 0 };
12060
- if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, a = Math.atan(Math.sqrt(e.x * e.x + e.y * e.y)), s = Math.atan2(e.y, e.x), e.x >= 0 && e.x >= Math.abs(e.y) ? m.value = Q.AREA_0 : e.y >= 0 && e.y >= Math.abs(e.x) ? (m.value = Q.AREA_1, s -= A) : e.x < 0 && -e.x >= Math.abs(e.y) ? (m.value = Q.AREA_2, s = s < 0 ? s + lt : s - lt) : (m.value = Q.AREA_3, s += A), v = lt / 12 * Math.tan(s), l = Math.sin(v) / (Math.cos(v) - 1 / Math.sqrt(2)), u = Math.atan(l), o = Math.cos(s), h = Math.tan(a), f = 1 - o * o * h * h * (1 - Math.cos(Math.atan(1 / Math.cos(u)))), f < -1 ? f = -1 : f > 1 && (f = 1), this.face === rt.TOP)
12061
- _ = Math.acos(f), i.phi = A - _, m.value === Q.AREA_0 ? i.lam = u + A : m.value === Q.AREA_1 ? i.lam = u < 0 ? u + lt : u - lt : m.value === Q.AREA_2 ? i.lam = u - A : i.lam = u;
12060
+ if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, a = Math.atan(Math.sqrt(e.x * e.x + e.y * e.y)), s = Math.atan2(e.y, e.x), e.x >= 0 && e.x >= Math.abs(e.y) ? m.value = Q.AREA_0 : e.y >= 0 && e.y >= Math.abs(e.x) ? (m.value = Q.AREA_1, s -= T) : e.x < 0 && -e.x >= Math.abs(e.y) ? (m.value = Q.AREA_2, s = s < 0 ? s + lt : s - lt) : (m.value = Q.AREA_3, s += T), v = lt / 12 * Math.tan(s), l = Math.sin(v) / (Math.cos(v) - 1 / Math.sqrt(2)), u = Math.atan(l), o = Math.cos(s), h = Math.tan(a), f = 1 - o * o * h * h * (1 - Math.cos(Math.atan(1 / Math.cos(u)))), f < -1 ? f = -1 : f > 1 && (f = 1), this.face === rt.TOP)
12061
+ _ = Math.acos(f), i.phi = T - _, m.value === Q.AREA_0 ? i.lam = u + T : m.value === Q.AREA_1 ? i.lam = u < 0 ? u + lt : u - lt : m.value === Q.AREA_2 ? i.lam = u - T : i.lam = u;
12062
12062
  else if (this.face === rt.BOTTOM)
12063
- _ = Math.acos(f), i.phi = _ - A, m.value === Q.AREA_0 ? i.lam = -u + A : m.value === Q.AREA_1 ? i.lam = -u : m.value === Q.AREA_2 ? i.lam = -u - A : i.lam = u < 0 ? -u - lt : -u + lt;
12063
+ _ = Math.acos(f), i.phi = _ - T, m.value === Q.AREA_0 ? i.lam = -u + T : m.value === Q.AREA_1 ? i.lam = -u : m.value === Q.AREA_2 ? i.lam = -u - T : i.lam = u < 0 ? -u - lt : -u + lt;
12064
12064
  else {
12065
12065
  var p, M, w;
12066
- p = f, v = p * p, v >= 1 ? w = 0 : w = Math.sqrt(1 - v) * Math.sin(u), v += w * w, v >= 1 ? M = 0 : M = Math.sqrt(1 - v), m.value === Q.AREA_1 ? (v = M, M = -w, w = v) : m.value === Q.AREA_2 ? (M = -M, w = -w) : m.value === Q.AREA_3 && (v = M, M = w, w = -v), this.face === rt.RIGHT ? (v = p, p = -M, M = v) : this.face === rt.BACK ? (p = -p, M = -M) : this.face === rt.LEFT && (v = p, p = M, M = -v), i.phi = Math.acos(-w) - A, i.lam = Math.atan2(M, p), this.face === rt.RIGHT ? i.lam = Ni(i.lam, -A) : this.face === rt.BACK ? i.lam = Ni(i.lam, -lt) : this.face === rt.LEFT && (i.lam = Ni(i.lam, +A));
12066
+ p = f, v = p * p, v >= 1 ? w = 0 : w = Math.sqrt(1 - v) * Math.sin(u), v += w * w, v >= 1 ? M = 0 : M = Math.sqrt(1 - v), m.value === Q.AREA_1 ? (v = M, M = -w, w = v) : m.value === Q.AREA_2 ? (M = -M, w = -w) : m.value === Q.AREA_3 && (v = M, M = w, w = -v), this.face === rt.RIGHT ? (v = p, p = -M, M = v) : this.face === rt.BACK ? (p = -p, M = -M) : this.face === rt.LEFT && (v = p, p = M, M = -v), i.phi = Math.acos(-w) - T, i.lam = Math.atan2(M, p), this.face === rt.RIGHT ? i.lam = Ni(i.lam, -T) : this.face === rt.BACK ? i.lam = Ni(i.lam, -lt) : this.face === rt.LEFT && (i.lam = Ni(i.lam, +T));
12067
12067
  }
12068
12068
  if (this.es !== 0) {
12069
12069
  var x, S, E;
@@ -12073,18 +12073,18 @@ function qf(e) {
12073
12073
  }
12074
12074
  function Xe(e, i, s, a) {
12075
12075
  var o;
12076
- return e < I ? (a.value = Q.AREA_0, o = 0) : (o = Math.atan2(i, s), Math.abs(o) <= J ? a.value = Q.AREA_0 : o > J && o <= A + J ? (a.value = Q.AREA_1, o -= A) : o > A + J || o <= -(A + J) ? (a.value = Q.AREA_2, o = o >= 0 ? o - lt : o + lt) : (a.value = Q.AREA_3, o += A)), o;
12076
+ return e < I ? (a.value = Q.AREA_0, o = 0) : (o = Math.atan2(i, s), Math.abs(o) <= J ? a.value = Q.AREA_0 : o > J && o <= T + J ? (a.value = Q.AREA_1, o -= T) : o > T + J || o <= -(T + J) ? (a.value = Q.AREA_2, o = o >= 0 ? o - lt : o + lt) : (a.value = Q.AREA_3, o += T)), o;
12077
12077
  }
12078
12078
  function Ni(e, i) {
12079
12079
  var s = e + i;
12080
12080
  return s < -lt ? s += me : s > +lt && (s -= me), s;
12081
12081
  }
12082
- var jf = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
12083
- const Hf = {
12084
- init: Ff,
12085
- forward: Uf,
12086
- inverse: qf,
12087
- names: jf
12082
+ var Wf = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
12083
+ const Xf = {
12084
+ init: qf,
12085
+ forward: jf,
12086
+ inverse: Hf,
12087
+ names: Wf
12088
12088
  };
12089
12089
  var nn = [
12090
12090
  [1, 22199e-21, -715515e-10, 31103e-10],
@@ -12126,12 +12126,12 @@ var nn = [
12126
12126
  [0.9394, 840947e-8, -192841e-9, -42106e-10],
12127
12127
  [0.9761, 616527e-8, -256e-6, -42106e-10],
12128
12128
  [1, 328947e-8, -319159e-9, -42106e-10]
12129
- ], Nr = 0.8487, Or = 1.3523, zr = Et / 5, Wf = 1 / zr, Ii = 18, ns = function(e, i) {
12129
+ ], Nr = 0.8487, Or = 1.3523, zr = Et / 5, Yf = 1 / zr, Ii = 18, ns = function(e, i) {
12130
12130
  return e[0] + i * (e[1] + i * (e[2] + i * e[3]));
12131
- }, Xf = function(e, i) {
12131
+ }, Vf = function(e, i) {
12132
12132
  return e[1] + i * (2 * e[2] + i * 3 * e[3]);
12133
12133
  };
12134
- function Yf(e, i, s, a) {
12134
+ function Kf(e, i, s, a) {
12135
12135
  for (var o = i; a; --a) {
12136
12136
  var h = e(o);
12137
12137
  if (o -= h, Math.abs(h) < s)
@@ -12139,25 +12139,25 @@ function Yf(e, i, s, a) {
12139
12139
  }
12140
12140
  return o;
12141
12141
  }
12142
- function Vf() {
12142
+ function $f() {
12143
12143
  this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
12144
12144
  }
12145
- function Kf(e) {
12145
+ function Jf(e) {
12146
12146
  var i = N(e.x - this.long0, this.over), s = Math.abs(e.y), a = Math.floor(s * zr);
12147
- a < 0 ? a = 0 : a >= Ii && (a = Ii - 1), s = Et * (s - Wf * a);
12147
+ a < 0 ? a = 0 : a >= Ii && (a = Ii - 1), s = Et * (s - Yf * a);
12148
12148
  var o = {
12149
12149
  x: ns(nn[a], s) * i,
12150
12150
  y: ns(he[a], s)
12151
12151
  };
12152
12152
  return e.y < 0 && (o.y = -o.y), o.x = o.x * this.a * Nr + this.x0, o.y = o.y * this.a * Or + this.y0, o;
12153
12153
  }
12154
- function $f(e) {
12154
+ function Qf(e) {
12155
12155
  var i = {
12156
12156
  x: (e.x - this.x0) / (this.a * Nr),
12157
12157
  y: Math.abs(e.y - this.y0) / (this.a * Or)
12158
12158
  };
12159
12159
  if (i.y >= 1)
12160
- i.x /= nn[Ii][0], i.y = e.y < 0 ? -A : A;
12160
+ i.x /= nn[Ii][0], i.y = e.y < 0 ? -T : T;
12161
12161
  else {
12162
12162
  var s = Math.floor(i.y * Ii);
12163
12163
  for (s < 0 ? s = 0 : s >= Ii && (s = Ii - 1); ; )
@@ -12168,36 +12168,36 @@ function $f(e) {
12168
12168
  else
12169
12169
  break;
12170
12170
  var a = he[s], o = 5 * (i.y - a[0]) / (he[s + 1][0] - a[0]);
12171
- o = Yf(function(h) {
12172
- return (ns(a, h) - i.y) / Xf(a, h);
12171
+ o = Kf(function(h) {
12172
+ return (ns(a, h) - i.y) / Vf(a, h);
12173
12173
  }, o, I, 100), i.x /= ns(nn[s], o), i.y = (5 * s + o) * ot, e.y < 0 && (i.y = -i.y);
12174
12174
  }
12175
12175
  return i.x = N(i.x + this.long0, this.over), i;
12176
12176
  }
12177
- var Jf = ["Robinson", "robin"];
12178
- const Qf = {
12179
- init: Vf,
12180
- forward: Kf,
12181
- inverse: $f,
12182
- names: Jf
12177
+ var td = ["Robinson", "robin"];
12178
+ const id = {
12179
+ init: $f,
12180
+ forward: Jf,
12181
+ inverse: Qf,
12182
+ names: td
12183
12183
  };
12184
- function td() {
12184
+ function ed() {
12185
12185
  this.name = "geocent";
12186
12186
  }
12187
- function id(e) {
12187
+ function sd(e) {
12188
12188
  var i = xr(e, this.es, this.a);
12189
12189
  return i;
12190
12190
  }
12191
- function ed(e) {
12191
+ function nd(e) {
12192
12192
  var i = Pr(e, this.es, this.a, this.b);
12193
12193
  return i;
12194
12194
  }
12195
- var sd = ["Geocentric", "geocentric", "geocent", "Geocent"];
12196
- const nd = {
12197
- init: td,
12198
- forward: id,
12199
- inverse: ed,
12200
- names: sd
12195
+ var ad = ["Geocentric", "geocentric", "geocent", "Geocent"];
12196
+ const rd = {
12197
+ init: ed,
12198
+ forward: sd,
12199
+ inverse: nd,
12200
+ names: ad
12201
12201
  };
12202
12202
  var pt = {
12203
12203
  N_POLE: 0,
@@ -12216,7 +12216,7 @@ var pt = {
12216
12216
  lat0: { def: 0, num: !0 }
12217
12217
  // default is Equator, conversion to rad is automatic
12218
12218
  };
12219
- function ad() {
12219
+ function od() {
12220
12220
  if (Object.keys(te).forEach((function(s) {
12221
12221
  if (typeof this[s] > "u")
12222
12222
  this[s] = te[s].def;
@@ -12226,13 +12226,13 @@ function ad() {
12226
12226
  te[s].num && (this[s] = parseFloat(this[s]));
12227
12227
  }
12228
12228
  te[s].degrees && (this[s] = this[s] * ot);
12229
- }).bind(this)), Math.abs(Math.abs(this.lat0) - A) < I ? this.mode = this.lat0 < 0 ? pt.S_POLE : pt.N_POLE : Math.abs(this.lat0) < I ? this.mode = pt.EQUIT : (this.mode = pt.OBLIQ, this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0)), this.pn1 = this.h / this.a, this.pn1 <= 0 || this.pn1 > 1e10)
12229
+ }).bind(this)), Math.abs(Math.abs(this.lat0) - T) < I ? this.mode = this.lat0 < 0 ? pt.S_POLE : pt.N_POLE : Math.abs(this.lat0) < I ? this.mode = pt.EQUIT : (this.mode = pt.OBLIQ, this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0)), this.pn1 = this.h / this.a, this.pn1 <= 0 || this.pn1 > 1e10)
12230
12230
  throw new Error("Invalid height");
12231
12231
  this.p = 1 + this.pn1, this.rp = 1 / this.p, this.h1 = 1 / this.pn1, this.pfact = (this.p + 1) * this.h1, this.es = 0;
12232
12232
  var e = this.tilt, i = this.azi;
12233
12233
  this.cg = Math.cos(i), this.sg = Math.sin(i), this.cw = Math.cos(e), this.sw = Math.sin(e);
12234
12234
  }
12235
- function rd(e) {
12235
+ function hd(e) {
12236
12236
  e.x -= this.long0;
12237
12237
  var i = Math.sin(e.y), s = Math.cos(e.y), a = Math.cos(e.x), o, h;
12238
12238
  switch (this.mode) {
@@ -12266,7 +12266,7 @@ function rd(e) {
12266
12266
  var l, u;
12267
12267
  return l = h * this.cg + o * this.sg, u = 1 / (l * this.sw * this.h1 + this.cw), o = (o * this.cg - h * this.sg) * this.cw * u, h = l * u, e.x = o * this.a, e.y = h * this.a, e;
12268
12268
  }
12269
- function od(e) {
12269
+ function ld(e) {
12270
12270
  e.x /= this.a, e.y /= this.a;
12271
12271
  var i = { x: e.x, y: e.y }, s, a, o;
12272
12272
  o = 1 / (this.pn1 - e.y * this.sw), s = this.pn1 * e.x * o, a = this.pn1 * e.y * this.cw * o, e.x = s * this.cg + a * this.sg, e.y = a * this.cg - s * this.sg;
@@ -12293,14 +12293,14 @@ function od(e) {
12293
12293
  }
12294
12294
  return e.x = i.x + this.long0, e.y = i.y, e;
12295
12295
  }
12296
- var hd = ["Tilted_Perspective", "tpers"];
12297
- const ld = {
12298
- init: ad,
12299
- forward: rd,
12300
- inverse: od,
12301
- names: hd
12296
+ var ud = ["Tilted_Perspective", "tpers"];
12297
+ const cd = {
12298
+ init: od,
12299
+ forward: hd,
12300
+ inverse: ld,
12301
+ names: ud
12302
12302
  };
12303
- function ud() {
12303
+ function fd() {
12304
12304
  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)
12305
12305
  throw new Error();
12306
12306
  if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
@@ -12310,7 +12310,7 @@ function ud() {
12310
12310
  this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
12311
12311
  this.title || (this.title = "Geostationary Satellite View");
12312
12312
  }
12313
- function cd(e) {
12313
+ function dd(e) {
12314
12314
  var i = e.x, s = e.y, a, o, h, l;
12315
12315
  if (i = i - this.long0, this.shape === "ellipse") {
12316
12316
  s = Math.atan(this.radius_p2 * Math.tan(s));
@@ -12321,7 +12321,7 @@ function cd(e) {
12321
12321
  } else this.shape === "sphere" && (a = Math.cos(s), o = Math.cos(i) * a, h = Math.sin(i) * a, l = Math.sin(s), a = this.radius_g - o, this.flip_axis ? (e.x = this.radius_g_1 * Math.atan(h / St(l, a)), e.y = this.radius_g_1 * Math.atan(l / a)) : (e.x = this.radius_g_1 * Math.atan(h / a), e.y = this.radius_g_1 * Math.atan(l / St(h, a))));
12322
12322
  return e.x = e.x * this.a, e.y = e.y * this.a, e;
12323
12323
  }
12324
- function fd(e) {
12324
+ function _d(e) {
12325
12325
  var i = -1, s = 0, a = 0, o, h, l, u;
12326
12326
  if (e.x = e.x / this.a, e.y = e.y / this.a, this.shape === "ellipse") {
12327
12327
  this.flip_axis ? (a = Math.tan(e.y / this.radius_g_1), s = Math.tan(e.x / this.radius_g_1) * St(1, a)) : (s = Math.tan(e.x / this.radius_g_1), a = Math.tan(e.y / this.radius_g_1) * St(1, s));
@@ -12336,37 +12336,37 @@ function fd(e) {
12336
12336
  }
12337
12337
  return e.x = e.x + this.long0, e;
12338
12338
  }
12339
- var dd = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
12340
- const _d = {
12341
- init: ud,
12342
- forward: cd,
12343
- inverse: fd,
12344
- names: dd
12339
+ var md = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
12340
+ const gd = {
12341
+ init: fd,
12342
+ forward: dd,
12343
+ inverse: _d,
12344
+ names: md
12345
12345
  };
12346
12346
  var ce = 1.340264, fe = -0.081106, de = 893e-6, _e = 3796e-6, as = Math.sqrt(3) / 2;
12347
- function md() {
12347
+ function pd() {
12348
12348
  this.es = 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0;
12349
12349
  }
12350
- function gd(e) {
12350
+ function vd(e) {
12351
12351
  var i = N(e.x - this.long0, this.over), s = e.y, a = Math.asin(as * Math.sin(s)), o = a * a, h = o * o * o;
12352
12352
  return e.x = i * Math.cos(a) / (as * (ce + 3 * fe * o + h * (7 * de + 9 * _e * o))), e.y = a * (ce + fe * o + h * (de + _e * o)), e.x = this.a * e.x + this.x0, e.y = this.a * e.y + this.y0, e;
12353
12353
  }
12354
- function pd(e) {
12354
+ function yd(e) {
12355
12355
  e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a;
12356
12356
  var i = 1e-9, s = 12, a = e.y, o, h, l, u, f, _;
12357
12357
  for (_ = 0; _ < s && (o = a * a, h = o * o * o, l = a * (ce + fe * o + h * (de + _e * o)) - e.y, u = ce + 3 * fe * o + h * (7 * de + 9 * _e * o), a -= f = l / u, !(Math.abs(f) < i)); ++_)
12358
12358
  ;
12359
12359
  return o = a * a, h = o * o * o, e.x = as * e.x * (ce + 3 * fe * o + h * (7 * de + 9 * _e * o)) / Math.cos(a), e.y = Math.asin(Math.sin(a) / as), e.x = N(e.x + this.long0, this.over), e;
12360
12360
  }
12361
- var vd = ["eqearth", "Equal Earth", "Equal_Earth"];
12362
- const yd = {
12363
- init: md,
12364
- forward: gd,
12365
- inverse: pd,
12366
- names: vd
12361
+ var Md = ["eqearth", "Equal Earth", "Equal_Earth"];
12362
+ const wd = {
12363
+ init: pd,
12364
+ forward: vd,
12365
+ inverse: yd,
12366
+ names: Md
12367
12367
  };
12368
12368
  var ve = 1e-10;
12369
- function Md() {
12369
+ function xd() {
12370
12370
  var e;
12371
12371
  if (this.phi1 = this.lat1, Math.abs(this.phi1) < ve)
12372
12372
  throw new Error();
@@ -12375,46 +12375,46 @@ function Md() {
12375
12375
  this.am1 = Math.sin(this.phi1),
12376
12376
  e = Math.cos(this.phi1),
12377
12377
  this.en
12378
- ), this.am1 = e / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = xd, this.forward = wd) : (Math.abs(this.phi1) + ve >= A ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = bd, this.forward = Pd);
12378
+ ), this.am1 = e / (Math.sqrt(1 - this.es * this.am1 * this.am1) * this.am1), this.inverse = bd, this.forward = Pd) : (Math.abs(this.phi1) + ve >= T ? this.cphi1 = 0 : this.cphi1 = 1 / Math.tan(this.phi1), this.inverse = Ed, this.forward = Sd);
12379
12379
  }
12380
- function wd(e) {
12380
+ function Pd(e) {
12381
12381
  var i = N(e.x - (this.long0 || 0), this.over), s = e.y, a, o, h;
12382
12382
  return a = this.am1 + this.m1 - Ri(s, o = Math.sin(s), h = Math.cos(s), this.en), o = h * i / (a * Math.sqrt(1 - this.es * o * o)), e.x = a * Math.sin(o), e.y = this.am1 - a * Math.cos(o), e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
12383
12383
  }
12384
- function xd(e) {
12384
+ function bd(e) {
12385
12385
  e.x = (e.x - (this.x0 || 0)) / this.a, e.y = (e.y - (this.y0 || 0)) / this.a;
12386
12386
  var i, s, a, o;
12387
- if (s = St(e.x, e.y = this.am1 - e.y), o = un(this.am1 + this.m1 - s, this.es, this.en), (i = Math.abs(o)) < A)
12387
+ if (s = St(e.x, e.y = this.am1 - e.y), o = un(this.am1 + this.m1 - s, this.es, this.en), (i = Math.abs(o)) < T)
12388
12388
  i = Math.sin(o), a = s * Math.atan2(e.x, e.y) * Math.sqrt(1 - this.es * i * i) / Math.cos(o);
12389
- else if (Math.abs(i - A) <= ve)
12389
+ else if (Math.abs(i - T) <= ve)
12390
12390
  a = 0;
12391
12391
  else
12392
12392
  throw new Error();
12393
12393
  return e.x = N(a + (this.long0 || 0), this.over), e.y = oi(o), e;
12394
12394
  }
12395
- function Pd(e) {
12395
+ function Sd(e) {
12396
12396
  var i = N(e.x - (this.long0 || 0), this.over), s = e.y, a, o;
12397
12397
  return o = this.cphi1 + this.phi1 - s, Math.abs(o) > ve ? (e.x = o * Math.sin(a = i * Math.cos(s) / o), e.y = this.cphi1 - o * Math.cos(a)) : e.x = e.y = 0, e.x = this.a * e.x + (this.x0 || 0), e.y = this.a * e.y + (this.y0 || 0), e;
12398
12398
  }
12399
- function bd(e) {
12399
+ function Ed(e) {
12400
12400
  e.x = (e.x - (this.x0 || 0)) / this.a, e.y = (e.y - (this.y0 || 0)) / this.a;
12401
12401
  var i, s, a = St(e.x, e.y = this.cphi1 - e.y);
12402
- if (s = this.cphi1 + this.phi1 - a, Math.abs(s) > A)
12402
+ if (s = this.cphi1 + this.phi1 - a, Math.abs(s) > T)
12403
12403
  throw new Error();
12404
- return Math.abs(Math.abs(s) - A) <= ve ? i = 0 : i = a * Math.atan2(e.x, e.y) / Math.cos(s), e.x = N(i + (this.long0 || 0), this.over), e.y = oi(s), e;
12404
+ return Math.abs(Math.abs(s) - T) <= ve ? i = 0 : i = a * Math.atan2(e.x, e.y) / Math.cos(s), e.x = N(i + (this.long0 || 0), this.over), e.y = oi(s), e;
12405
12405
  }
12406
- var Sd = ["bonne", "Bonne (Werner lat_1=90)"];
12407
- const Ed = {
12408
- init: Md,
12409
- names: Sd
12406
+ var Ad = ["bonne", "Bonne (Werner lat_1=90)"];
12407
+ const Td = {
12408
+ init: xd,
12409
+ names: Ad
12410
12410
  }, rr = {
12411
12411
  OBLIQUE: {
12412
- forward: Id,
12413
- inverse: Nd
12412
+ forward: Nd,
12413
+ inverse: zd
12414
12414
  },
12415
12415
  TRANSVERSE: {
12416
- forward: Gd,
12417
- inverse: Od
12416
+ forward: Od,
12417
+ inverse: Rd
12418
12418
  }
12419
12419
  }, rs = {
12420
12420
  ROTATE: {
@@ -12433,7 +12433,7 @@ const Ed = {
12433
12433
  o_lat_2: "oLat2"
12434
12434
  }
12435
12435
  };
12436
- function Td() {
12436
+ function Ld() {
12437
12437
  if (this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.title = this.title || "General Oblique Transformation", this.isIdentity = vr.includes(this.o_proj), !this.o_proj)
12438
12438
  throw new Error("Missing parameter: o_proj");
12439
12439
  if (this.o_proj === "ob_tran")
@@ -12468,29 +12468,29 @@ function Td() {
12468
12468
  }
12469
12469
  if (!s)
12470
12470
  throw new Error("No valid parameters provided for ob_tran projection.");
12471
- const { lamp: h, phip: l } = Cd(this, s);
12471
+ const { lamp: h, phip: l } = Gd(this, s);
12472
12472
  this.lamp = h, Math.abs(l) > I ? (this.cphip = Math.cos(l), this.sphip = Math.sin(l), this.projectionType = rr.OBLIQUE) : this.projectionType = rr.TRANSVERSE;
12473
12473
  }
12474
- function Ad(e) {
12474
+ function Cd(e) {
12475
12475
  return this.projectionType.forward(this, e);
12476
12476
  }
12477
- function Ld(e) {
12477
+ function Id(e) {
12478
12478
  return this.projectionType.inverse(this, e);
12479
12479
  }
12480
- function Cd(e, i) {
12480
+ function Gd(e, i) {
12481
12481
  let s, a;
12482
12482
  if (i === rs.ROTATE) {
12483
12483
  let o = e.oLongC, h = e.oLatC, l = e.oAlpha;
12484
- if (Math.abs(Math.abs(h) - A) <= I)
12484
+ if (Math.abs(Math.abs(h) - T) <= I)
12485
12485
  throw new Error("Invalid value for o_lat_c: " + e.o_lat_c + " should be < 90°");
12486
12486
  a = o + Math.atan2(-1 * Math.cos(l), -1 * Math.sin(l) * Math.sin(h)), s = Math.asin(Math.cos(h) * Math.sin(l));
12487
12487
  } else if (i === rs.NEW_POLE)
12488
12488
  a = e.oLongP, s = e.oLatP;
12489
12489
  else {
12490
12490
  let o = e.oLong1, h = e.oLat1, l = e.oLong2, u = e.oLat2, f = Math.abs(h);
12491
- if (Math.abs(h) > A - I)
12491
+ if (Math.abs(h) > T - I)
12492
12492
  throw new Error("Invalid value for o_lat_1: " + e.o_lat_1 + " should be < 90°");
12493
- if (Math.abs(u) > A - I)
12493
+ if (Math.abs(u) > T - I)
12494
12494
  throw new Error("Invalid value for o_lat_2: " + e.o_lat_2 + " should be < 90°");
12495
12495
  if (Math.abs(h - u) < I)
12496
12496
  throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");
@@ -12503,7 +12503,7 @@ function Cd(e, i) {
12503
12503
  }
12504
12504
  return { lamp: a, phip: s };
12505
12505
  }
12506
- function Id(e, i) {
12506
+ function Nd(e, i) {
12507
12507
  let { x: s, y: a } = i;
12508
12508
  s += e.long0;
12509
12509
  const o = Math.cos(s), h = Math.sin(a), l = Math.cos(a);
@@ -12518,7 +12518,7 @@ function Id(e, i) {
12518
12518
  const u = e.obliqueProjection.forward(i);
12519
12519
  return e.isIdentity && (u.x *= Et, u.y *= Et), u;
12520
12520
  }
12521
- function Gd(e, i) {
12521
+ function Od(e, i) {
12522
12522
  let { x: s, y: a } = i;
12523
12523
  s += e.long0;
12524
12524
  const o = Math.cos(a), h = Math.cos(s);
@@ -12531,7 +12531,7 @@ function Gd(e, i) {
12531
12531
  const l = e.obliqueProjection.forward(i);
12532
12532
  return e.isIdentity && (l.x *= Et, l.y *= Et), l;
12533
12533
  }
12534
- function Nd(e, i) {
12534
+ function zd(e, i) {
12535
12535
  e.isIdentity && (i.x *= ot, i.y *= ot);
12536
12536
  const s = e.obliqueProjection.inverse(i);
12537
12537
  let { x: a, y: o } = s;
@@ -12547,7 +12547,7 @@ function Nd(e, i) {
12547
12547
  }
12548
12548
  return i.x = N(i.x + e.long0), i;
12549
12549
  }
12550
- function Od(e, i) {
12550
+ function Rd(e, i) {
12551
12551
  e.isIdentity && (i.x *= ot, i.y *= ot);
12552
12552
  const s = e.obliqueProjection.inverse(i);
12553
12553
  let { x: a, y: o } = s;
@@ -12562,39 +12562,39 @@ function Od(e, i) {
12562
12562
  }
12563
12563
  return i.x = N(i.x + e.long0), i;
12564
12564
  }
12565
- var zd = ["General Oblique Transformation", "General_Oblique_Transformation", "ob_tran"];
12566
- const Rd = {
12567
- init: Td,
12568
- forward: Ad,
12569
- inverse: Ld,
12570
- names: zd
12565
+ var Bd = ["General Oblique Transformation", "General_Oblique_Transformation", "ob_tran"];
12566
+ const kd = {
12567
+ init: Ld,
12568
+ forward: Cd,
12569
+ inverse: Id,
12570
+ names: Bd
12571
12571
  };
12572
- function Bd(e) {
12573
- e.Proj.projections.add(Ke), e.Proj.projections.add($e), e.Proj.projections.add(bu), e.Proj.projections.add(Nu), e.Proj.projections.add(ku), e.Proj.projections.add(qu), e.Proj.projections.add(Vu), e.Proj.projections.add(tc), e.Proj.projections.add(ac), e.Proj.projections.add(uc), e.Proj.projections.add(Pc), e.Proj.projections.add(Lc), e.Proj.projections.add(Oc), e.Proj.projections.add(Zc), e.Proj.projections.add(Hc), e.Proj.projections.add(Kc), e.Proj.projections.add(ef), e.Proj.projections.add(of), e.Proj.projections.add(df), e.Proj.projections.add(vf), e.Proj.projections.add(Pf), e.Proj.projections.add(Af), e.Proj.projections.add(zf), e.Proj.projections.add(Zf), e.Proj.projections.add(Hf), e.Proj.projections.add(Qf), e.Proj.projections.add(nd), e.Proj.projections.add(ld), e.Proj.projections.add(_d), e.Proj.projections.add(yd), e.Proj.projections.add(Ed), e.Proj.projections.add(Rd);
12572
+ function Dd(e) {
12573
+ e.Proj.projections.add(Ke), e.Proj.projections.add($e), e.Proj.projections.add(Eu), e.Proj.projections.add(zu), e.Proj.projections.add(Zu), e.Proj.projections.add(Hu), e.Proj.projections.add($u), e.Proj.projections.add(ec), e.Proj.projections.add(oc), e.Proj.projections.add(fc), e.Proj.projections.add(Sc), e.Proj.projections.add(Ic), e.Proj.projections.add(Rc), e.Proj.projections.add(Uc), e.Proj.projections.add(Xc), e.Proj.projections.add(Jc), e.Proj.projections.add(nf), e.Proj.projections.add(lf), e.Proj.projections.add(mf), e.Proj.projections.add(Mf), e.Proj.projections.add(Sf), e.Proj.projections.add(Cf), e.Proj.projections.add(Bf), e.Proj.projections.add(Uf), e.Proj.projections.add(Xf), e.Proj.projections.add(id), e.Proj.projections.add(rd), e.Proj.projections.add(cd), e.Proj.projections.add(gd), e.Proj.projections.add(wd), e.Proj.projections.add(Td), e.Proj.projections.add(kd);
12574
12574
  }
12575
- const Rr = Object.assign(Fl, {
12575
+ const Rr = Object.assign(ql, {
12576
12576
  defaultDatum: "WGS84",
12577
12577
  Proj: Nt,
12578
12578
  WGS84: new Nt("WGS84"),
12579
12579
  Point: zi,
12580
12580
  toPoint: br,
12581
12581
  defs: gt,
12582
- nadgrid: Pl,
12582
+ nadgrid: Sl,
12583
12583
  transform: es,
12584
- mgrs: Ul,
12584
+ mgrs: jl,
12585
12585
  version: "__VERSION__"
12586
12586
  });
12587
- Bd(Rr);
12588
- const kd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12587
+ Dd(Rr);
12588
+ const Zd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12589
12589
  __proto__: null,
12590
12590
  default: Rr
12591
- }, Symbol.toStringTag, { value: "Module" })), Dd = /* @__PURE__ */ gh(kd);
12591
+ }, Symbol.toStringTag, { value: "Module" })), Fd = /* @__PURE__ */ gh(Zd);
12592
12592
  var or;
12593
- function Zd() {
12593
+ function Ud() {
12594
12594
  return or || (or = 1, (function(e) {
12595
12595
  (function(i) {
12596
12596
  var s, a;
12597
- s = hr(), a = Dd, e.exports = i(s, a);
12597
+ s = hr(), a = Fd, e.exports = i(s, a);
12598
12598
  })(function(i, s) {
12599
12599
  return s.__esModule && s.default && (s = s.default), i.Proj = {}, i.Proj._isProj4Obj = function(a) {
12600
12600
  return typeof a.inverse < "u" && typeof a.forward < "u";
@@ -12709,7 +12709,7 @@ function Zd() {
12709
12709
  });
12710
12710
  })(js)), js.exports;
12711
12711
  }
12712
- Zd();
12712
+ Ud();
12713
12713
  (function(e, i) {
12714
12714
  it.GridLayer.include({
12715
12715
  _setZoomTransform: function(s, a, o) {
@@ -12727,7 +12727,7 @@ Zd();
12727
12727
  });
12728
12728
  })();
12729
12729
  var an = /* @__PURE__ */ ((e) => (e.tianDiTuNormalMap = "TianDiTu.Normal.Map", e.tianDiTuNormalAnnotion = "TianDiTu.Normal.Annotion", e.tianDiTuSatelliteMap = "TianDiTu.Satellite.Map", e.tianDiTuSatelliteAnnotion = "TianDiTu.Satellite.Annotion", e.tianDiTuTerrainMap = "TianDiTu.Terrain.Map", e.tianDiTuTerrainAnnotion = "TianDiTu.Terrain.Annotion", e.gaoDeNormalMap = "GaoDe.Normal.Map", e.gaoDeSatelliteMap = "GaoDe.Satellite.Map", e.gaoDeSatelliteAnnotion = "GaoDe.Satellite.Annotion", e.baiDuNormalMap = "Baidu.Normal.Map", e.baiDuSatelliteMap = "Baidu.Satellite.Map", e.baiDuSatelliteAnnotion = "Baidu.Satellite.Annotion", e.googleNormalMap = "Google.Normal.Map", e.googleSatelliteMap = "Google.Satellite.Map", e.googleSatelliteAnnotion = "Google.Satellite.Annotion", e.geoqNormalMap = "Geoq.Normal.Map", e.geoqNormalPurplishBlue = "Geoq.Normal.PurplishBlue", e.geoqNormalGray = "Geoq.Normal.Gray", e.geoqNormalWarm = "Geoq.Normal.Warm", e.geoqThemeHydro = "Geoq.Theme.Hydro", e.oSMNormalMap = "OSM.Normal.Map", e))(an || {});
12730
- class Fd {
12730
+ class qd {
12731
12731
  constructor(i, s) {
12732
12732
  this.setMapProvider(i, s);
12733
12733
  }
@@ -12850,7 +12850,7 @@ class jd {
12850
12850
  let o = s.getCenter(), h = s.getZoom();
12851
12851
  s._resetView(o, h, !0), i?.forEach((l) => {
12852
12852
  if (a[l]) return;
12853
- let u = new Fd(l);
12853
+ let u = new qd(l);
12854
12854
  u.addTo(s), a[l] = u;
12855
12855
  });
12856
12856
  for (const l in a) {
@@ -12885,7 +12885,7 @@ class jd {
12885
12885
  /**---------------高德地图的相关方法------------------- */
12886
12886
  async initAmap(i, s) {
12887
12887
  const { zoom: a = 11, minZoom: o = 2, maxZoom: h = 20, center: [l, u] = [22.68471, 114.12027], dragging: f = !0, zoomControl: _ = !1, attributionControl: v = !1, doubleClickZoom: m = !1, closePopupOnClick: p = !1, showLabel: M = !0 } = s;
12888
- return Nh.load({
12888
+ return zh.load({
12889
12889
  key: "87e1b1e9aa88724f69208972546fdd57",
12890
12890
  // 申请好的Web端开发者Key,首次调用 load 时必填
12891
12891
  version: "1.4.15",
@@ -12914,10 +12914,106 @@ class jd {
12914
12914
  }));
12915
12915
  }
12916
12916
  }
12917
+ class Hd extends Gh {
12918
+ constructor(i, s) {
12919
+ super(i, s), this._draw = new bh(i, this.canvas);
12920
+ }
12921
+ /**地图事件引起的重绘绘制 */
12922
+ renderFixedData() {
12923
+ this.resetCanvas(), this.drawMapAll();
12924
+ }
12925
+ /**绘制所有需要绘制的类 */
12926
+ drawMapAll() {
12927
+ return this._draw.drawMapAll(), this;
12928
+ }
12929
+ /**设置原点 */
12930
+ setAllArcs(i) {
12931
+ return this._draw.setAllArcs(i), this;
12932
+ }
12933
+ /**设置线数据 */
12934
+ setAllLines(i) {
12935
+ return this._draw.setAllLines(i), this;
12936
+ }
12937
+ /**设置贝塞尔曲线数据 */
12938
+ setAllBezierLines(i) {
12939
+ return this._draw.setAllBezierLines(i), this;
12940
+ }
12941
+ /**设置多边形数据 */
12942
+ setAllRects(i) {
12943
+ return this._draw.setAllRects(i), this;
12944
+ }
12945
+ /**设置文本数据 */
12946
+ setAllTexts(i) {
12947
+ return this._draw.setAllTexts(i), this;
12948
+ }
12949
+ /**设置图片数据 */
12950
+ setAllImgs(i) {
12951
+ return this._draw.setAllImgs(i), this;
12952
+ }
12953
+ /**设置gif数据 */
12954
+ setAllGifs(i) {
12955
+ return this._draw.setAllGifs(i), this;
12956
+ }
12957
+ /**增加原点 */
12958
+ addArc(i) {
12959
+ return this._draw.addArc(i), this;
12960
+ }
12961
+ /**增加线 */
12962
+ addLine(i) {
12963
+ return this._draw.addLine(i), this;
12964
+ }
12965
+ /**增加贝塞尔曲线 */
12966
+ addBezierLine(i) {
12967
+ return this._draw.addBezierLine(i), this;
12968
+ }
12969
+ /**增加多边形 */
12970
+ addRect(i) {
12971
+ return this._draw.addRect(i), this;
12972
+ }
12973
+ /**增加文本 */
12974
+ addText(i) {
12975
+ return this._draw.addText(i), this;
12976
+ }
12977
+ /**增加图片 */
12978
+ addImg(i) {
12979
+ return this._draw.addImg(i), this;
12980
+ }
12981
+ /**删除指定圆点 */
12982
+ delArc(i) {
12983
+ return this._draw.delArc(i), this;
12984
+ }
12985
+ /**删除指定线 */
12986
+ delLine(i) {
12987
+ return this._draw.delLine(i), this;
12988
+ }
12989
+ /**删除指定贝塞尔曲线 */
12990
+ delBezierLine(i) {
12991
+ return this._draw.delBezierLine(i), this;
12992
+ }
12993
+ /**删除指定多边形 */
12994
+ delRect(i) {
12995
+ return this._draw.delRect(i), this;
12996
+ }
12997
+ /**删除指定多边形 */
12998
+ delText(i) {
12999
+ return this._draw.delText(i), this;
13000
+ }
13001
+ /**删除指定Img */
13002
+ delImg(i) {
13003
+ return this._draw.delImg(i), this;
13004
+ }
13005
+ /**清空
13006
+ * @param type 不填清空所有内容数据
13007
+ */
13008
+ delAll(i = "all") {
13009
+ return this._draw.delAll(i), this;
13010
+ }
13011
+ }
12917
13012
  export {
12918
- Ud as MapCanvasDraw,
13013
+ bh as MapCanvasDraw,
12919
13014
  Ba as MapCanvasEvent,
12920
- qd as MapCanvasLayer,
13015
+ Gh as MapCanvasLayer,
13016
+ Hd as MapPluginDraw,
12921
13017
  kt as SLUCanvas,
12922
13018
  lh as SLUCanvasGif,
12923
13019
  Vs as SLUCanvasImg,