leaflet-html 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Os = Object.defineProperty;
2
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 vt = (g, d, c) => zs(g, typeof d != "symbol" ? d + "" : d, c);
4
- var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, vi = { exports: {} };
3
+ var Lt = (g, d, c) => zs(g, typeof d != "symbol" ? d + "" : d, c);
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
@@ -80,7 +80,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
80
80
  return (!e || e.indexOf("?") === -1 ? "?" : "&") + n.join("&");
81
81
  }
82
82
  var Z = /\{ *([\w_ -]+) *\}/g;
83
- function G(t, e) {
83
+ function U(t, e) {
84
84
  return t.replace(Z, function(i, n) {
85
85
  var o = e[n];
86
86
  if (o === void 0)
@@ -88,35 +88,35 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
88
88
  return typeof o == "function" && (o = o(e)), o;
89
89
  });
90
90
  }
91
- var U = Array.isArray || function(t) {
91
+ var W = Array.isArray || function(t) {
92
92
  return Object.prototype.toString.call(t) === "[object Array]";
93
93
  };
94
- function yt(t, e) {
94
+ function bt(t, e) {
95
95
  for (var i = 0; i < t.length; i++)
96
96
  if (t[i] === e)
97
97
  return i;
98
98
  return -1;
99
99
  }
100
- var rt = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
100
+ var at = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
101
101
  function jt(t) {
102
102
  return window["webkit" + t] || window["moz" + t] || window["ms" + t];
103
103
  }
104
104
  var Mi = 0;
105
- function ki(t) {
105
+ function Si(t) {
106
106
  var e = +/* @__PURE__ */ new Date(), i = Math.max(0, 16 - (e - Mi));
107
107
  return Mi = e + i, window.setTimeout(t, i);
108
108
  }
109
- var Be = window.requestAnimationFrame || jt("RequestAnimationFrame") || ki, Si = window.cancelAnimationFrame || jt("CancelAnimationFrame") || jt("CancelRequestAnimationFrame") || function(t) {
109
+ var Ne = window.requestAnimationFrame || jt("RequestAnimationFrame") || Si, ki = window.cancelAnimationFrame || jt("CancelAnimationFrame") || jt("CancelRequestAnimationFrame") || function(t) {
110
110
  window.clearTimeout(t);
111
111
  };
112
- function it(t, e, i) {
113
- if (i && Be === ki)
112
+ function nt(t, e, i) {
113
+ if (i && Ne === Si)
114
114
  t.call(e);
115
115
  else
116
- return Be.call(window, a(t, e));
116
+ return Ne.call(window, a(t, e));
117
117
  }
118
- function ht(t) {
119
- t && Si.call(window, t);
118
+ function lt(t) {
119
+ t && ki.call(window, t);
120
120
  }
121
121
  var oo = {
122
122
  __proto__: null,
@@ -135,18 +135,18 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
135
135
  splitWords: M,
136
136
  setOptions: C,
137
137
  getParamString: H,
138
- template: G,
139
- isArray: U,
140
- indexOf: yt,
141
- emptyImageUrl: rt,
142
- requestFn: Be,
143
- cancelFn: Si,
144
- requestAnimFrame: it,
145
- cancelAnimFrame: ht
138
+ template: U,
139
+ isArray: W,
140
+ indexOf: bt,
141
+ emptyImageUrl: at,
142
+ requestFn: Ne,
143
+ cancelFn: ki,
144
+ requestAnimFrame: nt,
145
+ cancelAnimFrame: lt
146
146
  };
147
- function Lt() {
147
+ function Pt() {
148
148
  }
149
- Lt.extend = function(t) {
149
+ Pt.extend = function(t) {
150
150
  var e = function() {
151
151
  C(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
152
152
  }, i = e.__super__ = this.prototype, n = s(i);
@@ -160,12 +160,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
160
160
  n._initHooks[r].call(this);
161
161
  }
162
162
  }, e;
163
- }, Lt.include = function(t) {
163
+ }, Pt.include = function(t) {
164
164
  var e = this.prototype.options;
165
165
  return x(this.prototype, t), t.options && (this.prototype.options = e, this.mergeOptions(t.options)), this;
166
- }, Lt.mergeOptions = function(t) {
166
+ }, Pt.mergeOptions = function(t) {
167
167
  return x(this.prototype.options, t), this;
168
- }, Lt.addInitHook = function(t) {
168
+ }, Pt.addInitHook = function(t) {
169
169
  var e = Array.prototype.slice.call(arguments, 1), i = typeof t == "function" ? t : function() {
170
170
  this[t].apply(this, e);
171
171
  };
@@ -173,12 +173,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
173
173
  };
174
174
  function so(t) {
175
175
  if (!(typeof L > "u" || !L || !L.Mixin)) {
176
- t = U(t) ? t : [t];
176
+ t = W(t) ? t : [t];
177
177
  for (var e = 0; e < t.length; e++)
178
178
  t[e] === L.Mixin.Events && console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.", new Error().stack);
179
179
  }
180
180
  }
181
- var at = {
181
+ var ht = {
182
182
  /* @method on(type: String, fn: Function, context?: Object): this
183
183
  * Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).
184
184
  *
@@ -341,8 +341,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
341
341
  }, t), !0);
342
342
  }
343
343
  };
344
- at.addEventListener = at.on, at.removeEventListener = at.clearAllEventListeners = at.off, at.addOneTimeEventListener = at.once, at.fireEvent = at.fire, at.hasEventListeners = at.listens;
345
- var Jt = Lt.extend(at);
344
+ ht.addEventListener = ht.on, ht.removeEventListener = ht.clearAllEventListeners = ht.off, ht.addOneTimeEventListener = ht.once, ht.fireEvent = ht.fire, ht.hasEventListeners = ht.listens;
345
+ var Jt = Pt.extend(ht);
346
346
  function O(t, e, i) {
347
347
  this.x = i ? Math.round(t) : t, this.y = i ? Math.round(e) : e;
348
348
  }
@@ -457,14 +457,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
457
457
  }
458
458
  };
459
459
  function E(t, e, i) {
460
- return t instanceof O ? t : U(t) ? new O(t[0], t[1]) : t == null ? t : typeof t == "object" && "x" in t && "y" in t ? new O(t.x, t.y) : new O(t, e, i);
460
+ return t instanceof O ? t : W(t) ? new O(t[0], t[1]) : t == null ? t : typeof t == "object" && "x" in t && "y" in t ? new O(t.x, t.y) : new O(t, e, i);
461
461
  }
462
- function W(t, e) {
462
+ function V(t, e) {
463
463
  if (t)
464
464
  for (var i = e ? [t, e] : t, n = 0, o = i.length; n < o; n++)
465
465
  this.extend(i[n]);
466
466
  }
467
- W.prototype = {
467
+ V.prototype = {
468
468
  // @method extend(point: Point): this
469
469
  // Extends the bounds to contain the given point.
470
470
  // @alternative
@@ -476,7 +476,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
476
476
  return this;
477
477
  if (t instanceof O || typeof t[0] == "number" || "x" in t)
478
478
  e = i = E(t);
479
- else if (t = nt(t), e = t.min, i = t.max, !e || !i)
479
+ else if (t = ot(t), e = t.min, i = t.max, !e || !i)
480
480
  return this;
481
481
  return !this.min && !this.max ? (this.min = e.clone(), this.max = i.clone()) : (this.min.x = Math.min(e.x, this.min.x), this.max.x = Math.max(i.x, this.max.x), this.min.y = Math.min(e.y, this.min.y), this.max.y = Math.max(i.y, this.max.y)), this;
482
482
  },
@@ -521,13 +521,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
521
521
  // Returns `true` if the rectangle contains the given point.
522
522
  contains: function(t) {
523
523
  var e, i;
524
- return typeof t[0] == "number" || t instanceof O ? t = E(t) : t = nt(t), t instanceof W ? (e = t.min, i = t.max) : e = i = t, e.x >= this.min.x && i.x <= this.max.x && e.y >= this.min.y && i.y <= this.max.y;
524
+ return typeof t[0] == "number" || t instanceof O ? t = E(t) : t = ot(t), t instanceof V ? (e = t.min, i = t.max) : e = i = t, e.x >= this.min.x && i.x <= this.max.x && e.y >= this.min.y && i.y <= this.max.y;
525
525
  },
526
526
  // @method intersects(otherBounds: Bounds): Boolean
527
527
  // Returns `true` if the rectangle intersects the given bounds. Two bounds
528
528
  // intersect if they have at least one point in common.
529
529
  intersects: function(t) {
530
- t = nt(t);
530
+ t = ot(t);
531
531
  var e = this.min, i = this.max, n = t.min, o = t.max, r = o.x >= e.x && n.x <= i.x, u = o.y >= e.y && n.y <= i.y;
532
532
  return r && u;
533
533
  },
@@ -535,7 +535,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
535
535
  // Returns `true` if the rectangle overlaps the given bounds. Two bounds
536
536
  // overlap if their intersection is an area.
537
537
  overlaps: function(t) {
538
- t = nt(t);
538
+ t = ot(t);
539
539
  var e = this.min, i = this.max, n = t.min, o = t.max, r = o.x > e.x && n.x < i.x, u = o.y > e.y && n.y < i.y;
540
540
  return r && u;
541
541
  },
@@ -550,7 +550,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
550
550
  // Negative values will retract the bounds.
551
551
  pad: function(t) {
552
552
  var e = this.min, i = this.max, n = Math.abs(e.x - i.x) * t, o = Math.abs(e.y - i.y) * t;
553
- return nt(
553
+ return ot(
554
554
  E(e.x - n, e.y - o),
555
555
  E(i.x + n, i.y + o)
556
556
  );
@@ -558,18 +558,18 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
558
558
  // @method equals(otherBounds: Bounds): Boolean
559
559
  // Returns `true` if the rectangle is equivalent to the given bounds.
560
560
  equals: function(t) {
561
- return t ? (t = nt(t), this.min.equals(t.getTopLeft()) && this.max.equals(t.getBottomRight())) : !1;
561
+ return t ? (t = ot(t), this.min.equals(t.getTopLeft()) && this.max.equals(t.getBottomRight())) : !1;
562
562
  }
563
563
  };
564
- function nt(t, e) {
565
- return !t || t instanceof W ? t : new W(t, e);
566
- }
567
564
  function ot(t, e) {
565
+ return !t || t instanceof V ? t : new V(t, e);
566
+ }
567
+ function st(t, e) {
568
568
  if (t)
569
569
  for (var i = e ? [t, e] : t, n = 0, o = i.length; n < o; n++)
570
570
  this.extend(i[n]);
571
571
  }
572
- ot.prototype = {
572
+ st.prototype = {
573
573
  // @method extend(latlng: LatLng): this
574
574
  // Extend the bounds to contain the given point
575
575
  // @alternative
@@ -579,7 +579,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
579
579
  var e = this._southWest, i = this._northEast, n, o;
580
580
  if (t instanceof D)
581
581
  n = t, o = t;
582
- else if (t instanceof ot) {
582
+ else if (t instanceof st) {
583
583
  if (n = t._southWest, o = t._northEast, !n || !o)
584
584
  return this;
585
585
  } else
@@ -592,7 +592,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
592
592
  // Negative values will retract the bounds.
593
593
  pad: function(t) {
594
594
  var e = this._southWest, i = this._northEast, n = Math.abs(e.lat - i.lat) * t, o = Math.abs(e.lng - i.lng) * t;
595
- return new ot(
595
+ return new st(
596
596
  new D(e.lat - n, e.lng - o),
597
597
  new D(i.lat + n, i.lng + o)
598
598
  );
@@ -653,7 +653,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
653
653
  contains: function(t) {
654
654
  typeof t[0] == "number" || t instanceof D || "lat" in t ? t = B(t) : t = J(t);
655
655
  var e = this._southWest, i = this._northEast, n, o;
656
- return t instanceof ot ? (n = t.getSouthWest(), o = t.getNorthEast()) : n = o = t, n.lat >= e.lat && o.lat <= i.lat && n.lng >= e.lng && o.lng <= i.lng;
656
+ return t instanceof st ? (n = t.getSouthWest(), o = t.getNorthEast()) : n = o = t, n.lat >= e.lat && o.lat <= i.lat && n.lng >= e.lng && o.lng <= i.lng;
657
657
  },
658
658
  // @method intersects(otherBounds: LatLngBounds): Boolean
659
659
  // Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
@@ -686,7 +686,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
686
686
  }
687
687
  };
688
688
  function J(t, e) {
689
- return t instanceof ot ? t : new ot(t, e);
689
+ return t instanceof st ? t : new st(t, e);
690
690
  }
691
691
  function D(t, e, i) {
692
692
  if (isNaN(t) || isNaN(e))
@@ -714,12 +714,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
714
714
  // @method distanceTo(otherLatLng: LatLng): Number
715
715
  // Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).
716
716
  distanceTo: function(t) {
717
- return Mt.distance(this, B(t));
717
+ return kt.distance(this, B(t));
718
718
  },
719
719
  // @method wrap(): LatLng
720
720
  // Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.
721
721
  wrap: function() {
722
- return Mt.wrapLatLng(this);
722
+ return kt.wrapLatLng(this);
723
723
  },
724
724
  // @method toBounds(sizeInMeters: Number): LatLngBounds
725
725
  // Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
@@ -735,9 +735,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
735
735
  }
736
736
  };
737
737
  function B(t, e, i) {
738
- return t instanceof D ? t : U(t) && typeof t[0] != "object" ? t.length === 3 ? new D(t[0], t[1], t[2]) : t.length === 2 ? new D(t[0], t[1]) : null : t == null ? t : typeof t == "object" && "lat" in t ? new D(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : e === void 0 ? null : new D(t, e, i);
738
+ return t instanceof D ? t : W(t) && typeof t[0] != "object" ? t.length === 3 ? new D(t[0], t[1], t[2]) : t.length === 2 ? new D(t[0], t[1]) : null : t == null ? t : typeof t == "object" && "lat" in t ? new D(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : e === void 0 ? null : new D(t, e, i);
739
739
  }
740
- var wt = {
740
+ var xt = {
741
741
  // @method latLngToPoint(latlng: LatLng, zoom: Number): Point
742
742
  // Projects geographical coordinates into pixel coordinates for a given zoom.
743
743
  latLngToPoint: function(t, e) {
@@ -782,7 +782,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
782
782
  if (this.infinite)
783
783
  return null;
784
784
  var e = this.projection.bounds, i = this.scale(t), n = this.transformation.transform(e.min, i), o = this.transformation.transform(e.max, i);
785
- return new W(n, o);
785
+ return new V(n, o);
786
786
  },
787
787
  // @method distance(latlng1: LatLng, latlng2: LatLng): Number
788
788
  // Returns the distance between two geographical coordinates.
@@ -817,9 +817,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
817
817
  if (n === 0 && o === 0)
818
818
  return t;
819
819
  var r = t.getSouthWest(), u = t.getNorthEast(), f = new D(r.lat - n, r.lng - o), m = new D(u.lat - n, u.lng - o);
820
- return new ot(f, m);
820
+ return new st(f, m);
821
821
  }
822
- }, Mt = x({}, wt, {
822
+ }, kt = x({}, xt, {
823
823
  wrapLng: [-180, 180],
824
824
  // Mean Earth Radius, as recommended for use by
825
825
  // the International Union of Geodesy and Geophysics,
@@ -830,7 +830,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
830
830
  var i = Math.PI / 180, n = t.lat * i, o = e.lat * i, r = Math.sin((e.lat - t.lat) * i / 2), u = Math.sin((e.lng - t.lng) * i / 2), f = r * r + Math.cos(n) * Math.cos(o) * u * u, m = 2 * Math.atan2(Math.sqrt(f), Math.sqrt(1 - f));
831
831
  return this.R * m;
832
832
  }
833
- }), Oi = 6378137, Ne = {
833
+ }), Oi = 6378137, Re = {
834
834
  R: Oi,
835
835
  MAX_LATITUDE: 85.0511287798,
836
836
  project: function(t) {
@@ -849,17 +849,17 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
849
849
  },
850
850
  bounds: function() {
851
851
  var t = Oi * Math.PI;
852
- return new W([-t, -t], [t, t]);
852
+ return new V([-t, -t], [t, t]);
853
853
  }()
854
854
  };
855
- function Re(t, e, i, n) {
856
- if (U(t)) {
855
+ function De(t, e, i, n) {
856
+ if (W(t)) {
857
857
  this._a = t[0], this._b = t[1], this._c = t[2], this._d = t[3];
858
858
  return;
859
859
  }
860
860
  this._a = t, this._b = e, this._c = i, this._d = n;
861
861
  }
862
- Re.prototype = {
862
+ De.prototype = {
863
863
  // @method transform(point: Point, scale?: Number): Point
864
864
  // Returns a transformed point, optionally multiplied by the given scale.
865
865
  // Only accepts actual `L.Point` instances, not arrays.
@@ -881,16 +881,16 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
881
881
  }
882
882
  };
883
883
  function Kt(t, e, i, n) {
884
- return new Re(t, e, i, n);
884
+ return new De(t, e, i, n);
885
885
  }
886
- var De = x({}, Mt, {
886
+ var He = x({}, kt, {
887
887
  code: "EPSG:3857",
888
- projection: Ne,
888
+ projection: Re,
889
889
  transformation: function() {
890
- var t = 0.5 / (Math.PI * Ne.R);
890
+ var t = 0.5 / (Math.PI * Re.R);
891
891
  return Kt(t, 0.5, -t, 0.5);
892
892
  }()
893
- }), ro = x({}, De, {
893
+ }), ro = x({}, He, {
894
894
  code: "EPSG:900913"
895
895
  });
896
896
  function zi(t) {
@@ -901,11 +901,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
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++)
903
903
  m = f[o], i += (o ? "L" : "M") + m.x + " " + m.y;
904
- i += e ? k.svg ? "z" : "x" : "";
904
+ i += e ? S.svg ? "z" : "x" : "";
905
905
  }
906
906
  return i || "M0 0";
907
907
  }
908
- var He = document.documentElement.style, le = "ActiveXObject" in window, ao = le && !document.addEventListener, Ai = "msLaunchUri" in navigator && !("documentMode" in document), Fe = _t("webkit"), Ii = _t("android"), Bi = _t("android 2") || _t("android 3"), ho = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), uo = Ii && _t("Google") && ho < 537 && !("AudioNode" in window), Ge = !!window.opera, Ni = !Ai && _t("chrome"), Ri = _t("gecko") && !Fe && !Ge && !le, lo = !Ni && _t("safari"), Di = _t("phantom"), Hi = "OTransition" in He, co = navigator.platform.indexOf("Win") === 0, Fi = le && "transition" in He, Ue = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Bi, Gi = "MozPerspective" in He, fo = !window.L_DISABLE_3D && (Fi || Ue || Gi) && !Hi && !Di, Yt = typeof orientation < "u" || _t("mobile"), _o = Yt && Fe, po = Yt && Ue, Ui = !window.PointerEvent && window.MSPointerEvent, Wi = !!(window.PointerEvent || Ui), Vi = "ontouchstart" in window || !!window.TouchEvent, mo = !window.L_NO_TOUCH && (Vi || Wi), go = Yt && Ge, 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, 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() {
909
909
  var t = !1;
910
910
  try {
911
911
  var e = Object.defineProperty({}, "passive", {
@@ -919,10 +919,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
919
919
  return t;
920
920
  }(), wo = function() {
921
921
  return !!document.createElement("canvas").getContext;
922
- }(), We = !!(document.createElementNS && zi("svg").createSVGRect), bo = !!We && function() {
922
+ }(), Ve = !!(document.createElementNS && zi("svg").createSVGRect), bo = !!Ve && function() {
923
923
  var t = document.createElement("div");
924
924
  return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
925
- }(), Po = !We && function() {
925
+ }(), Po = !Ve && function() {
926
926
  try {
927
927
  var t = document.createElement("div");
928
928
  t.innerHTML = '<v:shape adj="1"/>';
@@ -932,18 +932,18 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
932
932
  return !1;
933
933
  }
934
934
  }(), xo = navigator.platform.indexOf("Mac") === 0, Co = navigator.platform.indexOf("Linux") === 0;
935
- function _t(t) {
935
+ function mt(t) {
936
936
  return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
937
937
  }
938
- var k = {
938
+ var S = {
939
939
  ie: le,
940
940
  ielt9: ao,
941
941
  edge: Ai,
942
- webkit: Fe,
942
+ webkit: Ge,
943
943
  android: Ii,
944
944
  android23: Bi,
945
945
  androidStock: uo,
946
- opera: Ge,
946
+ opera: Ue,
947
947
  chrome: Ni,
948
948
  gecko: Ri,
949
949
  safari: lo,
@@ -951,7 +951,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
951
951
  opera12: Hi,
952
952
  win: co,
953
953
  ie3d: Fi,
954
- webkit3d: Ue,
954
+ webkit3d: We,
955
955
  gecko3d: Gi,
956
956
  any3d: fo,
957
957
  mobile: Yt,
@@ -966,12 +966,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
966
966
  retina: yo,
967
967
  passiveEvents: Lo,
968
968
  canvas: wo,
969
- svg: We,
969
+ svg: Ve,
970
970
  vml: Po,
971
971
  inlineSvg: bo,
972
972
  mac: xo,
973
973
  linux: Co
974
- }, qi = k.msPointer ? "MSPointerDown" : "pointerdown", ji = k.msPointer ? "MSPointerMove" : "pointermove", Ji = k.msPointer ? "MSPointerUp" : "pointerup", Ki = k.msPointer ? "MSPointerCancel" : "pointercancel", Ve = {
974
+ }, qi = S.msPointer ? "MSPointerDown" : "pointerdown", ji = S.msPointer ? "MSPointerMove" : "pointermove", Ji = S.msPointer ? "MSPointerUp" : "pointerup", Ki = S.msPointer ? "MSPointerCancel" : "pointercancel", qe = {
975
975
  touchstart: qi,
976
976
  touchmove: ji,
977
977
  touchend: Ji,
@@ -981,39 +981,39 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
981
981
  touchmove: ce,
982
982
  touchend: ce,
983
983
  touchcancel: ce
984
- }, Nt = {}, Xi = !1;
984
+ }, Rt = {}, Xi = !1;
985
985
  function To(t, e, i) {
986
- return e === "touchstart" && Eo(), Yi[e] ? (i = Yi[e].bind(this, i), t.addEventListener(Ve[e], i, !1), i) : (console.warn("wrong event specified:", e), _);
986
+ return e === "touchstart" && Eo(), Yi[e] ? (i = Yi[e].bind(this, i), t.addEventListener(qe[e], i, !1), i) : (console.warn("wrong event specified:", e), _);
987
987
  }
988
988
  function Mo(t, e, i) {
989
- if (!Ve[e]) {
989
+ if (!qe[e]) {
990
990
  console.warn("wrong event specified:", e);
991
991
  return;
992
992
  }
993
- t.removeEventListener(Ve[e], i, !1);
994
- }
995
- function ko(t) {
996
- Nt[t.pointerId] = t;
993
+ t.removeEventListener(qe[e], i, !1);
997
994
  }
998
995
  function So(t) {
999
- Nt[t.pointerId] && (Nt[t.pointerId] = t);
996
+ Rt[t.pointerId] = t;
997
+ }
998
+ function ko(t) {
999
+ Rt[t.pointerId] && (Rt[t.pointerId] = t);
1000
1000
  }
1001
1001
  function $i(t) {
1002
- delete Nt[t.pointerId];
1002
+ delete Rt[t.pointerId];
1003
1003
  }
1004
1004
  function Eo() {
1005
- Xi || (document.addEventListener(qi, ko, !0), document.addEventListener(ji, So, !0), document.addEventListener(Ji, $i, !0), document.addEventListener(Ki, $i, !0), Xi = !0);
1005
+ Xi || (document.addEventListener(qi, So, !0), document.addEventListener(ji, ko, !0), document.addEventListener(Ji, $i, !0), document.addEventListener(Ki, $i, !0), Xi = !0);
1006
1006
  }
1007
1007
  function ce(t, e) {
1008
1008
  if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
1009
1009
  e.touches = [];
1010
- for (var i in Nt)
1011
- e.touches.push(Nt[i]);
1010
+ for (var i in Rt)
1011
+ e.touches.push(Rt[i]);
1012
1012
  e.changedTouches = [e], t(e);
1013
1013
  }
1014
1014
  }
1015
1015
  function Oo(t, e) {
1016
- e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && Q(e), ce(t, e);
1016
+ e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && tt(e), ce(t, e);
1017
1017
  }
1018
1018
  function zo(t) {
1019
1019
  var e = {}, i, n;
@@ -1050,7 +1050,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1050
1050
  function Io(t, e) {
1051
1051
  t.removeEventListener("dblclick", e.dblclick), t.removeEventListener("click", e.simDblclick);
1052
1052
  }
1053
- var qe = _e(
1053
+ var je = _e(
1054
1054
  ["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
1055
1055
  ), Xt = _e(
1056
1056
  ["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
@@ -1070,7 +1070,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1070
1070
  var n = document.createElement(t);
1071
1071
  return n.className = e || "", i && i.appendChild(n), n;
1072
1072
  }
1073
- function V(t) {
1073
+ function q(t) {
1074
1074
  var e = t.parentNode;
1075
1075
  e && e.removeChild(t);
1076
1076
  }
@@ -1078,15 +1078,15 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1078
1078
  for (; t.firstChild; )
1079
1079
  t.removeChild(t.firstChild);
1080
1080
  }
1081
- function Rt(t) {
1081
+ function Dt(t) {
1082
1082
  var e = t.parentNode;
1083
1083
  e && e.lastChild !== t && e.appendChild(t);
1084
1084
  }
1085
- function Dt(t) {
1085
+ function Ht(t) {
1086
1086
  var e = t.parentNode;
1087
1087
  e && e.firstChild !== t && e.insertBefore(t, e.firstChild);
1088
1088
  }
1089
- function je(t, e) {
1089
+ function Je(t, e) {
1090
1090
  if (t.classList !== void 0)
1091
1091
  return t.classList.contains(e);
1092
1092
  var i = fe(t);
@@ -1096,21 +1096,21 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
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]);
1099
- else if (!je(t, e)) {
1099
+ else if (!Je(t, e)) {
1100
1100
  var r = fe(t);
1101
- Je(t, (r ? r + " " : "") + e);
1101
+ Ke(t, (r ? r + " " : "") + e);
1102
1102
  }
1103
1103
  }
1104
1104
  function j(t, e) {
1105
- t.classList !== void 0 ? t.classList.remove(e) : Je(t, y((" " + fe(t) + " ").replace(" " + e + " ", " ")));
1105
+ t.classList !== void 0 ? t.classList.remove(e) : Ke(t, y((" " + fe(t) + " ").replace(" " + e + " ", " ")));
1106
1106
  }
1107
- function Je(t, e) {
1107
+ function Ke(t, e) {
1108
1108
  t.className.baseVal === void 0 ? t.className = e : t.className.baseVal = e;
1109
1109
  }
1110
1110
  function fe(t) {
1111
1111
  return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
1112
1112
  }
1113
- function ut(t, e) {
1113
+ function ct(t, e) {
1114
1114
  "opacity" in t.style ? t.style.opacity = e : "filter" in t.style && Bo(t, e);
1115
1115
  }
1116
1116
  function Bo(t, e) {
@@ -1129,22 +1129,22 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1129
1129
  return t[i];
1130
1130
  return !1;
1131
1131
  }
1132
- function Ot(t, e, i) {
1132
+ function Zt(t, e, i) {
1133
1133
  var n = e || new O(0, 0);
1134
- t.style[qe] = (k.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
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, k.any3d ? Ot(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
1137
+ t._leaflet_pos = e, S.any3d ? Zt(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
1138
1138
  }
1139
- function zt(t) {
1139
+ function At(t) {
1140
1140
  return t._leaflet_pos || new O(0, 0);
1141
1141
  }
1142
- var Qt, te, Ke;
1142
+ var Qt, te, Ye;
1143
1143
  if ("onselectstart" in document)
1144
1144
  Qt = function() {
1145
- z(window, "selectstart", Q);
1145
+ z(window, "selectstart", tt);
1146
1146
  }, te = function() {
1147
- F(window, "selectstart", Q);
1147
+ F(window, "selectstart", tt);
1148
1148
  };
1149
1149
  else {
1150
1150
  var ee = _e(
@@ -1153,26 +1153,26 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1153
1153
  Qt = function() {
1154
1154
  if (ee) {
1155
1155
  var t = document.documentElement.style;
1156
- Ke = t[ee], t[ee] = "none";
1156
+ Ye = t[ee], t[ee] = "none";
1157
1157
  }
1158
1158
  }, te = function() {
1159
- ee && (document.documentElement.style[ee] = Ke, Ke = void 0);
1159
+ ee && (document.documentElement.style[ee] = Ye, Ye = void 0);
1160
1160
  };
1161
1161
  }
1162
- function Ye() {
1163
- z(window, "dragstart", Q);
1164
- }
1165
1162
  function Xe() {
1166
- F(window, "dragstart", Q);
1163
+ z(window, "dragstart", tt);
1167
1164
  }
1168
- var pe, $e;
1169
- function Qe(t) {
1165
+ function $e() {
1166
+ F(window, "dragstart", tt);
1167
+ }
1168
+ var pe, Qe;
1169
+ function ti(t) {
1170
1170
  for (; t.tabIndex === -1; )
1171
1171
  t = t.parentNode;
1172
- t.style && (me(), pe = t, $e = t.style.outlineStyle, t.style.outlineStyle = "none", z(window, "keydown", me));
1172
+ t.style && (me(), pe = t, Qe = t.style.outlineStyle, t.style.outlineStyle = "none", z(window, "keydown", me));
1173
1173
  }
1174
1174
  function me() {
1175
- pe && (pe.style.outlineStyle = $e, pe = void 0, $e = void 0, F(window, "keydown", me));
1175
+ pe && (pe.style.outlineStyle = Qe, pe = void 0, Qe = void 0, F(window, "keydown", me));
1176
1176
  }
1177
1177
  function en(t) {
1178
1178
  do
@@ -1180,7 +1180,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1180
1180
  while ((!t.offsetWidth || !t.offsetHeight) && t !== document.body);
1181
1181
  return t;
1182
1182
  }
1183
- function ti(t) {
1183
+ function ei(t) {
1184
1184
  var e = t.getBoundingClientRect();
1185
1185
  return {
1186
1186
  x: e.width / t.offsetWidth || 1,
@@ -1190,109 +1190,109 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1190
1190
  }
1191
1191
  var No = {
1192
1192
  __proto__: null,
1193
- TRANSFORM: qe,
1193
+ TRANSFORM: je,
1194
1194
  TRANSITION: Xt,
1195
1195
  TRANSITION_END: Qi,
1196
1196
  get: tn,
1197
1197
  getStyle: $t,
1198
1198
  create: R,
1199
- remove: V,
1199
+ remove: q,
1200
1200
  empty: de,
1201
- toFront: Rt,
1202
- toBack: Dt,
1203
- hasClass: je,
1201
+ toFront: Dt,
1202
+ toBack: Ht,
1203
+ hasClass: Je,
1204
1204
  addClass: A,
1205
1205
  removeClass: j,
1206
- setClass: Je,
1206
+ setClass: Ke,
1207
1207
  getClass: fe,
1208
- setOpacity: ut,
1208
+ setOpacity: ct,
1209
1209
  testProp: _e,
1210
- setTransform: Ot,
1210
+ setTransform: Zt,
1211
1211
  setPosition: K,
1212
- getPosition: zt,
1212
+ getPosition: At,
1213
1213
  get disableTextSelection() {
1214
1214
  return Qt;
1215
1215
  },
1216
1216
  get enableTextSelection() {
1217
1217
  return te;
1218
1218
  },
1219
- disableImageDrag: Ye,
1220
- enableImageDrag: Xe,
1221
- preventOutline: Qe,
1219
+ disableImageDrag: Xe,
1220
+ enableImageDrag: $e,
1221
+ preventOutline: ti,
1222
1222
  restoreOutline: me,
1223
1223
  getSizedParentNode: en,
1224
- getScale: ti
1224
+ getScale: ei
1225
1225
  };
1226
1226
  function z(t, e, i, n) {
1227
1227
  if (e && typeof e == "object")
1228
1228
  for (var o in e)
1229
- ii(t, o, e[o], i);
1229
+ ni(t, o, e[o], i);
1230
1230
  else {
1231
1231
  e = M(e);
1232
1232
  for (var r = 0, u = e.length; r < u; r++)
1233
- ii(t, e[r], i, n);
1233
+ ni(t, e[r], i, n);
1234
1234
  }
1235
1235
  return this;
1236
1236
  }
1237
- var pt = "_leaflet_events";
1237
+ var gt = "_leaflet_events";
1238
1238
  function F(t, e, i, n) {
1239
1239
  if (arguments.length === 1)
1240
- nn(t), delete t[pt];
1240
+ nn(t), delete t[gt];
1241
1241
  else if (e && typeof e == "object")
1242
1242
  for (var o in e)
1243
- ni(t, o, e[o], i);
1243
+ oi(t, o, e[o], i);
1244
1244
  else if (e = M(e), arguments.length === 2)
1245
1245
  nn(t, function(f) {
1246
- return yt(e, f) !== -1;
1246
+ return bt(e, f) !== -1;
1247
1247
  });
1248
1248
  else
1249
1249
  for (var r = 0, u = e.length; r < u; r++)
1250
- ni(t, e[r], i, n);
1250
+ oi(t, e[r], i, n);
1251
1251
  return this;
1252
1252
  }
1253
1253
  function nn(t, e) {
1254
- for (var i in t[pt]) {
1254
+ for (var i in t[gt]) {
1255
1255
  var n = i.split(/\d/)[0];
1256
- (!e || e(n)) && ni(t, n, null, null, i);
1256
+ (!e || e(n)) && oi(t, n, null, null, i);
1257
1257
  }
1258
1258
  }
1259
- var ei = {
1259
+ var ii = {
1260
1260
  mouseenter: "mouseover",
1261
1261
  mouseleave: "mouseout",
1262
1262
  wheel: !("onwheel" in window) && "mousewheel"
1263
1263
  };
1264
- function ii(t, e, i, n) {
1264
+ function ni(t, e, i, n) {
1265
1265
  var o = e + l(i) + (n ? "_" + l(n) : "");
1266
- if (t[pt] && t[pt][o])
1266
+ if (t[gt] && t[gt][o])
1267
1267
  return this;
1268
1268
  var r = function(f) {
1269
1269
  return i.call(n || t, f || window.event);
1270
1270
  }, u = r;
1271
- !k.touchNative && k.pointer && e.indexOf("touch") === 0 ? r = To(t, e, r) : k.touch && e === "dblclick" ? r = Ao(t, r) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(ei[e] || e, r, k.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (r = function(f) {
1272
- f = f || window.event, si(t, f) && u(f);
1273
- }, t.addEventListener(ei[e], r, !1)) : t.addEventListener(e, u, !1) : t.attachEvent("on" + e, r), t[pt] = t[pt] || {}, t[pt][o] = 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) {
1272
+ f = f || window.event, ri(t, f) && u(f);
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
  }
1275
- function ni(t, e, i, n, o) {
1275
+ function oi(t, e, i, n, o) {
1276
1276
  o = o || e + l(i) + (n ? "_" + l(n) : "");
1277
- var r = t[pt] && t[pt][o];
1277
+ var r = t[gt] && t[gt][o];
1278
1278
  if (!r)
1279
1279
  return this;
1280
- !k.touchNative && k.pointer && e.indexOf("touch") === 0 ? Mo(t, e, r) : k.touch && e === "dblclick" ? Io(t, r) : "removeEventListener" in t ? t.removeEventListener(ei[e] || e, r, !1) : t.detachEvent("on" + e, r), t[pt][o] = null;
1280
+ !S.touchNative && S.pointer && e.indexOf("touch") === 0 ? Mo(t, e, r) : S.touch && e === "dblclick" ? Io(t, r) : "removeEventListener" in t ? t.removeEventListener(ii[e] || e, r, !1) : t.detachEvent("on" + e, r), t[gt][o] = null;
1281
1281
  }
1282
- function Zt(t) {
1282
+ function It(t) {
1283
1283
  return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
1284
1284
  }
1285
- function oi(t) {
1286
- return ii(t, "wheel", Zt), this;
1285
+ function si(t) {
1286
+ return ni(t, "wheel", It), this;
1287
1287
  }
1288
1288
  function ie(t) {
1289
- return z(t, "mousedown touchstart dblclick contextmenu", Zt), t._leaflet_disable_click = !0, this;
1289
+ return z(t, "mousedown touchstart dblclick contextmenu", It), t._leaflet_disable_click = !0, this;
1290
1290
  }
1291
- function Q(t) {
1291
+ function tt(t) {
1292
1292
  return t.preventDefault ? t.preventDefault() : t.returnValue = !1, this;
1293
1293
  }
1294
- function At(t) {
1295
- return Q(t), Zt(t), this;
1294
+ function Bt(t) {
1295
+ return tt(t), It(t), this;
1296
1296
  }
1297
1297
  function on(t) {
1298
1298
  if (t.composedPath)
@@ -1304,7 +1304,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1304
1304
  function sn(t, e) {
1305
1305
  if (!e)
1306
1306
  return new O(t.clientX, t.clientY);
1307
- var i = ti(e), n = i.boundingClientRect;
1307
+ var i = ei(e), n = i.boundingClientRect;
1308
1308
  return new O(
1309
1309
  // offset.left/top values are in page scale (like clientX/Y),
1310
1310
  // whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).
@@ -1312,9 +1312,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1312
1312
  (t.clientY - n.top) / i.y - e.clientTop
1313
1313
  );
1314
1314
  }
1315
- var Ro = k.linux && k.chrome ? window.devicePixelRatio : k.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
1315
+ var Ro = S.linux && S.chrome ? window.devicePixelRatio : S.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
1316
1316
  function rn(t) {
1317
- return k.edge ? t.wheelDeltaY / 2 : (
1317
+ return S.edge ? t.wheelDeltaY / 2 : (
1318
1318
  // Don't trust window-geometry-based delta
1319
1319
  t.deltaY && t.deltaMode === 0 ? -t.deltaY / Ro : (
1320
1320
  // Pixels
@@ -1340,7 +1340,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1340
1340
  )
1341
1341
  );
1342
1342
  }
1343
- function si(t, e) {
1343
+ function ri(t, e) {
1344
1344
  var i = e.relatedTarget;
1345
1345
  if (!i)
1346
1346
  return !0;
@@ -1356,15 +1356,15 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1356
1356
  __proto__: null,
1357
1357
  on: z,
1358
1358
  off: F,
1359
- stopPropagation: Zt,
1360
- disableScrollPropagation: oi,
1359
+ stopPropagation: It,
1360
+ disableScrollPropagation: si,
1361
1361
  disableClickPropagation: ie,
1362
- preventDefault: Q,
1363
- stop: At,
1362
+ preventDefault: tt,
1363
+ stop: Bt,
1364
1364
  getPropagationPath: on,
1365
1365
  getMousePosition: sn,
1366
1366
  getWheelDelta: rn,
1367
- isExternalTarget: si,
1367
+ isExternalTarget: ri,
1368
1368
  addListener: z,
1369
1369
  removeListener: F
1370
1370
  }, an = Jt.extend({
@@ -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 = zt(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 = At(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).
@@ -1382,7 +1382,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1382
1382
  this._inProgress && (this._step(!0), this._complete());
1383
1383
  },
1384
1384
  _animate: function() {
1385
- this._animId = it(this._animate, this), this._step();
1385
+ this._animId = nt(this._animate, this), this._step();
1386
1386
  },
1387
1387
  _step: function(t) {
1388
1388
  var e = +/* @__PURE__ */ new Date() - this._startTime, i = this._duration * 1e3;
@@ -1393,7 +1393,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1393
1393
  e && i._round(), K(this._el, i), this.fire("step");
1394
1394
  },
1395
1395
  _complete: function() {
1396
- ht(this._animId), this._inProgress = !1, this.fire("end");
1396
+ lt(this._animId), this._inProgress = !1, this.fire("end");
1397
1397
  },
1398
1398
  _easeOut: function(t) {
1399
1399
  return 1 - Math.pow(1 - t, this._easeOutPower);
@@ -1404,7 +1404,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1404
1404
  // @option crs: CRS = L.CRS.EPSG3857
1405
1405
  // The [Coordinate Reference System](#crs) to use. Don't change this if you're not
1406
1406
  // sure what it means.
1407
- crs: De,
1407
+ crs: He,
1408
1408
  // @option center: LatLng = undefined
1409
1409
  // Initial geographic center of the map
1410
1410
  center: void 0,
@@ -1476,7 +1476,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1476
1476
  trackResize: !0
1477
1477
  },
1478
1478
  initialize: function(t, e) {
1479
- e = C(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = a(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView(B(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = Xt && k.any3d && !k.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), z(this._proxy, Qi, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
1479
+ e = C(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = a(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView(B(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = Xt && S.any3d && !S.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), z(this._proxy, Qi, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
1480
1480
  },
1481
1481
  // @section Methods for modifying map state
1482
1482
  // @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
@@ -1499,12 +1499,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1499
1499
  // @method zoomIn(delta?: Number, options?: Zoom options): this
1500
1500
  // Increases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
1501
1501
  zoomIn: function(t, e) {
1502
- return t = t || (k.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom + t, e);
1502
+ return t = t || (S.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom + t, e);
1503
1503
  },
1504
1504
  // @method zoomOut(delta?: Number, options?: Zoom options): this
1505
1505
  // Decreases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
1506
1506
  zoomOut: function(t, e) {
1507
- return t = t || (k.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom - t, e);
1507
+ return t = t || (S.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom - t, e);
1508
1508
  },
1509
1509
  // @method setZoomAround(latlng: LatLng, zoom: Number, options: Zoom options): this
1510
1510
  // Zooms the map while keeping a specified geographical point on the map
@@ -1572,41 +1572,41 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1572
1572
  // Sets the view of the map (geographical center and zoom) performing a smooth
1573
1573
  // pan-zoom animation.
1574
1574
  flyTo: function(t, e, i) {
1575
- if (i = i || {}, i.animate === !1 || !k.any3d)
1575
+ if (i = i || {}, i.animate === !1 || !S.any3d)
1576
1576
  return this.setView(t, e, i);
1577
1577
  this._stop();
1578
1578
  var n = this.project(this.getCenter()), o = this.project(t), r = this.getSize(), u = this._zoom;
1579
1579
  t = B(t), e = e === void 0 ? u : e;
1580
- var f = Math.max(r.x, r.y), m = f * this.getZoomScale(u, e), P = o.distanceTo(n) || 1, T = 1.42, S = T * T;
1580
+ var f = Math.max(r.x, r.y), m = f * this.getZoomScale(u, e), P = o.distanceTo(n) || 1, T = 1.42, k = T * T;
1581
1581
  function I(Y) {
1582
- var ke = Y ? -1 : 1, Ms = Y ? m : f, ks = m * m - f * f + ke * S * S * P * P, Ss = 2 * Ms * S * P, mi = ks / Ss, Fn = Math.sqrt(mi * mi + 1) - mi, Es = Fn < 1e-9 ? -18 : Math.log(Fn);
1582
+ var Se = Y ? -1 : 1, Ms = Y ? m : f, Ss = m * m - f * f + Se * k * k * P * P, ks = 2 * Ms * k * P, gi = Ss / ks, Fn = Math.sqrt(gi * gi + 1) - gi, Es = Fn < 1e-9 ? -18 : Math.log(Fn);
1583
1583
  return Es;
1584
1584
  }
1585
- function tt(Y) {
1585
+ function it(Y) {
1586
1586
  return (Math.exp(Y) - Math.exp(-Y)) / 2;
1587
1587
  }
1588
1588
  function $(Y) {
1589
1589
  return (Math.exp(Y) + Math.exp(-Y)) / 2;
1590
1590
  }
1591
- function ct(Y) {
1592
- return tt(Y) / $(Y);
1591
+ function ft(Y) {
1592
+ return it(Y) / $(Y);
1593
1593
  }
1594
- var st = I(0);
1595
- function Vt(Y) {
1596
- return f * ($(st) / $(st + T * Y));
1594
+ var rt = I(0);
1595
+ function qt(Y) {
1596
+ return f * ($(rt) / $(rt + T * Y));
1597
1597
  }
1598
1598
  function Ps(Y) {
1599
- return f * ($(st) * ct(st + T * Y) - tt(st)) / S;
1599
+ return f * ($(rt) * ft(rt + T * Y) - it(rt)) / k;
1600
1600
  }
1601
1601
  function xs(Y) {
1602
1602
  return 1 - Math.pow(1 - Y, 1.5);
1603
1603
  }
1604
- var Cs = Date.now(), Dn = (I(1) - st) / T, Ts = i.duration ? 1e3 * i.duration : 1e3 * Dn * 0.8;
1604
+ var Cs = Date.now(), Dn = (I(1) - rt) / T, Ts = i.duration ? 1e3 * i.duration : 1e3 * Dn * 0.8;
1605
1605
  function Hn() {
1606
- var Y = (Date.now() - Cs) / Ts, ke = xs(Y) * Dn;
1607
- Y <= 1 ? (this._flyToFrame = it(Hn, this), this._move(
1608
- this.unproject(n.add(o.subtract(n).multiplyBy(Ps(ke) / P)), u),
1609
- this.getScaleZoom(f / Vt(ke), u),
1606
+ var Y = (Date.now() - Cs) / Ts, Se = xs(Y) * Dn;
1607
+ Y <= 1 ? (this._flyToFrame = nt(Hn, this), this._move(
1608
+ this.unproject(n.add(o.subtract(n).multiplyBy(Ps(Se) / P)), u),
1609
+ this.getScaleZoom(f / qt(Se), u),
1610
1610
  { flyTo: !0 }
1611
1611
  )) : this._move(t, e)._moveEnd(!0);
1612
1612
  }
@@ -1650,7 +1650,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1650
1650
  // the map will not be panned.
1651
1651
  panInside: function(t, e) {
1652
1652
  e = e || {};
1653
- var i = E(e.paddingTopLeft || e.padding || [0, 0]), n = E(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()), r = this.project(t), u = this.getPixelBounds(), f = nt([u.min.add(i), u.max.subtract(n)]), m = f.getSize();
1653
+ var i = E(e.paddingTopLeft || e.padding || [0, 0]), n = E(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()), r = this.project(t), u = this.getPixelBounds(), f = ot([u.min.add(i), u.max.subtract(n)]), m = f.getSize();
1654
1654
  if (!f.contains(r)) {
1655
1655
  this._enforcingBounds = !0;
1656
1656
  var P = r.subtract(f.getCenter()), T = f.extend(r).getSize().subtract(m);
@@ -1769,12 +1769,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1769
1769
  } catch {
1770
1770
  this._container._leaflet_id = void 0, this._containerId = void 0;
1771
1771
  }
1772
- this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), V(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (ht(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload");
1772
+ this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), q(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (lt(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload");
1773
1773
  var t;
1774
1774
  for (t in this._layers)
1775
1775
  this._layers[t].remove();
1776
1776
  for (t in this._panes)
1777
- V(this._panes[t]);
1777
+ q(this._panes[t]);
1778
1778
  return this._layers = [], this._panes = [], delete this._mapPane, delete this._renderer, this;
1779
1779
  },
1780
1780
  // @section Other Methods
@@ -1801,7 +1801,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1801
1801
  // Returns the geographical bounds visible in the current map view
1802
1802
  getBounds: function() {
1803
1803
  var t = this.getPixelBounds(), e = this.unproject(t.getBottomLeft()), i = this.unproject(t.getTopRight());
1804
- return new ot(e, i);
1804
+ return new st(e, i);
1805
1805
  },
1806
1806
  // @method getMinZoom(): Number
1807
1807
  // Returns the minimum zoom level of the map (if set in the `minZoom` option of the map or of any layers), or `0` by default.
@@ -1820,8 +1820,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1820
1820
  // the given bounds in its entirety.
1821
1821
  getBoundsZoom: function(t, e, i) {
1822
1822
  t = J(t), i = E(i || [0, 0]);
1823
- var n = this.getZoom() || 0, o = this.getMinZoom(), r = this.getMaxZoom(), u = t.getNorthWest(), f = t.getSouthEast(), m = this.getSize().subtract(i), P = nt(this.project(f, n), this.project(u, n)).getSize(), T = k.any3d ? this.options.zoomSnap : 1, S = m.x / P.x, I = m.y / P.y, tt = e ? Math.max(S, I) : Math.min(S, I);
1824
- return n = this.getScaleZoom(tt, n), T && (n = Math.round(n / (T / 100)) * (T / 100), n = e ? Math.ceil(n / T) * T : Math.floor(n / T) * T), Math.max(o, Math.min(r, n));
1823
+ var n = this.getZoom() || 0, o = this.getMinZoom(), r = this.getMaxZoom(), u = t.getNorthWest(), f = t.getSouthEast(), m = this.getSize().subtract(i), P = ot(this.project(f, n), this.project(u, n)).getSize(), T = S.any3d ? this.options.zoomSnap : 1, k = m.x / P.x, I = m.y / P.y, it = e ? Math.max(k, I) : Math.min(k, I);
1824
+ return n = this.getScaleZoom(it, n), T && (n = Math.round(n / (T / 100)) * (T / 100), n = e ? Math.ceil(n / T) * T : Math.floor(n / T) * T), Math.max(o, Math.min(r, n));
1825
1825
  },
1826
1826
  // @method getSize(): Point
1827
1827
  // Returns the current size of the map container (in pixels).
@@ -1836,7 +1836,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1836
1836
  // coordinates (sometimes useful in layer and overlay implementations).
1837
1837
  getPixelBounds: function(t, e) {
1838
1838
  var i = this._getTopLeftPoint(t, e);
1839
- return new W(i, i.add(this.getSize()));
1839
+ return new V(i, i.add(this.getSize()));
1840
1840
  },
1841
1841
  // TODO: Check semantics - isn't the pixel origin the 0,0 coord relative to
1842
1842
  // the map pane? "left point of the map layer" can be confusing, specially
@@ -1993,7 +1993,7 @@ 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 && k.any3d, A(t, "leaflet-container" + (k.touch ? " leaflet-touch" : "") + (k.retina ? " leaflet-retina" : "") + (k.ielt9 ? " leaflet-oldie" : "") + (k.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
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" : ""));
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
  },
@@ -2022,7 +2022,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2022
2022
  return t && this.fire("zoomend"), this.fire("moveend");
2023
2023
  },
2024
2024
  _stop: function() {
2025
- return ht(this._flyToFrame), this._panAnim && this._panAnim.stop(), this;
2025
+ return lt(this._flyToFrame), this._panAnim && this._panAnim.stop(), this;
2026
2026
  },
2027
2027
  _rawPanBy: function(t) {
2028
2028
  K(this._mapPane, this._getMapPanePos().subtract(t));
@@ -2042,10 +2042,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2042
2042
  _initEvents: function(t) {
2043
2043
  this._targets = {}, this._targets[l(this._container)] = this;
2044
2044
  var e = t ? F : z;
2045
- e(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && e(window, "resize", this._onResize, this), k.any3d && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
2045
+ e(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && e(window, "resize", this._onResize, this), S.any3d && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
2046
2046
  },
2047
2047
  _onResize: function() {
2048
- ht(this._resizeRequest), this._resizeRequest = it(
2048
+ lt(this._resizeRequest), this._resizeRequest = nt(
2049
2049
  function() {
2050
2050
  this.invalidateSize({ debounceMoveend: !0 });
2051
2051
  },
@@ -2065,7 +2065,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2065
2065
  u = !0;
2066
2066
  break;
2067
2067
  }
2068
- if (n && n.listens(e, !0) && (o && !si(r, t) || (i.push(n), o)) || r === this._container)
2068
+ if (n && n.listens(e, !0) && (o && !ri(r, t) || (i.push(n), o)) || r === this._container)
2069
2069
  break;
2070
2070
  r = r.parentNode;
2071
2071
  }
@@ -2082,7 +2082,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2082
2082
  var e = t.target || t.srcElement;
2083
2083
  if (!(!this._loaded || e._leaflet_disable_events || t.type === "click" && this._isClickDisabled(e))) {
2084
2084
  var i = t.type;
2085
- i === "mousedown" && Qe(e), this._fireDOMEvent(t, i);
2085
+ i === "mousedown" && ti(e), this._fireDOMEvent(t, i);
2086
2086
  }
2087
2087
  },
2088
2088
  _mouseEvents: ["click", "dblclick", "mouseover", "mouseout", "contextmenu"],
@@ -2098,7 +2098,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2098
2098
  o = r.concat(o);
2099
2099
  }
2100
2100
  if (o.length) {
2101
- e === "contextmenu" && Q(t);
2101
+ e === "contextmenu" && tt(t);
2102
2102
  var f = o[0], m = {
2103
2103
  originalEvent: t
2104
2104
  };
@@ -2107,7 +2107,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2107
2107
  m.containerPoint = P ? this.latLngToContainerPoint(f.getLatLng()) : this.mouseEventToContainerPoint(t), m.layerPoint = this.containerPointToLayerPoint(m.containerPoint), m.latlng = P ? f.getLatLng() : this.layerPointToLatLng(m.layerPoint);
2108
2108
  }
2109
2109
  for (u = 0; u < o.length; u++)
2110
- if (o[u].fire(e, m, !0), m.originalEvent._stopped || o[u].options.bubblingMouseEvents === !1 && yt(this._mouseEvents, e) !== -1)
2110
+ if (o[u].fire(e, m, !0), m.originalEvent._stopped || o[u].options.bubblingMouseEvents === !1 && bt(this._mouseEvents, e) !== -1)
2111
2111
  return;
2112
2112
  }
2113
2113
  },
@@ -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 zt(this._mapPane) || new O(0, 0);
2131
+ return At(this._mapPane) || new O(0, 0);
2132
2132
  },
2133
2133
  _moved: function() {
2134
2134
  var t = this._getMapPanePos();
@@ -2148,7 +2148,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2148
2148
  },
2149
2149
  _latLngBoundsToNewLayerBounds: function(t, e, i) {
2150
2150
  var n = this._getNewPixelOrigin(i, e);
2151
- return nt([
2151
+ return ot([
2152
2152
  this.project(t.getSouthWest(), e)._subtract(n),
2153
2153
  this.project(t.getNorthWest(), e)._subtract(n),
2154
2154
  this.project(t.getSouthEast(), e)._subtract(n),
@@ -2167,19 +2167,19 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2167
2167
  _limitCenter: function(t, e, i) {
2168
2168
  if (!i)
2169
2169
  return t;
2170
- var n = this.project(t, e), o = this.getSize().divideBy(2), r = new W(n.subtract(o), n.add(o)), u = this._getBoundsOffset(r, i, e);
2170
+ var n = this.project(t, e), o = this.getSize().divideBy(2), r = new V(n.subtract(o), n.add(o)), u = this._getBoundsOffset(r, i, e);
2171
2171
  return Math.abs(u.x) <= 1 && Math.abs(u.y) <= 1 ? t : this.unproject(n.add(u), e);
2172
2172
  },
2173
2173
  // adjust offset for view to get inside bounds
2174
2174
  _limitOffset: function(t, e) {
2175
2175
  if (!e)
2176
2176
  return t;
2177
- var i = this.getPixelBounds(), n = new W(i.min.add(t), i.max.add(t));
2177
+ var i = this.getPixelBounds(), n = new V(i.min.add(t), i.max.add(t));
2178
2178
  return t.add(this._getBoundsOffset(n, e));
2179
2179
  },
2180
2180
  // returns offset needed for pxBounds to get inside maxBounds at a specified zoom
2181
2181
  _getBoundsOffset: function(t, e, i) {
2182
- var n = nt(
2182
+ var n = ot(
2183
2183
  this.project(e.getNorthEast(), i),
2184
2184
  this.project(e.getSouthWest(), i)
2185
2185
  ), o = n.min.subtract(t.min), r = n.max.subtract(t.max), u = this._rebound(o.x, -r.x), f = this._rebound(o.y, -r.y);
@@ -2189,7 +2189,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2189
2189
  return t + e > 0 ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e));
2190
2190
  },
2191
2191
  _limitZoom: function(t) {
2192
- var e = this.getMinZoom(), i = this.getMaxZoom(), n = k.any3d ? this.options.zoomSnap : 1;
2192
+ var e = this.getMinZoom(), i = this.getMaxZoom(), n = S.any3d ? this.options.zoomSnap : 1;
2193
2193
  return n && (t = Math.round(t / n) * n), Math.max(e, Math.min(i, t));
2194
2194
  },
2195
2195
  _onPanTransitionStep: function() {
@@ -2205,16 +2205,16 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2205
2205
  _createAnimProxy: function() {
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
- var i = qe, n = this._proxy.style[i];
2209
- Ot(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), n === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
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();
2210
2210
  }, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
2211
2211
  },
2212
2212
  _destroyAnimProxy: function() {
2213
- V(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy;
2213
+ q(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy;
2214
2214
  },
2215
2215
  _animMoveEnd: function() {
2216
2216
  var t = this.getCenter(), e = this.getZoom();
2217
- Ot(this._proxy, this.project(t, e), this.getZoomScale(e, 1));
2217
+ Zt(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();
@@ -2228,7 +2228,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2228
2228
  if (i = i || {}, !this._zoomAnimated || i.animate === !1 || this._nothingToAnimate() || Math.abs(e - this._zoom) > this.options.zoomAnimationThreshold)
2229
2229
  return !1;
2230
2230
  var n = this.getZoomScale(e), o = this._getCenterOffset(t)._divideBy(1 - 1 / n);
2231
- return i.animate !== !0 && !this.getSize().contains(o) ? !1 : (it(function() {
2231
+ return i.animate !== !0 && !this.getSize().contains(o) ? !1 : (nt(function() {
2232
2232
  this._moveStart(!0, i.noMoveStart || !1)._animateZoom(t, e, !0);
2233
2233
  }, this), !0);
2234
2234
  },
@@ -2246,7 +2246,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2246
2246
  function Ho(t, e) {
2247
2247
  return new N(t, e);
2248
2248
  }
2249
- var dt = Lt.extend({
2249
+ var _t = Pt.extend({
2250
2250
  // @section
2251
2251
  // @aka Control Options
2252
2252
  options: {
@@ -2288,13 +2288,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2288
2288
  // @method remove: this
2289
2289
  // Removes the control from the map it is currently active on.
2290
2290
  remove: function() {
2291
- return this._map ? (V(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null, this) : this;
2291
+ return this._map ? (q(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null, this) : this;
2292
2292
  },
2293
2293
  _refocusOnMap: function(t) {
2294
2294
  this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
2295
2295
  }
2296
2296
  }), ne = function(t) {
2297
- return new dt(t);
2297
+ return new _t(t);
2298
2298
  };
2299
2299
  N.include({
2300
2300
  // @method addControl(control: Control): this
@@ -2317,11 +2317,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2317
2317
  },
2318
2318
  _clearControlPos: function() {
2319
2319
  for (var t in this._controlCorners)
2320
- V(this._controlCorners[t]);
2321
- V(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
2320
+ q(this._controlCorners[t]);
2321
+ q(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
2322
2322
  }
2323
2323
  });
2324
- var hn = dt.extend({
2324
+ var hn = _t.extend({
2325
2325
  // @section
2326
2326
  // @aka Control.Layers options
2327
2327
  options: {
@@ -2363,7 +2363,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2363
2363
  return this._container;
2364
2364
  },
2365
2365
  addTo: function(t) {
2366
- return dt.prototype.addTo.call(this, t), this._expandIfNotCollapsed();
2366
+ return _t.prototype.addTo.call(this, t), this._expandIfNotCollapsed();
2367
2367
  },
2368
2368
  onRemove: function() {
2369
2369
  this._map.off("zoomend", this._checkDisabledLayers, this);
@@ -2401,7 +2401,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2401
2401
  },
2402
2402
  _initLayout: function() {
2403
2403
  var t = "leaflet-control-layers", e = this._container = R("div", t), i = this.options.collapsed;
2404
- e.setAttribute("aria-haspopup", !0), ie(e), oi(e);
2404
+ e.setAttribute("aria-haspopup", !0), ie(e), si(e);
2405
2405
  var n = this._section = R("section", t + "-list");
2406
2406
  i && (this._map.on("click", this.collapse, this), z(e, {
2407
2407
  mouseenter: this._expandSafely,
@@ -2414,7 +2414,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2414
2414
  },
2415
2415
  // Certain screen readers intercept the key event and instead send a click event
2416
2416
  click: function(r) {
2417
- Q(r), this._expandSafely();
2417
+ tt(r), this._expandSafely();
2418
2418
  }
2419
2419
  }, this), i || this.expand(), this._baseLayersList = R("div", t + "-base", n), this._separator = R("div", t + "-separator", n), this._overlaysList = R("div", t + "-overlays", n), e.appendChild(n);
2420
2420
  },
@@ -2483,15 +2483,15 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2483
2483
  },
2484
2484
  _expandSafely: function() {
2485
2485
  var t = this._section;
2486
- this._preventClick = !0, z(t, "click", Q), this.expand();
2486
+ this._preventClick = !0, z(t, "click", tt), this.expand();
2487
2487
  var e = this;
2488
2488
  setTimeout(function() {
2489
- F(t, "click", Q), e._preventClick = !1;
2489
+ F(t, "click", tt), e._preventClick = !1;
2490
2490
  });
2491
2491
  }
2492
2492
  }), Fo = function(t, e, i) {
2493
2493
  return new hn(t, e, i);
2494
- }, ri = dt.extend({
2494
+ }, ai = _t.extend({
2495
2495
  // @section
2496
2496
  // @aka Control.Zoom options
2497
2497
  options: {
@@ -2542,7 +2542,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2542
2542
  },
2543
2543
  _createButton: function(t, e, i, n, o) {
2544
2544
  var r = R("a", i, n);
2545
- return r.innerHTML = t, r.href = "#", r.title = e, r.setAttribute("role", "button"), r.setAttribute("aria-label", e), ie(r), z(r, "click", At), z(r, "click", o, this), z(r, "click", this._refocusOnMap, this), r;
2545
+ return r.innerHTML = t, r.href = "#", r.title = e, r.setAttribute("role", "button"), r.setAttribute("aria-label", e), ie(r), z(r, "click", Bt), z(r, "click", o, this), z(r, "click", this._refocusOnMap, this), r;
2546
2546
  },
2547
2547
  _updateDisabled: function() {
2548
2548
  var t = this._map, e = "leaflet-disabled";
@@ -2552,11 +2552,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2552
2552
  N.mergeOptions({
2553
2553
  zoomControl: !0
2554
2554
  }), N.addInitHook(function() {
2555
- this.options.zoomControl && (this.zoomControl = new ri(), this.addControl(this.zoomControl));
2555
+ this.options.zoomControl && (this.zoomControl = new ai(), this.addControl(this.zoomControl));
2556
2556
  });
2557
2557
  var Go = function(t) {
2558
- return new ri(t);
2559
- }, un = dt.extend({
2558
+ return new ai(t);
2559
+ }, un = _t.extend({
2560
2560
  // @section
2561
2561
  // @aka Control.Scale options
2562
2562
  options: {
@@ -2610,14 +2610,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2610
2610
  }
2611
2611
  }), Uo = function(t) {
2612
2612
  return new un(t);
2613
- }, Wo = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>', ai = dt.extend({
2613
+ }, Wo = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>', hi = _t.extend({
2614
2614
  // @section
2615
2615
  // @aka Control.Attribution options
2616
2616
  options: {
2617
2617
  position: "bottomright",
2618
2618
  // @option prefix: String|false = 'Leaflet'
2619
2619
  // The HTML text shown before the attributions. Pass `false` to disable.
2620
- prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (k.inlineSvg ? Wo + " " : "") + "Leaflet</a>"
2620
+ prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (S.inlineSvg ? Wo + " " : "") + "Leaflet</a>"
2621
2621
  },
2622
2622
  initialize: function(t) {
2623
2623
  C(this, t), this._attributions = {};
@@ -2664,13 +2664,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2664
2664
  N.mergeOptions({
2665
2665
  attributionControl: !0
2666
2666
  }), N.addInitHook(function() {
2667
- this.options.attributionControl && new ai().addTo(this);
2667
+ this.options.attributionControl && new hi().addTo(this);
2668
2668
  });
2669
2669
  var Vo = function(t) {
2670
- return new ai(t);
2670
+ return new hi(t);
2671
2671
  };
2672
- dt.Layers = hn, dt.Zoom = ri, dt.Scale = un, dt.Attribution = ai, ne.layers = Fo, ne.zoom = Go, ne.scale = Uo, ne.attribution = Vo;
2673
- var mt = Lt.extend({
2672
+ _t.Layers = hn, _t.Zoom = ai, _t.Scale = un, _t.Attribution = hi, ne.layers = Fo, ne.zoom = Go, ne.scale = Uo, ne.attribution = Vo;
2673
+ var vt = Pt.extend({
2674
2674
  initialize: function(t) {
2675
2675
  this._map = t;
2676
2676
  },
@@ -2696,10 +2696,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2696
2696
  // @method removeHooks()
2697
2697
  // Called when the handler is disabled, should remove the event hooks added previously.
2698
2698
  });
2699
- mt.addTo = function(t, e) {
2699
+ vt.addTo = function(t, e) {
2700
2700
  return t.addHandler(e, this), this;
2701
2701
  };
2702
- var qo = { Events: at }, ln = k.touch ? "touchstart mousedown" : "mousedown", kt = Jt.extend({
2702
+ var qo = { Events: ht }, ln = S.touch ? "touchstart mousedown" : "mousedown", Et = Jt.extend({
2703
2703
  options: {
2704
2704
  // @section
2705
2705
  // @aka Draggable options
@@ -2721,18 +2721,18 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2721
2721
  // @method disable()
2722
2722
  // Disables the dragging ability
2723
2723
  disable: function() {
2724
- this._enabled && (kt._dragging === this && this.finishDrag(!0), F(this._dragStartTarget, ln, this._onDown, this), this._enabled = !1, this._moved = !1);
2724
+ this._enabled && (Et._dragging === this && this.finishDrag(!0), F(this._dragStartTarget, ln, this._onDown, this), this._enabled = !1, this._moved = !1);
2725
2725
  },
2726
2726
  _onDown: function(t) {
2727
- if (this._enabled && (this._moved = !1, !je(this._element, "leaflet-zoom-anim"))) {
2727
+ if (this._enabled && (this._moved = !1, !Je(this._element, "leaflet-zoom-anim"))) {
2728
2728
  if (t.touches && t.touches.length !== 1) {
2729
- kt._dragging === this && this.finishDrag();
2729
+ Et._dragging === this && this.finishDrag();
2730
2730
  return;
2731
2731
  }
2732
- if (!(kt._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (kt._dragging = this, this._preventOutline && Qe(this._element), Ye(), Qt(), !this._moving)) {
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 = zt(this._element), this._parentScale = ti(i);
2735
+ this._startPoint = new O(e.clientX, e.clientY), this._startPos = At(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, Q(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, 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());
2749
2749
  }
2750
2750
  },
2751
2751
  _updatePosition: function() {
@@ -2756,21 +2756,21 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2756
2756
  this._enabled && this.finishDrag();
2757
2757
  },
2758
2758
  finishDrag: function(t) {
2759
- j(document.body, "leaflet-dragging"), this._lastTarget && (j(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), F(document, "mousemove touchmove", this._onMove, this), F(document, "mouseup touchend touchcancel", this._onUp, this), Xe(), te();
2759
+ j(document.body, "leaflet-dragging"), this._lastTarget && (j(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), F(document, "mousemove touchmove", this._onMove, this), F(document, "mouseup touchend touchcancel", this._onUp, this), $e(), te();
2760
2760
  var e = this._moved && this._moving;
2761
- this._moving = !1, kt._dragging = !1, e && this.fire("dragend", {
2761
+ this._moving = !1, Et._dragging = !1, e && this.fire("dragend", {
2762
2762
  noInertia: t,
2763
2763
  distance: this._newPos.distanceTo(this._startPos)
2764
2764
  });
2765
2765
  }
2766
2766
  });
2767
2767
  function cn(t, e, i) {
2768
- var n, o = [1, 4, 2, 8], r, u, f, m, P, T, S, I;
2768
+ var n, o = [1, 4, 2, 8], r, u, f, m, P, T, k, I;
2769
2769
  for (r = 0, T = t.length; r < T; r++)
2770
- t[r]._code = It(t[r], e);
2770
+ t[r]._code = Nt(t[r], e);
2771
2771
  for (f = 0; f < 4; f++) {
2772
- for (S = o[f], n = [], r = 0, T = t.length, u = T - 1; r < T; u = r++)
2773
- m = t[r], P = t[u], m._code & S ? P._code & S || (I = ge(P, m, S, e, i), I._code = It(I, e), n.push(I)) : (P._code & S && (I = ge(P, m, S, e, i), I._code = It(I, e), n.push(I)), n.push(m));
2772
+ for (k = o[f], n = [], r = 0, T = t.length, u = T - 1; r < T; u = r++)
2773
+ m = t[r], P = t[u], m._code & k ? P._code & k || (I = ge(P, m, k, e, i), I._code = Nt(I, e), n.push(I)) : (P._code & k && (I = ge(P, m, k, e, i), I._code = Nt(I, e), n.push(I)), n.push(m));
2774
2774
  t = n;
2775
2775
  }
2776
2776
  return t;
@@ -2779,21 +2779,21 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2779
2779
  var i, n, o, r, u, f, m, P, T;
2780
2780
  if (!t || t.length === 0)
2781
2781
  throw new Error("latlngs not passed");
2782
- lt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
2783
- var S = B([0, 0]), I = J(t), tt = I.getNorthWest().distanceTo(I.getSouthWest()) * I.getNorthEast().distanceTo(I.getNorthWest());
2784
- tt < 1700 && (S = hi(t));
2785
- var $ = t.length, ct = [];
2782
+ dt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
2783
+ var k = B([0, 0]), I = J(t), it = I.getNorthWest().distanceTo(I.getSouthWest()) * I.getNorthEast().distanceTo(I.getNorthWest());
2784
+ it < 1700 && (k = ui(t));
2785
+ var $ = t.length, ft = [];
2786
2786
  for (i = 0; i < $; i++) {
2787
- var st = B(t[i]);
2788
- ct.push(e.project(B([st.lat - S.lat, st.lng - S.lng])));
2787
+ var rt = B(t[i]);
2788
+ ft.push(e.project(B([rt.lat - k.lat, rt.lng - k.lng])));
2789
2789
  }
2790
2790
  for (f = m = P = 0, i = 0, n = $ - 1; i < $; n = i++)
2791
- o = ct[i], r = ct[n], u = o.y * r.x - r.y * o.x, m += (o.x + r.x) * u, P += (o.y + r.y) * u, f += u * 3;
2792
- f === 0 ? T = ct[0] : T = [m / f, P / f];
2793
- var Vt = e.unproject(E(T));
2794
- return B([Vt.lat + S.lat, Vt.lng + S.lng]);
2791
+ o = ft[i], r = ft[n], u = o.y * r.x - r.y * o.x, m += (o.x + r.x) * u, P += (o.y + r.y) * u, f += u * 3;
2792
+ f === 0 ? T = ft[0] : T = [m / f, P / f];
2793
+ var qt = e.unproject(E(T));
2794
+ return B([qt.lat + k.lat, qt.lng + k.lng]);
2795
2795
  }
2796
- function hi(t) {
2796
+ function ui(t) {
2797
2797
  for (var e = 0, i = 0, n = 0, o = 0; o < t.length; o++) {
2798
2798
  var r = B(t[o]);
2799
2799
  e += r.lat, i += r.lng, n++;
@@ -2804,7 +2804,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2804
2804
  __proto__: null,
2805
2805
  clipPolygon: cn,
2806
2806
  polygonCenter: dn,
2807
- centroid: hi
2807
+ centroid: ui
2808
2808
  };
2809
2809
  function fn(t, e) {
2810
2810
  if (!e || !t.length)
@@ -2820,17 +2820,17 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2820
2820
  }
2821
2821
  function Ko(t, e) {
2822
2822
  var i = t.length, n = typeof Uint8Array < "u" ? Uint8Array : Array, o = new n(i);
2823
- o[0] = o[i - 1] = 1, ui(t, o, e, 0, i - 1);
2823
+ o[0] = o[i - 1] = 1, li(t, o, e, 0, i - 1);
2824
2824
  var r, u = [];
2825
2825
  for (r = 0; r < i; r++)
2826
2826
  o[r] && u.push(t[r]);
2827
2827
  return u;
2828
2828
  }
2829
- function ui(t, e, i, n, o) {
2829
+ function li(t, e, i, n, o) {
2830
2830
  var r = 0, u, f, m;
2831
2831
  for (f = n + 1; f <= o - 1; f++)
2832
2832
  m = oe(t[f], t[n], t[o], !0), m > r && (u = f, r = m);
2833
- r > i && (e[u] = 1, ui(t, e, i, n, u), ui(t, e, i, u, o));
2833
+ r > i && (e[u] = 1, li(t, e, i, n, u), li(t, e, i, u, o));
2834
2834
  }
2835
2835
  function Yo(t, e) {
2836
2836
  for (var i = [t[0]], n = 1, o = 0, r = t.length; n < r; n++)
@@ -2839,20 +2839,20 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2839
2839
  }
2840
2840
  var pn;
2841
2841
  function mn(t, e, i, n, o) {
2842
- var r = n ? pn : It(t, i), u = It(e, i), f, m, P;
2842
+ var r = n ? pn : Nt(t, i), u = Nt(e, i), f, m, P;
2843
2843
  for (pn = u; ; ) {
2844
2844
  if (!(r | u))
2845
2845
  return [t, e];
2846
2846
  if (r & u)
2847
2847
  return !1;
2848
- f = r || u, m = ge(t, e, f, i, o), P = It(m, i), f === r ? (t = m, r = P) : (e = m, u = P);
2848
+ f = r || u, m = ge(t, e, f, i, o), P = Nt(m, i), f === r ? (t = m, r = P) : (e = m, u = P);
2849
2849
  }
2850
2850
  }
2851
2851
  function ge(t, e, i, n, o) {
2852
2852
  var r = e.x - t.x, u = e.y - t.y, f = n.min, m = n.max, P, T;
2853
2853
  return i & 8 ? (P = t.x + r * (m.y - t.y) / u, T = m.y) : i & 4 ? (P = t.x + r * (f.y - t.y) / u, T = f.y) : i & 2 ? (P = m.x, T = t.y + u * (m.x - t.x) / r) : i & 1 && (P = f.x, T = t.y + u * (f.x - t.x) / r), new O(P, T, o);
2854
2854
  }
2855
- function It(t, e) {
2855
+ function Nt(t, e) {
2856
2856
  var i = 0;
2857
2857
  return t.x < e.min.x ? i |= 1 : t.x > e.max.x && (i |= 2), t.y < e.min.y ? i |= 4 : t.y > e.max.y && (i |= 8), i;
2858
2858
  }
@@ -2864,30 +2864,30 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2864
2864
  var o = e.x, r = e.y, u = i.x - o, f = i.y - r, m = u * u + f * f, P;
2865
2865
  return m > 0 && (P = ((t.x - o) * u + (t.y - r) * f) / m, P > 1 ? (o = i.x, r = i.y) : P > 0 && (o += u * P, r += f * P)), u = t.x - o, f = t.y - r, n ? u * u + f * f : new O(o, r);
2866
2866
  }
2867
- function lt(t) {
2868
- return !U(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
2867
+ function dt(t) {
2868
+ return !W(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
2869
2869
  }
2870
2870
  function gn(t) {
2871
- return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), lt(t);
2871
+ return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), dt(t);
2872
2872
  }
2873
2873
  function vn(t, e) {
2874
2874
  var i, n, o, r, u, f, m, P;
2875
2875
  if (!t || t.length === 0)
2876
2876
  throw new Error("latlngs not passed");
2877
- lt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
2878
- var T = B([0, 0]), S = J(t), I = S.getNorthWest().distanceTo(S.getSouthWest()) * S.getNorthEast().distanceTo(S.getNorthWest());
2879
- I < 1700 && (T = hi(t));
2880
- var tt = t.length, $ = [];
2881
- for (i = 0; i < tt; i++) {
2882
- var ct = B(t[i]);
2883
- $.push(e.project(B([ct.lat - T.lat, ct.lng - T.lng])));
2877
+ dt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
2878
+ var T = B([0, 0]), k = J(t), I = k.getNorthWest().distanceTo(k.getSouthWest()) * k.getNorthEast().distanceTo(k.getNorthWest());
2879
+ I < 1700 && (T = ui(t));
2880
+ var it = t.length, $ = [];
2881
+ for (i = 0; i < it; i++) {
2882
+ var ft = B(t[i]);
2883
+ $.push(e.project(B([ft.lat - T.lat, ft.lng - T.lng])));
2884
2884
  }
2885
- for (i = 0, n = 0; i < tt - 1; i++)
2885
+ for (i = 0, n = 0; i < it - 1; i++)
2886
2886
  n += $[i].distanceTo($[i + 1]) / 2;
2887
2887
  if (n === 0)
2888
2888
  P = $[0];
2889
2889
  else
2890
- for (i = 0, r = 0; i < tt - 1; i++)
2890
+ for (i = 0, r = 0; i < it - 1; i++)
2891
2891
  if (u = $[i], f = $[i + 1], o = u.distanceTo(f), r += o, r > n) {
2892
2892
  m = (r - n) / o, P = [
2893
2893
  f.x - m * (f.x - u.x),
@@ -2895,8 +2895,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2895
2895
  ];
2896
2896
  break;
2897
2897
  }
2898
- var st = e.unproject(E(P));
2899
- return B([st.lat + T.lat, st.lng + T.lng]);
2898
+ var rt = e.unproject(E(P));
2899
+ return B([rt.lat + T.lat, rt.lng + T.lng]);
2900
2900
  }
2901
2901
  var $o = {
2902
2902
  __proto__: null,
@@ -2905,23 +2905,23 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2905
2905
  closestPointOnSegment: Jo,
2906
2906
  clipSegment: mn,
2907
2907
  _getEdgeIntersection: ge,
2908
- _getBitCode: It,
2908
+ _getBitCode: Nt,
2909
2909
  _sqClosestPointOnSegment: oe,
2910
- isFlat: lt,
2910
+ isFlat: dt,
2911
2911
  _flat: gn,
2912
2912
  polylineCenter: vn
2913
- }, li = {
2913
+ }, ci = {
2914
2914
  project: function(t) {
2915
2915
  return new O(t.lng, t.lat);
2916
2916
  },
2917
2917
  unproject: function(t) {
2918
2918
  return new D(t.y, t.x);
2919
2919
  },
2920
- bounds: new W([-180, -90], [180, 90])
2921
- }, ci = {
2920
+ bounds: new V([-180, -90], [180, 90])
2921
+ }, di = {
2922
2922
  R: 6378137,
2923
2923
  R_MINOR: 6356752314245179e-9,
2924
- bounds: new W([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
2924
+ bounds: new V([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
2925
2925
  project: function(t) {
2926
2926
  var e = Math.PI / 180, i = this.R, n = t.lat * e, o = this.R_MINOR / i, r = Math.sqrt(1 - o * o), u = r * Math.sin(n), f = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - u) / (1 + u), r / 2);
2927
2927
  return n = -i * Math.log(Math.max(f, 1e-10)), new O(t.lng * e * i, n);
@@ -2933,22 +2933,22 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2933
2933
  }
2934
2934
  }, Qo = {
2935
2935
  __proto__: null,
2936
- LonLat: li,
2937
- Mercator: ci,
2938
- SphericalMercator: Ne
2939
- }, ts = x({}, Mt, {
2936
+ LonLat: ci,
2937
+ Mercator: di,
2938
+ SphericalMercator: Re
2939
+ }, ts = x({}, kt, {
2940
2940
  code: "EPSG:3395",
2941
- projection: ci,
2941
+ projection: di,
2942
2942
  transformation: function() {
2943
- var t = 0.5 / (Math.PI * ci.R);
2943
+ var t = 0.5 / (Math.PI * di.R);
2944
2944
  return Kt(t, 0.5, -t, 0.5);
2945
2945
  }()
2946
- }), yn = x({}, Mt, {
2946
+ }), yn = x({}, kt, {
2947
2947
  code: "EPSG:4326",
2948
- projection: li,
2948
+ projection: ci,
2949
2949
  transformation: Kt(1 / 180, 1, -1 / 180, 0.5)
2950
- }), es = x({}, wt, {
2951
- projection: li,
2950
+ }), es = x({}, xt, {
2951
+ projection: ci,
2952
2952
  transformation: Kt(1, 0, -1, 0),
2953
2953
  scale: function(t) {
2954
2954
  return Math.pow(2, t);
@@ -2962,8 +2962,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2962
2962
  },
2963
2963
  infinite: !0
2964
2964
  });
2965
- wt.Earth = Mt, wt.EPSG3395 = ts, wt.EPSG3857 = De, wt.EPSG900913 = ro, wt.EPSG4326 = yn, wt.Simple = es;
2966
- var ft = Jt.extend({
2965
+ xt.Earth = kt, xt.EPSG3395 = ts, xt.EPSG3857 = He, xt.EPSG900913 = ro, xt.EPSG4326 = yn, xt.Simple = es;
2966
+ var pt = Jt.extend({
2967
2967
  // Classes extending `L.Layer` will inherit the following options:
2968
2968
  options: {
2969
2969
  // @option pane: String = 'overlayPane'
@@ -3060,7 +3060,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3060
3060
  return this;
3061
3061
  },
3062
3062
  _addLayers: function(t) {
3063
- t = t ? U(t) ? t : [t] : [];
3063
+ t = t ? W(t) ? t : [t] : [];
3064
3064
  for (var e = 0, i = t.length; e < i; e++)
3065
3065
  this.addLayer(t[e]);
3066
3066
  },
@@ -3080,7 +3080,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3080
3080
  this._layersMaxZoom = e === -1 / 0 ? void 0 : e, this._layersMinZoom = t === 1 / 0 ? void 0 : t, i !== this._getZoomSpan() && this.fire("zoomlevelschange"), this.options.maxZoom === void 0 && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom && this.setZoom(this._layersMaxZoom), this.options.minZoom === void 0 && this._layersMinZoom && this.getZoom() < this._layersMinZoom && this.setZoom(this._layersMinZoom);
3081
3081
  }
3082
3082
  });
3083
- var Ht = ft.extend({
3083
+ var Ft = pt.extend({
3084
3084
  initialize: function(t, e) {
3085
3085
  C(this, e), this._layers = {};
3086
3086
  var i, n;
@@ -3167,13 +3167,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3167
3167
  return l(t);
3168
3168
  }
3169
3169
  }), is = function(t, e) {
3170
- return new Ht(t, e);
3171
- }, bt = Ht.extend({
3170
+ return new Ft(t, e);
3171
+ }, Ct = Ft.extend({
3172
3172
  addLayer: function(t) {
3173
- return this.hasLayer(t) ? this : (t.addEventParent(this), Ht.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t }));
3173
+ return this.hasLayer(t) ? this : (t.addEventParent(this), Ft.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t }));
3174
3174
  },
3175
3175
  removeLayer: function(t) {
3176
- return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this), Ht.prototype.removeLayer.call(this, t), this.fire("layerremove", { layer: t })) : this;
3176
+ return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this), Ft.prototype.removeLayer.call(this, t), this.fire("layerremove", { layer: t })) : this;
3177
3177
  },
3178
3178
  // @method setStyle(style: Path options): this
3179
3179
  // Sets the given path options to each layer of the group that has a `setStyle` method.
@@ -3193,7 +3193,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3193
3193
  // @method getBounds(): LatLngBounds
3194
3194
  // Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).
3195
3195
  getBounds: function() {
3196
- var t = new ot();
3196
+ var t = new st();
3197
3197
  for (var e in this._layers) {
3198
3198
  var i = this._layers[e];
3199
3199
  t.extend(i.getBounds ? i.getBounds() : i.getLatLng());
@@ -3201,8 +3201,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3201
3201
  return t;
3202
3202
  }
3203
3203
  }), ns = function(t, e) {
3204
- return new bt(t, e);
3205
- }, Ft = Lt.extend({
3204
+ return new Ct(t, e);
3205
+ }, Gt = Pt.extend({
3206
3206
  /* @section
3207
3207
  * @aka Icon options
3208
3208
  *
@@ -3285,13 +3285,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3285
3285
  return e = e || document.createElement("img"), e.src = t, e;
3286
3286
  },
3287
3287
  _getIconUrl: function(t) {
3288
- return k.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
3288
+ return S.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
3289
3289
  }
3290
3290
  });
3291
3291
  function os(t) {
3292
- return new Ft(t);
3292
+ return new Gt(t);
3293
3293
  }
3294
- var se = Ft.extend({
3294
+ var se = Gt.extend({
3295
3295
  options: {
3296
3296
  iconUrl: "marker-icon.png",
3297
3297
  iconRetinaUrl: "marker-icon-2x.png",
@@ -3303,7 +3303,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3303
3303
  shadowSize: [41, 41]
3304
3304
  },
3305
3305
  _getIconUrl: function(t) {
3306
- return typeof se.imagePath != "string" && (se.imagePath = this._detectIconPath()), (this.options.imagePath || se.imagePath) + Ft.prototype._getIconUrl.call(this, t);
3306
+ return typeof se.imagePath != "string" && (se.imagePath = this._detectIconPath()), (this.options.imagePath || se.imagePath) + Gt.prototype._getIconUrl.call(this, t);
3307
3307
  },
3308
3308
  _stripUrl: function(t) {
3309
3309
  var e = function(i, n, o) {
@@ -3319,13 +3319,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3319
3319
  var i = document.querySelector('link[href$="leaflet.css"]');
3320
3320
  return i ? i.href.substring(0, i.href.length - 11 - 1) : "";
3321
3321
  }
3322
- }), Ln = mt.extend({
3322
+ }), Ln = vt.extend({
3323
3323
  initialize: function(t) {
3324
3324
  this._marker = t;
3325
3325
  },
3326
3326
  addHooks: function() {
3327
3327
  var t = this._marker._icon;
3328
- this._draggable || (this._draggable = new kt(t, t, !0)), this._draggable.on({
3328
+ this._draggable || (this._draggable = new Et(t, t, !0)), this._draggable.on({
3329
3329
  dragstart: this._onDragStart,
3330
3330
  predrag: this._onPreDrag,
3331
3331
  drag: this._onDrag,
@@ -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 = zt(e._icon), u = i.getPixelBounds(), f = i.getPixelOrigin(), m = nt(
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(
3348
3348
  u.min._subtract(f).add(o),
3349
3349
  u.max._subtract(f).subtract(o)
3350
3350
  );
@@ -3353,23 +3353,23 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3353
3353
  (Math.max(m.max.x, r.x) - m.max.x) / (u.max.x - m.max.x) - (Math.min(m.min.x, r.x) - m.min.x) / (u.min.x - m.min.x),
3354
3354
  (Math.max(m.max.y, r.y) - m.max.y) / (u.max.y - m.max.y) - (Math.min(m.min.y, r.y) - m.min.y) / (u.min.y - m.min.y)
3355
3355
  ).multiplyBy(n);
3356
- i.panBy(P, { animate: !1 }), this._draggable._newPos._add(P), this._draggable._startPos._add(P), K(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = it(this._adjustPan.bind(this, t));
3356
+ i.panBy(P, { animate: !1 }), this._draggable._newPos._add(P), this._draggable._startPos._add(P), K(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = nt(this._adjustPan.bind(this, t));
3357
3357
  }
3358
3358
  },
3359
3359
  _onDragStart: function() {
3360
3360
  this._oldLatLng = this._marker.getLatLng(), this._marker.closePopup && this._marker.closePopup(), this._marker.fire("movestart").fire("dragstart");
3361
3361
  },
3362
3362
  _onPreDrag: function(t) {
3363
- this._marker.options.autoPan && (ht(this._panRequest), this._panRequest = it(this._adjustPan.bind(this, t)));
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 = zt(e._icon), o = e._map.layerPointToLatLng(n);
3366
+ var e = this._marker, i = e._shadow, n = At(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) {
3370
- ht(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
3370
+ lt(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
3371
3371
  }
3372
- }), ve = ft.extend({
3372
+ }), ve = pt.extend({
3373
3373
  // @section
3374
3374
  // @aka Marker options
3375
3375
  options: {
@@ -3501,10 +3501,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3501
3501
  this.options.riseOnHover && this.off({
3502
3502
  mouseover: this._bringToFront,
3503
3503
  mouseout: this._resetZIndex
3504
- }), this.options.autoPanOnFocus && F(this._icon, "focus", this._panOnFocus, this), V(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null;
3504
+ }), this.options.autoPanOnFocus && F(this._icon, "focus", this._panOnFocus, this), q(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null;
3505
3505
  },
3506
3506
  _removeShadow: function() {
3507
- this._shadow && V(this._shadow), this._shadow = null;
3507
+ this._shadow && q(this._shadow), this._shadow = null;
3508
3508
  },
3509
3509
  _setPos: function(t) {
3510
3510
  this._icon && K(this._icon, t), this._shadow && K(this._shadow, t), this._zIndex = t.y + this.options.zIndexOffset, this._resetZIndex();
@@ -3529,7 +3529,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3529
3529
  },
3530
3530
  _updateOpacity: function() {
3531
3531
  var t = this.options.opacity;
3532
- this._icon && ut(this._icon, t), this._shadow && ut(this._shadow, t);
3532
+ this._icon && ct(this._icon, t), this._shadow && ct(this._shadow, t);
3533
3533
  },
3534
3534
  _bringToFront: function() {
3535
3535
  this._updateZIndex(this.options.riseOffset);
@@ -3557,7 +3557,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3557
3557
  function ss(t, e) {
3558
3558
  return new ve(t, e);
3559
3559
  }
3560
- var St = ft.extend({
3560
+ var Ot = pt.extend({
3561
3561
  // @section
3562
3562
  // @aka Path options
3563
3563
  options: {
@@ -3643,7 +3643,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3643
3643
  _clickTolerance: function() {
3644
3644
  return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0);
3645
3645
  }
3646
- }), ye = St.extend({
3646
+ }), ye = Ot.extend({
3647
3647
  // @section
3648
3648
  // @aka CircleMarker options
3649
3649
  options: {
@@ -3678,14 +3678,14 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3678
3678
  },
3679
3679
  setStyle: function(t) {
3680
3680
  var e = t && t.radius || this._radius;
3681
- return St.prototype.setStyle.call(this, t), this.setRadius(e), this;
3681
+ return Ot.prototype.setStyle.call(this, t), this.setRadius(e), this;
3682
3682
  },
3683
3683
  _project: function() {
3684
3684
  this._point = this._map.latLngToLayerPoint(this._latlng), this._updateBounds();
3685
3685
  },
3686
3686
  _updateBounds: function() {
3687
3687
  var t = this._radius, e = this._radiusY || t, i = this._clickTolerance(), n = [t + i, e + i];
3688
- this._pxBounds = new W(this._point.subtract(n), this._point.add(n));
3688
+ this._pxBounds = new V(this._point.subtract(n), this._point.add(n));
3689
3689
  },
3690
3690
  _update: function() {
3691
3691
  this._map && this._updatePath();
@@ -3704,7 +3704,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3704
3704
  function rs(t, e) {
3705
3705
  return new ye(t, e);
3706
3706
  }
3707
- var di = ye.extend({
3707
+ var fi = ye.extend({
3708
3708
  initialize: function(t, e, i) {
3709
3709
  if (typeof e == "number" && (e = x({}, i, { radius: e })), C(this, e), this._latlng = B(t), isNaN(this.options.radius))
3710
3710
  throw new Error("Circle radius cannot be NaN");
@@ -3724,28 +3724,28 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3724
3724
  // Returns the `LatLngBounds` of the path.
3725
3725
  getBounds: function() {
3726
3726
  var t = [this._radius, this._radiusY || this._radius];
3727
- return new ot(
3727
+ return new st(
3728
3728
  this._map.layerPointToLatLng(this._point.subtract(t)),
3729
3729
  this._map.layerPointToLatLng(this._point.add(t))
3730
3730
  );
3731
3731
  },
3732
- setStyle: St.prototype.setStyle,
3732
+ setStyle: Ot.prototype.setStyle,
3733
3733
  _project: function() {
3734
3734
  var t = this._latlng.lng, e = this._latlng.lat, i = this._map, n = i.options.crs;
3735
- if (n.distance === Mt.distance) {
3736
- var o = Math.PI / 180, r = this._mRadius / Mt.R / o, u = i.project([e + r, t]), f = i.project([e - r, t]), m = u.add(f).divideBy(2), P = i.unproject(m).lat, T = Math.acos((Math.cos(r * o) - Math.sin(e * o) * Math.sin(P * o)) / (Math.cos(e * o) * Math.cos(P * o))) / o;
3735
+ if (n.distance === kt.distance) {
3736
+ var o = Math.PI / 180, r = this._mRadius / kt.R / o, u = i.project([e + r, t]), f = i.project([e - r, t]), m = u.add(f).divideBy(2), P = i.unproject(m).lat, T = Math.acos((Math.cos(r * o) - Math.sin(e * o) * Math.sin(P * o)) / (Math.cos(e * o) * Math.cos(P * o))) / o;
3737
3737
  (isNaN(T) || T === 0) && (T = r / Math.cos(Math.PI / 180 * e)), this._point = m.subtract(i.getPixelOrigin()), this._radius = isNaN(T) ? 0 : m.x - i.project([P, t - T]).x, this._radiusY = m.y - u.y;
3738
3738
  } else {
3739
- var S = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
3740
- this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(S).x;
3739
+ var k = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
3740
+ this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(k).x;
3741
3741
  }
3742
3742
  this._updateBounds();
3743
3743
  }
3744
3744
  });
3745
3745
  function as(t, e, i) {
3746
- return new di(t, e, i);
3746
+ return new fi(t, e, i);
3747
3747
  }
3748
- var Pt = St.extend({
3748
+ var Tt = Ot.extend({
3749
3749
  // @section
3750
3750
  // @aka Polyline options
3751
3751
  options: {
@@ -3781,8 +3781,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3781
3781
  for (var e = 1 / 0, i = null, n = oe, o, r, u = 0, f = this._parts.length; u < f; u++)
3782
3782
  for (var m = this._parts[u], P = 1, T = m.length; P < T; P++) {
3783
3783
  o = m[P - 1], r = m[P];
3784
- var S = n(t, o, r, !0);
3785
- S < e && (e = S, i = n(t, o, r));
3784
+ var k = n(t, o, r, !0);
3785
+ k < e && (e = k, i = n(t, o, r));
3786
3786
  }
3787
3787
  return i && (i.distance = Math.sqrt(e)), i;
3788
3788
  },
@@ -3806,24 +3806,24 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3806
3806
  return e = e || this._defaultShape(), t = B(t), e.push(t), this._bounds.extend(t), this.redraw();
3807
3807
  },
3808
3808
  _setLatLngs: function(t) {
3809
- this._bounds = new ot(), this._latlngs = this._convertLatLngs(t);
3809
+ this._bounds = new st(), this._latlngs = this._convertLatLngs(t);
3810
3810
  },
3811
3811
  _defaultShape: function() {
3812
- return lt(this._latlngs) ? this._latlngs : this._latlngs[0];
3812
+ return dt(this._latlngs) ? this._latlngs : this._latlngs[0];
3813
3813
  },
3814
3814
  // recursively convert latlngs input into actual LatLng instances; calculate bounds along the way
3815
3815
  _convertLatLngs: function(t) {
3816
- for (var e = [], i = lt(t), n = 0, o = t.length; n < o; n++)
3816
+ for (var e = [], i = dt(t), n = 0, o = t.length; n < o; n++)
3817
3817
  i ? (e[n] = B(t[n]), this._bounds.extend(e[n])) : e[n] = this._convertLatLngs(t[n]);
3818
3818
  return e;
3819
3819
  },
3820
3820
  _project: function() {
3821
- var t = new W();
3821
+ var t = new V();
3822
3822
  this._rings = [], this._projectLatlngs(this._latlngs, this._rings, t), this._bounds.isValid() && t.isValid() && (this._rawPxBounds = t, this._updateBounds());
3823
3823
  },
3824
3824
  _updateBounds: function() {
3825
3825
  var t = this._clickTolerance(), e = new O(t, t);
3826
- this._rawPxBounds && (this._pxBounds = new W([
3826
+ this._rawPxBounds && (this._pxBounds = new V([
3827
3827
  this._rawPxBounds.min.subtract(e),
3828
3828
  this._rawPxBounds.max.add(e)
3829
3829
  ]));
@@ -3877,10 +3877,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3877
3877
  }
3878
3878
  });
3879
3879
  function hs(t, e) {
3880
- return new Pt(t, e);
3880
+ return new Tt(t, e);
3881
3881
  }
3882
- Pt._flat = gn;
3883
- var Gt = Pt.extend({
3882
+ Tt._flat = gn;
3883
+ var Ut = Tt.extend({
3884
3884
  options: {
3885
3885
  fill: !0
3886
3886
  },
@@ -3895,18 +3895,18 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3895
3895
  return dn(this._defaultShape(), this._map.options.crs);
3896
3896
  },
3897
3897
  _convertLatLngs: function(t) {
3898
- var e = Pt.prototype._convertLatLngs.call(this, t), i = e.length;
3898
+ var e = Tt.prototype._convertLatLngs.call(this, t), i = e.length;
3899
3899
  return i >= 2 && e[0] instanceof D && e[0].equals(e[i - 1]) && e.pop(), e;
3900
3900
  },
3901
3901
  _setLatLngs: function(t) {
3902
- Pt.prototype._setLatLngs.call(this, t), lt(this._latlngs) && (this._latlngs = [this._latlngs]);
3902
+ Tt.prototype._setLatLngs.call(this, t), dt(this._latlngs) && (this._latlngs = [this._latlngs]);
3903
3903
  },
3904
3904
  _defaultShape: function() {
3905
- return lt(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
3905
+ return dt(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
3906
3906
  },
3907
3907
  _clipPoints: function() {
3908
3908
  var t = this._renderer._bounds, e = this.options.weight, i = new O(e, e);
3909
- if (t = new W(t.min.subtract(i), t.max.add(i)), this._parts = [], !(!this._pxBounds || !this._pxBounds.intersects(t))) {
3909
+ if (t = new V(t.min.subtract(i), t.max.add(i)), this._parts = [], !(!this._pxBounds || !this._pxBounds.intersects(t))) {
3910
3910
  if (this.options.noClip) {
3911
3911
  this._parts = this._rings;
3912
3912
  return;
@@ -3926,13 +3926,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3926
3926
  for (r = 0, m = this._parts.length; r < m; r++)
3927
3927
  for (i = this._parts[r], u = 0, P = i.length, f = P - 1; u < P; f = u++)
3928
3928
  n = i[u], o = i[f], n.y > t.y != o.y > t.y && t.x < (o.x - n.x) * (t.y - n.y) / (o.y - n.y) + n.x && (e = !e);
3929
- return e || Pt.prototype._containsPoint.call(this, t, !0);
3929
+ return e || Tt.prototype._containsPoint.call(this, t, !0);
3930
3930
  }
3931
3931
  });
3932
3932
  function us(t, e) {
3933
- return new Gt(t, e);
3933
+ return new Ut(t, e);
3934
3934
  }
3935
- var xt = bt.extend({
3935
+ var Mt = Ct.extend({
3936
3936
  /* @section
3937
3937
  * @aka GeoJSON options
3938
3938
  *
@@ -3988,7 +3988,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
3988
3988
  // @method addData( <GeoJSON> data ): this
3989
3989
  // Adds a GeoJSON object to the layer.
3990
3990
  addData: function(t) {
3991
- var e = U(t) ? t : t.features, i, n, o;
3991
+ var e = W(t) ? t : t.features, i, n, o;
3992
3992
  if (e) {
3993
3993
  for (i = 0, n = e.length; i < n; i++)
3994
3994
  o = e[i], (o.geometries || o.geometry || o.features || o.coordinates) && this.addData(o);
@@ -4018,7 +4018,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4018
4018
  }
4019
4019
  });
4020
4020
  function Le(t, e) {
4021
- var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], r = e && e.pointToLayer, u = e && e.coordsToLatLng || fi, f, m, P, T;
4021
+ var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], r = e && e.pointToLayer, u = e && e.coordsToLatLng || _i, f, m, P, T;
4022
4022
  if (!n && !i)
4023
4023
  return null;
4024
4024
  switch (i.type) {
@@ -4027,29 +4027,29 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4027
4027
  case "MultiPoint":
4028
4028
  for (P = 0, T = n.length; P < T; P++)
4029
4029
  f = u(n[P]), o.push(wn(r, t, f, e));
4030
- return new bt(o);
4030
+ return new Ct(o);
4031
4031
  case "LineString":
4032
4032
  case "MultiLineString":
4033
- return m = we(n, i.type === "LineString" ? 0 : 1, u), new Pt(m, e);
4033
+ return m = we(n, i.type === "LineString" ? 0 : 1, u), new Tt(m, e);
4034
4034
  case "Polygon":
4035
4035
  case "MultiPolygon":
4036
- return m = we(n, i.type === "Polygon" ? 1 : 2, u), new Gt(m, e);
4036
+ return m = we(n, i.type === "Polygon" ? 1 : 2, u), new Ut(m, e);
4037
4037
  case "GeometryCollection":
4038
4038
  for (P = 0, T = i.geometries.length; P < T; P++) {
4039
- var S = Le({
4039
+ var k = Le({
4040
4040
  geometry: i.geometries[P],
4041
4041
  type: "Feature",
4042
4042
  properties: t.properties
4043
4043
  }, e);
4044
- S && o.push(S);
4044
+ k && o.push(k);
4045
4045
  }
4046
- return new bt(o);
4046
+ return new Ct(o);
4047
4047
  case "FeatureCollection":
4048
4048
  for (P = 0, T = i.features.length; P < T; P++) {
4049
4049
  var I = Le(i.features[P], e);
4050
4050
  I && o.push(I);
4051
4051
  }
4052
- return new bt(o);
4052
+ return new Ct(o);
4053
4053
  default:
4054
4054
  throw new Error("Invalid GeoJSON object.");
4055
4055
  }
@@ -4057,23 +4057,23 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4057
4057
  function wn(t, e, i, n) {
4058
4058
  return t ? t(e, i) : new ve(i, n && n.markersInheritOptions && n);
4059
4059
  }
4060
- function fi(t) {
4060
+ function _i(t) {
4061
4061
  return new D(t[1], t[0], t[2]);
4062
4062
  }
4063
4063
  function we(t, e, i) {
4064
4064
  for (var n = [], o = 0, r = t.length, u; o < r; o++)
4065
- u = e ? we(t[o], e - 1, i) : (i || fi)(t[o]), n.push(u);
4065
+ u = e ? we(t[o], e - 1, i) : (i || _i)(t[o]), n.push(u);
4066
4066
  return n;
4067
4067
  }
4068
- function _i(t, e) {
4068
+ function pi(t, e) {
4069
4069
  return t = B(t), t.alt !== void 0 ? [b(t.lng, e), b(t.lat, e), b(t.alt, e)] : [b(t.lng, e), b(t.lat, e)];
4070
4070
  }
4071
4071
  function be(t, e, i, n) {
4072
4072
  for (var o = [], r = 0, u = t.length; r < u; r++)
4073
- o.push(e ? be(t[r], lt(t[r]) ? 0 : e - 1, i, n) : _i(t[r], n));
4073
+ o.push(e ? be(t[r], dt(t[r]) ? 0 : e - 1, i, n) : pi(t[r], n));
4074
4074
  return !e && i && o.length > 0 && o.push(o[0].slice()), o;
4075
4075
  }
4076
- function Ut(t, e) {
4076
+ function Wt(t, e) {
4077
4077
  return t.feature ? x({}, t.feature, { geometry: e }) : Pe(e);
4078
4078
  }
4079
4079
  function Pe(t) {
@@ -4083,36 +4083,36 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4083
4083
  geometry: t
4084
4084
  };
4085
4085
  }
4086
- var pi = {
4086
+ var mi = {
4087
4087
  toGeoJSON: function(t) {
4088
- return Ut(this, {
4088
+ return Wt(this, {
4089
4089
  type: "Point",
4090
- coordinates: _i(this.getLatLng(), t)
4090
+ coordinates: pi(this.getLatLng(), t)
4091
4091
  });
4092
4092
  }
4093
4093
  };
4094
- ve.include(pi), di.include(pi), ye.include(pi), Pt.include({
4094
+ ve.include(mi), fi.include(mi), ye.include(mi), Tt.include({
4095
4095
  toGeoJSON: function(t) {
4096
- var e = !lt(this._latlngs), i = be(this._latlngs, e ? 1 : 0, !1, t);
4097
- return Ut(this, {
4096
+ var e = !dt(this._latlngs), i = be(this._latlngs, e ? 1 : 0, !1, t);
4097
+ return Wt(this, {
4098
4098
  type: (e ? "Multi" : "") + "LineString",
4099
4099
  coordinates: i
4100
4100
  });
4101
4101
  }
4102
- }), Gt.include({
4102
+ }), Ut.include({
4103
4103
  toGeoJSON: function(t) {
4104
- var e = !lt(this._latlngs), i = e && !lt(this._latlngs[0]), n = be(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
4105
- return e || (n = [n]), Ut(this, {
4104
+ var e = !dt(this._latlngs), i = e && !dt(this._latlngs[0]), n = be(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
4105
+ return e || (n = [n]), Wt(this, {
4106
4106
  type: (i ? "Multi" : "") + "Polygon",
4107
4107
  coordinates: n
4108
4108
  });
4109
4109
  }
4110
- }), Ht.include({
4110
+ }), Ft.include({
4111
4111
  toMultiPoint: function(t) {
4112
4112
  var e = [];
4113
4113
  return this.eachLayer(function(i) {
4114
4114
  e.push(i.toGeoJSON(t).geometry.coordinates);
4115
- }), Ut(this, {
4115
+ }), Wt(this, {
4116
4116
  type: "MultiPoint",
4117
4117
  coordinates: e
4118
4118
  });
@@ -4135,7 +4135,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4135
4135
  u.type === "FeatureCollection" ? n.push.apply(n, u.features) : n.push(u);
4136
4136
  }
4137
4137
  }
4138
- }), i ? Ut(this, {
4138
+ }), i ? Wt(this, {
4139
4139
  geometries: n,
4140
4140
  type: "GeometryCollection"
4141
4141
  }) : {
@@ -4145,9 +4145,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4145
4145
  }
4146
4146
  });
4147
4147
  function bn(t, e) {
4148
- return new xt(t, e);
4148
+ return new Mt(t, e);
4149
4149
  }
4150
- var ls = bn, xe = ft.extend({
4150
+ var ls = bn, xe = pt.extend({
4151
4151
  // @section
4152
4152
  // @aka ImageOverlay options
4153
4153
  options: {
@@ -4182,7 +4182,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4182
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();
4183
4183
  },
4184
4184
  onRemove: function() {
4185
- V(this._image), this.options.interactive && this.removeInteractiveTarget(this._image);
4185
+ q(this._image), this.options.interactive && this.removeInteractiveTarget(this._image);
4186
4186
  },
4187
4187
  // @method setOpacity(opacity: Number): this
4188
4188
  // Sets the opacity of the overlay.
@@ -4195,12 +4195,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4195
4195
  // @method bringToFront(): this
4196
4196
  // Brings the layer to the top of all overlays.
4197
4197
  bringToFront: function() {
4198
- return this._map && Rt(this._image), this;
4198
+ return this._map && Dt(this._image), this;
4199
4199
  },
4200
4200
  // @method bringToBack(): this
4201
4201
  // Brings the layer to the bottom of all overlays.
4202
4202
  bringToBack: function() {
4203
- return this._map && Dt(this._image), this;
4203
+ return this._map && Ht(this._image), this;
4204
4204
  },
4205
4205
  // @method setUrl(url: String): this
4206
4206
  // Changes the URL of the image.
@@ -4245,17 +4245,17 @@ 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
- Ot(this._image, i, e);
4248
+ Zt(this._image, i, e);
4249
4249
  },
4250
4250
  _reset: function() {
4251
- var t = this._image, e = new W(
4251
+ var t = this._image, e = new V(
4252
4252
  this._map.latLngToLayerPoint(this._bounds.getNorthWest()),
4253
4253
  this._map.latLngToLayerPoint(this._bounds.getSouthEast())
4254
4254
  ), i = e.getSize();
4255
4255
  K(t, e.min), t.style.width = i.x + "px", t.style.height = i.y + "px";
4256
4256
  },
4257
4257
  _updateOpacity: function() {
4258
- ut(this._image, this.options.opacity);
4258
+ ct(this._image, this.options.opacity);
4259
4259
  },
4260
4260
  _updateZIndex: function() {
4261
4261
  this._image && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._image.style.zIndex = this.options.zIndex);
@@ -4302,7 +4302,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4302
4302
  this._url = i.length > 0 ? n : [e.src];
4303
4303
  return;
4304
4304
  }
4305
- U(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(e.style, "objectFit") && (e.style.objectFit = "fill"), e.autoplay = !!this.options.autoplay, e.loop = !!this.options.loop, e.muted = !!this.options.muted, e.playsInline = !!this.options.playsInline;
4305
+ W(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(e.style, "objectFit") && (e.style.objectFit = "fill"), e.autoplay = !!this.options.autoplay, e.loop = !!this.options.loop, e.muted = !!this.options.muted, e.playsInline = !!this.options.playsInline;
4306
4306
  for (var r = 0; r < this._url.length; r++) {
4307
4307
  var u = R("source");
4308
4308
  u.src = this._url[r], e.appendChild(u);
@@ -4327,7 +4327,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4327
4327
  function fs(t, e, i) {
4328
4328
  return new xn(t, e, i);
4329
4329
  }
4330
- var gt = ft.extend({
4330
+ var yt = pt.extend({
4331
4331
  // @section
4332
4332
  // @aka DivOverlay options
4333
4333
  options: {
@@ -4349,7 +4349,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4349
4349
  content: ""
4350
4350
  },
4351
4351
  initialize: function(t, e) {
4352
- t && (t instanceof D || U(t)) ? (this._latlng = B(t), C(this, e)) : (C(this, t), this._source = e), this.options.content && (this._content = this.options.content);
4352
+ t && (t instanceof D || W(t)) ? (this._latlng = B(t), C(this, e)) : (C(this, t), this._source = e), this.options.content && (this._content = this.options.content);
4353
4353
  },
4354
4354
  // @method openOn(map: Map): this
4355
4355
  // Adds the overlay to the map.
@@ -4372,10 +4372,10 @@ 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 && ut(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && ut(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 && (A(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
4376
4376
  },
4377
4377
  onRemove: function(t) {
4378
- t._fadeAnimated ? (ut(this._container, 0), this._removeTimeout = setTimeout(a(V, void 0, this._container), 200)) : V(this._container), this.options.interactive && (j(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
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));
4379
4379
  },
4380
4380
  // @namespace DivOverlay
4381
4381
  // @method getLatLng: LatLng
@@ -4424,19 +4424,19 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4424
4424
  // @method bringToFront: this
4425
4425
  // Brings this overlay in front of other overlays (in the same map pane).
4426
4426
  bringToFront: function() {
4427
- return this._map && Rt(this._container), this;
4427
+ return this._map && Dt(this._container), this;
4428
4428
  },
4429
4429
  // @method bringToBack: this
4430
4430
  // Brings this overlay to the back of other overlays (in the same map pane).
4431
4431
  bringToBack: function() {
4432
- return this._map && Dt(this._container), this;
4432
+ return this._map && Ht(this._container), this;
4433
4433
  },
4434
4434
  // prepare bound overlay to open: update latlng pos / content source (for FeatureGroup)
4435
4435
  _prepareOpen: function(t) {
4436
4436
  var e = this._source;
4437
4437
  if (!e._map)
4438
4438
  return !1;
4439
- if (e instanceof bt) {
4439
+ if (e instanceof Ct) {
4440
4440
  e = null;
4441
4441
  var i = this._source._layers;
4442
4442
  for (var n in i)
@@ -4489,13 +4489,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4489
4489
  var o = e;
4490
4490
  return o instanceof t || (o = new t(n).setContent(e)), i && o.setLatLng(i), o;
4491
4491
  }
4492
- }), ft.include({
4492
+ }), pt.include({
4493
4493
  _initOverlay: function(t, e, i, n) {
4494
4494
  var o = i;
4495
4495
  return o instanceof t ? (C(o, n), o._source = this) : (o = e && !n ? e : new t(n, this), o.setContent(i)), o;
4496
4496
  }
4497
4497
  });
4498
- var Ce = gt.extend({
4498
+ var Ce = yt.extend({
4499
4499
  // @section
4500
4500
  // @aka Popup options
4501
4501
  options: {
@@ -4559,16 +4559,16 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4559
4559
  // Alternative to `map.openPopup(popup)`.
4560
4560
  // Adds the popup to the map and closes the previous one.
4561
4561
  openOn: function(t) {
4562
- return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, gt.prototype.openOn.call(this, t);
4562
+ return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, yt.prototype.openOn.call(this, t);
4563
4563
  },
4564
4564
  onAdd: function(t) {
4565
- gt.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof St || this._source.on("preclick", Zt));
4565
+ yt.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof Ot || this._source.on("preclick", It));
4566
4566
  },
4567
4567
  onRemove: function(t) {
4568
- gt.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof St || this._source.off("preclick", Zt));
4568
+ yt.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof Ot || this._source.off("preclick", It));
4569
4569
  },
4570
4570
  getEvents: function() {
4571
- var t = gt.prototype.getEvents.call(this);
4571
+ var t = yt.prototype.getEvents.call(this);
4572
4572
  return (this.options.closeOnClick !== void 0 ? this.options.closeOnClick : this._map.options.closePopupOnClick) && (t.preclick = this.close), this.options.keepInView && (t.moveend = this._adjustPan), t;
4573
4573
  },
4574
4574
  _initLayout: function() {
@@ -4576,10 +4576,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4576
4576
  "div",
4577
4577
  t + " " + (this.options.className || "") + " leaflet-zoom-animated"
4578
4578
  ), i = this._wrapper = R("div", t + "-content-wrapper", e);
4579
- if (this._contentNode = R("div", t + "-content", i), ie(e), oi(this._contentNode), z(e, "contextmenu", Zt), this._tipContainer = R("div", t + "-tip-container", e), this._tip = R("div", t + "-tip", this._tipContainer), this.options.closeButton) {
4579
+ if (this._contentNode = R("div", t + "-content", i), ie(e), si(this._contentNode), z(e, "contextmenu", It), this._tipContainer = R("div", t + "-tip-container", e), this._tip = R("div", t + "-tip", this._tipContainer), this.options.closeButton) {
4580
4580
  var n = this._closeButton = R("a", t + "-close-button", e);
4581
4581
  n.setAttribute("role", "button"), n.setAttribute("aria-label", "Close popup"), n.href = "#close", n.innerHTML = '<span aria-hidden="true">&#215;</span>', z(n, "click", function(o) {
4582
- Q(o), this.close();
4582
+ tt(o), this.close();
4583
4583
  }, this);
4584
4584
  }
4585
4585
  },
@@ -4602,9 +4602,9 @@ 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(zt(this._container));
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, S = 0;
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 && (S = r.y + i - P.y + m.y), r.y - S - f.y < 0 && (S = r.y - f.y), (T || S) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([T, S]));
4605
+ o._add(At(this._container));
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
+ 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
  }
4609
4609
  },
4610
4610
  _getAnchor: function() {
@@ -4629,7 +4629,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4629
4629
  closePopup: function(t) {
4630
4630
  return t = arguments.length ? t : this._popup, t && t.close(), this;
4631
4631
  }
4632
- }), ft.include({
4632
+ }), pt.include({
4633
4633
  // @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this
4634
4634
  // Binds a popup to the layer with the passed `content` and sets up the
4635
4635
  // necessary event listeners. If a `Function` is passed it will receive
@@ -4655,7 +4655,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4655
4655
  // @method openPopup(latlng?: LatLng): this
4656
4656
  // Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
4657
4657
  openPopup: function(t) {
4658
- return this._popup && (this instanceof bt || (this._popup._source = this), this._popup._prepareOpen(t || this._latlng) && this._popup.openOn(this._map)), this;
4658
+ return this._popup && (this instanceof Ct || (this._popup._source = this), this._popup._prepareOpen(t || this._latlng) && this._popup.openOn(this._map)), this;
4659
4659
  },
4660
4660
  // @method closePopup(): this
4661
4661
  // Closes the popup bound to this layer if it is open.
@@ -4684,9 +4684,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4684
4684
  },
4685
4685
  _openPopup: function(t) {
4686
4686
  if (!(!this._popup || !this._map)) {
4687
- At(t);
4687
+ Bt(t);
4688
4688
  var e = t.layer || t.target;
4689
- if (this._popup._source === e && !(e instanceof St)) {
4689
+ if (this._popup._source === e && !(e instanceof Ot)) {
4690
4690
  this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(t.latlng);
4691
4691
  return;
4692
4692
  }
@@ -4700,7 +4700,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4700
4700
  t.originalEvent.keyCode === 13 && this._openPopup(t);
4701
4701
  }
4702
4702
  });
4703
- var Te = gt.extend({
4703
+ var Te = yt.extend({
4704
4704
  // @section
4705
4705
  // @aka Tooltip options
4706
4706
  options: {
@@ -4727,13 +4727,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4727
4727
  opacity: 0.9
4728
4728
  },
4729
4729
  onAdd: function(t) {
4730
- gt.prototype.onAdd.call(this, t), this.setOpacity(this.options.opacity), t.fire("tooltipopen", { tooltip: this }), this._source && (this.addEventParent(this._source), this._source.fire("tooltipopen", { tooltip: this }, !0));
4730
+ yt.prototype.onAdd.call(this, t), this.setOpacity(this.options.opacity), t.fire("tooltipopen", { tooltip: this }), this._source && (this.addEventParent(this._source), this._source.fire("tooltipopen", { tooltip: this }, !0));
4731
4731
  },
4732
4732
  onRemove: function(t) {
4733
- gt.prototype.onRemove.call(this, t), t.fire("tooltipclose", { tooltip: this }), this._source && (this.removeEventParent(this._source), this._source.fire("tooltipclose", { tooltip: this }, !0));
4733
+ yt.prototype.onRemove.call(this, t), t.fire("tooltipclose", { tooltip: this }), this._source && (this.removeEventParent(this._source), this._source.fire("tooltipclose", { tooltip: this }, !0));
4734
4734
  },
4735
4735
  getEvents: function() {
4736
- var t = gt.prototype.getEvents.call(this);
4736
+ var t = yt.prototype.getEvents.call(this);
4737
4737
  return this.options.permanent || (t.preclick = this.close), t;
4738
4738
  },
4739
4739
  _initLayout: function() {
@@ -4745,15 +4745,15 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4745
4745
  _adjustPan: function() {
4746
4746
  },
4747
4747
  _setPosition: function(t) {
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), S = 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 + S.x) * 2, i = P / 2), t = t.subtract(E(e, i, !0)).add(T).add(S), 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);
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);
4750
4750
  },
4751
4751
  _updatePosition: function() {
4752
4752
  var t = this._map.latLngToLayerPoint(this._latlng);
4753
4753
  this._setPosition(t);
4754
4754
  },
4755
4755
  setOpacity: function(t) {
4756
- this.options.opacity = t, this._container && ut(this._container, t);
4756
+ this.options.opacity = t, this._container && ct(this._container, t);
4757
4757
  },
4758
4758
  _animateZoom: function(t) {
4759
4759
  var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center);
@@ -4779,7 +4779,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4779
4779
  closeTooltip: function(t) {
4780
4780
  return t.close(), this;
4781
4781
  }
4782
- }), ft.include({
4782
+ }), pt.include({
4783
4783
  // @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this
4784
4784
  // Binds a tooltip to the layer with the passed `content` and sets up the
4785
4785
  // necessary event listeners. If a `Function` is passed it will receive
@@ -4804,7 +4804,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4804
4804
  // @method openTooltip(latlng?: LatLng): this
4805
4805
  // Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.
4806
4806
  openTooltip: function(t) {
4807
- return this._tooltip && (this instanceof bt || (this._tooltip._source = this), this._tooltip._prepareOpen(t) && (this._tooltip.openOn(this._map), this.getElement ? this._setAriaDescribedByOnLayer(this) : this.eachLayer && this.eachLayer(this._setAriaDescribedByOnLayer, this))), this;
4807
+ return this._tooltip && (this instanceof Ct || (this._tooltip._source = this), this._tooltip._prepareOpen(t) && (this._tooltip.openOn(this._map), this.getElement ? this._setAriaDescribedByOnLayer(this) : this.eachLayer && this.eachLayer(this._setAriaDescribedByOnLayer, this))), this;
4808
4808
  },
4809
4809
  // @method closeTooltip(): this
4810
4810
  // Closes the tooltip bound to this layer if it is open.
@@ -4863,7 +4863,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4863
4863
  this._tooltip.options.sticky && t.originalEvent && (i = this._map.mouseEventToContainerPoint(t.originalEvent), n = this._map.containerPointToLayerPoint(i), e = this._map.layerPointToLatLng(n)), this._tooltip.setLatLng(e);
4864
4864
  }
4865
4865
  });
4866
- var Cn = Ft.extend({
4866
+ var Cn = Gt.extend({
4867
4867
  options: {
4868
4868
  // @section
4869
4869
  // @aka DivIcon options
@@ -4895,8 +4895,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4895
4895
  function ms(t) {
4896
4896
  return new Cn(t);
4897
4897
  }
4898
- Ft.Default = se;
4899
- var re = ft.extend({
4898
+ Gt.Default = se;
4899
+ var re = pt.extend({
4900
4900
  // @section
4901
4901
  // @aka GridLayer options
4902
4902
  options: {
@@ -4911,7 +4911,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4911
4911
  // `true` by default on mobile browsers, in order to avoid too many requests and keep smooth navigation.
4912
4912
  // `false` otherwise in order to display new tiles _during_ panning, since it is easy to pan outside the
4913
4913
  // [`keepBuffer`](#gridlayer-keepbuffer) option in desktop browsers.
4914
- updateWhenIdle: k.mobile,
4914
+ updateWhenIdle: S.mobile,
4915
4915
  // @option updateWhenZooming: Boolean = true
4916
4916
  // By default, a smooth zoom animation (during a [touch zoom](#map-touchzoom) or a [`flyTo()`](#map-flyto)) will update grid layers every integer zoom level. Setting this option to `false` will update the grid layer only when the smooth animation ends.
4917
4917
  updateWhenZooming: !0,
@@ -4967,17 +4967,17 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4967
4967
  t._addZoomLimit(this);
4968
4968
  },
4969
4969
  onRemove: function(t) {
4970
- this._removeAllTiles(), V(this._container), t._removeZoomLimit(this), this._container = null, this._tileZoom = void 0;
4970
+ this._removeAllTiles(), q(this._container), t._removeZoomLimit(this), this._container = null, this._tileZoom = void 0;
4971
4971
  },
4972
4972
  // @method bringToFront: this
4973
4973
  // Brings the tile layer to the top of all tile layers.
4974
4974
  bringToFront: function() {
4975
- return this._map && (Rt(this._container), this._setAutoZIndex(Math.max)), this;
4975
+ return this._map && (Dt(this._container), this._setAutoZIndex(Math.max)), this;
4976
4976
  },
4977
4977
  // @method bringToBack: this
4978
4978
  // Brings the tile layer to the bottom of all tile layers.
4979
4979
  bringToBack: function() {
4980
- return this._map && (Dt(this._container), this._setAutoZIndex(Math.min)), this;
4980
+ return this._map && (Ht(this._container), this._setAutoZIndex(Math.min)), this;
4981
4981
  },
4982
4982
  // @method getContainer: HTMLElement
4983
4983
  // Returns the HTML element that contains the tiles for this layer.
@@ -5043,17 +5043,17 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5043
5043
  isFinite(i) && (this.options.zIndex = i + t(-1, 1), this._updateZIndex());
5044
5044
  },
5045
5045
  _updateOpacity: function() {
5046
- if (this._map && !k.ielt9) {
5047
- ut(this._container, this.options.opacity);
5046
+ if (this._map && !S.ielt9) {
5047
+ ct(this._container, this.options.opacity);
5048
5048
  var t = +/* @__PURE__ */ new Date(), e = !1, i = !1;
5049
5049
  for (var n in this._tiles) {
5050
5050
  var o = this._tiles[n];
5051
5051
  if (!(!o.current || !o.loaded)) {
5052
5052
  var r = Math.min(1, (t - o.loaded) / 200);
5053
- ut(o.el, r), r < 1 ? e = !0 : (o.active ? i = !0 : this._onOpaqueTile(o), o.active = !0);
5053
+ ct(o.el, r), r < 1 ? e = !0 : (o.active ? i = !0 : this._onOpaqueTile(o), o.active = !0);
5054
5054
  }
5055
5055
  }
5056
- i && !this._noPrune && this._pruneTiles(), e && (ht(this._fadeFrame), this._fadeFrame = it(this._updateOpacity, this));
5056
+ i && !this._noPrune && this._pruneTiles(), e && (lt(this._fadeFrame), this._fadeFrame = nt(this._updateOpacity, this));
5057
5057
  }
5058
5058
  },
5059
5059
  _onOpaqueTile: _,
@@ -5064,7 +5064,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5064
5064
  var t = this._tileZoom, e = this.options.maxZoom;
5065
5065
  if (t !== void 0) {
5066
5066
  for (var i in this._levels)
5067
- i = Number(i), this._levels[i].el.children.length || i === t ? (this._levels[i].el.style.zIndex = e - Math.abs(t - i), this._onUpdateLevel(i)) : (V(this._levels[i].el), this._removeTilesAtZoom(i), this._onRemoveLevel(i), delete this._levels[i]);
5067
+ i = Number(i), this._levels[i].el.children.length || i === t ? (this._levels[i].el.style.zIndex = e - Math.abs(t - i), this._onUpdateLevel(i)) : (q(this._levels[i].el), this._removeTilesAtZoom(i), this._onRemoveLevel(i), delete this._levels[i]);
5068
5068
  var n = this._levels[t], o = this._map;
5069
5069
  return n || (n = this._levels[t] = {}, n.el = R("div", "leaflet-tile-container leaflet-zoom-animated", this._container), n.el.style.zIndex = e, n.origin = o.project(o.unproject(o.getPixelOrigin()), t).round(), n.zoom = t, this._setZoomTransform(n, o.getCenter(), o.getZoom()), _(n.el.offsetWidth), this._onCreateLevel(n)), this._level = n, n;
5070
5070
  }
@@ -5100,7 +5100,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5100
5100
  },
5101
5101
  _invalidateAll: function() {
5102
5102
  for (var t in this._levels)
5103
- V(this._levels[t].el), this._onRemoveLevel(Number(t)), delete this._levels[t];
5103
+ q(this._levels[t].el), this._onRemoveLevel(Number(t)), delete this._levels[t];
5104
5104
  this._removeAllTiles(), this._tileZoom = void 0;
5105
5105
  },
5106
5106
  _retainParent: function(t, e, i, n) {
@@ -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
- k.any3d ? Ot(t.el, o, n) : K(t.el, o);
5148
+ S.any3d ? Zt(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);
@@ -5162,7 +5162,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5162
5162
  },
5163
5163
  _getTiledPixelBounds: function(t) {
5164
5164
  var e = this._map, i = e._animatingZoom ? Math.max(e._animateToZoom, e.getZoom()) : e.getZoom(), n = e.getZoomScale(i, this._tileZoom), o = e.project(t, this._tileZoom).floor(), r = e.getSize().divideBy(n * 2);
5165
- return new W(o.subtract(r), o.add(r));
5165
+ return new V(o.subtract(r), o.add(r));
5166
5166
  },
5167
5167
  // Private method to load tiles in the grid's active zoom level according to map bounds
5168
5168
  _update: function(t) {
@@ -5170,7 +5170,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5170
5170
  if (e) {
5171
5171
  var i = this._clampZoom(e.getZoom());
5172
5172
  if (t === void 0 && (t = e.getCenter()), this._tileZoom !== void 0) {
5173
- var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n), r = o.getCenter(), u = [], f = this.options.keepBuffer, m = new W(
5173
+ var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n), r = o.getCenter(), u = [], f = this.options.keepBuffer, m = new V(
5174
5174
  o.getBottomLeft().subtract([f, -f]),
5175
5175
  o.getTopRight().add([f, -f])
5176
5176
  );
@@ -5184,22 +5184,22 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5184
5184
  this._setView(t, i);
5185
5185
  return;
5186
5186
  }
5187
- for (var S = o.min.y; S <= o.max.y; S++)
5187
+ for (var k = o.min.y; k <= o.max.y; k++)
5188
5188
  for (var I = o.min.x; I <= o.max.x; I++) {
5189
- var tt = new O(I, S);
5190
- if (tt.z = this._tileZoom, !!this._isValidTile(tt)) {
5191
- var $ = this._tiles[this._tileCoordsToKey(tt)];
5192
- $ ? $.current = !0 : u.push(tt);
5189
+ var it = new O(I, k);
5190
+ if (it.z = this._tileZoom, !!this._isValidTile(it)) {
5191
+ var $ = this._tiles[this._tileCoordsToKey(it)];
5192
+ $ ? $.current = !0 : u.push(it);
5193
5193
  }
5194
5194
  }
5195
- if (u.sort(function(st, Vt) {
5196
- return st.distanceTo(r) - Vt.distanceTo(r);
5195
+ if (u.sort(function(rt, qt) {
5196
+ return rt.distanceTo(r) - qt.distanceTo(r);
5197
5197
  }), u.length !== 0) {
5198
5198
  this._loading || (this._loading = !0, this.fire("loading"));
5199
- var ct = document.createDocumentFragment();
5199
+ var ft = document.createDocumentFragment();
5200
5200
  for (I = 0; I < u.length; I++)
5201
- this._addTile(u[I], ct);
5202
- this._level.el.appendChild(ct);
5201
+ this._addTile(u[I], ft);
5202
+ this._level.el.appendChild(ft);
5203
5203
  }
5204
5204
  }
5205
5205
  }
@@ -5225,7 +5225,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5225
5225
  },
5226
5226
  // converts tile coordinates to its geographical bounds
5227
5227
  _tileCoordsToBounds: function(t) {
5228
- var e = this._tileCoordsToNwSe(t), i = new ot(e[0], e[1]);
5228
+ var e = this._tileCoordsToNwSe(t), i = new st(e[0], e[1]);
5229
5229
  return this.options.noWrap || (i = this._map.wrapLatLngBounds(i)), i;
5230
5230
  },
5231
5231
  // converts tile coordinates to key for the tile cache
@@ -5239,7 +5239,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5239
5239
  },
5240
5240
  _removeTile: function(t) {
5241
5241
  var e = this._tiles[t];
5242
- e && (V(e.el), delete this._tiles[t], this.fire("tileunload", {
5242
+ e && (q(e.el), delete this._tiles[t], this.fire("tileunload", {
5243
5243
  tile: e.el,
5244
5244
  coords: this._keyToTileCoords(t)
5245
5245
  }));
@@ -5247,11 +5247,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5247
5247
  _initTile: function(t) {
5248
5248
  A(t, "leaflet-tile");
5249
5249
  var e = this.getTileSize();
5250
- t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = _, t.onmousemove = _, k.ielt9 && this.options.opacity < 1 && ut(t, this.options.opacity);
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
  },
5252
5252
  _addTile: function(t, e) {
5253
5253
  var i = this._getTilePos(t), n = this._tileCoordsToKey(t), o = this.createTile(this._wrapCoords(t), a(this._tileReady, this, t));
5254
- this._initTile(o), this.createTile.length < 2 && it(a(this._tileReady, this, t, null, o)), K(o, i), this._tiles[n] = {
5254
+ this._initTile(o), this.createTile.length < 2 && nt(a(this._tileReady, this, t, null, o)), K(o, i), this._tiles[n] = {
5255
5255
  el: o,
5256
5256
  coords: t,
5257
5257
  current: !0
@@ -5267,10 +5267,10 @@ 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 ? (ut(i.el, 0), ht(this._fadeFrame), this._fadeFrame = it(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 || (A(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
5271
5271
  tile: i.el,
5272
5272
  coords: t
5273
- })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), k.ielt9 || !this._map._fadeAnimated ? it(this._pruneTiles, this) : setTimeout(a(this._pruneTiles, this), 250)));
5273
+ })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), S.ielt9 || !this._map._fadeAnimated ? nt(this._pruneTiles, this) : setTimeout(a(this._pruneTiles, this), 250)));
5274
5274
  },
5275
5275
  _getTilePos: function(t) {
5276
5276
  return t.scaleBy(this.getTileSize()).subtract(this._level.origin);
@@ -5284,7 +5284,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5284
5284
  },
5285
5285
  _pxBoundsToTileRange: function(t) {
5286
5286
  var e = this.getTileSize();
5287
- return new W(
5287
+ return new V(
5288
5288
  t.min.unscaleBy(e).floor(),
5289
5289
  t.max.unscaleBy(e).ceil().subtract([1, 1])
5290
5290
  );
@@ -5299,7 +5299,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5299
5299
  function gs(t) {
5300
5300
  return new re(t);
5301
5301
  }
5302
- var Wt = re.extend({
5302
+ var Vt = re.extend({
5303
5303
  // @section
5304
5304
  // @aka TileLayer options
5305
5305
  options: {
@@ -5341,7 +5341,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5341
5341
  referrerPolicy: !1
5342
5342
  },
5343
5343
  initialize: function(t, e) {
5344
- this._url = t, e = C(this, e), e.detectRetina && k.retina && e.maxZoom > 0 ? (e.tileSize = Math.floor(e.tileSize / 2), e.zoomReverse ? (e.zoomOffset--, e.minZoom = Math.min(e.maxZoom, e.minZoom + 1)) : (e.zoomOffset++, e.maxZoom = Math.max(e.minZoom, e.maxZoom - 1)), e.minZoom = Math.max(0, e.minZoom)) : e.zoomReverse ? e.minZoom = Math.min(e.maxZoom, e.minZoom) : e.maxZoom = Math.max(e.minZoom, e.maxZoom), typeof e.subdomains == "string" && (e.subdomains = e.subdomains.split("")), this.on("tileunload", this._onTileRemove);
5344
+ this._url = t, e = C(this, e), e.detectRetina && S.retina && e.maxZoom > 0 ? (e.tileSize = Math.floor(e.tileSize / 2), e.zoomReverse ? (e.zoomOffset--, e.minZoom = Math.min(e.maxZoom, e.minZoom + 1)) : (e.zoomOffset++, e.maxZoom = Math.max(e.minZoom, e.maxZoom - 1)), e.minZoom = Math.max(0, e.minZoom)) : e.zoomReverse ? e.minZoom = Math.min(e.maxZoom, e.minZoom) : e.maxZoom = Math.max(e.minZoom, e.maxZoom), typeof e.subdomains == "string" && (e.subdomains = e.subdomains.split("")), this.on("tileunload", this._onTileRemove);
5345
5345
  },
5346
5346
  // @method setUrl(url: String, noRedraw?: Boolean): this
5347
5347
  // Updates the layer's URL template and redraws it (unless `noRedraw` is set to `true`).
@@ -5366,7 +5366,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5366
5366
  // Classes extending `TileLayer` can override this function to provide custom tile URL naming schemes.
5367
5367
  getTileUrl: function(t) {
5368
5368
  var e = {
5369
- r: k.retina ? "@2x" : "",
5369
+ r: S.retina ? "@2x" : "",
5370
5370
  s: this._getSubdomain(t),
5371
5371
  x: t.x,
5372
5372
  y: t.y,
@@ -5376,10 +5376,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5376
5376
  var i = this._globalTileRange.max.y - t.y;
5377
5377
  this.options.tms && (e.y = i), e["-y"] = i;
5378
5378
  }
5379
- return G(this._url, x(e, this.options));
5379
+ return U(this._url, x(e, this.options));
5380
5380
  },
5381
5381
  _tileOnLoad: function(t, e) {
5382
- k.ielt9 ? setTimeout(a(t, this, null, e), 0) : t(null, e);
5382
+ S.ielt9 ? setTimeout(a(t, this, null, e), 0) : t(null, e);
5383
5383
  },
5384
5384
  _tileOnError: function(t, e, i) {
5385
5385
  var n = this.options.errorTileUrl;
@@ -5401,9 +5401,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5401
5401
  var t, e;
5402
5402
  for (t in this._tiles)
5403
5403
  if (this._tiles[t].coords.z !== this._tileZoom && (e = this._tiles[t].el, e.onload = _, e.onerror = _, !e.complete)) {
5404
- e.src = rt;
5404
+ e.src = at;
5405
5405
  var i = this._tiles[t].coords;
5406
- V(e), delete this._tiles[t], this.fire("tileabort", {
5406
+ q(e), delete this._tiles[t], this.fire("tileabort", {
5407
5407
  tile: e,
5408
5408
  coords: i
5409
5409
  });
@@ -5412,17 +5412,17 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5412
5412
  _removeTile: function(t) {
5413
5413
  var e = this._tiles[t];
5414
5414
  if (e)
5415
- return e.el.setAttribute("src", rt), re.prototype._removeTile.call(this, t);
5415
+ return e.el.setAttribute("src", at), re.prototype._removeTile.call(this, t);
5416
5416
  },
5417
5417
  _tileReady: function(t, e, i) {
5418
- if (!(!this._map || i && i.getAttribute("src") === rt))
5418
+ if (!(!this._map || i && i.getAttribute("src") === at))
5419
5419
  return re.prototype._tileReady.call(this, t, e, i);
5420
5420
  }
5421
5421
  });
5422
5422
  function Tn(t, e) {
5423
- return new Wt(t, e);
5423
+ return new Vt(t, e);
5424
5424
  }
5425
- var Mn = Wt.extend({
5425
+ var Mn = Vt.extend({
5426
5426
  // @section
5427
5427
  // @aka TileLayer.WMS options
5428
5428
  // If any custom options not documented here are used, they will be sent to the
@@ -5462,16 +5462,16 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5462
5462
  for (var n in e)
5463
5463
  n in this.options || (i[n] = e[n]);
5464
5464
  e = C(this, e);
5465
- var o = e.detectRetina && k.retina ? 2 : 1, r = this.getTileSize();
5465
+ var o = e.detectRetina && S.retina ? 2 : 1, r = this.getTileSize();
5466
5466
  i.width = r.x * o, i.height = r.y * o, this.wmsParams = i;
5467
5467
  },
5468
5468
  onAdd: function(t) {
5469
5469
  this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
5470
5470
  var e = this._wmsVersion >= 1.3 ? "crs" : "srs";
5471
- this.wmsParams[e] = this._crs.code, Wt.prototype.onAdd.call(this, t);
5471
+ this.wmsParams[e] = this._crs.code, Vt.prototype.onAdd.call(this, t);
5472
5472
  },
5473
5473
  getTileUrl: function(t) {
5474
- var e = this._tileCoordsToNwSe(t), i = this._crs, n = nt(i.project(e[0]), i.project(e[1])), o = n.min, r = n.max, u = (this._wmsVersion >= 1.3 && this._crs === yn ? [o.y, o.x, r.y, r.x] : [o.x, o.y, r.x, r.y]).join(","), f = Wt.prototype.getTileUrl.call(this, t);
5474
+ var e = this._tileCoordsToNwSe(t), i = this._crs, n = ot(i.project(e[0]), i.project(e[1])), o = n.min, r = n.max, u = (this._wmsVersion >= 1.3 && this._crs === yn ? [o.y, o.x, r.y, r.x] : [o.x, o.y, r.x, r.y]).join(","), f = Vt.prototype.getTileUrl.call(this, t);
5475
5475
  return f + H(this.wmsParams, f, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + u;
5476
5476
  },
5477
5477
  // @method setParams(params: Object, noRedraw?: Boolean): this
@@ -5483,8 +5483,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5483
5483
  function vs(t, e) {
5484
5484
  return new Mn(t, e);
5485
5485
  }
5486
- Wt.WMS = Mn, Tn.wms = vs;
5487
- var Ct = ft.extend({
5486
+ Vt.WMS = Mn, Tn.wms = vs;
5487
+ var St = pt.extend({
5488
5488
  // @section
5489
5489
  // @aka Renderer options
5490
5490
  options: {
@@ -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
- k.any3d ? Ot(this._container, r, i) : K(this._container, r);
5522
+ S.any3d ? Zt(this._container, r, i) : K(this._container, r);
5523
5523
  },
5524
5524
  _reset: function() {
5525
5525
  this._update(), this._updateTransform(this._center, this._zoom);
@@ -5536,9 +5536,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5536
5536
  },
5537
5537
  _update: function() {
5538
5538
  var t = this.options.padding, e = this._map.getSize(), i = this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();
5539
- this._bounds = new W(i, i.add(e.multiplyBy(1 + t * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
5539
+ this._bounds = new V(i, i.add(e.multiplyBy(1 + t * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
5540
5540
  }
5541
- }), kn = Ct.extend({
5541
+ }), Sn = St.extend({
5542
5542
  // @section
5543
5543
  // @aka Canvas options
5544
5544
  options: {
@@ -5547,21 +5547,21 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5547
5547
  tolerance: 0
5548
5548
  },
5549
5549
  getEvents: function() {
5550
- var t = Ct.prototype.getEvents.call(this);
5550
+ var t = St.prototype.getEvents.call(this);
5551
5551
  return t.viewprereset = this._onViewPreReset, t;
5552
5552
  },
5553
5553
  _onViewPreReset: function() {
5554
5554
  this._postponeUpdatePaths = !0;
5555
5555
  },
5556
5556
  onAdd: function() {
5557
- Ct.prototype.onAdd.call(this), this._draw();
5557
+ St.prototype.onAdd.call(this), this._draw();
5558
5558
  },
5559
5559
  _initContainer: function() {
5560
5560
  var t = this._container = document.createElement("canvas");
5561
5561
  z(t, "mousemove", this._onMouseMove, this), z(t, "click dblclick mousedown mouseup contextmenu", this._onClick, this), z(t, "mouseout", this._handleMouseOut, this), t._leaflet_disable_events = !0, this._ctx = t.getContext("2d");
5562
5562
  },
5563
5563
  _destroyContainer: function() {
5564
- ht(this._redrawRequest), delete this._ctx, V(this._container), F(this._container), delete this._container;
5564
+ lt(this._redrawRequest), delete this._ctx, q(this._container), F(this._container), delete this._container;
5565
5565
  },
5566
5566
  _updatePaths: function() {
5567
5567
  if (!this._postponeUpdatePaths) {
@@ -5574,13 +5574,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5574
5574
  },
5575
5575
  _update: function() {
5576
5576
  if (!(this._map._animatingZoom && this._bounds)) {
5577
- Ct.prototype._update.call(this);
5578
- var t = this._bounds, e = this._container, i = t.getSize(), n = k.retina ? 2 : 1;
5579
- K(e, t.min), e.width = n * i.x, e.height = n * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px", k.retina && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update");
5577
+ St.prototype._update.call(this);
5578
+ var t = this._bounds, e = this._container, i = t.getSize(), n = S.retina ? 2 : 1;
5579
+ K(e, t.min), e.width = n * i.x, e.height = n * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px", S.retina && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update");
5580
5580
  }
5581
5581
  },
5582
5582
  _reset: function() {
5583
- Ct.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !1, this._updatePaths());
5583
+ St.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !1, this._updatePaths());
5584
5584
  },
5585
5585
  _initPath: function(t) {
5586
5586
  this._updateDashArray(t), this._layers[l(t)] = t;
@@ -5617,12 +5617,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5617
5617
  t.options._dashArray = t.options.dashArray;
5618
5618
  },
5619
5619
  _requestRedraw: function(t) {
5620
- this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest || it(this._redraw, this));
5620
+ this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest || nt(this._redraw, this));
5621
5621
  },
5622
5622
  _extendRedrawBounds: function(t) {
5623
5623
  if (t._pxBounds) {
5624
5624
  var e = (t.options.weight || 0) + 1;
5625
- this._redrawBounds = this._redrawBounds || new W(), this._redrawBounds.extend(t._pxBounds.min.subtract([e, e])), this._redrawBounds.extend(t._pxBounds.max.add([e, e]));
5625
+ this._redrawBounds = this._redrawBounds || new V(), this._redrawBounds.extend(t._pxBounds.min.subtract([e, e])), this._redrawBounds.extend(t._pxBounds.max.add([e, e]));
5626
5626
  }
5627
5627
  },
5628
5628
  _redraw: function() {
@@ -5722,8 +5722,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5722
5722
  }
5723
5723
  }
5724
5724
  });
5725
- function Sn(t) {
5726
- return k.canvas ? new kn(t) : null;
5725
+ function kn(t) {
5726
+ return S.canvas ? new Sn(t) : null;
5727
5727
  }
5728
5728
  var ae = function() {
5729
5729
  try {
@@ -5740,7 +5740,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5740
5740
  this._container = R("div", "leaflet-vml-container");
5741
5741
  },
5742
5742
  _update: function() {
5743
- this._map._animatingZoom || (Ct.prototype._update.call(this), this.fire("update"));
5743
+ this._map._animatingZoom || (St.prototype._update.call(this), this.fire("update"));
5744
5744
  },
5745
5745
  _initPath: function(t) {
5746
5746
  var e = t._container = ae("shape");
@@ -5752,11 +5752,11 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5752
5752
  },
5753
5753
  _removePath: function(t) {
5754
5754
  var e = t._container;
5755
- V(e), t.removeInteractiveTarget(e), delete this._layers[l(t)];
5755
+ q(e), t.removeInteractiveTarget(e), delete this._layers[l(t)];
5756
5756
  },
5757
5757
  _updateStyle: function(t) {
5758
5758
  var e = t._stroke, i = t._fill, n = t.options, o = t._container;
5759
- o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (e || (e = t._stroke = ae("stroke")), o.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle = U(n.dashArray) ? n.dashArray.join(" ") : n.dashArray.replace(/( *, *)/g, " ") : e.dashStyle = "", e.endcap = n.lineCap.replace("butt", "flat"), e.joinstyle = n.lineJoin) : e && (o.removeChild(e), t._stroke = null), n.fill ? (i || (i = t._fill = ae("fill")), o.appendChild(i), i.color = n.fillColor || n.color, i.opacity = n.fillOpacity) : i && (o.removeChild(i), t._fill = null);
5759
+ o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (e || (e = t._stroke = ae("stroke")), o.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle = W(n.dashArray) ? n.dashArray.join(" ") : n.dashArray.replace(/( *, *)/g, " ") : e.dashStyle = "", e.endcap = n.lineCap.replace("butt", "flat"), e.joinstyle = n.lineJoin) : e && (o.removeChild(e), t._stroke = null), n.fill ? (i || (i = t._fill = ae("fill")), o.appendChild(i), i.color = n.fillColor || n.color, i.opacity = n.fillOpacity) : i && (o.removeChild(i), t._fill = null);
5760
5760
  },
5761
5761
  _updateCircle: function(t) {
5762
5762
  var e = t._point.round(), i = Math.round(t._radius), n = Math.round(t._radiusY || i);
@@ -5766,21 +5766,21 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5766
5766
  t._path.v = e;
5767
5767
  },
5768
5768
  _bringToFront: function(t) {
5769
- Rt(t._container);
5769
+ Dt(t._container);
5770
5770
  },
5771
5771
  _bringToBack: function(t) {
5772
- Dt(t._container);
5772
+ Ht(t._container);
5773
5773
  }
5774
- }, Me = k.vml ? ae : zi, he = Ct.extend({
5774
+ }, Me = S.vml ? ae : zi, he = St.extend({
5775
5775
  _initContainer: function() {
5776
5776
  this._container = Me("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = Me("g"), this._container.appendChild(this._rootGroup);
5777
5777
  },
5778
5778
  _destroyContainer: function() {
5779
- V(this._container), F(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
5779
+ q(this._container), F(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
5780
5780
  },
5781
5781
  _update: function() {
5782
5782
  if (!(this._map._animatingZoom && this._bounds)) {
5783
- Ct.prototype._update.call(this);
5783
+ St.prototype._update.call(this);
5784
5784
  var t = this._bounds, e = t.getSize(), i = this._container;
5785
5785
  (!this._svgSize || !this._svgSize.equals(e)) && (this._svgSize = e, i.setAttribute("width", e.x), i.setAttribute("height", e.y)), K(i, t.min), i.setAttribute("viewBox", [t.min.x, t.min.y, e.x, e.y].join(" ")), this.fire("update");
5786
5786
  }
@@ -5794,7 +5794,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5794
5794
  this._rootGroup || this._initContainer(), this._rootGroup.appendChild(t._path), t.addInteractiveTarget(t._path);
5795
5795
  },
5796
5796
  _removePath: function(t) {
5797
- V(t._path), t.removeInteractiveTarget(t._path), delete this._layers[l(t)];
5797
+ q(t._path), t.removeInteractiveTarget(t._path), delete this._layers[l(t)];
5798
5798
  },
5799
5799
  _updatePath: function(t) {
5800
5800
  t._project(), t._update();
@@ -5815,15 +5815,15 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5815
5815
  },
5816
5816
  // SVG does not have the concept of zIndex so we resort to changing the DOM order of elements
5817
5817
  _bringToFront: function(t) {
5818
- Rt(t._path);
5818
+ Dt(t._path);
5819
5819
  },
5820
5820
  _bringToBack: function(t) {
5821
- Dt(t._path);
5821
+ Ht(t._path);
5822
5822
  }
5823
5823
  });
5824
- k.vml && he.include(ys);
5824
+ S.vml && he.include(ys);
5825
5825
  function En(t) {
5826
- return k.svg || k.vml ? new he(t) : null;
5826
+ return S.svg || S.vml ? new he(t) : null;
5827
5827
  }
5828
5828
  N.include({
5829
5829
  // @namespace Map; @method getRenderer(layer: Path): Renderer
@@ -5841,12 +5841,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5841
5841
  return e === void 0 && (e = this._createRenderer({ pane: t }), this._paneRenderers[t] = e), e;
5842
5842
  },
5843
5843
  _createRenderer: function(t) {
5844
- return this.options.preferCanvas && Sn(t) || En(t);
5844
+ return this.options.preferCanvas && kn(t) || En(t);
5845
5845
  }
5846
5846
  });
5847
- var On = Gt.extend({
5847
+ var On = Ut.extend({
5848
5848
  initialize: function(t, e) {
5849
- Gt.prototype.initialize.call(this, this._boundsToLatLngs(t), e);
5849
+ Ut.prototype.initialize.call(this, this._boundsToLatLngs(t), e);
5850
5850
  },
5851
5851
  // @method setBounds(latLngBounds: LatLngBounds): this
5852
5852
  // Redraws the rectangle with the passed bounds.
@@ -5865,13 +5865,13 @@ 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, xt.geometryToLayer = Le, xt.coordsToLatLng = fi, xt.coordsToLatLngs = we, xt.latLngToCoords = _i, xt.latLngsToCoords = be, xt.getFeature = Ut, xt.asFeature = Pe, N.mergeOptions({
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({
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.
5872
5872
  boxZoom: !0
5873
5873
  });
5874
- var zn = mt.extend({
5874
+ var zn = vt.extend({
5875
5875
  initialize: function(t) {
5876
5876
  this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this._resetStateTimeout = 0, t.on("unload", this._destroy, this);
5877
5877
  },
@@ -5885,7 +5885,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5885
5885
  return this._moved;
5886
5886
  },
5887
5887
  _destroy: function() {
5888
- V(this._pane), delete this._pane;
5888
+ q(this._pane), delete this._pane;
5889
5889
  },
5890
5890
  _resetState: function() {
5891
5891
  this._resetStateTimeout = 0, this._moved = !1;
@@ -5896,8 +5896,8 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5896
5896
  _onMouseDown: function(t) {
5897
5897
  if (!t.shiftKey || t.which !== 1 && t.button !== 1)
5898
5898
  return !1;
5899
- this._clearDeferredResetState(), this._resetState(), Qt(), Ye(), this._startPoint = this._map.mouseEventToContainerPoint(t), z(document, {
5900
- contextmenu: At,
5899
+ this._clearDeferredResetState(), this._resetState(), Qt(), Xe(), this._startPoint = this._map.mouseEventToContainerPoint(t), z(document, {
5900
+ contextmenu: Bt,
5901
5901
  mousemove: this._onMouseMove,
5902
5902
  mouseup: this._onMouseUp,
5903
5903
  keydown: this._onKeyDown
@@ -5905,12 +5905,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5905
5905
  },
5906
5906
  _onMouseMove: function(t) {
5907
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);
5908
- var e = new W(this._point, this._startPoint), i = e.getSize();
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
  },
5911
5911
  _finish: function() {
5912
- this._moved && (V(this._box), j(this._container, "leaflet-crosshair")), te(), Xe(), F(document, {
5913
- contextmenu: At,
5912
+ this._moved && (q(this._box), j(this._container, "leaflet-crosshair")), te(), $e(), F(document, {
5913
+ contextmenu: Bt,
5914
5914
  mousemove: this._onMouseMove,
5915
5915
  mouseup: this._onMouseUp,
5916
5916
  keydown: this._onKeyDown
@@ -5919,7 +5919,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5919
5919
  _onMouseUp: function(t) {
5920
5920
  if (!(t.which !== 1 && t.button !== 1) && (this._finish(), !!this._moved)) {
5921
5921
  this._clearDeferredResetState(), this._resetStateTimeout = setTimeout(a(this._resetState, this), 0);
5922
- var e = new ot(
5922
+ var e = new st(
5923
5923
  this._map.containerPointToLatLng(this._startPoint),
5924
5924
  this._map.containerPointToLatLng(this._point)
5925
5925
  );
@@ -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 = mt.extend({
5941
+ var Zn = vt.extend({
5942
5942
  addHooks: function() {
5943
5943
  this._map.on("dblclick", this._onDoubleClick, this);
5944
5944
  },
@@ -5985,11 +5985,11 @@ 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 = mt.extend({
5988
+ var An = vt.extend({
5989
5989
  addHooks: function() {
5990
5990
  if (!this._draggable) {
5991
5991
  var t = this._map;
5992
- this._draggable = new kt(t._mapPane, t._container), this._draggable.on({
5992
+ this._draggable = new Et(t._mapPane, t._container), this._draggable.on({
5993
5993
  dragstart: this._onDragStart,
5994
5994
  drag: this._onDrag,
5995
5995
  dragend: this._onDragEnd
@@ -6010,7 +6010,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6010
6010
  var t = this._map;
6011
6011
  if (t._stop(), this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
6012
6012
  var e = J(this._map.options.maxBounds);
6013
- this._offsetLimit = nt(
6013
+ this._offsetLimit = ot(
6014
6014
  this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),
6015
6015
  this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())
6016
6016
  ), this._viscosity = Math.min(1, Math.max(0, this._map.options.maxBoundsViscosity));
@@ -6052,10 +6052,10 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6052
6052
  e.fire("moveend");
6053
6053
  else {
6054
6054
  this._prunePositions(+/* @__PURE__ */ new Date());
6055
- var o = this._lastPos.subtract(this._positions[0]), r = (this._lastTime - this._times[0]) / 1e3, u = i.easeLinearity, f = o.multiplyBy(u / r), m = f.distanceTo([0, 0]), P = Math.min(i.inertiaMaxSpeed, m), T = f.multiplyBy(P / m), S = P / (i.inertiaDeceleration * u), I = T.multiplyBy(-S / 2).round();
6056
- !I.x && !I.y ? e.fire("moveend") : (I = e._limitOffset(I, e.options.maxBounds), it(function() {
6055
+ var o = this._lastPos.subtract(this._positions[0]), r = (this._lastTime - this._times[0]) / 1e3, u = i.easeLinearity, f = o.multiplyBy(u / r), m = f.distanceTo([0, 0]), P = Math.min(i.inertiaMaxSpeed, m), T = f.multiplyBy(P / m), k = P / (i.inertiaDeceleration * u), I = T.multiplyBy(-k / 2).round();
6056
+ !I.x && !I.y ? e.fire("moveend") : (I = e._limitOffset(I, e.options.maxBounds), nt(function() {
6057
6057
  e.panBy(I, {
6058
- duration: S,
6058
+ duration: k,
6059
6059
  easeLinearity: u,
6060
6060
  noMoveStart: !0,
6061
6061
  animate: !0
@@ -6073,7 +6073,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6073
6073
  // Amount of pixels to pan when pressing an arrow key.
6074
6074
  keyboardPanDelta: 80
6075
6075
  });
6076
- var In = mt.extend({
6076
+ var In = vt.extend({
6077
6077
  keyCodes: {
6078
6078
  left: [37],
6079
6079
  right: [39],
@@ -6158,7 +6158,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6158
6158
  i.closePopup();
6159
6159
  else
6160
6160
  return;
6161
- At(t);
6161
+ Bt(t);
6162
6162
  }
6163
6163
  }
6164
6164
  });
@@ -6178,7 +6178,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6178
6178
  // faster (and vice versa).
6179
6179
  wheelPxPerZoomLevel: 60
6180
6180
  });
6181
- var Bn = mt.extend({
6181
+ var Bn = vt.extend({
6182
6182
  addHooks: function() {
6183
6183
  z(this._map._container, "wheel", this._onWheelScroll, this), this._delta = 0;
6184
6184
  },
@@ -6189,7 +6189,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6189
6189
  var e = rn(t), i = this._map.options.wheelDebounceTime;
6190
6190
  this._delta += e, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime = +/* @__PURE__ */ new Date());
6191
6191
  var n = Math.max(i - (+/* @__PURE__ */ new Date() - this._startTime), 0);
6192
- clearTimeout(this._timer), this._timer = setTimeout(a(this._performZoom, this), n), At(t);
6192
+ clearTimeout(this._timer), this._timer = setTimeout(a(this._performZoom, this), n), Bt(t);
6193
6193
  },
6194
6194
  _performZoom: function() {
6195
6195
  var t = this._map, e = t.getZoom(), i = this._map.options.zoomSnap || 0;
@@ -6204,13 +6204,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6204
6204
  // @section Touch interaction options
6205
6205
  // @option tapHold: Boolean
6206
6206
  // Enables simulation of `contextmenu` event, default is `true` for mobile Safari.
6207
- tapHold: k.touchNative && k.safari && k.mobile,
6207
+ tapHold: S.touchNative && S.safari && S.mobile,
6208
6208
  // @option tapTolerance: Number = 15
6209
6209
  // The max number of pixels a user can shift his finger during touch
6210
6210
  // for it to be considered a valid tap.
6211
6211
  tapTolerance: 15
6212
6212
  });
6213
- var Nn = mt.extend({
6213
+ var Nn = vt.extend({
6214
6214
  addHooks: function() {
6215
6215
  z(this._map._container, "touchstart", this._onDown, this);
6216
6216
  },
@@ -6221,12 +6221,12 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6221
6221
  if (clearTimeout(this._holdTimeout), t.touches.length === 1) {
6222
6222
  var e = t.touches[0];
6223
6223
  this._startPos = this._newPos = new O(e.clientX, e.clientY), this._holdTimeout = setTimeout(a(function() {
6224
- this._cancel(), this._isTapValid() && (z(document, "touchend", Q), z(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
6224
+ this._cancel(), this._isTapValid() && (z(document, "touchend", tt), z(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
6225
6225
  }, this), ws), z(document, "touchend touchcancel contextmenu", this._cancel, this), z(document, "touchmove", this._onMove, this);
6226
6226
  }
6227
6227
  },
6228
6228
  _cancelClickPrevent: function t() {
6229
- F(document, "touchend", Q), F(document, "touchend touchcancel", t);
6229
+ F(document, "touchend", tt), F(document, "touchend touchcancel", t);
6230
6230
  },
6231
6231
  _cancel: function() {
6232
6232
  clearTimeout(this._holdTimeout), F(document, "touchend touchcancel contextmenu", this._cancel, this), F(document, "touchmove", this._onMove, this);
@@ -6261,13 +6261,13 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6261
6261
  // passed `'center'`, it will zoom to the center of the view regardless of
6262
6262
  // where the touch events (fingers) were. Enabled for touch-capable web
6263
6263
  // browsers.
6264
- touchZoom: k.touch,
6264
+ touchZoom: S.touch,
6265
6265
  // @option bounceAtZoomLimits: Boolean = true
6266
6266
  // Set it to false if you don't want the map to zoom beyond min/max zoom
6267
6267
  // and then bounce back when pinch-zooming.
6268
6268
  bounceAtZoomLimits: !0
6269
6269
  });
6270
- var Rn = mt.extend({
6270
+ var Rn = vt.extend({
6271
6271
  addHooks: function() {
6272
6272
  A(this._map._container, "leaflet-touch-zoom"), z(this._map._container, "touchstart", this._onTouchStart, this);
6273
6273
  },
@@ -6278,7 +6278,7 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6278
6278
  var e = this._map;
6279
6279
  if (!(!t.touches || t.touches.length !== 2 || e._animatingZoom || this._zooming)) {
6280
6280
  var i = e.mouseEventToContainerPoint(t.touches[0]), n = e.mouseEventToContainerPoint(t.touches[1]);
6281
- this._centerPoint = e.getSize()._divideBy(2), this._startLatLng = e.containerPointToLatLng(this._centerPoint), e.options.touchZoom !== "center" && (this._pinchStartLatLng = e.containerPointToLatLng(i.add(n)._divideBy(2))), this._startDist = i.distanceTo(n), this._startZoom = e.getZoom(), this._moved = !1, this._zooming = !0, e._stop(), z(document, "touchmove", this._onTouchMove, this), z(document, "touchend touchcancel", this._onTouchEnd, this), Q(t);
6281
+ this._centerPoint = e.getSize()._divideBy(2), this._startLatLng = e.containerPointToLatLng(this._centerPoint), e.options.touchZoom !== "center" && (this._pinchStartLatLng = e.containerPointToLatLng(i.add(n)._divideBy(2))), this._startDist = i.distanceTo(n), this._startZoom = e.getZoom(), this._moved = !1, this._zooming = !0, e._stop(), z(document, "touchmove", this._onTouchMove, this), z(document, "touchend touchcancel", this._onTouchEnd, this), tt(t);
6282
6282
  }
6283
6283
  },
6284
6284
  _onTouchMove: function(t) {
@@ -6293,9 +6293,9 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6293
6293
  return;
6294
6294
  this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(r), this._zoom);
6295
6295
  }
6296
- this._moved || (e._moveStart(!0, !1), this._moved = !0), ht(this._animRequest);
6296
+ this._moved || (e._moveStart(!0, !1), this._moved = !0), lt(this._animRequest);
6297
6297
  var u = a(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
6298
- this._animRequest = it(u, this, !0), Q(t);
6298
+ this._animRequest = nt(u, this, !0), tt(t);
6299
6299
  }
6300
6300
  },
6301
6301
  _onTouchEnd: function() {
@@ -6303,18 +6303,18 @@ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
6303
6303
  this._zooming = !1;
6304
6304
  return;
6305
6305
  }
6306
- this._zooming = !1, ht(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));
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 = W, c.Browser = k, c.CRS = wt, c.Canvas = kn, c.Circle = di, c.CircleMarker = ye, c.Class = Lt, c.Control = dt, c.DivIcon = Cn, c.DivOverlay = gt, c.DomEvent = Do, c.DomUtil = No, c.Draggable = kt, c.Evented = Jt, c.FeatureGroup = bt, c.GeoJSON = xt, c.GridLayer = re, c.Handler = mt, c.Icon = Ft, c.ImageOverlay = xe, c.LatLng = D, c.LatLngBounds = ot, c.Layer = ft, c.LayerGroup = Ht, c.LineUtil = $o, c.Map = N, c.Marker = ve, c.Mixin = qo, c.Path = St, c.Point = O, c.PolyUtil = jo, c.Polygon = Gt, c.Polyline = Pt, c.Popup = Ce, c.PosAnimation = an, c.Projection = Qo, c.Rectangle = On, c.Renderer = Ct, c.SVG = he, c.SVGOverlay = xn, c.TileLayer = Wt, c.Tooltip = Te, c.Transformation = Re, c.Util = oo, c.VideoOverlay = Pn, c.bind = a, c.bounds = nt, c.canvas = Sn, 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 = w, c.videoOverlay = ds;
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 = w, c.videoOverlay = ds;
6310
6310
  var bs = window.L;
6311
6311
  c.noConflict = function() {
6312
6312
  return window.L = bs, this;
6313
6313
  }, window.L = c;
6314
6314
  });
6315
- })(vi, vi.exports);
6316
- var q = vi.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", Pi = "l:tooltip:connected", Xn = "l:pane:connected", $n = (g, d, c = !0) => {
6315
+ })(yi, yi.exports);
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
6318
  if (g.hasAttribute("on")) {
6319
6319
  const w = g.getAttribute("on");
6320
6320
  w !== null && w.split(/\s+/).forEach((x) => {
@@ -6341,7 +6341,7 @@ class As extends HTMLElement {
6341
6341
  super();
6342
6342
  }
6343
6343
  connectedCallback() {
6344
- const d = {}, c = {}, w = q.control.layers(d, c);
6344
+ const d = {}, c = {}, w = G.control.layers(d, c);
6345
6345
  this.addEventListener(et, (s) => {
6346
6346
  const { type: a, name: h, layer: l } = s.detail;
6347
6347
  a === "overlay" ? w.addOverlay(l, h) : a === "base" && w.addBaseLayer(l, h), s.preventDefault();
@@ -6356,7 +6356,7 @@ class As extends HTMLElement {
6356
6356
  this.dispatchEvent(x);
6357
6357
  }
6358
6358
  }
6359
- class Bt extends HTMLElement {
6359
+ class zt extends HTMLElement {
6360
6360
  constructor() {
6361
6361
  super(), this.layer = null;
6362
6362
  }
@@ -6365,12 +6365,12 @@ class Bt extends HTMLElement {
6365
6365
  (d = this.layer) == null || d.remove();
6366
6366
  }
6367
6367
  }
6368
- class Is extends Bt {
6368
+ class Is extends zt {
6369
6369
  constructor() {
6370
6370
  super(), this.layer = null;
6371
6371
  }
6372
6372
  connectedCallback() {
6373
- const d = this.getAttribute("name"), c = q.layerGroup();
6373
+ const d = this.getAttribute("name"), c = G.layerGroup();
6374
6374
  this.layer = c;
6375
6375
  const w = new CustomEvent(et, {
6376
6376
  cancelable: !0,
@@ -6404,7 +6404,7 @@ class Bs extends Error {
6404
6404
  constructor(c) {
6405
6405
  super();
6406
6406
  /** @type {Issue[]} */
6407
- vt(this, "issues", []);
6407
+ Lt(this, "issues", []);
6408
6408
  this.name = "LeafletHTMLError", this.issues = c;
6409
6409
  }
6410
6410
  get message() {
@@ -6415,7 +6415,7 @@ const Ns = (g) => ({
6415
6415
  status: "clean",
6416
6416
  issues: [],
6417
6417
  value: g
6418
- }), Rs = ({ value: g }) => g, Et = (g, d) => {
6418
+ }), Rs = ({ value: g }) => g, wt = (g, d) => {
6419
6419
  const c = g(Ns(d));
6420
6420
  if (c.status !== "clean")
6421
6421
  throw new Bs(c.issues);
@@ -6428,7 +6428,7 @@ const Ns = (g) => ({
6428
6428
  a.status === "abort" && (c = "abort", w = [...w, ...a.issues]), x[s] = a.value;
6429
6429
  }
6430
6430
  return { status: c, issues: w, value: x };
6431
- }, xi = (g) => (d) => {
6431
+ }, Be = (g) => (d) => {
6432
6432
  let { issues: c } = d, w = "clean";
6433
6433
  const x = {};
6434
6434
  for (const s of Object.keys(g)) {
@@ -6440,11 +6440,11 @@ const Ns = (g) => ({
6440
6440
  for (let c = 0; c < g.length && (d = g[c](d), d.status !== "abort"); c++)
6441
6441
  ;
6442
6442
  return d;
6443
- }, yi = (...g) => (d) => {
6443
+ }, Li = (...g) => (d) => {
6444
6444
  for (let c = 0; c < g.length; c++)
6445
6445
  d = g[c](d);
6446
6446
  return d;
6447
- }, Li = (g) => (d) => d.value === null ? d : g(d), qt = (g) => (d) => (d = g(d), d.value === null ? { status: "clean", issues: [], value: null } : d), Tt = (g) => (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) => {
6448
6448
  const c = d.value;
6449
6449
  let w = c.getAttribute(g);
6450
6450
  return w === null ? {
@@ -6478,7 +6478,7 @@ const Ns = (g) => ({
6478
6478
  };
6479
6479
  }
6480
6480
  return { ...g, value: d };
6481
- }, Us = () => (g) => ({ ...g, value: g.value.toLowerCase() === "true" }), Ee = (g, ...d) => Hs(Tt(g), ...d), Ws = (g) => ({
6481
+ }, Us = () => (g) => ({ ...g, value: g.value.toLowerCase() === "true" }), Ee = (g, ...d) => Hs(Q(g), ...d), Ws = (g) => ({
6482
6482
  code: "parse_int",
6483
6483
  message: `could not parse int given: "${g}"`
6484
6484
  }), Vs = (g) => ({
@@ -6505,7 +6505,7 @@ const Ns = (g) => ({
6505
6505
  if (x.target instanceof Ae) {
6506
6506
  const s = x.target;
6507
6507
  x.removedNodes.forEach((a) => {
6508
- a instanceof Bt && s.map !== null && a.layer !== null && (s.dispatchEvent(new CustomEvent(Gn, {
6508
+ a instanceof zt && s.map !== null && a.layer !== null && (s.dispatchEvent(new CustomEvent(Gn, {
6509
6509
  bubbles: !0,
6510
6510
  detail: {
6511
6511
  layer: a.layer
@@ -6517,7 +6517,7 @@ const Ns = (g) => ({
6517
6517
  }).observe(this, { childList: !0 });
6518
6518
  }
6519
6519
  connectedCallback() {
6520
- if (this.map = q.map(this, { zoomControl: this.hasAttribute("zoom-control") }), this.map.whenReady(() => {
6520
+ if (this.map = G.map(this, { zoomControl: this.hasAttribute("zoom-control") }), this.map.whenReady(() => {
6521
6521
  this.dispatchEvent(
6522
6522
  new CustomEvent("ready", {
6523
6523
  bubbles: !0,
@@ -6531,12 +6531,12 @@ const Ns = (g) => ({
6531
6531
  const d = Ds({
6532
6532
  zoom: Ee("zoom", Fs()),
6533
6533
  center: Ee("center", ze())
6534
- }), { zoom: c, center: w } = Et(d, this);
6534
+ }), { zoom: c, center: w } = wt(d, this);
6535
6535
  this.map.setView(w, c);
6536
6536
  }
6537
6537
  if (this.hasAttribute("locate")) {
6538
6538
  const d = Ee("locate", ze());
6539
- this.map.locate(Et(d, this));
6539
+ this.map.locate(wt(d, this));
6540
6540
  }
6541
6541
  this.addEventListener(et, (d) => {
6542
6542
  const c = d.detail.layer;
@@ -6549,28 +6549,28 @@ const Ns = (g) => ({
6549
6549
  this.map !== null && (d === "zoom" ? this.map.setZoom(parseInt(w)) : d === "center" && this.map.setView(JSON.parse(w)));
6550
6550
  }
6551
6551
  };
6552
- vt(Ae, "observedAttributes", ["zoom", "center", "zoom-control"]);
6553
- let wi = Ae;
6554
- class Qn extends Bt {
6552
+ Lt(Ae, "observedAttributes", ["zoom", "center", "zoom-control"]);
6553
+ let bi = Ae;
6554
+ class Qn extends zt {
6555
6555
  constructor() {
6556
6556
  super(), this.layer = null, this.addEventListener(Oe, (d) => {
6557
6557
  d.stopPropagation(), this.layer.setIcon(d.detail.icon);
6558
- }), this.addEventListener(Pi, (d) => {
6558
+ }), this.addEventListener(xi, (d) => {
6559
6559
  d.stopPropagation(), this.layer.bindTooltip(d.detail.tooltip);
6560
6560
  });
6561
6561
  }
6562
6562
  connectedCallback() {
6563
- const d = Et(Ee("lat-lng", ze()), this), c = Et(
6564
- xi({
6565
- opacity: yi(qt(Tt("opacity")), Li(Gs()))
6563
+ const d = wt(Ee("lat-lng", ze()), this), c = wt(
6564
+ Be({
6565
+ opacity: Li(ut(Q("opacity")), wi(Gs()))
6566
6566
  }),
6567
6567
  this
6568
6568
  ), w = this.closest("l-pane");
6569
- if (w !== null && (c.pane = w.getAttribute("name")), this.layer = q.marker(d, c), this.hasAttribute("icon")) {
6570
- const s = q.icon(JSON.parse(this.getAttribute("icon")));
6569
+ if (w !== null && (c.pane = w.getAttribute("name")), this.layer = G.marker(d, c), this.hasAttribute("icon")) {
6570
+ const s = G.icon(JSON.parse(this.getAttribute("icon")));
6571
6571
  this.layer.setIcon(s);
6572
6572
  }
6573
- $n(this, this.layer, !1), this.setAttribute("leaflet-id", q.stamp(this.layer)), this.addEventListener(Jn, (s) => {
6573
+ $n(this, this.layer, !1), this.setAttribute("leaflet-id", G.stamp(this.layer)), this.addEventListener(Jn, (s) => {
6574
6574
  const { content: a, openPopup: h } = s.detail, l = this.layer.bindPopup(a);
6575
6575
  h && l.openPopup();
6576
6576
  });
@@ -6584,10 +6584,10 @@ class Qn extends Bt {
6584
6584
  this.dispatchEvent(x);
6585
6585
  }
6586
6586
  attributeChangedCallback(d, c, w) {
6587
- this.layer !== null && (d === "lat-lng" && this.layer.setLatLng(JSON.parse(w)), d === "opacity" && this.layer.setOpacity(parseFloat(w)), d === "icon" && this.layer.setIcon(q.icon(JSON.parse(w))));
6587
+ this.layer !== null && (d === "lat-lng" && this.layer.setLatLng(JSON.parse(w)), d === "opacity" && this.layer.setOpacity(parseFloat(w)), d === "icon" && this.layer.setIcon(G.icon(JSON.parse(w))));
6588
6588
  }
6589
6589
  }
6590
- vt(Qn, "observedAttributes", ["lat-lng", "opacity", "icon"]);
6590
+ Lt(Qn, "observedAttributes", ["lat-lng", "opacity", "icon"]);
6591
6591
  class Js extends HTMLElement {
6592
6592
  constructor() {
6593
6593
  super();
@@ -6618,23 +6618,23 @@ class Ks extends HTMLElement {
6618
6618
  this.dispatchEvent(x);
6619
6619
  }
6620
6620
  }
6621
- class Ci extends Bt {
6621
+ class Ci extends zt {
6622
6622
  constructor() {
6623
6623
  super(), this.layer = null;
6624
6624
  }
6625
6625
  connectedCallback() {
6626
- const d = Et(Tt("url-template"), this), c = Ci.parseTemplateAttributes(d), w = {};
6626
+ const d = wt(Q("url-template"), this), c = Ci.parseTemplateAttributes(d), w = {};
6627
6627
  for (const p of c) {
6628
6628
  const v = this.getAttribute(p);
6629
6629
  v !== null && (w[p] = v);
6630
6630
  }
6631
6631
  const x = {};
6632
6632
  this.parentElement.tagName.toLowerCase() === "l-pane" && (x.pane = this.parentElement.getAttribute("name"));
6633
- const s = this.getAttribute("name"), a = xi({
6634
- attribution: qt(Tt("attribution")),
6635
- errorTileUrl: qt(Tt("error-tile-url"))
6636
- }), h = Et(a, this);
6637
- this.layer = q.tileLayer(d, { ...w, ...x, ...h });
6633
+ const s = this.getAttribute("name"), a = Be({
6634
+ attribution: ut(Q("attribution")),
6635
+ errorTileUrl: ut(Q("error-tile-url"))
6636
+ }), h = wt(a, this);
6637
+ this.layer = G.tileLayer(d, { ...w, ...x, ...h });
6638
6638
  const l = new CustomEvent(et, {
6639
6639
  detail: { name: s, layer: this.layer },
6640
6640
  bubbles: !0
@@ -6650,6 +6650,47 @@ class Ci extends Bt {
6650
6650
  return [...d.matchAll(c)].map((w) => w[1]);
6651
6651
  }
6652
6652
  }
6653
+ class Ys extends zt {
6654
+ constructor() {
6655
+ super(), this.layer = null;
6656
+ }
6657
+ connectedCallback() {
6658
+ const d = wt(Q("url-template"), this), c = this.getAttribute("name"), w = Be({
6659
+ // Leaflet.tileLayer default options: https://leafletjs.com/reference.html#tilelayer-wms-layers
6660
+ layers: Q("layers"),
6661
+ styles: ut(Q("styles")),
6662
+ format: ut(Q("format")),
6663
+ transparent: ut(Q("transparent")),
6664
+ version: ut(Q("version")),
6665
+ crs: ut(Q("crs")),
6666
+ uppercase: ut(Q("uppercase")),
6667
+ // Inherited option from Layer: https://leafletjs.com/reference.html#tilelayer-wms-attribution
6668
+ attribution: ut(Q("attribution"))
6669
+ }), x = wt(w, this), s = this.getAttribute("options"), a = () => {
6670
+ if (s)
6671
+ try {
6672
+ return JSON.parse(s);
6673
+ } catch (p) {
6674
+ return console.error(
6675
+ "Error whilst parsing JSON for options attribute in l-tile-layer-wms",
6676
+ p
6677
+ ), {};
6678
+ }
6679
+ else
6680
+ return {};
6681
+ }, h = {};
6682
+ this.parentElement.tagName.toLowerCase() === "l-pane" && (h.pane = this.parentElement.getAttribute("name")), this.layer = G.tileLayer.wms(d, {
6683
+ ...x,
6684
+ ...a(),
6685
+ ...h
6686
+ });
6687
+ const l = new CustomEvent(et, {
6688
+ detail: { name: c, layer: this.layer },
6689
+ bubbles: !0
6690
+ });
6691
+ this.dispatchEvent(l);
6692
+ }
6693
+ }
6653
6694
  class to extends HTMLElement {
6654
6695
  constructor() {
6655
6696
  super();
@@ -6674,8 +6715,8 @@ class to extends HTMLElement {
6674
6715
  });
6675
6716
  }
6676
6717
  }
6677
- vt(to, "observedAttributes", ["bounds"]);
6678
- class eo extends Bt {
6718
+ Lt(to, "observedAttributes", ["bounds"]);
6719
+ class eo extends zt {
6679
6720
  constructor() {
6680
6721
  super(), this.layer = null;
6681
6722
  }
@@ -6694,7 +6735,7 @@ class eo extends Bt {
6694
6735
  opacity: parseFloat(this.getAttribute("opacity") || "1.0"),
6695
6736
  alt: this.getAttribute("alt") || ""
6696
6737
  }, x = this.closest("l-pane");
6697
- x !== null && (w.pane = x.getAttribute("name")), this.layer = q.imageOverlay(d, JSON.parse(c), w), this.dispatchEvent(
6738
+ x !== null && (w.pane = x.getAttribute("name")), this.layer = G.imageOverlay(d, JSON.parse(c), w), this.dispatchEvent(
6698
6739
  new CustomEvent(et, {
6699
6740
  cancelable: !0,
6700
6741
  bubbles: !0,
@@ -6708,8 +6749,8 @@ class eo extends Bt {
6708
6749
  this.layer !== null && (d === "url" ? this.layer.setUrl(w) : d === "bounds" ? this.layer.setBounds(JSON.parse(w)) : d === "opacity" && this.layer.setOpacity(parseFloat(w)));
6709
6750
  }
6710
6751
  }
6711
- vt(eo, "observedAttributes", ["url", "bounds", "opacity"]);
6712
- class Ys extends Bt {
6752
+ Lt(eo, "observedAttributes", ["url", "bounds", "opacity"]);
6753
+ class Xs extends zt {
6713
6754
  constructor() {
6714
6755
  super();
6715
6756
  }
@@ -6720,7 +6761,7 @@ class Ys extends Bt {
6720
6761
  autoplay: !0,
6721
6762
  muted: !0,
6722
6763
  playsInline: !0
6723
- }, x = q.videoOverlay(d, c, w);
6764
+ }, x = G.videoOverlay(d, c, w);
6724
6765
  this.dispatchEvent(
6725
6766
  new CustomEvent(et, {
6726
6767
  cancelable: !0,
@@ -6732,13 +6773,13 @@ class Ys extends Bt {
6732
6773
  );
6733
6774
  }
6734
6775
  }
6735
- class Xs extends HTMLElement {
6776
+ class $s extends HTMLElement {
6736
6777
  constructor() {
6737
6778
  super(), this.layer = null;
6738
6779
  }
6739
6780
  connectedCallback() {
6740
6781
  const d = this.getAttribute("geojson"), c = {}, w = this.closest("l-pane");
6741
- w !== null && (c.pane = w.getAttribute("name")), d !== null && (this.layer = q.geoJSON(JSON.parse(d), c), this.dispatchEvent(
6782
+ w !== null && (c.pane = w.getAttribute("name")), d !== null && (this.layer = G.geoJSON(JSON.parse(d), c), this.dispatchEvent(
6742
6783
  new CustomEvent(et, {
6743
6784
  bubbles: !0,
6744
6785
  cancelable: !0,
@@ -6749,7 +6790,7 @@ class Xs extends HTMLElement {
6749
6790
  ));
6750
6791
  }
6751
6792
  }
6752
- const ue = (g) => g.replace(/-./g, (d) => d[1].toUpperCase()), $s = (g) => g.split("").map((d, c) => d.toUpperCase() === d ? `${c !== 0 ? "-" : ""}${d.toLowerCase()}` : d).join(""), gi = [
6793
+ 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 = [
6753
6794
  "icon-url",
6754
6795
  "icon-retina-url",
6755
6796
  "shadow-url",
@@ -6767,7 +6808,7 @@ const ue = (g) => g.replace(/-./g, (d) => d[1].toUpperCase()), $s = (g) => g.spl
6767
6808
  super(), this.icon = null;
6768
6809
  }
6769
6810
  connectedCallback() {
6770
- this.icon = q.icon(this._parseOptions());
6811
+ this.icon = G.icon(this._parseOptions());
6771
6812
  const d = new CustomEvent(Oe, {
6772
6813
  cancelable: !0,
6773
6814
  bubbles: !0,
@@ -6785,7 +6826,7 @@ const ue = (g) => g.replace(/-./g, (d) => d[1].toUpperCase()), $s = (g) => g.spl
6785
6826
  attributeChangedCallback(d, c, w) {
6786
6827
  if (Ie.observedAttributes.indexOf(d) !== -1 && this.icon !== null) {
6787
6828
  let x = {};
6788
- gi.indexOf(d) !== -1 ? x[ue(d)] = w : Wn.indexOf(d) !== -1 ? x[ue(d)] = w.toLowerCase() === "true" : x[ue(d)] = JSON.parse(w), this.icon = q.icon({
6829
+ vi.indexOf(d) !== -1 ? x[ue(d)] = w : Wn.indexOf(d) !== -1 ? x[ue(d)] = w.toLowerCase() === "true" : x[ue(d)] = JSON.parse(w), this.icon = G.icon({
6789
6830
  ...this.icon.options,
6790
6831
  ...x
6791
6832
  });
@@ -6804,27 +6845,27 @@ const ue = (g) => g.replace(/-./g, (d) => d[1].toUpperCase()), $s = (g) => g.spl
6804
6845
  */
6805
6846
  _parseOptions() {
6806
6847
  const d = {};
6807
- gi.forEach((w) => {
6808
- d[ue(w)] = qt(Tt(w));
6848
+ vi.forEach((w) => {
6849
+ d[ue(w)] = ut(Q(w));
6809
6850
  }), Un.forEach((w) => {
6810
- d[ue(w)] = yi(
6811
- qt(Tt(w)),
6812
- Li(ze())
6851
+ d[ue(w)] = Li(
6852
+ ut(Q(w)),
6853
+ wi(ze())
6813
6854
  );
6814
- }), d.crossOrigin = yi(
6815
- qt(Tt("cross-origin")),
6816
- Li(Us())
6855
+ }), d.crossOrigin = Li(
6856
+ ut(Q("cross-origin")),
6857
+ wi(Us())
6817
6858
  );
6818
- const c = xi(d);
6819
- return Et(c, this);
6859
+ const c = Be(d);
6860
+ return wt(c, this);
6820
6861
  }
6821
6862
  };
6822
- vt(Ie, "observedAttributes", [
6823
- ...gi,
6863
+ Lt(Ie, "observedAttributes", [
6864
+ ...vi,
6824
6865
  ...Un,
6825
6866
  ...Wn
6826
6867
  ]);
6827
- let bi = Ie, Qs = class extends HTMLElement {
6868
+ let Pi = Ie, tr = class extends HTMLElement {
6828
6869
  constructor() {
6829
6870
  super(), this.icon = null;
6830
6871
  }
@@ -6832,7 +6873,7 @@ let bi = Ie, Qs = class extends HTMLElement {
6832
6873
  const d = {
6833
6874
  html: this.innerHTML
6834
6875
  }, c = this.getAttribute("class-name");
6835
- c !== null && (d.className = c), this.icon = q.divIcon(d), this.dispatchEvent(
6876
+ c !== null && (d.className = c), this.icon = G.divIcon(d), this.dispatchEvent(
6836
6877
  new CustomEvent(Oe, {
6837
6878
  bubbles: !0,
6838
6879
  cancelable: !0,
@@ -6848,12 +6889,12 @@ class io extends HTMLElement {
6848
6889
  super(), this.tooltip = null;
6849
6890
  }
6850
6891
  connectedCallback() {
6851
- this.tooltip = q.tooltip({
6892
+ this.tooltip = G.tooltip({
6852
6893
  permanent: this.hasAttribute("permanent"),
6853
6894
  interactive: this.hasAttribute("interactive"),
6854
6895
  direction: this.getAttribute("direction") ?? "auto"
6855
6896
  }), this.tooltip.setContent(this.getAttribute("content"));
6856
- const d = new CustomEvent(Pi, {
6897
+ const d = new CustomEvent(xi, {
6857
6898
  cancelable: !0,
6858
6899
  bubbles: !0,
6859
6900
  detail: {
@@ -6870,8 +6911,8 @@ class io extends HTMLElement {
6870
6911
  this.tooltip && (d === "content" ? this.tooltip.setContent(w) : d === "permanent" ? this.tooltip.options.permanent = this.hasAttribute("permanent") : d === "interactive" ? this.tooltip.options.interactive = this.hasAttribute("interactive") : d === "direction" && (this.tooltip.options.direction = w));
6871
6912
  }
6872
6913
  }
6873
- vt(io, "observedAttributes", ["content", "permanent", "interactive", "direction"]);
6874
- class tr extends HTMLElement {
6914
+ Lt(io, "observedAttributes", ["content", "permanent", "interactive", "direction"]);
6915
+ class er extends HTMLElement {
6875
6916
  constructor() {
6876
6917
  super();
6877
6918
  }
@@ -6900,10 +6941,10 @@ const Ti = (g) => {
6900
6941
  }
6901
6942
  }, X = (g, d, c) => ({
6902
6943
  camel: g,
6903
- kebab: $s(g),
6904
- parser: er(d),
6944
+ kebab: Qs(g),
6945
+ parser: ir(d),
6905
6946
  defaultValue: c
6906
- }), er = (g) => {
6947
+ }), ir = (g) => {
6907
6948
  switch (g.toLowerCase()) {
6908
6949
  case "boolean":
6909
6950
  return (d) => d === "true";
@@ -6941,7 +6982,7 @@ const Ti = (g) => {
6941
6982
  rectangle: [],
6942
6983
  interactiveLayer: [X("interactive", "boolean", !0)]
6943
6984
  };
6944
- return ir(g).flatMap((c) => d[c]);
6985
+ return nr(g).flatMap((c) => d[c]);
6945
6986
  }, Vn = {
6946
6987
  circle: ["path"],
6947
6988
  polyline: ["path"],
@@ -6949,14 +6990,14 @@ const Ti = (g) => {
6949
6990
  rectangle: ["polygon"],
6950
6991
  path: ["interactiveLayer"],
6951
6992
  interactiveLayer: []
6952
- }, ir = (g) => {
6993
+ }, nr = (g) => {
6953
6994
  let d = g, c = [g];
6954
6995
  for (; Vn[d].length > 0; ) {
6955
6996
  let w = Vn[d][0];
6956
6997
  c.push(w), d = w;
6957
6998
  }
6958
6999
  return c;
6959
- }, nr = (g, d, c, w) => {
7000
+ }, or = (g, d, c, w) => {
6960
7001
  let s = [
6961
7002
  ...Ti(d),
6962
7003
  ...Ze(d)
@@ -6964,7 +7005,7 @@ const Ti = (g) => {
6964
7005
  if (typeof s > "u")
6965
7006
  return;
6966
7007
  const a = s.parser(w);
6967
- if (g instanceof q.Circle)
7008
+ if (g instanceof G.Circle)
6968
7009
  switch (c) {
6969
7010
  case "lat-lng":
6970
7011
  g.setLatLng(JSON.parse(w));
@@ -6973,7 +7014,7 @@ const Ti = (g) => {
6973
7014
  g.setRadius(parseFloat(w));
6974
7015
  break;
6975
7016
  }
6976
- else if (g instanceof q.Rectangle)
7017
+ else if (g instanceof G.Rectangle)
6977
7018
  switch (c) {
6978
7019
  case "lat-lngs":
6979
7020
  g.setLatLngs(JSON.parse(w));
@@ -6982,13 +7023,13 @@ const Ti = (g) => {
6982
7023
  g.setBounds(JSON.parse(w));
6983
7024
  break;
6984
7025
  }
6985
- else if (g instanceof q.Polygon)
7026
+ else if (g instanceof G.Polygon)
6986
7027
  switch (c) {
6987
7028
  case "lat-lngs":
6988
7029
  g.setLatLngs(JSON.parse(w));
6989
7030
  break;
6990
7031
  }
6991
- else if (g instanceof q.Polyline)
7032
+ else if (g instanceof G.Polyline)
6992
7033
  switch (c) {
6993
7034
  case "lat-lngs":
6994
7035
  g.setLatLngs(JSON.parse(w));
@@ -6996,26 +7037,26 @@ const Ti = (g) => {
6996
7037
  }
6997
7038
  let h = Ze("polyline").find((l) => l.kebab === c);
6998
7039
  typeof h < "u" && g.setStyle({ [h.camel]: a });
6999
- }, or = (g) => {
7040
+ }, sr = (g) => {
7000
7041
  let d = Ti(g).map((w) => w.kebab), c = Ze(g).map((w) => w.kebab);
7001
7042
  return [...d, ...c];
7002
- }, sr = (g, d) => {
7043
+ }, rr = (g, d) => {
7003
7044
  let c = {};
7004
7045
  return Ze(d).forEach((w) => {
7005
7046
  g.hasAttribute(w.kebab) && (c[w.camel] = w.parser(g.getAttribute(w.kebab)));
7006
7047
  }), c;
7007
- }, rr = (g, d) => Ti(d).map((c) => {
7008
- const w = Tt(c.kebab), x = Et(w, g);
7048
+ }, ar = (g, d) => Ti(d).map((c) => {
7049
+ const w = Q(c.kebab), x = wt(w, g);
7009
7050
  return c.parser(x);
7010
- }), Se = (g, d) => {
7051
+ }), ke = (g, d) => {
7011
7052
  class c extends HTMLElement {
7012
7053
  constructor() {
7013
- super(), this.layer = null, this.addEventListener(Pi, (x) => {
7054
+ super(), this.layer = null, this.addEventListener(xi, (x) => {
7014
7055
  this.layer !== null && this.layer.bindTooltip(x.detail.tooltip);
7015
7056
  });
7016
7057
  }
7017
7058
  connectedCallback() {
7018
- const x = rr(this, d), s = sr(this, d);
7059
+ const x = ar(this, d), s = rr(this, d);
7019
7060
  this.layer = g(...x, s);
7020
7061
  const a = new CustomEvent(et, {
7021
7062
  cancelable: !0,
@@ -7031,10 +7072,10 @@ const Ti = (g) => {
7031
7072
  * @param {string} newValue
7032
7073
  */
7033
7074
  attributeChangedCallback(x, s, a) {
7034
- this.layer !== null && nr(this.layer, d, x, a);
7075
+ this.layer !== null && or(this.layer, d, x, a);
7035
7076
  }
7036
7077
  }
7037
- return vt(c, "observedAttributes", or(d)), c;
7078
+ return Lt(c, "observedAttributes", sr(d)), c;
7038
7079
  };
7039
7080
  var qn = { exports: {} };
7040
7081
  (function(g, d) {
@@ -7115,11 +7156,11 @@ var qn = { exports: {} };
7115
7156
  var h = this._featureGroup, l = this._nonPointGroup, p = this.options.chunkedLoading, v = this.options.chunkInterval, _ = this.options.chunkProgress, b = s.length, y = 0, M = !0, C;
7116
7157
  if (this._map) {
7117
7158
  var H = (/* @__PURE__ */ new Date()).getTime(), Z = L.bind(function() {
7118
- var U = (/* @__PURE__ */ new Date()).getTime();
7159
+ var W = (/* @__PURE__ */ new Date()).getTime();
7119
7160
  for (this._map && this._unspiderfy && this._unspiderfy(); y < b; y++) {
7120
7161
  if (p && y % 200 === 0) {
7121
- var yt = (/* @__PURE__ */ new Date()).getTime() - U;
7122
- if (yt > v)
7162
+ var bt = (/* @__PURE__ */ new Date()).getTime() - W;
7163
+ if (bt > v)
7123
7164
  break;
7124
7165
  }
7125
7166
  if (C = s[y], C instanceof L.LayerGroup) {
@@ -7131,7 +7172,7 @@ var qn = { exports: {} };
7131
7172
  continue;
7132
7173
  }
7133
7174
  if (!this.hasLayer(C) && (this._addLayer(C, this._maxZoom), a || this.fire("layeradd", { layer: C }), C.__parent && C.__parent.getChildCount() === 2)) {
7134
- var rt = C.__parent.getAllChildMarkers(), jt = rt[0] === C ? rt[1] : rt[0];
7175
+ var at = C.__parent.getAllChildMarkers(), jt = at[0] === C ? at[1] : at[0];
7135
7176
  h.removeLayer(jt);
7136
7177
  }
7137
7178
  }
@@ -7139,7 +7180,7 @@ var qn = { exports: {} };
7139
7180
  }, this);
7140
7181
  Z();
7141
7182
  } else
7142
- for (var G = this._needsClustering; y < b; y++) {
7183
+ for (var U = this._needsClustering; y < b; y++) {
7143
7184
  if (C = s[y], C instanceof L.LayerGroup) {
7144
7185
  M && (s = s.slice(), M = !1), this._extractNonGroupLayers(C, s), b = s.length;
7145
7186
  continue;
@@ -7148,7 +7189,7 @@ var qn = { exports: {} };
7148
7189
  l.addLayer(C);
7149
7190
  continue;
7150
7191
  }
7151
- this.hasLayer(C) || G.push(C);
7192
+ this.hasLayer(C) || U.push(C);
7152
7193
  }
7153
7194
  return this;
7154
7195
  },
@@ -7791,15 +7832,15 @@ var qn = { exports: {} };
7791
7832
  }
7792
7833
  },
7793
7834
  getNearObject: function(s) {
7794
- var a = this._getCoord(s.x), h = this._getCoord(s.y), l, p, v, _, b, y, M, C, H = this._objectPoint, Z = this._sqCellSize, G = null;
7835
+ var a = this._getCoord(s.x), h = this._getCoord(s.y), l, p, v, _, b, y, M, C, H = this._objectPoint, Z = this._sqCellSize, U = null;
7795
7836
  for (l = h - 1; l <= h + 1; l++)
7796
7837
  if (_ = this._grid[l], _) {
7797
7838
  for (p = a - 1; p <= a + 1; p++)
7798
7839
  if (b = _[p], b)
7799
7840
  for (v = 0, y = b.length; v < y; v++)
7800
- M = b[v], C = this._sqDist(H[L.Util.stamp(M)], s), (C < Z || C <= Z && G === null) && (Z = C, G = M);
7841
+ M = b[v], C = this._sqDist(H[L.Util.stamp(M)], s), (C < Z || C <= Z && U === null) && (Z = C, U = M);
7801
7842
  }
7802
- return G;
7843
+ return U;
7803
7844
  },
7804
7845
  _getCoord: function(s) {
7805
7846
  var a = Math.floor(s / this._cellSize);
@@ -7868,11 +7909,11 @@ var qn = { exports: {} };
7868
7909
  (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) && (y = Z, p = Z.lng);
7869
7910
  }
7870
7911
  h !== a ? (C = _, M = v) : (C = y, M = b);
7871
- var G = [].concat(
7912
+ var U = [].concat(
7872
7913
  this.buildConvexHull([C, M], s),
7873
7914
  this.buildConvexHull([M, C], s)
7874
7915
  );
7875
- return G;
7916
+ return U;
7876
7917
  }
7877
7918
  };
7878
7919
  }(), L.MarkerCluster.include({
@@ -7939,11 +7980,11 @@ var qn = { exports: {} };
7939
7980
  }
7940
7981
  }), L.MarkerCluster.include({
7941
7982
  _animationSpiderfy: function(s, a) {
7942
- var h = this, l = this._group, p = l._map, v = l._featureGroup, _ = this._latlng, b = p.latLngToLayerPoint(_), y = L.Path.SVG, M = L.extend({}, this._group.options.spiderLegPolylineOptions), C = M.opacity, H, Z, G, U, yt, rt;
7983
+ var h = this, l = this._group, p = l._map, v = l._featureGroup, _ = this._latlng, b = p.latLngToLayerPoint(_), y = L.Path.SVG, M = L.extend({}, this._group.options.spiderLegPolylineOptions), C = M.opacity, H, Z, U, W, bt, at;
7943
7984
  for (C === void 0 && (C = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity), y ? (M.opacity = 0, M.className = (M.className || "") + " leaflet-cluster-spider-leg") : M.opacity = C, l._ignoreMove = !0, H = 0; H < s.length; H++)
7944
- Z = s[H], rt = p.layerPointToLatLng(a[H]), G = new L.Polyline([_, rt], M), p.addLayer(G), Z._spiderLeg = G, y && (U = G._path, yt = U.getTotalLength() + 0.1, U.style.strokeDasharray = yt, U.style.strokeDashoffset = yt), Z.setZIndexOffset && Z.setZIndexOffset(1e6), Z.clusterHide && Z.clusterHide(), v.addLayer(Z), Z._setPos && Z._setPos(b);
7985
+ Z = s[H], at = p.layerPointToLatLng(a[H]), U = new L.Polyline([_, at], M), p.addLayer(U), Z._spiderLeg = U, y && (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);
7945
7986
  for (l._forceLayout(), l._animationStart(), H = s.length - 1; H >= 0; H--)
7946
- rt = p.layerPointToLatLng(a[H]), Z = s[H], Z._preSpiderfyLatlng = Z._latlng, Z.setLatLng(rt), Z.clusterShow && Z.clusterShow(), y && (G = Z._spiderLeg, U = G._path, U.style.strokeDashoffset = 0, G.setStyle({ opacity: C }));
7987
+ at = p.layerPointToLatLng(a[H]), Z = s[H], Z._preSpiderfyLatlng = Z._latlng, Z.setLatLng(at), Z.clusterShow && Z.clusterShow(), y && (U = Z._spiderLeg, W = U._path, W.style.strokeDashoffset = 0, U.setStyle({ opacity: C }));
7947
7988
  this.setOpacity(0.3), l._ignoreMove = !1, setTimeout(function() {
7948
7989
  l._animationEnd(), l.fire("spiderfied", {
7949
7990
  cluster: h,
@@ -7952,15 +7993,15 @@ var qn = { exports: {} };
7952
7993
  }, 200);
7953
7994
  },
7954
7995
  _animationUnspiderfy: function(s) {
7955
- 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, y, M, C, H, Z, G;
7996
+ 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, y, M, C, H, Z, U;
7956
7997
  for (h._ignoreMove = !0, h._animationStart(), this.setOpacity(1), M = _.length - 1; M >= 0; M--)
7957
- y = _[M], y._preSpiderfyLatlng && (y.closePopup(), y.setLatLng(y._preSpiderfyLatlng), delete y._preSpiderfyLatlng, G = !0, y._setPos && (y._setPos(v), G = !1), y.clusterHide && (y.clusterHide(), G = !1), G && p.removeLayer(y), b && (C = y._spiderLeg, H = C._path, Z = H.getTotalLength() + 0.1, H.style.strokeDashoffset = Z, C.setStyle({ opacity: 0 })));
7998
+ y = _[M], y._preSpiderfyLatlng && (y.closePopup(), y.setLatLng(y._preSpiderfyLatlng), delete y._preSpiderfyLatlng, U = !0, y._setPos && (y._setPos(v), U = !1), y.clusterHide && (y.clusterHide(), U = !1), U && p.removeLayer(y), b && (C = y._spiderLeg, H = C._path, Z = H.getTotalLength() + 0.1, H.style.strokeDashoffset = Z, C.setStyle({ opacity: 0 })));
7958
7999
  h._ignoreMove = !1, setTimeout(function() {
7959
- var U = 0;
8000
+ var W = 0;
7960
8001
  for (M = _.length - 1; M >= 0; M--)
7961
- y = _[M], y._spiderLeg && U++;
8002
+ y = _[M], y._spiderLeg && W++;
7962
8003
  for (M = _.length - 1; M >= 0; M--)
7963
- y = _[M], y._spiderLeg && (y.clusterShow && y.clusterShow(), y.setZIndexOffset && y.setZIndexOffset(0), U > 1 && p.removeLayer(y), l.removeLayer(y._spiderLeg), delete y._spiderLeg);
8004
+ y = _[M], y._spiderLeg && (y.clusterShow && y.clusterShow(), y.setZIndexOffset && y.setZIndexOffset(0), W > 1 && p.removeLayer(y), l.removeLayer(y._spiderLeg), delete y._spiderLeg);
7964
8005
  h._animationEnd(), h.fire("unspiderfied", {
7965
8006
  cluster: a,
7966
8007
  markers: _
@@ -8049,7 +8090,7 @@ var qn = { exports: {} };
8049
8090
  }), c.MarkerClusterGroup = w, c.MarkerCluster = x, Object.defineProperty(c, "__esModule", { value: !0 });
8050
8091
  });
8051
8092
  })(qn, qn.exports);
8052
- class no extends Bt {
8093
+ class no extends zt {
8053
8094
  constructor() {
8054
8095
  super(), this.layer = null;
8055
8096
  }
@@ -8088,13 +8129,13 @@ class no extends Bt {
8088
8129
  return Function("cluster", `"use strict";return (${c})`)(d);
8089
8130
  }
8090
8131
  }
8091
- vt(no, "observedAttributes", [
8132
+ Lt(no, "observedAttributes", [
8092
8133
  "show-coverage-on-hover",
8093
8134
  "icon-options"
8094
8135
  ]);
8095
- const ur = (() => {
8096
- customElements.define("l-map", wi), customElements.define("l-pane", tr), 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-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", Ys), customElements.define("l-geojson", Xs), customElements.define("l-icon", bi), customElements.define("l-circle", Se(q.circle, "circle")), customElements.define("l-polyline", Se(q.polyline, "polyline")), customElements.define("l-polygon", Se(q.polygon, "polygon")), customElements.define("l-rectangle", Se(q.rectangle, "rectangle")), customElements.define("l-tooltip", io), customElements.define("l-div-icon", Qs);
8136
+ const lr = (() => {
8137
+ 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);
8097
8138
  })();
8098
8139
  export {
8099
- ur as default
8140
+ lr as default
8100
8141
  };