@besovideo/bvmap-leaflet 0.0.26 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -100,11 +100,11 @@ function an() {
100
100
  return "_leaflet_id" in t || (t._leaflet_id = ++u), t._leaflet_id;
101
101
  }
102
102
  function m(t, s, o) {
103
- var d, _, M, b;
104
- return b = function() {
103
+ var d, _, M, w;
104
+ return w = function() {
105
105
  d = !1, _ && (M.apply(o, _), _ = !1);
106
106
  }, M = function() {
107
- d ? _ = arguments : (t.apply(o, arguments), setTimeout(b, s), d = !0);
107
+ d ? _ = arguments : (t.apply(o, arguments), setTimeout(w, s), d = !0);
108
108
  }, M;
109
109
  }
110
110
  function y(t, s, o) {
@@ -132,15 +132,15 @@ function an() {
132
132
  t.options[o] = s[o];
133
133
  return t.options;
134
134
  }
135
- function w(t, s, o) {
135
+ function b(t, s, o) {
136
136
  var d = [];
137
137
  for (var _ in t)
138
138
  d.push(encodeURIComponent(o ? _.toUpperCase() : _) + "=" + encodeURIComponent(t[_]));
139
139
  return (!s || s.indexOf("?") === -1 ? "?" : "&") + d.join("&");
140
140
  }
141
- var P = /\{ *([\w_ -]+) *\}/g;
141
+ var C = /\{ *([\w_ -]+) *\}/g;
142
142
  function T(t, s) {
143
- return t.replace(P, function(o, d) {
143
+ return t.replace(C, function(o, d) {
144
144
  var _ = s[d];
145
145
  if (_ === void 0)
146
146
  throw new Error("No value provided for variable " + o);
@@ -193,7 +193,7 @@ function an() {
193
193
  trim: g,
194
194
  splitWords: v,
195
195
  setOptions: x,
196
- getParamString: w,
196
+ getParamString: b,
197
197
  template: T,
198
198
  isArray: A,
199
199
  indexOf: D,
@@ -215,7 +215,7 @@ function an() {
215
215
  return t.statics && h(s, t.statics), t.includes && (le(t.includes), h.apply(null, [d].concat(t.includes))), h(d, t), delete d.statics, delete d.includes, d.options && (d.options = o.options ? a(o.options) : {}, h(d.options, t.options)), d._initHooks = [], d.callInitHooks = function() {
216
216
  if (!this._initHooksCalled) {
217
217
  o.callInitHooks && o.callInitHooks.call(this), this._initHooksCalled = !0;
218
- for (var M = 0, b = d._initHooks.length; M < b; M++)
218
+ for (var M = 0, w = d._initHooks.length; M < w; M++)
219
219
  d._initHooks[M].call(this);
220
220
  }
221
221
  }, s;
@@ -275,7 +275,7 @@ function an() {
275
275
  this._off(d, t[d], s);
276
276
  else {
277
277
  t = v(t);
278
- for (var _ = arguments.length === 1, M = 0, b = t.length; M < b; M++)
278
+ for (var _ = arguments.length === 1, M = 0, w = t.length; M < w; M++)
279
279
  _ ? this._off(t[M]) : this._off(t[M], s, o);
280
280
  }
281
281
  return this;
@@ -306,10 +306,10 @@ function an() {
306
306
  console.warn("wrong listener type: " + typeof s);
307
307
  return;
308
308
  }
309
- var b = this._listens(t, s, o);
310
- if (b !== !1) {
311
- var C = d[b];
312
- this._firingCount && (C.fn = p, this._events[t] = d = d.slice()), d.splice(b, 1);
309
+ var w = this._listens(t, s, o);
310
+ if (w !== !1) {
311
+ var P = d[w];
312
+ this._firingCount && (P.fn = p, this._events[t] = d = d.slice()), d.splice(w, 1);
313
313
  }
314
314
  }
315
315
  },
@@ -329,9 +329,9 @@ function an() {
329
329
  var _ = this._events[t];
330
330
  if (_) {
331
331
  this._firingCount = this._firingCount + 1 || 1;
332
- for (var M = 0, b = _.length; M < b; M++) {
333
- var C = _[M], k = C.fn;
334
- C.once && this.off(t, k, C.ctx), k.call(C.ctx || this, d);
332
+ for (var M = 0, w = _.length; M < w; M++) {
333
+ var P = _[M], k = P.fn;
334
+ P.once && this.off(t, k, P.ctx), k.call(P.ctx || this, d);
335
335
  }
336
336
  this._firingCount--;
337
337
  }
@@ -350,8 +350,8 @@ function an() {
350
350
  if (M && M.length && this._listens(t, _, o) !== !1)
351
351
  return !0;
352
352
  if (d) {
353
- for (var b in this._eventParents)
354
- if (this._eventParents[b].listens(t, s, o, d))
353
+ for (var w in this._eventParents)
354
+ if (this._eventParents[w].listens(t, s, o, d))
355
355
  return !0;
356
356
  }
357
357
  return !1;
@@ -587,16 +587,16 @@ function an() {
587
587
  // intersect if they have at least one point in common.
588
588
  intersects: function(t) {
589
589
  t = gt(t);
590
- var s = this.min, o = this.max, d = t.min, _ = t.max, M = _.x >= s.x && d.x <= o.x, b = _.y >= s.y && d.y <= o.y;
591
- return M && b;
590
+ var s = this.min, o = this.max, d = t.min, _ = t.max, M = _.x >= s.x && d.x <= o.x, w = _.y >= s.y && d.y <= o.y;
591
+ return M && w;
592
592
  },
593
593
  // @method overlaps(otherBounds: Bounds): Boolean
594
594
  // Returns `true` if the rectangle overlaps the given bounds. Two bounds
595
595
  // overlap if their intersection is an area.
596
596
  overlaps: function(t) {
597
597
  t = gt(t);
598
- var s = this.min, o = this.max, d = t.min, _ = t.max, M = _.x > s.x && d.x < o.x, b = _.y > s.y && d.y < o.y;
599
- return M && b;
598
+ var s = this.min, o = this.max, d = t.min, _ = t.max, M = _.x > s.x && d.x < o.x, w = _.y > s.y && d.y < o.y;
599
+ return M && w;
600
600
  },
601
601
  // @method isValid(): Boolean
602
602
  // Returns `true` if the bounds are properly initialized.
@@ -718,15 +718,15 @@ function an() {
718
718
  // Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
719
719
  intersects: function(t) {
720
720
  t = ot(t);
721
- var s = this._southWest, o = this._northEast, d = t.getSouthWest(), _ = t.getNorthEast(), M = _.lat >= s.lat && d.lat <= o.lat, b = _.lng >= s.lng && d.lng <= o.lng;
722
- return M && b;
721
+ var s = this._southWest, o = this._northEast, d = t.getSouthWest(), _ = t.getNorthEast(), M = _.lat >= s.lat && d.lat <= o.lat, w = _.lng >= s.lng && d.lng <= o.lng;
722
+ return M && w;
723
723
  },
724
724
  // @method overlaps(otherBounds: LatLngBounds): Boolean
725
725
  // Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
726
726
  overlaps: function(t) {
727
727
  t = ot(t);
728
- var s = this._southWest, o = this._northEast, d = t.getSouthWest(), _ = t.getNorthEast(), M = _.lat > s.lat && d.lat < o.lat, b = _.lng > s.lng && d.lng < o.lng;
729
- return M && b;
728
+ var s = this._southWest, o = this._northEast, d = t.getSouthWest(), _ = t.getNorthEast(), M = _.lat > s.lat && d.lat < o.lat, w = _.lng > s.lng && d.lng < o.lng;
729
+ return M && w;
730
730
  },
731
731
  // @method toBBoxString(): String
732
732
  // Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.
@@ -875,8 +875,8 @@ function an() {
875
875
  var s = t.getCenter(), o = this.wrapLatLng(s), d = s.lat - o.lat, _ = s.lng - o.lng;
876
876
  if (d === 0 && _ === 0)
877
877
  return t;
878
- var M = t.getSouthWest(), b = t.getNorthEast(), C = new Y(M.lat - d, M.lng - _), k = new Y(b.lat - d, b.lng - _);
879
- return new pt(C, k);
878
+ var M = t.getSouthWest(), w = t.getNorthEast(), P = new Y(M.lat - d, M.lng - _), k = new Y(w.lat - d, w.lng - _);
879
+ return new pt(P, k);
880
880
  }
881
881
  }, ee = h({}, $t, {
882
882
  wrapLng: [-180, 180],
@@ -886,7 +886,7 @@ function an() {
886
886
  R: 6371e3,
887
887
  // distance between two geographical points using spherical law of cosines approximation
888
888
  distance: function(t, s) {
889
- var o = Math.PI / 180, d = t.lat * o, _ = s.lat * o, M = Math.sin((s.lat - t.lat) * o / 2), b = Math.sin((s.lng - t.lng) * o / 2), C = M * M + Math.cos(d) * Math.cos(_) * b * b, k = 2 * Math.atan2(Math.sqrt(C), Math.sqrt(1 - C));
889
+ var o = Math.PI / 180, d = t.lat * o, _ = s.lat * o, M = Math.sin((s.lat - t.lat) * o / 2), w = Math.sin((s.lng - t.lng) * o / 2), P = M * M + Math.cos(d) * Math.cos(_) * w * w, k = 2 * Math.atan2(Math.sqrt(P), Math.sqrt(1 - P));
890
890
  return this.R * k;
891
891
  }
892
892
  }), hs = 6378137, hn = {
@@ -956,10 +956,10 @@ function an() {
956
956
  return document.createElementNS("http://www.w3.org/2000/svg", t);
957
957
  }
958
958
  function us(t, s) {
959
- var o = "", d, _, M, b, C, k;
959
+ var o = "", d, _, M, w, P, k;
960
960
  for (d = 0, M = t.length; d < M; d++) {
961
- for (C = t[d], _ = 0, b = C.length; _ < b; _++)
962
- k = C[_], o += (_ ? "L" : "M") + k.x + " " + k.y;
961
+ for (P = t[d], _ = 0, w = P.length; _ < w; _++)
962
+ k = P[_], o += (_ ? "L" : "M") + k.x + " " + k.y;
963
963
  o += s ? B.svg ? "z" : "x" : "";
964
964
  }
965
965
  return o || "M0 0";
@@ -1090,14 +1090,14 @@ function an() {
1090
1090
  return;
1091
1091
  }
1092
1092
  if (!(M.pointerType === "mouse" || M.sourceCapabilities && !M.sourceCapabilities.firesTouchEvents)) {
1093
- var b = zs(M);
1094
- if (!(b.some(function(k) {
1093
+ var w = zs(M);
1094
+ if (!(w.some(function(k) {
1095
1095
  return k instanceof HTMLLabelElement && k.attributes.for;
1096
- }) && !b.some(function(k) {
1096
+ }) && !w.some(function(k) {
1097
1097
  return k instanceof HTMLInputElement || k instanceof HTMLSelectElement;
1098
1098
  }))) {
1099
- var C = Date.now();
1100
- C - o <= eo ? (d++, d === 2 && s(to(M))) : d = 1, o = C;
1099
+ var P = Date.now();
1100
+ P - o <= eo ? (d++, d === 2 && s(to(M))) : d = 1, o = P;
1101
1101
  }
1102
1102
  }
1103
1103
  }
@@ -1288,7 +1288,7 @@ function an() {
1288
1288
  kn(t, _, s[_], o);
1289
1289
  else {
1290
1290
  s = v(s);
1291
- for (var M = 0, b = s.length; M < b; M++)
1291
+ for (var M = 0, w = s.length; M < w; M++)
1292
1292
  kn(t, s[M], o, d);
1293
1293
  }
1294
1294
  return this;
@@ -1301,11 +1301,11 @@ function an() {
1301
1301
  for (var _ in s)
1302
1302
  Tn(t, _, s[_], o);
1303
1303
  else if (s = v(s), arguments.length === 2)
1304
- Os(t, function(C) {
1305
- return D(s, C) !== -1;
1304
+ Os(t, function(P) {
1305
+ return D(s, P) !== -1;
1306
1306
  });
1307
1307
  else
1308
- for (var M = 0, b = s.length; M < b; M++)
1308
+ for (var M = 0, w = s.length; M < w; M++)
1309
1309
  Tn(t, s[M], o, d);
1310
1310
  return this;
1311
1311
  }
@@ -1324,12 +1324,12 @@ function an() {
1324
1324
  var _ = s + f(o) + (d ? "_" + f(d) : "");
1325
1325
  if (t[Ft] && t[Ft][_])
1326
1326
  return this;
1327
- var M = function(C) {
1328
- return o.call(d || t, C || window.event);
1329
- }, b = M;
1330
- !B.touchNative && B.pointer && s.indexOf("touch") === 0 ? M = $r(t, s, M) : B.touch && s === "dblclick" ? M = io(t, M) : "addEventListener" in t ? s === "touchstart" || s === "touchmove" || s === "wheel" || s === "mousewheel" ? t.addEventListener(Cn[s] || s, M, B.passiveEvents ? { passive: !1 } : !1) : s === "mouseenter" || s === "mouseleave" ? (M = function(C) {
1331
- C = C || window.event, Sn(t, C) && b(C);
1332
- }, t.addEventListener(Cn[s], M, !1)) : t.addEventListener(s, b, !1) : t.attachEvent("on" + s, M), t[Ft] = t[Ft] || {}, t[Ft][_] = M;
1327
+ var M = function(P) {
1328
+ return o.call(d || t, P || window.event);
1329
+ }, w = M;
1330
+ !B.touchNative && B.pointer && s.indexOf("touch") === 0 ? M = $r(t, s, M) : B.touch && s === "dblclick" ? M = io(t, M) : "addEventListener" in t ? s === "touchstart" || s === "touchmove" || s === "wheel" || s === "mousewheel" ? t.addEventListener(Cn[s] || s, M, B.passiveEvents ? { passive: !1 } : !1) : s === "mouseenter" || s === "mouseleave" ? (M = function(P) {
1331
+ P = P || window.event, Sn(t, P) && w(P);
1332
+ }, t.addEventListener(Cn[s], M, !1)) : t.addEventListener(s, w, !1) : t.attachEvent("on" + s, M), t[Ft] = t[Ft] || {}, t[Ft][_] = M;
1333
1333
  }
1334
1334
  function Tn(t, s, o, d, _) {
1335
1335
  _ = _ || s + f(o) + (d ? "_" + f(d) : "");
@@ -1572,8 +1572,8 @@ function an() {
1572
1572
  // @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
1573
1573
  // Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
1574
1574
  setZoomAround: function(t, s, o) {
1575
- var d = this.getZoomScale(s), _ = this.getSize().divideBy(2), M = t instanceof q ? t : this.latLngToContainerPoint(t), b = M.subtract(_).multiplyBy(1 - 1 / d), C = this.containerPointToLatLng(_.add(b));
1576
- return this.setView(C, s, { zoom: o });
1575
+ var d = this.getZoomScale(s), _ = this.getSize().divideBy(2), M = t instanceof q ? t : this.latLngToContainerPoint(t), w = M.subtract(_).multiplyBy(1 - 1 / d), P = this.containerPointToLatLng(_.add(w));
1576
+ return this.setView(P, s, { zoom: o });
1577
1577
  },
1578
1578
  _getBoundsCenterZoom: function(t, s) {
1579
1579
  s = s || {}, t = t.getBounds ? t.getBounds() : ot(t);
@@ -1583,7 +1583,7 @@ function an() {
1583
1583
  center: t.getCenter(),
1584
1584
  zoom: _
1585
1585
  };
1586
- var M = d.subtract(o).divideBy(2), b = this.project(t.getSouthWest(), _), C = this.project(t.getNorthEast(), _), k = this.unproject(b.add(C).divideBy(2).add(M), _);
1586
+ var M = d.subtract(o).divideBy(2), w = this.project(t.getSouthWest(), _), P = this.project(t.getNorthEast(), _), k = this.unproject(w.add(P).divideBy(2).add(M), _);
1587
1587
  return {
1588
1588
  center: k,
1589
1589
  zoom: _
@@ -1634,11 +1634,11 @@ function an() {
1634
1634
  if (o = o || {}, o.animate === !1 || !B.any3d)
1635
1635
  return this.setView(t, s, o);
1636
1636
  this._stop();
1637
- var d = this.project(this.getCenter()), _ = this.project(t), M = this.getSize(), b = this._zoom;
1638
- t = $(t), s = s === void 0 ? b : s;
1639
- var C = Math.max(M.x, M.y), k = C * this.getZoomScale(b, s), E = _.distanceTo(d) || 1, z = 1.42, Z = z * z;
1637
+ var d = this.project(this.getCenter()), _ = this.project(t), M = this.getSize(), w = this._zoom;
1638
+ t = $(t), s = s === void 0 ? w : s;
1639
+ var P = Math.max(M.x, M.y), k = P * this.getZoomScale(w, s), E = _.distanceTo(d) || 1, z = 1.42, Z = z * z;
1640
1640
  function V(_t) {
1641
- var Zi = _t ? -1 : 1, Xo = _t ? k : C, Jo = k * k - C * C + Zi * Z * Z * E * E, Qo = 2 * Xo * Z * E, Fn = Jo / Qo, pa = Math.sqrt(Fn * Fn + 1) - Fn, Yo = pa < 1e-9 ? -18 : Math.log(pa);
1641
+ var Zi = _t ? -1 : 1, Xo = _t ? k : P, Jo = k * k - P * P + Zi * Z * Z * E * E, Qo = 2 * Xo * Z * E, Fn = Jo / Qo, pa = Math.sqrt(Fn * Fn + 1) - Fn, Yo = pa < 1e-9 ? -18 : Math.log(pa);
1642
1642
  return Yo;
1643
1643
  }
1644
1644
  function wt(_t) {
@@ -1652,10 +1652,10 @@ function an() {
1652
1652
  }
1653
1653
  var kt = V(0);
1654
1654
  function ke(_t) {
1655
- return C * (mt(kt) / mt(kt + z * _t));
1655
+ return P * (mt(kt) / mt(kt + z * _t));
1656
1656
  }
1657
1657
  function Wo(_t) {
1658
- return C * (mt(kt) * zt(kt + z * _t) - wt(kt)) / Z;
1658
+ return P * (mt(kt) * zt(kt + z * _t) - wt(kt)) / Z;
1659
1659
  }
1660
1660
  function Vo(_t) {
1661
1661
  return 1 - Math.pow(1 - _t, 1.5);
@@ -1664,8 +1664,8 @@ function an() {
1664
1664
  function ga() {
1665
1665
  var _t = (Date.now() - $o) / Ko, Zi = Vo(_t) * ma;
1666
1666
  _t <= 1 ? (this._flyToFrame = K(ga, this), this._move(
1667
- this.unproject(d.add(_.subtract(d).multiplyBy(Wo(Zi) / E)), b),
1668
- this.getScaleZoom(C / ke(Zi), b),
1667
+ this.unproject(d.add(_.subtract(d).multiplyBy(Wo(Zi) / E)), w),
1668
+ this.getScaleZoom(P / ke(Zi), w),
1669
1669
  { flyTo: !0 }
1670
1670
  )) : this._move(t, s)._moveEnd(!0);
1671
1671
  }
@@ -1709,10 +1709,10 @@ function an() {
1709
1709
  // the map will not be panned.
1710
1710
  panInside: function(t, s) {
1711
1711
  s = s || {};
1712
- var o = F(s.paddingTopLeft || s.padding || [0, 0]), d = F(s.paddingBottomRight || s.padding || [0, 0]), _ = this.project(this.getCenter()), M = this.project(t), b = this.getPixelBounds(), C = gt([b.min.add(o), b.max.subtract(d)]), k = C.getSize();
1713
- if (!C.contains(M)) {
1712
+ var o = F(s.paddingTopLeft || s.padding || [0, 0]), d = F(s.paddingBottomRight || s.padding || [0, 0]), _ = this.project(this.getCenter()), M = this.project(t), w = this.getPixelBounds(), P = gt([w.min.add(o), w.max.subtract(d)]), k = P.getSize();
1713
+ if (!P.contains(M)) {
1714
1714
  this._enforcingBounds = !0;
1715
- var E = M.subtract(C.getCenter()), z = C.extend(M).getSize().subtract(k);
1715
+ var E = M.subtract(P.getCenter()), z = P.extend(M).getSize().subtract(k);
1716
1716
  _.x += E.x < 0 ? -z.x : z.x, _.y += E.y < 0 ? -z.y : z.y, this.panTo(this.unproject(_), s), this._enforcingBounds = !1;
1717
1717
  }
1718
1718
  return this;
@@ -1795,17 +1795,17 @@ function an() {
1795
1795
  if (this._container._leaflet_id) {
1796
1796
  var s = t.coords.latitude, o = t.coords.longitude, d = new Y(s, o), _ = d.toBounds(t.coords.accuracy * 2), M = this._locateOptions;
1797
1797
  if (M.setView) {
1798
- var b = this.getBoundsZoom(_);
1799
- this.setView(d, M.maxZoom ? Math.min(b, M.maxZoom) : b);
1798
+ var w = this.getBoundsZoom(_);
1799
+ this.setView(d, M.maxZoom ? Math.min(w, M.maxZoom) : w);
1800
1800
  }
1801
- var C = {
1801
+ var P = {
1802
1802
  latlng: d,
1803
1803
  bounds: _,
1804
1804
  timestamp: t.timestamp
1805
1805
  };
1806
1806
  for (var k in t.coords)
1807
- typeof t.coords[k] == "number" && (C[k] = t.coords[k]);
1808
- this.fire("locationfound", C);
1807
+ typeof t.coords[k] == "number" && (P[k] = t.coords[k]);
1808
+ this.fire("locationfound", P);
1809
1809
  }
1810
1810
  },
1811
1811
  // TODO Appropriate docs section?
@@ -1879,7 +1879,7 @@ function an() {
1879
1879
  // the given bounds in its entirety.
1880
1880
  getBoundsZoom: function(t, s, o) {
1881
1881
  t = ot(t), o = F(o || [0, 0]);
1882
- var d = this.getZoom() || 0, _ = this.getMinZoom(), M = this.getMaxZoom(), b = t.getNorthWest(), C = t.getSouthEast(), k = this.getSize().subtract(o), E = gt(this.project(C, d), this.project(b, d)).getSize(), z = B.any3d ? this.options.zoomSnap : 1, Z = k.x / E.x, V = k.y / E.y, wt = s ? Math.max(Z, V) : Math.min(Z, V);
1882
+ var d = this.getZoom() || 0, _ = this.getMinZoom(), M = this.getMaxZoom(), w = t.getNorthWest(), P = t.getSouthEast(), k = this.getSize().subtract(o), E = gt(this.project(P, d), this.project(w, d)).getSize(), z = B.any3d ? this.options.zoomSnap : 1, Z = k.x / E.x, V = k.y / E.y, wt = s ? Math.max(Z, V) : Math.min(Z, V);
1883
1883
  return d = this.getScaleZoom(wt, d), z && (d = Math.round(d / (z / 100)) * (z / 100), d = s ? Math.ceil(d / z) * z : Math.floor(d / z) * z), Math.max(_, Math.min(M, d));
1884
1884
  },
1885
1885
  // @method getSize(): Point
@@ -2119,16 +2119,16 @@ function an() {
2119
2119
  Math.max(Math.abs(t.x), Math.abs(t.y)) >= this.options.transform3DLimit && this._resetView(this.getCenter(), this.getZoom());
2120
2120
  },
2121
2121
  _findEventTargets: function(t, s) {
2122
- for (var o = [], d, _ = s === "mouseout" || s === "mouseover", M = t.target || t.srcElement, b = !1; M; ) {
2122
+ for (var o = [], d, _ = s === "mouseout" || s === "mouseover", M = t.target || t.srcElement, w = !1; M; ) {
2123
2123
  if (d = this._targets[f(M)], d && (s === "click" || s === "preclick") && this._draggableMoved(d)) {
2124
- b = !0;
2124
+ w = !0;
2125
2125
  break;
2126
2126
  }
2127
2127
  if (d && d.listens(s, !0) && (_ && !Sn(M, t) || (o.push(d), _)) || M === this._container)
2128
2128
  break;
2129
2129
  M = M.parentNode;
2130
2130
  }
2131
- return !o.length && !b && !_ && this.listens(s, !0) && (o = [this]), o;
2131
+ return !o.length && !w && !_ && this.listens(s, !0) && (o = [this]), o;
2132
2132
  },
2133
2133
  _isClickDisabled: function(t) {
2134
2134
  for (; t && t !== this._container; ) {
@@ -2152,21 +2152,21 @@ function an() {
2152
2152
  }
2153
2153
  var _ = this._findEventTargets(t, s);
2154
2154
  if (o) {
2155
- for (var M = [], b = 0; b < o.length; b++)
2156
- o[b].listens(s, !0) && M.push(o[b]);
2155
+ for (var M = [], w = 0; w < o.length; w++)
2156
+ o[w].listens(s, !0) && M.push(o[w]);
2157
2157
  _ = M.concat(_);
2158
2158
  }
2159
2159
  if (_.length) {
2160
2160
  s === "contextmenu" && vt(t);
2161
- var C = _[0], k = {
2161
+ var P = _[0], k = {
2162
2162
  originalEvent: t
2163
2163
  };
2164
2164
  if (t.type !== "keypress" && t.type !== "keydown" && t.type !== "keyup") {
2165
- var E = C.getLatLng && (!C._radius || C._radius <= 10);
2166
- k.containerPoint = E ? this.latLngToContainerPoint(C.getLatLng()) : this.mouseEventToContainerPoint(t), k.layerPoint = this.containerPointToLayerPoint(k.containerPoint), k.latlng = E ? C.getLatLng() : this.layerPointToLatLng(k.layerPoint);
2165
+ var E = P.getLatLng && (!P._radius || P._radius <= 10);
2166
+ k.containerPoint = E ? this.latLngToContainerPoint(P.getLatLng()) : this.mouseEventToContainerPoint(t), k.layerPoint = this.containerPointToLayerPoint(k.containerPoint), k.latlng = E ? P.getLatLng() : this.layerPointToLatLng(k.layerPoint);
2167
2167
  }
2168
- for (b = 0; b < _.length; b++)
2169
- if (_[b].fire(s, k, !0), k.originalEvent._stopped || _[b].options.bubblingMouseEvents === !1 && D(this._mouseEvents, s) !== -1)
2168
+ for (w = 0; w < _.length; w++)
2169
+ if (_[w].fire(s, k, !0), k.originalEvent._stopped || _[w].options.bubblingMouseEvents === !1 && D(this._mouseEvents, s) !== -1)
2170
2170
  return;
2171
2171
  }
2172
2172
  },
@@ -2226,8 +2226,8 @@ function an() {
2226
2226
  _limitCenter: function(t, s, o) {
2227
2227
  if (!o)
2228
2228
  return t;
2229
- var d = this.project(t, s), _ = this.getSize().divideBy(2), M = new rt(d.subtract(_), d.add(_)), b = this._getBoundsOffset(M, o, s);
2230
- return Math.abs(b.x) <= 1 && Math.abs(b.y) <= 1 ? t : this.unproject(d.add(b), s);
2229
+ var d = this.project(t, s), _ = this.getSize().divideBy(2), M = new rt(d.subtract(_), d.add(_)), w = this._getBoundsOffset(M, o, s);
2230
+ return Math.abs(w.x) <= 1 && Math.abs(w.y) <= 1 ? t : this.unproject(d.add(w), s);
2231
2231
  },
2232
2232
  // adjust offset for view to get inside bounds
2233
2233
  _limitOffset: function(t, s) {
@@ -2241,8 +2241,8 @@ function an() {
2241
2241
  var d = gt(
2242
2242
  this.project(s.getNorthEast(), o),
2243
2243
  this.project(s.getSouthWest(), o)
2244
- ), _ = d.min.subtract(t.min), M = d.max.subtract(t.max), b = this._rebound(_.x, -M.x), C = this._rebound(_.y, -M.y);
2245
- return new q(b, C);
2244
+ ), _ = d.min.subtract(t.min), M = d.max.subtract(t.max), w = this._rebound(_.x, -M.x), P = this._rebound(_.y, -M.y);
2245
+ return new q(w, P);
2246
2246
  },
2247
2247
  _rebound: function(t, s) {
2248
2248
  return t + s > 0 ? Math.round(t - s) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(s));
@@ -2369,8 +2369,8 @@ function an() {
2369
2369
  _initControlPos: function() {
2370
2370
  var t = this._controlCorners = {}, s = "leaflet-", o = this._controlContainer = Q("div", s + "control-container", this._container);
2371
2371
  function d(_, M) {
2372
- var b = s + _ + " " + s + M;
2373
- t[_ + M] = Q("div", b, o);
2372
+ var w = s + _ + " " + s + M;
2373
+ t[_ + M] = Q("div", w, o);
2374
2374
  }
2375
2375
  d("top", "left"), d("top", "right"), d("bottom", "left"), d("bottom", "right");
2376
2376
  },
@@ -2517,8 +2517,8 @@ function an() {
2517
2517
  _.innerHTML = " " + t.name;
2518
2518
  var M = document.createElement("span");
2519
2519
  s.appendChild(M), M.appendChild(d), M.appendChild(_);
2520
- var b = t.overlay ? this._overlaysList : this._baseLayersList;
2521
- return b.appendChild(s), this._checkDisabledLayers(), s;
2520
+ var w = t.overlay ? this._overlaysList : this._baseLayersList;
2521
+ return w.appendChild(s), this._checkDisabledLayers(), s;
2522
2522
  },
2523
2523
  _onInputClick: function() {
2524
2524
  if (!this._preventClick) {
@@ -2824,18 +2824,18 @@ function an() {
2824
2824
  }
2825
2825
  });
2826
2826
  function Fs(t, s, o) {
2827
- var d, _ = [1, 4, 2, 8], M, b, C, k, E, z, Z, V;
2827
+ var d, _ = [1, 4, 2, 8], M, w, P, k, E, z, Z, V;
2828
2828
  for (M = 0, z = t.length; M < z; M++)
2829
2829
  t[M]._code = me(t[M], s);
2830
- for (C = 0; C < 4; C++) {
2831
- for (Z = _[C], d = [], M = 0, z = t.length, b = z - 1; M < z; b = M++)
2832
- k = t[M], E = t[b], k._code & Z ? E._code & Z || (V = Ti(E, k, Z, s, o), V._code = me(V, s), d.push(V)) : (E._code & Z && (V = Ti(E, k, Z, s, o), V._code = me(V, s), d.push(V)), d.push(k));
2830
+ for (P = 0; P < 4; P++) {
2831
+ for (Z = _[P], d = [], M = 0, z = t.length, w = z - 1; M < z; w = M++)
2832
+ k = t[M], E = t[w], k._code & Z ? E._code & Z || (V = Ti(E, k, Z, s, o), V._code = me(V, s), d.push(V)) : (E._code & Z && (V = Ti(E, k, Z, s, o), V._code = me(V, s), d.push(V)), d.push(k));
2833
2833
  t = d;
2834
2834
  }
2835
2835
  return t;
2836
2836
  }
2837
2837
  function Us(t, s) {
2838
- var o, d, _, M, b, C, k, E, z;
2838
+ var o, d, _, M, w, P, k, E, z;
2839
2839
  if (!t || t.length === 0)
2840
2840
  throw new Error("latlngs not passed");
2841
2841
  Ot(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
@@ -2846,9 +2846,9 @@ function an() {
2846
2846
  var kt = $(t[o]);
2847
2847
  zt.push(s.project($([kt.lat - Z.lat, kt.lng - Z.lng])));
2848
2848
  }
2849
- for (C = k = E = 0, o = 0, d = mt - 1; o < mt; d = o++)
2850
- _ = zt[o], M = zt[d], b = _.y * M.x - M.y * _.x, k += (_.x + M.x) * b, E += (_.y + M.y) * b, C += b * 3;
2851
- C === 0 ? z = zt[0] : z = [k / C, E / C];
2849
+ for (P = k = E = 0, o = 0, d = mt - 1; o < mt; d = o++)
2850
+ _ = zt[o], M = zt[d], w = _.y * M.x - M.y * _.x, k += (_.x + M.x) * w, E += (_.y + M.y) * w, P += w * 3;
2851
+ P === 0 ? z = zt[0] : z = [k / P, E / P];
2852
2852
  var ke = s.unproject(F(z));
2853
2853
  return $([ke.lat + Z.lat, ke.lng + Z.lng]);
2854
2854
  }
@@ -2880,16 +2880,16 @@ function an() {
2880
2880
  function vo(t, s) {
2881
2881
  var o = t.length, d = typeof Uint8Array != "undefined" ? Uint8Array : Array, _ = new d(o);
2882
2882
  _[0] = _[o - 1] = 1, zn(t, _, s, 0, o - 1);
2883
- var M, b = [];
2883
+ var M, w = [];
2884
2884
  for (M = 0; M < o; M++)
2885
- _[M] && b.push(t[M]);
2886
- return b;
2885
+ _[M] && w.push(t[M]);
2886
+ return w;
2887
2887
  }
2888
2888
  function zn(t, s, o, d, _) {
2889
- var M = 0, b, C, k;
2890
- for (C = d + 1; C <= _ - 1; C++)
2891
- k = $e(t[C], t[d], t[_], !0), k > M && (b = C, M = k);
2892
- M > o && (s[b] = 1, zn(t, s, o, d, b), zn(t, s, o, b, _));
2889
+ var M = 0, w, P, k;
2890
+ for (P = d + 1; P <= _ - 1; P++)
2891
+ k = $e(t[P], t[d], t[_], !0), k > M && (w = P, M = k);
2892
+ M > o && (s[w] = 1, zn(t, s, o, d, w), zn(t, s, o, w, _));
2893
2893
  }
2894
2894
  function yo(t, s) {
2895
2895
  for (var o = [t[0]], d = 1, _ = 0, M = t.length; d < M; d++)
@@ -2898,18 +2898,18 @@ function an() {
2898
2898
  }
2899
2899
  var js;
2900
2900
  function Ws(t, s, o, d, _) {
2901
- var M = d ? js : me(t, o), b = me(s, o), C, k, E;
2902
- for (js = b; ; ) {
2903
- if (!(M | b))
2901
+ var M = d ? js : me(t, o), w = me(s, o), P, k, E;
2902
+ for (js = w; ; ) {
2903
+ if (!(M | w))
2904
2904
  return [t, s];
2905
- if (M & b)
2905
+ if (M & w)
2906
2906
  return !1;
2907
- C = M || b, k = Ti(t, s, C, o, _), E = me(k, o), C === M ? (t = k, M = E) : (s = k, b = E);
2907
+ P = M || w, k = Ti(t, s, P, o, _), E = me(k, o), P === M ? (t = k, M = E) : (s = k, w = E);
2908
2908
  }
2909
2909
  }
2910
2910
  function Ti(t, s, o, d, _) {
2911
- var M = s.x - t.x, b = s.y - t.y, C = d.min, k = d.max, E, z;
2912
- return o & 8 ? (E = t.x + M * (k.y - t.y) / b, z = k.y) : o & 4 ? (E = t.x + M * (C.y - t.y) / b, z = C.y) : o & 2 ? (E = k.x, z = t.y + b * (k.x - t.x) / M) : o & 1 && (E = C.x, z = t.y + b * (C.x - t.x) / M), new q(E, z, _);
2911
+ var M = s.x - t.x, w = s.y - t.y, P = d.min, k = d.max, E, z;
2912
+ return o & 8 ? (E = t.x + M * (k.y - t.y) / w, z = k.y) : o & 4 ? (E = t.x + M * (P.y - t.y) / w, z = P.y) : o & 2 ? (E = k.x, z = t.y + w * (k.x - t.x) / M) : o & 1 && (E = P.x, z = t.y + w * (P.x - t.x) / M), new q(E, z, _);
2913
2913
  }
2914
2914
  function me(t, s) {
2915
2915
  var o = 0;
@@ -2920,8 +2920,8 @@ function an() {
2920
2920
  return o * o + d * d;
2921
2921
  }
2922
2922
  function $e(t, s, o, d) {
2923
- var _ = s.x, M = s.y, b = o.x - _, C = o.y - M, k = b * b + C * C, E;
2924
- return k > 0 && (E = ((t.x - _) * b + (t.y - M) * C) / k, E > 1 ? (_ = o.x, M = o.y) : E > 0 && (_ += b * E, M += C * E)), b = t.x - _, C = t.y - M, d ? b * b + C * C : new q(_, M);
2923
+ var _ = s.x, M = s.y, w = o.x - _, P = o.y - M, k = w * w + P * P, E;
2924
+ return k > 0 && (E = ((t.x - _) * w + (t.y - M) * P) / k, E > 1 ? (_ = o.x, M = o.y) : E > 0 && (_ += w * E, M += P * E)), w = t.x - _, P = t.y - M, d ? w * w + P * P : new q(_, M);
2925
2925
  }
2926
2926
  function Ot(t) {
2927
2927
  return !A(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] != "undefined";
@@ -2930,7 +2930,7 @@ function an() {
2930
2930
  return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), Ot(t);
2931
2931
  }
2932
2932
  function $s(t, s) {
2933
- var o, d, _, M, b, C, k, E;
2933
+ var o, d, _, M, w, P, k, E;
2934
2934
  if (!t || t.length === 0)
2935
2935
  throw new Error("latlngs not passed");
2936
2936
  Ot(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
@@ -2947,10 +2947,10 @@ function an() {
2947
2947
  E = mt[0];
2948
2948
  else
2949
2949
  for (o = 0, M = 0; o < wt - 1; o++)
2950
- if (b = mt[o], C = mt[o + 1], _ = b.distanceTo(C), M += _, M > d) {
2950
+ if (w = mt[o], P = mt[o + 1], _ = w.distanceTo(P), M += _, M > d) {
2951
2951
  k = (M - d) / _, E = [
2952
- C.x - k * (C.x - b.x),
2953
- C.y - k * (C.y - b.y)
2952
+ P.x - k * (P.x - w.x),
2953
+ P.y - k * (P.y - w.y)
2954
2954
  ];
2955
2955
  break;
2956
2956
  }
@@ -2982,13 +2982,13 @@ function an() {
2982
2982
  R_MINOR: 6356752314245179e-9,
2983
2983
  bounds: new rt([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
2984
2984
  project: function(t) {
2985
- var s = Math.PI / 180, o = this.R, d = t.lat * s, _ = this.R_MINOR / o, M = Math.sqrt(1 - _ * _), b = M * Math.sin(d), C = Math.tan(Math.PI / 4 - d / 2) / Math.pow((1 - b) / (1 + b), M / 2);
2986
- return d = -o * Math.log(Math.max(C, 1e-10)), new q(t.lng * s * o, d);
2985
+ var s = Math.PI / 180, o = this.R, d = t.lat * s, _ = this.R_MINOR / o, M = Math.sqrt(1 - _ * _), w = M * Math.sin(d), P = Math.tan(Math.PI / 4 - d / 2) / Math.pow((1 - w) / (1 + w), M / 2);
2986
+ return d = -o * Math.log(Math.max(P, 1e-10)), new q(t.lng * s * o, d);
2987
2987
  },
2988
2988
  unproject: function(t) {
2989
- for (var s = 180 / Math.PI, o = this.R, d = this.R_MINOR / o, _ = Math.sqrt(1 - d * d), M = Math.exp(-t.y / o), b = Math.PI / 2 - 2 * Math.atan(M), C = 0, k = 0.1, E; C < 15 && Math.abs(k) > 1e-7; C++)
2990
- E = _ * Math.sin(b), E = Math.pow((1 - E) / (1 + E), _ / 2), k = Math.PI / 2 - 2 * Math.atan(M * E) - b, b += k;
2991
- return new Y(b * s, t.x * s / o);
2989
+ for (var s = 180 / Math.PI, o = this.R, d = this.R_MINOR / o, _ = Math.sqrt(1 - d * d), M = Math.exp(-t.y / o), w = Math.PI / 2 - 2 * Math.atan(M), P = 0, k = 0.1, E; P < 15 && Math.abs(k) > 1e-7; P++)
2990
+ E = _ * Math.sin(w), E = Math.pow((1 - E) / (1 + E), _ / 2), k = Math.PI / 2 - 2 * Math.atan(M * E) - w, w += k;
2991
+ return new Y(w * s, t.x * s / o);
2992
2992
  }
2993
2993
  }, xo = {
2994
2994
  __proto__: null,
@@ -3403,14 +3403,14 @@ function an() {
3403
3403
  return this._draggable && this._draggable._moved;
3404
3404
  },
3405
3405
  _adjustPan: function(t) {
3406
- var s = this._marker, o = s._map, d = this._marker.options.autoPanSpeed, _ = this._marker.options.autoPanPadding, M = de(s._icon), b = o.getPixelBounds(), C = o.getPixelOrigin(), k = gt(
3407
- b.min._subtract(C).add(_),
3408
- b.max._subtract(C).subtract(_)
3406
+ var s = this._marker, o = s._map, d = this._marker.options.autoPanSpeed, _ = this._marker.options.autoPanPadding, M = de(s._icon), w = o.getPixelBounds(), P = o.getPixelOrigin(), k = gt(
3407
+ w.min._subtract(P).add(_),
3408
+ w.max._subtract(P).subtract(_)
3409
3409
  );
3410
3410
  if (!k.contains(M)) {
3411
3411
  var E = F(
3412
- (Math.max(k.max.x, M.x) - k.max.x) / (b.max.x - k.max.x) - (Math.min(k.min.x, M.x) - k.min.x) / (b.min.x - k.min.x),
3413
- (Math.max(k.max.y, M.y) - k.max.y) / (b.max.y - k.max.y) - (Math.min(k.min.y, M.y) - k.min.y) / (b.min.y - k.min.y)
3412
+ (Math.max(k.max.x, M.x) - k.max.x) / (w.max.x - k.max.x) - (Math.min(k.min.x, M.x) - k.min.x) / (w.min.x - k.min.x),
3413
+ (Math.max(k.max.y, M.y) - k.max.y) / (w.max.y - k.max.y) - (Math.min(k.min.y, M.y) - k.min.y) / (w.min.y - k.min.y)
3414
3414
  ).multiplyBy(d);
3415
3415
  o.panBy(E, { animate: !1 }), this._draggable._newPos._add(E), this._draggable._startPos._add(E), ft(s._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = K(this._adjustPan.bind(this, t));
3416
3416
  }
@@ -3792,8 +3792,8 @@ function an() {
3792
3792
  _project: function() {
3793
3793
  var t = this._latlng.lng, s = this._latlng.lat, o = this._map, d = o.options.crs;
3794
3794
  if (d.distance === ee.distance) {
3795
- var _ = Math.PI / 180, M = this._mRadius / ee.R / _, b = o.project([s + M, t]), C = o.project([s - M, t]), k = b.add(C).divideBy(2), E = o.unproject(k).lat, z = Math.acos((Math.cos(M * _) - Math.sin(s * _) * Math.sin(E * _)) / (Math.cos(s * _) * Math.cos(E * _))) / _;
3796
- (isNaN(z) || z === 0) && (z = M / Math.cos(Math.PI / 180 * s)), this._point = k.subtract(o.getPixelOrigin()), this._radius = isNaN(z) ? 0 : k.x - o.project([E, t - z]).x, this._radiusY = k.y - b.y;
3795
+ var _ = Math.PI / 180, M = this._mRadius / ee.R / _, w = o.project([s + M, t]), P = o.project([s - M, t]), k = w.add(P).divideBy(2), E = o.unproject(k).lat, z = Math.acos((Math.cos(M * _) - Math.sin(s * _) * Math.sin(E * _)) / (Math.cos(s * _) * Math.cos(E * _))) / _;
3796
+ (isNaN(z) || z === 0) && (z = M / Math.cos(Math.PI / 180 * s)), this._point = k.subtract(o.getPixelOrigin()), this._radius = isNaN(z) ? 0 : k.x - o.project([E, t - z]).x, this._radiusY = k.y - w.y;
3797
3797
  } else {
3798
3798
  var Z = d.unproject(d.project(this._latlng).subtract([this._mRadius, 0]));
3799
3799
  this._point = o.latLngToLayerPoint(this._latlng), this._radius = this._point.x - o.latLngToLayerPoint(Z).x;
@@ -3837,8 +3837,8 @@ function an() {
3837
3837
  // @method closestLayerPoint(p: Point): Point
3838
3838
  // Returns the point closest to `p` on the Polyline.
3839
3839
  closestLayerPoint: function(t) {
3840
- for (var s = 1 / 0, o = null, d = $e, _, M, b = 0, C = this._parts.length; b < C; b++)
3841
- for (var k = this._parts[b], E = 1, z = k.length; E < z; E++) {
3840
+ for (var s = 1 / 0, o = null, d = $e, _, M, w = 0, P = this._parts.length; w < P; w++)
3841
+ for (var k = this._parts[w], E = 1, z = k.length; E < z; E++) {
3842
3842
  _ = k[E - 1], M = k[E];
3843
3843
  var Z = d(t, _, M, !0);
3844
3844
  Z < s && (s = Z, o = d(t, _, M));
@@ -3889,11 +3889,11 @@ function an() {
3889
3889
  },
3890
3890
  // recursively turns latlngs into a set of rings with projected coordinates
3891
3891
  _projectLatlngs: function(t, s, o) {
3892
- var d = t[0] instanceof Y, _ = t.length, M, b;
3892
+ var d = t[0] instanceof Y, _ = t.length, M, w;
3893
3893
  if (d) {
3894
- for (b = [], M = 0; M < _; M++)
3895
- b[M] = this._map.latLngToLayerPoint(t[M]), o.extend(b[M]);
3896
- s.push(b);
3894
+ for (w = [], M = 0; M < _; M++)
3895
+ w[M] = this._map.latLngToLayerPoint(t[M]), o.extend(w[M]);
3896
+ s.push(w);
3897
3897
  } else
3898
3898
  for (M = 0; M < _; M++)
3899
3899
  this._projectLatlngs(t[M], s, o);
@@ -3906,10 +3906,10 @@ function an() {
3906
3906
  this._parts = this._rings;
3907
3907
  return;
3908
3908
  }
3909
- var s = this._parts, o, d, _, M, b, C, k;
3909
+ var s = this._parts, o, d, _, M, w, P, k;
3910
3910
  for (o = 0, _ = 0, M = this._rings.length; o < M; o++)
3911
- for (k = this._rings[o], d = 0, b = k.length; d < b - 1; d++)
3912
- C = Ws(k[d], k[d + 1], t, d, !0), C && (s[_] = s[_] || [], s[_].push(C[0]), (C[1] !== k[d + 1] || d === b - 2) && (s[_].push(C[1]), _++));
3911
+ for (k = this._rings[o], d = 0, w = k.length; d < w - 1; d++)
3912
+ P = Ws(k[d], k[d + 1], t, d, !0), P && (s[_] = s[_] || [], s[_].push(P[0]), (P[1] !== k[d + 1] || d === w - 2) && (s[_].push(P[1]), _++));
3913
3913
  }
3914
3914
  },
3915
3915
  // simplify each clipped part of the polyline for performance
@@ -3925,12 +3925,12 @@ function an() {
3925
3925
  },
3926
3926
  // Needed by the `Canvas` renderer for interactivity
3927
3927
  _containsPoint: function(t, s) {
3928
- var o, d, _, M, b, C, k = this._clickTolerance();
3928
+ var o, d, _, M, w, P, k = this._clickTolerance();
3929
3929
  if (!this._pxBounds || !this._pxBounds.contains(t))
3930
3930
  return !1;
3931
3931
  for (o = 0, M = this._parts.length; o < M; o++)
3932
- for (C = this._parts[o], d = 0, b = C.length, _ = b - 1; d < b; _ = d++)
3933
- if (!(!s && d === 0) && qs(t, C[_], C[d]) <= k)
3932
+ for (P = this._parts[o], d = 0, w = P.length, _ = w - 1; d < w; _ = d++)
3933
+ if (!(!s && d === 0) && qs(t, P[_], P[d]) <= k)
3934
3934
  return !0;
3935
3935
  return !1;
3936
3936
  }
@@ -3979,12 +3979,12 @@ function an() {
3979
3979
  },
3980
3980
  // Needed by the `Canvas` renderer for interactivity
3981
3981
  _containsPoint: function(t) {
3982
- var s = !1, o, d, _, M, b, C, k, E;
3982
+ var s = !1, o, d, _, M, w, P, k, E;
3983
3983
  if (!this._pxBounds || !this._pxBounds.contains(t))
3984
3984
  return !1;
3985
3985
  for (M = 0, k = this._parts.length; M < k; M++)
3986
- for (o = this._parts[M], b = 0, E = o.length, C = E - 1; b < E; C = b++)
3987
- d = o[b], _ = o[C], d.y > t.y != _.y > t.y && t.x < (_.x - d.x) * (t.y - d.y) / (_.y - d.y) + d.x && (s = !s);
3986
+ for (o = this._parts[M], w = 0, E = o.length, P = E - 1; w < E; P = w++)
3987
+ d = o[w], _ = o[P], d.y > t.y != _.y > t.y && t.x < (_.x - d.x) * (t.y - d.y) / (_.y - d.y) + d.x && (s = !s);
3988
3988
  return s || Xt.prototype._containsPoint.call(this, t, !0);
3989
3989
  }
3990
3990
  });
@@ -4056,8 +4056,8 @@ function an() {
4056
4056
  var M = this.options;
4057
4057
  if (M.filter && !M.filter(t))
4058
4058
  return this;
4059
- var b = Ai(t, M);
4060
- return b ? (b.feature = zi(t), b.defaultOptions = b.options, this.resetStyle(b), M.onEachFeature && M.onEachFeature(t, b), this.addLayer(b)) : this;
4059
+ var w = Ai(t, M);
4060
+ return w ? (w.feature = zi(t), w.defaultOptions = w.options, this.resetStyle(w), M.onEachFeature && M.onEachFeature(t, w), this.addLayer(w)) : this;
4061
4061
  },
4062
4062
  // @method resetStyle( <Path> layer? ): this
4063
4063
  // Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
@@ -4077,22 +4077,22 @@ function an() {
4077
4077
  }
4078
4078
  });
4079
4079
  function Ai(t, s) {
4080
- var o = t.type === "Feature" ? t.geometry : t, d = o ? o.coordinates : null, _ = [], M = s && s.pointToLayer, b = s && s.coordsToLatLng || Rn, C, k, E, z;
4080
+ var o = t.type === "Feature" ? t.geometry : t, d = o ? o.coordinates : null, _ = [], M = s && s.pointToLayer, w = s && s.coordsToLatLng || Rn, P, k, E, z;
4081
4081
  if (!d && !o)
4082
4082
  return null;
4083
4083
  switch (o.type) {
4084
4084
  case "Point":
4085
- return C = b(d), Js(M, t, C, s);
4085
+ return P = w(d), Js(M, t, P, s);
4086
4086
  case "MultiPoint":
4087
4087
  for (E = 0, z = d.length; E < z; E++)
4088
- C = b(d[E]), _.push(Js(M, t, C, s));
4088
+ P = w(d[E]), _.push(Js(M, t, P, s));
4089
4089
  return new Kt(_);
4090
4090
  case "LineString":
4091
4091
  case "MultiLineString":
4092
- return k = Ii(d, o.type === "LineString" ? 0 : 1, b), new Xt(k, s);
4092
+ return k = Ii(d, o.type === "LineString" ? 0 : 1, w), new Xt(k, s);
4093
4093
  case "Polygon":
4094
4094
  case "MultiPolygon":
4095
- return k = Ii(d, o.type === "Polygon" ? 1 : 2, b), new be(k, s);
4095
+ return k = Ii(d, o.type === "Polygon" ? 1 : 2, w), new be(k, s);
4096
4096
  case "GeometryCollection":
4097
4097
  for (E = 0, z = o.geometries.length; E < z; E++) {
4098
4098
  var Z = Ai({
@@ -4120,15 +4120,15 @@ function an() {
4120
4120
  return new Y(t[1], t[0], t[2]);
4121
4121
  }
4122
4122
  function Ii(t, s, o) {
4123
- for (var d = [], _ = 0, M = t.length, b; _ < M; _++)
4124
- b = s ? Ii(t[_], s - 1, o) : (o || Rn)(t[_]), d.push(b);
4123
+ for (var d = [], _ = 0, M = t.length, w; _ < M; _++)
4124
+ w = s ? Ii(t[_], s - 1, o) : (o || Rn)(t[_]), d.push(w);
4125
4125
  return d;
4126
4126
  }
4127
4127
  function Zn(t, s) {
4128
4128
  return t = $(t), t.alt !== void 0 ? [c(t.lng, s), c(t.lat, s), c(t.alt, s)] : [c(t.lng, s), c(t.lat, s)];
4129
4129
  }
4130
4130
  function Oi(t, s, o, d) {
4131
- for (var _ = [], M = 0, b = t.length; M < b; M++)
4131
+ for (var _ = [], M = 0, w = t.length; M < w; M++)
4132
4132
  _.push(s ? Oi(t[M], Ot(t[M]) ? 0 : s - 1, o, d) : Zn(t[M], d));
4133
4133
  return !s && o && _.length > 0 && _.push(_[0].slice()), _;
4134
4134
  }
@@ -4190,8 +4190,8 @@ function an() {
4190
4190
  if (o)
4191
4191
  d.push(M.geometry);
4192
4192
  else {
4193
- var b = zi(M);
4194
- b.type === "FeatureCollection" ? d.push.apply(d, b.features) : d.push(b);
4193
+ var w = zi(M);
4194
+ w.type === "FeatureCollection" ? d.push.apply(d, w.features) : d.push(w);
4195
4195
  }
4196
4196
  }
4197
4197
  }), o ? Pe(this, {
@@ -4363,8 +4363,8 @@ function an() {
4363
4363
  }
4364
4364
  A(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(s.style, "objectFit") && (s.style.objectFit = "fill"), s.autoplay = !!this.options.autoplay, s.loop = !!this.options.loop, s.muted = !!this.options.muted, s.playsInline = !!this.options.playsInline;
4365
4365
  for (var M = 0; M < this._url.length; M++) {
4366
- var b = Q("source");
4367
- b.src = this._url[M], s.appendChild(b);
4366
+ var w = Q("source");
4367
+ w.src = this._url[M], s.appendChild(w);
4368
4368
  }
4369
4369
  }
4370
4370
  // @method getElement(): HTMLVideoElement
@@ -4662,8 +4662,8 @@ function an() {
4662
4662
  }
4663
4663
  var t = this._map, s = parseInt(Ue(this._container, "marginBottom"), 10) || 0, o = this._container.offsetHeight + s, d = this._containerWidth, _ = new q(this._containerLeft, -o - this._containerBottom);
4664
4664
  _._add(de(this._container));
4665
- var M = t.layerPointToContainerPoint(_), b = F(this.options.autoPanPadding), C = F(this.options.autoPanPaddingTopLeft || b), k = F(this.options.autoPanPaddingBottomRight || b), E = t.getSize(), z = 0, Z = 0;
4666
- M.x + d + k.x > E.x && (z = M.x + d - E.x + k.x), M.x - z - C.x < 0 && (z = M.x - C.x), M.y + o + k.y > E.y && (Z = M.y + o - E.y + k.y), M.y - Z - C.y < 0 && (Z = M.y - C.y), (z || Z) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([z, Z]));
4665
+ var M = t.layerPointToContainerPoint(_), w = F(this.options.autoPanPadding), P = F(this.options.autoPanPaddingTopLeft || w), k = F(this.options.autoPanPaddingBottomRight || w), E = t.getSize(), z = 0, Z = 0;
4666
+ M.x + d + k.x > E.x && (z = M.x + d - E.x + k.x), M.x - z - P.x < 0 && (z = M.x - P.x), M.y + o + k.y > E.y && (Z = M.y + o - E.y + k.y), M.y - Z - P.y < 0 && (Z = M.y - P.y), (z || Z) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([z, Z]));
4667
4667
  }
4668
4668
  },
4669
4669
  _getAnchor: function() {
@@ -4804,8 +4804,8 @@ function an() {
4804
4804
  _adjustPan: function() {
4805
4805
  },
4806
4806
  _setPosition: function(t) {
4807
- var s, o, d = this._map, _ = this._container, M = d.latLngToContainerPoint(d.getCenter()), b = d.layerPointToContainerPoint(t), C = this.options.direction, k = _.offsetWidth, E = _.offsetHeight, z = F(this.options.offset), Z = this._getAnchor();
4808
- C === "top" ? (s = k / 2, o = E) : C === "bottom" ? (s = k / 2, o = 0) : C === "center" ? (s = k / 2, o = E / 2) : C === "right" ? (s = 0, o = E / 2) : C === "left" ? (s = k, o = E / 2) : b.x < M.x ? (C = "right", s = 0, o = E / 2) : (C = "left", s = k + (z.x + Z.x) * 2, o = E / 2), t = t.subtract(F(s, o, !0)).add(z).add(Z), ct(_, "leaflet-tooltip-right"), ct(_, "leaflet-tooltip-left"), ct(_, "leaflet-tooltip-top"), ct(_, "leaflet-tooltip-bottom"), W(_, "leaflet-tooltip-" + C), ft(_, t);
4807
+ var s, o, d = this._map, _ = this._container, M = d.latLngToContainerPoint(d.getCenter()), w = d.layerPointToContainerPoint(t), P = this.options.direction, k = _.offsetWidth, E = _.offsetHeight, z = F(this.options.offset), Z = this._getAnchor();
4808
+ P === "top" ? (s = k / 2, o = E) : P === "bottom" ? (s = k / 2, o = 0) : P === "center" ? (s = k / 2, o = E / 2) : P === "right" ? (s = 0, o = E / 2) : P === "left" ? (s = k, o = E / 2) : w.x < M.x ? (P = "right", s = 0, o = E / 2) : (P = "left", s = k + (z.x + Z.x) * 2, o = E / 2), t = t.subtract(F(s, o, !0)).add(z).add(Z), ct(_, "leaflet-tooltip-right"), ct(_, "leaflet-tooltip-left"), ct(_, "leaflet-tooltip-top"), ct(_, "leaflet-tooltip-bottom"), W(_, "leaflet-tooltip-" + P), ft(_, t);
4809
4809
  },
4810
4810
  _updatePosition: function() {
4811
4811
  var t = this._map.latLngToLayerPoint(this._latlng);
@@ -5163,17 +5163,17 @@ function an() {
5163
5163
  this._removeAllTiles(), this._tileZoom = void 0;
5164
5164
  },
5165
5165
  _retainParent: function(t, s, o, d) {
5166
- var _ = Math.floor(t / 2), M = Math.floor(s / 2), b = o - 1, C = new q(+_, +M);
5167
- C.z = +b;
5168
- var k = this._tileCoordsToKey(C), E = this._tiles[k];
5169
- return E && E.active ? (E.retain = !0, !0) : (E && E.loaded && (E.retain = !0), b > d ? this._retainParent(_, M, b, d) : !1);
5166
+ var _ = Math.floor(t / 2), M = Math.floor(s / 2), w = o - 1, P = new q(+_, +M);
5167
+ P.z = +w;
5168
+ var k = this._tileCoordsToKey(P), E = this._tiles[k];
5169
+ return E && E.active ? (E.retain = !0, !0) : (E && E.loaded && (E.retain = !0), w > d ? this._retainParent(_, M, w, d) : !1);
5170
5170
  },
5171
5171
  _retainChildren: function(t, s, o, d) {
5172
5172
  for (var _ = 2 * t; _ < 2 * t + 2; _++)
5173
5173
  for (var M = 2 * s; M < 2 * s + 2; M++) {
5174
- var b = new q(_, M);
5175
- b.z = o + 1;
5176
- var C = this._tileCoordsToKey(b), k = this._tiles[C];
5174
+ var w = new q(_, M);
5175
+ w.z = o + 1;
5176
+ var P = this._tileCoordsToKey(w), k = this._tiles[P];
5177
5177
  if (k && k.active) {
5178
5178
  k.retain = !0;
5179
5179
  continue;
@@ -5229,9 +5229,9 @@ function an() {
5229
5229
  if (s) {
5230
5230
  var o = this._clampZoom(s.getZoom());
5231
5231
  if (t === void 0 && (t = s.getCenter()), this._tileZoom !== void 0) {
5232
- var d = this._getTiledPixelBounds(t), _ = this._pxBoundsToTileRange(d), M = _.getCenter(), b = [], C = this.options.keepBuffer, k = new rt(
5233
- _.getBottomLeft().subtract([C, -C]),
5234
- _.getTopRight().add([C, -C])
5232
+ var d = this._getTiledPixelBounds(t), _ = this._pxBoundsToTileRange(d), M = _.getCenter(), w = [], P = this.options.keepBuffer, k = new rt(
5233
+ _.getBottomLeft().subtract([P, -P]),
5234
+ _.getTopRight().add([P, -P])
5235
5235
  );
5236
5236
  if (!(isFinite(_.min.x) && isFinite(_.min.y) && isFinite(_.max.x) && isFinite(_.max.y)))
5237
5237
  throw new Error("Attempted to load an infinite number of tiles");
@@ -5248,16 +5248,16 @@ function an() {
5248
5248
  var wt = new q(V, Z);
5249
5249
  if (wt.z = this._tileZoom, !!this._isValidTile(wt)) {
5250
5250
  var mt = this._tiles[this._tileCoordsToKey(wt)];
5251
- mt ? mt.current = !0 : b.push(wt);
5251
+ mt ? mt.current = !0 : w.push(wt);
5252
5252
  }
5253
5253
  }
5254
- if (b.sort(function(kt, ke) {
5254
+ if (w.sort(function(kt, ke) {
5255
5255
  return kt.distanceTo(M) - ke.distanceTo(M);
5256
- }), b.length !== 0) {
5256
+ }), w.length !== 0) {
5257
5257
  this._loading || (this._loading = !0, this.fire("loading"));
5258
5258
  var zt = document.createDocumentFragment();
5259
- for (V = 0; V < b.length; V++)
5260
- this._addTile(b[V], zt);
5259
+ for (V = 0; V < w.length; V++)
5260
+ this._addTile(w[V], zt);
5261
5261
  this._level.el.appendChild(zt);
5262
5262
  }
5263
5263
  }
@@ -5279,8 +5279,8 @@ function an() {
5279
5279
  return this._tileCoordsToBounds(this._keyToTileCoords(t));
5280
5280
  },
5281
5281
  _tileCoordsToNwSe: function(t) {
5282
- var s = this._map, o = this.getTileSize(), d = t.scaleBy(o), _ = d.add(o), M = s.unproject(d, t.z), b = s.unproject(_, t.z);
5283
- return [M, b];
5282
+ var s = this._map, o = this.getTileSize(), d = t.scaleBy(o), _ = d.add(o), M = s.unproject(d, t.z), w = s.unproject(_, t.z);
5283
+ return [M, w];
5284
5284
  },
5285
5285
  // converts tile coordinates to its geographical bounds
5286
5286
  _tileCoordsToBounds: function(t) {
@@ -5530,8 +5530,8 @@ function an() {
5530
5530
  this.wmsParams[s] = this._crs.code, Ce.prototype.onAdd.call(this, t);
5531
5531
  },
5532
5532
  getTileUrl: function(t) {
5533
- var s = this._tileCoordsToNwSe(t), o = this._crs, d = gt(o.project(s[0]), o.project(s[1])), _ = d.min, M = d.max, b = (this._wmsVersion >= 1.3 && this._crs === Ks ? [_.y, _.x, M.y, M.x] : [_.x, _.y, M.x, M.y]).join(","), C = Ce.prototype.getTileUrl.call(this, t);
5534
- return C + w(this.wmsParams, C, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + b;
5533
+ var s = this._tileCoordsToNwSe(t), o = this._crs, d = gt(o.project(s[0]), o.project(s[1])), _ = d.min, M = d.max, w = (this._wmsVersion >= 1.3 && this._crs === Ks ? [_.y, _.x, M.y, M.x] : [_.x, _.y, M.x, M.y]).join(","), P = Ce.prototype.getTileUrl.call(this, t);
5534
+ return P + b(this.wmsParams, P, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + w;
5535
5535
  },
5536
5536
  // @method setParams(params: Object, noRedraw?: Boolean): this
5537
5537
  // Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).
@@ -5708,11 +5708,11 @@ function an() {
5708
5708
  },
5709
5709
  _updatePoly: function(t, s) {
5710
5710
  if (this._drawing) {
5711
- var o, d, _, M, b = t._parts, C = b.length, k = this._ctx;
5712
- if (C) {
5713
- for (k.beginPath(), o = 0; o < C; o++) {
5714
- for (d = 0, _ = b[o].length; d < _; d++)
5715
- M = b[o][d], k[d ? "lineTo" : "moveTo"](M.x, M.y);
5711
+ var o, d, _, M, w = t._parts, P = w.length, k = this._ctx;
5712
+ if (P) {
5713
+ for (k.beginPath(), o = 0; o < P; o++) {
5714
+ for (d = 0, _ = w[o].length; d < _; d++)
5715
+ M = w[o][d], k[d ? "lineTo" : "moveTo"](M.x, M.y);
5716
5716
  s && k.closePath();
5717
5717
  }
5718
5718
  this._fillStroke(k, t);
@@ -6102,8 +6102,8 @@ function an() {
6102
6102
  }
6103
6103
  },
6104
6104
  _onPreDragWrap: function() {
6105
- var t = this._worldWidth, s = Math.round(t / 2), o = this._initialWorldOffset, d = this._draggable._newPos.x, _ = (d - s + o) % t + s - o, M = (d + s + o) % t - s - o, b = Math.abs(_ + o) < Math.abs(M + o) ? _ : M;
6106
- this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x = b;
6105
+ var t = this._worldWidth, s = Math.round(t / 2), o = this._initialWorldOffset, d = this._draggable._newPos.x, _ = (d - s + o) % t + s - o, M = (d + s + o) % t - s - o, w = Math.abs(_ + o) < Math.abs(M + o) ? _ : M;
6106
+ this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x = w;
6107
6107
  },
6108
6108
  _onDragEnd: function(t) {
6109
6109
  var s = this._map, o = s.options, d = !o.inertia || t.noInertia || this._times.length < 2;
@@ -6111,11 +6111,11 @@ function an() {
6111
6111
  s.fire("moveend");
6112
6112
  else {
6113
6113
  this._prunePositions(+/* @__PURE__ */ new Date());
6114
- var _ = this._lastPos.subtract(this._positions[0]), M = (this._lastTime - this._times[0]) / 1e3, b = o.easeLinearity, C = _.multiplyBy(b / M), k = C.distanceTo([0, 0]), E = Math.min(o.inertiaMaxSpeed, k), z = C.multiplyBy(E / k), Z = E / (o.inertiaDeceleration * b), V = z.multiplyBy(-Z / 2).round();
6114
+ var _ = this._lastPos.subtract(this._positions[0]), M = (this._lastTime - this._times[0]) / 1e3, w = o.easeLinearity, P = _.multiplyBy(w / M), k = P.distanceTo([0, 0]), E = Math.min(o.inertiaMaxSpeed, k), z = P.multiplyBy(E / k), Z = E / (o.inertiaDeceleration * w), V = z.multiplyBy(-Z / 2).round();
6115
6115
  !V.x && !V.y ? s.fire("moveend") : (V = s._limitOffset(V, s.options.maxBounds), K(function() {
6116
6116
  s.panBy(V, {
6117
6117
  duration: Z,
6118
- easeLinearity: b,
6118
+ easeLinearity: w,
6119
6119
  noMoveStart: !0,
6120
6120
  animate: !0
6121
6121
  });
@@ -6253,8 +6253,8 @@ function an() {
6253
6253
  _performZoom: function() {
6254
6254
  var t = this._map, s = t.getZoom(), o = this._map.options.zoomSnap || 0;
6255
6255
  t._stop();
6256
- var d = this._delta / (this._map.options.wheelPxPerZoomLevel * 4), _ = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(d)))) / Math.LN2, M = o ? Math.ceil(_ / o) * o : _, b = t._limitZoom(s + (this._delta > 0 ? M : -M)) - s;
6257
- this._delta = 0, this._startTime = null, b && (t.options.scrollWheelZoom === "center" ? t.setZoom(s + b) : t.setZoomAround(this._lastMousePos, s + b));
6256
+ var d = this._delta / (this._map.options.wheelPxPerZoomLevel * 4), _ = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(d)))) / Math.LN2, M = o ? Math.ceil(_ / o) * o : _, w = t._limitZoom(s + (this._delta > 0 ? M : -M)) - s;
6257
+ this._delta = 0, this._startTime = null, w && (t.options.scrollWheelZoom === "center" ? t.setZoom(s + w) : t.setZoomAround(this._lastMousePos, s + w));
6258
6258
  }
6259
6259
  });
6260
6260
  X.addInitHook("addHandler", "scrollWheelZoom", da);
@@ -6353,8 +6353,8 @@ function an() {
6353
6353
  this._center = s.unproject(s.project(this._pinchStartLatLng, this._zoom).subtract(M), this._zoom);
6354
6354
  }
6355
6355
  this._moved || (s._moveStart(!0, !1), this._moved = !0), nt(this._animRequest);
6356
- var b = l(s._move, s, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
6357
- this._animRequest = K(b, this, !0), vt(t);
6356
+ var w = l(s._move, s, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
6357
+ this._animRequest = K(w, this, !0), vt(t);
6358
6358
  }
6359
6359
  },
6360
6360
  _onTouchEnd: function() {
@@ -6667,7 +6667,7 @@ var wa = { exports: {} };
6667
6667
  return this.addLayer(a);
6668
6668
  var u = this._featureGroup, f = this._nonPointGroup, m = this.options.chunkedLoading, y = this.options.chunkInterval, p = this.options.chunkProgress, c = a.length, g = 0, v = !0, x;
6669
6669
  if (this._map) {
6670
- var w = (/* @__PURE__ */ new Date()).getTime(), P = L.bind(function() {
6670
+ var b = (/* @__PURE__ */ new Date()).getTime(), C = L.bind(function() {
6671
6671
  var A = (/* @__PURE__ */ new Date()).getTime();
6672
6672
  for (this._map && this._unspiderfy && this._unspiderfy(); g < c; g++) {
6673
6673
  if (m && g % 200 === 0) {
@@ -6688,9 +6688,9 @@ var wa = { exports: {} };
6688
6688
  u.removeLayer(U);
6689
6689
  }
6690
6690
  }
6691
- p && p(g, c, (/* @__PURE__ */ new Date()).getTime() - w), g === c ? (this._topClusterLevel._recalculateBounds(), this._refreshClustersIcons(), this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds)) : setTimeout(P, this.options.chunkDelay);
6691
+ p && p(g, c, (/* @__PURE__ */ new Date()).getTime() - b), g === c ? (this._topClusterLevel._recalculateBounds(), this._refreshClustersIcons(), this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds)) : setTimeout(C, this.options.chunkDelay);
6692
6692
  }, this);
6693
- P();
6693
+ C();
6694
6694
  } else
6695
6695
  for (var T = this._needsClustering; g < c; g++) {
6696
6696
  if (x = a[g], x instanceof L.LayerGroup) {
@@ -7344,13 +7344,13 @@ var wa = { exports: {} };
7344
7344
  }
7345
7345
  },
7346
7346
  getNearObject: function(a) {
7347
- var l = this._getCoord(a.x), u = this._getCoord(a.y), f, m, y, p, c, g, v, x, w = this._objectPoint, P = this._sqCellSize, T = null;
7347
+ var l = this._getCoord(a.x), u = this._getCoord(a.y), f, m, y, p, c, g, v, x, b = this._objectPoint, C = this._sqCellSize, T = null;
7348
7348
  for (f = u - 1; f <= u + 1; f++)
7349
7349
  if (p = this._grid[f], p) {
7350
7350
  for (m = l - 1; m <= l + 1; m++)
7351
7351
  if (c = p[m], c)
7352
7352
  for (y = 0, g = c.length; y < g; y++)
7353
- v = c[y], x = this._sqDist(w[L.Util.stamp(v)], a), (x < P || x <= P && T === null) && (P = x, T = v);
7353
+ v = c[y], x = this._sqDist(b[L.Util.stamp(v)], a), (x < C || x <= C && T === null) && (C = x, T = v);
7354
7354
  }
7355
7355
  return T;
7356
7356
  },
@@ -7415,10 +7415,10 @@ var wa = { exports: {} };
7415
7415
  * @returns {Array}
7416
7416
  */
7417
7417
  getConvexHull: function(a) {
7418
- var l = !1, u = !1, f = !1, m = !1, y = null, p = null, c = null, g = null, v = null, x = null, w;
7419
- for (w = a.length - 1; w >= 0; w--) {
7420
- var P = a[w];
7421
- (l === !1 || P.lat > l) && (y = P, l = P.lat), (u === !1 || P.lat < u) && (p = P, u = P.lat), (f === !1 || P.lng > f) && (c = P, f = P.lng), (m === !1 || P.lng < m) && (g = P, m = P.lng);
7418
+ var l = !1, u = !1, f = !1, m = !1, y = null, p = null, c = null, g = null, v = null, x = null, b;
7419
+ for (b = a.length - 1; b >= 0; b--) {
7420
+ var C = a[b];
7421
+ (l === !1 || C.lat > l) && (y = C, l = C.lat), (u === !1 || C.lat < u) && (p = C, u = C.lat), (f === !1 || C.lng > f) && (c = C, f = C.lng), (m === !1 || C.lng < m) && (g = C, m = C.lng);
7422
7422
  }
7423
7423
  u !== l ? (x = p, v = y) : (x = g, v = c);
7424
7424
  var T = [].concat(
@@ -7492,11 +7492,11 @@ var wa = { exports: {} };
7492
7492
  }
7493
7493
  }), L.MarkerCluster.include({
7494
7494
  _animationSpiderfy: function(a, l) {
7495
- var u = this, f = this._group, m = f._map, y = f._featureGroup, p = this._latlng, c = m.latLngToLayerPoint(p), g = L.Path.SVG, v = L.extend({}, this._group.options.spiderLegPolylineOptions), x = v.opacity, w, P, T, A, D, N;
7496
- for (x === void 0 && (x = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity), g ? (v.opacity = 0, v.className = (v.className || "") + " leaflet-cluster-spider-leg") : v.opacity = x, f._ignoreMove = !0, w = 0; w < a.length; w++)
7497
- P = a[w], N = m.layerPointToLatLng(l[w]), T = new L.Polyline([p, N], v), m.addLayer(T), P._spiderLeg = T, g && (A = T._path, D = A.getTotalLength() + 0.1, A.style.strokeDasharray = D, A.style.strokeDashoffset = D), P.setZIndexOffset && P.setZIndexOffset(1e6), P.clusterHide && P.clusterHide(), y.addLayer(P), P._setPos && P._setPos(c);
7498
- for (f._forceLayout(), f._animationStart(), w = a.length - 1; w >= 0; w--)
7499
- N = m.layerPointToLatLng(l[w]), P = a[w], P._preSpiderfyLatlng = P._latlng, P.setLatLng(N), P.clusterShow && P.clusterShow(), g && (T = P._spiderLeg, A = T._path, A.style.strokeDashoffset = 0, T.setStyle({ opacity: x }));
7495
+ var u = this, f = this._group, m = f._map, y = f._featureGroup, p = this._latlng, c = m.latLngToLayerPoint(p), g = L.Path.SVG, v = L.extend({}, this._group.options.spiderLegPolylineOptions), x = v.opacity, b, C, T, A, D, N;
7496
+ for (x === void 0 && (x = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity), g ? (v.opacity = 0, v.className = (v.className || "") + " leaflet-cluster-spider-leg") : v.opacity = x, f._ignoreMove = !0, b = 0; b < a.length; b++)
7497
+ C = a[b], N = m.layerPointToLatLng(l[b]), T = new L.Polyline([p, N], v), m.addLayer(T), C._spiderLeg = T, g && (A = T._path, D = A.getTotalLength() + 0.1, A.style.strokeDasharray = D, A.style.strokeDashoffset = D), C.setZIndexOffset && C.setZIndexOffset(1e6), C.clusterHide && C.clusterHide(), y.addLayer(C), C._setPos && C._setPos(c);
7498
+ for (f._forceLayout(), f._animationStart(), b = a.length - 1; b >= 0; b--)
7499
+ N = m.layerPointToLatLng(l[b]), C = a[b], C._preSpiderfyLatlng = C._latlng, C.setLatLng(N), C.clusterShow && C.clusterShow(), g && (T = C._spiderLeg, A = T._path, A.style.strokeDashoffset = 0, T.setStyle({ opacity: x }));
7500
7500
  this.setOpacity(0.3), f._ignoreMove = !1, setTimeout(function() {
7501
7501
  f._animationEnd(), f.fire("spiderfied", {
7502
7502
  cluster: u,
@@ -7505,9 +7505,9 @@ var wa = { exports: {} };
7505
7505
  }, 200);
7506
7506
  },
7507
7507
  _animationUnspiderfy: function(a) {
7508
- var l = this, u = this._group, f = u._map, m = u._featureGroup, y = a ? f._latLngToNewLayerPoint(this._latlng, a.zoom, a.center) : f.latLngToLayerPoint(this._latlng), p = this.getAllChildMarkers(null, !0), c = L.Path.SVG, g, v, x, w, P, T;
7508
+ var l = this, u = this._group, f = u._map, m = u._featureGroup, y = a ? f._latLngToNewLayerPoint(this._latlng, a.zoom, a.center) : f.latLngToLayerPoint(this._latlng), p = this.getAllChildMarkers(null, !0), c = L.Path.SVG, g, v, x, b, C, T;
7509
7509
  for (u._ignoreMove = !0, u._animationStart(), this.setOpacity(1), v = p.length - 1; v >= 0; v--)
7510
- g = p[v], g._preSpiderfyLatlng && (g.closePopup(), g.setLatLng(g._preSpiderfyLatlng), delete g._preSpiderfyLatlng, T = !0, g._setPos && (g._setPos(y), T = !1), g.clusterHide && (g.clusterHide(), T = !1), T && m.removeLayer(g), c && (x = g._spiderLeg, w = x._path, P = w.getTotalLength() + 0.1, w.style.strokeDashoffset = P, x.setStyle({ opacity: 0 })));
7510
+ g = p[v], g._preSpiderfyLatlng && (g.closePopup(), g.setLatLng(g._preSpiderfyLatlng), delete g._preSpiderfyLatlng, T = !0, g._setPos && (g._setPos(y), T = !1), g.clusterHide && (g.clusterHide(), T = !1), T && m.removeLayer(g), c && (x = g._spiderLeg, b = x._path, C = b.getTotalLength() + 0.1, b.style.strokeDashoffset = C, x.setStyle({ opacity: 0 })));
7511
7511
  u._ignoreMove = !1, setTimeout(function() {
7512
7512
  var A = 0;
7513
7513
  for (v = p.length - 1; v >= 0; v--)
@@ -7782,7 +7782,8 @@ function gh(e, i, n) {
7782
7782
  },
7783
7783
  onClick(g) {
7784
7784
  const v = (x) => {
7785
- g(r, i);
7785
+ var b;
7786
+ g(r, i), (b = x == null ? void 0 : x.originalEvent) == null || b.stopPropagation();
7786
7787
  };
7787
7788
  r.on("click", v), u.push(() => {
7788
7789
  r.off("click", v);
@@ -9238,35 +9239,35 @@ L.Map.addInitHook(function() {
9238
9239
  });
9239
9240
  const ir = function() {
9240
9241
  const e = function(v, x) {
9241
- var w = a(v, x), P = r(w.lng, w.lat);
9242
- return P;
9242
+ var b = a(v, x), C = r(b.lng, b.lat);
9243
+ return C;
9243
9244
  }, i = function(v, x) {
9244
- var w = n(v, x), P = h(w.lng, w.lat);
9245
- return P;
9245
+ var b = n(v, x), C = h(b.lng, b.lat);
9246
+ return C;
9246
9247
  }, n = function(v, x) {
9247
- var w = p(v - 105, x - 35), P = c(v - 105, x - 35), T = x / 180 * l, A = Math.sin(T);
9248
+ var b = p(v - 105, x - 35), C = c(v - 105, x - 35), T = x / 180 * l, A = Math.sin(T);
9248
9249
  A = 1 - f * A * A;
9249
9250
  var D = Math.sqrt(A);
9250
- w = w * 180 / (u * (1 - f) / (A * D) * l), P = P * 180 / (u / D * Math.cos(T) * l);
9251
- var N = x + w, U = v + P, st = {
9251
+ b = b * 180 / (u * (1 - f) / (A * D) * l), C = C * 180 / (u / D * Math.cos(T) * l);
9252
+ var N = x + b, U = v + C, st = {
9252
9253
  lng: U,
9253
9254
  lat: N
9254
9255
  };
9255
9256
  return st;
9256
9257
  }, r = function(v, x) {
9257
- var w = y(v, x), P = v * 2 - w.lng, T = x * 2 - w.lat, A = {
9258
- lng: P,
9258
+ var b = y(v, x), C = v * 2 - b.lng, T = x * 2 - b.lat, A = {
9259
+ lng: C,
9259
9260
  lat: T
9260
9261
  };
9261
9262
  return A;
9262
9263
  }, h = function(v, x) {
9263
- var w = Math.sqrt(v * v + x * x) + 2e-5 * Math.sin(x * m), P = Math.atan2(x, v) + 3e-6 * Math.cos(v * m), T = w * Math.cos(P) + 65e-4, A = w * Math.sin(P) + 6e-3, D = {
9264
+ var b = Math.sqrt(v * v + x * x) + 2e-5 * Math.sin(x * m), C = Math.atan2(x, v) + 3e-6 * Math.cos(v * m), T = b * Math.cos(C) + 65e-4, A = b * Math.sin(C) + 6e-3, D = {
9264
9265
  lng: T,
9265
9266
  lat: A
9266
9267
  };
9267
9268
  return D;
9268
9269
  }, a = function(v, x) {
9269
- var w = v - 65e-4, P = x - 6e-3, T = Math.sqrt(w * w + P * P) - 2e-5 * Math.sin(P * m), A = Math.atan2(P, w) - 3e-6 * Math.cos(w * m), D = T * Math.cos(A), N = T * Math.sin(A), U = {
9270
+ var b = v - 65e-4, C = x - 6e-3, T = Math.sqrt(b * b + C * C) - 2e-5 * Math.sin(C * m), A = Math.atan2(C, b) - 3e-6 * Math.cos(b * m), D = T * Math.cos(A), N = T * Math.sin(A), U = {
9270
9271
  lng: D,
9271
9272
  lat: N
9272
9273
  };
@@ -9274,23 +9275,23 @@ const ir = function() {
9274
9275
  };
9275
9276
  var l = 3.141592653589793, u = 6378245, f = 0.006693421622965943, m = l * 3e3 / 180;
9276
9277
  function y(v, x) {
9277
- var w = p(v - 105, x - 35), P = c(v - 105, x - 35), T = x / 180 * l, A = Math.sin(T);
9278
+ var b = p(v - 105, x - 35), C = c(v - 105, x - 35), T = x / 180 * l, A = Math.sin(T);
9278
9279
  A = 1 - f * A * A;
9279
9280
  var D = Math.sqrt(A);
9280
- w = w * 180 / (u * (1 - f) / (A * D) * l), P = P * 180 / (u / D * Math.cos(T) * l);
9281
- var N = x + w, U = v + P, st = {
9281
+ b = b * 180 / (u * (1 - f) / (A * D) * l), C = C * 180 / (u / D * Math.cos(T) * l);
9282
+ var N = x + b, U = v + C, st = {
9282
9283
  lng: U,
9283
9284
  lat: N
9284
9285
  };
9285
9286
  return st;
9286
9287
  }
9287
9288
  function p(v, x) {
9288
- var w = -100 + 2 * v + 3 * x + 0.2 * x * x + 0.1 * v * x + 0.2 * Math.sqrt(Math.abs(v));
9289
- return w += (20 * Math.sin(6 * v * l) + 20 * Math.sin(2 * v * l)) * 2 / 3, w += (20 * Math.sin(x * l) + 40 * Math.sin(x / 3 * l)) * 2 / 3, w += (160 * Math.sin(x / 12 * l) + 320 * Math.sin(x * l / 30)) * 2 / 3, w;
9289
+ var b = -100 + 2 * v + 3 * x + 0.2 * x * x + 0.1 * v * x + 0.2 * Math.sqrt(Math.abs(v));
9290
+ return b += (20 * Math.sin(6 * v * l) + 20 * Math.sin(2 * v * l)) * 2 / 3, b += (20 * Math.sin(x * l) + 40 * Math.sin(x / 3 * l)) * 2 / 3, b += (160 * Math.sin(x / 12 * l) + 320 * Math.sin(x * l / 30)) * 2 / 3, b;
9290
9291
  }
9291
9292
  function c(v, x) {
9292
- var w = 300 + v + 2 * x + 0.1 * v * v + 0.1 * v * x + 0.1 * Math.sqrt(Math.abs(v));
9293
- return w += (20 * Math.sin(6 * v * l) + 20 * Math.sin(2 * v * l)) * 2 / 3, w += (20 * Math.sin(v * l) + 40 * Math.sin(v / 3 * l)) * 2 / 3, w += (150 * Math.sin(v / 12 * l) + 300 * Math.sin(v / 30 * l)) * 2 / 3, w;
9293
+ var b = 300 + v + 2 * x + 0.1 * v * v + 0.1 * v * x + 0.1 * Math.sqrt(Math.abs(v));
9294
+ return b += (20 * Math.sin(6 * v * l) + 20 * Math.sin(2 * v * l)) * 2 / 3, b += (20 * Math.sin(v * l) + 40 * Math.sin(v / 3 * l)) * 2 / 3, b += (150 * Math.sin(v / 12 * l) + 300 * Math.sin(v / 30 * l)) * 2 / 3, b;
9294
9295
  }
9295
9296
  return {
9296
9297
  no_trans: function(v, x) {
@@ -9483,12 +9484,12 @@ var Ph = { exports: {} };
9483
9484
  if (!(r instanceof i.Polyline))
9484
9485
  return f;
9485
9486
  if (l = JSON.parse(JSON.stringify(r.getLatLngs().slice(0))), r instanceof i.Polygon) {
9486
- var g = function(P) {
9487
- if (i.Polyline._flat(P))
9488
- P.push(P[0]);
9487
+ var g = function(C) {
9488
+ if (i.Polyline._flat(C))
9489
+ C.push(C[0]);
9489
9490
  else
9490
- for (var T = 0; T < P.length; T++)
9491
- g(P[T]);
9491
+ for (var T = 0; T < C.length; T++)
9492
+ g(C[T]);
9492
9493
  };
9493
9494
  g(l);
9494
9495
  }
@@ -9501,8 +9502,8 @@ var Ph = { exports: {} };
9501
9502
  return f;
9502
9503
  }
9503
9504
  for (m = 0, y = l.length; m < y - 1; m++) {
9504
- var x = l[m], w = l[m + 1];
9505
- p = i.GeometryUtil.distanceSegment(n, h, x, w), p <= u && (u = p, f = i.GeometryUtil.closestOnSegment(n, h, x, w), f.distance = p);
9505
+ var x = l[m], b = l[m + 1];
9506
+ p = i.GeometryUtil.distanceSegment(n, h, x, b), p <= u && (u = p, f = i.GeometryUtil.closestOnSegment(n, h, x, b), f.distance = p);
9506
9507
  }
9507
9508
  return f;
9508
9509
  } else {
@@ -9645,9 +9646,9 @@ var Ph = { exports: {} };
9645
9646
  }
9646
9647
  if (g == null && v == null)
9647
9648
  var g = u[0], v = u[1], m = 1;
9648
- var x = c - p !== 0 ? (y - p) / (c - p) : 0, w = i.GeometryUtil.interpolateOnPointSegment(g, v, x);
9649
+ var x = c - p !== 0 ? (y - p) / (c - p) : 0, b = i.GeometryUtil.interpolateOnPointSegment(g, v, x);
9649
9650
  return {
9650
- latLng: n.unproject(w, l),
9651
+ latLng: n.unproject(b, l),
9651
9652
  predecessor: m - 1
9652
9653
  };
9653
9654
  },
@@ -9795,8 +9796,8 @@ var Ph = { exports: {} };
9795
9796
  */
9796
9797
  destination: function(n, r, h) {
9797
9798
  r = (r + 360) % 360;
9798
- var a = Math.PI / 180, l = 180 / Math.PI, u = i.CRS.Earth.R, f = n.lng * a, m = n.lat * a, y = r * a, p = Math.sin(m), c = Math.cos(m), g = Math.cos(h / u), v = Math.sin(h / u), x = Math.asin(p * g + c * v * Math.cos(y)), w = f + Math.atan2(Math.sin(y) * v * c, g - p * Math.sin(x));
9799
- return w = w * l, w = w > 180 ? w - 360 : w < -180 ? w + 360 : w, i.latLng([x * l, w]);
9799
+ var a = Math.PI / 180, l = 180 / Math.PI, u = i.CRS.Earth.R, f = n.lng * a, m = n.lat * a, y = r * a, p = Math.sin(m), c = Math.cos(m), g = Math.cos(h / u), v = Math.sin(h / u), x = Math.asin(p * g + c * v * Math.cos(y)), b = f + Math.atan2(Math.sin(y) * v * c, g - p * Math.sin(x));
9800
+ return b = b * l, b = b > 180 ? b - 360 : b < -180 ? b + 360 : b, i.latLng([x * l, b]);
9800
9801
  },
9801
9802
  /**
9802
9803
  Returns the the angle of the given segment and the Equator in degrees,
@@ -9882,13 +9883,13 @@ L.Polyline.include({
9882
9883
  G += this._map.distance(c[R], c[R + 1]);
9883
9884
  return G;
9884
9885
  })();
9885
- let v, x, w, P;
9886
+ let v, x, b, C;
9886
9887
  if (isNaN(l) ? za(l) ? console.error(
9887
9888
  "Error: arrowhead frequency option cannot be given in percent. Try another unit."
9888
- ) : Hi(l) ? (w = l.slice(0, l.length - 1) / g, P = 1 / w, P = Math.floor(P), w = 1 / P) : qi(l) && (w = (() => {
9889
+ ) : Hi(l) ? (b = l.slice(0, l.length - 1) / g, C = 1 / b, C = Math.floor(C), b = 1 / C) : qi(l) && (b = (() => {
9889
9890
  let G = l.slice(0, l.length - 2);
9890
9891
  return Hn(G, this._map) / g;
9891
- })(), P = 1 / w, P = Math.floor(P), w = 1 / P) : (w = 1 / l, P = l), e.frequency === "allvertices")
9892
+ })(), C = 1 / b, C = Math.floor(C), b = 1 / C) : (b = 1 / l, C = l), e.frequency === "allvertices")
9892
9893
  x = (() => {
9893
9894
  let G = [];
9894
9895
  for (var R = 1; R < c.length; R++) {
@@ -9912,11 +9913,11 @@ L.Polyline.include({
9912
9913
  else {
9913
9914
  v = [];
9914
9915
  let G = [];
9915
- for (var T = 0; T < P; T++) {
9916
+ for (var T = 0; T < C; T++) {
9916
9917
  let R = L.GeometryUtil.interpolateOnLine(
9917
9918
  this._map,
9918
9919
  c,
9919
- w * (T + 1)
9920
+ b * (T + 1)
9920
9921
  );
9921
9922
  R && (G.push(R), v.push(R.latLng));
9922
9923
  }
@@ -10576,11 +10577,11 @@ var Ih = { exports: {} };
10576
10577
  const x = n.point(
10577
10578
  v.originalEvent.clientX,
10578
10579
  v.originalEvent.clientY
10579
- ), w = n.point(
10580
+ ), b = n.point(
10580
10581
  c.originalEvent.clientX,
10581
10582
  c.originalEvent.clientY
10582
10583
  ).distanceTo(x);
10583
- Math.abs(w) < 9 * (window.devicePixelRatio || 1) && this._drawingEditor.onDrawingClick(c);
10584
+ Math.abs(b) < 9 * (window.devicePixelRatio || 1) && this._drawingEditor.onDrawingClick(c);
10584
10585
  }
10585
10586
  },
10586
10587
  // 🍂section Public methods
@@ -10643,8 +10644,8 @@ var Ih = { exports: {} };
10643
10644
  // Start drawing a Rectangle. If `latlng` is given, the Rectangle anchor will be added. In any case, continuing on user drag.
10644
10645
  // If `options` is given, it will be passed to the Rectangle class constructor.
10645
10646
  startRectangle: function(c, g) {
10646
- const v = c || n.latLng([0, 0]), x = new n.LatLngBounds(v, v), w = this.createRectangle(x, g);
10647
- return w.enableEdit(this.map).startDrawing(), w;
10647
+ const v = c || n.latLng([0, 0]), x = new n.LatLngBounds(v, v), b = this.createRectangle(x, g);
10648
+ return b.enableEdit(this.map).startDrawing(), b;
10648
10649
  },
10649
10650
  // 🍂method startCircle(latlng: L.LatLng, options: hash): L.Circle
10650
10651
  // Start drawing a Circle. If `latlng` is given, the Circle anchor will be added. In any case, continuing on user drag.
@@ -10864,8 +10865,8 @@ var Ih = { exports: {} };
10864
10865
  className: "leaflet-div-icon leaflet-middle-icon",
10865
10866
  draggable: !0
10866
10867
  },
10867
- initialize: function(c, g, v, x, w) {
10868
- this.left = c, this.right = g, this.editor = x, this.latlngs = v, n.Marker.prototype.initialize.call(this, this.computeLatLng(), w), this._opacity = this.options.opacity, this.options.icon = this.editor.tools.createVertexIcon({
10868
+ initialize: function(c, g, v, x, b) {
10869
+ this.left = c, this.right = g, this.editor = x, this.latlngs = v, n.Marker.prototype.initialize.call(this, this.computeLatLng(), b), this._opacity = this.options.opacity, this.options.icon = this.editor.tools.createVertexIcon({
10869
10870
  className: this.options.className
10870
10871
  }), this.editor.editLayer.addLayer(this), this.setVisibility();
10871
10872
  },
@@ -10899,10 +10900,10 @@ var Ih = { exports: {} };
10899
10900
  latlng: v
10900
10901
  }, this.options.opacity === 0 || (n.Editable.makeCancellable(c), this.editor.onMiddleMarkerMouseDown(c), c._cancelled)) return;
10901
10902
  this.latlngs.splice(this.index(), 0, c.latlng), this.editor.refresh();
10902
- const x = this._icon, w = this.editor.addVertexMarker(c.latlng, this.latlngs);
10903
- this.editor.onNewVertex(w);
10904
- const P = w._icon.parentNode;
10905
- P.removeChild(w._icon), w._icon = x, P.appendChild(w._icon), w._initIcon(), w._initInteraction(), w.setOpacity(1), n.Draggable._dragging = !1, w.dragging._draggable._onDown(c.originalEvent), this.delete();
10903
+ const x = this._icon, b = this.editor.addVertexMarker(c.latlng, this.latlngs);
10904
+ this.editor.onNewVertex(b);
10905
+ const C = b._icon.parentNode;
10906
+ C.removeChild(b._icon), b._icon = x, C.appendChild(b._icon), b._initIcon(), b._initInteraction(), b.setOpacity(1), n.Draggable._dragging = !1, b.dragging._draggable._onDown(c.originalEvent), this.delete();
10906
10907
  },
10907
10908
  delete: function() {
10908
10909
  this.editor.editLayer.removeLayer(this);
@@ -11209,11 +11210,11 @@ var Ih = { exports: {} };
11209
11210
  },
11210
11211
  _deleteShape: function(c, g) {
11211
11212
  if (g = g || this.getLatLngs(), !g.length) return;
11212
- const v = (w, P) => w.splice(0, Number.MAX_VALUE), x = (w, P) => (w.splice(w.indexOf(P), 1), w.length || this._deleteShape(w), P);
11213
+ const v = (b, C) => b.splice(0, Number.MAX_VALUE), x = (b, C) => (b.splice(b.indexOf(C), 1), b.length || this._deleteShape(b), C);
11213
11214
  if (g === c) return v(g);
11214
- for (const w of g) {
11215
- if (w === c) return x(g, c);
11216
- if (w.indexOf(c) !== -1) return x(w, c);
11215
+ for (const b of g) {
11216
+ if (b === c) return x(g, c);
11217
+ if (b.indexOf(c) !== -1) return x(b, c);
11217
11218
  }
11218
11219
  },
11219
11220
  // 🍂namespace PathEditor
@@ -11285,8 +11286,8 @@ var Ih = { exports: {} };
11285
11286
  this.ensureMulti();
11286
11287
  const v = this.feature._latlngs.indexOf(c);
11287
11288
  if (v === -1) return;
11288
- const x = c.slice(0, g + 1), w = c.slice(g);
11289
- w[0] = n.latLng(w[0].lat, w[0].lng, w[0].alt), this.feature._latlngs.splice(v, 1, x, w), this.refresh(), this.reset(), this.onEdited();
11289
+ const x = c.slice(0, g + 1), b = c.slice(g);
11290
+ b[0] = n.latLng(b[0].lat, b[0].lng, b[0].alt), this.feature._latlngs.splice(v, 1, x, b), this.refresh(), this.reset(), this.onEdited();
11290
11291
  }
11291
11292
  }), n.Editable.PolygonEditor = n.Editable.PathEditor.extend({
11292
11293
  CLOSED: !0,
@@ -11335,8 +11336,8 @@ var Ih = { exports: {} };
11335
11336
  skipMiddleMarkers: !0
11336
11337
  },
11337
11338
  extendBounds: function(c) {
11338
- const g = c.vertex.getIndex(), v = c.vertex.getNext(), x = c.vertex.getPrevious(), w = (g + 2) % 4, P = c.vertex.latlngs[w], T = new n.LatLngBounds(c.latlng, P);
11339
- x.latlng.update([c.latlng.lat, P.lng]), v.latlng.update([P.lat, c.latlng.lng]), this.updateBounds(T), this.refreshVertexMarkers();
11339
+ const g = c.vertex.getIndex(), v = c.vertex.getNext(), x = c.vertex.getPrevious(), b = (g + 2) % 4, C = c.vertex.latlngs[b], T = new n.LatLngBounds(c.latlng, C);
11340
+ x.latlng.update([c.latlng.lat, C.lng]), v.latlng.update([C.lat, c.latlng.lng]), this.updateBounds(T), this.refreshVertexMarkers();
11340
11341
  },
11341
11342
  onDrawingMouseDown: function(c) {
11342
11343
  n.Editable.PathEditor.prototype.onDrawingMouseDown.call(this, c), this.connect();
@@ -11452,12 +11453,12 @@ var Ih = { exports: {} };
11452
11453
  },
11453
11454
  isInLatLngs: function(c, g) {
11454
11455
  if (!g) return !1;
11455
- let v, x, w, P = [], T;
11456
+ let v, x, b, C = [], T;
11456
11457
  const A = this._clickTolerance();
11457
- if (this._projectLatlngs(g, P, this._pxBounds), P = P[0], T = this._map.latLngToLayerPoint(c), !this._pxBounds.contains(T))
11458
+ if (this._projectLatlngs(g, C, this._pxBounds), C = C[0], T = this._map.latLngToLayerPoint(c), !this._pxBounds.contains(T))
11458
11459
  return !1;
11459
- for (v = 1, w = P.length, x = 0; v < w; x = v++)
11460
- if (n.LineUtil.pointToSegmentDistance(T, P[x], P[v]) <= A)
11460
+ for (v = 1, b = C.length, x = 0; v < b; x = v++)
11461
+ if (n.LineUtil.pointToSegmentDistance(T, C[x], C[v]) <= A)
11461
11462
  return !0;
11462
11463
  return !1;
11463
11464
  }
@@ -11477,9 +11478,9 @@ var Ih = { exports: {} };
11477
11478
  return v;
11478
11479
  },
11479
11480
  isInLatLngs: (c, g) => {
11480
- let v = !1, x, w, P, T, A;
11481
- for (P = 0, A = g.length, T = A - 1; P < A; T = P++)
11482
- x = g[P], w = g[T], x.lat > c.lat != w.lat > c.lat && c.lng < (w.lng - x.lng) * (c.lat - x.lat) / (w.lat - x.lat) + x.lng && (v = !v);
11481
+ let v = !1, x, b, C, T, A;
11482
+ for (C = 0, A = g.length, T = A - 1; C < A; T = C++)
11483
+ x = g[C], b = g[T], x.lat > c.lat != b.lat > c.lat && c.lng < (b.lng - x.lng) * (c.lat - x.lat) / (b.lat - x.lat) + x.lng && (v = !v);
11483
11484
  return v;
11484
11485
  },
11485
11486
  parentShape: function(c, g) {
@@ -13361,7 +13362,7 @@ function _r(e, i, n) {
13361
13362
  };
13362
13363
  }
13363
13364
  function mr(e, i, n, r) {
13364
- var h = 1e-12, a = h * h, l = 30, u, f, m, y, p, c, g, v, x, w, P, T, A, D = e.x, N = e.y, U = e.z ? e.z : 0, st, G, R;
13365
+ var h = 1e-12, a = h * h, l = 30, u, f, m, y, p, c, g, v, x, b, C, T, A, D = e.x, N = e.y, U = e.z ? e.z : 0, st, G, R;
13365
13366
  if (u = Math.sqrt(D * D + N * N), f = Math.sqrt(D * D + N * N + U * U), u / n < h) {
13366
13367
  if (st = 0, f / n < h)
13367
13368
  return G = S, R = -r, {
@@ -13373,9 +13374,9 @@ function mr(e, i, n, r) {
13373
13374
  st = Math.atan2(N, D);
13374
13375
  m = U / f, y = u / f, p = 1 / Math.sqrt(1 - i * (2 - i) * y * y), v = y * (1 - i) * p, x = m * p, A = 0;
13375
13376
  do
13376
- A++, g = n / Math.sqrt(1 - i * x * x), R = u * v + U * x - g * (1 - i * x * x), c = i * g / (g + R), p = 1 / Math.sqrt(1 - c * (2 - c) * y * y), w = y * (1 - c) * p, P = m * p, T = P * v - w * x, v = w, x = P;
13377
+ A++, g = n / Math.sqrt(1 - i * x * x), R = u * v + U * x - g * (1 - i * x * x), c = i * g / (g + R), p = 1 / Math.sqrt(1 - c * (2 - c) * y * y), b = y * (1 - c) * p, C = m * p, T = C * v - b * x, v = b, x = C;
13377
13378
  while (T * T > a && A < l);
13378
- return G = Math.atan(P / Math.abs(w)), {
13379
+ return G = Math.atan(C / Math.abs(b)), {
13379
13380
  x: st,
13380
13381
  y: G,
13381
13382
  z: R
@@ -13453,8 +13454,8 @@ function Ua(e, i, n) {
13453
13454
  continue;
13454
13455
  }
13455
13456
  for (var f = u.grid.subgrids, m = 0, y = f.length; m < y; m++) {
13456
- var p = f[m], c = (Math.abs(p.del[1]) + Math.abs(p.del[0])) / 1e4, g = p.ll[0] - c, v = p.ll[1] - c, x = p.ll[0] + (p.lim[0] - 1) * p.del[0] + c, w = p.ll[1] + (p.lim[1] - 1) * p.del[1] + c;
13457
- if (!(v > r.y || g > r.x || w < r.y || x < r.x) && (h = Jl(r, i, p), !isNaN(h.x)))
13457
+ var p = f[m], c = (Math.abs(p.del[1]) + Math.abs(p.del[0])) / 1e4, g = p.ll[0] - c, v = p.ll[1] - c, x = p.ll[0] + (p.lim[0] - 1) * p.del[0] + c, b = p.ll[1] + (p.lim[1] - 1) * p.del[1] + c;
13458
+ if (!(v > r.y || g > r.x || b < r.y || x < r.x) && (h = Jl(r, i, p), !isNaN(h.x)))
13458
13459
  break t;
13459
13460
  }
13460
13461
  }
@@ -13640,13 +13641,13 @@ function Ka(e) {
13640
13641
  return 180 * (e / Math.PI);
13641
13642
  }
13642
13643
  function iu(e) {
13643
- var i = e.lat, n = e.lon, r = 6378137, h = 669438e-8, a = 0.9996, l, u, f, m, y, p, c, g = Wn(i), v = Wn(n), x, w;
13644
- w = Math.floor((n + 180) / 6) + 1, n === 180 && (w = 60), i >= 56 && i < 64 && n >= 3 && n < 12 && (w = 32), i >= 72 && i < 84 && (n >= 0 && n < 9 ? w = 31 : n >= 9 && n < 21 ? w = 33 : n >= 21 && n < 33 ? w = 35 : n >= 33 && n < 42 && (w = 37)), l = (w - 1) * 6 - 180 + 3, x = Wn(l), u = h / (1 - h), f = r / Math.sqrt(1 - h * Math.sin(g) * Math.sin(g)), m = Math.tan(g) * Math.tan(g), y = u * Math.cos(g) * Math.cos(g), p = Math.cos(g) * (v - x), c = r * ((1 - h / 4 - 3 * h * h / 64 - 5 * h * h * h / 256) * g - (3 * h / 8 + 3 * h * h / 32 + 45 * h * h * h / 1024) * Math.sin(2 * g) + (15 * h * h / 256 + 45 * h * h * h / 1024) * Math.sin(4 * g) - 35 * h * h * h / 3072 * Math.sin(6 * g));
13645
- var P = a * f * (p + (1 - m + y) * p * p * p / 6 + (5 - 18 * m + m * m + 72 * y - 58 * u) * p * p * p * p * p / 120) + 5e5, T = a * (c + f * Math.tan(g) * (p * p / 2 + (5 - m + 9 * y + 4 * y * y) * p * p * p * p / 24 + (61 - 58 * m + m * m + 600 * y - 330 * u) * p * p * p * p * p * p / 720));
13644
+ var i = e.lat, n = e.lon, r = 6378137, h = 669438e-8, a = 0.9996, l, u, f, m, y, p, c, g = Wn(i), v = Wn(n), x, b;
13645
+ b = Math.floor((n + 180) / 6) + 1, n === 180 && (b = 60), i >= 56 && i < 64 && n >= 3 && n < 12 && (b = 32), i >= 72 && i < 84 && (n >= 0 && n < 9 ? b = 31 : n >= 9 && n < 21 ? b = 33 : n >= 21 && n < 33 ? b = 35 : n >= 33 && n < 42 && (b = 37)), l = (b - 1) * 6 - 180 + 3, x = Wn(l), u = h / (1 - h), f = r / Math.sqrt(1 - h * Math.sin(g) * Math.sin(g)), m = Math.tan(g) * Math.tan(g), y = u * Math.cos(g) * Math.cos(g), p = Math.cos(g) * (v - x), c = r * ((1 - h / 4 - 3 * h * h / 64 - 5 * h * h * h / 256) * g - (3 * h / 8 + 3 * h * h / 32 + 45 * h * h * h / 1024) * Math.sin(2 * g) + (15 * h * h / 256 + 45 * h * h * h / 1024) * Math.sin(4 * g) - 35 * h * h * h / 3072 * Math.sin(6 * g));
13646
+ var C = a * f * (p + (1 - m + y) * p * p * p / 6 + (5 - 18 * m + m * m + 72 * y - 58 * u) * p * p * p * p * p / 120) + 5e5, T = a * (c + f * Math.tan(g) * (p * p / 2 + (5 - m + 9 * y + 4 * y * y) * p * p * p * p / 24 + (61 - 58 * m + m * m + 600 * y - 330 * u) * p * p * p * p * p * p / 720));
13646
13647
  return i < 0 && (T += 1e7), {
13647
13648
  northing: Math.round(T),
13648
- easting: Math.round(P),
13649
- zoneNumber: w,
13649
+ easting: Math.round(C),
13650
+ zoneNumber: b,
13650
13651
  zoneLetter: nu(i)
13651
13652
  };
13652
13653
  }
@@ -13654,12 +13655,12 @@ function is(e) {
13654
13655
  var i = e.northing, n = e.easting, r = e.zoneLetter, h = e.zoneNumber;
13655
13656
  if (h < 0 || h > 60)
13656
13657
  return null;
13657
- var a = 0.9996, l = 6378137, u = 669438e-8, f, m = (1 - Math.sqrt(1 - u)) / (1 + Math.sqrt(1 - u)), y, p, c, g, v, x, w, P, T, A = n - 5e5, D = i;
13658
- r < "N" && (D -= 1e7), w = (h - 1) * 6 - 180 + 3, f = u / (1 - u), x = D / a, P = x / (l * (1 - u / 4 - 3 * u * u / 64 - 5 * u * u * u / 256)), T = P + (3 * m / 2 - 27 * m * m * m / 32) * Math.sin(2 * P) + (21 * m * m / 16 - 55 * m * m * m * m / 32) * Math.sin(4 * P) + 151 * m * m * m / 96 * Math.sin(6 * P), y = l / Math.sqrt(1 - u * Math.sin(T) * Math.sin(T)), p = Math.tan(T) * Math.tan(T), c = f * Math.cos(T) * Math.cos(T), g = l * (1 - u) / Math.pow(1 - u * Math.sin(T) * Math.sin(T), 1.5), v = A / (y * a);
13658
+ var a = 0.9996, l = 6378137, u = 669438e-8, f, m = (1 - Math.sqrt(1 - u)) / (1 + Math.sqrt(1 - u)), y, p, c, g, v, x, b, C, T, A = n - 5e5, D = i;
13659
+ r < "N" && (D -= 1e7), b = (h - 1) * 6 - 180 + 3, f = u / (1 - u), x = D / a, C = x / (l * (1 - u / 4 - 3 * u * u / 64 - 5 * u * u * u / 256)), T = C + (3 * m / 2 - 27 * m * m * m / 32) * Math.sin(2 * C) + (21 * m * m / 16 - 55 * m * m * m * m / 32) * Math.sin(4 * C) + 151 * m * m * m / 96 * Math.sin(6 * C), y = l / Math.sqrt(1 - u * Math.sin(T) * Math.sin(T)), p = Math.tan(T) * Math.tan(T), c = f * Math.cos(T) * Math.cos(T), g = l * (1 - u) / Math.pow(1 - u * Math.sin(T) * Math.sin(T), 1.5), v = A / (y * a);
13659
13660
  var N = T - y * Math.tan(T) / g * (v * v / 2 - (5 + 3 * p + 10 * c - 4 * c * c - 9 * f) * v * v * v * v / 24 + (61 + 90 * p + 298 * c + 45 * p * p - 252 * f - 3 * c * c) * v * v * v * v * v * v / 720);
13660
13661
  N = Ka(N);
13661
13662
  var U = (v - (1 + 2 * p + c) * v * v * v / 6 + (5 - 2 * c + 28 * p - 3 * c * c + 8 * f + 24 * p * p) * v * v * v * v * v / 120) / Math.cos(T);
13662
- U = w + Ka(U);
13663
+ U = b + Ka(U);
13663
13664
  var st;
13664
13665
  if (e.accuracy) {
13665
13666
  var G = is({
@@ -13726,8 +13727,8 @@ function xr(e) {
13726
13727
  of digits after the zone letter and two 100km letters - front
13727
13728
  half for easting meters, second half for
13728
13729
  northing meters` + e;
13729
- var c = p / 2, g = 0, v = 0, x, w, P, T, A;
13730
- return c > 0 && (x = 1e5 / Math.pow(10, c), w = e.substring(a, a + c), g = parseFloat(w) * x, P = e.substring(a + c), v = parseFloat(P) * x), T = g + m, A = v + y, {
13730
+ var c = p / 2, g = 0, v = 0, x, b, C, T, A;
13731
+ return c > 0 && (x = 1e5 / Math.pow(10, c), b = e.substring(a, a + c), g = parseFloat(b) * x, C = e.substring(a + c), v = parseFloat(C) * x), T = g + m, A = v + y, {
13731
13732
  easting: T,
13732
13733
  northing: A,
13733
13734
  zoneLetter: u,
@@ -13874,10 +13875,10 @@ function Mu() {
13874
13875
  function Lu(e) {
13875
13876
  var i = e.x, n = e.y, r = O(i - this.long0), h, a, l, u = Math.sin(n), f = Math.cos(n);
13876
13877
  if (this.es) {
13877
- var y = f * r, p = Math.pow(y, 2), c = this.ep2 * Math.pow(f, 2), g = Math.pow(c, 2), v = Math.abs(f) > I ? Math.tan(n) : 0, x = Math.pow(v, 2), w = Math.pow(x, 2);
13878
+ var y = f * r, p = Math.pow(y, 2), c = this.ep2 * Math.pow(f, 2), g = Math.pow(c, 2), v = Math.abs(f) > I ? Math.tan(n) : 0, x = Math.pow(v, 2), b = Math.pow(x, 2);
13878
13879
  h = 1 - this.es * Math.pow(u, 2), y = y / Math.sqrt(h);
13879
- var P = Re(n, u, f, this.en);
13880
- a = this.a * (this.k0 * y * (1 + p / 6 * (1 - x + c + p / 20 * (5 - 18 * x + w + 14 * c - 58 * x * c + p / 42 * (61 + 179 * w - w * x - 479 * x))))) + this.x0, l = this.a * (this.k0 * (P - this.ml0 + u * r * y / 2 * (1 + p / 12 * (5 - x + 9 * c + 4 * g + p / 30 * (61 + w - 58 * x + 270 * c - 330 * x * c + p / 56 * (1385 + 543 * w - w * x - 3111 * x)))))) + this.y0;
13880
+ var C = Re(n, u, f, this.en);
13881
+ a = this.a * (this.k0 * y * (1 + p / 6 * (1 - x + c + p / 20 * (5 - 18 * x + b + 14 * c - 58 * x * c + p / 42 * (61 + 179 * b - b * x - 479 * x))))) + this.x0, l = this.a * (this.k0 * (C - this.ml0 + u * r * y / 2 * (1 + p / 12 * (5 - x + 9 * c + 4 * g + p / 30 * (61 + b - 58 * x + 270 * c - 330 * x * c + p / 56 * (1385 + 543 * b - b * x - 3111 * x)))))) + this.y0;
13881
13882
  } else {
13882
13883
  var m = f * Math.sin(r);
13883
13884
  if (Math.abs(Math.abs(m) - 1) < I)
@@ -13896,10 +13897,10 @@ function xu(e) {
13896
13897
  var i, n, r, h, a = (e.x - this.x0) * (1 / this.a), l = (e.y - this.y0) * (1 / this.a);
13897
13898
  if (this.es)
13898
13899
  if (i = this.ml0 + l / this.k0, n = ss(i, this.es, this.en), Math.abs(n) < S) {
13899
- var p = Math.sin(n), c = Math.cos(n), g = Math.abs(c) > I ? Math.tan(n) : 0, v = this.ep2 * Math.pow(c, 2), x = Math.pow(v, 2), w = Math.pow(g, 2), P = Math.pow(w, 2);
13900
+ var p = Math.sin(n), c = Math.cos(n), g = Math.abs(c) > I ? Math.tan(n) : 0, v = this.ep2 * Math.pow(c, 2), x = Math.pow(v, 2), b = Math.pow(g, 2), C = Math.pow(b, 2);
13900
13901
  i = 1 - this.es * Math.pow(p, 2);
13901
13902
  var T = a * Math.sqrt(i) / this.k0, A = Math.pow(T, 2);
13902
- i = i * g, r = n - i * A / (1 - this.es) * 0.5 * (1 - A / 12 * (5 + 3 * w - 9 * v * w + v - 4 * x - A / 30 * (61 + 90 * w - 252 * v * w + 45 * P + 46 * v - A / 56 * (1385 + 3633 * w + 4095 * P + 1574 * P * w)))), h = O(this.long0 + T * (1 - A / 6 * (1 + 2 * w + v - A / 20 * (5 + 28 * w + 24 * P + 8 * v * w + 6 * v - A / 42 * (61 + 662 * w + 1320 * P + 720 * P * w)))) / c);
13903
+ i = i * g, r = n - i * A / (1 - this.es) * 0.5 * (1 - A / 12 * (5 + 3 * b - 9 * v * b + v - 4 * x - A / 30 * (61 + 90 * b - 252 * v * b + 45 * C + 46 * v - A / 56 * (1385 + 3633 * b + 4095 * C + 1574 * C * b)))), h = O(this.long0 + T * (1 - A / 6 * (1 + 2 * b + v - A / 20 * (5 + 28 * b + 24 * C + 8 * v * b + 6 * v - A / 42 * (61 + 662 * b + 1320 * C + 720 * C * b)))) / c);
13903
13904
  } else
13904
13905
  r = S * mi(l), h = 0;
13905
13906
  else {
@@ -14124,17 +14125,17 @@ function sc(e) {
14124
14125
  return "no_uoff" in e || "no_off" in e || i.indexOf(n) !== -1;
14125
14126
  }
14126
14127
  function ac() {
14127
- var e, i, n, r, h, a, l, u, f, m, y = 0, p, c = 0, g = 0, v = 0, x = 0, w = 0, P = 0;
14128
+ var e, i, n, r, h, a, l, u, f, m, y = 0, p, c = 0, g = 0, v = 0, x = 0, b = 0, C = 0;
14128
14129
  this.no_off = sc(this), this.no_rot = "no_rot" in this;
14129
14130
  var T = !1;
14130
14131
  "alpha" in this && (T = !0);
14131
14132
  var A = !1;
14132
- if ("rectified_grid_angle" in this && (A = !0), T && (P = this.alpha), A && (y = this.rectified_grid_angle * yt), T || A)
14133
+ if ("rectified_grid_angle" in this && (A = !0), T && (C = this.alpha), A && (y = this.rectified_grid_angle * yt), T || A)
14133
14134
  c = this.longc;
14134
- else if (g = this.long1, x = this.lat1, v = this.long2, w = this.lat2, Math.abs(x - w) <= Te || (e = Math.abs(x)) <= Te || Math.abs(e - S) <= Te || Math.abs(Math.abs(this.lat0) - S) <= Te || Math.abs(Math.abs(w) - S) <= Te)
14135
+ else if (g = this.long1, x = this.lat1, v = this.long2, b = this.lat2, Math.abs(x - b) <= Te || (e = Math.abs(x)) <= Te || Math.abs(e - S) <= Te || Math.abs(Math.abs(this.lat0) - S) <= Te || Math.abs(Math.abs(b) - S) <= Te)
14135
14136
  throw new Error();
14136
14137
  var D = 1 - this.es;
14137
- i = Math.sqrt(D), Math.abs(this.lat0) > I ? (u = Math.sin(this.lat0), n = Math.cos(this.lat0), e = 1 - this.es * u * u, this.B = n * n, this.B = Math.sqrt(1 + this.es * this.B * this.B / D), this.A = this.B * this.k0 * i / e, r = this.B * i / (n * Math.sqrt(e)), h = r * r - 1, h <= 0 ? h = 0 : (h = Math.sqrt(h), this.lat0 < 0 && (h = -h)), this.E = h += r, this.E *= Math.pow(Rt(this.e, this.lat0, u), this.B)) : (this.B = 1 / i, this.A = this.k0, this.E = r = h = 1), T || A ? (T ? (p = Math.asin(Math.sin(P) / r), A || (y = P)) : (p = y, P = Math.asin(r * Math.sin(p))), this.lam0 = c - Math.asin(0.5 * (h - 1 / h) * Math.tan(p)) / this.B) : (a = Math.pow(Rt(this.e, x, Math.sin(x)), this.B), l = Math.pow(Rt(this.e, w, Math.sin(w)), this.B), h = this.E / a, f = (l - a) / (l + a), m = this.E * this.E, m = (m - l * a) / (m + l * a), e = g - v, e < -Math.pi ? v -= ci : e > Math.pi && (v += ci), this.lam0 = O(0.5 * (g + v) - Math.atan(m * Math.tan(0.5 * this.B * (g - v)) / f) / this.B), p = Math.atan(2 * Math.sin(this.B * O(g - this.lam0)) / (h - 1 / h)), y = P = Math.asin(r * Math.sin(p))), this.singam = Math.sin(p), this.cosgam = Math.cos(p), this.sinrot = Math.sin(y), this.cosrot = Math.cos(y), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.A * this.B, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(r * r - 1) / Math.cos(P))), this.lat0 < 0 && (this.u_0 = -this.u_0)), h = 0.5 * p, this.v_pole_n = this.ArB * Math.log(Math.tan(tt - h)), this.v_pole_s = this.ArB * Math.log(Math.tan(tt + h));
14138
+ i = Math.sqrt(D), Math.abs(this.lat0) > I ? (u = Math.sin(this.lat0), n = Math.cos(this.lat0), e = 1 - this.es * u * u, this.B = n * n, this.B = Math.sqrt(1 + this.es * this.B * this.B / D), this.A = this.B * this.k0 * i / e, r = this.B * i / (n * Math.sqrt(e)), h = r * r - 1, h <= 0 ? h = 0 : (h = Math.sqrt(h), this.lat0 < 0 && (h = -h)), this.E = h += r, this.E *= Math.pow(Rt(this.e, this.lat0, u), this.B)) : (this.B = 1 / i, this.A = this.k0, this.E = r = h = 1), T || A ? (T ? (p = Math.asin(Math.sin(C) / r), A || (y = C)) : (p = y, C = Math.asin(r * Math.sin(p))), this.lam0 = c - Math.asin(0.5 * (h - 1 / h) * Math.tan(p)) / this.B) : (a = Math.pow(Rt(this.e, x, Math.sin(x)), this.B), l = Math.pow(Rt(this.e, b, Math.sin(b)), this.B), h = this.E / a, f = (l - a) / (l + a), m = this.E * this.E, m = (m - l * a) / (m + l * a), e = g - v, e < -Math.pi ? v -= ci : e > Math.pi && (v += ci), this.lam0 = O(0.5 * (g + v) - Math.atan(m * Math.tan(0.5 * this.B * (g - v)) / f) / this.B), p = Math.atan(2 * Math.sin(this.B * O(g - this.lam0)) / (h - 1 / h)), y = C = Math.asin(r * Math.sin(p))), this.singam = Math.sin(p), this.cosgam = Math.cos(p), this.sinrot = Math.sin(y), this.cosrot = Math.cos(y), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.A * this.B, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(r * r - 1) / Math.cos(C))), this.lat0 < 0 && (this.u_0 = -this.u_0)), h = 0.5 * p, this.v_pole_n = this.ArB * Math.log(Math.tan(tt - h)), this.v_pole_s = this.ArB * Math.log(Math.tan(tt + h));
14138
14139
  }
14139
14140
  function rc(e) {
14140
14141
  var i = {}, n, r, h, a, l, u, f, m;
@@ -14586,23 +14587,23 @@ function gd(e) {
14586
14587
  var i, n = e.x, r = e.y, h = r - this.lat0, a = n - this.long0, l = h / si * 1e-5, u = a, f = 1, m = 0;
14587
14588
  for (i = 1; i <= 10; i++)
14588
14589
  f = f * l, m = m + this.A[i] * f;
14589
- var y = m, p = u, c = 1, g = 0, v, x, w = 0, P = 0;
14590
+ var y = m, p = u, c = 1, g = 0, v, x, b = 0, C = 0;
14590
14591
  for (i = 1; i <= 6; i++)
14591
- v = c * y - g * p, x = g * y + c * p, c = v, g = x, w = w + this.B_re[i] * c - this.B_im[i] * g, P = P + this.B_im[i] * c + this.B_re[i] * g;
14592
- return e.x = P * this.a + this.x0, e.y = w * this.a + this.y0, e;
14592
+ v = c * y - g * p, x = g * y + c * p, c = v, g = x, b = b + this.B_re[i] * c - this.B_im[i] * g, C = C + this.B_im[i] * c + this.B_re[i] * g;
14593
+ return e.x = C * this.a + this.x0, e.y = b * this.a + this.y0, e;
14593
14594
  }
14594
14595
  function pd(e) {
14595
14596
  var i, n = e.x, r = e.y, h = n - this.x0, a = r - this.y0, l = a / this.a, u = h / this.a, f = 1, m = 0, y, p, c = 0, g = 0;
14596
14597
  for (i = 1; i <= 6; i++)
14597
14598
  y = f * l - m * u, p = m * l + f * u, f = y, m = p, c = c + this.C_re[i] * f - this.C_im[i] * m, g = g + this.C_im[i] * f + this.C_re[i] * m;
14598
14599
  for (var v = 0; v < this.iterations; v++) {
14599
- var x = c, w = g, P, T, A = l, D = u;
14600
+ var x = c, b = g, C, T, A = l, D = u;
14600
14601
  for (i = 2; i <= 6; i++)
14601
- P = x * c - w * g, T = w * c + x * g, x = P, w = T, A = A + (i - 1) * (this.B_re[i] * x - this.B_im[i] * w), D = D + (i - 1) * (this.B_im[i] * x + this.B_re[i] * w);
14602
- x = 1, w = 0;
14602
+ C = x * c - b * g, T = b * c + x * g, x = C, b = T, A = A + (i - 1) * (this.B_re[i] * x - this.B_im[i] * b), D = D + (i - 1) * (this.B_im[i] * x + this.B_re[i] * b);
14603
+ x = 1, b = 0;
14603
14604
  var N = this.B_re[1], U = this.B_im[1];
14604
14605
  for (i = 2; i <= 6; i++)
14605
- P = x * c - w * g, T = w * c + x * g, x = P, w = T, N = N + i * (this.B_re[i] * x - this.B_im[i] * w), U = U + i * (this.B_im[i] * x + this.B_re[i] * w);
14606
+ C = x * c - b * g, T = b * c + x * g, x = C, b = T, N = N + i * (this.B_re[i] * x - this.B_im[i] * b), U = U + i * (this.B_im[i] * x + this.B_re[i] * b);
14606
14607
  var st = N * N + U * U;
14607
14608
  c = (A * N + D * U) / st, g = (D * N - A * U) / st;
14608
14609
  }
@@ -14738,8 +14739,8 @@ function Ud(e) {
14738
14739
  (Math.abs(r) <= I || Math.abs(Math.abs(n) - S) <= I) && (h = this.x0, n >= 0 ? a = this.y0 + Math.PI * this.R * Math.tan(0.5 * l) : a = this.y0 + Math.PI * this.R * -Math.tan(0.5 * l));
14739
14740
  var u = 0.5 * Math.abs(Math.PI / r - r / Math.PI), f = u * u, m = Math.sin(l), y = Math.cos(l), p = y / (m + y - 1), c = p * p, g = p * (2 / m - 1), v = g * g, x = Math.PI * this.R * (u * (p - v) + Math.sqrt(f * (p - v) * (p - v) - (v + f) * (c - v))) / (v + f);
14740
14741
  r < 0 && (x = -x), h = this.x0 + x;
14741
- var w = f + p;
14742
- return x = Math.PI * this.R * (g * w - u * Math.sqrt((v + f) * (f + 1) - w * w)) / (v + f), n >= 0 ? a = this.y0 + x : a = this.y0 - x, e.x = h, e.y = a, e;
14742
+ var b = f + p;
14743
+ return x = Math.PI * this.R * (g * b - u * Math.sqrt((v + f) * (f + 1) - b * b)) / (v + f), n >= 0 ? a = this.y0 + x : a = this.y0 - x, e.x = h, e.y = a, e;
14743
14744
  }
14744
14745
  function Hd(e) {
14745
14746
  var i, n, r, h, a, l, u, f, m, y, p, c, g;
@@ -14756,13 +14757,13 @@ function Wd() {
14756
14757
  this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0);
14757
14758
  }
14758
14759
  function Vd(e) {
14759
- var i = e.x, n = e.y, r = Math.sin(e.y), h = Math.cos(e.y), a = O(i - this.long0), l, u, f, m, y, p, c, g, v, x, w, P, T, A, D, N, U, st, G, R, it, K, nt;
14760
- return this.sphere ? Math.abs(this.sin_p12 - 1) <= I ? (e.x = this.x0 + this.a * (S - n) * Math.sin(a), e.y = this.y0 - this.a * (S - n) * Math.cos(a), e) : Math.abs(this.sin_p12 + 1) <= I ? (e.x = this.x0 + this.a * (S + n) * Math.sin(a), e.y = this.y0 + this.a * (S + n) * Math.cos(a), e) : (st = this.sin_p12 * r + this.cos_p12 * h * Math.cos(a), N = Math.acos(st), U = N ? N / Math.sin(N) : 1, e.x = this.x0 + this.a * U * h * Math.sin(a), e.y = this.y0 + this.a * U * (this.cos_p12 * r - this.sin_p12 * h * Math.cos(a)), e) : (l = gi(this.es), u = pi(this.es), f = vi(this.es), m = yi(this.es), Math.abs(this.sin_p12 - 1) <= I ? (y = this.a * Pt(l, u, f, m, S), p = this.a * Pt(l, u, f, m, n), e.x = this.x0 + (y - p) * Math.sin(a), e.y = this.y0 - (y - p) * Math.cos(a), e) : Math.abs(this.sin_p12 + 1) <= I ? (y = this.a * Pt(l, u, f, m, S), p = this.a * Pt(l, u, f, m, n), e.x = this.x0 + (y + p) * Math.sin(a), e.y = this.y0 + (y + p) * Math.cos(a), e) : (c = r / h, g = De(this.a, this.e, this.sin_p12), v = De(this.a, this.e, r), x = Math.atan((1 - this.es) * c + this.es * g * this.sin_p12 / (v * h)), w = Math.atan2(Math.sin(a), this.cos_p12 * Math.tan(x) - this.sin_p12 * Math.cos(a)), w === 0 ? G = Math.asin(this.cos_p12 * Math.sin(x) - this.sin_p12 * Math.cos(x)) : Math.abs(Math.abs(w) - Math.PI) <= I ? G = -Math.asin(this.cos_p12 * Math.sin(x) - this.sin_p12 * Math.cos(x)) : G = Math.asin(Math.sin(a) * Math.cos(x) / Math.sin(w)), P = this.e * this.sin_p12 / Math.sqrt(1 - this.es), T = this.e * this.cos_p12 * Math.cos(w) / Math.sqrt(1 - this.es), A = P * T, D = T * T, R = G * G, it = R * G, K = it * G, nt = K * G, N = g * G * (1 - R * D * (1 - D) / 6 + it / 8 * A * (1 - 2 * D) + K / 120 * (D * (4 - 7 * D) - 3 * P * P * (1 - 7 * D)) - nt / 48 * A), e.x = this.x0 + N * Math.sin(w), e.y = this.y0 + N * Math.cos(w), e));
14760
+ var i = e.x, n = e.y, r = Math.sin(e.y), h = Math.cos(e.y), a = O(i - this.long0), l, u, f, m, y, p, c, g, v, x, b, C, T, A, D, N, U, st, G, R, it, K, nt;
14761
+ return this.sphere ? Math.abs(this.sin_p12 - 1) <= I ? (e.x = this.x0 + this.a * (S - n) * Math.sin(a), e.y = this.y0 - this.a * (S - n) * Math.cos(a), e) : Math.abs(this.sin_p12 + 1) <= I ? (e.x = this.x0 + this.a * (S + n) * Math.sin(a), e.y = this.y0 + this.a * (S + n) * Math.cos(a), e) : (st = this.sin_p12 * r + this.cos_p12 * h * Math.cos(a), N = Math.acos(st), U = N ? N / Math.sin(N) : 1, e.x = this.x0 + this.a * U * h * Math.sin(a), e.y = this.y0 + this.a * U * (this.cos_p12 * r - this.sin_p12 * h * Math.cos(a)), e) : (l = gi(this.es), u = pi(this.es), f = vi(this.es), m = yi(this.es), Math.abs(this.sin_p12 - 1) <= I ? (y = this.a * Pt(l, u, f, m, S), p = this.a * Pt(l, u, f, m, n), e.x = this.x0 + (y - p) * Math.sin(a), e.y = this.y0 - (y - p) * Math.cos(a), e) : Math.abs(this.sin_p12 + 1) <= I ? (y = this.a * Pt(l, u, f, m, S), p = this.a * Pt(l, u, f, m, n), e.x = this.x0 + (y + p) * Math.sin(a), e.y = this.y0 + (y + p) * Math.cos(a), e) : (c = r / h, g = De(this.a, this.e, this.sin_p12), v = De(this.a, this.e, r), x = Math.atan((1 - this.es) * c + this.es * g * this.sin_p12 / (v * h)), b = Math.atan2(Math.sin(a), this.cos_p12 * Math.tan(x) - this.sin_p12 * Math.cos(a)), b === 0 ? G = Math.asin(this.cos_p12 * Math.sin(x) - this.sin_p12 * Math.cos(x)) : Math.abs(Math.abs(b) - Math.PI) <= I ? G = -Math.asin(this.cos_p12 * Math.sin(x) - this.sin_p12 * Math.cos(x)) : G = Math.asin(Math.sin(a) * Math.cos(x) / Math.sin(b)), C = this.e * this.sin_p12 / Math.sqrt(1 - this.es), T = this.e * this.cos_p12 * Math.cos(b) / Math.sqrt(1 - this.es), A = C * T, D = T * T, R = G * G, it = R * G, K = it * G, nt = K * G, N = g * G * (1 - R * D * (1 - D) / 6 + it / 8 * A * (1 - 2 * D) + K / 120 * (D * (4 - 7 * D) - 3 * C * C * (1 - 7 * D)) - nt / 48 * A), e.x = this.x0 + N * Math.sin(b), e.y = this.y0 + N * Math.cos(b), e));
14761
14762
  }
14762
14763
  function $d(e) {
14763
14764
  e.x -= this.x0, e.y -= this.y0;
14764
- var i, n, r, h, a, l, u, f, m, y, p, c, g, v, x, w, P, T, A, D, N, U, st, G;
14765
- return this.sphere ? (i = Math.sqrt(e.x * e.x + e.y * e.y), i > 2 * S * this.a ? void 0 : (n = i / this.a, r = Math.sin(n), h = Math.cos(n), a = this.long0, Math.abs(i) <= I ? l = this.lat0 : (l = oe(h * this.sin_p12 + e.y * r * this.cos_p12 / i), u = Math.abs(this.lat0) - S, Math.abs(u) <= I ? this.lat0 >= 0 ? a = O(this.long0 + Math.atan2(e.x, -e.y)) : a = O(this.long0 - Math.atan2(-e.x, e.y)) : a = O(this.long0 + Math.atan2(e.x * r, i * this.cos_p12 * h - e.y * this.sin_p12 * r))), e.x = a, e.y = l, e)) : (f = gi(this.es), m = pi(this.es), y = vi(this.es), p = yi(this.es), Math.abs(this.sin_p12 - 1) <= I ? (c = this.a * Pt(f, m, y, p, S), i = Math.sqrt(e.x * e.x + e.y * e.y), g = c - i, l = en(g / this.a, f, m, y, p), a = O(this.long0 + Math.atan2(e.x, -1 * e.y)), e.x = a, e.y = l, e) : Math.abs(this.sin_p12 + 1) <= I ? (c = this.a * Pt(f, m, y, p, S), i = Math.sqrt(e.x * e.x + e.y * e.y), g = i - c, l = en(g / this.a, f, m, y, p), a = O(this.long0 + Math.atan2(e.x, e.y)), e.x = a, e.y = l, e) : (i = Math.sqrt(e.x * e.x + e.y * e.y), w = Math.atan2(e.x, e.y), v = De(this.a, this.e, this.sin_p12), P = Math.cos(w), T = this.e * this.cos_p12 * P, A = -T * T / (1 - this.es), D = 3 * this.es * (1 - A) * this.sin_p12 * this.cos_p12 * P / (1 - this.es), N = i / v, U = N - A * (1 + A) * Math.pow(N, 3) / 6 - D * (1 + 3 * A) * Math.pow(N, 4) / 24, st = 1 - A * U * U / 2 - N * U * U * U / 6, x = Math.asin(this.sin_p12 * Math.cos(U) + this.cos_p12 * Math.sin(U) * P), a = O(this.long0 + Math.asin(Math.sin(w) * Math.sin(U) / Math.cos(x))), G = Math.sin(x), l = Math.atan2((G - this.es * st * this.sin_p12) * Math.tan(x), G * (1 - this.es)), e.x = a, e.y = l, e));
14765
+ var i, n, r, h, a, l, u, f, m, y, p, c, g, v, x, b, C, T, A, D, N, U, st, G;
14766
+ return this.sphere ? (i = Math.sqrt(e.x * e.x + e.y * e.y), i > 2 * S * this.a ? void 0 : (n = i / this.a, r = Math.sin(n), h = Math.cos(n), a = this.long0, Math.abs(i) <= I ? l = this.lat0 : (l = oe(h * this.sin_p12 + e.y * r * this.cos_p12 / i), u = Math.abs(this.lat0) - S, Math.abs(u) <= I ? this.lat0 >= 0 ? a = O(this.long0 + Math.atan2(e.x, -e.y)) : a = O(this.long0 - Math.atan2(-e.x, e.y)) : a = O(this.long0 + Math.atan2(e.x * r, i * this.cos_p12 * h - e.y * this.sin_p12 * r))), e.x = a, e.y = l, e)) : (f = gi(this.es), m = pi(this.es), y = vi(this.es), p = yi(this.es), Math.abs(this.sin_p12 - 1) <= I ? (c = this.a * Pt(f, m, y, p, S), i = Math.sqrt(e.x * e.x + e.y * e.y), g = c - i, l = en(g / this.a, f, m, y, p), a = O(this.long0 + Math.atan2(e.x, -1 * e.y)), e.x = a, e.y = l, e) : Math.abs(this.sin_p12 + 1) <= I ? (c = this.a * Pt(f, m, y, p, S), i = Math.sqrt(e.x * e.x + e.y * e.y), g = i - c, l = en(g / this.a, f, m, y, p), a = O(this.long0 + Math.atan2(e.x, e.y)), e.x = a, e.y = l, e) : (i = Math.sqrt(e.x * e.x + e.y * e.y), b = Math.atan2(e.x, e.y), v = De(this.a, this.e, this.sin_p12), C = Math.cos(b), T = this.e * this.cos_p12 * C, A = -T * T / (1 - this.es), D = 3 * this.es * (1 - A) * this.sin_p12 * this.cos_p12 * C / (1 - this.es), N = i / v, U = N - A * (1 + A) * Math.pow(N, 3) / 6 - D * (1 + 3 * A) * Math.pow(N, 4) / 24, st = 1 - A * U * U / 2 - N * U * U * U / 6, x = Math.asin(this.sin_p12 * Math.cos(U) + this.cos_p12 * Math.sin(U) * C), a = O(this.long0 + Math.asin(Math.sin(b) * Math.sin(U) / Math.cos(x))), G = Math.sin(x), l = Math.atan2((G - this.es * st * this.sin_p12) * Math.tan(x), G * (1 - this.es)), e.x = a, e.y = l, e));
14766
14767
  }
14767
14768
  var Kd = ["Azimuthal_Equidistant", "aeqd"];
14768
14769
  const Xd = {
@@ -14828,8 +14829,8 @@ function af(e) {
14828
14829
  c = f, y = c * c, y >= 1 ? v = 0 : v = Math.sqrt(1 - y) * Math.sin(u), y += v * v, y >= 1 ? g = 0 : g = Math.sqrt(1 - y), p.value === et.AREA_1 ? (y = g, g = -v, v = y) : p.value === et.AREA_2 ? (g = -g, v = -v) : p.value === et.AREA_3 && (y = g, g = v, v = -y), this.face === lt.RIGHT ? (y = c, c = -g, g = y) : this.face === lt.BACK ? (c = -c, g = -g) : this.face === lt.LEFT && (y = c, c = g, g = -y), i.phi = Math.acos(-v) - S, i.lam = Math.atan2(g, c), this.face === lt.RIGHT ? i.lam = Be(i.lam, -S) : this.face === lt.BACK ? i.lam = Be(i.lam, -dt) : this.face === lt.LEFT && (i.lam = Be(i.lam, +S));
14829
14830
  }
14830
14831
  if (this.es !== 0) {
14831
- var x, w, P;
14832
- x = i.phi < 0 ? 1 : 0, w = Math.tan(i.phi), P = this.b / Math.sqrt(w * w + this.one_minus_f_squared), i.phi = Math.atan(Math.sqrt(this.a * this.a - P * P) / (this.one_minus_f * P)), x && (i.phi = -i.phi);
14832
+ var x, b, C;
14833
+ x = i.phi < 0 ? 1 : 0, b = Math.tan(i.phi), C = this.b / Math.sqrt(b * b + this.one_minus_f_squared), i.phi = Math.atan(Math.sqrt(this.a * this.a - C * C) / (this.one_minus_f * C)), x && (i.phi = -i.phi);
14833
14834
  }
14834
14835
  return i.lam += this.long0, e.x = i.lam, e.y = i.phi, e;
14835
14836
  }
@@ -15340,23 +15341,23 @@ function t_(e) {
15340
15341
  Tr = e;
15341
15342
  }
15342
15343
  function e_(e) {
15343
- var p, c, g;
15344
+ var p;
15344
15345
  const i = [];
15345
15346
  ut.CRS.Baidu = new ut.Proj.CRS(
15346
15347
  "EPSG:900913",
15347
15348
  "+proj=merc +a=6378206 +b=6356584.314245179 +lat_ts=0.0 +lon_0=0.0 +x_0=0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs",
15348
15349
  {
15349
15350
  resolutions: function() {
15350
- var v = 19, x = [];
15351
- x[0] = Math.pow(2, 18);
15352
- for (var w = 1; w < v; w++)
15353
- x[w] = Math.pow(2, 18 - w);
15354
- return x;
15351
+ var c = 19, g = [];
15352
+ g[0] = Math.pow(2, 18);
15353
+ for (var v = 1; v < c; v++)
15354
+ g[v] = Math.pow(2, 18 - v);
15355
+ return g;
15355
15356
  }(),
15356
15357
  origin: [0, 0],
15357
15358
  bounds: ut.bounds([20037508342789244e-9, 0], [0, 20037508342789244e-9])
15358
15359
  }
15359
- ), (p = e.mapOptions) != null && p.maxZoom && ((c = e.mapOptions) == null ? void 0 : c.maxZoom) > 18 && (e.mapOptions.maxZoom = 18);
15360
+ );
15360
15361
  const n = ut.map(e.container, se(J({
15361
15362
  attributionControl: !1,
15362
15363
  zoomControl: !1,
@@ -15374,60 +15375,60 @@ function e_(e) {
15374
15375
  i.push(
15375
15376
  li(
15376
15377
  "mapInfoShow",
15377
- (v) => {
15378
- r.setText(v);
15378
+ (c) => {
15379
+ r.setText(c);
15379
15380
  },
15380
15381
  !0
15381
15382
  ),
15382
- li("clusterType", (v) => {
15383
- !v || v == "NORMAL" ? a.setMaxClusterRadius(80) : a.setMaxClusterRadius(-1);
15383
+ li("clusterType", (c) => {
15384
+ !c || c == "NORMAL" ? a.setMaxClusterRadius(80) : a.setMaxClusterRadius(-1);
15384
15385
  })
15385
15386
  ), e.tileType && Wf(e.tileType), i.push(
15386
15387
  uh("Normal", n, {
15387
15388
  rightBottomTextHandle: r,
15388
- direct: (g = e.tileType) == null ? void 0 : g.direct
15389
+ direct: (p = e.tileType) == null ? void 0 : p.direct
15389
15390
  })
15390
15391
  );
15391
15392
  const h = Ee("clusterType")[0], a = new xh(n, se(J({}, e.renderOptions), {
15392
15393
  clusterType: h
15393
15394
  })), l = new Ah(n), u = new Oh(n);
15394
- function f(v) {
15395
- const w = v.map((P) => P.getBounds()).filter((P) => P);
15396
- if (w && w.length > 0) {
15397
- const P = w.pop();
15398
- for (; w.length > 0; ) {
15399
- const T = w.pop();
15400
- T && (P == null || P.extend(T));
15401
- }
15402
- n.fitBounds(P, { maxZoom: 18 });
15395
+ function f(c) {
15396
+ const v = c.map((x) => x.getBounds()).filter((x) => x);
15397
+ if (v && v.length > 0) {
15398
+ const x = v.pop();
15399
+ for (; v.length > 0; ) {
15400
+ const b = v.pop();
15401
+ b && (x == null || x.extend(b));
15402
+ }
15403
+ n.fitBounds(x, { maxZoom: 18 });
15403
15404
  }
15404
15405
  }
15405
- const m = new Kh(n), y = new IntersectionObserver((v) => {
15406
- v.forEach((x) => {
15407
- x.target.isSameNode(e.container) && e.container.clientWidth && (n == null || n._onResize());
15406
+ const m = new Kh(n), y = new IntersectionObserver((c) => {
15407
+ c.forEach((g) => {
15408
+ g.target.isSameNode(e.container) && e.container.clientWidth && (n == null || n._onResize());
15408
15409
  });
15409
15410
  }, {});
15410
15411
  return y.observe(e.container), {
15411
15412
  //map,
15412
- on(v, x) {
15413
- const w = x;
15414
- v == "click" ? n.on("click", (...P) => {
15415
- w(...P);
15416
- }) : v == "dblclick" ? n.on("dblclick", () => {
15417
- w();
15418
- }) : v == "dragstart" ? n.on("dragstart", () => {
15419
- w();
15420
- }) : v == "rightclick" ? n.on("contextmenu", () => {
15421
- w();
15422
- }) : v == "clusterclick" ? a.on("clusterclick", w) : v == "zoomChange" ? n.on("zoomend", () => {
15423
- w(n.getZoom());
15424
- }) : v == "remove" && n.on("remove", () => {
15425
- w();
15413
+ on(c, g) {
15414
+ const v = g;
15415
+ c == "click" ? n.on("click", (...x) => {
15416
+ v(...x);
15417
+ }) : c == "dblclick" ? n.on("dblclick", () => {
15418
+ v();
15419
+ }) : c == "dragstart" ? n.on("dragstart", () => {
15420
+ v();
15421
+ }) : c == "rightclick" ? n.on("contextmenu", () => {
15422
+ v();
15423
+ }) : c == "clusterclick" ? a.on("clusterclick", v) : c == "zoomChange" ? n.on("zoomend", () => {
15424
+ v(n.getZoom());
15425
+ }) : c == "remove" && n.on("remove", () => {
15426
+ v();
15426
15427
  });
15427
15428
  },
15428
15429
  utils: {
15429
- rotate(v) {
15430
- n.setBearing(v);
15430
+ rotate(c) {
15431
+ n.setBearing(c);
15431
15432
  },
15432
15433
  getRotate() {
15433
15434
  n.getBearing();
@@ -15435,35 +15436,35 @@ function e_(e) {
15435
15436
  getZoom() {
15436
15437
  return n.getZoom();
15437
15438
  },
15438
- setZoom(v, x) {
15439
- n.setZoom(v, x);
15439
+ setZoom(c, g) {
15440
+ n.setZoom(c, g);
15440
15441
  },
15441
15442
  getInfoWindow() {
15442
15443
  return a.infoWindow;
15443
15444
  },
15444
- setRightBottomText(v) {
15445
- r.setText(v);
15445
+ setRightBottomText(c) {
15446
+ r.setText(c);
15446
15447
  },
15447
15448
  SetFitview() {
15448
15449
  f([a, l]);
15449
15450
  },
15450
- SetView(v, x, w) {
15451
- n.setView(v, x, w);
15451
+ SetView(c, g, v) {
15452
+ n.setView(c, g, v);
15452
15453
  },
15453
- addMarker(v) {
15454
- return a.addMarker(v);
15454
+ addMarker(c) {
15455
+ return a.addMarker(c);
15455
15456
  },
15456
- addMarkers(v) {
15457
- return a.addMarkers(v);
15457
+ addMarkers(c) {
15458
+ return a.addMarkers(c);
15458
15459
  },
15459
- addMarkerAsync(v) {
15460
- return a.asyncAddMarkerPer500ms(v);
15460
+ addMarkerAsync(c) {
15461
+ return a.asyncAddMarkerPer500ms(c);
15461
15462
  },
15462
15463
  remove() {
15463
- y.disconnect(), i.forEach((v) => v()), n.eachLayer((v) => v.remove()), n.remove();
15464
+ y.disconnect(), i.forEach((c) => c()), n.eachLayer((c) => c.remove()), n.remove();
15464
15465
  },
15465
- removeMarkers(v) {
15466
- a.removeMarkers(v);
15466
+ removeMarkers(c) {
15467
+ a.removeMarkers(c);
15467
15468
  },
15468
15469
  getAllMarkers() {
15469
15470
  return a.getAllMarkers();
@@ -15487,15 +15488,15 @@ function e_(e) {
15487
15488
  titleLineMgr: m
15488
15489
  },
15489
15490
  conversion: {
15490
- containerPointToLatLng(v) {
15491
- const x = ut.point(...v);
15492
- return n.containerPointToLatLng(x);
15491
+ containerPointToLatLng(c) {
15492
+ const g = ut.point(...c);
15493
+ return n.containerPointToLatLng(g);
15493
15494
  },
15494
- latLngToContainerPoint(v) {
15495
- return n.latLngToContainerPoint(v);
15495
+ latLngToContainerPoint(c) {
15496
+ return n.latLngToContainerPoint(c);
15496
15497
  },
15497
- distance(v, x) {
15498
- return n.distance(v, x);
15498
+ distance(c, g) {
15499
+ return n.distance(c, g);
15499
15500
  }
15500
15501
  }
15501
15502
  };