leaflet-html 0.13.3 → 0.13.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,16 @@
1
1
  var Os = Object.defineProperty;
2
- var zs = (g, d, c) => d in g ? Os(g, d, { enumerable: !0, configurable: !0, writable: !0, value: c }) : g[d] = c;
3
- var Lt = (g, d, c) => zs(g, typeof d != "symbol" ? d + "" : d, c);
2
+ var zs = (v, d, c) => d in v ? Os(v, d, { enumerable: !0, configurable: !0, writable: !0, value: c }) : v[d] = c;
3
+ var Lt = (v, d, c) => zs(v, typeof d != "symbol" ? d + "" : d, c);
4
4
  var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, yi = { exports: {} };
5
5
  /* @preserve
6
6
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
7
7
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
8
8
  */
9
- (function(g, d) {
10
- (function(c, y) {
11
- y(d);
9
+ (function(v, d) {
10
+ (function(c, g) {
11
+ g(d);
12
12
  })(jn, function(c) {
13
- var y = "1.9.4";
13
+ var g = "1.9.4";
14
14
  function x(t) {
15
15
  var e, i, n, o;
16
16
  for (i = 1, n = arguments.length; i < n; i++) {
@@ -48,7 +48,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
48
48
  n ? o = arguments : (t.apply(i, arguments), setTimeout(u, e), n = !0);
49
49
  }, r;
50
50
  }
51
- function v(t, e, i) {
51
+ function y(t, e, i) {
52
52
  var n = e[1], o = e[0], r = n - o;
53
53
  return t === n && i ? t : ((t - o) % r + r) % r + o;
54
54
  }
@@ -79,9 +79,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
79
79
  n.push(encodeURIComponent(i ? o.toUpperCase() : o) + "=" + encodeURIComponent(t[o]));
80
80
  return (!e || e.indexOf("?") === -1 ? "?" : "&") + n.join("&");
81
81
  }
82
- var Z = /\{ *([\w_ -]+) *\}/g;
82
+ var A = /\{ *([\w_ -]+) *\}/g;
83
83
  function U(t, e) {
84
- return t.replace(Z, function(i, n) {
84
+ return t.replace(A, function(i, n) {
85
85
  var o = e[n];
86
86
  if (o === void 0)
87
87
  throw new Error("No value provided for variable " + i);
@@ -128,7 +128,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
128
128
  },
129
129
  stamp: l,
130
130
  throttle: p,
131
- wrapNum: v,
131
+ wrapNum: y,
132
132
  falseFn: _,
133
133
  formatNum: b,
134
134
  trim: w,
@@ -805,7 +805,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
805
805
  // Returns a `LatLng` where lat and lng has been wrapped according to the
806
806
  // CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.
807
807
  wrapLatLng: function(t) {
808
- var e = this.wrapLng ? v(t.lng, this.wrapLng, !0) : t.lng, i = this.wrapLat ? v(t.lat, this.wrapLat, !0) : t.lat, n = t.alt;
808
+ var e = this.wrapLng ? y(t.lng, this.wrapLng, !0) : t.lng, i = this.wrapLat ? y(t.lat, this.wrapLat, !0) : t.lat, n = t.alt;
809
809
  return new D(i, e, n);
810
810
  },
811
811
  // @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
@@ -896,7 +896,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
896
896
  function zi(t) {
897
897
  return document.createElementNS("http://www.w3.org/2000/svg", t);
898
898
  }
899
- function Zi(t, e) {
899
+ function Ai(t, e) {
900
900
  var i = "", n, o, r, u, f, m;
901
901
  for (n = 0, r = t.length; n < r; n++) {
902
902
  for (f = t[n], o = 0, u = f.length; o < u; o++)
@@ -905,7 +905,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
905
905
  }
906
906
  return i || "M0 0";
907
907
  }
908
- var Fe = document.documentElement.style, le = "ActiveXObject" in window, ao = le && !document.addEventListener, Ai = "msLaunchUri" in navigator && !("documentMode" in document), Ge = mt("webkit"), Ii = mt("android"), Bi = mt("android 2") || mt("android 3"), ho = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), uo = Ii && mt("Google") && ho < 537 && !("AudioNode" in window), Ue = !!window.opera, Ni = !Ai && mt("chrome"), Ri = mt("gecko") && !Ge && !Ue && !le, lo = !Ni && mt("safari"), Di = mt("phantom"), Hi = "OTransition" in Fe, co = navigator.platform.indexOf("Win") === 0, Fi = le && "transition" in Fe, We = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Bi, Gi = "MozPerspective" in Fe, fo = !window.L_DISABLE_3D && (Fi || We || Gi) && !Hi && !Di, Yt = typeof orientation < "u" || mt("mobile"), _o = Yt && Ge, po = Yt && We, Ui = !window.PointerEvent && window.MSPointerEvent, Wi = !!(window.PointerEvent || Ui), Vi = "ontouchstart" in window || !!window.TouchEvent, mo = !window.L_NO_TOUCH && (Vi || Wi), go = Yt && Ue, vo = Yt && Ri, yo = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, Lo = function() {
908
+ var Fe = document.documentElement.style, le = "ActiveXObject" in window, ao = le && !document.addEventListener, Zi = "msLaunchUri" in navigator && !("documentMode" in document), Ge = mt("webkit"), Ii = mt("android"), Bi = mt("android 2") || mt("android 3"), ho = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), uo = Ii && mt("Google") && ho < 537 && !("AudioNode" in window), Ue = !!window.opera, Ni = !Zi && mt("chrome"), Ri = mt("gecko") && !Ge && !Ue && !le, lo = !Ni && mt("safari"), Di = mt("phantom"), Hi = "OTransition" in Fe, co = navigator.platform.indexOf("Win") === 0, Fi = le && "transition" in Fe, We = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Bi, Gi = "MozPerspective" in Fe, fo = !window.L_DISABLE_3D && (Fi || We || Gi) && !Hi && !Di, Yt = typeof orientation < "u" || mt("mobile"), _o = Yt && Ge, po = Yt && We, Ui = !window.PointerEvent && window.MSPointerEvent, Wi = !!(window.PointerEvent || Ui), Vi = "ontouchstart" in window || !!window.TouchEvent, mo = !window.L_NO_TOUCH && (Vi || Wi), go = Yt && Ue, vo = Yt && Ri, yo = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, Lo = function() {
909
909
  var t = !1;
910
910
  try {
911
911
  var e = Object.defineProperty({}, "passive", {
@@ -938,7 +938,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
938
938
  var S = {
939
939
  ie: le,
940
940
  ielt9: ao,
941
- edge: Ai,
941
+ edge: Zi,
942
942
  webkit: Ge,
943
943
  android: Ii,
944
944
  android23: Bi,
@@ -1021,8 +1021,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1021
1021
  i = t[n], e[n] = i && i.bind ? i.bind(t) : i;
1022
1022
  return t = e, e.type = "dblclick", e.detail = 2, e.isTrusted = !1, e._simulated = !0, e;
1023
1023
  }
1024
- var Zo = 200;
1025
- function Ao(t, e) {
1024
+ var Ao = 200;
1025
+ function Zo(t, e) {
1026
1026
  t.addEventListener("dblclick", e);
1027
1027
  var i = 0, n;
1028
1028
  function o(r) {
@@ -1038,7 +1038,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1038
1038
  return m instanceof HTMLInputElement || m instanceof HTMLSelectElement;
1039
1039
  }))) {
1040
1040
  var f = Date.now();
1041
- f - i <= Zo ? (n++, n === 2 && e(zo(r))) : n = 1, i = f;
1041
+ f - i <= Ao ? (n++, n === 2 && e(zo(r))) : n = 1, i = f;
1042
1042
  }
1043
1043
  }
1044
1044
  }
@@ -1092,7 +1092,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1092
1092
  var i = fe(t);
1093
1093
  return i.length > 0 && new RegExp("(^|\\s)" + e + "(\\s|$)").test(i);
1094
1094
  }
1095
- function A(t, e) {
1095
+ function Z(t, e) {
1096
1096
  if (t.classList !== void 0)
1097
1097
  for (var i = M(e), n = 0, o = i.length; n < o; n++)
1098
1098
  t.classList.add(i[n]);
@@ -1129,14 +1129,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1129
1129
  return t[i];
1130
1130
  return !1;
1131
1131
  }
1132
- function Zt(t, e, i) {
1132
+ function At(t, e, i) {
1133
1133
  var n = e || new O(0, 0);
1134
1134
  t.style[je] = (S.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
1135
1135
  }
1136
1136
  function K(t, e) {
1137
- t._leaflet_pos = e, S.any3d ? Zt(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
1137
+ t._leaflet_pos = e, S.any3d ? At(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
1138
1138
  }
1139
- function At(t) {
1139
+ function Zt(t) {
1140
1140
  return t._leaflet_pos || new O(0, 0);
1141
1141
  }
1142
1142
  var Qt, te, Ye;
@@ -1201,15 +1201,15 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1201
1201
  toFront: Dt,
1202
1202
  toBack: Ht,
1203
1203
  hasClass: Je,
1204
- addClass: A,
1204
+ addClass: Z,
1205
1205
  removeClass: j,
1206
1206
  setClass: Ke,
1207
1207
  getClass: fe,
1208
1208
  setOpacity: ct,
1209
1209
  testProp: _e,
1210
- setTransform: Zt,
1210
+ setTransform: At,
1211
1211
  setPosition: K,
1212
- getPosition: At,
1212
+ getPosition: Zt,
1213
1213
  get disableTextSelection() {
1214
1214
  return Qt;
1215
1215
  },
@@ -1268,7 +1268,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1268
1268
  var r = function(f) {
1269
1269
  return i.call(n || t, f || window.event);
1270
1270
  }, u = r;
1271
- !S.touchNative && S.pointer && e.indexOf("touch") === 0 ? r = To(t, e, r) : S.touch && e === "dblclick" ? r = Ao(t, r) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(ii[e] || e, r, S.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (r = function(f) {
1271
+ !S.touchNative && S.pointer && e.indexOf("touch") === 0 ? r = To(t, e, r) : S.touch && e === "dblclick" ? r = Zo(t, r) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(ii[e] || e, r, S.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (r = function(f) {
1272
1272
  f = f || window.event, ri(t, f) && u(f);
1273
1273
  }, t.addEventListener(ii[e], r, !1)) : t.addEventListener(e, u, !1) : t.attachEvent("on" + e, r), t[gt] = t[gt] || {}, t[gt][o] = r;
1274
1274
  }
@@ -1374,7 +1374,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1374
1374
  // argument of the [cubic bezier curve](https://cubic-bezier.com/#0,0,.5,1),
1375
1375
  // `0.5` by default).
1376
1376
  run: function(t, e, i, n) {
1377
- this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos = At(t), this._offset = e.subtract(this._startPos), this._startTime = +/* @__PURE__ */ new Date(), this.fire("start"), this._animate();
1377
+ this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos = Zt(t), this._offset = e.subtract(this._startPos), this._startTime = +/* @__PURE__ */ new Date(), this.fire("start"), this._animate();
1378
1378
  },
1379
1379
  // @method stop()
1380
1380
  // Stops the animation (if currently running).
@@ -1561,7 +1561,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1561
1561
  step: this._onPanTransitionStep,
1562
1562
  end: this._onPanTransitionEnd
1563
1563
  }, this)), e.noMoveStart || this.fire("movestart"), e.animate !== !1) {
1564
- A(this._mapPane, "leaflet-pan-anim");
1564
+ Z(this._mapPane, "leaflet-pan-anim");
1565
1565
  var i = this._getMapPanePos().subtract(t).round();
1566
1566
  this._panAnim.run(this._mapPane, i, e.duration || 0.25, e.easeLinearity);
1567
1567
  } else
@@ -1993,13 +1993,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1993
1993
  },
1994
1994
  _initLayout: function() {
1995
1995
  var t = this._container;
1996
- this._fadeAnimated = this.options.fadeAnimation && S.any3d, A(t, "leaflet-container" + (S.touch ? " leaflet-touch" : "") + (S.retina ? " leaflet-retina" : "") + (S.ielt9 ? " leaflet-oldie" : "") + (S.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
1996
+ this._fadeAnimated = this.options.fadeAnimation && S.any3d, Z(t, "leaflet-container" + (S.touch ? " leaflet-touch" : "") + (S.retina ? " leaflet-retina" : "") + (S.ielt9 ? " leaflet-oldie" : "") + (S.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
1997
1997
  var e = $t(t, "position");
1998
1998
  e !== "absolute" && e !== "relative" && e !== "fixed" && e !== "sticky" && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
1999
1999
  },
2000
2000
  _initPanes: function() {
2001
2001
  var t = this._panes = {};
2002
- this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), K(this._mapPane, new O(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (A(t.markerPane, "leaflet-zoom-hide"), A(t.shadowPane, "leaflet-zoom-hide"));
2002
+ this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), K(this._mapPane, new O(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (Z(t.markerPane, "leaflet-zoom-hide"), Z(t.shadowPane, "leaflet-zoom-hide"));
2003
2003
  },
2004
2004
  // private methods that modify map state
2005
2005
  // @section Map state change events
@@ -2128,7 +2128,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2128
2128
  },
2129
2129
  // private methods for getting map state
2130
2130
  _getMapPanePos: function() {
2131
- return At(this._mapPane) || new O(0, 0);
2131
+ return Zt(this._mapPane) || new O(0, 0);
2132
2132
  },
2133
2133
  _moved: function() {
2134
2134
  var t = this._getMapPanePos();
@@ -2206,7 +2206,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2206
2206
  var t = this._proxy = R("div", "leaflet-proxy leaflet-zoom-animated");
2207
2207
  this._panes.mapPane.appendChild(t), this.on("zoomanim", function(e) {
2208
2208
  var i = je, n = this._proxy.style[i];
2209
- Zt(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), n === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
2209
+ At(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), n === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
2210
2210
  }, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
2211
2211
  },
2212
2212
  _destroyAnimProxy: function() {
@@ -2214,7 +2214,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2214
2214
  },
2215
2215
  _animMoveEnd: function() {
2216
2216
  var t = this.getCenter(), e = this.getZoom();
2217
- Zt(this._proxy, this.project(t, e), this.getZoomScale(e, 1));
2217
+ At(this._proxy, this.project(t, e), this.getZoomScale(e, 1));
2218
2218
  },
2219
2219
  _catchTransitionEnd: function(t) {
2220
2220
  this._animatingZoom && t.propertyName.indexOf("transform") >= 0 && this._onZoomTransitionEnd();
@@ -2233,7 +2233,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2233
2233
  }, this), !0);
2234
2234
  },
2235
2235
  _animateZoom: function(t, e, i, n) {
2236
- this._mapPane && (i && (this._animatingZoom = !0, this._animateToCenter = t, this._animateToZoom = e, A(this._mapPane, "leaflet-zoom-anim")), this.fire("zoomanim", {
2236
+ this._mapPane && (i && (this._animatingZoom = !0, this._animateToCenter = t, this._animateToZoom = e, Z(this._mapPane, "leaflet-zoom-anim")), this.fire("zoomanim", {
2237
2237
  center: t,
2238
2238
  zoom: e,
2239
2239
  noUpdate: n
@@ -2283,7 +2283,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2283
2283
  addTo: function(t) {
2284
2284
  this.remove(), this._map = t;
2285
2285
  var e = this._container = this.onAdd(t), i = this.getPosition(), n = t._controlCorners[i];
2286
- return A(e, "leaflet-control"), i.indexOf("bottom") !== -1 ? n.insertBefore(e, n.firstChild) : n.appendChild(e), this._map.on("unload", this.remove, this), this;
2286
+ return Z(e, "leaflet-control"), i.indexOf("bottom") !== -1 ? n.insertBefore(e, n.firstChild) : n.appendChild(e), this._map.on("unload", this.remove, this), this;
2287
2287
  },
2288
2288
  // @method remove: this
2289
2289
  // Removes the control from the map it is currently active on.
@@ -2390,9 +2390,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2390
2390
  // @method expand(): this
2391
2391
  // Expand the control container if collapsed.
2392
2392
  expand: function() {
2393
- A(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null;
2393
+ Z(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null;
2394
2394
  var t = this._map.getSize().y - (this._container.offsetTop + 50);
2395
- return t < this._section.clientHeight ? (A(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") : j(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this;
2395
+ return t < this._section.clientHeight ? (Z(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") : j(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this;
2396
2396
  },
2397
2397
  // @method collapse(): this
2398
2398
  // Collapse the control container if expanded.
@@ -2546,7 +2546,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2546
2546
  },
2547
2547
  _updateDisabled: function() {
2548
2548
  var t = this._map, e = "leaflet-disabled";
2549
- j(this._zoomInButton, e), j(this._zoomOutButton, e), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || t._zoom === t.getMinZoom()) && (A(this._zoomOutButton, e), this._zoomOutButton.setAttribute("aria-disabled", "true")), (this._disabled || t._zoom === t.getMaxZoom()) && (A(this._zoomInButton, e), this._zoomInButton.setAttribute("aria-disabled", "true"));
2549
+ j(this._zoomInButton, e), j(this._zoomOutButton, e), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || t._zoom === t.getMinZoom()) && (Z(this._zoomOutButton, e), this._zoomOutButton.setAttribute("aria-disabled", "true")), (this._disabled || t._zoom === t.getMaxZoom()) && (Z(this._zoomInButton, e), this._zoomInButton.setAttribute("aria-disabled", "true"));
2550
2550
  }
2551
2551
  });
2552
2552
  N.mergeOptions({
@@ -2732,7 +2732,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2732
2732
  if (!(Et._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (Et._dragging = this, this._preventOutline && ti(this._element), Xe(), Qt(), !this._moving)) {
2733
2733
  this.fire("down");
2734
2734
  var e = t.touches ? t.touches[0] : t, i = en(this._element);
2735
- this._startPoint = new O(e.clientX, e.clientY), this._startPos = At(this._element), this._parentScale = ei(i);
2735
+ this._startPoint = new O(e.clientX, e.clientY), this._startPos = Zt(this._element), this._parentScale = ei(i);
2736
2736
  var n = t.type === "mousedown";
2737
2737
  z(document, n ? "mousemove" : "touchmove", this._onMove, this), z(document, n ? "mouseup" : "touchend touchcancel", this._onUp, this);
2738
2738
  }
@@ -2745,7 +2745,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2745
2745
  return;
2746
2746
  }
2747
2747
  var e = t.touches && t.touches.length === 1 ? t.touches[0] : t, i = new O(e.clientX, e.clientY)._subtract(this._startPoint);
2748
- !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, tt(t), this._moved || (this.fire("dragstart"), this._moved = !0, A(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), A(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(i), this._moving = !0, this._lastEvent = t, this._updatePosition());
2748
+ !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, tt(t), this._moved || (this.fire("dragstart"), this._moved = !0, Z(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), Z(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(i), this._moving = !0, this._lastEvent = t, this._updatePosition());
2749
2749
  }
2750
2750
  },
2751
2751
  _updatePosition: function() {
@@ -3330,7 +3330,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3330
3330
  predrag: this._onPreDrag,
3331
3331
  drag: this._onDrag,
3332
3332
  dragend: this._onDragEnd
3333
- }, this).enable(), A(t, "leaflet-marker-draggable");
3333
+ }, this).enable(), Z(t, "leaflet-marker-draggable");
3334
3334
  },
3335
3335
  removeHooks: function() {
3336
3336
  this._draggable.off({
@@ -3344,7 +3344,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3344
3344
  return this._draggable && this._draggable._moved;
3345
3345
  },
3346
3346
  _adjustPan: function(t) {
3347
- var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, r = At(e._icon), u = i.getPixelBounds(), f = i.getPixelOrigin(), m = ot(
3347
+ var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, r = Zt(e._icon), u = i.getPixelBounds(), f = i.getPixelOrigin(), m = ot(
3348
3348
  u.min._subtract(f).add(o),
3349
3349
  u.max._subtract(f).subtract(o)
3350
3350
  );
@@ -3363,7 +3363,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3363
3363
  this._marker.options.autoPan && (lt(this._panRequest), this._panRequest = nt(this._adjustPan.bind(this, t)));
3364
3364
  },
3365
3365
  _onDrag: function(t) {
3366
- var e = this._marker, i = e._shadow, n = At(e._icon), o = e._map.layerPointToLatLng(n);
3366
+ var e = this._marker, i = e._shadow, n = Zt(e._icon), o = e._map.layerPointToLatLng(n);
3367
3367
  i && K(i, n), e._latlng = o, t.latlng = o, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t);
3368
3368
  },
3369
3369
  _onDragEnd: function(t) {
@@ -3490,12 +3490,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3490
3490
  },
3491
3491
  _initIcon: function() {
3492
3492
  var t = this.options, e = "leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide"), i = t.icon.createIcon(this._icon), n = !1;
3493
- i !== this._icon && (this._icon && this._removeIcon(), n = !0, t.title && (i.title = t.title), i.tagName === "IMG" && (i.alt = t.alt || "")), A(i, e), t.keyboard && (i.tabIndex = "0", i.setAttribute("role", "button")), this._icon = i, t.riseOnHover && this.on({
3493
+ i !== this._icon && (this._icon && this._removeIcon(), n = !0, t.title && (i.title = t.title), i.tagName === "IMG" && (i.alt = t.alt || "")), Z(i, e), t.keyboard && (i.tabIndex = "0", i.setAttribute("role", "button")), this._icon = i, t.riseOnHover && this.on({
3494
3494
  mouseover: this._bringToFront,
3495
3495
  mouseout: this._resetZIndex
3496
3496
  }), this.options.autoPanOnFocus && z(i, "focus", this._panOnFocus, this);
3497
3497
  var o = t.icon.createShadow(this._shadow), r = !1;
3498
- o !== this._shadow && (this._removeShadow(), r = !0), o && (A(o, e), o.alt = ""), this._shadow = o, t.opacity < 1 && this._updateOpacity(), n && this.getPane().appendChild(this._icon), this._initInteraction(), o && r && this.getPane(t.shadowPane).appendChild(this._shadow);
3498
+ o !== this._shadow && (this._removeShadow(), r = !0), o && (Z(o, e), o.alt = ""), this._shadow = o, t.opacity < 1 && this._updateOpacity(), n && this.getPane().appendChild(this._icon), this._initInteraction(), o && r && this.getPane(t.shadowPane).appendChild(this._shadow);
3499
3499
  },
3500
3500
  _removeIcon: function() {
3501
3501
  this.options.riseOnHover && this.off({
@@ -3517,7 +3517,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3517
3517
  this._setPos(e);
3518
3518
  },
3519
3519
  _initInteraction: function() {
3520
- if (this.options.interactive && (A(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), Ln)) {
3520
+ if (this.options.interactive && (Z(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), Ln)) {
3521
3521
  var t = this.options.draggable;
3522
3522
  this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new Ln(this), t && this.dragging.enable();
3523
3523
  }
@@ -4179,7 +4179,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4179
4179
  this._url = t, this._bounds = J(e), C(this, i);
4180
4180
  },
4181
4181
  onAdd: function() {
4182
- this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (A(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
4182
+ this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (Z(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
4183
4183
  },
4184
4184
  onRemove: function() {
4185
4185
  q(this._image), this.options.interactive && this.removeInteractiveTarget(this._image);
@@ -4237,7 +4237,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4237
4237
  },
4238
4238
  _initImage: function() {
4239
4239
  var t = this._url.tagName === "IMG", e = this._image = t ? this._url : R("img");
4240
- if (A(e, "leaflet-image-layer"), this._zoomAnimated && A(e, "leaflet-zoom-animated"), this.options.className && A(e, this.options.className), e.onselectstart = _, e.onmousemove = _, e.onload = a(this.fire, this, "load"), e.onerror = a(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (e.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), t) {
4240
+ if (Z(e, "leaflet-image-layer"), this._zoomAnimated && Z(e, "leaflet-zoom-animated"), this.options.className && Z(e, this.options.className), e.onselectstart = _, e.onmousemove = _, e.onload = a(this.fire, this, "load"), e.onerror = a(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (e.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), t) {
4241
4241
  this._url = e.src;
4242
4242
  return;
4243
4243
  }
@@ -4245,7 +4245,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4245
4245
  },
4246
4246
  _animateZoom: function(t) {
4247
4247
  var e = this._map.getZoomScale(t.zoom), i = this._map._latLngBoundsToNewLayerBounds(this._bounds, t.zoom, t.center).min;
4248
- Zt(this._image, i, e);
4248
+ At(this._image, i, e);
4249
4249
  },
4250
4250
  _reset: function() {
4251
4251
  var t = this._image, e = new V(
@@ -4296,7 +4296,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4296
4296
  },
4297
4297
  _initImage: function() {
4298
4298
  var t = this._url.tagName === "VIDEO", e = this._image = t ? this._url : R("video");
4299
- if (A(e, "leaflet-image-layer"), this._zoomAnimated && A(e, "leaflet-zoom-animated"), this.options.className && A(e, this.options.className), e.onselectstart = _, e.onmousemove = _, e.onloadeddata = a(this.fire, this, "load"), t) {
4299
+ if (Z(e, "leaflet-image-layer"), this._zoomAnimated && Z(e, "leaflet-zoom-animated"), this.options.className && Z(e, this.options.className), e.onselectstart = _, e.onmousemove = _, e.onloadeddata = a(this.fire, this, "load"), t) {
4300
4300
  for (var i = e.getElementsByTagName("source"), n = [], o = 0; o < i.length; o++)
4301
4301
  n.push(i[o].src);
4302
4302
  this._url = i.length > 0 ? n : [e.src];
@@ -4318,7 +4318,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4318
4318
  var xn = xe.extend({
4319
4319
  _initImage: function() {
4320
4320
  var t = this._image = this._url;
4321
- A(t, "leaflet-image-layer"), this._zoomAnimated && A(t, "leaflet-zoom-animated"), this.options.className && A(t, this.options.className), t.onselectstart = _, t.onmousemove = _;
4321
+ Z(t, "leaflet-image-layer"), this._zoomAnimated && Z(t, "leaflet-zoom-animated"), this.options.className && Z(t, this.options.className), t.onselectstart = _, t.onmousemove = _;
4322
4322
  }
4323
4323
  // @method getElement(): SVGElement
4324
4324
  // Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
@@ -4372,7 +4372,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4372
4372
  return this._map ? this.close() : (arguments.length ? this._source = t : t = this._source, this._prepareOpen(), this.openOn(t._map)), this;
4373
4373
  },
4374
4374
  onAdd: function(t) {
4375
- this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && ct(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && ct(this._container, 1), this.bringToFront(), this.options.interactive && (A(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
4375
+ this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && ct(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && ct(this._container, 1), this.bringToFront(), this.options.interactive && (Z(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
4376
4376
  },
4377
4377
  onRemove: function(t) {
4378
4378
  t._fadeAnimated ? (ct(this._container, 0), this._removeTimeout = setTimeout(a(q, void 0, this._container), 200)) : q(this._container), this.options.interactive && (j(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
@@ -4589,7 +4589,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4589
4589
  var i = t.offsetWidth;
4590
4590
  i = Math.min(i, this.options.maxWidth), i = Math.max(i, this.options.minWidth), e.width = i + 1 + "px", e.whiteSpace = "", e.height = "";
4591
4591
  var n = t.offsetHeight, o = this.options.maxHeight, r = "leaflet-popup-scrolled";
4592
- o && n > o ? (e.height = o + "px", A(t, r)) : j(t, r), this._containerWidth = this._container.offsetWidth;
4592
+ o && n > o ? (e.height = o + "px", Z(t, r)) : j(t, r), this._containerWidth = this._container.offsetWidth;
4593
4593
  },
4594
4594
  _animateZoom: function(t) {
4595
4595
  var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center), i = this._getAnchor();
@@ -4602,7 +4602,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4602
4602
  return;
4603
4603
  }
4604
4604
  var t = this._map, e = parseInt($t(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, o = new O(this._containerLeft, -i - this._containerBottom);
4605
- o._add(At(this._container));
4605
+ o._add(Zt(this._container));
4606
4606
  var r = t.layerPointToContainerPoint(o), u = E(this.options.autoPanPadding), f = E(this.options.autoPanPaddingTopLeft || u), m = E(this.options.autoPanPaddingBottomRight || u), P = t.getSize(), T = 0, k = 0;
4607
4607
  r.x + n + m.x > P.x && (T = r.x + n - P.x + m.x), r.x - T - f.x < 0 && (T = r.x - f.x), r.y + i + m.y > P.y && (k = r.y + i - P.y + m.y), r.y - k - f.y < 0 && (k = r.y - f.y), (T || k) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([T, k]));
4608
4608
  }
@@ -4746,7 +4746,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4746
4746
  },
4747
4747
  _setPosition: function(t) {
4748
4748
  var e, i, n = this._map, o = this._container, r = n.latLngToContainerPoint(n.getCenter()), u = n.layerPointToContainerPoint(t), f = this.options.direction, m = o.offsetWidth, P = o.offsetHeight, T = E(this.options.offset), k = this._getAnchor();
4749
- f === "top" ? (e = m / 2, i = P) : f === "bottom" ? (e = m / 2, i = 0) : f === "center" ? (e = m / 2, i = P / 2) : f === "right" ? (e = 0, i = P / 2) : f === "left" ? (e = m, i = P / 2) : u.x < r.x ? (f = "right", e = 0, i = P / 2) : (f = "left", e = m + (T.x + k.x) * 2, i = P / 2), t = t.subtract(E(e, i, !0)).add(T).add(k), j(o, "leaflet-tooltip-right"), j(o, "leaflet-tooltip-left"), j(o, "leaflet-tooltip-top"), j(o, "leaflet-tooltip-bottom"), A(o, "leaflet-tooltip-" + f), K(o, t);
4749
+ f === "top" ? (e = m / 2, i = P) : f === "bottom" ? (e = m / 2, i = 0) : f === "center" ? (e = m / 2, i = P / 2) : f === "right" ? (e = 0, i = P / 2) : f === "left" ? (e = m, i = P / 2) : u.x < r.x ? (f = "right", e = 0, i = P / 2) : (f = "left", e = m + (T.x + k.x) * 2, i = P / 2), t = t.subtract(E(e, i, !0)).add(T).add(k), j(o, "leaflet-tooltip-right"), j(o, "leaflet-tooltip-left"), j(o, "leaflet-tooltip-top"), j(o, "leaflet-tooltip-bottom"), Z(o, "leaflet-tooltip-" + f), K(o, t);
4750
4750
  },
4751
4751
  _updatePosition: function() {
4752
4752
  var t = this._map.latLngToLayerPoint(this._latlng);
@@ -5145,7 +5145,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5145
5145
  },
5146
5146
  _setZoomTransform: function(t, e, i) {
5147
5147
  var n = this._map.getZoomScale(i, t.zoom), o = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e, i)).round();
5148
- S.any3d ? Zt(t.el, o, n) : K(t.el, o);
5148
+ S.any3d ? At(t.el, o, n) : K(t.el, o);
5149
5149
  },
5150
5150
  _resetGrid: function() {
5151
5151
  var t = this._map, e = t.options.crs, i = this._tileSize = this.getTileSize(), n = this._tileZoom, o = this._map.getPixelWorldBounds(this._tileZoom);
@@ -5245,7 +5245,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5245
5245
  }));
5246
5246
  },
5247
5247
  _initTile: function(t) {
5248
- A(t, "leaflet-tile");
5248
+ Z(t, "leaflet-tile");
5249
5249
  var e = this.getTileSize();
5250
5250
  t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = _, t.onmousemove = _, S.ielt9 && this.options.opacity < 1 && ct(t, this.options.opacity);
5251
5251
  },
@@ -5267,7 +5267,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5267
5267
  coords: t
5268
5268
  });
5269
5269
  var n = this._tileCoordsToKey(t);
5270
- i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (ct(i.el, 0), lt(this._fadeFrame), this._fadeFrame = nt(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (A(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
5270
+ i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (ct(i.el, 0), lt(this._fadeFrame), this._fadeFrame = nt(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (Z(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
5271
5271
  tile: i.el,
5272
5272
  coords: t
5273
5273
  })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), S.ielt9 || !this._map._fadeAnimated ? nt(this._pruneTiles, this) : setTimeout(a(this._pruneTiles, this), 250)));
@@ -5277,8 +5277,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5277
5277
  },
5278
5278
  _wrapCoords: function(t) {
5279
5279
  var e = new O(
5280
- this._wrapX ? v(t.x, this._wrapX) : t.x,
5281
- this._wrapY ? v(t.y, this._wrapY) : t.y
5280
+ this._wrapX ? y(t.x, this._wrapX) : t.x,
5281
+ this._wrapY ? y(t.y, this._wrapY) : t.y
5282
5282
  );
5283
5283
  return e.z = t.z, e;
5284
5284
  },
@@ -5497,7 +5497,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5497
5497
  C(this, t), l(this), this._layers = this._layers || {};
5498
5498
  },
5499
5499
  onAdd: function() {
5500
- this._container || (this._initContainer(), A(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
5500
+ this._container || (this._initContainer(), Z(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
5501
5501
  },
5502
5502
  onRemove: function() {
5503
5503
  this.off("update", this._updatePaths, this), this._destroyContainer();
@@ -5519,7 +5519,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5519
5519
  },
5520
5520
  _updateTransform: function(t, e) {
5521
5521
  var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), o = this._map.project(this._center, e), r = n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t, e));
5522
- S.any3d ? Zt(this._container, r, i) : K(this._container, r);
5522
+ S.any3d ? At(this._container, r, i) : K(this._container, r);
5523
5523
  },
5524
5524
  _reset: function() {
5525
5525
  this._update(), this._updateTransform(this._center, this._zoom);
@@ -5691,7 +5691,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5691
5691
  if (!this._mouseHoverThrottled) {
5692
5692
  for (var i, n, o = this._drawFirst; o; o = o.next)
5693
5693
  i = o.layer, i.options.interactive && i._containsPoint(e) && (n = i);
5694
- n !== this._hoveredLayer && (this._handleMouseOut(t), n && (A(this._container, "leaflet-interactive"), this._fireEvent([n], t, "mouseover"), this._hoveredLayer = n)), this._fireEvent(this._hoveredLayer ? [this._hoveredLayer] : !1, t), this._mouseHoverThrottled = !0, setTimeout(a(function() {
5694
+ n !== this._hoveredLayer && (this._handleMouseOut(t), n && (Z(this._container, "leaflet-interactive"), this._fireEvent([n], t, "mouseover"), this._hoveredLayer = n)), this._fireEvent(this._hoveredLayer ? [this._hoveredLayer] : !1, t), this._mouseHoverThrottled = !0, setTimeout(a(function() {
5695
5695
  this._mouseHoverThrottled = !1;
5696
5696
  }, this), 32);
5697
5697
  }
@@ -5744,7 +5744,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5744
5744
  },
5745
5745
  _initPath: function(t) {
5746
5746
  var e = t._container = ae("shape");
5747
- A(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path = ae("path"), e.appendChild(t._path), this._updateStyle(t), this._layers[l(t)] = t;
5747
+ Z(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path = ae("path"), e.appendChild(t._path), this._updateStyle(t), this._layers[l(t)] = t;
5748
5748
  },
5749
5749
  _addPath: function(t) {
5750
5750
  var e = t._container;
@@ -5788,7 +5788,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5788
5788
  // methods below are called by vector layers implementations
5789
5789
  _initPath: function(t) {
5790
5790
  var e = t._path = Me("path");
5791
- t.options.className && A(e, t.options.className), t.options.interactive && A(e, "leaflet-interactive"), this._updateStyle(t), this._layers[l(t)] = t;
5791
+ t.options.className && Z(e, t.options.className), t.options.interactive && Z(e, "leaflet-interactive"), this._updateStyle(t), this._layers[l(t)] = t;
5792
5792
  },
5793
5793
  _addPath: function(t) {
5794
5794
  this._rootGroup || this._initContainer(), this._rootGroup.appendChild(t._path), t.addInteractiveTarget(t._path);
@@ -5804,7 +5804,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5804
5804
  e && (i.stroke ? (e.setAttribute("stroke", i.color), e.setAttribute("stroke-opacity", i.opacity), e.setAttribute("stroke-width", i.weight), e.setAttribute("stroke-linecap", i.lineCap), e.setAttribute("stroke-linejoin", i.lineJoin), i.dashArray ? e.setAttribute("stroke-dasharray", i.dashArray) : e.removeAttribute("stroke-dasharray"), i.dashOffset ? e.setAttribute("stroke-dashoffset", i.dashOffset) : e.removeAttribute("stroke-dashoffset")) : e.setAttribute("stroke", "none"), i.fill ? (e.setAttribute("fill", i.fillColor || i.color), e.setAttribute("fill-opacity", i.fillOpacity), e.setAttribute("fill-rule", i.fillRule || "evenodd")) : e.setAttribute("fill", "none"));
5805
5805
  },
5806
5806
  _updatePoly: function(t, e) {
5807
- this._setPath(t, Zi(t._parts, e));
5807
+ this._setPath(t, Ai(t._parts, e));
5808
5808
  },
5809
5809
  _updateCircle: function(t) {
5810
5810
  var e = t._point, i = Math.max(Math.round(t._radius), 1), n = Math.max(Math.round(t._radiusY), 1) || i, o = "a" + i + "," + n + " 0 1,0 ", r = t._empty() ? "M0 0" : "M" + (e.x - i) + "," + e.y + o + i * 2 + ",0 " + o + -i * 2 + ",0 ";
@@ -5865,7 +5865,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5865
5865
  function Ls(t, e) {
5866
5866
  return new On(t, e);
5867
5867
  }
5868
- he.create = Me, he.pointsToPath = Zi, Mt.geometryToLayer = Le, Mt.coordsToLatLng = _i, Mt.coordsToLatLngs = we, Mt.latLngToCoords = pi, Mt.latLngsToCoords = be, Mt.getFeature = Wt, Mt.asFeature = Pe, N.mergeOptions({
5868
+ he.create = Me, he.pointsToPath = Ai, Mt.geometryToLayer = Le, Mt.coordsToLatLng = _i, Mt.coordsToLatLngs = we, Mt.latLngToCoords = pi, Mt.latLngsToCoords = be, Mt.getFeature = Wt, Mt.asFeature = Pe, N.mergeOptions({
5869
5869
  // @option boxZoom: Boolean = true
5870
5870
  // Whether the map can be zoomed to a rectangular area specified by
5871
5871
  // dragging the mouse while pressing the shift key.
@@ -5904,7 +5904,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5904
5904
  }, this);
5905
5905
  },
5906
5906
  _onMouseMove: function(t) {
5907
- this._moved || (this._moved = !0, this._box = R("div", "leaflet-zoom-box", this._container), A(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(t);
5907
+ this._moved || (this._moved = !0, this._box = R("div", "leaflet-zoom-box", this._container), Z(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(t);
5908
5908
  var e = new V(this._point, this._startPoint), i = e.getSize();
5909
5909
  K(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
5910
5910
  },
@@ -5938,7 +5938,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5938
5938
  // view regardless of where the mouse was.
5939
5939
  doubleClickZoom: !0
5940
5940
  });
5941
- var Zn = vt.extend({
5941
+ var An = vt.extend({
5942
5942
  addHooks: function() {
5943
5943
  this._map.on("dblclick", this._onDoubleClick, this);
5944
5944
  },
@@ -5950,7 +5950,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5950
5950
  e.options.doubleClickZoom === "center" ? e.setZoom(o) : e.setZoomAround(t.containerPoint, o);
5951
5951
  }
5952
5952
  });
5953
- N.addInitHook("addHandler", "doubleClickZoom", Zn), N.mergeOptions({
5953
+ N.addInitHook("addHandler", "doubleClickZoom", An), N.mergeOptions({
5954
5954
  // @option dragging: Boolean = true
5955
5955
  // Whether the map is draggable with mouse/touch or not.
5956
5956
  dragging: !0,
@@ -5985,7 +5985,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5985
5985
  // solid, preventing the user from dragging outside the bounds.
5986
5986
  maxBoundsViscosity: 0
5987
5987
  });
5988
- var An = vt.extend({
5988
+ var Zn = vt.extend({
5989
5989
  addHooks: function() {
5990
5990
  if (!this._draggable) {
5991
5991
  var t = this._map;
@@ -5995,7 +5995,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5995
5995
  dragend: this._onDragEnd
5996
5996
  }, this), this._draggable.on("predrag", this._onPreDragLimit, this), t.options.worldCopyJump && (this._draggable.on("predrag", this._onPreDragWrap, this), t.on("zoomend", this._onZoomEnd, this), t.whenReady(this._onZoomEnd, this));
5997
5997
  }
5998
- A(this._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this._positions = [], this._times = [];
5998
+ Z(this._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this._positions = [], this._times = [];
5999
5999
  },
6000
6000
  removeHooks: function() {
6001
6001
  j(this._map._container, "leaflet-grab"), j(this._map._container, "leaflet-touch-drag"), this._draggable.disable();
@@ -6064,7 +6064,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6064
6064
  }
6065
6065
  }
6066
6066
  });
6067
- N.addInitHook("addHandler", "dragging", An), N.mergeOptions({
6067
+ N.addInitHook("addHandler", "dragging", Zn), N.mergeOptions({
6068
6068
  // @option keyboard: Boolean = true
6069
6069
  // Makes the map focusable and allows users to navigate the map with keyboard
6070
6070
  // arrows and `+`/`-` keys.
@@ -6269,7 +6269,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6269
6269
  });
6270
6270
  var Rn = vt.extend({
6271
6271
  addHooks: function() {
6272
- A(this._map._container, "leaflet-touch-zoom"), z(this._map._container, "touchstart", this._onTouchStart, this);
6272
+ Z(this._map._container, "leaflet-touch-zoom"), z(this._map._container, "touchstart", this._onTouchStart, this);
6273
6273
  },
6274
6274
  removeHooks: function() {
6275
6275
  j(this._map._container, "leaflet-touch-zoom"), F(this._map._container, "touchstart", this._onTouchStart, this);
@@ -6306,7 +6306,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6306
6306
  this._zooming = !1, lt(this._animRequest), F(document, "touchmove", this._onTouchMove, this), F(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));
6307
6307
  }
6308
6308
  });
6309
- N.addInitHook("addHandler", "touchZoom", Rn), N.BoxZoom = zn, N.DoubleClickZoom = Zn, N.Drag = An, N.Keyboard = In, N.ScrollWheelZoom = Bn, N.TapHold = Nn, N.TouchZoom = Rn, c.Bounds = V, c.Browser = S, c.CRS = xt, c.Canvas = Sn, c.Circle = fi, c.CircleMarker = ye, c.Class = Pt, c.Control = _t, c.DivIcon = Cn, c.DivOverlay = yt, c.DomEvent = Do, c.DomUtil = No, c.Draggable = Et, c.Evented = Jt, c.FeatureGroup = Ct, c.GeoJSON = Mt, c.GridLayer = re, c.Handler = vt, c.Icon = Gt, c.ImageOverlay = xe, c.LatLng = D, c.LatLngBounds = st, c.Layer = pt, c.LayerGroup = Ft, c.LineUtil = $o, c.Map = N, c.Marker = ve, c.Mixin = qo, c.Path = Ot, c.Point = O, c.PolyUtil = jo, c.Polygon = Ut, c.Polyline = Tt, c.Popup = Ce, c.PosAnimation = an, c.Projection = Qo, c.Rectangle = On, c.Renderer = St, c.SVG = he, c.SVGOverlay = xn, c.TileLayer = Vt, c.Tooltip = Te, c.Transformation = De, c.Util = oo, c.VideoOverlay = Pn, c.bind = a, c.bounds = ot, c.canvas = kn, c.circle = as, c.circleMarker = rs, c.control = ne, c.divIcon = ms, c.extend = x, c.featureGroup = ns, c.geoJSON = bn, c.geoJson = ls, c.gridLayer = gs, c.icon = os, c.imageOverlay = cs, c.latLng = B, c.latLngBounds = J, c.layerGroup = is, c.map = Ho, c.marker = ss, c.point = E, c.polygon = us, c.polyline = hs, c.popup = _s, c.rectangle = Ls, c.setOptions = C, c.stamp = l, c.svg = En, c.svgOverlay = fs, c.tileLayer = Tn, c.tooltip = ps, c.transformation = Kt, c.version = y, c.videoOverlay = ds;
6309
+ N.addInitHook("addHandler", "touchZoom", Rn), N.BoxZoom = zn, N.DoubleClickZoom = An, N.Drag = Zn, N.Keyboard = In, N.ScrollWheelZoom = Bn, N.TapHold = Nn, N.TouchZoom = Rn, c.Bounds = V, c.Browser = S, c.CRS = xt, c.Canvas = Sn, c.Circle = fi, c.CircleMarker = ye, c.Class = Pt, c.Control = _t, c.DivIcon = Cn, c.DivOverlay = yt, c.DomEvent = Do, c.DomUtil = No, c.Draggable = Et, c.Evented = Jt, c.FeatureGroup = Ct, c.GeoJSON = Mt, c.GridLayer = re, c.Handler = vt, c.Icon = Gt, c.ImageOverlay = xe, c.LatLng = D, c.LatLngBounds = st, c.Layer = pt, c.LayerGroup = Ft, c.LineUtil = $o, c.Map = N, c.Marker = ve, c.Mixin = qo, c.Path = Ot, c.Point = O, c.PolyUtil = jo, c.Polygon = Ut, c.Polyline = Tt, c.Popup = Ce, c.PosAnimation = an, c.Projection = Qo, c.Rectangle = On, c.Renderer = St, c.SVG = he, c.SVGOverlay = xn, c.TileLayer = Vt, c.Tooltip = Te, c.Transformation = De, c.Util = oo, c.VideoOverlay = Pn, c.bind = a, c.bounds = ot, c.canvas = kn, c.circle = as, c.circleMarker = rs, c.control = ne, c.divIcon = ms, c.extend = x, c.featureGroup = ns, c.geoJSON = bn, c.geoJson = ls, c.gridLayer = gs, c.icon = os, c.imageOverlay = cs, c.latLng = B, c.latLngBounds = J, c.layerGroup = is, c.map = Ho, c.marker = ss, c.point = E, c.polygon = us, c.polyline = hs, c.popup = _s, c.rectangle = Ls, c.setOptions = C, c.stamp = l, c.svg = En, c.svgOverlay = fs, c.tileLayer = Tn, c.tooltip = ps, c.transformation = Kt, c.version = g, c.videoOverlay = ds;
6310
6310
  var bs = window.L;
6311
6311
  c.noConflict = function() {
6312
6312
  return window.L = bs, this;
@@ -6314,19 +6314,19 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6314
6314
  });
6315
6315
  })(yi, yi.exports);
6316
6316
  var G = yi.exports;
6317
- const et = "l:layer:connected", Jn = "l:popup:connected", Oe = "l:icon:connected", Gn = "l:layer:removed", Kn = "l:latlngbounds:connected", Yn = "l:latlngbounds:changed", xi = "l:tooltip:connected", Xn = "l:pane:connected", $n = (g, d, c = !0) => {
6318
- if (g.hasAttribute("on")) {
6319
- const y = g.getAttribute("on");
6320
- y !== null && y.split(/\s+/).forEach((x) => {
6317
+ const et = "l:layer:connected", Jn = "l:popup:connected", Oe = "l:icon:connected", Gn = "l:layer:removed", Kn = "l:latlngbounds:connected", Yn = "l:latlngbounds:changed", xi = "l:tooltip:connected", Xn = "l:pane:connected", $n = (v, d, c = !0) => {
6318
+ if (v.hasAttribute("on")) {
6319
+ const g = v.getAttribute("on");
6320
+ g !== null && g.split(/\s+/).forEach((x) => {
6321
6321
  d !== null && d.on(x, (s) => {
6322
- g.dispatchEvent(
6322
+ v.dispatchEvent(
6323
6323
  new CustomEvent(x, { bubbles: c, detail: s })
6324
6324
  );
6325
6325
  });
6326
6326
  });
6327
6327
  }
6328
6328
  };
6329
- class Zs extends HTMLElement {
6329
+ class As extends HTMLElement {
6330
6330
  constructor() {
6331
6331
  super();
6332
6332
  }
@@ -6336,21 +6336,21 @@ class Zs extends HTMLElement {
6336
6336
  });
6337
6337
  }
6338
6338
  }
6339
- class As extends HTMLElement {
6339
+ class Zs extends HTMLElement {
6340
6340
  constructor() {
6341
6341
  super();
6342
6342
  }
6343
6343
  connectedCallback() {
6344
- const d = {}, c = {}, y = G.control.layers(d, c);
6344
+ const d = {}, c = {}, g = G.control.layers(d, c);
6345
6345
  this.addEventListener(et, (s) => {
6346
6346
  const { type: a, name: h, layer: l } = s.detail;
6347
- a === "overlay" ? y.addOverlay(l, h) : a === "base" && y.addBaseLayer(l, h), s.preventDefault();
6347
+ a === "overlay" ? g.addOverlay(l, h) : a === "base" && g.addBaseLayer(l, h), s.preventDefault();
6348
6348
  });
6349
6349
  const x = new CustomEvent(et, {
6350
6350
  cancelable: !0,
6351
6351
  bubbles: !0,
6352
6352
  detail: {
6353
- layer: y
6353
+ layer: g
6354
6354
  }
6355
6355
  });
6356
6356
  this.dispatchEvent(x);
@@ -6372,7 +6372,7 @@ class Is extends zt {
6372
6372
  connectedCallback() {
6373
6373
  const d = this.getAttribute("name"), c = G.layerGroup();
6374
6374
  this.layer = c;
6375
- const y = new CustomEvent(et, {
6375
+ const g = new CustomEvent(et, {
6376
6376
  cancelable: !0,
6377
6377
  bubbles: !0,
6378
6378
  detail: {
@@ -6380,7 +6380,7 @@ class Is extends zt {
6380
6380
  name: d
6381
6381
  }
6382
6382
  });
6383
- this.dispatchEvent(y), this.addEventListener(et, (s) => {
6383
+ this.dispatchEvent(g), this.addEventListener(et, (s) => {
6384
6384
  s.stopPropagation(), c.addLayer(s.detail.layer);
6385
6385
  }), new MutationObserver(function(s) {
6386
6386
  s.forEach((a) => {
@@ -6411,98 +6411,98 @@ class Bs extends Error {
6411
6411
  return JSON.stringify(this.issues, null, 2);
6412
6412
  }
6413
6413
  }
6414
- const Ns = (g) => ({
6414
+ const Ns = (v) => ({
6415
6415
  status: "clean",
6416
6416
  issues: [],
6417
- value: g
6418
- }), Rs = ({ value: g }) => g, wt = (g, d) => {
6419
- const c = g(Ns(d));
6417
+ value: v
6418
+ }), Rs = ({ value: v }) => v, wt = (v, d) => {
6419
+ const c = v(Ns(d));
6420
6420
  if (c.status !== "clean")
6421
6421
  throw new Bs(c.issues);
6422
6422
  return Rs(c);
6423
- }, Ds = (g) => (d) => {
6424
- let { status: c, issues: y } = d;
6423
+ }, Ds = (v) => (d) => {
6424
+ let { status: c, issues: g } = d;
6425
6425
  const x = {};
6426
- for (const s of Object.keys(g)) {
6427
- let a = g[s](d);
6428
- a.status === "abort" && (c = "abort", y = [...y, ...a.issues]), x[s] = a.value;
6426
+ for (const s of Object.keys(v)) {
6427
+ let a = v[s](d);
6428
+ a.status === "abort" && (c = "abort", g = [...g, ...a.issues]), x[s] = a.value;
6429
6429
  }
6430
- return { status: c, issues: y, value: x };
6431
- }, Be = (g) => (d) => {
6432
- let { issues: c } = d, y = "clean";
6430
+ return { status: c, issues: g, value: x };
6431
+ }, Be = (v) => (d) => {
6432
+ let { issues: c } = d, g = "clean";
6433
6433
  const x = {};
6434
- for (const s of Object.keys(g)) {
6435
- let a = g[s](d);
6436
- a.status !== "clean" && (y = a.status), !(a.value === null && a.status === "clean") && (c = [...c, ...a.issues], x[s] = a.value);
6434
+ for (const s of Object.keys(v)) {
6435
+ let a = v[s](d);
6436
+ a.status !== "clean" && (g = a.status), !(a.value === null && a.status === "clean") && (c = [...c, ...a.issues], x[s] = a.value);
6437
6437
  }
6438
- return { status: y, issues: c, value: x };
6439
- }, Hs = (...g) => (d) => {
6440
- for (let c = 0; c < g.length && (d = g[c](d), d.status !== "abort"); c++)
6438
+ return { status: g, issues: c, value: x };
6439
+ }, Hs = (...v) => (d) => {
6440
+ for (let c = 0; c < v.length && (d = v[c](d), d.status !== "abort"); c++)
6441
6441
  ;
6442
6442
  return d;
6443
- }, Li = (...g) => (d) => {
6444
- for (let c = 0; c < g.length; c++)
6445
- d = g[c](d);
6443
+ }, Li = (...v) => (d) => {
6444
+ for (let c = 0; c < v.length; c++)
6445
+ d = v[c](d);
6446
6446
  return d;
6447
- }, wi = (g) => (d) => d.value === null ? d : g(d), ut = (g) => (d) => (d = g(d), d.value === null ? { status: "clean", issues: [], value: null } : d), Q = (g) => (d) => {
6447
+ }, wi = (v) => (d) => d.value === null ? d : v(d), ut = (v) => (d) => (d = v(d), d.value === null ? { status: "clean", issues: [], value: null } : d), Q = (v) => (d) => {
6448
6448
  const c = d.value;
6449
- let y = c.getAttribute(g);
6450
- return y === null ? {
6449
+ let g = c.getAttribute(v);
6450
+ return g === null ? {
6451
6451
  status: "abort",
6452
- issues: [...d.issues, js(c, g)],
6452
+ issues: [...d.issues, js(c, v)],
6453
6453
  value: null
6454
- } : { ...d, value: y };
6455
- }, Fs = () => (g) => {
6456
- let d = parseInt(g.value);
6454
+ } : { ...d, value: g };
6455
+ }, Fs = () => (v) => {
6456
+ let d = parseInt(v.value);
6457
6457
  return isNaN(d) ? {
6458
6458
  status: "abort",
6459
- issues: [...g.issues, Ws(g.value)],
6459
+ issues: [...v.issues, Ws(v.value)],
6460
6460
  value: d
6461
- } : { ...g, value: d };
6462
- }, Gs = () => (g) => {
6463
- let d = parseFloat(g.value);
6461
+ } : { ...v, value: d };
6462
+ }, Gs = () => (v) => {
6463
+ let d = parseFloat(v.value);
6464
6464
  return isNaN(d) ? {
6465
6465
  status: "abort",
6466
- issues: [...g.issues, Vs(g.value)],
6466
+ issues: [...v.issues, Vs(v.value)],
6467
6467
  value: d
6468
- } : { ...g, value: d };
6469
- }, ze = () => (g) => {
6468
+ } : { ...v, value: d };
6469
+ }, ze = () => (v) => {
6470
6470
  let d;
6471
6471
  try {
6472
- d = JSON.parse(g.value);
6472
+ d = JSON.parse(v.value);
6473
6473
  } catch (c) {
6474
6474
  return {
6475
6475
  status: "abort",
6476
- issues: [...g.issues, qs(c)],
6476
+ issues: [...v.issues, qs(c)],
6477
6477
  value: null
6478
6478
  };
6479
6479
  }
6480
- return { ...g, value: d };
6481
- }, Us = () => (g) => ({ ...g, value: g.value.toLowerCase() === "true" }), Ee = (g, ...d) => Hs(Q(g), ...d), Ws = (g) => ({
6480
+ return { ...v, value: d };
6481
+ }, Us = () => (v) => ({ ...v, value: v.value.toLowerCase() === "true" }), Ee = (v, ...d) => Hs(Q(v), ...d), Ws = (v) => ({
6482
6482
  code: "parse_int",
6483
- message: `could not parse int given: "${g}"`
6484
- }), Vs = (g) => ({
6483
+ message: `could not parse int given: "${v}"`
6484
+ }), Vs = (v) => ({
6485
6485
  code: "parse_float",
6486
- message: `could not parse float given: "${g}"`
6487
- }), qs = (g) => ({
6486
+ message: `could not parse float given: "${v}"`
6487
+ }), qs = (v) => ({
6488
6488
  code: "parse_json",
6489
- message: g.message
6490
- }), js = (g, d) => ({
6489
+ message: v.message
6490
+ }), js = (v, d) => ({
6491
6491
  code: "missing_attribute",
6492
- message: `${g.tagName.toLowerCase()} missing attribute '${d}'`
6493
- }), Ae = class Ae extends HTMLElement {
6492
+ message: `${v.tagName.toLowerCase()} missing attribute '${d}'`
6493
+ }), Ze = class Ze extends HTMLElement {
6494
6494
  constructor() {
6495
6495
  super(), this.map = null;
6496
- const d = (y) => {
6497
- const { bounds: x, method: s } = y.detail;
6496
+ const d = (g) => {
6497
+ const { bounds: x, method: s } = g.detail;
6498
6498
  this.map !== null && this.map[s](x);
6499
6499
  };
6500
- this.addEventListener(Kn, d), this.addEventListener(Yn, d), this.addEventListener(Xn, (y) => {
6501
- const { name: x } = y.detail;
6500
+ this.addEventListener(Kn, d), this.addEventListener(Yn, d), this.addEventListener(Xn, (g) => {
6501
+ const { name: x } = g.detail;
6502
6502
  this.map.createPane(x);
6503
- }), new MutationObserver(function(y) {
6504
- y.forEach((x) => {
6505
- if (x.target instanceof Ae) {
6503
+ }), new MutationObserver(function(g) {
6504
+ g.forEach((x) => {
6505
+ if (x.target instanceof Ze) {
6506
6506
  const s = x.target;
6507
6507
  x.removedNodes.forEach((a) => {
6508
6508
  a instanceof zt && s.map !== null && a.layer !== null && (s.dispatchEvent(new CustomEvent(Gn, {
@@ -6517,7 +6517,8 @@ const Ns = (g) => ({
6517
6517
  }).observe(this, { childList: !0 });
6518
6518
  }
6519
6519
  connectedCallback() {
6520
- if (this.map = G.map(this, { zoomControl: this.hasAttribute("zoom-control") }), this.map.whenReady(() => {
6520
+ const d = { zoomControl: this.hasAttribute("zoom-control") };
6521
+ if (this.hasAttribute("attribution-control") && (d.attributionControl = this.getAttribute("attribution-control").toLowerCase() === "true"), this.map = G.map(this, d), this.map.whenReady(() => {
6521
6522
  this.dispatchEvent(
6522
6523
  new CustomEvent("ready", {
6523
6524
  bubbles: !0,
@@ -6528,29 +6529,33 @@ const Ns = (g) => ({
6528
6529
  }), $n(this, this.map), this.hasAttribute("fit-world"))
6529
6530
  this.map.fitWorld();
6530
6531
  else {
6531
- const d = Ds({
6532
+ const g = Ds({
6532
6533
  zoom: Ee("zoom", Fs()),
6533
6534
  center: Ee("center", ze())
6534
- }), { zoom: c, center: y } = wt(d, this);
6535
- this.map.setView(y, c);
6535
+ }), { zoom: x, center: s } = wt(g, this);
6536
+ this.map.setView(s, x);
6536
6537
  }
6537
6538
  if (this.hasAttribute("locate")) {
6538
- const d = Ee("locate", ze());
6539
- this.map.locate(wt(d, this));
6539
+ const g = Ee("locate", ze());
6540
+ this.map.locate(wt(g, this));
6540
6541
  }
6541
- this.addEventListener(et, (d) => {
6542
- const c = d.detail.layer;
6543
- this.map.addLayer(c);
6544
- }), this.addEventListener(Gn, (d) => {
6545
- this.map !== null && this.map.removeLayer(d.detail.layer);
6542
+ const c = {
6543
+ "l-control-layers": (g, x) => g.addTo(x),
6544
+ default: (g, x) => x.addLayer(g)
6545
+ };
6546
+ this.addEventListener(et, (g) => {
6547
+ const { layer: x } = g.detail, s = g.target.localName;
6548
+ (c[s] || c.default)(x, this.map);
6549
+ }), this.addEventListener(Gn, (g) => {
6550
+ this.map !== null && this.map.removeLayer(g.detail.layer);
6546
6551
  });
6547
6552
  }
6548
- attributeChangedCallback(d, c, y) {
6549
- this.map !== null && (d === "zoom" ? this.map.setZoom(parseInt(y)) : d === "center" && this.map.setView(JSON.parse(y)));
6553
+ attributeChangedCallback(d, c, g) {
6554
+ this.map !== null && (d === "zoom" ? this.map.setZoom(parseInt(g)) : d === "center" && this.map.setView(JSON.parse(g)));
6550
6555
  }
6551
6556
  };
6552
- Lt(Ae, "observedAttributes", ["zoom", "center", "zoom-control"]);
6553
- let bi = Ae;
6557
+ Lt(Ze, "observedAttributes", ["zoom", "center", "zoom-control"]);
6558
+ let bi = Ze;
6554
6559
  class Qn extends zt {
6555
6560
  constructor() {
6556
6561
  super(), this.layer = null, this.addEventListener(Oe, (d) => {
@@ -6565,8 +6570,8 @@ class Qn extends zt {
6565
6570
  opacity: Li(ut(Q("opacity")), wi(Gs()))
6566
6571
  }),
6567
6572
  this
6568
- ), y = this.closest("l-pane");
6569
- if (y !== null && (c.pane = y.getAttribute("name")), this.layer = G.marker(d, c), this.hasAttribute("icon")) {
6573
+ ), g = this.closest("l-pane");
6574
+ if (g !== null && (c.pane = g.getAttribute("name")), this.layer = G.marker(d, c), this.hasAttribute("icon")) {
6570
6575
  const s = G.icon(JSON.parse(this.getAttribute("icon")));
6571
6576
  this.layer.setIcon(s);
6572
6577
  }
@@ -6583,8 +6588,8 @@ class Qn extends zt {
6583
6588
  });
6584
6589
  this.dispatchEvent(x);
6585
6590
  }
6586
- attributeChangedCallback(d, c, y) {
6587
- this.layer !== null && (d === "lat-lng" && this.layer.setLatLng(JSON.parse(y)), d === "opacity" && this.layer.setOpacity(parseFloat(y)), d === "icon" && this.layer.setIcon(G.icon(JSON.parse(y))));
6591
+ attributeChangedCallback(d, c, g) {
6592
+ this.layer !== null && (d === "lat-lng" && this.layer.setLatLng(JSON.parse(g)), d === "opacity" && this.layer.setOpacity(parseFloat(g)), d === "icon" && this.layer.setIcon(G.icon(JSON.parse(g))));
6588
6593
  }
6589
6594
  }
6590
6595
  Lt(Qn, "observedAttributes", ["lat-lng", "opacity", "icon"]);
@@ -6605,8 +6610,8 @@ class Ks extends HTMLElement {
6605
6610
  connectedCallback() {
6606
6611
  const d = this.getAttribute("content");
6607
6612
  let c = !1;
6608
- const y = this.getAttribute("open-popup");
6609
- y !== null && (c = y !== "false");
6613
+ const g = this.getAttribute("open-popup");
6614
+ g !== null && (c = g !== "false");
6610
6615
  const x = new CustomEvent(Jn, {
6611
6616
  cancelable: !0,
6612
6617
  bubbles: !0,
@@ -6623,10 +6628,10 @@ class Ci extends zt {
6623
6628
  super(), this.layer = null;
6624
6629
  }
6625
6630
  connectedCallback() {
6626
- const d = wt(Q("url-template"), this), c = Ci.parseTemplateAttributes(d), y = {};
6631
+ const d = wt(Q("url-template"), this), c = Ci.parseTemplateAttributes(d), g = {};
6627
6632
  for (const p of c) {
6628
- const v = this.getAttribute(p);
6629
- v !== null && (y[p] = v);
6633
+ const y = this.getAttribute(p);
6634
+ y !== null && (g[p] = y);
6630
6635
  }
6631
6636
  const x = {};
6632
6637
  this.parentElement.tagName.toLowerCase() === "l-pane" && (x.pane = this.parentElement.getAttribute("name"));
@@ -6634,7 +6639,7 @@ class Ci extends zt {
6634
6639
  attribution: ut(Q("attribution")),
6635
6640
  errorTileUrl: ut(Q("error-tile-url"))
6636
6641
  }), h = wt(a, this);
6637
- this.layer = G.tileLayer(d, { ...y, ...x, ...h });
6642
+ this.layer = G.tileLayer(d, { ...g, ...x, ...h });
6638
6643
  const l = new CustomEvent(et, {
6639
6644
  detail: { name: s, layer: this.layer },
6640
6645
  bubbles: !0
@@ -6647,7 +6652,7 @@ class Ci extends zt {
6647
6652
  */
6648
6653
  static parseTemplateAttributes(d) {
6649
6654
  const c = /{(.*?)}/g;
6650
- return [...d.matchAll(c)].map((y) => y[1]);
6655
+ return [...d.matchAll(c)].map((g) => g[1]);
6651
6656
  }
6652
6657
  }
6653
6658
  class Ys extends zt {
@@ -6660,11 +6665,11 @@ class Ys extends zt {
6660
6665
  connectedCallback() {
6661
6666
  this.initLayer();
6662
6667
  }
6663
- attributeChangedCallback(d, c, y) {
6664
- d === "options" && c !== y && this.isConnected && this.reloadLayer();
6668
+ attributeChangedCallback(d, c, g) {
6669
+ d === "options" && c !== g && this.isConnected && this.reloadLayer();
6665
6670
  }
6666
6671
  initLayer() {
6667
- const d = wt(Q("url-template"), this), c = this.getAttribute("name"), y = Be({
6672
+ const d = wt(Q("url-template"), this), c = this.getAttribute("name"), g = Be({
6668
6673
  // Leaflet.tileLayer default options: https://leafletjs.com/reference.html#tilelayer-wms-layers
6669
6674
  layers: Q("layers"),
6670
6675
  styles: ut(Q("styles")),
@@ -6675,7 +6680,7 @@ class Ys extends zt {
6675
6680
  uppercase: ut(Q("uppercase")),
6676
6681
  // Inherited option from Layer: https://leafletjs.com/reference.html#tilelayer-wms-attribution
6677
6682
  attribution: ut(Q("attribution"))
6678
- }), x = wt(y, this), s = this.getAttribute("options"), a = () => {
6683
+ }), x = wt(g, this), s = this.getAttribute("options"), a = () => {
6679
6684
  if (s)
6680
6685
  try {
6681
6686
  return JSON.parse(s);
@@ -6711,8 +6716,8 @@ class to extends HTMLElement {
6711
6716
  let d = this.getAttribute("bounds");
6712
6717
  d !== null && this.dispatchEvent(this.getEvent(Kn, JSON.parse(d)));
6713
6718
  }
6714
- attributeChangedCallback(d, c, y) {
6715
- this.dispatchEvent(this.getEvent(Yn, JSON.parse(y)));
6719
+ attributeChangedCallback(d, c, g) {
6720
+ this.dispatchEvent(this.getEvent(Yn, JSON.parse(g)));
6716
6721
  }
6717
6722
  /**
6718
6723
  * @param {LatLngBounds} bounds
@@ -6743,11 +6748,11 @@ class eo extends zt {
6743
6748
  console.warn("attribute 'bounds' not set");
6744
6749
  return;
6745
6750
  }
6746
- const y = {
6751
+ const g = {
6747
6752
  opacity: parseFloat(this.getAttribute("opacity") || "1.0"),
6748
6753
  alt: this.getAttribute("alt") || ""
6749
6754
  }, x = this.closest("l-pane");
6750
- x !== null && (y.pane = x.getAttribute("name")), this.layer = G.imageOverlay(d, JSON.parse(c), y), this.dispatchEvent(
6755
+ x !== null && (g.pane = x.getAttribute("name")), this.layer = G.imageOverlay(d, JSON.parse(c), g), this.dispatchEvent(
6751
6756
  new CustomEvent(et, {
6752
6757
  cancelable: !0,
6753
6758
  bubbles: !0,
@@ -6757,8 +6762,8 @@ class eo extends zt {
6757
6762
  })
6758
6763
  );
6759
6764
  }
6760
- attributeChangedCallback(d, c, y) {
6761
- this.layer !== null && (d === "url" ? this.layer.setUrl(y) : d === "bounds" ? this.layer.setBounds(JSON.parse(y)) : d === "opacity" && this.layer.setOpacity(parseFloat(y)));
6765
+ attributeChangedCallback(d, c, g) {
6766
+ this.layer !== null && (d === "url" ? this.layer.setUrl(g) : d === "bounds" ? this.layer.setBounds(JSON.parse(g)) : d === "opacity" && this.layer.setOpacity(parseFloat(g)));
6762
6767
  }
6763
6768
  }
6764
6769
  Lt(eo, "observedAttributes", ["url", "bounds", "opacity"]);
@@ -6767,13 +6772,13 @@ class Xs extends zt {
6767
6772
  super();
6768
6773
  }
6769
6774
  connectedCallback() {
6770
- const d = JSON.parse(this.getAttribute("url")), c = JSON.parse(this.getAttribute("bounds")), y = {
6775
+ const d = JSON.parse(this.getAttribute("url")), c = JSON.parse(this.getAttribute("bounds")), g = {
6771
6776
  opacity: parseFloat(this.getAttribute("opacity") || "1.0"),
6772
6777
  alt: this.getAttribute("alt") || "",
6773
6778
  autoplay: !0,
6774
6779
  muted: !0,
6775
6780
  playsInline: !0
6776
- }, x = G.videoOverlay(d, c, y);
6781
+ }, x = G.videoOverlay(d, c, g);
6777
6782
  this.dispatchEvent(
6778
6783
  new CustomEvent(et, {
6779
6784
  cancelable: !0,
@@ -6790,8 +6795,8 @@ class $s extends HTMLElement {
6790
6795
  super(), this.layer = null;
6791
6796
  }
6792
6797
  connectedCallback() {
6793
- const d = this.getAttribute("geojson"), c = {}, y = this.closest("l-pane");
6794
- y !== null && (c.pane = y.getAttribute("name")), d !== null && (this.layer = G.geoJSON(JSON.parse(d), c), this.dispatchEvent(
6798
+ const d = this.getAttribute("geojson"), c = {}, g = this.closest("l-pane");
6799
+ g !== null && (c.pane = g.getAttribute("name")), d !== null && (this.layer = G.geoJSON(JSON.parse(d), c), this.dispatchEvent(
6795
6800
  new CustomEvent(et, {
6796
6801
  bubbles: !0,
6797
6802
  cancelable: !0,
@@ -6802,7 +6807,7 @@ class $s extends HTMLElement {
6802
6807
  ));
6803
6808
  }
6804
6809
  }
6805
- const ue = (g) => g.replace(/-./g, (d) => d[1].toUpperCase()), Qs = (g) => g.split("").map((d, c) => d.toUpperCase() === d ? `${c !== 0 ? "-" : ""}${d.toLowerCase()}` : d).join(""), vi = [
6810
+ const ue = (v) => v.replace(/-./g, (d) => d[1].toUpperCase()), Qs = (v) => v.split("").map((d, c) => d.toUpperCase() === d ? `${c !== 0 ? "-" : ""}${d.toLowerCase()}` : d).join(""), vi = [
6806
6811
  "icon-url",
6807
6812
  "icon-retina-url",
6808
6813
  "shadow-url",
@@ -6835,10 +6840,10 @@ const ue = (g) => g.replace(/-./g, (d) => d[1].toUpperCase()), Qs = (g) => g.spl
6835
6840
  * @param {string} _
6836
6841
  * @param {string} newValue
6837
6842
  */
6838
- attributeChangedCallback(d, c, y) {
6843
+ attributeChangedCallback(d, c, g) {
6839
6844
  if (Ie.observedAttributes.indexOf(d) !== -1 && this.icon !== null) {
6840
6845
  let x = {};
6841
- vi.indexOf(d) !== -1 ? x[ue(d)] = y : Wn.indexOf(d) !== -1 ? x[ue(d)] = y.toLowerCase() === "true" : x[ue(d)] = JSON.parse(y), this.icon = G.icon({
6846
+ vi.indexOf(d) !== -1 ? x[ue(d)] = g : Wn.indexOf(d) !== -1 ? x[ue(d)] = g.toLowerCase() === "true" : x[ue(d)] = JSON.parse(g), this.icon = G.icon({
6842
6847
  ...this.icon.options,
6843
6848
  ...x
6844
6849
  });
@@ -6857,11 +6862,11 @@ const ue = (g) => g.replace(/-./g, (d) => d[1].toUpperCase()), Qs = (g) => g.spl
6857
6862
  */
6858
6863
  _parseOptions() {
6859
6864
  const d = {};
6860
- vi.forEach((y) => {
6861
- d[ue(y)] = ut(Q(y));
6862
- }), Un.forEach((y) => {
6863
- d[ue(y)] = Li(
6864
- ut(Q(y)),
6865
+ vi.forEach((g) => {
6866
+ d[ue(g)] = ut(Q(g));
6867
+ }), Un.forEach((g) => {
6868
+ d[ue(g)] = Li(
6869
+ ut(Q(g)),
6865
6870
  wi(ze())
6866
6871
  );
6867
6872
  }), d.crossOrigin = Li(
@@ -6919,8 +6924,8 @@ class io extends HTMLElement {
6919
6924
  * @param {string} attName
6920
6925
  * @param {string} newValue
6921
6926
  */
6922
- attributeChangedCallback(d, c, y) {
6923
- this.tooltip && (d === "content" ? this.tooltip.setContent(y) : d === "permanent" ? this.tooltip.options.permanent = this.hasAttribute("permanent") : d === "interactive" ? this.tooltip.options.interactive = this.hasAttribute("interactive") : d === "direction" && (this.tooltip.options.direction = y));
6927
+ attributeChangedCallback(d, c, g) {
6928
+ this.tooltip && (d === "content" ? this.tooltip.setContent(g) : d === "permanent" ? this.tooltip.options.permanent = this.hasAttribute("permanent") : d === "interactive" ? this.tooltip.options.interactive = this.hasAttribute("interactive") : d === "direction" && (this.tooltip.options.direction = g));
6924
6929
  }
6925
6930
  }
6926
6931
  Lt(io, "observedAttributes", ["content", "permanent", "interactive", "direction"]);
@@ -6940,8 +6945,8 @@ class er extends HTMLElement {
6940
6945
  );
6941
6946
  }
6942
6947
  }
6943
- const Ti = (g) => {
6944
- switch (g) {
6948
+ const Ti = (v) => {
6949
+ switch (v) {
6945
6950
  case "circle":
6946
6951
  return [X("latLng", "latlng", null)];
6947
6952
  case "rectangle":
@@ -6951,13 +6956,13 @@ const Ti = (g) => {
6951
6956
  case "polyline":
6952
6957
  return [X("latLngs", "latlng", null)];
6953
6958
  }
6954
- }, X = (g, d, c) => ({
6955
- camel: g,
6956
- kebab: Qs(g),
6959
+ }, X = (v, d, c) => ({
6960
+ camel: v,
6961
+ kebab: Qs(v),
6957
6962
  parser: ir(d),
6958
6963
  defaultValue: c
6959
- }), ir = (g) => {
6960
- switch (g.toLowerCase()) {
6964
+ }), ir = (v) => {
6965
+ switch (v.toLowerCase()) {
6961
6966
  case "boolean":
6962
6967
  return (d) => d === "true";
6963
6968
  case "number":
@@ -6970,7 +6975,7 @@ const Ti = (g) => {
6970
6975
  default:
6971
6976
  return (d) => d;
6972
6977
  }
6973
- }, Ze = (g) => {
6978
+ }, Ae = (v) => {
6974
6979
  const d = {
6975
6980
  circle: [X("radius", "number", null)],
6976
6981
  path: [
@@ -6994,7 +6999,7 @@ const Ti = (g) => {
6994
6999
  rectangle: [],
6995
7000
  interactiveLayer: [X("interactive", "boolean", !0)]
6996
7001
  };
6997
- return nr(g).flatMap((c) => d[c]);
7002
+ return nr(v).flatMap((c) => d[c]);
6998
7003
  }, Vn = {
6999
7004
  circle: ["path"],
7000
7005
  polyline: ["path"],
@@ -7002,65 +7007,65 @@ const Ti = (g) => {
7002
7007
  rectangle: ["polygon"],
7003
7008
  path: ["interactiveLayer"],
7004
7009
  interactiveLayer: []
7005
- }, nr = (g) => {
7006
- let d = g, c = [g];
7010
+ }, nr = (v) => {
7011
+ let d = v, c = [v];
7007
7012
  for (; Vn[d].length > 0; ) {
7008
- let y = Vn[d][0];
7009
- c.push(y), d = y;
7013
+ let g = Vn[d][0];
7014
+ c.push(g), d = g;
7010
7015
  }
7011
7016
  return c;
7012
- }, or = (g, d, c, y) => {
7017
+ }, or = (v, d, c, g) => {
7013
7018
  let s = [
7014
7019
  ...Ti(d),
7015
- ...Ze(d)
7020
+ ...Ae(d)
7016
7021
  ].find((l) => l.kebab === c);
7017
7022
  if (typeof s > "u")
7018
7023
  return;
7019
- const a = s.parser(y);
7020
- if (g instanceof G.Circle)
7024
+ const a = s.parser(g);
7025
+ if (v instanceof G.Circle)
7021
7026
  switch (c) {
7022
7027
  case "lat-lng":
7023
- g.setLatLng(JSON.parse(y));
7028
+ v.setLatLng(JSON.parse(g));
7024
7029
  break;
7025
7030
  case "radius":
7026
- g.setRadius(parseFloat(y));
7031
+ v.setRadius(parseFloat(g));
7027
7032
  break;
7028
7033
  }
7029
- else if (g instanceof G.Rectangle)
7034
+ else if (v instanceof G.Rectangle)
7030
7035
  switch (c) {
7031
7036
  case "lat-lngs":
7032
- g.setLatLngs(JSON.parse(y));
7037
+ v.setLatLngs(JSON.parse(g));
7033
7038
  break;
7034
7039
  case "lat-lng-bounds":
7035
- g.setBounds(JSON.parse(y));
7040
+ v.setBounds(JSON.parse(g));
7036
7041
  break;
7037
7042
  }
7038
- else if (g instanceof G.Polygon)
7043
+ else if (v instanceof G.Polygon)
7039
7044
  switch (c) {
7040
7045
  case "lat-lngs":
7041
- g.setLatLngs(JSON.parse(y));
7046
+ v.setLatLngs(JSON.parse(g));
7042
7047
  break;
7043
7048
  }
7044
- else if (g instanceof G.Polyline)
7049
+ else if (v instanceof G.Polyline)
7045
7050
  switch (c) {
7046
7051
  case "lat-lngs":
7047
- g.setLatLngs(JSON.parse(y));
7052
+ v.setLatLngs(JSON.parse(g));
7048
7053
  break;
7049
7054
  }
7050
- let h = Ze("polyline").find((l) => l.kebab === c);
7051
- typeof h < "u" && g.setStyle({ [h.camel]: a });
7052
- }, sr = (g) => {
7053
- let d = Ti(g).map((y) => y.kebab), c = Ze(g).map((y) => y.kebab);
7055
+ let h = Ae("polyline").find((l) => l.kebab === c);
7056
+ typeof h < "u" && v.setStyle({ [h.camel]: a });
7057
+ }, sr = (v) => {
7058
+ let d = Ti(v).map((g) => g.kebab), c = Ae(v).map((g) => g.kebab);
7054
7059
  return [...d, ...c];
7055
- }, rr = (g, d) => {
7060
+ }, rr = (v, d) => {
7056
7061
  let c = {};
7057
- return Ze(d).forEach((y) => {
7058
- g.hasAttribute(y.kebab) && (c[y.camel] = y.parser(g.getAttribute(y.kebab)));
7062
+ return Ae(d).forEach((g) => {
7063
+ v.hasAttribute(g.kebab) && (c[g.camel] = g.parser(v.getAttribute(g.kebab)));
7059
7064
  }), c;
7060
- }, ar = (g, d) => Ti(d).map((c) => {
7061
- const y = Q(c.kebab), x = wt(y, g);
7065
+ }, ar = (v, d) => Ti(d).map((c) => {
7066
+ const g = Q(c.kebab), x = wt(g, v);
7062
7067
  return c.parser(x);
7063
- }), ke = (g, d) => {
7068
+ }), ke = (v, d) => {
7064
7069
  class c extends HTMLElement {
7065
7070
  constructor() {
7066
7071
  super(), this.layer = null, this.addEventListener(xi, (x) => {
@@ -7069,7 +7074,7 @@ const Ti = (g) => {
7069
7074
  }
7070
7075
  connectedCallback() {
7071
7076
  const x = ar(this, d), s = rr(this, d);
7072
- this.layer = g(...x, s);
7077
+ this.layer = v(...x, s);
7073
7078
  const a = new CustomEvent(et, {
7074
7079
  cancelable: !0,
7075
7080
  bubbles: !0,
@@ -7090,11 +7095,11 @@ const Ti = (g) => {
7090
7095
  return Lt(c, "observedAttributes", sr(d)), c;
7091
7096
  };
7092
7097
  var qn = { exports: {} };
7093
- (function(g, d) {
7094
- (function(c, y) {
7095
- y(d);
7098
+ (function(v, d) {
7099
+ (function(c, g) {
7100
+ g(d);
7096
7101
  })(jn, function(c) {
7097
- var y = L.MarkerClusterGroup = L.FeatureGroup.extend({
7102
+ var g = L.MarkerClusterGroup = L.FeatureGroup.extend({
7098
7103
  options: {
7099
7104
  maxClusterRadius: 80,
7100
7105
  //A cluster will cover at most this many pixels from its center
@@ -7165,14 +7170,14 @@ var qn = { exports: {} };
7165
7170
  addLayers: function(s, a) {
7166
7171
  if (!L.Util.isArray(s))
7167
7172
  return this.addLayer(s);
7168
- var h = this._featureGroup, l = this._nonPointGroup, p = this.options.chunkedLoading, v = this.options.chunkInterval, _ = this.options.chunkProgress, b = s.length, w = 0, M = !0, C;
7173
+ var h = this._featureGroup, l = this._nonPointGroup, p = this.options.chunkedLoading, y = this.options.chunkInterval, _ = this.options.chunkProgress, b = s.length, w = 0, M = !0, C;
7169
7174
  if (this._map) {
7170
- var H = (/* @__PURE__ */ new Date()).getTime(), Z = L.bind(function() {
7175
+ var H = (/* @__PURE__ */ new Date()).getTime(), A = L.bind(function() {
7171
7176
  var W = (/* @__PURE__ */ new Date()).getTime();
7172
7177
  for (this._map && this._unspiderfy && this._unspiderfy(); w < b; w++) {
7173
7178
  if (p && w % 200 === 0) {
7174
7179
  var bt = (/* @__PURE__ */ new Date()).getTime() - W;
7175
- if (bt > v)
7180
+ if (bt > y)
7176
7181
  break;
7177
7182
  }
7178
7183
  if (C = s[w], C instanceof L.LayerGroup) {
@@ -7188,9 +7193,9 @@ var qn = { exports: {} };
7188
7193
  h.removeLayer(jt);
7189
7194
  }
7190
7195
  }
7191
- _ && _(w, b, (/* @__PURE__ */ new Date()).getTime() - H), w === b ? (this._topClusterLevel._recalculateBounds(), this._refreshClustersIcons(), this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds)) : setTimeout(Z, this.options.chunkDelay);
7196
+ _ && _(w, b, (/* @__PURE__ */ new Date()).getTime() - H), w === b ? (this._topClusterLevel._recalculateBounds(), this._refreshClustersIcons(), this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds)) : setTimeout(A, this.options.chunkDelay);
7192
7197
  }, this);
7193
- Z();
7198
+ A();
7194
7199
  } else
7195
7200
  for (var U = this._needsClustering; w < b; w++) {
7196
7201
  if (C = s[w], C instanceof L.LayerGroup) {
@@ -7207,14 +7212,14 @@ var qn = { exports: {} };
7207
7212
  },
7208
7213
  //Takes an array of markers and removes them in bulk
7209
7214
  removeLayers: function(s) {
7210
- var a, h, l = s.length, p = this._featureGroup, v = this._nonPointGroup, _ = !0;
7215
+ var a, h, l = s.length, p = this._featureGroup, y = this._nonPointGroup, _ = !0;
7211
7216
  if (!this._map) {
7212
7217
  for (a = 0; a < l; a++) {
7213
7218
  if (h = s[a], h instanceof L.LayerGroup) {
7214
7219
  _ && (s = s.slice(), _ = !1), this._extractNonGroupLayers(h, s), l = s.length;
7215
7220
  continue;
7216
7221
  }
7217
- this._arraySplice(this._needsClustering, h), v.removeLayer(h), this.hasLayer(h) && this._needsRemoving.push({ layer: h, latlng: h._latlng }), this.fire("layerremove", { layer: h });
7222
+ this._arraySplice(this._needsClustering, h), y.removeLayer(h), this.hasLayer(h) && this._needsRemoving.push({ layer: h, latlng: h._latlng }), this.fire("layerremove", { layer: h });
7218
7223
  }
7219
7224
  return this;
7220
7225
  }
@@ -7235,7 +7240,7 @@ var qn = { exports: {} };
7235
7240
  continue;
7236
7241
  }
7237
7242
  if (!h.__parent) {
7238
- v.removeLayer(h), this.fire("layerremove", { layer: h });
7243
+ y.removeLayer(h), this.fire("layerremove", { layer: h });
7239
7244
  continue;
7240
7245
  }
7241
7246
  this._removeLayer(h, !0, !0), this.fire("layerremove", { layer: h }), p.hasLayer(h) && (p.removeLayer(h), h.clusterShow && h.clusterShow());
@@ -7258,14 +7263,14 @@ var qn = { exports: {} };
7258
7263
  },
7259
7264
  //Overrides LayerGroup.eachLayer
7260
7265
  eachLayer: function(s, a) {
7261
- var h = this._needsClustering.slice(), l = this._needsRemoving, p, v, _;
7262
- for (this._topClusterLevel && this._topClusterLevel.getAllChildMarkers(h), v = h.length - 1; v >= 0; v--) {
7266
+ var h = this._needsClustering.slice(), l = this._needsRemoving, p, y, _;
7267
+ for (this._topClusterLevel && this._topClusterLevel.getAllChildMarkers(h), y = h.length - 1; y >= 0; y--) {
7263
7268
  for (p = !0, _ = l.length - 1; _ >= 0; _--)
7264
- if (l[_].layer === h[v]) {
7269
+ if (l[_].layer === h[y]) {
7265
7270
  p = !1;
7266
7271
  break;
7267
7272
  }
7268
- p && s.call(a, h[v]);
7273
+ p && s.call(a, h[y]);
7269
7274
  }
7270
7275
  this._nonPointGroup.eachLayer(s, a);
7271
7276
  },
@@ -7362,11 +7367,11 @@ var qn = { exports: {} };
7362
7367
  //Internal function for removing a marker from everything.
7363
7368
  //dontUpdateMap: set to true if you will handle updating the map manually (for bulk functions)
7364
7369
  _removeLayer: function(s, a, h) {
7365
- var l = this._gridClusters, p = this._gridUnclustered, v = this._featureGroup, _ = this._map, b = Math.floor(this._map.getMinZoom());
7370
+ var l = this._gridClusters, p = this._gridUnclustered, y = this._featureGroup, _ = this._map, b = Math.floor(this._map.getMinZoom());
7366
7371
  a && this._removeFromGridUnclustered(s, this._maxZoom);
7367
7372
  var w = s.__parent, M = w._markers, C;
7368
7373
  for (this._arraySplice(M, s); w && (w._childCount--, w._boundsNeedUpdate = !0, !(w._zoom < b)); )
7369
- a && w._childCount <= 1 ? (C = w._markers[0] === s ? w._markers[1] : w._markers[0], l[w._zoom].removeObject(w, _.project(w._cLatLng, w._zoom)), p[w._zoom].addObject(C, _.project(C.getLatLng(), w._zoom)), this._arraySplice(w.__parent._childClusters, w), w.__parent._markers.push(C), C.__parent = w.__parent, w._icon && (v.removeLayer(w), h || v.addLayer(C))) : w._iconNeedsUpdate = !0, w = w.__parent;
7374
+ a && w._childCount <= 1 ? (C = w._markers[0] === s ? w._markers[1] : w._markers[0], l[w._zoom].removeObject(w, _.project(w._cLatLng, w._zoom)), p[w._zoom].addObject(C, _.project(C.getLatLng(), w._zoom)), this._arraySplice(w.__parent._childClusters, w), w.__parent._markers.push(C), C.__parent = w.__parent, w._icon && (y.removeLayer(w), h || y.addLayer(C))) : w._iconNeedsUpdate = !0, w = w.__parent;
7370
7375
  delete s.__parent;
7371
7376
  },
7372
7377
  _isOrIsParent: function(s, a) {
@@ -7438,15 +7443,15 @@ var qn = { exports: {} };
7438
7443
  },
7439
7444
  //Zoom: Zoom to start adding at (Pass this._maxZoom to start at the bottom)
7440
7445
  _addLayer: function(s, a) {
7441
- var h = this._gridClusters, l = this._gridUnclustered, p = Math.floor(this._map.getMinZoom()), v, _;
7446
+ var h = this._gridClusters, l = this._gridUnclustered, p = Math.floor(this._map.getMinZoom()), y, _;
7442
7447
  for (this.options.singleMarkerMode && this._overrideMarkerIcon(s), s.on(this._childMarkerEventHandlers, this); a >= p; a--) {
7443
- v = this._map.project(s.getLatLng(), a);
7444
- var b = h[a].getNearObject(v);
7448
+ y = this._map.project(s.getLatLng(), a);
7449
+ var b = h[a].getNearObject(y);
7445
7450
  if (b) {
7446
7451
  b._addChild(s), s.__parent = b;
7447
7452
  return;
7448
7453
  }
7449
- if (b = l[a].getNearObject(v), b) {
7454
+ if (b = l[a].getNearObject(y), b) {
7450
7455
  var w = b.__parent;
7451
7456
  w && this._removeLayer(b, !1);
7452
7457
  var M = new this._markerCluster(this, a, b, s);
@@ -7457,7 +7462,7 @@ var qn = { exports: {} };
7457
7462
  w._addChild(C), this._removeFromGridUnclustered(b, a);
7458
7463
  return;
7459
7464
  }
7460
- l[a].addObject(s, v);
7465
+ l[a].addObject(s, y);
7461
7466
  }
7462
7467
  this._topClusterLevel._addChild(s), s.__parent = this._topClusterLevel;
7463
7468
  },
@@ -7577,11 +7582,11 @@ var qn = { exports: {} };
7577
7582
  this._map._mapPane.className += " leaflet-cluster-anim", this._inZoomAnimation++;
7578
7583
  },
7579
7584
  _animationZoomIn: function(s, a) {
7580
- var h = this._getExpandedVisibleBounds(), l = this._featureGroup, p = Math.floor(this._map.getMinZoom()), v;
7585
+ var h = this._getExpandedVisibleBounds(), l = this._featureGroup, p = Math.floor(this._map.getMinZoom()), y;
7581
7586
  this._ignoreMove = !0, this._topClusterLevel._recursively(h, s, p, function(_) {
7582
7587
  var b = _._latlng, w = _._markers, M;
7583
- for (h.contains(b) || (b = null), _._isSingleParent() && s + 1 === a ? (l.removeLayer(_), _._recursivelyAddChildrenToMap(null, a, h)) : (_.clusterHide(), _._recursivelyAddChildrenToMap(b, a, h)), v = w.length - 1; v >= 0; v--)
7584
- M = w[v], h.contains(M._latlng) || l.removeLayer(M);
7588
+ for (h.contains(b) || (b = null), _._isSingleParent() && s + 1 === a ? (l.removeLayer(_), _._recursivelyAddChildrenToMap(null, a, h)) : (_.clusterHide(), _._recursivelyAddChildrenToMap(b, a, h)), y = w.length - 1; y >= 0; y--)
7589
+ M = w[y], h.contains(M._latlng) || l.removeLayer(M);
7585
7590
  }), this._forceLayout(), this._topClusterLevel._recursivelyBecomeVisible(h, a), l.eachLayer(function(_) {
7586
7591
  !(_ instanceof L.MarkerCluster) && _._icon && _.clusterShow();
7587
7592
  }), this._topClusterLevel._recursively(h, s, a, function(_) {
@@ -7606,7 +7611,7 @@ var qn = { exports: {} };
7606
7611
  _animationZoomOutSingle: function(s, a, h) {
7607
7612
  var l = this._getExpandedVisibleBounds(), p = Math.floor(this._map.getMinZoom());
7608
7613
  s._recursivelyAnimateChildrenInAndAddSelfToMap(l, p, a + 1, h);
7609
- var v = this;
7614
+ var y = this;
7610
7615
  this._forceLayout(), s._recursivelyBecomeVisible(l, h), this._enqueue(function() {
7611
7616
  if (s._childCount === 1) {
7612
7617
  var _ = s._markers[0];
@@ -7615,7 +7620,7 @@ var qn = { exports: {} };
7615
7620
  s._recursively(l, h, p, function(b) {
7616
7621
  b._recursivelyRemoveChildrenFromMap(l, p, a + 1);
7617
7622
  });
7618
- v._animationEnd();
7623
+ y._animationEnd();
7619
7624
  });
7620
7625
  },
7621
7626
  _animationEnd: function() {
@@ -7653,14 +7658,14 @@ var qn = { exports: {} };
7653
7658
  },
7654
7659
  //Zoom to the minimum of showing all of the child markers, or the extents of this cluster
7655
7660
  zoomToBounds: function(s) {
7656
- for (var a = this._childClusters.slice(), h = this._group._map, l = h.getBoundsZoom(this._bounds), p = this._zoom + 1, v = h.getZoom(), _; a.length > 0 && l > p; ) {
7661
+ for (var a = this._childClusters.slice(), h = this._group._map, l = h.getBoundsZoom(this._bounds), p = this._zoom + 1, y = h.getZoom(), _; a.length > 0 && l > p; ) {
7657
7662
  p++;
7658
7663
  var b = [];
7659
7664
  for (_ = 0; _ < a.length; _++)
7660
7665
  b = b.concat(a[_]._childClusters);
7661
7666
  a = b;
7662
7667
  }
7663
- l > p ? this._group._map.setView(this._latlng, p) : l <= v ? this._group._map.setView(this._latlng, v + 1) : this._group._map.fitBounds(this._bounds, s);
7668
+ l > p ? this._group._map.setView(this._latlng, p) : l <= y ? this._group._map.setView(this._latlng, y + 1) : this._group._map.fitBounds(this._bounds, s);
7664
7669
  },
7665
7670
  getBounds: function() {
7666
7671
  var s = new L.LatLngBounds();
@@ -7698,12 +7703,12 @@ var qn = { exports: {} };
7698
7703
  s._southWest && (s._southWest.lat = 1 / 0, s._southWest.lng = 1 / 0), s._northEast && (s._northEast.lat = -1 / 0, s._northEast.lng = -1 / 0);
7699
7704
  },
7700
7705
  _recalculateBounds: function() {
7701
- var s = this._markers, a = this._childClusters, h = 0, l = 0, p = this._childCount, v, _, b, w;
7706
+ var s = this._markers, a = this._childClusters, h = 0, l = 0, p = this._childCount, y, _, b, w;
7702
7707
  if (p !== 0) {
7703
- for (this._resetBounds(), v = 0; v < s.length; v++)
7704
- b = s[v]._latlng, this._bounds.extend(b), h += b.lat, l += b.lng;
7705
- for (v = 0; v < a.length; v++)
7706
- _ = a[v], _._boundsNeedUpdate && _._recalculateBounds(), this._bounds.extend(_._bounds), b = _._wLatLng, w = _._childCount, h += b.lat * w, l += b.lng * w;
7708
+ for (this._resetBounds(), y = 0; y < s.length; y++)
7709
+ b = s[y]._latlng, this._bounds.extend(b), h += b.lat, l += b.lng;
7710
+ for (y = 0; y < a.length; y++)
7711
+ _ = a[y], _._boundsNeedUpdate && _._recalculateBounds(), this._bounds.extend(_._bounds), b = _._wLatLng, w = _._childCount, h += b.lat * w, l += b.lng * w;
7707
7712
  this._latlng = this._wLatLng = new L.LatLng(h / p, l / p), this._boundsNeedUpdate = !1;
7708
7713
  }
7709
7714
  },
@@ -7717,14 +7722,14 @@ var qn = { exports: {} };
7717
7722
  this._group._map.getMinZoom(),
7718
7723
  h - 1,
7719
7724
  function(l) {
7720
- var p = l._markers, v, _;
7721
- for (v = p.length - 1; v >= 0; v--)
7722
- _ = p[v], _._icon && (_._setPos(a), _.clusterHide());
7725
+ var p = l._markers, y, _;
7726
+ for (y = p.length - 1; y >= 0; y--)
7727
+ _ = p[y], _._icon && (_._setPos(a), _.clusterHide());
7723
7728
  },
7724
7729
  function(l) {
7725
- var p = l._childClusters, v, _;
7726
- for (v = p.length - 1; v >= 0; v--)
7727
- _ = p[v], _._icon && (_._setPos(a), _.clusterHide());
7730
+ var p = l._childClusters, y, _;
7731
+ for (y = p.length - 1; y >= 0; y--)
7732
+ _ = p[y], _._icon && (_._setPos(a), _.clusterHide());
7728
7733
  }
7729
7734
  );
7730
7735
  },
@@ -7751,8 +7756,8 @@ var qn = { exports: {} };
7751
7756
  function(l) {
7752
7757
  if (a !== l._zoom)
7753
7758
  for (var p = l._markers.length - 1; p >= 0; p--) {
7754
- var v = l._markers[p];
7755
- h.contains(v._latlng) && (s && (v._backupLatlng = v.getLatLng(), v.setLatLng(s), v.clusterHide && v.clusterHide()), l._group._featureGroup.addLayer(v));
7759
+ var y = l._markers[p];
7760
+ h.contains(y._latlng) && (s && (y._backupLatlng = y.getLatLng(), y.setLatLng(s), y.clusterHide && y.clusterHide()), l._group._featureGroup.addLayer(y));
7756
7761
  }
7757
7762
  },
7758
7763
  function(l) {
@@ -7777,18 +7782,18 @@ var qn = { exports: {} };
7777
7782
  },
7778
7783
  //exceptBounds: If set, don't remove any markers/clusters in it
7779
7784
  _recursivelyRemoveChildrenFromMap: function(s, a, h, l) {
7780
- var p, v;
7785
+ var p, y;
7781
7786
  this._recursively(
7782
7787
  s,
7783
7788
  a - 1,
7784
7789
  h - 1,
7785
7790
  function(_) {
7786
- for (v = _._markers.length - 1; v >= 0; v--)
7787
- p = _._markers[v], (!l || !l.contains(p._latlng)) && (_._group._featureGroup.removeLayer(p), p.clusterShow && p.clusterShow());
7791
+ for (y = _._markers.length - 1; y >= 0; y--)
7792
+ p = _._markers[y], (!l || !l.contains(p._latlng)) && (_._group._featureGroup.removeLayer(p), p.clusterShow && p.clusterShow());
7788
7793
  },
7789
7794
  function(_) {
7790
- for (v = _._childClusters.length - 1; v >= 0; v--)
7791
- p = _._childClusters[v], (!l || !l.contains(p._latlng)) && (_._group._featureGroup.removeLayer(p), p.clusterShow && p.clusterShow());
7795
+ for (y = _._childClusters.length - 1; y >= 0; y--)
7796
+ p = _._childClusters[y], (!l || !l.contains(p._latlng)) && (_._group._featureGroup.removeLayer(p), p.clusterShow && p.clusterShow());
7792
7797
  }
7793
7798
  );
7794
7799
  },
@@ -7799,10 +7804,10 @@ var qn = { exports: {} };
7799
7804
  // runAtEveryLevel: function that takes an L.MarkerCluster as an argument that should be applied on every level
7800
7805
  // runAtBottomLevel: function that takes an L.MarkerCluster as an argument that should be applied at only the bottom level
7801
7806
  _recursively: function(s, a, h, l, p) {
7802
- var v = this._childClusters, _ = this._zoom, b, w;
7807
+ var y = this._childClusters, _ = this._zoom, b, w;
7803
7808
  if (a <= _ && (l && l(this), p && _ === h && p(this)), _ < a || _ < h)
7804
- for (b = v.length - 1; b >= 0; b--)
7805
- w = v[b], w._boundsNeedUpdate && w._recalculateBounds(), s.intersects(w._bounds) && w._recursively(s, a, h, l, p);
7809
+ for (b = y.length - 1; b >= 0; b--)
7810
+ w = y[b], w._boundsNeedUpdate && w._recalculateBounds(), s.intersects(w._bounds) && w._recursively(s, a, h, l, p);
7806
7811
  },
7807
7812
  //Returns true if we are the parent of only one cluster and that cluster is the same as us
7808
7813
  _isSingleParent: function() {
@@ -7821,7 +7826,7 @@ var qn = { exports: {} };
7821
7826
  this._cellSize = s, this._sqCellSize = s * s, this._grid = {}, this._objectPoint = {};
7822
7827
  }, L.DistanceGrid.prototype = {
7823
7828
  addObject: function(s, a) {
7824
- var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid, v = p[l] = p[l] || {}, _ = v[h] = v[h] || [], b = L.Util.stamp(s);
7829
+ var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid, y = p[l] = p[l] || {}, _ = y[h] = y[h] || [], b = L.Util.stamp(s);
7825
7830
  this._objectPoint[b] = a, _.push(s);
7826
7831
  },
7827
7832
  updateObject: function(s, a) {
@@ -7829,28 +7834,28 @@ var qn = { exports: {} };
7829
7834
  },
7830
7835
  //Returns true if the object was found
7831
7836
  removeObject: function(s, a) {
7832
- var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid, v = p[l] = p[l] || {}, _ = v[h] = v[h] || [], b, w;
7837
+ var h = this._getCoord(a.x), l = this._getCoord(a.y), p = this._grid, y = p[l] = p[l] || {}, _ = y[h] = y[h] || [], b, w;
7833
7838
  for (delete this._objectPoint[L.Util.stamp(s)], b = 0, w = _.length; b < w; b++)
7834
7839
  if (_[b] === s)
7835
- return _.splice(b, 1), w === 1 && delete v[h], !0;
7840
+ return _.splice(b, 1), w === 1 && delete y[h], !0;
7836
7841
  },
7837
7842
  eachObject: function(s, a) {
7838
- var h, l, p, v, _, b, w, M = this._grid;
7843
+ var h, l, p, y, _, b, w, M = this._grid;
7839
7844
  for (h in M) {
7840
7845
  _ = M[h];
7841
7846
  for (l in _)
7842
- for (b = _[l], p = 0, v = b.length; p < v; p++)
7843
- w = s.call(a, b[p]), w && (p--, v--);
7847
+ for (b = _[l], p = 0, y = b.length; p < y; p++)
7848
+ w = s.call(a, b[p]), w && (p--, y--);
7844
7849
  }
7845
7850
  },
7846
7851
  getNearObject: function(s) {
7847
- var a = this._getCoord(s.x), h = this._getCoord(s.y), l, p, v, _, b, w, M, C, H = this._objectPoint, Z = this._sqCellSize, U = null;
7852
+ var a = this._getCoord(s.x), h = this._getCoord(s.y), l, p, y, _, b, w, M, C, H = this._objectPoint, A = this._sqCellSize, U = null;
7848
7853
  for (l = h - 1; l <= h + 1; l++)
7849
7854
  if (_ = this._grid[l], _) {
7850
7855
  for (p = a - 1; p <= a + 1; p++)
7851
7856
  if (b = _[p], b)
7852
- for (v = 0, w = b.length; v < w; v++)
7853
- M = b[v], C = this._sqDist(H[L.Util.stamp(M)], s), (C < Z || C <= Z && U === null) && (Z = C, U = M);
7857
+ for (y = 0, w = b.length; y < w; y++)
7858
+ M = b[y], C = this._sqDist(H[L.Util.stamp(M)], s), (C < A || C <= A && U === null) && (A = C, U = M);
7854
7859
  }
7855
7860
  return U;
7856
7861
  },
@@ -7882,9 +7887,9 @@ var qn = { exports: {} };
7882
7887
  * in consideration for the hull.
7883
7888
  */
7884
7889
  findMostDistantPointFromBaseLine: function(s, a) {
7885
- var h = 0, l = null, p = [], v, _, b;
7886
- for (v = a.length - 1; v >= 0; v--) {
7887
- if (_ = a[v], b = this.getDistant(_, s), b > 0)
7890
+ var h = 0, l = null, p = [], y, _, b;
7891
+ for (y = a.length - 1; y >= 0; y--) {
7892
+ if (_ = a[y], b = this.getDistant(_, s), b > 0)
7888
7893
  p.push(_);
7889
7894
  else
7890
7895
  continue;
@@ -7915,12 +7920,12 @@ var qn = { exports: {} };
7915
7920
  * @returns {Array}
7916
7921
  */
7917
7922
  getConvexHull: function(s) {
7918
- var a = !1, h = !1, l = !1, p = !1, v = null, _ = null, b = null, w = null, M = null, C = null, H;
7923
+ var a = !1, h = !1, l = !1, p = !1, y = null, _ = null, b = null, w = null, M = null, C = null, H;
7919
7924
  for (H = s.length - 1; H >= 0; H--) {
7920
- var Z = s[H];
7921
- (a === !1 || Z.lat > a) && (v = Z, a = Z.lat), (h === !1 || Z.lat < h) && (_ = Z, h = Z.lat), (l === !1 || Z.lng > l) && (b = Z, l = Z.lng), (p === !1 || Z.lng < p) && (w = Z, p = Z.lng);
7925
+ var A = s[H];
7926
+ (a === !1 || A.lat > a) && (y = A, a = A.lat), (h === !1 || A.lat < h) && (_ = A, h = A.lat), (l === !1 || A.lng > l) && (b = A, l = A.lng), (p === !1 || A.lng < p) && (w = A, p = A.lng);
7922
7927
  }
7923
- h !== a ? (C = _, M = v) : (C = w, M = b);
7928
+ h !== a ? (C = _, M = y) : (C = w, M = b);
7924
7929
  var U = [].concat(
7925
7930
  this.buildConvexHull([C, M], s),
7926
7931
  this.buildConvexHull([M, C], s)
@@ -7957,21 +7962,21 @@ var qn = { exports: {} };
7957
7962
  this._group._inZoomAnimation || (this._animationUnspiderfy(s), this._group._spiderfied = null);
7958
7963
  },
7959
7964
  _generatePointsCircle: function(s, a) {
7960
- var h = this._group.options.spiderfyDistanceMultiplier * this._circleFootSeparation * (2 + s), l = h / this._2PI, p = this._2PI / s, v = [], _, b;
7961
- for (l = Math.max(l, 35), v.length = s, _ = 0; _ < s; _++)
7962
- b = this._circleStartAngle + _ * p, v[_] = new L.Point(a.x + l * Math.cos(b), a.y + l * Math.sin(b))._round();
7963
- return v;
7965
+ var h = this._group.options.spiderfyDistanceMultiplier * this._circleFootSeparation * (2 + s), l = h / this._2PI, p = this._2PI / s, y = [], _, b;
7966
+ for (l = Math.max(l, 35), y.length = s, _ = 0; _ < s; _++)
7967
+ b = this._circleStartAngle + _ * p, y[_] = new L.Point(a.x + l * Math.cos(b), a.y + l * Math.sin(b))._round();
7968
+ return y;
7964
7969
  },
7965
7970
  _generatePointsSpiral: function(s, a) {
7966
- var h = this._group.options.spiderfyDistanceMultiplier, l = h * this._spiralLengthStart, p = h * this._spiralFootSeparation, v = h * this._spiralLengthFactor * this._2PI, _ = 0, b = [], w;
7971
+ var h = this._group.options.spiderfyDistanceMultiplier, l = h * this._spiralLengthStart, p = h * this._spiralFootSeparation, y = h * this._spiralLengthFactor * this._2PI, _ = 0, b = [], w;
7967
7972
  for (b.length = s, w = s; w >= 0; w--)
7968
- w < s && (b[w] = new L.Point(a.x + l * Math.cos(_), a.y + l * Math.sin(_))._round()), _ += p / l + w * 5e-4, l += v / _;
7973
+ w < s && (b[w] = new L.Point(a.x + l * Math.cos(_), a.y + l * Math.sin(_))._round()), _ += p / l + w * 5e-4, l += y / _;
7969
7974
  return b;
7970
7975
  },
7971
7976
  _noanimationUnspiderfy: function() {
7972
- var s = this._group, a = s._map, h = s._featureGroup, l = this.getAllChildMarkers(null, !0), p, v;
7973
- for (s._ignoreMove = !0, this.setOpacity(1), v = l.length - 1; v >= 0; v--)
7974
- p = l[v], h.removeLayer(p), p._preSpiderfyLatlng && (p.setLatLng(p._preSpiderfyLatlng), delete p._preSpiderfyLatlng), p.setZIndexOffset && p.setZIndexOffset(0), p._spiderLeg && (a.removeLayer(p._spiderLeg), delete p._spiderLeg);
7977
+ var s = this._group, a = s._map, h = s._featureGroup, l = this.getAllChildMarkers(null, !0), p, y;
7978
+ for (s._ignoreMove = !0, this.setOpacity(1), y = l.length - 1; y >= 0; y--)
7979
+ p = l[y], h.removeLayer(p), p._preSpiderfyLatlng && (p.setLatLng(p._preSpiderfyLatlng), delete p._preSpiderfyLatlng), p.setZIndexOffset && p.setZIndexOffset(0), p._spiderLeg && (a.removeLayer(p._spiderLeg), delete p._spiderLeg);
7975
7980
  s.fire("unspiderfied", {
7976
7981
  cluster: this,
7977
7982
  markers: l
@@ -7979,9 +7984,9 @@ var qn = { exports: {} };
7979
7984
  }
7980
7985
  }), L.MarkerClusterNonAnimated = L.MarkerCluster.extend({
7981
7986
  _animationSpiderfy: function(s, a) {
7982
- var h = this._group, l = h._map, p = h._featureGroup, v = this._group.options.spiderLegPolylineOptions, _, b, w, M;
7987
+ var h = this._group, l = h._map, p = h._featureGroup, y = this._group.options.spiderLegPolylineOptions, _, b, w, M;
7983
7988
  for (h._ignoreMove = !0, _ = 0; _ < s.length; _++)
7984
- M = l.layerPointToLatLng(a[_]), b = s[_], w = new L.Polyline([this._latlng, M], v), l.addLayer(w), b._spiderLeg = w, b._preSpiderfyLatlng = b._latlng, b.setLatLng(M), b.setZIndexOffset && b.setZIndexOffset(1e6), p.addLayer(b);
7989
+ M = l.layerPointToLatLng(a[_]), b = s[_], w = new L.Polyline([this._latlng, M], y), l.addLayer(w), b._spiderLeg = w, b._preSpiderfyLatlng = b._latlng, b.setLatLng(M), b.setZIndexOffset && b.setZIndexOffset(1e6), p.addLayer(b);
7985
7990
  this.setOpacity(0.3), h._ignoreMove = !1, h.fire("spiderfied", {
7986
7991
  cluster: this,
7987
7992
  markers: s
@@ -7992,11 +7997,11 @@ var qn = { exports: {} };
7992
7997
  }
7993
7998
  }), L.MarkerCluster.include({
7994
7999
  _animationSpiderfy: function(s, a) {
7995
- var h = this, l = this._group, p = l._map, v = l._featureGroup, _ = this._latlng, b = p.latLngToLayerPoint(_), w = L.Path.SVG, M = L.extend({}, this._group.options.spiderLegPolylineOptions), C = M.opacity, H, Z, U, W, bt, at;
8000
+ var h = this, l = this._group, p = l._map, y = l._featureGroup, _ = this._latlng, b = p.latLngToLayerPoint(_), w = L.Path.SVG, M = L.extend({}, this._group.options.spiderLegPolylineOptions), C = M.opacity, H, A, U, W, bt, at;
7996
8001
  for (C === void 0 && (C = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity), w ? (M.opacity = 0, M.className = (M.className || "") + " leaflet-cluster-spider-leg") : M.opacity = C, l._ignoreMove = !0, H = 0; H < s.length; H++)
7997
- Z = s[H], at = p.layerPointToLatLng(a[H]), U = new L.Polyline([_, at], M), p.addLayer(U), Z._spiderLeg = U, w && (W = U._path, bt = W.getTotalLength() + 0.1, W.style.strokeDasharray = bt, W.style.strokeDashoffset = bt), Z.setZIndexOffset && Z.setZIndexOffset(1e6), Z.clusterHide && Z.clusterHide(), v.addLayer(Z), Z._setPos && Z._setPos(b);
8002
+ A = s[H], at = p.layerPointToLatLng(a[H]), U = new L.Polyline([_, at], M), p.addLayer(U), A._spiderLeg = U, w && (W = U._path, bt = W.getTotalLength() + 0.1, W.style.strokeDasharray = bt, W.style.strokeDashoffset = bt), A.setZIndexOffset && A.setZIndexOffset(1e6), A.clusterHide && A.clusterHide(), y.addLayer(A), A._setPos && A._setPos(b);
7998
8003
  for (l._forceLayout(), l._animationStart(), H = s.length - 1; H >= 0; H--)
7999
- at = p.layerPointToLatLng(a[H]), Z = s[H], Z._preSpiderfyLatlng = Z._latlng, Z.setLatLng(at), Z.clusterShow && Z.clusterShow(), w && (U = Z._spiderLeg, W = U._path, W.style.strokeDashoffset = 0, U.setStyle({ opacity: C }));
8004
+ at = p.layerPointToLatLng(a[H]), A = s[H], A._preSpiderfyLatlng = A._latlng, A.setLatLng(at), A.clusterShow && A.clusterShow(), w && (U = A._spiderLeg, W = U._path, W.style.strokeDashoffset = 0, U.setStyle({ opacity: C }));
8000
8005
  this.setOpacity(0.3), l._ignoreMove = !1, setTimeout(function() {
8001
8006
  l._animationEnd(), l.fire("spiderfied", {
8002
8007
  cluster: h,
@@ -8005,9 +8010,9 @@ var qn = { exports: {} };
8005
8010
  }, 200);
8006
8011
  },
8007
8012
  _animationUnspiderfy: function(s) {
8008
- var a = this, h = this._group, l = h._map, p = h._featureGroup, v = s ? l._latLngToNewLayerPoint(this._latlng, s.zoom, s.center) : l.latLngToLayerPoint(this._latlng), _ = this.getAllChildMarkers(null, !0), b = L.Path.SVG, w, M, C, H, Z, U;
8013
+ var a = this, h = this._group, l = h._map, p = h._featureGroup, y = s ? l._latLngToNewLayerPoint(this._latlng, s.zoom, s.center) : l.latLngToLayerPoint(this._latlng), _ = this.getAllChildMarkers(null, !0), b = L.Path.SVG, w, M, C, H, A, U;
8009
8014
  for (h._ignoreMove = !0, h._animationStart(), this.setOpacity(1), M = _.length - 1; M >= 0; M--)
8010
- w = _[M], w._preSpiderfyLatlng && (w.closePopup(), w.setLatLng(w._preSpiderfyLatlng), delete w._preSpiderfyLatlng, U = !0, w._setPos && (w._setPos(v), U = !1), w.clusterHide && (w.clusterHide(), U = !1), U && p.removeLayer(w), b && (C = w._spiderLeg, H = C._path, Z = H.getTotalLength() + 0.1, H.style.strokeDashoffset = Z, C.setStyle({ opacity: 0 })));
8015
+ w = _[M], w._preSpiderfyLatlng && (w.closePopup(), w.setLatLng(w._preSpiderfyLatlng), delete w._preSpiderfyLatlng, U = !0, w._setPos && (w._setPos(y), U = !1), w.clusterHide && (w.clusterHide(), U = !1), U && p.removeLayer(w), b && (C = w._spiderLeg, H = C._path, A = H.getTotalLength() + 0.1, H.style.strokeDashoffset = A, C.setStyle({ opacity: 0 })));
8011
8016
  h._ignoreMove = !1, setTimeout(function() {
8012
8017
  var W = 0;
8013
8018
  for (M = _.length - 1; M >= 0; M--)
@@ -8099,7 +8104,7 @@ var qn = { exports: {} };
8099
8104
  var h = this.options.icon;
8100
8105
  return L.setOptions(h, s), this.setIcon(h), a && this.__parent && this.__parent._group.refreshClusters(this), this;
8101
8106
  }
8102
- }), c.MarkerClusterGroup = y, c.MarkerCluster = x, Object.defineProperty(c, "__esModule", { value: !0 });
8107
+ }), c.MarkerClusterGroup = g, c.MarkerCluster = x, Object.defineProperty(c, "__esModule", { value: !0 });
8103
8108
  });
8104
8109
  })(qn, qn.exports);
8105
8110
  class no extends zt {
@@ -8112,7 +8117,7 @@ class no extends zt {
8112
8117
  showCoverageOnHover: this.hasAttribute("show-coverage-on-hover"),
8113
8118
  iconCreateFunction: this._createIconCreateFunction(c)
8114
8119
  });
8115
- const y = new CustomEvent(et, {
8120
+ const g = new CustomEvent(et, {
8116
8121
  cancelable: !0,
8117
8122
  bubbles: !0,
8118
8123
  detail: {
@@ -8120,15 +8125,15 @@ class no extends zt {
8120
8125
  name: d
8121
8126
  }
8122
8127
  });
8123
- this.dispatchEvent(y), this.addEventListener(et, (x) => {
8128
+ this.dispatchEvent(g), this.addEventListener(et, (x) => {
8124
8129
  x.stopPropagation(), this.layer.addLayer(x.detail.layer);
8125
8130
  });
8126
8131
  }
8127
8132
  _createIconCreateFunction(d) {
8128
8133
  if (d) {
8129
- let { size: c, content: y, className: x } = JSON.parse(d);
8134
+ let { size: c, content: g, className: x } = JSON.parse(d);
8130
8135
  return (s) => {
8131
- const a = this._callClusterFunction(s, c), h = this._callClusterFunction(s, y);
8136
+ const a = this._callClusterFunction(s, c), h = this._callClusterFunction(s, g);
8132
8137
  return L.divIcon({
8133
8138
  html: h,
8134
8139
  className: x,
@@ -8146,7 +8151,7 @@ Lt(no, "observedAttributes", [
8146
8151
  "icon-options"
8147
8152
  ]);
8148
8153
  const lr = (() => {
8149
- customElements.define("l-map", bi), customElements.define("l-pane", er), customElements.define("l-control-layers", As), customElements.define("l-base-layers", Zs), customElements.define("l-overlay-layers", Js), customElements.define("l-layer-group", Is), customElements.define("l-tile-layer", Ci), customElements.define("l-tile-layer-wms", Ys), customElements.define("l-marker-cluster-group", no), customElements.define("l-marker", Qn), customElements.define("l-popup", Ks), customElements.define("l-lat-lng-bounds", to), customElements.define("l-image-overlay", eo), customElements.define("l-video-overlay", Xs), customElements.define("l-geojson", $s), customElements.define("l-icon", Pi), customElements.define("l-circle", ke(G.circle, "circle")), customElements.define("l-polyline", ke(G.polyline, "polyline")), customElements.define("l-polygon", ke(G.polygon, "polygon")), customElements.define("l-rectangle", ke(G.rectangle, "rectangle")), customElements.define("l-tooltip", io), customElements.define("l-div-icon", tr);
8154
+ customElements.define("l-map", bi), customElements.define("l-pane", er), customElements.define("l-control-layers", Zs), customElements.define("l-base-layers", As), customElements.define("l-overlay-layers", Js), customElements.define("l-layer-group", Is), customElements.define("l-tile-layer", Ci), customElements.define("l-tile-layer-wms", Ys), customElements.define("l-marker-cluster-group", no), customElements.define("l-marker", Qn), customElements.define("l-popup", Ks), customElements.define("l-lat-lng-bounds", to), customElements.define("l-image-overlay", eo), customElements.define("l-video-overlay", Xs), customElements.define("l-geojson", $s), customElements.define("l-icon", Pi), customElements.define("l-circle", ke(G.circle, "circle")), customElements.define("l-polyline", ke(G.polyline, "polyline")), customElements.define("l-polygon", ke(G.polygon, "polygon")), customElements.define("l-rectangle", ke(G.rectangle, "rectangle")), customElements.define("l-tooltip", io), customElements.define("l-div-icon", tr);
8150
8155
  })();
8151
8156
  export {
8152
8157
  lr as default