map-boundary-editor 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,11 +7,11 @@ var $e = { exports: {} };
7
7
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
8
8
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
9
9
  */
10
- (function(X, F) {
11
- (function(p, ft) {
12
- ft(F);
10
+ (function(X, B) {
11
+ (function(p, et) {
12
+ et(B);
13
13
  })(Vo, function(p) {
14
- var ft = "1.9.4";
14
+ var et = "1.9.4";
15
15
  function o(t) {
16
16
  var e, i, n, s;
17
17
  for (i = 1, n = arguments.length; i < n; i++) {
@@ -89,7 +89,7 @@ var $e = { exports: {} };
89
89
  return typeof s == "function" && (s = s(e)), s;
90
90
  });
91
91
  }
92
- var et = Array.isArray || function(t) {
92
+ var it = Array.isArray || function(t) {
93
93
  return Object.prototype.toString.call(t) === "[object Array]";
94
94
  };
95
95
  function me(t, e) {
@@ -137,7 +137,7 @@ var $e = { exports: {} };
137
137
  setOptions: I,
138
138
  getParamString: ti,
139
139
  template: ei,
140
- isArray: et,
140
+ isArray: it,
141
141
  indexOf: me,
142
142
  emptyImageUrl: Kt,
143
143
  requestFn: ve,
@@ -145,9 +145,9 @@ var $e = { exports: {} };
145
145
  requestAnimFrame: V,
146
146
  cancelAnimFrame: J
147
147
  };
148
- function ht() {
148
+ function lt() {
149
149
  }
150
- ht.extend = function(t) {
150
+ lt.extend = function(t) {
151
151
  var e = function() {
152
152
  I(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
153
153
  }, i = e.__super__ = this.prototype, n = r(i);
@@ -161,12 +161,12 @@ var $e = { exports: {} };
161
161
  n._initHooks[a].call(this);
162
162
  }
163
163
  }, e;
164
- }, ht.include = function(t) {
164
+ }, lt.include = function(t) {
165
165
  var e = this.prototype.options;
166
166
  return o(this.prototype, t), t.options && (this.prototype.options = e, this.mergeOptions(t.options)), this;
167
- }, ht.mergeOptions = function(t) {
167
+ }, lt.mergeOptions = function(t) {
168
168
  return o(this.prototype.options, t), this;
169
- }, ht.addInitHook = function(t) {
169
+ }, lt.addInitHook = function(t) {
170
170
  var e = Array.prototype.slice.call(arguments, 1), i = typeof t == "function" ? t : function() {
171
171
  this[t].apply(this, e);
172
172
  };
@@ -174,7 +174,7 @@ var $e = { exports: {} };
174
174
  };
175
175
  function yn(t) {
176
176
  if (!(typeof L > "u" || !L || !L.Mixin)) {
177
- t = et(t) ? t : [t];
177
+ t = it(t) ? t : [t];
178
178
  for (var e = 0; e < t.length; e++)
179
179
  t[e] === L.Mixin.Events && console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.", new Error().stack);
180
180
  }
@@ -343,7 +343,7 @@ var $e = { exports: {} };
343
343
  }
344
344
  };
345
345
  K.addEventListener = K.on, K.removeEventListener = K.clearAllEventListeners = K.off, K.addOneTimeEventListener = K.once, K.fireEvent = K.fire, K.hasEventListeners = K.listens;
346
- var It = ht.extend(K);
346
+ var It = lt.extend(K);
347
347
  function P(t, e, i) {
348
348
  this.x = i ? Math.round(t) : t, this.y = i ? Math.round(e) : e;
349
349
  }
@@ -458,7 +458,7 @@ var $e = { exports: {} };
458
458
  }
459
459
  };
460
460
  function x(t, e, i) {
461
- return t instanceof P ? t : et(t) ? new P(t[0], t[1]) : t == null ? t : typeof t == "object" && "x" in t && "y" in t ? new P(t.x, t.y) : new P(t, e, i);
461
+ return t instanceof P ? t : it(t) ? new P(t[0], t[1]) : t == null ? t : typeof t == "object" && "x" in t && "y" in t ? new P(t.x, t.y) : new P(t, e, i);
462
462
  }
463
463
  function A(t, e) {
464
464
  if (t)
@@ -584,7 +584,7 @@ var $e = { exports: {} };
584
584
  if (n = t._southWest, s = t._northEast, !n || !s)
585
585
  return this;
586
586
  } else
587
- return t ? this.extend(E(t) || R(t)) : this;
587
+ return t ? this.extend(E(t) || N(t)) : this;
588
588
  return !e && !i ? (this._southWest = new O(n.lat, n.lng), this._northEast = new O(s.lat, s.lng)) : (e.lat = Math.min(n.lat, e.lat), e.lng = Math.min(n.lng, e.lng), i.lat = Math.max(s.lat, i.lat), i.lng = Math.max(s.lng, i.lng)), this;
589
589
  },
590
590
  // @method pad(bufferRatio: Number): LatLngBounds
@@ -652,21 +652,21 @@ var $e = { exports: {} };
652
652
  // @method contains (latlng: LatLng): Boolean
653
653
  // Returns `true` if the rectangle contains the given point.
654
654
  contains: function(t) {
655
- typeof t[0] == "number" || t instanceof O || "lat" in t ? t = E(t) : t = R(t);
655
+ typeof t[0] == "number" || t instanceof O || "lat" in t ? t = E(t) : t = N(t);
656
656
  var e = this._southWest, i = this._northEast, n, s;
657
657
  return t instanceof Y ? (n = t.getSouthWest(), s = t.getNorthEast()) : n = s = t, n.lat >= e.lat && s.lat <= i.lat && n.lng >= e.lng && s.lng <= i.lng;
658
658
  },
659
659
  // @method intersects(otherBounds: LatLngBounds): Boolean
660
660
  // Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
661
661
  intersects: function(t) {
662
- t = R(t);
662
+ t = N(t);
663
663
  var e = this._southWest, i = this._northEast, n = t.getSouthWest(), s = t.getNorthEast(), a = s.lat >= e.lat && n.lat <= i.lat, l = s.lng >= e.lng && n.lng <= i.lng;
664
664
  return a && l;
665
665
  },
666
666
  // @method overlaps(otherBounds: LatLngBounds): Boolean
667
667
  // Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
668
668
  overlaps: function(t) {
669
- t = R(t);
669
+ t = N(t);
670
670
  var e = this._southWest, i = this._northEast, n = t.getSouthWest(), s = t.getNorthEast(), a = s.lat > e.lat && n.lat < i.lat, l = s.lng > e.lng && n.lng < i.lng;
671
671
  return a && l;
672
672
  },
@@ -678,7 +678,7 @@ var $e = { exports: {} };
678
678
  // @method equals(otherBounds: LatLngBounds, maxMargin?: Number): Boolean
679
679
  // Returns `true` if the rectangle is equivalent (within a small margin of error) to the given bounds. The margin of error can be overridden by setting `maxMargin` to a small number.
680
680
  equals: function(t, e) {
681
- return t ? (t = R(t), this._southWest.equals(t.getSouthWest(), e) && this._northEast.equals(t.getNorthEast(), e)) : !1;
681
+ return t ? (t = N(t), this._southWest.equals(t.getSouthWest(), e) && this._northEast.equals(t.getNorthEast(), e)) : !1;
682
682
  },
683
683
  // @method isValid(): Boolean
684
684
  // Returns `true` if the bounds are properly initialized.
@@ -686,7 +686,7 @@ var $e = { exports: {} };
686
686
  return !!(this._southWest && this._northEast);
687
687
  }
688
688
  };
689
- function R(t, e) {
689
+ function N(t, e) {
690
690
  return t instanceof Y ? t : new Y(t, e);
691
691
  }
692
692
  function O(t, e, i) {
@@ -726,7 +726,7 @@ var $e = { exports: {} };
726
726
  // Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
727
727
  toBounds: function(t) {
728
728
  var e = 180 * t / 40075017, i = e / Math.cos(Math.PI / 180 * this.lat);
729
- return R(
729
+ return N(
730
730
  [this.lat - e, this.lng - i],
731
731
  [this.lat + e, this.lng + i]
732
732
  );
@@ -736,9 +736,9 @@ var $e = { exports: {} };
736
736
  }
737
737
  };
738
738
  function E(t, e, i) {
739
- return t instanceof O ? t : et(t) && typeof t[0] != "object" ? t.length === 3 ? new O(t[0], t[1], t[2]) : t.length === 2 ? new O(t[0], t[1]) : null : t == null ? t : typeof t == "object" && "lat" in t ? new O(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : e === void 0 ? null : new O(t, e, i);
739
+ return t instanceof O ? t : it(t) && typeof t[0] != "object" ? t.length === 3 ? new O(t[0], t[1], t[2]) : t.length === 2 ? new O(t[0], t[1]) : null : t == null ? t : typeof t == "object" && "lat" in t ? new O(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : e === void 0 ? null : new O(t, e, i);
740
740
  }
741
- var lt = {
741
+ var ut = {
742
742
  // @method latLngToPoint(latlng: LatLng, zoom: Number): Point
743
743
  // Projects geographical coordinates into pixel coordinates for a given zoom.
744
744
  latLngToPoint: function(t, e) {
@@ -820,7 +820,7 @@ var $e = { exports: {} };
820
820
  var a = t.getSouthWest(), l = t.getNorthEast(), u = new O(a.lat - n, a.lng - s), c = new O(l.lat - n, l.lng - s);
821
821
  return new Y(u, c);
822
822
  }
823
- }, pt = o({}, lt, {
823
+ }, pt = o({}, ut, {
824
824
  wrapLng: [-180, 180],
825
825
  // Mean Earth Radius, as recommended for use by
826
826
  // the International Union of Geodesy and Geophysics,
@@ -854,7 +854,7 @@ var $e = { exports: {} };
854
854
  }()
855
855
  };
856
856
  function Le(t, e, i, n) {
857
- if (et(t)) {
857
+ if (it(t)) {
858
858
  this._a = t[0], this._b = t[1], this._c = t[2], this._d = t[3];
859
859
  return;
860
860
  }
@@ -906,7 +906,7 @@ var $e = { exports: {} };
906
906
  }
907
907
  return i || "M0 0";
908
908
  }
909
- var be = document.documentElement.style, Xt = "ActiveXObject" in window, wn = Xt && !document.addEventListener, li = "msLaunchUri" in navigator && !("documentMode" in document), xe = ot("webkit"), ui = ot("android"), ci = ot("android 2") || ot("android 3"), bn = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), xn = ui && ot("Google") && bn < 537 && !("AudioNode" in window), Pe = !!window.opera, di = !li && ot("chrome"), _i = ot("gecko") && !xe && !Pe && !Xt, Pn = !di && ot("safari"), fi = ot("phantom"), pi = "OTransition" in be, Tn = navigator.platform.indexOf("Win") === 0, mi = Xt && "transition" in be, Te = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !ci, gi = "MozPerspective" in be, Mn = !window.L_DISABLE_3D && (mi || Te || gi) && !pi && !fi, Zt = typeof orientation < "u" || ot("mobile"), kn = Zt && xe, En = Zt && Te, vi = !window.PointerEvent && window.MSPointerEvent, yi = !!(window.PointerEvent || vi), Li = "ontouchstart" in window || !!window.TouchEvent, Cn = !window.L_NO_TOUCH && (Li || yi), Dn = Zt && Pe, Sn = Zt && _i, On = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, zn = function() {
909
+ var be = document.documentElement.style, Xt = "ActiveXObject" in window, wn = Xt && !document.addEventListener, li = "msLaunchUri" in navigator && !("documentMode" in document), xe = st("webkit"), ui = st("android"), ci = st("android 2") || st("android 3"), bn = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), xn = ui && st("Google") && bn < 537 && !("AudioNode" in window), Pe = !!window.opera, di = !li && st("chrome"), _i = st("gecko") && !xe && !Pe && !Xt, Pn = !di && st("safari"), fi = st("phantom"), pi = "OTransition" in be, Tn = navigator.platform.indexOf("Win") === 0, mi = Xt && "transition" in be, Te = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !ci, gi = "MozPerspective" in be, Mn = !window.L_DISABLE_3D && (mi || Te || gi) && !pi && !fi, Zt = typeof orientation < "u" || st("mobile"), kn = Zt && xe, En = Zt && Te, vi = !window.PointerEvent && window.MSPointerEvent, yi = !!(window.PointerEvent || vi), Li = "ontouchstart" in window || !!window.TouchEvent, Cn = !window.L_NO_TOUCH && (Li || yi), Dn = Zt && Pe, Sn = Zt && _i, On = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, zn = function() {
910
910
  var t = !1;
911
911
  try {
912
912
  var e = Object.defineProperty({}, "passive", {
@@ -933,7 +933,7 @@ var $e = { exports: {} };
933
933
  return !1;
934
934
  }
935
935
  }(), Bn = navigator.platform.indexOf("Mac") === 0, Rn = navigator.platform.indexOf("Linux") === 0;
936
- function ot(t) {
936
+ function st(t) {
937
937
  return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
938
938
  }
939
939
  var w = {
@@ -1014,7 +1014,7 @@ var $e = { exports: {} };
1014
1014
  }
1015
1015
  }
1016
1016
  function Wn(t, e) {
1017
- e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && G(e), Jt(t, e);
1017
+ e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && F(e), Jt(t, e);
1018
1018
  }
1019
1019
  function Vn(t) {
1020
1020
  var e = {}, i, n;
@@ -1102,7 +1102,7 @@ var $e = { exports: {} };
1102
1102
  De(t, (a ? a + " " : "") + e);
1103
1103
  }
1104
1104
  }
1105
- function B(t, e) {
1105
+ function R(t, e) {
1106
1106
  t.classList !== void 0 ? t.classList.remove(e) : De(t, pe((" " + $t(t) + " ").replace(" " + e + " ", " ")));
1107
1107
  }
1108
1108
  function De(t, e) {
@@ -1134,7 +1134,7 @@ var $e = { exports: {} };
1134
1134
  var n = e || new P(0, 0);
1135
1135
  t.style[Ee] = (w.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
1136
1136
  }
1137
- function N(t, e) {
1137
+ function H(t, e) {
1138
1138
  t._leaflet_pos = e, w.any3d ? Lt(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
1139
1139
  }
1140
1140
  function wt(t) {
@@ -1143,9 +1143,9 @@ var $e = { exports: {} };
1143
1143
  var Nt, Ht, Se;
1144
1144
  if ("onselectstart" in document)
1145
1145
  Nt = function() {
1146
- T(window, "selectstart", G);
1146
+ T(window, "selectstart", F);
1147
1147
  }, Ht = function() {
1148
- z(window, "selectstart", G);
1148
+ z(window, "selectstart", F);
1149
1149
  };
1150
1150
  else {
1151
1151
  var Ut = te(
@@ -1161,10 +1161,10 @@ var $e = { exports: {} };
1161
1161
  };
1162
1162
  }
1163
1163
  function Oe() {
1164
- T(window, "dragstart", G);
1164
+ T(window, "dragstart", F);
1165
1165
  }
1166
1166
  function ze() {
1167
- z(window, "dragstart", G);
1167
+ z(window, "dragstart", F);
1168
1168
  }
1169
1169
  var ee, Ie;
1170
1170
  function Ae(t) {
@@ -1203,13 +1203,13 @@ var $e = { exports: {} };
1203
1203
  toBack: kt,
1204
1204
  hasClass: Ce,
1205
1205
  addClass: M,
1206
- removeClass: B,
1206
+ removeClass: R,
1207
1207
  setClass: De,
1208
1208
  getClass: $t,
1209
1209
  setOpacity: Q,
1210
1210
  testProp: te,
1211
1211
  setTransform: Lt,
1212
- setPosition: N,
1212
+ setPosition: H,
1213
1213
  getPosition: wt,
1214
1214
  get disableTextSelection() {
1215
1215
  return Nt;
@@ -1235,10 +1235,10 @@ var $e = { exports: {} };
1235
1235
  }
1236
1236
  return this;
1237
1237
  }
1238
- var st = "_leaflet_events";
1238
+ var rt = "_leaflet_events";
1239
1239
  function z(t, e, i, n) {
1240
1240
  if (arguments.length === 1)
1241
- Si(t), delete t[st];
1241
+ Si(t), delete t[rt];
1242
1242
  else if (e && typeof e == "object")
1243
1243
  for (var s in e)
1244
1244
  Ne(t, s, e[s], i);
@@ -1252,7 +1252,7 @@ var $e = { exports: {} };
1252
1252
  return this;
1253
1253
  }
1254
1254
  function Si(t, e) {
1255
- for (var i in t[st]) {
1255
+ for (var i in t[rt]) {
1256
1256
  var n = i.split(/\d/)[0];
1257
1257
  (!e || e(n)) && Ne(t, n, null, null, i);
1258
1258
  }
@@ -1264,21 +1264,21 @@ var $e = { exports: {} };
1264
1264
  };
1265
1265
  function Re(t, e, i, n) {
1266
1266
  var s = e + f(i) + (n ? "_" + f(n) : "");
1267
- if (t[st] && t[st][s])
1267
+ if (t[rt] && t[rt][s])
1268
1268
  return this;
1269
1269
  var a = function(u) {
1270
1270
  return i.call(n || t, u || window.event);
1271
1271
  }, l = a;
1272
1272
  !w.touchNative && w.pointer && e.indexOf("touch") === 0 ? a = Nn(t, e, a) : w.touch && e === "dblclick" ? a = Yn(t, a) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(Be[e] || e, a, w.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (a = function(u) {
1273
1273
  u = u || window.event, Ue(t, u) && l(u);
1274
- }, t.addEventListener(Be[e], a, !1)) : t.addEventListener(e, l, !1) : t.attachEvent("on" + e, a), t[st] = t[st] || {}, t[st][s] = a;
1274
+ }, t.addEventListener(Be[e], a, !1)) : t.addEventListener(e, l, !1) : t.attachEvent("on" + e, a), t[rt] = t[rt] || {}, t[rt][s] = a;
1275
1275
  }
1276
1276
  function Ne(t, e, i, n, s) {
1277
1277
  s = s || e + f(i) + (n ? "_" + f(n) : "");
1278
- var a = t[st] && t[st][s];
1278
+ var a = t[rt] && t[rt][s];
1279
1279
  if (!a)
1280
1280
  return this;
1281
- !w.touchNative && w.pointer && e.indexOf("touch") === 0 ? Hn(t, e, a) : w.touch && e === "dblclick" ? jn(t, a) : "removeEventListener" in t ? t.removeEventListener(Be[e] || e, a, !1) : t.detachEvent("on" + e, a), t[st][s] = null;
1281
+ !w.touchNative && w.pointer && e.indexOf("touch") === 0 ? Hn(t, e, a) : w.touch && e === "dblclick" ? jn(t, a) : "removeEventListener" in t ? t.removeEventListener(Be[e] || e, a, !1) : t.detachEvent("on" + e, a), t[rt][s] = null;
1282
1282
  }
1283
1283
  function bt(t) {
1284
1284
  return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
@@ -1289,11 +1289,11 @@ var $e = { exports: {} };
1289
1289
  function Gt(t) {
1290
1290
  return T(t, "mousedown touchstart dblclick contextmenu", bt), t._leaflet_disable_click = !0, this;
1291
1291
  }
1292
- function G(t) {
1292
+ function F(t) {
1293
1293
  return t.preventDefault ? t.preventDefault() : t.returnValue = !1, this;
1294
1294
  }
1295
1295
  function xt(t) {
1296
- return G(t), bt(t), this;
1296
+ return F(t), bt(t), this;
1297
1297
  }
1298
1298
  function Oi(t) {
1299
1299
  if (t.composedPath)
@@ -1360,7 +1360,7 @@ var $e = { exports: {} };
1360
1360
  stopPropagation: bt,
1361
1361
  disableScrollPropagation: He,
1362
1362
  disableClickPropagation: Gt,
1363
- preventDefault: G,
1363
+ preventDefault: F,
1364
1364
  stop: xt,
1365
1365
  getPropagationPath: Oi,
1366
1366
  getMousePosition: zi,
@@ -1391,7 +1391,7 @@ var $e = { exports: {} };
1391
1391
  },
1392
1392
  _runFrame: function(t, e) {
1393
1393
  var i = this._startPos.add(this._offset.multiplyBy(t));
1394
- e && i._round(), N(this._el, i), this.fire("step");
1394
+ e && i._round(), H(this._el, i), this.fire("step");
1395
1395
  },
1396
1396
  _complete: function() {
1397
1397
  J(this._animId), this._inProgress = !1, this.fire("end");
@@ -1518,7 +1518,7 @@ var $e = { exports: {} };
1518
1518
  return this.setView(u, e, { zoom: i });
1519
1519
  },
1520
1520
  _getBoundsCenterZoom: function(t, e) {
1521
- e = e || {}, t = t.getBounds ? t.getBounds() : R(t);
1521
+ e = e || {}, t = t.getBounds ? t.getBounds() : N(t);
1522
1522
  var i = x(e.paddingTopLeft || e.padding || [0, 0]), n = x(e.paddingBottomRight || e.padding || [0, 0]), s = this.getBoundsZoom(t, !1, i.add(n));
1523
1523
  if (s = typeof e.maxZoom == "number" ? Math.min(e.maxZoom, s) : s, s === 1 / 0)
1524
1524
  return {
@@ -1535,7 +1535,7 @@ var $e = { exports: {} };
1535
1535
  // Sets a map view that contains the given geographical bounds with the
1536
1536
  // maximum zoom level possible.
1537
1537
  fitBounds: function(t, e) {
1538
- if (t = R(t), !t.isValid())
1538
+ if (t = N(t), !t.isValid())
1539
1539
  throw new Error("Bounds are not valid.");
1540
1540
  var i = this._getBoundsCenterZoom(t, e);
1541
1541
  return this.setView(i.center, i.zoom, e);
@@ -1579,33 +1579,33 @@ var $e = { exports: {} };
1579
1579
  var n = this.project(this.getCenter()), s = this.project(t), a = this.getSize(), l = this._zoom;
1580
1580
  t = E(t), e = e === void 0 ? l : e;
1581
1581
  var u = Math.max(a.x, a.y), c = u * this.getZoomScale(l, e), _ = s.distanceTo(n) || 1, v = 1.42, b = v * v;
1582
- function k(H) {
1583
- var fe = H ? -1 : 1, Uo = H ? c : u, Go = c * c - u * u + fe * b * b * _ * _, Fo = 2 * Uo * b * _, Qe = Go / Fo, mn = Math.sqrt(Qe * Qe + 1) - Qe, Wo = mn < 1e-9 ? -18 : Math.log(mn);
1582
+ function k(U) {
1583
+ var fe = U ? -1 : 1, Uo = U ? c : u, Go = c * c - u * u + fe * b * b * _ * _, Fo = 2 * Uo * b * _, Qe = Go / Fo, mn = Math.sqrt(Qe * Qe + 1) - Qe, Wo = mn < 1e-9 ? -18 : Math.log(mn);
1584
1584
  return Wo;
1585
1585
  }
1586
- function W(H) {
1587
- return (Math.exp(H) - Math.exp(-H)) / 2;
1586
+ function W(U) {
1587
+ return (Math.exp(U) - Math.exp(-U)) / 2;
1588
1588
  }
1589
- function U(H) {
1590
- return (Math.exp(H) + Math.exp(-H)) / 2;
1589
+ function G(U) {
1590
+ return (Math.exp(U) + Math.exp(-U)) / 2;
1591
1591
  }
1592
- function tt(H) {
1593
- return W(H) / U(H);
1592
+ function tt(U) {
1593
+ return W(U) / G(U);
1594
1594
  }
1595
1595
  var j = k(0);
1596
- function zt(H) {
1597
- return u * (U(j) / U(j + v * H));
1596
+ function zt(U) {
1597
+ return u * (G(j) / G(j + v * U));
1598
1598
  }
1599
- function Bo(H) {
1600
- return u * (U(j) * tt(j + v * H) - W(j)) / b;
1599
+ function Bo(U) {
1600
+ return u * (G(j) * tt(j + v * U) - W(j)) / b;
1601
1601
  }
1602
- function Ro(H) {
1603
- return 1 - Math.pow(1 - H, 1.5);
1602
+ function Ro(U) {
1603
+ return 1 - Math.pow(1 - U, 1.5);
1604
1604
  }
1605
1605
  var No = Date.now(), fn = (k(1) - j) / v, Ho = i.duration ? 1e3 * i.duration : 1e3 * fn * 0.8;
1606
1606
  function pn() {
1607
- var H = (Date.now() - No) / Ho, fe = Ro(H) * fn;
1608
- H <= 1 ? (this._flyToFrame = V(pn, this), this._move(
1607
+ var U = (Date.now() - No) / Ho, fe = Ro(U) * fn;
1608
+ U <= 1 ? (this._flyToFrame = V(pn, this), this._move(
1609
1609
  this.unproject(n.add(s.subtract(n).multiplyBy(Bo(fe) / _)), l),
1610
1610
  this.getScaleZoom(u / zt(fe), l),
1611
1611
  { flyTo: !0 }
@@ -1623,7 +1623,7 @@ var $e = { exports: {} };
1623
1623
  // @method setMaxBounds(bounds: LatLngBounds): this
1624
1624
  // Restricts the map view to the given bounds (see the [maxBounds](#map-maxbounds) option).
1625
1625
  setMaxBounds: function(t) {
1626
- return t = R(t), this.listens("moveend", this._panInsideMaxBounds) && this.off("moveend", this._panInsideMaxBounds), t.isValid() ? (this.options.maxBounds = t, this._loaded && this._panInsideMaxBounds(), this.on("moveend", this._panInsideMaxBounds)) : (this.options.maxBounds = null, this);
1626
+ return t = N(t), this.listens("moveend", this._panInsideMaxBounds) && this.off("moveend", this._panInsideMaxBounds), t.isValid() ? (this.options.maxBounds = t, this._loaded && this._panInsideMaxBounds(), this.on("moveend", this._panInsideMaxBounds)) : (this.options.maxBounds = null, this);
1627
1627
  },
1628
1628
  // @method setMinZoom(zoom: Number): this
1629
1629
  // Sets the lower limit for the available zoom levels (see the [minZoom](#map-minzoom) option).
@@ -1641,7 +1641,7 @@ var $e = { exports: {} };
1641
1641
  // Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.
1642
1642
  panInsideBounds: function(t, e) {
1643
1643
  this._enforcingBounds = !0;
1644
- var i = this.getCenter(), n = this._limitCenter(i, this._zoom, R(t));
1644
+ var i = this.getCenter(), n = this._limitCenter(i, this._zoom, N(t));
1645
1645
  return i.equals(n) || this.panTo(n, e), this._enforcingBounds = !1, this;
1646
1646
  },
1647
1647
  // @method panInside(latlng: LatLng, options?: padding options): this
@@ -1820,7 +1820,7 @@ var $e = { exports: {} };
1820
1820
  // instead returns the minimum zoom level on which the map view fits into
1821
1821
  // the given bounds in its entirety.
1822
1822
  getBoundsZoom: function(t, e, i) {
1823
- t = R(t), i = x(i || [0, 0]);
1823
+ t = N(t), i = x(i || [0, 0]);
1824
1824
  var n = this.getZoom() || 0, s = this.getMinZoom(), a = this.getMaxZoom(), l = t.getNorthWest(), u = t.getSouthEast(), c = this.getSize().subtract(i), _ = q(this.project(u, n), this.project(l, n)).getSize(), v = w.any3d ? this.options.zoomSnap : 1, b = c.x / _.x, k = c.y / _.y, W = e ? Math.max(b, k) : Math.min(b, k);
1825
1825
  return n = this.getScaleZoom(W, n), v && (n = Math.round(n / (v / 100)) * (v / 100), n = e ? Math.ceil(n / v) * v : Math.floor(n / v) * v), Math.max(s, Math.min(a, n));
1826
1826
  },
@@ -1932,7 +1932,7 @@ var $e = { exports: {} };
1932
1932
  // value is between -180 and +180 degrees, and the majority of the bounds
1933
1933
  // overlaps the CRS's bounds.
1934
1934
  wrapLatLngBounds: function(t) {
1935
- return this.options.crs.wrapLatLngBounds(R(t));
1935
+ return this.options.crs.wrapLatLngBounds(N(t));
1936
1936
  },
1937
1937
  // @method distance(latlng1: LatLng, latlng2: LatLng): Number
1938
1938
  // Returns the distance between two geographical coordinates according to
@@ -2000,12 +2000,12 @@ var $e = { exports: {} };
2000
2000
  },
2001
2001
  _initPanes: function() {
2002
2002
  var t = this._panes = {};
2003
- this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), N(this._mapPane, new P(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (M(t.markerPane, "leaflet-zoom-hide"), M(t.shadowPane, "leaflet-zoom-hide"));
2003
+ this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), H(this._mapPane, new P(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (M(t.markerPane, "leaflet-zoom-hide"), M(t.shadowPane, "leaflet-zoom-hide"));
2004
2004
  },
2005
2005
  // private methods that modify map state
2006
2006
  // @section Map state change events
2007
2007
  _resetView: function(t, e, i) {
2008
- N(this._mapPane, new P(0, 0));
2008
+ H(this._mapPane, new P(0, 0));
2009
2009
  var n = !this._loaded;
2010
2010
  this._loaded = !0, e = this._limitZoom(e), this.fire("viewprereset");
2011
2011
  var s = this._zoom !== e;
@@ -2026,7 +2026,7 @@ var $e = { exports: {} };
2026
2026
  return J(this._flyToFrame), this._panAnim && this._panAnim.stop(), this;
2027
2027
  },
2028
2028
  _rawPanBy: function(t) {
2029
- N(this._mapPane, this._getMapPanePos().subtract(t));
2029
+ H(this._mapPane, this._getMapPanePos().subtract(t));
2030
2030
  },
2031
2031
  _getZoomSpan: function() {
2032
2032
  return this.getMaxZoom() - this.getMinZoom();
@@ -2099,7 +2099,7 @@ var $e = { exports: {} };
2099
2099
  s = a.concat(s);
2100
2100
  }
2101
2101
  if (s.length) {
2102
- e === "contextmenu" && G(t);
2102
+ e === "contextmenu" && F(t);
2103
2103
  var u = s[0], c = {
2104
2104
  originalEvent: t
2105
2105
  };
@@ -2197,7 +2197,7 @@ var $e = { exports: {} };
2197
2197
  this.fire("move");
2198
2198
  },
2199
2199
  _onPanTransitionEnd: function() {
2200
- B(this._mapPane, "leaflet-pan-anim"), this.fire("moveend");
2200
+ R(this._mapPane, "leaflet-pan-anim"), this.fire("moveend");
2201
2201
  },
2202
2202
  _tryAnimatedPan: function(t, e) {
2203
2203
  var i = this._getCenterOffset(t)._trunc();
@@ -2241,13 +2241,13 @@ var $e = { exports: {} };
2241
2241
  }), this._tempFireZoomEvent || (this._tempFireZoomEvent = this._zoom !== this._animateToZoom), this._move(this._animateToCenter, this._animateToZoom, void 0, !0), setTimeout(h(this._onZoomTransitionEnd, this), 250));
2242
2242
  },
2243
2243
  _onZoomTransitionEnd: function() {
2244
- this._animatingZoom && (this._mapPane && B(this._mapPane, "leaflet-zoom-anim"), this._animatingZoom = !1, this._move(this._animateToCenter, this._animateToZoom, void 0, !0), this._tempFireZoomEvent && this.fire("zoom"), delete this._tempFireZoomEvent, this.fire("move"), this._moveEnd(!0));
2244
+ this._animatingZoom && (this._mapPane && R(this._mapPane, "leaflet-zoom-anim"), this._animatingZoom = !1, this._move(this._animateToCenter, this._animateToZoom, void 0, !0), this._tempFireZoomEvent && this.fire("zoom"), delete this._tempFireZoomEvent, this.fire("move"), this._moveEnd(!0));
2245
2245
  }
2246
2246
  });
2247
2247
  function $n(t, e) {
2248
2248
  return new C(t, e);
2249
2249
  }
2250
- var it = ht.extend({
2250
+ var nt = lt.extend({
2251
2251
  // @section
2252
2252
  // @aka Control Options
2253
2253
  options: {
@@ -2295,7 +2295,7 @@ var $e = { exports: {} };
2295
2295
  this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
2296
2296
  }
2297
2297
  }), Ft = function(t) {
2298
- return new it(t);
2298
+ return new nt(t);
2299
2299
  };
2300
2300
  C.include({
2301
2301
  // @method addControl(control: Control): this
@@ -2322,7 +2322,7 @@ var $e = { exports: {} };
2322
2322
  Z(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
2323
2323
  }
2324
2324
  });
2325
- var Zi = it.extend({
2325
+ var Zi = nt.extend({
2326
2326
  // @section
2327
2327
  // @aka Control.Layers options
2328
2328
  options: {
@@ -2364,7 +2364,7 @@ var $e = { exports: {} };
2364
2364
  return this._container;
2365
2365
  },
2366
2366
  addTo: function(t) {
2367
- return it.prototype.addTo.call(this, t), this._expandIfNotCollapsed();
2367
+ return nt.prototype.addTo.call(this, t), this._expandIfNotCollapsed();
2368
2368
  },
2369
2369
  onRemove: function() {
2370
2370
  this._map.off("zoomend", this._checkDisabledLayers, this);
@@ -2393,12 +2393,12 @@ var $e = { exports: {} };
2393
2393
  expand: function() {
2394
2394
  M(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null;
2395
2395
  var t = this._map.getSize().y - (this._container.offsetTop + 50);
2396
- return t < this._section.clientHeight ? (M(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") : B(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this;
2396
+ return t < this._section.clientHeight ? (M(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") : R(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this;
2397
2397
  },
2398
2398
  // @method collapse(): this
2399
2399
  // Collapse the control container if expanded.
2400
2400
  collapse: function() {
2401
- return B(this._container, "leaflet-control-layers-expanded"), this;
2401
+ return R(this._container, "leaflet-control-layers-expanded"), this;
2402
2402
  },
2403
2403
  _initLayout: function() {
2404
2404
  var t = "leaflet-control-layers", e = this._container = D("div", t), i = this.options.collapsed;
@@ -2415,7 +2415,7 @@ var $e = { exports: {} };
2415
2415
  },
2416
2416
  // Certain screen readers intercept the key event and instead send a click event
2417
2417
  click: function(a) {
2418
- G(a), this._expandSafely();
2418
+ F(a), this._expandSafely();
2419
2419
  }
2420
2420
  }, this), i || this.expand(), this._baseLayersList = D("div", t + "-base", n), this._separator = D("div", t + "-separator", n), this._overlaysList = D("div", t + "-overlays", n), e.appendChild(n);
2421
2421
  },
@@ -2484,15 +2484,15 @@ var $e = { exports: {} };
2484
2484
  },
2485
2485
  _expandSafely: function() {
2486
2486
  var t = this._section;
2487
- this._preventClick = !0, T(t, "click", G), this.expand();
2487
+ this._preventClick = !0, T(t, "click", F), this.expand();
2488
2488
  var e = this;
2489
2489
  setTimeout(function() {
2490
- z(t, "click", G), e._preventClick = !1;
2490
+ z(t, "click", F), e._preventClick = !1;
2491
2491
  });
2492
2492
  }
2493
2493
  }), to = function(t, e, i) {
2494
2494
  return new Zi(t, e, i);
2495
- }, Ge = it.extend({
2495
+ }, Ge = nt.extend({
2496
2496
  // @section
2497
2497
  // @aka Control.Zoom options
2498
2498
  options: {
@@ -2547,7 +2547,7 @@ var $e = { exports: {} };
2547
2547
  },
2548
2548
  _updateDisabled: function() {
2549
2549
  var t = this._map, e = "leaflet-disabled";
2550
- B(this._zoomInButton, e), B(this._zoomOutButton, e), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || t._zoom === t.getMinZoom()) && (M(this._zoomOutButton, e), this._zoomOutButton.setAttribute("aria-disabled", "true")), (this._disabled || t._zoom === t.getMaxZoom()) && (M(this._zoomInButton, e), this._zoomInButton.setAttribute("aria-disabled", "true"));
2550
+ R(this._zoomInButton, e), R(this._zoomOutButton, e), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || t._zoom === t.getMinZoom()) && (M(this._zoomOutButton, e), this._zoomOutButton.setAttribute("aria-disabled", "true")), (this._disabled || t._zoom === t.getMaxZoom()) && (M(this._zoomInButton, e), this._zoomInButton.setAttribute("aria-disabled", "true"));
2551
2551
  }
2552
2552
  });
2553
2553
  C.mergeOptions({
@@ -2557,7 +2557,7 @@ var $e = { exports: {} };
2557
2557
  });
2558
2558
  var eo = function(t) {
2559
2559
  return new Ge(t);
2560
- }, Bi = it.extend({
2560
+ }, Bi = nt.extend({
2561
2561
  // @section
2562
2562
  // @aka Control.Scale options
2563
2563
  options: {
@@ -2611,7 +2611,7 @@ var $e = { exports: {} };
2611
2611
  }
2612
2612
  }), io = function(t) {
2613
2613
  return new Bi(t);
2614
- }, no = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>', Fe = it.extend({
2614
+ }, no = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>', Fe = nt.extend({
2615
2615
  // @section
2616
2616
  // @aka Control.Attribution options
2617
2617
  options: {
@@ -2670,8 +2670,8 @@ var $e = { exports: {} };
2670
2670
  var oo = function(t) {
2671
2671
  return new Fe(t);
2672
2672
  };
2673
- it.Layers = Zi, it.Zoom = Ge, it.Scale = Bi, it.Attribution = Fe, Ft.layers = to, Ft.zoom = eo, Ft.scale = io, Ft.attribution = oo;
2674
- var rt = ht.extend({
2673
+ nt.Layers = Zi, nt.Zoom = Ge, nt.Scale = Bi, nt.Attribution = Fe, Ft.layers = to, Ft.zoom = eo, Ft.scale = io, Ft.attribution = oo;
2674
+ var at = lt.extend({
2675
2675
  initialize: function(t) {
2676
2676
  this._map = t;
2677
2677
  },
@@ -2697,7 +2697,7 @@ var $e = { exports: {} };
2697
2697
  // @method removeHooks()
2698
2698
  // Called when the handler is disabled, should remove the event hooks added previously.
2699
2699
  });
2700
- rt.addTo = function(t, e) {
2700
+ at.addTo = function(t, e) {
2701
2701
  return t.addHandler(e, this), this;
2702
2702
  };
2703
2703
  var so = { Events: K }, Ri = w.touch ? "touchstart mousedown" : "mousedown", mt = It.extend({
@@ -2746,18 +2746,18 @@ var $e = { exports: {} };
2746
2746
  return;
2747
2747
  }
2748
2748
  var e = t.touches && t.touches.length === 1 ? t.touches[0] : t, i = new P(e.clientX, e.clientY)._subtract(this._startPoint);
2749
- !i.x && !i.y || Math.abs(i.x) + Math.abs(i.y) < this.options.clickTolerance || (i.x /= this._parentScale.x, i.y /= this._parentScale.y, G(t), this._moved || (this.fire("dragstart"), this._moved = !0, M(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), M(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(i), this._moving = !0, this._lastEvent = t, this._updatePosition());
2749
+ !i.x && !i.y || Math.abs(i.x) + Math.abs(i.y) < this.options.clickTolerance || (i.x /= this._parentScale.x, i.y /= this._parentScale.y, F(t), this._moved || (this.fire("dragstart"), this._moved = !0, M(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), M(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(i), this._moving = !0, this._lastEvent = t, this._updatePosition());
2750
2750
  }
2751
2751
  },
2752
2752
  _updatePosition: function() {
2753
2753
  var t = { originalEvent: this._lastEvent };
2754
- this.fire("predrag", t), N(this._element, this._newPos), this.fire("drag", t);
2754
+ this.fire("predrag", t), H(this._element, this._newPos), this.fire("drag", t);
2755
2755
  },
2756
2756
  _onUp: function() {
2757
2757
  this._enabled && this.finishDrag();
2758
2758
  },
2759
2759
  finishDrag: function(t) {
2760
- B(document.body, "leaflet-dragging"), this._lastTarget && (B(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), z(document, "mousemove touchmove", this._onMove, this), z(document, "mouseup touchend touchcancel", this._onUp, this), ze(), Ht();
2760
+ R(document.body, "leaflet-dragging"), this._lastTarget && (R(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), z(document, "mousemove touchmove", this._onMove, this), z(document, "mouseup touchend touchcancel", this._onUp, this), ze(), Ht();
2761
2761
  var e = this._moved && this._moving;
2762
2762
  this._moving = !1, mt._dragging = !1, e && this.fire("dragend", {
2763
2763
  noInertia: t,
@@ -2781,14 +2781,14 @@ var $e = { exports: {} };
2781
2781
  if (!t || t.length === 0)
2782
2782
  throw new Error("latlngs not passed");
2783
2783
  $(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
2784
- var b = E([0, 0]), k = R(t), W = k.getNorthWest().distanceTo(k.getSouthWest()) * k.getNorthEast().distanceTo(k.getNorthWest());
2784
+ var b = E([0, 0]), k = N(t), W = k.getNorthWest().distanceTo(k.getSouthWest()) * k.getNorthEast().distanceTo(k.getNorthWest());
2785
2785
  W < 1700 && (b = We(t));
2786
- var U = t.length, tt = [];
2787
- for (i = 0; i < U; i++) {
2786
+ var G = t.length, tt = [];
2787
+ for (i = 0; i < G; i++) {
2788
2788
  var j = E(t[i]);
2789
2789
  tt.push(e.project(E([j.lat - b.lat, j.lng - b.lng])));
2790
2790
  }
2791
- for (u = c = _ = 0, i = 0, n = U - 1; i < U; n = i++)
2791
+ for (u = c = _ = 0, i = 0, n = G - 1; i < G; n = i++)
2792
2792
  s = tt[i], a = tt[n], l = s.y * a.x - a.y * s.x, c += (s.x + a.x) * l, _ += (s.y + a.y) * l, u += l * 3;
2793
2793
  u === 0 ? v = tt[0] : v = [c / u, _ / u];
2794
2794
  var zt = e.unproject(x(v));
@@ -2866,7 +2866,7 @@ var $e = { exports: {} };
2866
2866
  return c > 0 && (_ = ((t.x - s) * l + (t.y - a) * u) / c, _ > 1 ? (s = i.x, a = i.y) : _ > 0 && (s += l * _, a += u * _)), l = t.x - s, u = t.y - a, n ? l * l + u * u : new P(s, a);
2867
2867
  }
2868
2868
  function $(t) {
2869
- return !et(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
2869
+ return !it(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
2870
2870
  }
2871
2871
  function Vi(t) {
2872
2872
  return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), $(t);
@@ -2876,20 +2876,20 @@ var $e = { exports: {} };
2876
2876
  if (!t || t.length === 0)
2877
2877
  throw new Error("latlngs not passed");
2878
2878
  $(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
2879
- var v = E([0, 0]), b = R(t), k = b.getNorthWest().distanceTo(b.getSouthWest()) * b.getNorthEast().distanceTo(b.getNorthWest());
2879
+ var v = E([0, 0]), b = N(t), k = b.getNorthWest().distanceTo(b.getSouthWest()) * b.getNorthEast().distanceTo(b.getNorthWest());
2880
2880
  k < 1700 && (v = We(t));
2881
- var W = t.length, U = [];
2881
+ var W = t.length, G = [];
2882
2882
  for (i = 0; i < W; i++) {
2883
2883
  var tt = E(t[i]);
2884
- U.push(e.project(E([tt.lat - v.lat, tt.lng - v.lng])));
2884
+ G.push(e.project(E([tt.lat - v.lat, tt.lng - v.lng])));
2885
2885
  }
2886
2886
  for (i = 0, n = 0; i < W - 1; i++)
2887
- n += U[i].distanceTo(U[i + 1]) / 2;
2887
+ n += G[i].distanceTo(G[i + 1]) / 2;
2888
2888
  if (n === 0)
2889
- _ = U[0];
2889
+ _ = G[0];
2890
2890
  else
2891
2891
  for (i = 0, a = 0; i < W - 1; i++)
2892
- if (l = U[i], u = U[i + 1], s = l.distanceTo(u), a += s, a > n) {
2892
+ if (l = G[i], u = G[i + 1], s = l.distanceTo(u), a += s, a > n) {
2893
2893
  c = (a - n) / s, _ = [
2894
2894
  u.x - c * (u.x - l.x),
2895
2895
  u.y - c * (u.y - l.y)
@@ -2948,7 +2948,7 @@ var $e = { exports: {} };
2948
2948
  code: "EPSG:4326",
2949
2949
  projection: qe,
2950
2950
  transformation: At(1 / 180, 1, -1 / 180, 0.5)
2951
- }), po = o({}, lt, {
2951
+ }), po = o({}, ut, {
2952
2952
  projection: qe,
2953
2953
  transformation: At(1, 0, -1, 0),
2954
2954
  scale: function(t) {
@@ -2963,8 +2963,8 @@ var $e = { exports: {} };
2963
2963
  },
2964
2964
  infinite: !0
2965
2965
  });
2966
- lt.Earth = pt, lt.EPSG3395 = fo, lt.EPSG3857 = we, lt.EPSG900913 = Ln, lt.EPSG4326 = Yi, lt.Simple = po;
2967
- var nt = It.extend({
2966
+ ut.Earth = pt, ut.EPSG3395 = fo, ut.EPSG3857 = we, ut.EPSG900913 = Ln, ut.EPSG4326 = Yi, ut.Simple = po;
2967
+ var ot = It.extend({
2968
2968
  // Classes extending `L.Layer` will inherit the following options:
2969
2969
  options: {
2970
2970
  // @option pane: String = 'overlayPane'
@@ -3061,7 +3061,7 @@ var $e = { exports: {} };
3061
3061
  return this;
3062
3062
  },
3063
3063
  _addLayers: function(t) {
3064
- t = t ? et(t) ? t : [t] : [];
3064
+ t = t ? it(t) ? t : [t] : [];
3065
3065
  for (var e = 0, i = t.length; e < i; e++)
3066
3066
  this.addLayer(t[e]);
3067
3067
  },
@@ -3081,7 +3081,7 @@ var $e = { exports: {} };
3081
3081
  this._layersMaxZoom = e === -1 / 0 ? void 0 : e, this._layersMinZoom = t === 1 / 0 ? void 0 : t, i !== this._getZoomSpan() && this.fire("zoomlevelschange"), this.options.maxZoom === void 0 && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom && this.setZoom(this._layersMaxZoom), this.options.minZoom === void 0 && this._layersMinZoom && this.getZoom() < this._layersMinZoom && this.setZoom(this._layersMinZoom);
3082
3082
  }
3083
3083
  });
3084
- var Et = nt.extend({
3084
+ var Et = ot.extend({
3085
3085
  initialize: function(t, e) {
3086
3086
  I(this, e), this._layers = {};
3087
3087
  var i, n;
@@ -3169,7 +3169,7 @@ var $e = { exports: {} };
3169
3169
  }
3170
3170
  }), mo = function(t, e) {
3171
3171
  return new Et(t, e);
3172
- }, ut = Et.extend({
3172
+ }, ct = Et.extend({
3173
3173
  addLayer: function(t) {
3174
3174
  return this.hasLayer(t) ? this : (t.addEventParent(this), Et.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t }));
3175
3175
  },
@@ -3202,8 +3202,8 @@ var $e = { exports: {} };
3202
3202
  return t;
3203
3203
  }
3204
3204
  }), go = function(t, e) {
3205
- return new ut(t, e);
3206
- }, Ct = ht.extend({
3205
+ return new ct(t, e);
3206
+ }, Ct = lt.extend({
3207
3207
  /* @section
3208
3208
  * @aka Icon options
3209
3209
  *
@@ -3320,7 +3320,7 @@ var $e = { exports: {} };
3320
3320
  var i = document.querySelector('link[href$="leaflet.css"]');
3321
3321
  return i ? i.href.substring(0, i.href.length - 11 - 1) : "";
3322
3322
  }
3323
- }), ji = rt.extend({
3323
+ }), ji = at.extend({
3324
3324
  initialize: function(t) {
3325
3325
  this._marker = t;
3326
3326
  },
@@ -3339,7 +3339,7 @@ var $e = { exports: {} };
3339
3339
  predrag: this._onPreDrag,
3340
3340
  drag: this._onDrag,
3341
3341
  dragend: this._onDragEnd
3342
- }, this).disable(), this._marker._icon && B(this._marker._icon, "leaflet-marker-draggable");
3342
+ }, this).disable(), this._marker._icon && R(this._marker._icon, "leaflet-marker-draggable");
3343
3343
  },
3344
3344
  moved: function() {
3345
3345
  return this._draggable && this._draggable._moved;
@@ -3354,7 +3354,7 @@ var $e = { exports: {} };
3354
3354
  (Math.max(c.max.x, a.x) - c.max.x) / (l.max.x - c.max.x) - (Math.min(c.min.x, a.x) - c.min.x) / (l.min.x - c.min.x),
3355
3355
  (Math.max(c.max.y, a.y) - c.max.y) / (l.max.y - c.max.y) - (Math.min(c.min.y, a.y) - c.min.y) / (l.min.y - c.min.y)
3356
3356
  ).multiplyBy(n);
3357
- i.panBy(_, { animate: !1 }), this._draggable._newPos._add(_), this._draggable._startPos._add(_), N(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = V(this._adjustPan.bind(this, t));
3357
+ i.panBy(_, { animate: !1 }), this._draggable._newPos._add(_), this._draggable._startPos._add(_), H(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = V(this._adjustPan.bind(this, t));
3358
3358
  }
3359
3359
  },
3360
3360
  _onDragStart: function() {
@@ -3365,12 +3365,12 @@ var $e = { exports: {} };
3365
3365
  },
3366
3366
  _onDrag: function(t) {
3367
3367
  var e = this._marker, i = e._shadow, n = wt(e._icon), s = e._map.layerPointToLatLng(n);
3368
- i && N(i, n), e._latlng = s, t.latlng = s, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t);
3368
+ i && H(i, n), e._latlng = s, t.latlng = s, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t);
3369
3369
  },
3370
3370
  _onDragEnd: function(t) {
3371
3371
  J(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
3372
3372
  }
3373
- }), oe = nt.extend({
3373
+ }), oe = ot.extend({
3374
3374
  // @section
3375
3375
  // @aka Marker options
3376
3376
  options: {
@@ -3508,7 +3508,7 @@ var $e = { exports: {} };
3508
3508
  this._shadow && Z(this._shadow), this._shadow = null;
3509
3509
  },
3510
3510
  _setPos: function(t) {
3511
- this._icon && N(this._icon, t), this._shadow && N(this._shadow, t), this._zIndex = t.y + this.options.zIndexOffset, this._resetZIndex();
3511
+ this._icon && H(this._icon, t), this._shadow && H(this._shadow, t), this._zIndex = t.y + this.options.zIndexOffset, this._resetZIndex();
3512
3512
  },
3513
3513
  _updateZIndex: function(t) {
3514
3514
  this._icon && (this._icon.style.zIndex = this._zIndex + t);
@@ -3558,7 +3558,7 @@ var $e = { exports: {} };
3558
3558
  function yo(t, e) {
3559
3559
  return new oe(t, e);
3560
3560
  }
3561
- var gt = nt.extend({
3561
+ var gt = ot.extend({
3562
3562
  // @section
3563
3563
  // @aka Path options
3564
3564
  options: {
@@ -3746,7 +3746,7 @@ var $e = { exports: {} };
3746
3746
  function wo(t, e, i) {
3747
3747
  return new je(t, e, i);
3748
3748
  }
3749
- var ct = gt.extend({
3749
+ var dt = gt.extend({
3750
3750
  // @section
3751
3751
  // @aka Polyline options
3752
3752
  options: {
@@ -3878,10 +3878,10 @@ var $e = { exports: {} };
3878
3878
  }
3879
3879
  });
3880
3880
  function bo(t, e) {
3881
- return new ct(t, e);
3881
+ return new dt(t, e);
3882
3882
  }
3883
- ct._flat = Vi;
3884
- var Dt = ct.extend({
3883
+ dt._flat = Vi;
3884
+ var Dt = dt.extend({
3885
3885
  options: {
3886
3886
  fill: !0
3887
3887
  },
@@ -3896,11 +3896,11 @@ var $e = { exports: {} };
3896
3896
  return Hi(this._defaultShape(), this._map.options.crs);
3897
3897
  },
3898
3898
  _convertLatLngs: function(t) {
3899
- var e = ct.prototype._convertLatLngs.call(this, t), i = e.length;
3899
+ var e = dt.prototype._convertLatLngs.call(this, t), i = e.length;
3900
3900
  return i >= 2 && e[0] instanceof O && e[0].equals(e[i - 1]) && e.pop(), e;
3901
3901
  },
3902
3902
  _setLatLngs: function(t) {
3903
- ct.prototype._setLatLngs.call(this, t), $(this._latlngs) && (this._latlngs = [this._latlngs]);
3903
+ dt.prototype._setLatLngs.call(this, t), $(this._latlngs) && (this._latlngs = [this._latlngs]);
3904
3904
  },
3905
3905
  _defaultShape: function() {
3906
3906
  return $(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
@@ -3927,13 +3927,13 @@ var $e = { exports: {} };
3927
3927
  for (a = 0, c = this._parts.length; a < c; a++)
3928
3928
  for (i = this._parts[a], l = 0, _ = i.length, u = _ - 1; l < _; u = l++)
3929
3929
  n = i[l], s = i[u], n.y > t.y != s.y > t.y && t.x < (s.x - n.x) * (t.y - n.y) / (s.y - n.y) + n.x && (e = !e);
3930
- return e || ct.prototype._containsPoint.call(this, t, !0);
3930
+ return e || dt.prototype._containsPoint.call(this, t, !0);
3931
3931
  }
3932
3932
  });
3933
3933
  function xo(t, e) {
3934
3934
  return new Dt(t, e);
3935
3935
  }
3936
- var dt = ut.extend({
3936
+ var _t = ct.extend({
3937
3937
  /* @section
3938
3938
  * @aka GeoJSON options
3939
3939
  *
@@ -3989,7 +3989,7 @@ var $e = { exports: {} };
3989
3989
  // @method addData( <GeoJSON> data ): this
3990
3990
  // Adds a GeoJSON object to the layer.
3991
3991
  addData: function(t) {
3992
- var e = et(t) ? t : t.features, i, n, s;
3992
+ var e = it(t) ? t : t.features, i, n, s;
3993
3993
  if (e) {
3994
3994
  for (i = 0, n = e.length; i < n; i++)
3995
3995
  s = e[i], (s.geometries || s.geometry || s.features || s.coordinates) && this.addData(s);
@@ -4028,10 +4028,10 @@ var $e = { exports: {} };
4028
4028
  case "MultiPoint":
4029
4029
  for (_ = 0, v = n.length; _ < v; _++)
4030
4030
  u = l(n[_]), s.push(Ki(a, t, u, e));
4031
- return new ut(s);
4031
+ return new ct(s);
4032
4032
  case "LineString":
4033
4033
  case "MultiLineString":
4034
- return c = ae(n, i.type === "LineString" ? 0 : 1, l), new ct(c, e);
4034
+ return c = ae(n, i.type === "LineString" ? 0 : 1, l), new dt(c, e);
4035
4035
  case "Polygon":
4036
4036
  case "MultiPolygon":
4037
4037
  return c = ae(n, i.type === "Polygon" ? 1 : 2, l), new Dt(c, e);
@@ -4044,13 +4044,13 @@ var $e = { exports: {} };
4044
4044
  }, e);
4045
4045
  b && s.push(b);
4046
4046
  }
4047
- return new ut(s);
4047
+ return new ct(s);
4048
4048
  case "FeatureCollection":
4049
4049
  for (_ = 0, v = i.features.length; _ < v; _++) {
4050
4050
  var k = re(i.features[_], e);
4051
4051
  k && s.push(k);
4052
4052
  }
4053
- return new ut(s);
4053
+ return new ct(s);
4054
4054
  default:
4055
4055
  throw new Error("Invalid GeoJSON object.");
4056
4056
  }
@@ -4092,7 +4092,7 @@ var $e = { exports: {} };
4092
4092
  });
4093
4093
  }
4094
4094
  };
4095
- oe.include(Je), je.include(Je), se.include(Je), ct.include({
4095
+ oe.include(Je), je.include(Je), se.include(Je), dt.include({
4096
4096
  toGeoJSON: function(t) {
4097
4097
  var e = !$(this._latlngs), i = he(this._latlngs, e ? 1 : 0, !1, t);
4098
4098
  return St(this, {
@@ -4146,9 +4146,9 @@ var $e = { exports: {} };
4146
4146
  }
4147
4147
  });
4148
4148
  function Xi(t, e) {
4149
- return new dt(t, e);
4149
+ return new _t(t, e);
4150
4150
  }
4151
- var Po = Xi, ue = nt.extend({
4151
+ var Po = Xi, ue = ot.extend({
4152
4152
  // @section
4153
4153
  // @aka ImageOverlay options
4154
4154
  options: {
@@ -4177,7 +4177,7 @@ var $e = { exports: {} };
4177
4177
  className: ""
4178
4178
  },
4179
4179
  initialize: function(t, e, i) {
4180
- this._url = t, this._bounds = R(e), I(this, i);
4180
+ this._url = t, this._bounds = N(e), I(this, i);
4181
4181
  },
4182
4182
  onAdd: function() {
4183
4183
  this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (M(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
@@ -4211,7 +4211,7 @@ var $e = { exports: {} };
4211
4211
  // @method setBounds(bounds: LatLngBounds): this
4212
4212
  // Update the bounds that this ImageOverlay covers
4213
4213
  setBounds: function(t) {
4214
- return this._bounds = R(t), this._map && this._reset(), this;
4214
+ return this._bounds = N(t), this._map && this._reset(), this;
4215
4215
  },
4216
4216
  getEvents: function() {
4217
4217
  var t = {
@@ -4253,7 +4253,7 @@ var $e = { exports: {} };
4253
4253
  this._map.latLngToLayerPoint(this._bounds.getNorthWest()),
4254
4254
  this._map.latLngToLayerPoint(this._bounds.getSouthEast())
4255
4255
  ), i = e.getSize();
4256
- N(t, e.min), t.style.width = i.x + "px", t.style.height = i.y + "px";
4256
+ H(t, e.min), t.style.width = i.x + "px", t.style.height = i.y + "px";
4257
4257
  },
4258
4258
  _updateOpacity: function() {
4259
4259
  Q(this._image, this.options.opacity);
@@ -4303,7 +4303,7 @@ var $e = { exports: {} };
4303
4303
  this._url = i.length > 0 ? n : [e.src];
4304
4304
  return;
4305
4305
  }
4306
- et(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(e.style, "objectFit") && (e.style.objectFit = "fill"), e.autoplay = !!this.options.autoplay, e.loop = !!this.options.loop, e.muted = !!this.options.muted, e.playsInline = !!this.options.playsInline;
4306
+ it(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(e.style, "objectFit") && (e.style.objectFit = "fill"), e.autoplay = !!this.options.autoplay, e.loop = !!this.options.loop, e.muted = !!this.options.muted, e.playsInline = !!this.options.playsInline;
4307
4307
  for (var a = 0; a < this._url.length; a++) {
4308
4308
  var l = D("source");
4309
4309
  l.src = this._url[a], e.appendChild(l);
@@ -4328,7 +4328,7 @@ var $e = { exports: {} };
4328
4328
  function ko(t, e, i) {
4329
4329
  return new Qi(t, e, i);
4330
4330
  }
4331
- var at = nt.extend({
4331
+ var ht = ot.extend({
4332
4332
  // @section
4333
4333
  // @aka DivOverlay options
4334
4334
  options: {
@@ -4350,7 +4350,7 @@ var $e = { exports: {} };
4350
4350
  content: ""
4351
4351
  },
4352
4352
  initialize: function(t, e) {
4353
- t && (t instanceof O || et(t)) ? (this._latlng = E(t), I(this, e)) : (I(this, t), this._source = e), this.options.content && (this._content = this.options.content);
4353
+ t && (t instanceof O || it(t)) ? (this._latlng = E(t), I(this, e)) : (I(this, t), this._source = e), this.options.content && (this._content = this.options.content);
4354
4354
  },
4355
4355
  // @method openOn(map: Map): this
4356
4356
  // Adds the overlay to the map.
@@ -4376,7 +4376,7 @@ var $e = { exports: {} };
4376
4376
  this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && Q(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && Q(this._container, 1), this.bringToFront(), this.options.interactive && (M(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
4377
4377
  },
4378
4378
  onRemove: function(t) {
4379
- t._fadeAnimated ? (Q(this._container, 0), this._removeTimeout = setTimeout(h(Z, void 0, this._container), 200)) : Z(this._container), this.options.interactive && (B(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
4379
+ t._fadeAnimated ? (Q(this._container, 0), this._removeTimeout = setTimeout(h(Z, void 0, this._container), 200)) : Z(this._container), this.options.interactive && (R(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
4380
4380
  },
4381
4381
  // @namespace DivOverlay
4382
4382
  // @method getLatLng: LatLng
@@ -4437,7 +4437,7 @@ var $e = { exports: {} };
4437
4437
  var e = this._source;
4438
4438
  if (!e._map)
4439
4439
  return !1;
4440
- if (e instanceof ut) {
4440
+ if (e instanceof ct) {
4441
4441
  e = null;
4442
4442
  var i = this._source._layers;
4443
4443
  for (var n in i)
@@ -4476,7 +4476,7 @@ var $e = { exports: {} };
4476
4476
  _updatePosition: function() {
4477
4477
  if (this._map) {
4478
4478
  var t = this._map.latLngToLayerPoint(this._latlng), e = x(this.options.offset), i = this._getAnchor();
4479
- this._zoomAnimated ? N(this._container, t.add(i)) : e = e.add(t).add(i);
4479
+ this._zoomAnimated ? H(this._container, t.add(i)) : e = e.add(t).add(i);
4480
4480
  var n = this._containerBottom = -e.y, s = this._containerLeft = -Math.round(this._containerWidth / 2) + e.x;
4481
4481
  this._container.style.bottom = n + "px", this._container.style.left = s + "px";
4482
4482
  }
@@ -4490,13 +4490,13 @@ var $e = { exports: {} };
4490
4490
  var s = e;
4491
4491
  return s instanceof t || (s = new t(n).setContent(e)), i && s.setLatLng(i), s;
4492
4492
  }
4493
- }), nt.include({
4493
+ }), ot.include({
4494
4494
  _initOverlay: function(t, e, i, n) {
4495
4495
  var s = i;
4496
4496
  return s instanceof t ? (I(s, n), s._source = this) : (s = e && !n ? e : new t(n, this), s.setContent(i)), s;
4497
4497
  }
4498
4498
  });
4499
- var ce = at.extend({
4499
+ var ce = ht.extend({
4500
4500
  // @section
4501
4501
  // @aka Popup options
4502
4502
  options: {
@@ -4560,16 +4560,16 @@ var $e = { exports: {} };
4560
4560
  // Alternative to `map.openPopup(popup)`.
4561
4561
  // Adds the popup to the map and closes the previous one.
4562
4562
  openOn: function(t) {
4563
- return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, at.prototype.openOn.call(this, t);
4563
+ return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, ht.prototype.openOn.call(this, t);
4564
4564
  },
4565
4565
  onAdd: function(t) {
4566
- at.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof gt || this._source.on("preclick", bt));
4566
+ ht.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof gt || this._source.on("preclick", bt));
4567
4567
  },
4568
4568
  onRemove: function(t) {
4569
- at.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof gt || this._source.off("preclick", bt));
4569
+ ht.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof gt || this._source.off("preclick", bt));
4570
4570
  },
4571
4571
  getEvents: function() {
4572
- var t = at.prototype.getEvents.call(this);
4572
+ var t = ht.prototype.getEvents.call(this);
4573
4573
  return (this.options.closeOnClick !== void 0 ? this.options.closeOnClick : this._map.options.closePopupOnClick) && (t.preclick = this.close), this.options.keepInView && (t.moveend = this._adjustPan), t;
4574
4574
  },
4575
4575
  _initLayout: function() {
@@ -4580,7 +4580,7 @@ var $e = { exports: {} };
4580
4580
  if (this._contentNode = D("div", t + "-content", i), Gt(e), He(this._contentNode), T(e, "contextmenu", bt), this._tipContainer = D("div", t + "-tip-container", e), this._tip = D("div", t + "-tip", this._tipContainer), this.options.closeButton) {
4581
4581
  var n = this._closeButton = D("a", t + "-close-button", e);
4582
4582
  n.setAttribute("role", "button"), n.setAttribute("aria-label", "Close popup"), n.href = "#close", n.innerHTML = '<span aria-hidden="true">&#215;</span>', T(n, "click", function(s) {
4583
- G(s), this.close();
4583
+ F(s), this.close();
4584
4584
  }, this);
4585
4585
  }
4586
4586
  },
@@ -4590,11 +4590,11 @@ var $e = { exports: {} };
4590
4590
  var i = t.offsetWidth;
4591
4591
  i = Math.min(i, this.options.maxWidth), i = Math.max(i, this.options.minWidth), e.width = i + 1 + "px", e.whiteSpace = "", e.height = "";
4592
4592
  var n = t.offsetHeight, s = this.options.maxHeight, a = "leaflet-popup-scrolled";
4593
- s && n > s ? (e.height = s + "px", M(t, a)) : B(t, a), this._containerWidth = this._container.offsetWidth;
4593
+ s && n > s ? (e.height = s + "px", M(t, a)) : R(t, a), this._containerWidth = this._container.offsetWidth;
4594
4594
  },
4595
4595
  _animateZoom: function(t) {
4596
4596
  var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center), i = this._getAnchor();
4597
- N(this._container, e.add(i));
4597
+ H(this._container, e.add(i));
4598
4598
  },
4599
4599
  _adjustPan: function() {
4600
4600
  if (this.options.autoPan) {
@@ -4630,7 +4630,7 @@ var $e = { exports: {} };
4630
4630
  closePopup: function(t) {
4631
4631
  return t = arguments.length ? t : this._popup, t && t.close(), this;
4632
4632
  }
4633
- }), nt.include({
4633
+ }), ot.include({
4634
4634
  // @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this
4635
4635
  // Binds a popup to the layer with the passed `content` and sets up the
4636
4636
  // necessary event listeners. If a `Function` is passed it will receive
@@ -4656,7 +4656,7 @@ var $e = { exports: {} };
4656
4656
  // @method openPopup(latlng?: LatLng): this
4657
4657
  // Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
4658
4658
  openPopup: function(t) {
4659
- return this._popup && (this instanceof ut || (this._popup._source = this), this._popup._prepareOpen(t || this._latlng) && this._popup.openOn(this._map)), this;
4659
+ return this._popup && (this instanceof ct || (this._popup._source = this), this._popup._prepareOpen(t || this._latlng) && this._popup.openOn(this._map)), this;
4660
4660
  },
4661
4661
  // @method closePopup(): this
4662
4662
  // Closes the popup bound to this layer if it is open.
@@ -4701,7 +4701,7 @@ var $e = { exports: {} };
4701
4701
  t.originalEvent.keyCode === 13 && this._openPopup(t);
4702
4702
  }
4703
4703
  });
4704
- var de = at.extend({
4704
+ var de = ht.extend({
4705
4705
  // @section
4706
4706
  // @aka Tooltip options
4707
4707
  options: {
@@ -4728,13 +4728,13 @@ var $e = { exports: {} };
4728
4728
  opacity: 0.9
4729
4729
  },
4730
4730
  onAdd: function(t) {
4731
- at.prototype.onAdd.call(this, t), this.setOpacity(this.options.opacity), t.fire("tooltipopen", { tooltip: this }), this._source && (this.addEventParent(this._source), this._source.fire("tooltipopen", { tooltip: this }, !0));
4731
+ ht.prototype.onAdd.call(this, t), this.setOpacity(this.options.opacity), t.fire("tooltipopen", { tooltip: this }), this._source && (this.addEventParent(this._source), this._source.fire("tooltipopen", { tooltip: this }, !0));
4732
4732
  },
4733
4733
  onRemove: function(t) {
4734
- at.prototype.onRemove.call(this, t), t.fire("tooltipclose", { tooltip: this }), this._source && (this.removeEventParent(this._source), this._source.fire("tooltipclose", { tooltip: this }, !0));
4734
+ ht.prototype.onRemove.call(this, t), t.fire("tooltipclose", { tooltip: this }), this._source && (this.removeEventParent(this._source), this._source.fire("tooltipclose", { tooltip: this }, !0));
4735
4735
  },
4736
4736
  getEvents: function() {
4737
- var t = at.prototype.getEvents.call(this);
4737
+ var t = ht.prototype.getEvents.call(this);
4738
4738
  return this.options.permanent || (t.preclick = this.close), t;
4739
4739
  },
4740
4740
  _initLayout: function() {
@@ -4747,7 +4747,7 @@ var $e = { exports: {} };
4747
4747
  },
4748
4748
  _setPosition: function(t) {
4749
4749
  var e, i, n = this._map, s = this._container, a = n.latLngToContainerPoint(n.getCenter()), l = n.layerPointToContainerPoint(t), u = this.options.direction, c = s.offsetWidth, _ = s.offsetHeight, v = x(this.options.offset), b = this._getAnchor();
4750
- u === "top" ? (e = c / 2, i = _) : u === "bottom" ? (e = c / 2, i = 0) : u === "center" ? (e = c / 2, i = _ / 2) : u === "right" ? (e = 0, i = _ / 2) : u === "left" ? (e = c, i = _ / 2) : l.x < a.x ? (u = "right", e = 0, i = _ / 2) : (u = "left", e = c + (v.x + b.x) * 2, i = _ / 2), t = t.subtract(x(e, i, !0)).add(v).add(b), B(s, "leaflet-tooltip-right"), B(s, "leaflet-tooltip-left"), B(s, "leaflet-tooltip-top"), B(s, "leaflet-tooltip-bottom"), M(s, "leaflet-tooltip-" + u), N(s, t);
4750
+ u === "top" ? (e = c / 2, i = _) : u === "bottom" ? (e = c / 2, i = 0) : u === "center" ? (e = c / 2, i = _ / 2) : u === "right" ? (e = 0, i = _ / 2) : u === "left" ? (e = c, i = _ / 2) : l.x < a.x ? (u = "right", e = 0, i = _ / 2) : (u = "left", e = c + (v.x + b.x) * 2, i = _ / 2), t = t.subtract(x(e, i, !0)).add(v).add(b), R(s, "leaflet-tooltip-right"), R(s, "leaflet-tooltip-left"), R(s, "leaflet-tooltip-top"), R(s, "leaflet-tooltip-bottom"), M(s, "leaflet-tooltip-" + u), H(s, t);
4751
4751
  },
4752
4752
  _updatePosition: function() {
4753
4753
  var t = this._map.latLngToLayerPoint(this._latlng);
@@ -4780,7 +4780,7 @@ var $e = { exports: {} };
4780
4780
  closeTooltip: function(t) {
4781
4781
  return t.close(), this;
4782
4782
  }
4783
- }), nt.include({
4783
+ }), ot.include({
4784
4784
  // @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this
4785
4785
  // Binds a tooltip to the layer with the passed `content` and sets up the
4786
4786
  // necessary event listeners. If a `Function` is passed it will receive
@@ -4805,7 +4805,7 @@ var $e = { exports: {} };
4805
4805
  // @method openTooltip(latlng?: LatLng): this
4806
4806
  // Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.
4807
4807
  openTooltip: function(t) {
4808
- return this._tooltip && (this instanceof ut || (this._tooltip._source = this), this._tooltip._prepareOpen(t) && (this._tooltip.openOn(this._map), this.getElement ? this._setAriaDescribedByOnLayer(this) : this.eachLayer && this.eachLayer(this._setAriaDescribedByOnLayer, this))), this;
4808
+ return this._tooltip && (this instanceof ct || (this._tooltip._source = this), this._tooltip._prepareOpen(t) && (this._tooltip.openOn(this._map), this.getElement ? this._setAriaDescribedByOnLayer(this) : this.eachLayer && this.eachLayer(this._setAriaDescribedByOnLayer, this))), this;
4809
4809
  },
4810
4810
  // @method closeTooltip(): this
4811
4811
  // Closes the tooltip bound to this layer if it is open.
@@ -4897,7 +4897,7 @@ var $e = { exports: {} };
4897
4897
  return new $i(t);
4898
4898
  }
4899
4899
  Ct.Default = Vt;
4900
- var qt = nt.extend({
4900
+ var qt = ot.extend({
4901
4901
  // @section
4902
4902
  // @aka GridLayer options
4903
4903
  options: {
@@ -5146,7 +5146,7 @@ var $e = { exports: {} };
5146
5146
  },
5147
5147
  _setZoomTransform: function(t, e, i) {
5148
5148
  var n = this._map.getZoomScale(i, t.zoom), s = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e, i)).round();
5149
- w.any3d ? Lt(t.el, s, n) : N(t.el, s);
5149
+ w.any3d ? Lt(t.el, s, n) : H(t.el, s);
5150
5150
  },
5151
5151
  _resetGrid: function() {
5152
5152
  var t = this._map, e = t.options.crs, i = this._tileSize = this.getTileSize(), n = this._tileZoom, s = this._map.getPixelWorldBounds(this._tileZoom);
@@ -5189,8 +5189,8 @@ var $e = { exports: {} };
5189
5189
  for (var k = s.min.x; k <= s.max.x; k++) {
5190
5190
  var W = new P(k, b);
5191
5191
  if (W.z = this._tileZoom, !!this._isValidTile(W)) {
5192
- var U = this._tiles[this._tileCoordsToKey(W)];
5193
- U ? U.current = !0 : l.push(W);
5192
+ var G = this._tiles[this._tileCoordsToKey(W)];
5193
+ G ? G.current = !0 : l.push(W);
5194
5194
  }
5195
5195
  }
5196
5196
  if (l.sort(function(j, zt) {
@@ -5215,7 +5215,7 @@ var $e = { exports: {} };
5215
5215
  if (!this.options.bounds)
5216
5216
  return !0;
5217
5217
  var n = this._tileCoordsToBounds(t);
5218
- return R(this.options.bounds).overlaps(n);
5218
+ return N(this.options.bounds).overlaps(n);
5219
5219
  },
5220
5220
  _keyToBounds: function(t) {
5221
5221
  return this._tileCoordsToBounds(this._keyToTileCoords(t));
@@ -5252,7 +5252,7 @@ var $e = { exports: {} };
5252
5252
  },
5253
5253
  _addTile: function(t, e) {
5254
5254
  var i = this._getTilePos(t), n = this._tileCoordsToKey(t), s = this.createTile(this._wrapCoords(t), h(this._tileReady, this, t));
5255
- this._initTile(s), this.createTile.length < 2 && V(h(this._tileReady, this, t, null, s)), N(s, i), this._tiles[n] = {
5255
+ this._initTile(s), this.createTile.length < 2 && V(h(this._tileReady, this, t, null, s)), H(s, i), this._tiles[n] = {
5256
5256
  el: s,
5257
5257
  coords: t,
5258
5258
  current: !0
@@ -5485,7 +5485,7 @@ var $e = { exports: {} };
5485
5485
  return new en(t, e);
5486
5486
  }
5487
5487
  Ot.WMS = en, tn.wms = Oo;
5488
- var _t = nt.extend({
5488
+ var ft = ot.extend({
5489
5489
  // @section
5490
5490
  // @aka Renderer options
5491
5491
  options: {
@@ -5520,7 +5520,7 @@ var $e = { exports: {} };
5520
5520
  },
5521
5521
  _updateTransform: function(t, e) {
5522
5522
  var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), s = this._map.project(this._center, e), a = n.multiplyBy(-i).add(s).subtract(this._map._getNewPixelOrigin(t, e));
5523
- w.any3d ? Lt(this._container, a, i) : N(this._container, a);
5523
+ w.any3d ? Lt(this._container, a, i) : H(this._container, a);
5524
5524
  },
5525
5525
  _reset: function() {
5526
5526
  this._update(), this._updateTransform(this._center, this._zoom);
@@ -5539,7 +5539,7 @@ var $e = { exports: {} };
5539
5539
  var t = this.options.padding, e = this._map.getSize(), i = this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();
5540
5540
  this._bounds = new A(i, i.add(e.multiplyBy(1 + t * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
5541
5541
  }
5542
- }), nn = _t.extend({
5542
+ }), nn = ft.extend({
5543
5543
  // @section
5544
5544
  // @aka Canvas options
5545
5545
  options: {
@@ -5548,14 +5548,14 @@ var $e = { exports: {} };
5548
5548
  tolerance: 0
5549
5549
  },
5550
5550
  getEvents: function() {
5551
- var t = _t.prototype.getEvents.call(this);
5551
+ var t = ft.prototype.getEvents.call(this);
5552
5552
  return t.viewprereset = this._onViewPreReset, t;
5553
5553
  },
5554
5554
  _onViewPreReset: function() {
5555
5555
  this._postponeUpdatePaths = !0;
5556
5556
  },
5557
5557
  onAdd: function() {
5558
- _t.prototype.onAdd.call(this), this._draw();
5558
+ ft.prototype.onAdd.call(this), this._draw();
5559
5559
  },
5560
5560
  _initContainer: function() {
5561
5561
  var t = this._container = document.createElement("canvas");
@@ -5575,13 +5575,13 @@ var $e = { exports: {} };
5575
5575
  },
5576
5576
  _update: function() {
5577
5577
  if (!(this._map._animatingZoom && this._bounds)) {
5578
- _t.prototype._update.call(this);
5578
+ ft.prototype._update.call(this);
5579
5579
  var t = this._bounds, e = this._container, i = t.getSize(), n = w.retina ? 2 : 1;
5580
- N(e, t.min), e.width = n * i.x, e.height = n * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px", w.retina && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update");
5580
+ H(e, t.min), e.width = n * i.x, e.height = n * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px", w.retina && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update");
5581
5581
  }
5582
5582
  },
5583
5583
  _reset: function() {
5584
- _t.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !1, this._updatePaths());
5584
+ ft.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !1, this._updatePaths());
5585
5585
  },
5586
5586
  _initPath: function(t) {
5587
5587
  this._updateDashArray(t), this._layers[f(t)] = t;
@@ -5686,7 +5686,7 @@ var $e = { exports: {} };
5686
5686
  },
5687
5687
  _handleMouseOut: function(t) {
5688
5688
  var e = this._hoveredLayer;
5689
- e && (B(this._container, "leaflet-interactive"), this._fireEvent([e], t, "mouseout"), this._hoveredLayer = null, this._mouseHoverThrottled = !1);
5689
+ e && (R(this._container, "leaflet-interactive"), this._fireEvent([e], t, "mouseout"), this._hoveredLayer = null, this._mouseHoverThrottled = !1);
5690
5690
  },
5691
5691
  _handleMouseHover: function(t, e) {
5692
5692
  if (!this._mouseHoverThrottled) {
@@ -5741,7 +5741,7 @@ var $e = { exports: {} };
5741
5741
  this._container = D("div", "leaflet-vml-container");
5742
5742
  },
5743
5743
  _update: function() {
5744
- this._map._animatingZoom || (_t.prototype._update.call(this), this.fire("update"));
5744
+ this._map._animatingZoom || (ft.prototype._update.call(this), this.fire("update"));
5745
5745
  },
5746
5746
  _initPath: function(t) {
5747
5747
  var e = t._container = Yt("shape");
@@ -5757,7 +5757,7 @@ var $e = { exports: {} };
5757
5757
  },
5758
5758
  _updateStyle: function(t) {
5759
5759
  var e = t._stroke, i = t._fill, n = t.options, s = t._container;
5760
- s.stroked = !!n.stroke, s.filled = !!n.fill, n.stroke ? (e || (e = t._stroke = Yt("stroke")), s.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle = et(n.dashArray) ? n.dashArray.join(" ") : n.dashArray.replace(/( *, *)/g, " ") : e.dashStyle = "", e.endcap = n.lineCap.replace("butt", "flat"), e.joinstyle = n.lineJoin) : e && (s.removeChild(e), t._stroke = null), n.fill ? (i || (i = t._fill = Yt("fill")), s.appendChild(i), i.color = n.fillColor || n.color, i.opacity = n.fillOpacity) : i && (s.removeChild(i), t._fill = null);
5760
+ s.stroked = !!n.stroke, s.filled = !!n.fill, n.stroke ? (e || (e = t._stroke = Yt("stroke")), s.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle = it(n.dashArray) ? n.dashArray.join(" ") : n.dashArray.replace(/( *, *)/g, " ") : e.dashStyle = "", e.endcap = n.lineCap.replace("butt", "flat"), e.joinstyle = n.lineJoin) : e && (s.removeChild(e), t._stroke = null), n.fill ? (i || (i = t._fill = Yt("fill")), s.appendChild(i), i.color = n.fillColor || n.color, i.opacity = n.fillOpacity) : i && (s.removeChild(i), t._fill = null);
5761
5761
  },
5762
5762
  _updateCircle: function(t) {
5763
5763
  var e = t._point.round(), i = Math.round(t._radius), n = Math.round(t._radiusY || i);
@@ -5772,7 +5772,7 @@ var $e = { exports: {} };
5772
5772
  _bringToBack: function(t) {
5773
5773
  kt(t._container);
5774
5774
  }
5775
- }, _e = w.vml ? Yt : ai, jt = _t.extend({
5775
+ }, _e = w.vml ? Yt : ai, jt = ft.extend({
5776
5776
  _initContainer: function() {
5777
5777
  this._container = _e("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = _e("g"), this._container.appendChild(this._rootGroup);
5778
5778
  },
@@ -5781,9 +5781,9 @@ var $e = { exports: {} };
5781
5781
  },
5782
5782
  _update: function() {
5783
5783
  if (!(this._map._animatingZoom && this._bounds)) {
5784
- _t.prototype._update.call(this);
5784
+ ft.prototype._update.call(this);
5785
5785
  var t = this._bounds, e = t.getSize(), i = this._container;
5786
- (!this._svgSize || !this._svgSize.equals(e)) && (this._svgSize = e, i.setAttribute("width", e.x), i.setAttribute("height", e.y)), N(i, t.min), i.setAttribute("viewBox", [t.min.x, t.min.y, e.x, e.y].join(" ")), this.fire("update");
5786
+ (!this._svgSize || !this._svgSize.equals(e)) && (this._svgSize = e, i.setAttribute("width", e.x), i.setAttribute("height", e.y)), H(i, t.min), i.setAttribute("viewBox", [t.min.x, t.min.y, e.x, e.y].join(" ")), this.fire("update");
5787
5787
  }
5788
5788
  },
5789
5789
  // methods below are called by vector layers implementations
@@ -5855,7 +5855,7 @@ var $e = { exports: {} };
5855
5855
  return this.setLatLngs(this._boundsToLatLngs(t));
5856
5856
  },
5857
5857
  _boundsToLatLngs: function(t) {
5858
- return t = R(t), [
5858
+ return t = N(t), [
5859
5859
  t.getSouthWest(),
5860
5860
  t.getNorthWest(),
5861
5861
  t.getNorthEast(),
@@ -5866,13 +5866,13 @@ var $e = { exports: {} };
5866
5866
  function Io(t, e) {
5867
5867
  return new rn(t, e);
5868
5868
  }
5869
- jt.create = _e, jt.pointsToPath = hi, dt.geometryToLayer = re, dt.coordsToLatLng = Ke, dt.coordsToLatLngs = ae, dt.latLngToCoords = Xe, dt.latLngsToCoords = he, dt.getFeature = St, dt.asFeature = le, C.mergeOptions({
5869
+ jt.create = _e, jt.pointsToPath = hi, _t.geometryToLayer = re, _t.coordsToLatLng = Ke, _t.coordsToLatLngs = ae, _t.latLngToCoords = Xe, _t.latLngsToCoords = he, _t.getFeature = St, _t.asFeature = le, C.mergeOptions({
5870
5870
  // @option boxZoom: Boolean = true
5871
5871
  // Whether the map can be zoomed to a rectangular area specified by
5872
5872
  // dragging the mouse while pressing the shift key.
5873
5873
  boxZoom: !0
5874
5874
  });
5875
- var an = rt.extend({
5875
+ var an = at.extend({
5876
5876
  initialize: function(t) {
5877
5877
  this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this._resetStateTimeout = 0, t.on("unload", this._destroy, this);
5878
5878
  },
@@ -5907,10 +5907,10 @@ var $e = { exports: {} };
5907
5907
  _onMouseMove: function(t) {
5908
5908
  this._moved || (this._moved = !0, this._box = D("div", "leaflet-zoom-box", this._container), M(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(t);
5909
5909
  var e = new A(this._point, this._startPoint), i = e.getSize();
5910
- N(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
5910
+ H(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
5911
5911
  },
5912
5912
  _finish: function() {
5913
- this._moved && (Z(this._box), B(this._container, "leaflet-crosshair")), Ht(), ze(), z(document, {
5913
+ this._moved && (Z(this._box), R(this._container, "leaflet-crosshair")), Ht(), ze(), z(document, {
5914
5914
  contextmenu: xt,
5915
5915
  mousemove: this._onMouseMove,
5916
5916
  mouseup: this._onMouseUp,
@@ -5939,7 +5939,7 @@ var $e = { exports: {} };
5939
5939
  // view regardless of where the mouse was.
5940
5940
  doubleClickZoom: !0
5941
5941
  });
5942
- var hn = rt.extend({
5942
+ var hn = at.extend({
5943
5943
  addHooks: function() {
5944
5944
  this._map.on("dblclick", this._onDoubleClick, this);
5945
5945
  },
@@ -5986,7 +5986,7 @@ var $e = { exports: {} };
5986
5986
  // solid, preventing the user from dragging outside the bounds.
5987
5987
  maxBoundsViscosity: 0
5988
5988
  });
5989
- var ln = rt.extend({
5989
+ var ln = at.extend({
5990
5990
  addHooks: function() {
5991
5991
  if (!this._draggable) {
5992
5992
  var t = this._map;
@@ -5999,7 +5999,7 @@ var $e = { exports: {} };
5999
5999
  M(this._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this._positions = [], this._times = [];
6000
6000
  },
6001
6001
  removeHooks: function() {
6002
- B(this._map._container, "leaflet-grab"), B(this._map._container, "leaflet-touch-drag"), this._draggable.disable();
6002
+ R(this._map._container, "leaflet-grab"), R(this._map._container, "leaflet-touch-drag"), this._draggable.disable();
6003
6003
  },
6004
6004
  moved: function() {
6005
6005
  return this._draggable && this._draggable._moved;
@@ -6010,7 +6010,7 @@ var $e = { exports: {} };
6010
6010
  _onDragStart: function() {
6011
6011
  var t = this._map;
6012
6012
  if (t._stop(), this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
6013
- var e = R(this._map.options.maxBounds);
6013
+ var e = N(this._map.options.maxBounds);
6014
6014
  this._offsetLimit = q(
6015
6015
  this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),
6016
6016
  this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())
@@ -6074,7 +6074,7 @@ var $e = { exports: {} };
6074
6074
  // Amount of pixels to pan when pressing an arrow key.
6075
6075
  keyboardPanDelta: 80
6076
6076
  });
6077
- var un = rt.extend({
6077
+ var un = at.extend({
6078
6078
  keyCodes: {
6079
6079
  left: [37],
6080
6080
  right: [39],
@@ -6179,7 +6179,7 @@ var $e = { exports: {} };
6179
6179
  // faster (and vice versa).
6180
6180
  wheelPxPerZoomLevel: 60
6181
6181
  });
6182
- var cn = rt.extend({
6182
+ var cn = at.extend({
6183
6183
  addHooks: function() {
6184
6184
  T(this._map._container, "wheel", this._onWheelScroll, this), this._delta = 0;
6185
6185
  },
@@ -6211,7 +6211,7 @@ var $e = { exports: {} };
6211
6211
  // for it to be considered a valid tap.
6212
6212
  tapTolerance: 15
6213
6213
  });
6214
- var dn = rt.extend({
6214
+ var dn = at.extend({
6215
6215
  addHooks: function() {
6216
6216
  T(this._map._container, "touchstart", this._onDown, this);
6217
6217
  },
@@ -6222,12 +6222,12 @@ var $e = { exports: {} };
6222
6222
  if (clearTimeout(this._holdTimeout), t.touches.length === 1) {
6223
6223
  var e = t.touches[0];
6224
6224
  this._startPos = this._newPos = new P(e.clientX, e.clientY), this._holdTimeout = setTimeout(h(function() {
6225
- this._cancel(), this._isTapValid() && (T(document, "touchend", G), T(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
6225
+ this._cancel(), this._isTapValid() && (T(document, "touchend", F), T(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
6226
6226
  }, this), Ao), T(document, "touchend touchcancel contextmenu", this._cancel, this), T(document, "touchmove", this._onMove, this);
6227
6227
  }
6228
6228
  },
6229
6229
  _cancelClickPrevent: function t() {
6230
- z(document, "touchend", G), z(document, "touchend touchcancel", t);
6230
+ z(document, "touchend", F), z(document, "touchend touchcancel", t);
6231
6231
  },
6232
6232
  _cancel: function() {
6233
6233
  clearTimeout(this._holdTimeout), z(document, "touchend touchcancel contextmenu", this._cancel, this), z(document, "touchmove", this._onMove, this);
@@ -6268,18 +6268,18 @@ var $e = { exports: {} };
6268
6268
  // and then bounce back when pinch-zooming.
6269
6269
  bounceAtZoomLimits: !0
6270
6270
  });
6271
- var _n = rt.extend({
6271
+ var _n = at.extend({
6272
6272
  addHooks: function() {
6273
6273
  M(this._map._container, "leaflet-touch-zoom"), T(this._map._container, "touchstart", this._onTouchStart, this);
6274
6274
  },
6275
6275
  removeHooks: function() {
6276
- B(this._map._container, "leaflet-touch-zoom"), z(this._map._container, "touchstart", this._onTouchStart, this);
6276
+ R(this._map._container, "leaflet-touch-zoom"), z(this._map._container, "touchstart", this._onTouchStart, this);
6277
6277
  },
6278
6278
  _onTouchStart: function(t) {
6279
6279
  var e = this._map;
6280
6280
  if (!(!t.touches || t.touches.length !== 2 || e._animatingZoom || this._zooming)) {
6281
6281
  var i = e.mouseEventToContainerPoint(t.touches[0]), n = e.mouseEventToContainerPoint(t.touches[1]);
6282
- this._centerPoint = e.getSize()._divideBy(2), this._startLatLng = e.containerPointToLatLng(this._centerPoint), e.options.touchZoom !== "center" && (this._pinchStartLatLng = e.containerPointToLatLng(i.add(n)._divideBy(2))), this._startDist = i.distanceTo(n), this._startZoom = e.getZoom(), this._moved = !1, this._zooming = !0, e._stop(), T(document, "touchmove", this._onTouchMove, this), T(document, "touchend touchcancel", this._onTouchEnd, this), G(t);
6282
+ this._centerPoint = e.getSize()._divideBy(2), this._startLatLng = e.containerPointToLatLng(this._centerPoint), e.options.touchZoom !== "center" && (this._pinchStartLatLng = e.containerPointToLatLng(i.add(n)._divideBy(2))), this._startDist = i.distanceTo(n), this._startZoom = e.getZoom(), this._moved = !1, this._zooming = !0, e._stop(), T(document, "touchmove", this._onTouchMove, this), T(document, "touchend touchcancel", this._onTouchEnd, this), F(t);
6283
6283
  }
6284
6284
  },
6285
6285
  _onTouchMove: function(t) {
@@ -6296,7 +6296,7 @@ var $e = { exports: {} };
6296
6296
  }
6297
6297
  this._moved || (e._moveStart(!0, !1), this._moved = !0), J(this._animRequest);
6298
6298
  var l = h(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
6299
- this._animRequest = V(l, this, !0), G(t);
6299
+ this._animRequest = V(l, this, !0), F(t);
6300
6300
  }
6301
6301
  },
6302
6302
  _onTouchEnd: function() {
@@ -6307,7 +6307,7 @@ var $e = { exports: {} };
6307
6307
  this._zooming = !1, J(this._animRequest), z(document, "touchmove", this._onTouchMove, this), z(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
6308
6308
  }
6309
6309
  });
6310
- C.addInitHook("addHandler", "touchZoom", _n), C.BoxZoom = an, C.DoubleClickZoom = hn, C.Drag = ln, C.Keyboard = un, C.ScrollWheelZoom = cn, C.TapHold = dn, C.TouchZoom = _n, p.Bounds = A, p.Browser = w, p.CRS = lt, p.Canvas = nn, p.Circle = je, p.CircleMarker = se, p.Class = ht, p.Control = it, p.DivIcon = $i, p.DivOverlay = at, p.DomEvent = Qn, p.DomUtil = Xn, p.Draggable = mt, p.Evented = It, p.FeatureGroup = ut, p.GeoJSON = dt, p.GridLayer = qt, p.Handler = rt, p.Icon = Ct, p.ImageOverlay = ue, p.LatLng = O, p.LatLngBounds = Y, p.Layer = nt, p.LayerGroup = Et, p.LineUtil = co, p.Map = C, p.Marker = oe, p.Mixin = so, p.Path = gt, p.Point = P, p.PolyUtil = ro, p.Polygon = Dt, p.Polyline = ct, p.Popup = ce, p.PosAnimation = Ai, p.Projection = _o, p.Rectangle = rn, p.Renderer = _t, p.SVG = jt, p.SVGOverlay = Qi, p.TileLayer = Ot, p.Tooltip = de, p.Transformation = Le, p.Util = vn, p.VideoOverlay = Ji, p.bind = h, p.bounds = q, p.canvas = on, p.circle = wo, p.circleMarker = Lo, p.control = Ft, p.divIcon = Do, p.extend = o, p.featureGroup = go, p.geoJSON = Xi, p.geoJson = Po, p.gridLayer = So, p.icon = vo, p.imageOverlay = To, p.latLng = E, p.latLngBounds = R, p.layerGroup = mo, p.map = $n, p.marker = yo, p.point = x, p.polygon = xo, p.polyline = bo, p.popup = Eo, p.rectangle = Io, p.setOptions = I, p.stamp = f, p.svg = sn, p.svgOverlay = ko, p.tileLayer = tn, p.tooltip = Co, p.transformation = At, p.version = ft, p.videoOverlay = Mo;
6310
+ C.addInitHook("addHandler", "touchZoom", _n), C.BoxZoom = an, C.DoubleClickZoom = hn, C.Drag = ln, C.Keyboard = un, C.ScrollWheelZoom = cn, C.TapHold = dn, C.TouchZoom = _n, p.Bounds = A, p.Browser = w, p.CRS = ut, p.Canvas = nn, p.Circle = je, p.CircleMarker = se, p.Class = lt, p.Control = nt, p.DivIcon = $i, p.DivOverlay = ht, p.DomEvent = Qn, p.DomUtil = Xn, p.Draggable = mt, p.Evented = It, p.FeatureGroup = ct, p.GeoJSON = _t, p.GridLayer = qt, p.Handler = at, p.Icon = Ct, p.ImageOverlay = ue, p.LatLng = O, p.LatLngBounds = Y, p.Layer = ot, p.LayerGroup = Et, p.LineUtil = co, p.Map = C, p.Marker = oe, p.Mixin = so, p.Path = gt, p.Point = P, p.PolyUtil = ro, p.Polygon = Dt, p.Polyline = dt, p.Popup = ce, p.PosAnimation = Ai, p.Projection = _o, p.Rectangle = rn, p.Renderer = ft, p.SVG = jt, p.SVGOverlay = Qi, p.TileLayer = Ot, p.Tooltip = de, p.Transformation = Le, p.Util = vn, p.VideoOverlay = Ji, p.bind = h, p.bounds = q, p.canvas = on, p.circle = wo, p.circleMarker = Lo, p.control = Ft, p.divIcon = Do, p.extend = o, p.featureGroup = go, p.geoJSON = Xi, p.geoJson = Po, p.gridLayer = So, p.icon = vo, p.imageOverlay = To, p.latLng = E, p.latLngBounds = N, p.layerGroup = mo, p.map = $n, p.marker = yo, p.point = x, p.polygon = xo, p.polyline = bo, p.popup = Eo, p.rectangle = Io, p.setOptions = I, p.stamp = f, p.svg = sn, p.svgOverlay = ko, p.tileLayer = tn, p.tooltip = Co, p.transformation = At, p.version = et, p.videoOverlay = Mo;
6311
6311
  var Zo = window.L;
6312
6312
  p.noConflict = function() {
6313
6313
  return window.L = Zo, this;
@@ -6316,8 +6316,8 @@ var $e = { exports: {} };
6316
6316
  })($e, $e.exports);
6317
6317
  var Yo = $e.exports;
6318
6318
  const vt = /* @__PURE__ */ qo(Yo);
6319
- (function(X, F, p) {
6320
- function ft(o, r) {
6319
+ (function(X, B, p) {
6320
+ function et(o, r) {
6321
6321
  for (; (o = o.parentElement) && !o.classList.contains(r); ) ;
6322
6322
  return o;
6323
6323
  }
@@ -6471,13 +6471,13 @@ const vt = /* @__PURE__ */ qo(Yo);
6471
6471
  } }), L.SimpleShape = {}, L.Draw.SimpleShape = L.Draw.Feature.extend({ options: { repeatMode: !1 }, initialize: function(o, r) {
6472
6472
  this._endLabelText = L.drawLocal.draw.handlers.simpleshape.tooltip.end, L.Draw.Feature.prototype.initialize.call(this, o, r);
6473
6473
  }, addHooks: function() {
6474
- L.Draw.Feature.prototype.addHooks.call(this), this._map && (this._mapDraggable = this._map.dragging.enabled(), this._mapDraggable && this._map.dragging.disable(), this._container.style.cursor = "crosshair", this._tooltip.updateContent({ text: this._initialLabelText }), this._map.on("mousedown", this._onMouseDown, this).on("mousemove", this._onMouseMove, this).on("touchstart", this._onMouseDown, this).on("touchmove", this._onMouseMove, this), F.addEventListener("touchstart", L.DomEvent.preventDefault, { passive: !1 }));
6474
+ L.Draw.Feature.prototype.addHooks.call(this), this._map && (this._mapDraggable = this._map.dragging.enabled(), this._mapDraggable && this._map.dragging.disable(), this._container.style.cursor = "crosshair", this._tooltip.updateContent({ text: this._initialLabelText }), this._map.on("mousedown", this._onMouseDown, this).on("mousemove", this._onMouseMove, this).on("touchstart", this._onMouseDown, this).on("touchmove", this._onMouseMove, this), B.addEventListener("touchstart", L.DomEvent.preventDefault, { passive: !1 }));
6475
6475
  }, removeHooks: function() {
6476
- L.Draw.Feature.prototype.removeHooks.call(this), this._map && (this._mapDraggable && this._map.dragging.enable(), this._container.style.cursor = "", this._map.off("mousedown", this._onMouseDown, this).off("mousemove", this._onMouseMove, this).off("touchstart", this._onMouseDown, this).off("touchmove", this._onMouseMove, this), L.DomEvent.off(F, "mouseup", this._onMouseUp, this), L.DomEvent.off(F, "touchend", this._onMouseUp, this), F.removeEventListener("touchstart", L.DomEvent.preventDefault), this._shape && (this._map.removeLayer(this._shape), delete this._shape)), this._isDrawing = !1;
6476
+ L.Draw.Feature.prototype.removeHooks.call(this), this._map && (this._mapDraggable && this._map.dragging.enable(), this._container.style.cursor = "", this._map.off("mousedown", this._onMouseDown, this).off("mousemove", this._onMouseMove, this).off("touchstart", this._onMouseDown, this).off("touchmove", this._onMouseMove, this), L.DomEvent.off(B, "mouseup", this._onMouseUp, this), L.DomEvent.off(B, "touchend", this._onMouseUp, this), B.removeEventListener("touchstart", L.DomEvent.preventDefault), this._shape && (this._map.removeLayer(this._shape), delete this._shape)), this._isDrawing = !1;
6477
6477
  }, _getTooltipText: function() {
6478
6478
  return { text: this._endLabelText };
6479
6479
  }, _onMouseDown: function(o) {
6480
- this._isDrawing = !0, this._startLatLng = o.latlng, L.DomEvent.on(F, "mouseup", this._onMouseUp, this).on(F, "touchend", this._onMouseUp, this).preventDefault(o.originalEvent);
6480
+ this._isDrawing = !0, this._startLatLng = o.latlng, L.DomEvent.on(B, "mouseup", this._onMouseUp, this).on(B, "touchend", this._onMouseUp, this).preventDefault(o.originalEvent);
6481
6481
  }, _onMouseMove: function(o) {
6482
6482
  var r = o.latlng;
6483
6483
  this._tooltip.updatePosition(r), this._isDrawing && (this._tooltip.updateContent(this._getTooltipText()), this._drawShape(r));
@@ -6489,7 +6489,7 @@ const vt = /* @__PURE__ */ qo(Yo);
6489
6489
  this._enabled && (this._isCurrentlyTwoClickDrawing = !1, L.Draw.SimpleShape.prototype.disable.call(this));
6490
6490
  }, _onMouseUp: function(o) {
6491
6491
  if (!this._shape && !this._isCurrentlyTwoClickDrawing) return void (this._isCurrentlyTwoClickDrawing = !0);
6492
- this._isCurrentlyTwoClickDrawing && !ft(o.target, "leaflet-pane") || L.Draw.SimpleShape.prototype._onMouseUp.call(this);
6492
+ this._isCurrentlyTwoClickDrawing && !et(o.target, "leaflet-pane") || L.Draw.SimpleShape.prototype._onMouseUp.call(this);
6493
6493
  }, _drawShape: function(o) {
6494
6494
  this._shape ? this._shape.setBounds(new L.LatLngBounds(this._startLatLng, o)) : (this._shape = new L.Rectangle(new L.LatLngBounds(this._startLatLng, o), this.options.shapeOptions), this._map.addLayer(this._shape));
6495
6495
  }, _fireCreatedEvent: function() {
@@ -7107,7 +7107,7 @@ const vt = /* @__PURE__ */ qo(Yo);
7107
7107
  })(window, document);
7108
7108
  class jo extends HTMLElement {
7109
7109
  constructor() {
7110
- super(), this.drawnItems = new vt.FeatureGroup(), this.attachShadow({ mode: "open" });
7110
+ super(), this.drawnItems = new vt.FeatureGroup(), this.isReady = !1, this.pendingActions = [], this.attachShadow({ mode: "open" });
7111
7111
  }
7112
7112
  connectedCallback() {
7113
7113
  this.shadowRoot && (this.shadowRoot.innerHTML = `
@@ -7134,15 +7134,22 @@ class jo extends HTMLElement {
7134
7134
  <div id="map"></div>
7135
7135
  `, this.initMap(), this.initDraw());
7136
7136
  }
7137
+ runOrQueue(B) {
7138
+ if (!this.isReady) {
7139
+ this.pendingActions.push(B);
7140
+ return;
7141
+ }
7142
+ B();
7143
+ }
7137
7144
  initMap() {
7138
- const F = this.shadowRoot.getElementById("map");
7139
- this.map = vt.map(F).setView([-6.2, 106.8], 12), vt.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
7145
+ const B = this.shadowRoot.getElementById("map");
7146
+ this.map = vt.map(B).setView([0, 0], 2), vt.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
7140
7147
  attribution: "© OpenStreetMap contributors"
7141
- }).addTo(this.map), this.map.addLayer(this.drawnItems);
7148
+ }).addTo(this.map), this.map.addLayer(this.drawnItems), this.isReady = !0, this.pendingActions.forEach((p) => p()), this.pendingActions = [];
7142
7149
  }
7143
7150
  initDraw() {
7144
7151
  if (!this.map) return;
7145
- const F = new vt.Control.Draw({
7152
+ const B = new vt.Control.Draw({
7146
7153
  edit: {
7147
7154
  featureGroup: this.drawnItems
7148
7155
  },
@@ -7155,8 +7162,8 @@ class jo extends HTMLElement {
7155
7162
  circlemarker: !1
7156
7163
  }
7157
7164
  });
7158
- this.map.addControl(F), this.map.on(vt.Draw.Event.CREATED, (p) => {
7159
- this.drawnItems.clearLayers(), this.drawnItems.addLayer(p.layer), this.emitChange();
7165
+ this.map.addControl(B), this.map.on(vt.Draw.Event.CREATED, (p) => {
7166
+ this.drawnItems.addLayer(p.layer), this.emitChange();
7160
7167
  }), this.map.on(vt.Draw.Event.EDITED, () => {
7161
7168
  this.emitChange();
7162
7169
  }), this.map.on(vt.Draw.Event.DELETED, () => {
@@ -7164,31 +7171,43 @@ class jo extends HTMLElement {
7164
7171
  });
7165
7172
  }
7166
7173
  emitChange() {
7167
- const F = this.getGeoJSON();
7174
+ const B = this.getGeoJSON();
7168
7175
  this.dispatchEvent(
7169
7176
  new CustomEvent("change", {
7170
- detail: { geojson: F }
7177
+ detail: { geojson: B }
7171
7178
  })
7172
7179
  );
7173
7180
  }
7174
7181
  // =========================
7175
- // Public API (v0.1)
7182
+ // Public API (v0.2)
7176
7183
  // =========================
7177
7184
  getGeoJSON() {
7178
- return this.drawnItems.toGeoJSON();
7185
+ return this.drawnItems ? this.drawnItems.toGeoJSON() : {
7186
+ type: "FeatureCollection",
7187
+ features: []
7188
+ };
7179
7189
  }
7180
- setGeoJSON(F) {
7181
- if (!this.map) return;
7182
- this.drawnItems.clearLayers();
7183
- const ft = vt.geoJSON(F, {
7184
- onEachFeature: (o, r) => {
7185
- this.drawnItems.addLayer(r);
7186
- }
7187
- }).getBounds();
7188
- ft.isValid() && this.map.fitBounds(ft), this.emitChange();
7190
+ setGeoJSON(B) {
7191
+ this.runOrQueue(() => {
7192
+ if (!this.map || !this.drawnItems) return;
7193
+ this.drawnItems.clearLayers();
7194
+ const et = vt.geoJSON(B, {
7195
+ onEachFeature: (o, r) => {
7196
+ this.drawnItems.addLayer(r);
7197
+ }
7198
+ }).getBounds();
7199
+ et.isValid() && this.map.fitBounds(et), this.emitChange();
7200
+ });
7201
+ }
7202
+ setView(B, p, et) {
7203
+ this.runOrQueue(() => {
7204
+ this.map && (typeof et == "number" ? this.map.setView([B, p], et) : this.map.panTo([B, p]));
7205
+ });
7189
7206
  }
7190
7207
  clear() {
7191
- this.drawnItems.clearLayers(), this.emitChange();
7208
+ this.runOrQueue(() => {
7209
+ this.drawnItems && (this.drawnItems.clearLayers(), this.emitChange());
7210
+ });
7192
7211
  }
7193
7212
  }
7194
7213
  customElements.define("map-boundary-editor", jo);