@florasync/leaflet-geokit 0.7.0 → 0.8.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.
@@ -36,11 +36,11 @@ function Ur() {
36
36
  }
37
37
  function Fe(m, h = "debug", s = console) {
38
38
  let c = h;
39
- const n = (a) => (...u) => {
39
+ const n = (a) => (...d) => {
40
40
  try {
41
41
  if (!Rr(c, a)) return;
42
42
  const f = `[${Ur()}][${m}][${a.toUpperCase()}]`, _ = s[a];
43
- typeof _ == "function" ? _(f, ...u) : s.log(f, ...u);
43
+ typeof _ == "function" ? _(f, ...d) : s.log(f, ...d);
44
44
  } catch {
45
45
  }
46
46
  };
@@ -101,21 +101,21 @@ function eo() {
101
101
  return t.apply(e, o.length ? o.concat(i.call(arguments)) : arguments);
102
102
  };
103
103
  }
104
- var u = 0;
104
+ var d = 0;
105
105
  function f(t) {
106
- return "_leaflet_id" in t || (t._leaflet_id = ++u), t._leaflet_id;
106
+ return "_leaflet_id" in t || (t._leaflet_id = ++d), t._leaflet_id;
107
107
  }
108
108
  function _(t, e, i) {
109
- var o, l, d, p;
109
+ var o, l, u, p;
110
110
  return p = function() {
111
- o = !1, l && (d.apply(i, l), l = !1);
112
- }, d = function() {
111
+ o = !1, l && (u.apply(i, l), l = !1);
112
+ }, u = function() {
113
113
  o ? l = arguments : (t.apply(i, arguments), setTimeout(p, e), o = !0);
114
- }, d;
114
+ }, u;
115
115
  }
116
116
  function g(t, e, i) {
117
- var o = e[1], l = e[0], d = o - l;
118
- return t === o && i ? t : ((t - l) % d + d) % d + l;
117
+ var o = e[1], l = e[0], u = o - l;
118
+ return t === o && i ? t : ((t - l) % u + u) % u + l;
119
119
  }
120
120
  function w() {
121
121
  return !1;
@@ -126,13 +126,13 @@ function eo() {
126
126
  var i = Math.pow(10, e === void 0 ? 6 : e);
127
127
  return Math.round(t * i) / i;
128
128
  }
129
- function M(t) {
129
+ function T(t) {
130
130
  return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
131
131
  }
132
- function E(t) {
133
- return M(t).split(/\s+/);
132
+ function P(t) {
133
+ return T(t).split(/\s+/);
134
134
  }
135
- function P(t, e) {
135
+ function M(t, e) {
136
136
  Object.prototype.hasOwnProperty.call(t, "options") || (t.options = t.options ? r(t.options) : {});
137
137
  for (var i in e)
138
138
  t.options[i] = e[i];
@@ -144,9 +144,9 @@ function eo() {
144
144
  o.push(encodeURIComponent(i ? l.toUpperCase() : l) + "=" + encodeURIComponent(t[l]));
145
145
  return (!e || e.indexOf("?") === -1 ? "?" : "&") + o.join("&");
146
146
  }
147
- var H = /\{ *([\w_ -]+) *\}/g;
148
- function S(t, e) {
149
- return t.replace(H, function(i, o) {
147
+ var F = /\{ *([\w_ -]+) *\}/g;
148
+ function C(t, e) {
149
+ return t.replace(F, function(i, o) {
150
150
  var l = e[o];
151
151
  if (l === void 0)
152
152
  throw new Error("No value provided for variable " + i);
@@ -189,18 +189,18 @@ function eo() {
189
189
  create: r,
190
190
  bind: a,
191
191
  get lastId() {
192
- return u;
192
+ return d;
193
193
  },
194
194
  stamp: f,
195
195
  throttle: _,
196
196
  wrapNum: g,
197
197
  falseFn: w,
198
198
  formatNum: x,
199
- trim: M,
200
- splitWords: E,
201
- setOptions: P,
199
+ trim: T,
200
+ splitWords: P,
201
+ setOptions: M,
202
202
  getParamString: U,
203
- template: S,
203
+ template: C,
204
204
  isArray: D,
205
205
  indexOf: G,
206
206
  emptyImageUrl: Y,
@@ -213,7 +213,7 @@ function eo() {
213
213
  }
214
214
  ut.extend = function(t) {
215
215
  var e = function() {
216
- P(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
216
+ M(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
217
217
  }, i = e.__super__ = this.prototype, o = r(i);
218
218
  o.constructor = e, e.prototype = o;
219
219
  for (var l in this)
@@ -221,8 +221,8 @@ function eo() {
221
221
  return t.statics && n(e, t.statics), t.includes && (Kt(t.includes), n.apply(null, [o].concat(t.includes))), n(o, t), delete o.statics, delete o.includes, o.options && (o.options = i.options ? r(i.options) : {}, n(o.options, t.options)), o._initHooks = [], o.callInitHooks = function() {
222
222
  if (!this._initHooksCalled) {
223
223
  i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
224
- for (var d = 0, p = o._initHooks.length; d < p; d++)
225
- o._initHooks[d].call(this);
224
+ for (var u = 0, p = o._initHooks.length; u < p; u++)
225
+ o._initHooks[u].call(this);
226
226
  }
227
227
  }, e;
228
228
  }, ut.include = function(t) {
@@ -256,8 +256,8 @@ function eo() {
256
256
  for (var o in t)
257
257
  this._on(o, t[o], e);
258
258
  else {
259
- t = E(t);
260
- for (var l = 0, d = t.length; l < d; l++)
259
+ t = P(t);
260
+ for (var l = 0, u = t.length; l < u; l++)
261
261
  this._on(t[l], e, i);
262
262
  }
263
263
  return this;
@@ -280,9 +280,9 @@ function eo() {
280
280
  for (var o in t)
281
281
  this._off(o, t[o], e);
282
282
  else {
283
- t = E(t);
284
- for (var l = arguments.length === 1, d = 0, p = t.length; d < p; d++)
285
- l ? this._off(t[d]) : this._off(t[d], e, i);
283
+ t = P(t);
284
+ for (var l = arguments.length === 1, u = 0, p = t.length; u < p; u++)
285
+ l ? this._off(t[u]) : this._off(t[u], e, i);
286
286
  }
287
287
  return this;
288
288
  },
@@ -299,11 +299,11 @@ function eo() {
299
299
  }
300
300
  },
301
301
  _off: function(t, e, i) {
302
- var o, l, d;
302
+ var o, l, u;
303
303
  if (this._events && (o = this._events[t], !!o)) {
304
304
  if (arguments.length === 1) {
305
305
  if (this._firingCount)
306
- for (l = 0, d = o.length; l < d; l++)
306
+ for (l = 0, u = o.length; l < u; l++)
307
307
  o[l].fn = w;
308
308
  delete this._events[t];
309
309
  return;
@@ -335,8 +335,8 @@ function eo() {
335
335
  var l = this._events[t];
336
336
  if (l) {
337
337
  this._firingCount = this._firingCount + 1 || 1;
338
- for (var d = 0, p = l.length; d < p; d++) {
339
- var v = l[d], y = v.fn;
338
+ for (var u = 0, p = l.length; u < p; u++) {
339
+ var v = l[u], y = v.fn;
340
340
  v.once && this.off(t, y, v.ctx), y.call(v.ctx || this, o);
341
341
  }
342
342
  this._firingCount--;
@@ -352,8 +352,8 @@ function eo() {
352
352
  typeof t != "string" && console.warn('"string" type argument expected');
353
353
  var l = e;
354
354
  typeof e != "function" && (o = !!e, l = void 0, i = void 0);
355
- var d = this._events && this._events[t];
356
- if (d && d.length && this._listens(t, l, i) !== !1)
355
+ var u = this._events && this._events[t];
356
+ if (u && u.length && this._listens(t, l, i) !== !1)
357
357
  return !0;
358
358
  if (o) {
359
359
  for (var p in this._eventParents)
@@ -370,7 +370,7 @@ function eo() {
370
370
  if (!e)
371
371
  return !!o.length;
372
372
  i === this && (i = void 0);
373
- for (var l = 0, d = o.length; l < d; l++)
373
+ for (var l = 0, u = o.length; l < u; l++)
374
374
  if (o[l].fn === e && o[l].ctx === i)
375
375
  return l;
376
376
  return !1;
@@ -382,8 +382,8 @@ function eo() {
382
382
  for (var o in t)
383
383
  this._on(o, t[o], e, !0);
384
384
  else {
385
- t = E(t);
386
- for (var l = 0, d = t.length; l < d; l++)
385
+ t = P(t);
386
+ for (var l = 0, u = t.length; l < u; l++)
387
387
  this._on(t[l], e, i, !0);
388
388
  }
389
389
  return this;
@@ -593,16 +593,16 @@ function eo() {
593
593
  // intersect if they have at least one point in common.
594
594
  intersects: function(t) {
595
595
  t = lt(t);
596
- var e = this.min, i = this.max, o = t.min, l = t.max, d = l.x >= e.x && o.x <= i.x, p = l.y >= e.y && o.y <= i.y;
597
- return d && p;
596
+ var e = this.min, i = this.max, o = t.min, l = t.max, u = l.x >= e.x && o.x <= i.x, p = l.y >= e.y && o.y <= i.y;
597
+ return u && p;
598
598
  },
599
599
  // @method overlaps(otherBounds: Bounds): Boolean
600
600
  // Returns `true` if the rectangle overlaps the given bounds. Two bounds
601
601
  // overlap if their intersection is an area.
602
602
  overlaps: function(t) {
603
603
  t = lt(t);
604
- var e = this.min, i = this.max, o = t.min, l = t.max, d = l.x > e.x && o.x < i.x, p = l.y > e.y && o.y < i.y;
605
- return d && p;
604
+ var e = this.min, i = this.max, o = t.min, l = t.max, u = l.x > e.x && o.x < i.x, p = l.y > e.y && o.y < i.y;
605
+ return u && p;
606
606
  },
607
607
  // @method isValid(): Boolean
608
608
  // Returns `true` if the bounds are properly initialized.
@@ -724,15 +724,15 @@ function eo() {
724
724
  // Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
725
725
  intersects: function(t) {
726
726
  t = X(t);
727
- var e = this._southWest, i = this._northEast, o = t.getSouthWest(), l = t.getNorthEast(), d = l.lat >= e.lat && o.lat <= i.lat, p = l.lng >= e.lng && o.lng <= i.lng;
728
- return d && p;
727
+ var e = this._southWest, i = this._northEast, o = t.getSouthWest(), l = t.getNorthEast(), u = l.lat >= e.lat && o.lat <= i.lat, p = l.lng >= e.lng && o.lng <= i.lng;
728
+ return u && p;
729
729
  },
730
730
  // @method overlaps(otherBounds: LatLngBounds): Boolean
731
731
  // Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
732
732
  overlaps: function(t) {
733
733
  t = X(t);
734
- var e = this._southWest, i = this._northEast, o = t.getSouthWest(), l = t.getNorthEast(), d = l.lat > e.lat && o.lat < i.lat, p = l.lng > e.lng && o.lng < i.lng;
735
- return d && p;
734
+ var e = this._southWest, i = this._northEast, o = t.getSouthWest(), l = t.getNorthEast(), u = l.lat > e.lat && o.lat < i.lat, p = l.lng > e.lng && o.lng < i.lng;
735
+ return u && p;
736
736
  },
737
737
  // @method toBBoxString(): String
738
738
  // Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.
@@ -881,7 +881,7 @@ function eo() {
881
881
  var e = t.getCenter(), i = this.wrapLatLng(e), o = e.lat - i.lat, l = e.lng - i.lng;
882
882
  if (o === 0 && l === 0)
883
883
  return t;
884
- var d = t.getSouthWest(), p = t.getNorthEast(), v = new V(d.lat - o, d.lng - l), y = new V(p.lat - o, p.lng - l);
884
+ var u = t.getSouthWest(), p = t.getNorthEast(), v = new V(u.lat - o, u.lng - l), y = new V(p.lat - o, p.lng - l);
885
885
  return new ht(v, y);
886
886
  }
887
887
  }, Pt = n({}, xt, {
@@ -892,7 +892,7 @@ function eo() {
892
892
  R: 6371e3,
893
893
  // distance between two geographical points using spherical law of cosines approximation
894
894
  distance: function(t, e) {
895
- var i = Math.PI / 180, o = t.lat * i, l = e.lat * i, d = Math.sin((e.lat - t.lat) * i / 2), p = Math.sin((e.lng - t.lng) * i / 2), v = d * d + Math.cos(o) * Math.cos(l) * p * p, y = 2 * Math.atan2(Math.sqrt(v), Math.sqrt(1 - v));
895
+ var i = Math.PI / 180, o = t.lat * i, l = e.lat * i, u = Math.sin((e.lat - t.lat) * i / 2), p = Math.sin((e.lng - t.lng) * i / 2), v = u * u + Math.cos(o) * Math.cos(l) * p * p, y = 2 * Math.atan2(Math.sqrt(v), Math.sqrt(1 - v));
896
896
  return this.R * y;
897
897
  }
898
898
  }), Ii = 6378137, Ge = {
@@ -962,11 +962,11 @@ function eo() {
962
962
  return document.createElementNS("http://www.w3.org/2000/svg", t);
963
963
  }
964
964
  function Oi(t, e) {
965
- var i = "", o, l, d, p, v, y;
966
- for (o = 0, d = t.length; o < d; o++) {
965
+ var i = "", o, l, u, p, v, y;
966
+ for (o = 0, u = t.length; o < u; o++) {
967
967
  for (v = t[o], l = 0, p = v.length; l < p; l++)
968
968
  y = v[l], i += (l ? "L" : "M") + y.x + " " + y.y;
969
- i += e ? T.svg ? "z" : "x" : "";
969
+ i += e ? E.svg ? "z" : "x" : "";
970
970
  }
971
971
  return i || "M0 0";
972
972
  }
@@ -1000,7 +1000,7 @@ function eo() {
1000
1000
  function yt(t) {
1001
1001
  return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
1002
1002
  }
1003
- var T = {
1003
+ var E = {
1004
1004
  ie: ge,
1005
1005
  ielt9: co,
1006
1006
  edge: Bi,
@@ -1036,7 +1036,7 @@ function eo() {
1036
1036
  inlineSvg: Ao,
1037
1037
  mac: Eo,
1038
1038
  linux: Po
1039
- }, ji = T.msPointer ? "MSPointerDown" : "pointerdown", Ji = T.msPointer ? "MSPointerMove" : "pointermove", Ki = T.msPointer ? "MSPointerUp" : "pointerup", Xi = T.msPointer ? "MSPointerCancel" : "pointercancel", Xe = {
1039
+ }, ji = E.msPointer ? "MSPointerDown" : "pointerdown", Ji = E.msPointer ? "MSPointerMove" : "pointermove", Ki = E.msPointer ? "MSPointerUp" : "pointerup", Xi = E.msPointer ? "MSPointerCancel" : "pointercancel", Xe = {
1040
1040
  touchstart: ji,
1041
1041
  touchmove: Ji,
1042
1042
  touchend: Ki,
@@ -1090,20 +1090,20 @@ function eo() {
1090
1090
  function Ro(t, e) {
1091
1091
  t.addEventListener("dblclick", e);
1092
1092
  var i = 0, o;
1093
- function l(d) {
1094
- if (d.detail !== 1) {
1095
- o = d.detail;
1093
+ function l(u) {
1094
+ if (u.detail !== 1) {
1095
+ o = u.detail;
1096
1096
  return;
1097
1097
  }
1098
- if (!(d.pointerType === "mouse" || d.sourceCapabilities && !d.sourceCapabilities.firesTouchEvents)) {
1099
- var p = sn(d);
1098
+ if (!(u.pointerType === "mouse" || u.sourceCapabilities && !u.sourceCapabilities.firesTouchEvents)) {
1099
+ var p = sn(u);
1100
1100
  if (!(p.some(function(y) {
1101
1101
  return y instanceof HTMLLabelElement && y.attributes.for;
1102
1102
  }) && !p.some(function(y) {
1103
1103
  return y instanceof HTMLInputElement || y instanceof HTMLSelectElement;
1104
1104
  }))) {
1105
1105
  var v = Date.now();
1106
- v - i <= Bo ? (o++, o === 2 && e(Oo(d))) : o = 1, i = v;
1106
+ v - i <= Bo ? (o++, o === 2 && e(Oo(u))) : o = 1, i = v;
1107
1107
  }
1108
1108
  }
1109
1109
  }
@@ -1131,7 +1131,7 @@ function eo() {
1131
1131
  }
1132
1132
  return i === "auto" ? null : i;
1133
1133
  }
1134
- function F(t, e, i) {
1134
+ function H(t, e, i) {
1135
1135
  var o = document.createElement(t);
1136
1136
  return o.className = e || "", i && i.appendChild(o), o;
1137
1137
  }
@@ -1159,15 +1159,15 @@ function eo() {
1159
1159
  }
1160
1160
  function B(t, e) {
1161
1161
  if (t.classList !== void 0)
1162
- for (var i = E(e), o = 0, l = i.length; o < l; o++)
1162
+ for (var i = P(e), o = 0, l = i.length; o < l; o++)
1163
1163
  t.classList.add(i[o]);
1164
1164
  else if (!$e(t, e)) {
1165
- var d = Le(t);
1166
- ti(t, (d ? d + " " : "") + e);
1165
+ var u = Le(t);
1166
+ ti(t, (u ? u + " " : "") + e);
1167
1167
  }
1168
1168
  }
1169
1169
  function K(t, e) {
1170
- t.classList !== void 0 ? t.classList.remove(e) : ti(t, M((" " + Le(t) + " ").replace(" " + e + " ", " ")));
1170
+ t.classList !== void 0 ? t.classList.remove(e) : ti(t, T((" " + Le(t) + " ").replace(" " + e + " ", " ")));
1171
1171
  }
1172
1172
  function ti(t, e) {
1173
1173
  t.className.baseVal === void 0 ? t.className = e : t.className.baseVal = e;
@@ -1196,10 +1196,10 @@ function eo() {
1196
1196
  }
1197
1197
  function Dt(t, e, i) {
1198
1198
  var o = e || new z(0, 0);
1199
- t.style[Qe] = (T.ie3d ? "translate(" + o.x + "px," + o.y + "px)" : "translate3d(" + o.x + "px," + o.y + "px,0)") + (i ? " scale(" + i + ")" : "");
1199
+ t.style[Qe] = (E.ie3d ? "translate(" + o.x + "px," + o.y + "px)" : "translate3d(" + o.x + "px," + o.y + "px,0)") + (i ? " scale(" + i + ")" : "");
1200
1200
  }
1201
1201
  function Q(t, e) {
1202
- t._leaflet_pos = e, T.any3d ? Dt(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
1202
+ t._leaflet_pos = e, E.any3d ? Dt(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
1203
1203
  }
1204
1204
  function It(t) {
1205
1205
  return t._leaflet_pos || new z(0, 0);
@@ -1260,7 +1260,7 @@ function eo() {
1260
1260
  TRANSITION_END: en,
1261
1261
  get: nn,
1262
1262
  getStyle: ee,
1263
- create: F,
1263
+ create: H,
1264
1264
  remove: J,
1265
1265
  empty: ye,
1266
1266
  toFront: Zt,
@@ -1293,9 +1293,9 @@ function eo() {
1293
1293
  for (var l in e)
1294
1294
  li(t, l, e[l], i);
1295
1295
  else {
1296
- e = E(e);
1297
- for (var d = 0, p = e.length; d < p; d++)
1298
- li(t, e[d], i, o);
1296
+ e = P(e);
1297
+ for (var u = 0, p = e.length; u < p; u++)
1298
+ li(t, e[u], i, o);
1299
1299
  }
1300
1300
  return this;
1301
1301
  }
@@ -1306,13 +1306,13 @@ function eo() {
1306
1306
  else if (e && typeof e == "object")
1307
1307
  for (var l in e)
1308
1308
  hi(t, l, e[l], i);
1309
- else if (e = E(e), arguments.length === 2)
1309
+ else if (e = P(e), arguments.length === 2)
1310
1310
  rn(t, function(v) {
1311
1311
  return G(e, v) !== -1;
1312
1312
  });
1313
1313
  else
1314
- for (var d = 0, p = e.length; d < p; d++)
1315
- hi(t, e[d], i, o);
1314
+ for (var u = 0, p = e.length; u < p; u++)
1315
+ hi(t, e[u], i, o);
1316
1316
  return this;
1317
1317
  }
1318
1318
  function rn(t, e) {
@@ -1330,19 +1330,19 @@ function eo() {
1330
1330
  var l = e + f(i) + (o ? "_" + f(o) : "");
1331
1331
  if (t[Lt] && t[Lt][l])
1332
1332
  return this;
1333
- var d = function(v) {
1333
+ var u = function(v) {
1334
1334
  return i.call(o || t, v || window.event);
1335
- }, p = d;
1336
- !T.touchNative && T.pointer && e.indexOf("touch") === 0 ? d = To(t, e, d) : T.touch && e === "dblclick" ? d = Ro(t, d) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(ai[e] || e, d, T.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (d = function(v) {
1335
+ }, p = u;
1336
+ !E.touchNative && E.pointer && e.indexOf("touch") === 0 ? u = To(t, e, u) : E.touch && e === "dblclick" ? u = Ro(t, u) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(ai[e] || e, u, E.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (u = function(v) {
1337
1337
  v = v || window.event, di(t, v) && p(v);
1338
- }, t.addEventListener(ai[e], d, !1)) : t.addEventListener(e, p, !1) : t.attachEvent("on" + e, d), t[Lt] = t[Lt] || {}, t[Lt][l] = d;
1338
+ }, t.addEventListener(ai[e], u, !1)) : t.addEventListener(e, p, !1) : t.attachEvent("on" + e, u), t[Lt] = t[Lt] || {}, t[Lt][l] = u;
1339
1339
  }
1340
1340
  function hi(t, e, i, o, l) {
1341
1341
  l = l || e + f(i) + (o ? "_" + f(o) : "");
1342
- var d = t[Lt] && t[Lt][l];
1343
- if (!d)
1342
+ var u = t[Lt] && t[Lt][l];
1343
+ if (!u)
1344
1344
  return this;
1345
- !T.touchNative && T.pointer && e.indexOf("touch") === 0 ? Co(t, e, d) : T.touch && e === "dblclick" ? Uo(t, d) : "removeEventListener" in t ? t.removeEventListener(ai[e] || e, d, !1) : t.detachEvent("on" + e, d), t[Lt][l] = null;
1345
+ !E.touchNative && E.pointer && e.indexOf("touch") === 0 ? Co(t, e, u) : E.touch && e === "dblclick" ? Uo(t, u) : "removeEventListener" in t ? t.removeEventListener(ai[e] || e, u, !1) : t.detachEvent("on" + e, u), t[Lt][l] = null;
1346
1346
  }
1347
1347
  function zt(t) {
1348
1348
  return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
@@ -1377,9 +1377,9 @@ function eo() {
1377
1377
  (t.clientY - o.top) / i.y - e.clientTop
1378
1378
  );
1379
1379
  }
1380
- var Ho = T.linux && T.chrome ? window.devicePixelRatio : T.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
1380
+ var Ho = E.linux && E.chrome ? window.devicePixelRatio : E.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
1381
1381
  function ln(t) {
1382
- return T.edge ? t.wheelDeltaY / 2 : (
1382
+ return E.edge ? t.wheelDeltaY / 2 : (
1383
1383
  // Don't trust window-geometry-based delta
1384
1384
  t.deltaY && t.deltaMode === 0 ? -t.deltaY / Ho : (
1385
1385
  // Pixels
@@ -1541,7 +1541,7 @@ function eo() {
1541
1541
  trackResize: !0
1542
1542
  },
1543
1543
  initialize: function(t, e) {
1544
- e = P(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(N(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = te && T.any3d && !T.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), O(this._proxy, en, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
1544
+ e = M(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(N(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = te && E.any3d && !E.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), O(this._proxy, en, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
1545
1545
  },
1546
1546
  // @section Methods for modifying map state
1547
1547
  // @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
@@ -1564,12 +1564,12 @@ function eo() {
1564
1564
  // @method zoomIn(delta?: Number, options?: Zoom options): this
1565
1565
  // Increases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
1566
1566
  zoomIn: function(t, e) {
1567
- return t = t || (T.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom + t, e);
1567
+ return t = t || (E.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom + t, e);
1568
1568
  },
1569
1569
  // @method zoomOut(delta?: Number, options?: Zoom options): this
1570
1570
  // Decreases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
1571
1571
  zoomOut: function(t, e) {
1572
- return t = t || (T.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom - t, e);
1572
+ return t = t || (E.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom - t, e);
1573
1573
  },
1574
1574
  // @method setZoomAround(latlng: LatLng, zoom: Number, options: Zoom options): this
1575
1575
  // Zooms the map while keeping a specified geographical point on the map
@@ -1578,7 +1578,7 @@ function eo() {
1578
1578
  // @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
1579
1579
  // Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
1580
1580
  setZoomAround: function(t, e, i) {
1581
- var o = this.getZoomScale(e), l = this.getSize().divideBy(2), d = t instanceof z ? t : this.latLngToContainerPoint(t), p = d.subtract(l).multiplyBy(1 - 1 / o), v = this.containerPointToLatLng(l.add(p));
1581
+ var o = this.getZoomScale(e), l = this.getSize().divideBy(2), u = t instanceof z ? t : this.latLngToContainerPoint(t), p = u.subtract(l).multiplyBy(1 - 1 / o), v = this.containerPointToLatLng(l.add(p));
1582
1582
  return this.setView(v, e, { zoom: i });
1583
1583
  },
1584
1584
  _getBoundsCenterZoom: function(t, e) {
@@ -1589,7 +1589,7 @@ function eo() {
1589
1589
  center: t.getCenter(),
1590
1590
  zoom: l
1591
1591
  };
1592
- var d = o.subtract(i).divideBy(2), p = this.project(t.getSouthWest(), l), v = this.project(t.getNorthEast(), l), y = this.unproject(p.add(v).divideBy(2).add(d), l);
1592
+ var u = o.subtract(i).divideBy(2), p = this.project(t.getSouthWest(), l), v = this.project(t.getNorthEast(), l), y = this.unproject(p.add(v).divideBy(2).add(u), l);
1593
1593
  return {
1594
1594
  center: y,
1595
1595
  zoom: l
@@ -1637,14 +1637,14 @@ function eo() {
1637
1637
  // Sets the view of the map (geographical center and zoom) performing a smooth
1638
1638
  // pan-zoom animation.
1639
1639
  flyTo: function(t, e, i) {
1640
- if (i = i || {}, i.animate === !1 || !T.any3d)
1640
+ if (i = i || {}, i.animate === !1 || !E.any3d)
1641
1641
  return this.setView(t, e, i);
1642
1642
  this._stop();
1643
- var o = this.project(this.getCenter()), l = this.project(t), d = this.getSize(), p = this._zoom;
1643
+ var o = this.project(this.getCenter()), l = this.project(t), u = this.getSize(), p = this._zoom;
1644
1644
  t = N(t), e = e === void 0 ? p : e;
1645
- var v = Math.max(d.x, d.y), y = v * this.getZoomScale(p, e), b = l.distanceTo(o) || 1, A = 1.42, C = A * A;
1645
+ var v = Math.max(u.x, u.y), y = v * this.getZoomScale(p, e), b = l.distanceTo(o) || 1, A = 1.42, S = A * A;
1646
1646
  function R($) {
1647
- var Oe = $ ? -1 : 1, Cr = $ ? y : v, Sr = y * y - v * v + Oe * C * C * b * b, Dr = 2 * Cr * C * b, bi = Sr / Dr, Gn = Math.sqrt(bi * bi + 1) - bi, Ir = Gn < 1e-9 ? -18 : Math.log(Gn);
1647
+ var Oe = $ ? -1 : 1, Cr = $ ? y : v, Sr = y * y - v * v + Oe * S * S * b * b, Dr = 2 * Cr * S * b, bi = Sr / Dr, Gn = Math.sqrt(bi * bi + 1) - bi, Ir = Gn < 1e-9 ? -18 : Math.log(Gn);
1648
1648
  return Ir;
1649
1649
  }
1650
1650
  function st($) {
@@ -1661,7 +1661,7 @@ function eo() {
1661
1661
  return v * (et(ct) / et(ct + A * $));
1662
1662
  }
1663
1663
  function Mr($) {
1664
- return v * (et(ct) * mt(ct + A * $) - st(ct)) / C;
1664
+ return v * (et(ct) * mt(ct + A * $) - st(ct)) / S;
1665
1665
  }
1666
1666
  function Er($) {
1667
1667
  return 1 - Math.pow(1 - $, 1.5);
@@ -1715,10 +1715,10 @@ function eo() {
1715
1715
  // the map will not be panned.
1716
1716
  panInside: function(t, e) {
1717
1717
  e = e || {};
1718
- var i = I(e.paddingTopLeft || e.padding || [0, 0]), o = I(e.paddingBottomRight || e.padding || [0, 0]), l = this.project(this.getCenter()), d = this.project(t), p = this.getPixelBounds(), v = lt([p.min.add(i), p.max.subtract(o)]), y = v.getSize();
1719
- if (!v.contains(d)) {
1718
+ var i = I(e.paddingTopLeft || e.padding || [0, 0]), o = I(e.paddingBottomRight || e.padding || [0, 0]), l = this.project(this.getCenter()), u = this.project(t), p = this.getPixelBounds(), v = lt([p.min.add(i), p.max.subtract(o)]), y = v.getSize();
1719
+ if (!v.contains(u)) {
1720
1720
  this._enforcingBounds = !0;
1721
- var b = d.subtract(v.getCenter()), A = v.extend(d).getSize().subtract(y);
1721
+ var b = u.subtract(v.getCenter()), A = v.extend(u).getSize().subtract(y);
1722
1722
  l.x += b.x < 0 ? -A.x : A.x, l.y += b.y < 0 ? -A.y : A.y, this.panTo(this.unproject(l), e), this._enforcingBounds = !1;
1723
1723
  }
1724
1724
  return this;
@@ -1744,8 +1744,8 @@ function eo() {
1744
1744
  }, t === !0 ? { animate: !0 } : t);
1745
1745
  var e = this.getSize();
1746
1746
  this._sizeChanged = !0, this._lastCenter = null;
1747
- var i = this.getSize(), o = e.divideBy(2).round(), l = i.divideBy(2).round(), d = o.subtract(l);
1748
- return !d.x && !d.y ? this : (t.animate && t.pan ? this.panBy(d) : (t.pan && this._rawPanBy(d), this.fire("move"), t.debounceMoveend ? (clearTimeout(this._sizeTimer), this._sizeTimer = setTimeout(a(this.fire, this, "moveend"), 200)) : this.fire("moveend")), this.fire("resize", {
1747
+ var i = this.getSize(), o = e.divideBy(2).round(), l = i.divideBy(2).round(), u = o.subtract(l);
1748
+ return !u.x && !u.y ? this : (t.animate && t.pan ? this.panBy(u) : (t.pan && this._rawPanBy(u), this.fire("move"), t.debounceMoveend ? (clearTimeout(this._sizeTimer), this._sizeTimer = setTimeout(a(this.fire, this, "moveend"), 200)) : this.fire("moveend")), this.fire("resize", {
1749
1749
  oldSize: e,
1750
1750
  newSize: i
1751
1751
  }));
@@ -1799,10 +1799,10 @@ function eo() {
1799
1799
  },
1800
1800
  _handleGeolocationResponse: function(t) {
1801
1801
  if (this._container._leaflet_id) {
1802
- var e = t.coords.latitude, i = t.coords.longitude, o = new V(e, i), l = o.toBounds(t.coords.accuracy * 2), d = this._locateOptions;
1803
- if (d.setView) {
1802
+ var e = t.coords.latitude, i = t.coords.longitude, o = new V(e, i), l = o.toBounds(t.coords.accuracy * 2), u = this._locateOptions;
1803
+ if (u.setView) {
1804
1804
  var p = this.getBoundsZoom(l);
1805
- this.setView(o, d.maxZoom ? Math.min(p, d.maxZoom) : p);
1805
+ this.setView(o, u.maxZoom ? Math.min(p, u.maxZoom) : p);
1806
1806
  }
1807
1807
  var v = {
1808
1808
  latlng: o,
@@ -1848,7 +1848,7 @@ function eo() {
1848
1848
  // then returns it. The pane is created as a child of `container`, or
1849
1849
  // as a child of the main map pane if not set.
1850
1850
  createPane: function(t, e) {
1851
- var i = "leaflet-pane" + (t ? " leaflet-" + t.replace("Pane", "") + "-pane" : ""), o = F("div", i, e || this._mapPane);
1851
+ var i = "leaflet-pane" + (t ? " leaflet-" + t.replace("Pane", "") + "-pane" : ""), o = H("div", i, e || this._mapPane);
1852
1852
  return t && (this._panes[t] = o), o;
1853
1853
  },
1854
1854
  // @section Methods for Getting Map State
@@ -1885,8 +1885,8 @@ function eo() {
1885
1885
  // the given bounds in its entirety.
1886
1886
  getBoundsZoom: function(t, e, i) {
1887
1887
  t = X(t), i = I(i || [0, 0]);
1888
- var o = this.getZoom() || 0, l = this.getMinZoom(), d = this.getMaxZoom(), p = t.getNorthWest(), v = t.getSouthEast(), y = this.getSize().subtract(i), b = lt(this.project(v, o), this.project(p, o)).getSize(), A = T.any3d ? this.options.zoomSnap : 1, C = y.x / b.x, R = y.y / b.y, st = e ? Math.max(C, R) : Math.min(C, R);
1889
- return o = this.getScaleZoom(st, o), A && (o = Math.round(o / (A / 100)) * (A / 100), o = e ? Math.ceil(o / A) * A : Math.floor(o / A) * A), Math.max(l, Math.min(d, o));
1888
+ var o = this.getZoom() || 0, l = this.getMinZoom(), u = this.getMaxZoom(), p = t.getNorthWest(), v = t.getSouthEast(), y = this.getSize().subtract(i), b = lt(this.project(v, o), this.project(p, o)).getSize(), A = E.any3d ? this.options.zoomSnap : 1, S = y.x / b.x, R = y.y / b.y, st = e ? Math.max(S, R) : Math.min(S, R);
1889
+ return o = this.getScaleZoom(st, o), A && (o = Math.round(o / (A / 100)) * (A / 100), o = e ? Math.ceil(o / A) * A : Math.floor(o / A) * A), Math.max(l, Math.min(u, o));
1890
1890
  },
1891
1891
  // @method getSize(): Point
1892
1892
  // Returns the current size of the map container (in pixels).
@@ -2058,7 +2058,7 @@ function eo() {
2058
2058
  },
2059
2059
  _initLayout: function() {
2060
2060
  var t = this._container;
2061
- this._fadeAnimated = this.options.fadeAnimation && T.any3d, B(t, "leaflet-container" + (T.touch ? " leaflet-touch" : "") + (T.retina ? " leaflet-retina" : "") + (T.ielt9 ? " leaflet-oldie" : "") + (T.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
2061
+ this._fadeAnimated = this.options.fadeAnimation && E.any3d, B(t, "leaflet-container" + (E.touch ? " leaflet-touch" : "") + (E.retina ? " leaflet-retina" : "") + (E.ielt9 ? " leaflet-oldie" : "") + (E.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
2062
2062
  var e = ee(t, "position");
2063
2063
  e !== "absolute" && e !== "relative" && e !== "fixed" && e !== "sticky" && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
2064
2064
  },
@@ -2107,7 +2107,7 @@ function eo() {
2107
2107
  _initEvents: function(t) {
2108
2108
  this._targets = {}, this._targets[f(this._container)] = this;
2109
2109
  var e = t ? W : O;
2110
- 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), T.any3d && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
2110
+ 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), E.any3d && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
2111
2111
  },
2112
2112
  _onResize: function() {
2113
2113
  rt(this._resizeRequest), this._resizeRequest = ot(
@@ -2125,14 +2125,14 @@ function eo() {
2125
2125
  Math.max(Math.abs(t.x), Math.abs(t.y)) >= this.options.transform3DLimit && this._resetView(this.getCenter(), this.getZoom());
2126
2126
  },
2127
2127
  _findEventTargets: function(t, e) {
2128
- for (var i = [], o, l = e === "mouseout" || e === "mouseover", d = t.target || t.srcElement, p = !1; d; ) {
2129
- if (o = this._targets[f(d)], o && (e === "click" || e === "preclick") && this._draggableMoved(o)) {
2128
+ for (var i = [], o, l = e === "mouseout" || e === "mouseover", u = t.target || t.srcElement, p = !1; u; ) {
2129
+ if (o = this._targets[f(u)], o && (e === "click" || e === "preclick") && this._draggableMoved(o)) {
2130
2130
  p = !0;
2131
2131
  break;
2132
2132
  }
2133
- if (o && o.listens(e, !0) && (l && !di(d, t) || (i.push(o), l)) || d === this._container)
2133
+ if (o && o.listens(e, !0) && (l && !di(u, t) || (i.push(o), l)) || u === this._container)
2134
2134
  break;
2135
- d = d.parentNode;
2135
+ u = u.parentNode;
2136
2136
  }
2137
2137
  return !i.length && !p && !l && this.listens(e, !0) && (i = [this]), i;
2138
2138
  },
@@ -2158,9 +2158,9 @@ function eo() {
2158
2158
  }
2159
2159
  var l = this._findEventTargets(t, e);
2160
2160
  if (i) {
2161
- for (var d = [], p = 0; p < i.length; p++)
2162
- i[p].listens(e, !0) && d.push(i[p]);
2163
- l = d.concat(l);
2161
+ for (var u = [], p = 0; p < i.length; p++)
2162
+ i[p].listens(e, !0) && u.push(i[p]);
2163
+ l = u.concat(l);
2164
2164
  }
2165
2165
  if (l.length) {
2166
2166
  e === "contextmenu" && it(t);
@@ -2232,7 +2232,7 @@ function eo() {
2232
2232
  _limitCenter: function(t, e, i) {
2233
2233
  if (!i)
2234
2234
  return t;
2235
- var o = this.project(t, e), l = this.getSize().divideBy(2), d = new j(o.subtract(l), o.add(l)), p = this._getBoundsOffset(d, i, e);
2235
+ var o = this.project(t, e), l = this.getSize().divideBy(2), u = new j(o.subtract(l), o.add(l)), p = this._getBoundsOffset(u, i, e);
2236
2236
  return Math.abs(p.x) <= 1 && Math.abs(p.y) <= 1 ? t : this.unproject(o.add(p), e);
2237
2237
  },
2238
2238
  // adjust offset for view to get inside bounds
@@ -2247,14 +2247,14 @@ function eo() {
2247
2247
  var o = lt(
2248
2248
  this.project(e.getNorthEast(), i),
2249
2249
  this.project(e.getSouthWest(), i)
2250
- ), l = o.min.subtract(t.min), d = o.max.subtract(t.max), p = this._rebound(l.x, -d.x), v = this._rebound(l.y, -d.y);
2250
+ ), l = o.min.subtract(t.min), u = o.max.subtract(t.max), p = this._rebound(l.x, -u.x), v = this._rebound(l.y, -u.y);
2251
2251
  return new z(p, v);
2252
2252
  },
2253
2253
  _rebound: function(t, e) {
2254
2254
  return t + e > 0 ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e));
2255
2255
  },
2256
2256
  _limitZoom: function(t) {
2257
- var e = this.getMinZoom(), i = this.getMaxZoom(), o = T.any3d ? this.options.zoomSnap : 1;
2257
+ var e = this.getMinZoom(), i = this.getMaxZoom(), o = E.any3d ? this.options.zoomSnap : 1;
2258
2258
  return o && (t = Math.round(t / o) * o), Math.max(e, Math.min(i, t));
2259
2259
  },
2260
2260
  _onPanTransitionStep: function() {
@@ -2268,7 +2268,7 @@ function eo() {
2268
2268
  return (e && e.animate) !== !0 && !this.getSize().contains(i) ? !1 : (this.panBy(i, e), !0);
2269
2269
  },
2270
2270
  _createAnimProxy: function() {
2271
- var t = this._proxy = F("div", "leaflet-proxy leaflet-zoom-animated");
2271
+ var t = this._proxy = H("div", "leaflet-proxy leaflet-zoom-animated");
2272
2272
  this._panes.mapPane.appendChild(t), this.on("zoomanim", function(e) {
2273
2273
  var i = Qe, o = this._proxy.style[i];
2274
2274
  Dt(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), o === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
@@ -2321,7 +2321,7 @@ function eo() {
2321
2321
  position: "topright"
2322
2322
  },
2323
2323
  initialize: function(t) {
2324
- P(this, t);
2324
+ M(this, t);
2325
2325
  },
2326
2326
  /* @section
2327
2327
  * Classes extending L.Control will inherit the following methods:
@@ -2373,10 +2373,10 @@ function eo() {
2373
2373
  return t.remove(), this;
2374
2374
  },
2375
2375
  _initControlPos: function() {
2376
- var t = this._controlCorners = {}, e = "leaflet-", i = this._controlContainer = F("div", e + "control-container", this._container);
2377
- function o(l, d) {
2378
- var p = e + l + " " + e + d;
2379
- t[l + d] = F("div", p, i);
2376
+ var t = this._controlCorners = {}, e = "leaflet-", i = this._controlContainer = H("div", e + "control-container", this._container);
2377
+ function o(l, u) {
2378
+ var p = e + l + " " + e + u;
2379
+ t[l + u] = H("div", p, i);
2380
2380
  }
2381
2381
  o("top", "left"), o("top", "right"), o("bottom", "left"), o("bottom", "right");
2382
2382
  },
@@ -2415,7 +2415,7 @@ function eo() {
2415
2415
  }
2416
2416
  },
2417
2417
  initialize: function(t, e, i) {
2418
- P(this, i), this._layerControlInputs = [], this._layers = [], this._lastZIndex = 0, this._handlingClick = !1, this._preventClick = !1;
2418
+ M(this, i), this._layerControlInputs = [], this._layers = [], this._lastZIndex = 0, this._handlingClick = !1, this._preventClick = !1;
2419
2419
  for (var o in t)
2420
2420
  this._addLayer(t[o], o);
2421
2421
  for (o in e)
@@ -2465,23 +2465,23 @@ function eo() {
2465
2465
  return K(this._container, "leaflet-control-layers-expanded"), this;
2466
2466
  },
2467
2467
  _initLayout: function() {
2468
- var t = "leaflet-control-layers", e = this._container = F("div", t), i = this.options.collapsed;
2468
+ var t = "leaflet-control-layers", e = this._container = H("div", t), i = this.options.collapsed;
2469
2469
  e.setAttribute("aria-haspopup", !0), re(e), ci(e);
2470
- var o = this._section = F("section", t + "-list");
2470
+ var o = this._section = H("section", t + "-list");
2471
2471
  i && (this._map.on("click", this.collapse, this), O(e, {
2472
2472
  mouseenter: this._expandSafely,
2473
2473
  mouseleave: this.collapse
2474
2474
  }, this));
2475
- var l = this._layersLink = F("a", t + "-toggle", e);
2475
+ var l = this._layersLink = H("a", t + "-toggle", e);
2476
2476
  l.href = "#", l.title = "Layers", l.setAttribute("role", "button"), O(l, {
2477
- keydown: function(d) {
2478
- d.keyCode === 13 && this._expandSafely();
2477
+ keydown: function(u) {
2478
+ u.keyCode === 13 && this._expandSafely();
2479
2479
  },
2480
2480
  // Certain screen readers intercept the key event and instead send a click event
2481
- click: function(d) {
2482
- it(d), this._expandSafely();
2481
+ click: function(u) {
2482
+ it(u), this._expandSafely();
2483
2483
  }
2484
- }, this), i || this.expand(), this._baseLayersList = F("div", t + "-base", o), this._separator = F("div", t + "-separator", o), this._overlaysList = F("div", t + "-overlays", o), e.appendChild(o);
2484
+ }, this), i || this.expand(), this._baseLayersList = H("div", t + "-base", o), this._separator = H("div", t + "-separator", o), this._overlaysList = H("div", t + "-overlays", o), e.appendChild(o);
2485
2485
  },
2486
2486
  _getLayer: function(t) {
2487
2487
  for (var e = 0; e < this._layers.length; e++)
@@ -2521,8 +2521,8 @@ function eo() {
2521
2521
  t.overlay ? (o = document.createElement("input"), o.type = "checkbox", o.className = "leaflet-control-layers-selector", o.defaultChecked = i) : o = this._createRadioElement("leaflet-base-layers_" + f(this), i), this._layerControlInputs.push(o), o.layerId = f(t.layer), O(o, "click", this._onInputClick, this);
2522
2522
  var l = document.createElement("span");
2523
2523
  l.innerHTML = " " + t.name;
2524
- var d = document.createElement("span");
2525
- e.appendChild(d), d.appendChild(o), d.appendChild(l);
2524
+ var u = document.createElement("span");
2525
+ e.appendChild(u), u.appendChild(o), u.appendChild(l);
2526
2526
  var p = t.overlay ? this._overlaysList : this._baseLayersList;
2527
2527
  return p.appendChild(e), this._checkDisabledLayers(), e;
2528
2528
  },
@@ -2530,12 +2530,12 @@ function eo() {
2530
2530
  if (!this._preventClick) {
2531
2531
  var t = this._layerControlInputs, e, i, o = [], l = [];
2532
2532
  this._handlingClick = !0;
2533
- for (var d = t.length - 1; d >= 0; d--)
2534
- e = t[d], i = this._getLayer(e.layerId).layer, e.checked ? o.push(i) : e.checked || l.push(i);
2535
- for (d = 0; d < l.length; d++)
2536
- this._map.hasLayer(l[d]) && this._map.removeLayer(l[d]);
2537
- for (d = 0; d < o.length; d++)
2538
- this._map.hasLayer(o[d]) || this._map.addLayer(o[d]);
2533
+ for (var u = t.length - 1; u >= 0; u--)
2534
+ e = t[u], i = this._getLayer(e.layerId).layer, e.checked ? o.push(i) : e.checked || l.push(i);
2535
+ for (u = 0; u < l.length; u++)
2536
+ this._map.hasLayer(l[u]) && this._map.removeLayer(l[u]);
2537
+ for (u = 0; u < o.length; u++)
2538
+ this._map.hasLayer(o[u]) || this._map.addLayer(o[u]);
2539
2539
  this._handlingClick = !1, this._refocusOnMap();
2540
2540
  }
2541
2541
  },
@@ -2575,7 +2575,7 @@ function eo() {
2575
2575
  zoomOutTitle: "Zoom out"
2576
2576
  },
2577
2577
  onAdd: function(t) {
2578
- var e = "leaflet-control-zoom", i = F("div", e + " leaflet-bar"), o = this.options;
2578
+ var e = "leaflet-control-zoom", i = H("div", e + " leaflet-bar"), o = this.options;
2579
2579
  return this._zoomInButton = this._createButton(
2580
2580
  o.zoomInText,
2581
2581
  o.zoomInTitle,
@@ -2606,8 +2606,8 @@ function eo() {
2606
2606
  !this._disabled && this._map._zoom > this._map.getMinZoom() && this._map.zoomOut(this._map.options.zoomDelta * (t.shiftKey ? 3 : 1));
2607
2607
  },
2608
2608
  _createButton: function(t, e, i, o, l) {
2609
- var d = F("a", i, o);
2610
- return d.innerHTML = t, d.href = "#", d.title = e, d.setAttribute("role", "button"), d.setAttribute("aria-label", e), re(d), O(d, "click", Ot), O(d, "click", l, this), O(d, "click", this._refocusOnMap, this), d;
2609
+ var u = H("a", i, o);
2610
+ return u.innerHTML = t, u.href = "#", u.title = e, u.setAttribute("role", "button"), u.setAttribute("aria-label", e), re(u), O(u, "click", Ot), O(u, "click", l, this), O(u, "click", this._refocusOnMap, this), u;
2611
2611
  },
2612
2612
  _updateDisabled: function() {
2613
2613
  var t = this._map, e = "leaflet-disabled";
@@ -2639,14 +2639,14 @@ function eo() {
2639
2639
  // If `true`, the control is updated on [`moveend`](#map-moveend), otherwise it's always up-to-date (updated on [`move`](#map-move)).
2640
2640
  },
2641
2641
  onAdd: function(t) {
2642
- var e = "leaflet-control-scale", i = F("div", e), o = this.options;
2642
+ var e = "leaflet-control-scale", i = H("div", e), o = this.options;
2643
2643
  return this._addScales(o, e + "-line", i), t.on(o.updateWhenIdle ? "moveend" : "move", this._update, this), t.whenReady(this._update, this), i;
2644
2644
  },
2645
2645
  onRemove: function(t) {
2646
2646
  t.off(this.options.updateWhenIdle ? "moveend" : "move", this._update, this);
2647
2647
  },
2648
2648
  _addScales: function(t, e, i) {
2649
- t.metric && (this._mScale = F("div", e, i)), t.imperial && (this._iScale = F("div", e, i));
2649
+ t.metric && (this._mScale = H("div", e, i)), t.imperial && (this._iScale = H("div", e, i));
2650
2650
  },
2651
2651
  _update: function() {
2652
2652
  var t = this._map, e = t.getSize().y / 2, i = t.distance(
@@ -2682,13 +2682,13 @@ function eo() {
2682
2682
  position: "bottomright",
2683
2683
  // @option prefix: String|false = 'Leaflet'
2684
2684
  // The HTML text shown before the attributions. Pass `false` to disable.
2685
- prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (T.inlineSvg ? qo + " " : "") + "Leaflet</a>"
2685
+ prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (E.inlineSvg ? qo + " " : "") + "Leaflet</a>"
2686
2686
  },
2687
2687
  initialize: function(t) {
2688
- P(this, t), this._attributions = {};
2688
+ M(this, t), this._attributions = {};
2689
2689
  },
2690
2690
  onAdd: function(t) {
2691
- t.attributionControl = this, this._container = F("div", "leaflet-control-attribution"), re(this._container);
2691
+ t.attributionControl = this, this._container = H("div", "leaflet-control-attribution"), re(this._container);
2692
2692
  for (var e in t._layers)
2693
2693
  t._layers[e].getAttribution && this.addAttribution(t._layers[e].getAttribution());
2694
2694
  return this._update(), t.on("layeradd", this._addAttribution, this), this._container;
@@ -2764,7 +2764,7 @@ function eo() {
2764
2764
  wt.addTo = function(t, e) {
2765
2765
  return t.addHandler(e, this), this;
2766
2766
  };
2767
- var Jo = { Events: dt }, un = T.touch ? "touchstart mousedown" : "mousedown", Tt = Xt.extend({
2767
+ var Jo = { Events: dt }, un = E.touch ? "touchstart mousedown" : "mousedown", Tt = Xt.extend({
2768
2768
  options: {
2769
2769
  // @section
2770
2770
  // @aka Draggable options
@@ -2776,7 +2776,7 @@ function eo() {
2776
2776
  // @constructor L.Draggable(el: HTMLElement, dragHandle?: HTMLElement, preventOutline?: Boolean, options?: Draggable options)
2777
2777
  // Creates a `Draggable` object for moving `el` when you start dragging the `dragHandle` element (equals `el` itself by default).
2778
2778
  initialize: function(t, e, i, o) {
2779
- P(this, o), this._element = t, this._dragStartTarget = e || t, this._preventOutline = i;
2779
+ M(this, o), this._element = t, this._dragStartTarget = e || t, this._preventOutline = i;
2780
2780
  },
2781
2781
  // @method enable()
2782
2782
  // Enables the dragging ability
@@ -2830,38 +2830,38 @@ function eo() {
2830
2830
  }
2831
2831
  });
2832
2832
  function fn(t, e, i) {
2833
- var o, l = [1, 4, 2, 8], d, p, v, y, b, A, C, R;
2834
- for (d = 0, A = t.length; d < A; d++)
2835
- t[d]._code = Bt(t[d], e);
2833
+ var o, l = [1, 4, 2, 8], u, p, v, y, b, A, S, R;
2834
+ for (u = 0, A = t.length; u < A; u++)
2835
+ t[u]._code = Bt(t[u], e);
2836
2836
  for (v = 0; v < 4; v++) {
2837
- for (C = l[v], o = [], d = 0, A = t.length, p = A - 1; d < A; p = d++)
2838
- y = t[d], b = t[p], y._code & C ? b._code & C || (R = ke(b, y, C, e, i), R._code = Bt(R, e), o.push(R)) : (b._code & C && (R = ke(b, y, C, e, i), R._code = Bt(R, e), o.push(R)), o.push(y));
2837
+ for (S = l[v], o = [], u = 0, A = t.length, p = A - 1; u < A; p = u++)
2838
+ y = t[u], b = t[p], y._code & S ? b._code & S || (R = ke(b, y, S, e, i), R._code = Bt(R, e), o.push(R)) : (b._code & S && (R = ke(b, y, S, e, i), R._code = Bt(R, e), o.push(R)), o.push(y));
2839
2839
  t = o;
2840
2840
  }
2841
2841
  return t;
2842
2842
  }
2843
2843
  function pn(t, e) {
2844
- var i, o, l, d, p, v, y, b, A;
2844
+ var i, o, l, u, p, v, y, b, A;
2845
2845
  if (!t || t.length === 0)
2846
2846
  throw new Error("latlngs not passed");
2847
2847
  pt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
2848
- var C = N([0, 0]), R = X(t), st = R.getNorthWest().distanceTo(R.getSouthWest()) * R.getNorthEast().distanceTo(R.getNorthWest());
2849
- st < 1700 && (C = pi(t));
2848
+ var S = N([0, 0]), R = X(t), st = R.getNorthWest().distanceTo(R.getSouthWest()) * R.getNorthEast().distanceTo(R.getNorthWest());
2849
+ st < 1700 && (S = pi(t));
2850
2850
  var et = t.length, mt = [];
2851
2851
  for (i = 0; i < et; i++) {
2852
2852
  var ct = N(t[i]);
2853
- mt.push(e.project(N([ct.lat - C.lat, ct.lng - C.lng])));
2853
+ mt.push(e.project(N([ct.lat - S.lat, ct.lng - S.lng])));
2854
2854
  }
2855
2855
  for (v = y = b = 0, i = 0, o = et - 1; i < et; o = i++)
2856
- l = mt[i], d = mt[o], p = l.y * d.x - d.y * l.x, y += (l.x + d.x) * p, b += (l.y + d.y) * p, v += p * 3;
2856
+ l = mt[i], u = mt[o], p = l.y * u.x - u.y * l.x, y += (l.x + u.x) * p, b += (l.y + u.y) * p, v += p * 3;
2857
2857
  v === 0 ? A = mt[0] : A = [y / v, b / v];
2858
2858
  var qt = e.unproject(I(A));
2859
- return N([qt.lat + C.lat, qt.lng + C.lng]);
2859
+ return N([qt.lat + S.lat, qt.lng + S.lng]);
2860
2860
  }
2861
2861
  function pi(t) {
2862
2862
  for (var e = 0, i = 0, o = 0, l = 0; l < t.length; l++) {
2863
- var d = N(t[l]);
2864
- e += d.lat, i += d.lng, o++;
2863
+ var u = N(t[l]);
2864
+ e += u.lat, i += u.lng, o++;
2865
2865
  }
2866
2866
  return N([e / o, i / o]);
2867
2867
  }
@@ -2886,36 +2886,36 @@ function eo() {
2886
2886
  function Qo(t, e) {
2887
2887
  var i = t.length, o = typeof Uint8Array != "undefined" ? Uint8Array : Array, l = new o(i);
2888
2888
  l[0] = l[i - 1] = 1, mi(t, l, e, 0, i - 1);
2889
- var d, p = [];
2890
- for (d = 0; d < i; d++)
2891
- l[d] && p.push(t[d]);
2889
+ var u, p = [];
2890
+ for (u = 0; u < i; u++)
2891
+ l[u] && p.push(t[u]);
2892
2892
  return p;
2893
2893
  }
2894
2894
  function mi(t, e, i, o, l) {
2895
- var d = 0, p, v, y;
2895
+ var u = 0, p, v, y;
2896
2896
  for (v = o + 1; v <= l - 1; v++)
2897
- y = ae(t[v], t[o], t[l], !0), y > d && (p = v, d = y);
2898
- d > i && (e[p] = 1, mi(t, e, i, o, p), mi(t, e, i, p, l));
2897
+ y = ae(t[v], t[o], t[l], !0), y > u && (p = v, u = y);
2898
+ u > i && (e[p] = 1, mi(t, e, i, o, p), mi(t, e, i, p, l));
2899
2899
  }
2900
2900
  function $o(t, e) {
2901
- for (var i = [t[0]], o = 1, l = 0, d = t.length; o < d; o++)
2901
+ for (var i = [t[0]], o = 1, l = 0, u = t.length; o < u; o++)
2902
2902
  tr(t[o], t[l]) > e && (i.push(t[o]), l = o);
2903
- return l < d - 1 && i.push(t[d - 1]), i;
2903
+ return l < u - 1 && i.push(t[u - 1]), i;
2904
2904
  }
2905
2905
  var gn;
2906
2906
  function vn(t, e, i, o, l) {
2907
- var d = o ? gn : Bt(t, i), p = Bt(e, i), v, y, b;
2907
+ var u = o ? gn : Bt(t, i), p = Bt(e, i), v, y, b;
2908
2908
  for (gn = p; ; ) {
2909
- if (!(d | p))
2909
+ if (!(u | p))
2910
2910
  return [t, e];
2911
- if (d & p)
2911
+ if (u & p)
2912
2912
  return !1;
2913
- v = d || p, y = ke(t, e, v, i, l), b = Bt(y, i), v === d ? (t = y, d = b) : (e = y, p = b);
2913
+ v = u || p, y = ke(t, e, v, i, l), b = Bt(y, i), v === u ? (t = y, u = b) : (e = y, p = b);
2914
2914
  }
2915
2915
  }
2916
2916
  function ke(t, e, i, o, l) {
2917
- var d = e.x - t.x, p = e.y - t.y, v = o.min, y = o.max, b, A;
2918
- return i & 8 ? (b = t.x + d * (y.y - t.y) / p, A = y.y) : i & 4 ? (b = t.x + d * (v.y - t.y) / p, A = v.y) : i & 2 ? (b = y.x, A = t.y + p * (y.x - t.x) / d) : i & 1 && (b = v.x, A = t.y + p * (v.x - t.x) / d), new z(b, A, l);
2917
+ var u = e.x - t.x, p = e.y - t.y, v = o.min, y = o.max, b, A;
2918
+ return i & 8 ? (b = t.x + u * (y.y - t.y) / p, A = y.y) : i & 4 ? (b = t.x + u * (v.y - t.y) / p, A = v.y) : i & 2 ? (b = y.x, A = t.y + p * (y.x - t.x) / u) : i & 1 && (b = v.x, A = t.y + p * (v.x - t.x) / u), new z(b, A, l);
2919
2919
  }
2920
2920
  function Bt(t, e) {
2921
2921
  var i = 0;
@@ -2926,8 +2926,8 @@ function eo() {
2926
2926
  return i * i + o * o;
2927
2927
  }
2928
2928
  function ae(t, e, i, o) {
2929
- var l = e.x, d = e.y, p = i.x - l, v = i.y - d, y = p * p + v * v, b;
2930
- return y > 0 && (b = ((t.x - l) * p + (t.y - d) * v) / y, b > 1 ? (l = i.x, d = i.y) : b > 0 && (l += p * b, d += v * b)), p = t.x - l, v = t.y - d, o ? p * p + v * v : new z(l, d);
2929
+ var l = e.x, u = e.y, p = i.x - l, v = i.y - u, y = p * p + v * v, b;
2930
+ return y > 0 && (b = ((t.x - l) * p + (t.y - u) * v) / y, b > 1 ? (l = i.x, u = i.y) : b > 0 && (l += p * b, u += v * b)), p = t.x - l, v = t.y - u, o ? p * p + v * v : new z(l, u);
2931
2931
  }
2932
2932
  function pt(t) {
2933
2933
  return !D(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] != "undefined";
@@ -2936,11 +2936,11 @@ function eo() {
2936
2936
  return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), pt(t);
2937
2937
  }
2938
2938
  function Ln(t, e) {
2939
- var i, o, l, d, p, v, y, b;
2939
+ var i, o, l, u, p, v, y, b;
2940
2940
  if (!t || t.length === 0)
2941
2941
  throw new Error("latlngs not passed");
2942
2942
  pt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
2943
- var A = N([0, 0]), C = X(t), R = C.getNorthWest().distanceTo(C.getSouthWest()) * C.getNorthEast().distanceTo(C.getNorthWest());
2943
+ var A = N([0, 0]), S = X(t), R = S.getNorthWest().distanceTo(S.getSouthWest()) * S.getNorthEast().distanceTo(S.getNorthWest());
2944
2944
  R < 1700 && (A = pi(t));
2945
2945
  var st = t.length, et = [];
2946
2946
  for (i = 0; i < st; i++) {
@@ -2952,9 +2952,9 @@ function eo() {
2952
2952
  if (o === 0)
2953
2953
  b = et[0];
2954
2954
  else
2955
- for (i = 0, d = 0; i < st - 1; i++)
2956
- if (p = et[i], v = et[i + 1], l = p.distanceTo(v), d += l, d > o) {
2957
- y = (d - o) / l, b = [
2955
+ for (i = 0, u = 0; i < st - 1; i++)
2956
+ if (p = et[i], v = et[i + 1], l = p.distanceTo(v), u += l, u > o) {
2957
+ y = (u - o) / l, b = [
2958
2958
  v.x - y * (v.x - p.x),
2959
2959
  v.y - y * (v.y - p.y)
2960
2960
  ];
@@ -2988,12 +2988,12 @@ function eo() {
2988
2988
  R_MINOR: 6356752314245179e-9,
2989
2989
  bounds: new j([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
2990
2990
  project: function(t) {
2991
- var e = Math.PI / 180, i = this.R, o = t.lat * e, l = this.R_MINOR / i, d = Math.sqrt(1 - l * l), p = d * Math.sin(o), v = Math.tan(Math.PI / 4 - o / 2) / Math.pow((1 - p) / (1 + p), d / 2);
2991
+ var e = Math.PI / 180, i = this.R, o = t.lat * e, l = this.R_MINOR / i, u = Math.sqrt(1 - l * l), p = u * Math.sin(o), v = Math.tan(Math.PI / 4 - o / 2) / Math.pow((1 - p) / (1 + p), u / 2);
2992
2992
  return o = -i * Math.log(Math.max(v, 1e-10)), new z(t.lng * e * i, o);
2993
2993
  },
2994
2994
  unproject: function(t) {
2995
- for (var e = 180 / Math.PI, i = this.R, o = this.R_MINOR / i, l = Math.sqrt(1 - o * o), d = Math.exp(-t.y / i), p = Math.PI / 2 - 2 * Math.atan(d), v = 0, y = 0.1, b; v < 15 && Math.abs(y) > 1e-7; v++)
2996
- b = l * Math.sin(p), b = Math.pow((1 - b) / (1 + b), l / 2), y = Math.PI / 2 - 2 * Math.atan(d * b) - p, p += y;
2995
+ for (var e = 180 / Math.PI, i = this.R, o = this.R_MINOR / i, l = Math.sqrt(1 - o * o), u = Math.exp(-t.y / i), p = Math.PI / 2 - 2 * Math.atan(u), v = 0, y = 0.1, b; v < 15 && Math.abs(y) > 1e-7; v++)
2996
+ b = l * Math.sin(p), b = Math.pow((1 - b) / (1 + b), l / 2), y = Math.PI / 2 - 2 * Math.atan(u * b) - p, p += y;
2997
2997
  return new V(p * e, t.x * e / i);
2998
2998
  }
2999
2999
  }, ir = {
@@ -3147,7 +3147,7 @@ function eo() {
3147
3147
  });
3148
3148
  var Ft = vt.extend({
3149
3149
  initialize: function(t, e) {
3150
- P(this, e), this._layers = {};
3150
+ M(this, e), this._layers = {};
3151
3151
  var i, o;
3152
3152
  if (t)
3153
3153
  for (i = 0, o = t.length; i < o; i++)
@@ -3317,7 +3317,7 @@ function eo() {
3317
3317
  crossOrigin: !1
3318
3318
  },
3319
3319
  initialize: function(t) {
3320
- P(this, t);
3320
+ M(this, t);
3321
3321
  },
3322
3322
  // @method createIcon(oldIcon?: HTMLElement): HTMLElement
3323
3323
  // Called internally when the icon has to be shown, returns a `<img>` HTML element
@@ -3343,14 +3343,14 @@ function eo() {
3343
3343
  _setIconStyles: function(t, e) {
3344
3344
  var i = this.options, o = i[e + "Size"];
3345
3345
  typeof o == "number" && (o = [o, o]);
3346
- var l = I(o), d = I(e === "shadow" && i.shadowAnchor || i.iconAnchor || l && l.divideBy(2, !0));
3347
- t.className = "leaflet-marker-" + e + " " + (i.className || ""), d && (t.style.marginLeft = -d.x + "px", t.style.marginTop = -d.y + "px"), l && (t.style.width = l.x + "px", t.style.height = l.y + "px");
3346
+ var l = I(o), u = I(e === "shadow" && i.shadowAnchor || i.iconAnchor || l && l.divideBy(2, !0));
3347
+ t.className = "leaflet-marker-" + e + " " + (i.className || ""), u && (t.style.marginLeft = -u.x + "px", t.style.marginTop = -u.y + "px"), l && (t.style.width = l.x + "px", t.style.height = l.y + "px");
3348
3348
  },
3349
3349
  _createImg: function(t, e) {
3350
3350
  return e = e || document.createElement("img"), e.src = t, e;
3351
3351
  },
3352
3352
  _getIconUrl: function(t) {
3353
- return T.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
3353
+ return E.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
3354
3354
  }
3355
3355
  });
3356
3356
  function ar(t) {
@@ -3372,13 +3372,13 @@ function eo() {
3372
3372
  },
3373
3373
  _stripUrl: function(t) {
3374
3374
  var e = function(i, o, l) {
3375
- var d = o.exec(i);
3376
- return d && d[l];
3375
+ var u = o.exec(i);
3376
+ return u && u[l];
3377
3377
  };
3378
3378
  return t = e(t, /^url\((['"])?(.+)\1\)$/, 2), t && e(t, /^(.*)marker-icon\.png$/, 1);
3379
3379
  },
3380
3380
  _detectIconPath: function() {
3381
- var t = F("div", "leaflet-default-icon-path", document.body), e = ee(t, "background-image") || ee(t, "backgroundImage");
3381
+ var t = H("div", "leaflet-default-icon-path", document.body), e = ee(t, "background-image") || ee(t, "backgroundImage");
3382
3382
  if (document.body.removeChild(t), e = this._stripUrl(e), e)
3383
3383
  return e;
3384
3384
  var i = document.querySelector('link[href$="leaflet.css"]');
@@ -3409,14 +3409,14 @@ function eo() {
3409
3409
  return this._draggable && this._draggable._moved;
3410
3410
  },
3411
3411
  _adjustPan: function(t) {
3412
- var e = this._marker, i = e._map, o = this._marker.options.autoPanSpeed, l = this._marker.options.autoPanPadding, d = It(e._icon), p = i.getPixelBounds(), v = i.getPixelOrigin(), y = lt(
3412
+ var e = this._marker, i = e._map, o = this._marker.options.autoPanSpeed, l = this._marker.options.autoPanPadding, u = It(e._icon), p = i.getPixelBounds(), v = i.getPixelOrigin(), y = lt(
3413
3413
  p.min._subtract(v).add(l),
3414
3414
  p.max._subtract(v).subtract(l)
3415
3415
  );
3416
- if (!y.contains(d)) {
3416
+ if (!y.contains(u)) {
3417
3417
  var b = I(
3418
- (Math.max(y.max.x, d.x) - y.max.x) / (p.max.x - y.max.x) - (Math.min(y.min.x, d.x) - y.min.x) / (p.min.x - y.min.x),
3419
- (Math.max(y.max.y, d.y) - y.max.y) / (p.max.y - y.max.y) - (Math.min(y.min.y, d.y) - y.min.y) / (p.min.y - y.min.y)
3418
+ (Math.max(y.max.x, u.x) - y.max.x) / (p.max.x - y.max.x) - (Math.min(y.min.x, u.x) - y.min.x) / (p.min.x - y.min.x),
3419
+ (Math.max(y.max.y, u.y) - y.max.y) / (p.max.y - y.max.y) - (Math.min(y.min.y, u.y) - y.min.y) / (p.min.y - y.min.y)
3420
3420
  ).multiplyBy(o);
3421
3421
  i.panBy(b, { animate: !1 }), this._draggable._newPos._add(b), this._draggable._startPos._add(b), Q(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = ot(this._adjustPan.bind(this, t));
3422
3422
  }
@@ -3503,7 +3503,7 @@ function eo() {
3503
3503
  * In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPopup() you can also use the following methods:
3504
3504
  */
3505
3505
  initialize: function(t, e) {
3506
- P(this, e), this._latlng = N(t);
3506
+ M(this, e), this._latlng = N(t);
3507
3507
  },
3508
3508
  onAdd: function(t) {
3509
3509
  this._zoomAnimated = this._zoomAnimated && t.options.markerZoomAnimation, this._zoomAnimated && t.on("zoomanim", this._animateZoom, this), this._initIcon(), this.update();
@@ -3559,8 +3559,8 @@ function eo() {
3559
3559
  mouseover: this._bringToFront,
3560
3560
  mouseout: this._resetZIndex
3561
3561
  }), this.options.autoPanOnFocus && O(i, "focus", this._panOnFocus, this);
3562
- var l = t.icon.createShadow(this._shadow), d = !1;
3563
- l !== this._shadow && (this._removeShadow(), d = !0), l && (B(l, e), l.alt = ""), this._shadow = l, t.opacity < 1 && this._updateOpacity(), o && this.getPane().appendChild(this._icon), this._initInteraction(), l && d && this.getPane(t.shadowPane).appendChild(this._shadow);
3562
+ var l = t.icon.createShadow(this._shadow), u = !1;
3563
+ l !== this._shadow && (this._removeShadow(), u = !0), l && (B(l, e), l.alt = ""), this._shadow = l, t.opacity < 1 && this._updateOpacity(), o && this.getPane().appendChild(this._icon), this._initInteraction(), l && u && this.getPane(t.shadowPane).appendChild(this._shadow);
3564
3564
  },
3565
3565
  _removeIcon: function() {
3566
3566
  this.options.riseOnHover && this.off({
@@ -3687,7 +3687,7 @@ function eo() {
3687
3687
  // @method setStyle(style: Path options): this
3688
3688
  // Changes the appearance of a Path based on the options in the `Path options` object.
3689
3689
  setStyle: function(t) {
3690
- return P(this, t), this._renderer && (this._renderer._updateStyle(this), this.options.stroke && t && Object.prototype.hasOwnProperty.call(t, "weight") && this._updateBounds()), this;
3690
+ return M(this, t), this._renderer && (this._renderer._updateStyle(this), this.options.stroke && t && Object.prototype.hasOwnProperty.call(t, "weight") && this._updateBounds()), this;
3691
3691
  },
3692
3692
  // @method bringToFront(): this
3693
3693
  // Brings the layer to the top of all path layers.
@@ -3718,7 +3718,7 @@ function eo() {
3718
3718
  radius: 10
3719
3719
  },
3720
3720
  initialize: function(t, e) {
3721
- P(this, e), this._latlng = N(t), this._radius = this.options.radius;
3721
+ M(this, e), this._latlng = N(t), this._radius = this.options.radius;
3722
3722
  },
3723
3723
  // @method setLatLng(latLng: LatLng): this
3724
3724
  // Sets the position of a circle marker to a new location.
@@ -3771,7 +3771,7 @@ function eo() {
3771
3771
  }
3772
3772
  var vi = Me.extend({
3773
3773
  initialize: function(t, e, i) {
3774
- if (typeof e == "number" && (e = n({}, i, { radius: e })), P(this, e), this._latlng = N(t), isNaN(this.options.radius))
3774
+ if (typeof e == "number" && (e = n({}, i, { radius: e })), M(this, e), this._latlng = N(t), isNaN(this.options.radius))
3775
3775
  throw new Error("Circle radius cannot be NaN");
3776
3776
  this._mRadius = this.options.radius;
3777
3777
  },
@@ -3798,11 +3798,11 @@ function eo() {
3798
3798
  _project: function() {
3799
3799
  var t = this._latlng.lng, e = this._latlng.lat, i = this._map, o = i.options.crs;
3800
3800
  if (o.distance === Pt.distance) {
3801
- var l = Math.PI / 180, d = this._mRadius / Pt.R / l, p = i.project([e + d, t]), v = i.project([e - d, t]), y = p.add(v).divideBy(2), b = i.unproject(y).lat, A = Math.acos((Math.cos(d * l) - Math.sin(e * l) * Math.sin(b * l)) / (Math.cos(e * l) * Math.cos(b * l))) / l;
3802
- (isNaN(A) || A === 0) && (A = d / Math.cos(Math.PI / 180 * e)), this._point = y.subtract(i.getPixelOrigin()), this._radius = isNaN(A) ? 0 : y.x - i.project([b, t - A]).x, this._radiusY = y.y - p.y;
3801
+ var l = Math.PI / 180, u = this._mRadius / Pt.R / l, p = i.project([e + u, t]), v = i.project([e - u, t]), y = p.add(v).divideBy(2), b = i.unproject(y).lat, A = Math.acos((Math.cos(u * l) - Math.sin(e * l) * Math.sin(b * l)) / (Math.cos(e * l) * Math.cos(b * l))) / l;
3802
+ (isNaN(A) || A === 0) && (A = u / Math.cos(Math.PI / 180 * e)), this._point = y.subtract(i.getPixelOrigin()), this._radius = isNaN(A) ? 0 : y.x - i.project([b, t - A]).x, this._radiusY = y.y - p.y;
3803
3803
  } else {
3804
- var C = o.unproject(o.project(this._latlng).subtract([this._mRadius, 0]));
3805
- this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(C).x;
3804
+ var S = o.unproject(o.project(this._latlng).subtract([this._mRadius, 0]));
3805
+ this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(S).x;
3806
3806
  }
3807
3807
  this._updateBounds();
3808
3808
  }
@@ -3823,7 +3823,7 @@ function eo() {
3823
3823
  noClip: !1
3824
3824
  },
3825
3825
  initialize: function(t, e) {
3826
- P(this, e), this._setLatLngs(t);
3826
+ M(this, e), this._setLatLngs(t);
3827
3827
  },
3828
3828
  // @method getLatLngs(): LatLng[]
3829
3829
  // Returns an array of the points in the path, or nested arrays of points in case of multi-polyline.
@@ -3843,11 +3843,11 @@ function eo() {
3843
3843
  // @method closestLayerPoint(p: Point): Point
3844
3844
  // Returns the point closest to `p` on the Polyline.
3845
3845
  closestLayerPoint: function(t) {
3846
- for (var e = 1 / 0, i = null, o = ae, l, d, p = 0, v = this._parts.length; p < v; p++)
3846
+ for (var e = 1 / 0, i = null, o = ae, l, u, p = 0, v = this._parts.length; p < v; p++)
3847
3847
  for (var y = this._parts[p], b = 1, A = y.length; b < A; b++) {
3848
- l = y[b - 1], d = y[b];
3849
- var C = o(t, l, d, !0);
3850
- C < e && (e = C, i = o(t, l, d));
3848
+ l = y[b - 1], u = y[b];
3849
+ var S = o(t, l, u, !0);
3850
+ S < e && (e = S, i = o(t, l, u));
3851
3851
  }
3852
3852
  return i && (i.distance = Math.sqrt(e)), i;
3853
3853
  },
@@ -3895,14 +3895,14 @@ function eo() {
3895
3895
  },
3896
3896
  // recursively turns latlngs into a set of rings with projected coordinates
3897
3897
  _projectLatlngs: function(t, e, i) {
3898
- var o = t[0] instanceof V, l = t.length, d, p;
3898
+ var o = t[0] instanceof V, l = t.length, u, p;
3899
3899
  if (o) {
3900
- for (p = [], d = 0; d < l; d++)
3901
- p[d] = this._map.latLngToLayerPoint(t[d]), i.extend(p[d]);
3900
+ for (p = [], u = 0; u < l; u++)
3901
+ p[u] = this._map.latLngToLayerPoint(t[u]), i.extend(p[u]);
3902
3902
  e.push(p);
3903
3903
  } else
3904
- for (d = 0; d < l; d++)
3905
- this._projectLatlngs(t[d], e, i);
3904
+ for (u = 0; u < l; u++)
3905
+ this._projectLatlngs(t[u], e, i);
3906
3906
  },
3907
3907
  // clip polyline by renderer bounds so that we have less to render for performance
3908
3908
  _clipPoints: function() {
@@ -3912,8 +3912,8 @@ function eo() {
3912
3912
  this._parts = this._rings;
3913
3913
  return;
3914
3914
  }
3915
- var e = this._parts, i, o, l, d, p, v, y;
3916
- for (i = 0, l = 0, d = this._rings.length; i < d; i++)
3915
+ var e = this._parts, i, o, l, u, p, v, y;
3916
+ for (i = 0, l = 0, u = this._rings.length; i < u; i++)
3917
3917
  for (y = this._rings[i], o = 0, p = y.length; o < p - 1; o++)
3918
3918
  v = vn(y[o], y[o + 1], t, o, !0), v && (e[l] = e[l] || [], e[l].push(v[0]), (v[1] !== y[o + 1] || o === p - 2) && (e[l].push(v[1]), l++));
3919
3919
  }
@@ -3931,10 +3931,10 @@ function eo() {
3931
3931
  },
3932
3932
  // Needed by the `Canvas` renderer for interactivity
3933
3933
  _containsPoint: function(t, e) {
3934
- var i, o, l, d, p, v, y = this._clickTolerance();
3934
+ var i, o, l, u, p, v, y = this._clickTolerance();
3935
3935
  if (!this._pxBounds || !this._pxBounds.contains(t))
3936
3936
  return !1;
3937
- for (i = 0, d = this._parts.length; i < d; i++)
3937
+ for (i = 0, u = this._parts.length; i < u; i++)
3938
3938
  for (v = this._parts[i], o = 0, p = v.length, l = p - 1; o < p; l = o++)
3939
3939
  if (!(!e && o === 0) && _n(t, v[l], v[o]) <= y)
3940
3940
  return !0;
@@ -3976,8 +3976,8 @@ function eo() {
3976
3976
  this._parts = this._rings;
3977
3977
  return;
3978
3978
  }
3979
- for (var o = 0, l = this._rings.length, d; o < l; o++)
3980
- d = fn(this._rings[o], t, !0), d.length && this._parts.push(d);
3979
+ for (var o = 0, l = this._rings.length, u; o < l; o++)
3980
+ u = fn(this._rings[o], t, !0), u.length && this._parts.push(u);
3981
3981
  }
3982
3982
  },
3983
3983
  _updatePath: function() {
@@ -3985,11 +3985,11 @@ function eo() {
3985
3985
  },
3986
3986
  // Needed by the `Canvas` renderer for interactivity
3987
3987
  _containsPoint: function(t) {
3988
- var e = !1, i, o, l, d, p, v, y, b;
3988
+ var e = !1, i, o, l, u, p, v, y, b;
3989
3989
  if (!this._pxBounds || !this._pxBounds.contains(t))
3990
3990
  return !1;
3991
- for (d = 0, y = this._parts.length; d < y; d++)
3992
- for (i = this._parts[d], p = 0, b = i.length, v = b - 1; p < b; v = p++)
3991
+ for (u = 0, y = this._parts.length; u < y; u++)
3992
+ for (i = this._parts[u], p = 0, b = i.length, v = b - 1; p < b; v = p++)
3993
3993
  o = i[p], l = i[v], o.y > t.y != l.y > t.y && t.x < (l.x - o.x) * (t.y - o.y) / (l.y - o.y) + o.x && (e = !e);
3994
3994
  return e || At.prototype._containsPoint.call(this, t, !0);
3995
3995
  }
@@ -4048,7 +4048,7 @@ function eo() {
4048
4048
  * Whether default Markers for "Point" type Features inherit from group options.
4049
4049
  */
4050
4050
  initialize: function(t, e) {
4051
- P(this, e), this._layers = {}, t && this.addData(t);
4051
+ M(this, e), this._layers = {}, t && this.addData(t);
4052
4052
  },
4053
4053
  // @method addData( <GeoJSON> data ): this
4054
4054
  // Adds a GeoJSON object to the layer.
@@ -4059,11 +4059,11 @@ function eo() {
4059
4059
  l = e[i], (l.geometries || l.geometry || l.features || l.coordinates) && this.addData(l);
4060
4060
  return this;
4061
4061
  }
4062
- var d = this.options;
4063
- if (d.filter && !d.filter(t))
4062
+ var u = this.options;
4063
+ if (u.filter && !u.filter(t))
4064
4064
  return this;
4065
- var p = Ee(t, d);
4066
- return p ? (p.feature = Ce(t), p.defaultOptions = p.options, this.resetStyle(p), d.onEachFeature && d.onEachFeature(t, p), this.addLayer(p)) : this;
4065
+ var p = Ee(t, u);
4066
+ return p ? (p.feature = Ce(t), p.defaultOptions = p.options, this.resetStyle(p), u.onEachFeature && u.onEachFeature(t, p), this.addLayer(p)) : this;
4067
4067
  },
4068
4068
  // @method resetStyle( <Path> layer? ): this
4069
4069
  // Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
@@ -4083,15 +4083,15 @@ function eo() {
4083
4083
  }
4084
4084
  });
4085
4085
  function Ee(t, e) {
4086
- var i = t.type === "Feature" ? t.geometry : t, o = i ? i.coordinates : null, l = [], d = e && e.pointToLayer, p = e && e.coordsToLatLng || yi, v, y, b, A;
4086
+ var i = t.type === "Feature" ? t.geometry : t, o = i ? i.coordinates : null, l = [], u = e && e.pointToLayer, p = e && e.coordsToLatLng || yi, v, y, b, A;
4087
4087
  if (!o && !i)
4088
4088
  return null;
4089
4089
  switch (i.type) {
4090
4090
  case "Point":
4091
- return v = p(o), xn(d, t, v, e);
4091
+ return v = p(o), xn(u, t, v, e);
4092
4092
  case "MultiPoint":
4093
4093
  for (b = 0, A = o.length; b < A; b++)
4094
- v = p(o[b]), l.push(xn(d, t, v, e));
4094
+ v = p(o[b]), l.push(xn(u, t, v, e));
4095
4095
  return new kt(l);
4096
4096
  case "LineString":
4097
4097
  case "MultiLineString":
@@ -4101,12 +4101,12 @@ function eo() {
4101
4101
  return y = Pe(o, i.type === "Polygon" ? 1 : 2, p), new Vt(y, e);
4102
4102
  case "GeometryCollection":
4103
4103
  for (b = 0, A = i.geometries.length; b < A; b++) {
4104
- var C = Ee({
4104
+ var S = Ee({
4105
4105
  geometry: i.geometries[b],
4106
4106
  type: "Feature",
4107
4107
  properties: t.properties
4108
4108
  }, e);
4109
- C && l.push(C);
4109
+ S && l.push(S);
4110
4110
  }
4111
4111
  return new kt(l);
4112
4112
  case "FeatureCollection":
@@ -4126,7 +4126,7 @@ function eo() {
4126
4126
  return new V(t[1], t[0], t[2]);
4127
4127
  }
4128
4128
  function Pe(t, e, i) {
4129
- for (var o = [], l = 0, d = t.length, p; l < d; l++)
4129
+ for (var o = [], l = 0, u = t.length, p; l < u; l++)
4130
4130
  p = e ? Pe(t[l], e - 1, i) : (i || yi)(t[l]), o.push(p);
4131
4131
  return o;
4132
4132
  }
@@ -4134,8 +4134,8 @@ function eo() {
4134
4134
  return t = N(t), t.alt !== void 0 ? [x(t.lng, e), x(t.lat, e), x(t.alt, e)] : [x(t.lng, e), x(t.lat, e)];
4135
4135
  }
4136
4136
  function Te(t, e, i, o) {
4137
- for (var l = [], d = 0, p = t.length; d < p; d++)
4138
- l.push(e ? Te(t[d], pt(t[d]) ? 0 : e - 1, i, o) : Li(t[d], o));
4137
+ for (var l = [], u = 0, p = t.length; u < p; u++)
4138
+ l.push(e ? Te(t[u], pt(t[u]) ? 0 : e - 1, i, o) : Li(t[u], o));
4139
4139
  return !e && i && l.length > 0 && l.push(l[0].slice()), l;
4140
4140
  }
4141
4141
  function Wt(t, e) {
@@ -4192,11 +4192,11 @@ function eo() {
4192
4192
  var i = e === "GeometryCollection", o = [];
4193
4193
  return this.eachLayer(function(l) {
4194
4194
  if (l.toGeoJSON) {
4195
- var d = l.toGeoJSON(t);
4195
+ var u = l.toGeoJSON(t);
4196
4196
  if (i)
4197
- o.push(d.geometry);
4197
+ o.push(u.geometry);
4198
4198
  else {
4199
- var p = Ce(d);
4199
+ var p = Ce(u);
4200
4200
  p.type === "FeatureCollection" ? o.push.apply(o, p.features) : o.push(p);
4201
4201
  }
4202
4202
  }
@@ -4241,7 +4241,7 @@ function eo() {
4241
4241
  className: ""
4242
4242
  },
4243
4243
  initialize: function(t, e, i) {
4244
- this._url = t, this._bounds = X(e), P(this, i);
4244
+ this._url = t, this._bounds = X(e), M(this, i);
4245
4245
  },
4246
4246
  onAdd: function() {
4247
4247
  this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (B(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
@@ -4301,7 +4301,7 @@ function eo() {
4301
4301
  return this._image;
4302
4302
  },
4303
4303
  _initImage: function() {
4304
- var t = this._url.tagName === "IMG", e = this._image = t ? this._url : F("img");
4304
+ var t = this._url.tagName === "IMG", e = this._image = t ? this._url : H("img");
4305
4305
  if (B(e, "leaflet-image-layer"), this._zoomAnimated && B(e, "leaflet-zoom-animated"), this.options.className && B(e, this.options.className), e.onselectstart = w, e.onmousemove = w, e.onload = a(this.fire, this, "load"), e.onerror = a(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (e.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), t) {
4306
4306
  this._url = e.src;
4307
4307
  return;
@@ -4360,7 +4360,7 @@ function eo() {
4360
4360
  playsInline: !0
4361
4361
  },
4362
4362
  _initImage: function() {
4363
- var t = this._url.tagName === "VIDEO", e = this._image = t ? this._url : F("video");
4363
+ var t = this._url.tagName === "VIDEO", e = this._image = t ? this._url : H("video");
4364
4364
  if (B(e, "leaflet-image-layer"), this._zoomAnimated && B(e, "leaflet-zoom-animated"), this.options.className && B(e, this.options.className), e.onselectstart = w, e.onmousemove = w, e.onloadeddata = a(this.fire, this, "load"), t) {
4365
4365
  for (var i = e.getElementsByTagName("source"), o = [], l = 0; l < i.length; l++)
4366
4366
  o.push(i[l].src);
@@ -4368,9 +4368,9 @@ function eo() {
4368
4368
  return;
4369
4369
  }
4370
4370
  D(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;
4371
- for (var d = 0; d < this._url.length; d++) {
4372
- var p = F("source");
4373
- p.src = this._url[d], e.appendChild(p);
4371
+ for (var u = 0; u < this._url.length; u++) {
4372
+ var p = H("source");
4373
+ p.src = this._url[u], e.appendChild(p);
4374
4374
  }
4375
4375
  }
4376
4376
  // @method getElement(): HTMLVideoElement
@@ -4414,7 +4414,7 @@ function eo() {
4414
4414
  content: ""
4415
4415
  },
4416
4416
  initialize: function(t, e) {
4417
- t && (t instanceof V || D(t)) ? (this._latlng = N(t), P(this, e)) : (P(this, t), this._source = e), this.options.content && (this._content = this.options.content);
4417
+ t && (t instanceof V || D(t)) ? (this._latlng = N(t), M(this, e)) : (M(this, t), this._source = e), this.options.content && (this._content = this.options.content);
4418
4418
  },
4419
4419
  // @method openOn(map: Map): this
4420
4420
  // Adds the overlay to the map.
@@ -4557,7 +4557,7 @@ function eo() {
4557
4557
  }), vt.include({
4558
4558
  _initOverlay: function(t, e, i, o) {
4559
4559
  var l = i;
4560
- return l instanceof t ? (P(l, o), l._source = this) : (l = e && !o ? e : new t(o, this), l.setContent(i)), l;
4560
+ return l instanceof t ? (M(l, o), l._source = this) : (l = e && !o ? e : new t(o, this), l.setContent(i)), l;
4561
4561
  }
4562
4562
  });
4563
4563
  var De = bt.extend({
@@ -4637,12 +4637,12 @@ function eo() {
4637
4637
  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;
4638
4638
  },
4639
4639
  _initLayout: function() {
4640
- var t = "leaflet-popup", e = this._container = F(
4640
+ var t = "leaflet-popup", e = this._container = H(
4641
4641
  "div",
4642
4642
  t + " " + (this.options.className || "") + " leaflet-zoom-animated"
4643
- ), i = this._wrapper = F("div", t + "-content-wrapper", e);
4644
- if (this._contentNode = F("div", t + "-content", i), re(e), ci(this._contentNode), O(e, "contextmenu", zt), this._tipContainer = F("div", t + "-tip-container", e), this._tip = F("div", t + "-tip", this._tipContainer), this.options.closeButton) {
4645
- var o = this._closeButton = F("a", t + "-close-button", e);
4643
+ ), i = this._wrapper = H("div", t + "-content-wrapper", e);
4644
+ if (this._contentNode = H("div", t + "-content", i), re(e), ci(this._contentNode), O(e, "contextmenu", zt), this._tipContainer = H("div", t + "-tip-container", e), this._tip = H("div", t + "-tip", this._tipContainer), this.options.closeButton) {
4645
+ var o = this._closeButton = H("a", t + "-close-button", e);
4646
4646
  o.setAttribute("role", "button"), o.setAttribute("aria-label", "Close popup"), o.href = "#close", o.innerHTML = '<span aria-hidden="true">&#215;</span>', O(o, "click", function(l) {
4647
4647
  it(l), this.close();
4648
4648
  }, this);
@@ -4653,8 +4653,8 @@ function eo() {
4653
4653
  e.width = "", e.whiteSpace = "nowrap";
4654
4654
  var i = t.offsetWidth;
4655
4655
  i = Math.min(i, this.options.maxWidth), i = Math.max(i, this.options.minWidth), e.width = i + 1 + "px", e.whiteSpace = "", e.height = "";
4656
- var o = t.offsetHeight, l = this.options.maxHeight, d = "leaflet-popup-scrolled";
4657
- l && o > l ? (e.height = l + "px", B(t, d)) : K(t, d), this._containerWidth = this._container.offsetWidth;
4656
+ var o = t.offsetHeight, l = this.options.maxHeight, u = "leaflet-popup-scrolled";
4657
+ l && o > l ? (e.height = l + "px", B(t, u)) : K(t, u), this._containerWidth = this._container.offsetWidth;
4658
4658
  },
4659
4659
  _animateZoom: function(t) {
4660
4660
  var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center), i = this._getAnchor();
@@ -4668,8 +4668,8 @@ function eo() {
4668
4668
  }
4669
4669
  var t = this._map, e = parseInt(ee(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, o = this._containerWidth, l = new z(this._containerLeft, -i - this._containerBottom);
4670
4670
  l._add(It(this._container));
4671
- var d = t.layerPointToContainerPoint(l), p = I(this.options.autoPanPadding), v = I(this.options.autoPanPaddingTopLeft || p), y = I(this.options.autoPanPaddingBottomRight || p), b = t.getSize(), A = 0, C = 0;
4672
- d.x + o + y.x > b.x && (A = d.x + o - b.x + y.x), d.x - A - v.x < 0 && (A = d.x - v.x), d.y + i + y.y > b.y && (C = d.y + i - b.y + y.y), d.y - C - v.y < 0 && (C = d.y - v.y), (A || C) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([A, C]));
4671
+ var u = t.layerPointToContainerPoint(l), p = I(this.options.autoPanPadding), v = I(this.options.autoPanPaddingTopLeft || p), y = I(this.options.autoPanPaddingBottomRight || p), b = t.getSize(), A = 0, S = 0;
4672
+ u.x + o + y.x > b.x && (A = u.x + o - b.x + y.x), u.x - A - v.x < 0 && (A = u.x - v.x), u.y + i + y.y > b.y && (S = u.y + i - b.y + y.y), u.y - S - v.y < 0 && (S = u.y - v.y), (A || S) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([A, S]));
4673
4673
  }
4674
4674
  },
4675
4675
  _getAnchor: function() {
@@ -4803,15 +4803,15 @@ function eo() {
4803
4803
  },
4804
4804
  _initLayout: function() {
4805
4805
  var t = "leaflet-tooltip", e = t + " " + (this.options.className || "") + " leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide");
4806
- this._contentNode = this._container = F("div", e), this._container.setAttribute("role", "tooltip"), this._container.setAttribute("id", "leaflet-tooltip-" + f(this));
4806
+ this._contentNode = this._container = H("div", e), this._container.setAttribute("role", "tooltip"), this._container.setAttribute("id", "leaflet-tooltip-" + f(this));
4807
4807
  },
4808
4808
  _updateLayout: function() {
4809
4809
  },
4810
4810
  _adjustPan: function() {
4811
4811
  },
4812
4812
  _setPosition: function(t) {
4813
- var e, i, o = this._map, l = this._container, d = o.latLngToContainerPoint(o.getCenter()), p = o.layerPointToContainerPoint(t), v = this.options.direction, y = l.offsetWidth, b = l.offsetHeight, A = I(this.options.offset), C = this._getAnchor();
4814
- v === "top" ? (e = y / 2, i = b) : v === "bottom" ? (e = y / 2, i = 0) : v === "center" ? (e = y / 2, i = b / 2) : v === "right" ? (e = 0, i = b / 2) : v === "left" ? (e = y, i = b / 2) : p.x < d.x ? (v = "right", e = 0, i = b / 2) : (v = "left", e = y + (A.x + C.x) * 2, i = b / 2), t = t.subtract(I(e, i, !0)).add(A).add(C), K(l, "leaflet-tooltip-right"), K(l, "leaflet-tooltip-left"), K(l, "leaflet-tooltip-top"), K(l, "leaflet-tooltip-bottom"), B(l, "leaflet-tooltip-" + v), Q(l, t);
4813
+ var e, i, o = this._map, l = this._container, u = o.latLngToContainerPoint(o.getCenter()), p = o.layerPointToContainerPoint(t), v = this.options.direction, y = l.offsetWidth, b = l.offsetHeight, A = I(this.options.offset), S = this._getAnchor();
4814
+ v === "top" ? (e = y / 2, i = b) : v === "bottom" ? (e = y / 2, i = 0) : v === "center" ? (e = y / 2, i = b / 2) : v === "right" ? (e = 0, i = b / 2) : v === "left" ? (e = y, i = b / 2) : p.x < u.x ? (v = "right", e = 0, i = b / 2) : (v = "left", e = y + (A.x + S.x) * 2, i = b / 2), t = t.subtract(I(e, i, !0)).add(A).add(S), K(l, "leaflet-tooltip-right"), K(l, "leaflet-tooltip-left"), K(l, "leaflet-tooltip-top"), K(l, "leaflet-tooltip-bottom"), B(l, "leaflet-tooltip-" + v), Q(l, t);
4815
4815
  },
4816
4816
  _updatePosition: function() {
4817
4817
  var t = this._map.latLngToLayerPoint(this._latlng);
@@ -4976,7 +4976,7 @@ function eo() {
4976
4976
  // `true` by default on mobile browsers, in order to avoid too many requests and keep smooth navigation.
4977
4977
  // `false` otherwise in order to display new tiles _during_ panning, since it is easy to pan outside the
4978
4978
  // [`keepBuffer`](#gridlayer-keepbuffer) option in desktop browsers.
4979
- updateWhenIdle: T.mobile,
4979
+ updateWhenIdle: E.mobile,
4980
4980
  // @option updateWhenZooming: Boolean = true
4981
4981
  // 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.
4982
4982
  updateWhenZooming: !0,
@@ -5023,7 +5023,7 @@ function eo() {
5023
5023
  keepBuffer: 2
5024
5024
  },
5025
5025
  initialize: function(t) {
5026
- P(this, t);
5026
+ M(this, t);
5027
5027
  },
5028
5028
  onAdd: function() {
5029
5029
  this._initContainer(), this._levels = {}, this._tiles = {}, this._resetView();
@@ -5103,19 +5103,19 @@ function eo() {
5103
5103
  this._container && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._container.style.zIndex = this.options.zIndex);
5104
5104
  },
5105
5105
  _setAutoZIndex: function(t) {
5106
- for (var e = this.getPane().children, i = -t(-1 / 0, 1 / 0), o = 0, l = e.length, d; o < l; o++)
5107
- d = e[o].style.zIndex, e[o] !== this._container && d && (i = t(i, +d));
5106
+ for (var e = this.getPane().children, i = -t(-1 / 0, 1 / 0), o = 0, l = e.length, u; o < l; o++)
5107
+ u = e[o].style.zIndex, e[o] !== this._container && u && (i = t(i, +u));
5108
5108
  isFinite(i) && (this.options.zIndex = i + t(-1, 1), this._updateZIndex());
5109
5109
  },
5110
5110
  _updateOpacity: function() {
5111
- if (this._map && !T.ielt9) {
5111
+ if (this._map && !E.ielt9) {
5112
5112
  ft(this._container, this.options.opacity);
5113
5113
  var t = +/* @__PURE__ */ new Date(), e = !1, i = !1;
5114
5114
  for (var o in this._tiles) {
5115
5115
  var l = this._tiles[o];
5116
5116
  if (!(!l.current || !l.loaded)) {
5117
- var d = Math.min(1, (t - l.loaded) / 200);
5118
- ft(l.el, d), d < 1 ? e = !0 : (l.active ? i = !0 : this._onOpaqueTile(l), l.active = !0);
5117
+ var u = Math.min(1, (t - l.loaded) / 200);
5118
+ ft(l.el, u), u < 1 ? e = !0 : (l.active ? i = !0 : this._onOpaqueTile(l), l.active = !0);
5119
5119
  }
5120
5120
  }
5121
5121
  i && !this._noPrune && this._pruneTiles(), e && (rt(this._fadeFrame), this._fadeFrame = ot(this._updateOpacity, this));
@@ -5123,7 +5123,7 @@ function eo() {
5123
5123
  },
5124
5124
  _onOpaqueTile: w,
5125
5125
  _initContainer: function() {
5126
- this._container || (this._container = F("div", "leaflet-layer " + (this.options.className || "")), this._updateZIndex(), this.options.opacity < 1 && this._updateOpacity(), this.getPane().appendChild(this._container));
5126
+ this._container || (this._container = H("div", "leaflet-layer " + (this.options.className || "")), this._updateZIndex(), this.options.opacity < 1 && this._updateOpacity(), this.getPane().appendChild(this._container));
5127
5127
  },
5128
5128
  _updateLevels: function() {
5129
5129
  var t = this._tileZoom, e = this.options.maxZoom;
@@ -5131,7 +5131,7 @@ function eo() {
5131
5131
  for (var i in this._levels)
5132
5132
  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)) : (J(this._levels[i].el), this._removeTilesAtZoom(i), this._onRemoveLevel(i), delete this._levels[i]);
5133
5133
  var o = this._levels[t], l = this._map;
5134
- return o || (o = this._levels[t] = {}, o.el = F("div", "leaflet-tile-container leaflet-zoom-animated", this._container), o.el.style.zIndex = e, o.origin = l.project(l.unproject(l.getPixelOrigin()), t).round(), o.zoom = t, this._setZoomTransform(o, l.getCenter(), l.getZoom()), w(o.el.offsetWidth), this._onCreateLevel(o)), this._level = o, o;
5134
+ return o || (o = this._levels[t] = {}, o.el = H("div", "leaflet-tile-container leaflet-zoom-animated", this._container), o.el.style.zIndex = e, o.origin = l.project(l.unproject(l.getPixelOrigin()), t).round(), o.zoom = t, this._setZoomTransform(o, l.getCenter(), l.getZoom()), w(o.el.offsetWidth), this._onCreateLevel(o)), this._level = o, o;
5135
5135
  }
5136
5136
  },
5137
5137
  _onUpdateLevel: w,
@@ -5169,22 +5169,22 @@ function eo() {
5169
5169
  this._removeAllTiles(), this._tileZoom = void 0;
5170
5170
  },
5171
5171
  _retainParent: function(t, e, i, o) {
5172
- var l = Math.floor(t / 2), d = Math.floor(e / 2), p = i - 1, v = new z(+l, +d);
5172
+ var l = Math.floor(t / 2), u = Math.floor(e / 2), p = i - 1, v = new z(+l, +u);
5173
5173
  v.z = +p;
5174
5174
  var y = this._tileCoordsToKey(v), b = this._tiles[y];
5175
- return b && b.active ? (b.retain = !0, !0) : (b && b.loaded && (b.retain = !0), p > o ? this._retainParent(l, d, p, o) : !1);
5175
+ return b && b.active ? (b.retain = !0, !0) : (b && b.loaded && (b.retain = !0), p > o ? this._retainParent(l, u, p, o) : !1);
5176
5176
  },
5177
5177
  _retainChildren: function(t, e, i, o) {
5178
5178
  for (var l = 2 * t; l < 2 * t + 2; l++)
5179
- for (var d = 2 * e; d < 2 * e + 2; d++) {
5180
- var p = new z(l, d);
5179
+ for (var u = 2 * e; u < 2 * e + 2; u++) {
5180
+ var p = new z(l, u);
5181
5181
  p.z = i + 1;
5182
5182
  var v = this._tileCoordsToKey(p), y = this._tiles[v];
5183
5183
  if (y && y.active) {
5184
5184
  y.retain = !0;
5185
5185
  continue;
5186
5186
  } else y && y.loaded && (y.retain = !0);
5187
- i + 1 < o && this._retainChildren(l, d, i + 1, o);
5187
+ i + 1 < o && this._retainChildren(l, u, i + 1, o);
5188
5188
  }
5189
5189
  },
5190
5190
  _resetView: function(t) {
@@ -5201,8 +5201,8 @@ function eo() {
5201
5201
  _setView: function(t, e, i, o) {
5202
5202
  var l = Math.round(e);
5203
5203
  this.options.maxZoom !== void 0 && l > this.options.maxZoom || this.options.minZoom !== void 0 && l < this.options.minZoom ? l = void 0 : l = this._clampZoom(l);
5204
- var d = this.options.updateWhenZooming && l !== this._tileZoom;
5205
- (!o || d) && (this._tileZoom = l, this._abortLoading && this._abortLoading(), this._updateLevels(), this._resetGrid(), l !== void 0 && this._update(t), i || this._pruneTiles(), this._noPrune = !!i), this._setZoomTransforms(t, e);
5204
+ var u = this.options.updateWhenZooming && l !== this._tileZoom;
5205
+ (!o || u) && (this._tileZoom = l, this._abortLoading && this._abortLoading(), this._updateLevels(), this._resetGrid(), l !== void 0 && this._update(t), i || this._pruneTiles(), this._noPrune = !!i), this._setZoomTransforms(t, e);
5206
5206
  },
5207
5207
  _setZoomTransforms: function(t, e) {
5208
5208
  for (var i in this._levels)
@@ -5210,7 +5210,7 @@ function eo() {
5210
5210
  },
5211
5211
  _setZoomTransform: function(t, e, i) {
5212
5212
  var o = this._map.getZoomScale(i, t.zoom), l = t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e, i)).round();
5213
- T.any3d ? Dt(t.el, l, o) : Q(t.el, l);
5213
+ E.any3d ? Dt(t.el, l, o) : Q(t.el, l);
5214
5214
  },
5215
5215
  _resetGrid: function() {
5216
5216
  var t = this._map, e = t.options.crs, i = this._tileSize = this.getTileSize(), o = this._tileZoom, l = this._map.getPixelWorldBounds(this._tileZoom);
@@ -5226,8 +5226,8 @@ function eo() {
5226
5226
  !this._map || this._map._animatingZoom || this._update();
5227
5227
  },
5228
5228
  _getTiledPixelBounds: function(t) {
5229
- var e = this._map, i = e._animatingZoom ? Math.max(e._animateToZoom, e.getZoom()) : e.getZoom(), o = e.getZoomScale(i, this._tileZoom), l = e.project(t, this._tileZoom).floor(), d = e.getSize().divideBy(o * 2);
5230
- return new j(l.subtract(d), l.add(d));
5229
+ var e = this._map, i = e._animatingZoom ? Math.max(e._animateToZoom, e.getZoom()) : e.getZoom(), o = e.getZoomScale(i, this._tileZoom), l = e.project(t, this._tileZoom).floor(), u = e.getSize().divideBy(o * 2);
5230
+ return new j(l.subtract(u), l.add(u));
5231
5231
  },
5232
5232
  // Private method to load tiles in the grid's active zoom level according to map bounds
5233
5233
  _update: function(t) {
@@ -5235,7 +5235,7 @@ function eo() {
5235
5235
  if (e) {
5236
5236
  var i = this._clampZoom(e.getZoom());
5237
5237
  if (t === void 0 && (t = e.getCenter()), this._tileZoom !== void 0) {
5238
- var o = this._getTiledPixelBounds(t), l = this._pxBoundsToTileRange(o), d = l.getCenter(), p = [], v = this.options.keepBuffer, y = new j(
5238
+ var o = this._getTiledPixelBounds(t), l = this._pxBoundsToTileRange(o), u = l.getCenter(), p = [], v = this.options.keepBuffer, y = new j(
5239
5239
  l.getBottomLeft().subtract([v, -v]),
5240
5240
  l.getTopRight().add([v, -v])
5241
5241
  );
@@ -5249,16 +5249,16 @@ function eo() {
5249
5249
  this._setView(t, i);
5250
5250
  return;
5251
5251
  }
5252
- for (var C = l.min.y; C <= l.max.y; C++)
5252
+ for (var S = l.min.y; S <= l.max.y; S++)
5253
5253
  for (var R = l.min.x; R <= l.max.x; R++) {
5254
- var st = new z(R, C);
5254
+ var st = new z(R, S);
5255
5255
  if (st.z = this._tileZoom, !!this._isValidTile(st)) {
5256
5256
  var et = this._tiles[this._tileCoordsToKey(st)];
5257
5257
  et ? et.current = !0 : p.push(st);
5258
5258
  }
5259
5259
  }
5260
5260
  if (p.sort(function(ct, qt) {
5261
- return ct.distanceTo(d) - qt.distanceTo(d);
5261
+ return ct.distanceTo(u) - qt.distanceTo(u);
5262
5262
  }), p.length !== 0) {
5263
5263
  this._loading || (this._loading = !0, this.fire("loading"));
5264
5264
  var mt = document.createDocumentFragment();
@@ -5285,8 +5285,8 @@ function eo() {
5285
5285
  return this._tileCoordsToBounds(this._keyToTileCoords(t));
5286
5286
  },
5287
5287
  _tileCoordsToNwSe: function(t) {
5288
- var e = this._map, i = this.getTileSize(), o = t.scaleBy(i), l = o.add(i), d = e.unproject(o, t.z), p = e.unproject(l, t.z);
5289
- return [d, p];
5288
+ var e = this._map, i = this.getTileSize(), o = t.scaleBy(i), l = o.add(i), u = e.unproject(o, t.z), p = e.unproject(l, t.z);
5289
+ return [u, p];
5290
5290
  },
5291
5291
  // converts tile coordinates to its geographical bounds
5292
5292
  _tileCoordsToBounds: function(t) {
@@ -5312,7 +5312,7 @@ function eo() {
5312
5312
  _initTile: function(t) {
5313
5313
  B(t, "leaflet-tile");
5314
5314
  var e = this.getTileSize();
5315
- t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = w, t.onmousemove = w, T.ielt9 && this.options.opacity < 1 && ft(t, this.options.opacity);
5315
+ t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = w, t.onmousemove = w, E.ielt9 && this.options.opacity < 1 && ft(t, this.options.opacity);
5316
5316
  },
5317
5317
  _addTile: function(t, e) {
5318
5318
  var i = this._getTilePos(t), o = this._tileCoordsToKey(t), l = this.createTile(this._wrapCoords(t), a(this._tileReady, this, t));
@@ -5335,7 +5335,7 @@ function eo() {
5335
5335
  i = this._tiles[o], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (ft(i.el, 0), rt(this._fadeFrame), this._fadeFrame = ot(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (B(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
5336
5336
  tile: i.el,
5337
5337
  coords: t
5338
- })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), T.ielt9 || !this._map._fadeAnimated ? ot(this._pruneTiles, this) : setTimeout(a(this._pruneTiles, this), 250)));
5338
+ })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), E.ielt9 || !this._map._fadeAnimated ? ot(this._pruneTiles, this) : setTimeout(a(this._pruneTiles, this), 250)));
5339
5339
  },
5340
5340
  _getTilePos: function(t) {
5341
5341
  return t.scaleBy(this.getTileSize()).subtract(this._level.origin);
@@ -5406,7 +5406,7 @@ function eo() {
5406
5406
  referrerPolicy: !1
5407
5407
  },
5408
5408
  initialize: function(t, e) {
5409
- this._url = t, e = P(this, e), e.detectRetina && T.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);
5409
+ this._url = t, e = M(this, e), e.detectRetina && E.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);
5410
5410
  },
5411
5411
  // @method setUrl(url: String, noRedraw?: Boolean): this
5412
5412
  // Updates the layer's URL template and redraws it (unless `noRedraw` is set to `true`).
@@ -5431,7 +5431,7 @@ function eo() {
5431
5431
  // Classes extending `TileLayer` can override this function to provide custom tile URL naming schemes.
5432
5432
  getTileUrl: function(t) {
5433
5433
  var e = {
5434
- r: T.retina ? "@2x" : "",
5434
+ r: E.retina ? "@2x" : "",
5435
5435
  s: this._getSubdomain(t),
5436
5436
  x: t.x,
5437
5437
  y: t.y,
@@ -5441,10 +5441,10 @@ function eo() {
5441
5441
  var i = this._globalTileRange.max.y - t.y;
5442
5442
  this.options.tms && (e.y = i), e["-y"] = i;
5443
5443
  }
5444
- return S(this._url, n(e, this.options));
5444
+ return C(this._url, n(e, this.options));
5445
5445
  },
5446
5446
  _tileOnLoad: function(t, e) {
5447
- T.ielt9 ? setTimeout(a(t, this, null, e), 0) : t(null, e);
5447
+ E.ielt9 ? setTimeout(a(t, this, null, e), 0) : t(null, e);
5448
5448
  },
5449
5449
  _tileOnError: function(t, e, i) {
5450
5450
  var o = this.options.errorTileUrl;
@@ -5526,9 +5526,9 @@ function eo() {
5526
5526
  var i = n({}, this.defaultWmsParams);
5527
5527
  for (var o in e)
5528
5528
  o in this.options || (i[o] = e[o]);
5529
- e = P(this, e);
5530
- var l = e.detectRetina && T.retina ? 2 : 1, d = this.getTileSize();
5531
- i.width = d.x * l, i.height = d.y * l, this.wmsParams = i;
5529
+ e = M(this, e);
5530
+ var l = e.detectRetina && E.retina ? 2 : 1, u = this.getTileSize();
5531
+ i.width = u.x * l, i.height = u.y * l, this.wmsParams = i;
5532
5532
  },
5533
5533
  onAdd: function(t) {
5534
5534
  this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
@@ -5536,7 +5536,7 @@ function eo() {
5536
5536
  this.wmsParams[e] = this._crs.code, Yt.prototype.onAdd.call(this, t);
5537
5537
  },
5538
5538
  getTileUrl: function(t) {
5539
- var e = this._tileCoordsToNwSe(t), i = this._crs, o = lt(i.project(e[0]), i.project(e[1])), l = o.min, d = o.max, p = (this._wmsVersion >= 1.3 && this._crs === wn ? [l.y, l.x, d.y, d.x] : [l.x, l.y, d.x, d.y]).join(","), v = Yt.prototype.getTileUrl.call(this, t);
5539
+ var e = this._tileCoordsToNwSe(t), i = this._crs, o = lt(i.project(e[0]), i.project(e[1])), l = o.min, u = o.max, p = (this._wmsVersion >= 1.3 && this._crs === wn ? [l.y, l.x, u.y, u.x] : [l.x, l.y, u.x, u.y]).join(","), v = Yt.prototype.getTileUrl.call(this, t);
5540
5540
  return v + U(this.wmsParams, v, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + p;
5541
5541
  },
5542
5542
  // @method setParams(params: Object, noRedraw?: Boolean): this
@@ -5559,7 +5559,7 @@ function eo() {
5559
5559
  padding: 0.1
5560
5560
  },
5561
5561
  initialize: function(t) {
5562
- P(this, t), f(this), this._layers = this._layers || {};
5562
+ M(this, t), f(this), this._layers = this._layers || {};
5563
5563
  },
5564
5564
  onAdd: function() {
5565
5565
  this._container || (this._initContainer(), B(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
@@ -5583,8 +5583,8 @@ function eo() {
5583
5583
  this._updateTransform(this._map.getCenter(), this._map.getZoom());
5584
5584
  },
5585
5585
  _updateTransform: function(t, e) {
5586
- var i = this._map.getZoomScale(e, this._zoom), o = this._map.getSize().multiplyBy(0.5 + this.options.padding), l = this._map.project(this._center, e), d = o.multiplyBy(-i).add(l).subtract(this._map._getNewPixelOrigin(t, e));
5587
- T.any3d ? Dt(this._container, d, i) : Q(this._container, d);
5586
+ var i = this._map.getZoomScale(e, this._zoom), o = this._map.getSize().multiplyBy(0.5 + this.options.padding), l = this._map.project(this._center, e), u = o.multiplyBy(-i).add(l).subtract(this._map._getNewPixelOrigin(t, e));
5587
+ E.any3d ? Dt(this._container, u, i) : Q(this._container, u);
5588
5588
  },
5589
5589
  _reset: function() {
5590
5590
  this._update(), this._updateTransform(this._center, this._zoom);
@@ -5640,8 +5640,8 @@ function eo() {
5640
5640
  _update: function() {
5641
5641
  if (!(this._map._animatingZoom && this._bounds)) {
5642
5642
  Et.prototype._update.call(this);
5643
- var t = this._bounds, e = this._container, i = t.getSize(), o = T.retina ? 2 : 1;
5644
- Q(e, t.min), e.width = o * i.x, e.height = o * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px", T.retina && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update");
5643
+ var t = this._bounds, e = this._container, i = t.getSize(), o = E.retina ? 2 : 1;
5644
+ Q(e, t.min), e.width = o * i.x, e.height = o * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px", E.retina && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update");
5645
5645
  }
5646
5646
  },
5647
5647
  _reset: function() {
@@ -5714,11 +5714,11 @@ function eo() {
5714
5714
  },
5715
5715
  _updatePoly: function(t, e) {
5716
5716
  if (this._drawing) {
5717
- var i, o, l, d, p = t._parts, v = p.length, y = this._ctx;
5717
+ var i, o, l, u, p = t._parts, v = p.length, y = this._ctx;
5718
5718
  if (v) {
5719
5719
  for (y.beginPath(), i = 0; i < v; i++) {
5720
5720
  for (o = 0, l = p[i].length; o < l; o++)
5721
- d = p[i][o], y[o ? "lineTo" : "moveTo"](d.x, d.y);
5721
+ u = p[i][o], y[o ? "lineTo" : "moveTo"](u.x, u.y);
5722
5722
  e && y.closePath();
5723
5723
  }
5724
5724
  this._fillStroke(y, t);
@@ -5788,7 +5788,7 @@ function eo() {
5788
5788
  }
5789
5789
  });
5790
5790
  function Sn(t) {
5791
- return T.canvas ? new Cn(t) : null;
5791
+ return E.canvas ? new Cn(t) : null;
5792
5792
  }
5793
5793
  var ce = (function() {
5794
5794
  try {
@@ -5802,7 +5802,7 @@ function eo() {
5802
5802
  };
5803
5803
  })(), br = {
5804
5804
  _initContainer: function() {
5805
- this._container = F("div", "leaflet-vml-container");
5805
+ this._container = H("div", "leaflet-vml-container");
5806
5806
  },
5807
5807
  _update: function() {
5808
5808
  this._map._animatingZoom || (Et.prototype._update.call(this), this.fire("update"));
@@ -5836,7 +5836,7 @@ function eo() {
5836
5836
  _bringToBack: function(t) {
5837
5837
  Ht(t._container);
5838
5838
  }
5839
- }, ze = T.vml ? ce : zi, de = Et.extend({
5839
+ }, ze = E.vml ? ce : zi, de = Et.extend({
5840
5840
  _initContainer: function() {
5841
5841
  this._container = ze("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = ze("g"), this._container.appendChild(this._rootGroup);
5842
5842
  },
@@ -5872,8 +5872,8 @@ function eo() {
5872
5872
  this._setPath(t, Oi(t._parts, e));
5873
5873
  },
5874
5874
  _updateCircle: function(t) {
5875
- var e = t._point, i = Math.max(Math.round(t._radius), 1), o = Math.max(Math.round(t._radiusY), 1) || i, l = "a" + i + "," + o + " 0 1,0 ", d = t._empty() ? "M0 0" : "M" + (e.x - i) + "," + e.y + l + i * 2 + ",0 " + l + -i * 2 + ",0 ";
5876
- this._setPath(t, d);
5875
+ var e = t._point, i = Math.max(Math.round(t._radius), 1), o = Math.max(Math.round(t._radiusY), 1) || i, l = "a" + i + "," + o + " 0 1,0 ", u = t._empty() ? "M0 0" : "M" + (e.x - i) + "," + e.y + l + i * 2 + ",0 " + l + -i * 2 + ",0 ";
5876
+ this._setPath(t, u);
5877
5877
  },
5878
5878
  _setPath: function(t, e) {
5879
5879
  t._path.setAttribute("d", e);
@@ -5886,9 +5886,9 @@ function eo() {
5886
5886
  Ht(t._path);
5887
5887
  }
5888
5888
  });
5889
- T.vml && de.include(br);
5889
+ E.vml && de.include(br);
5890
5890
  function Dn(t) {
5891
- return T.svg || T.vml ? new de(t) : null;
5891
+ return E.svg || E.vml ? new de(t) : null;
5892
5892
  }
5893
5893
  Z.include({
5894
5894
  // @namespace Map; @method getRenderer(layer: Path): Renderer
@@ -5969,7 +5969,7 @@ function eo() {
5969
5969
  }, this);
5970
5970
  },
5971
5971
  _onMouseMove: function(t) {
5972
- this._moved || (this._moved = !0, this._box = F("div", "leaflet-zoom-box", this._container), B(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(t);
5972
+ this._moved || (this._moved = !0, this._box = H("div", "leaflet-zoom-box", this._container), B(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(t);
5973
5973
  var e = new j(this._point, this._startPoint), i = e.getSize();
5974
5974
  Q(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
5975
5975
  },
@@ -6108,7 +6108,7 @@ function eo() {
6108
6108
  }
6109
6109
  },
6110
6110
  _onPreDragWrap: function() {
6111
- var t = this._worldWidth, e = Math.round(t / 2), i = this._initialWorldOffset, o = this._draggable._newPos.x, l = (o - e + i) % t + e - i, d = (o + e + i) % t - e - i, p = Math.abs(l + i) < Math.abs(d + i) ? l : d;
6111
+ var t = this._worldWidth, e = Math.round(t / 2), i = this._initialWorldOffset, o = this._draggable._newPos.x, l = (o - e + i) % t + e - i, u = (o + e + i) % t - e - i, p = Math.abs(l + i) < Math.abs(u + i) ? l : u;
6112
6112
  this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x = p;
6113
6113
  },
6114
6114
  _onDragEnd: function(t) {
@@ -6117,10 +6117,10 @@ function eo() {
6117
6117
  e.fire("moveend");
6118
6118
  else {
6119
6119
  this._prunePositions(+/* @__PURE__ */ new Date());
6120
- var l = this._lastPos.subtract(this._positions[0]), d = (this._lastTime - this._times[0]) / 1e3, p = i.easeLinearity, v = l.multiplyBy(p / d), y = v.distanceTo([0, 0]), b = Math.min(i.inertiaMaxSpeed, y), A = v.multiplyBy(b / y), C = b / (i.inertiaDeceleration * p), R = A.multiplyBy(-C / 2).round();
6120
+ var l = this._lastPos.subtract(this._positions[0]), u = (this._lastTime - this._times[0]) / 1e3, p = i.easeLinearity, v = l.multiplyBy(p / u), y = v.distanceTo([0, 0]), b = Math.min(i.inertiaMaxSpeed, y), A = v.multiplyBy(b / y), S = b / (i.inertiaDeceleration * p), R = A.multiplyBy(-S / 2).round();
6121
6121
  !R.x && !R.y ? e.fire("moveend") : (R = e._limitOffset(R, e.options.maxBounds), ot(function() {
6122
6122
  e.panBy(R, {
6123
- duration: C,
6123
+ duration: S,
6124
6124
  easeLinearity: p,
6125
6125
  noMoveStart: !0,
6126
6126
  animate: !0
@@ -6259,7 +6259,7 @@ function eo() {
6259
6259
  _performZoom: function() {
6260
6260
  var t = this._map, e = t.getZoom(), i = this._map.options.zoomSnap || 0;
6261
6261
  t._stop();
6262
- var o = this._delta / (this._map.options.wheelPxPerZoomLevel * 4), l = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(o)))) / Math.LN2, d = i ? Math.ceil(l / i) * i : l, p = t._limitZoom(e + (this._delta > 0 ? d : -d)) - e;
6262
+ var o = this._delta / (this._map.options.wheelPxPerZoomLevel * 4), l = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(o)))) / Math.LN2, u = i ? Math.ceil(l / i) * i : l, p = t._limitZoom(e + (this._delta > 0 ? u : -u)) - e;
6263
6263
  this._delta = 0, this._startTime = null, p && (t.options.scrollWheelZoom === "center" ? t.setZoom(e + p) : t.setZoomAround(this._lastMousePos, e + p));
6264
6264
  }
6265
6265
  });
@@ -6269,7 +6269,7 @@ function eo() {
6269
6269
  // @section Touch interaction options
6270
6270
  // @option tapHold: Boolean
6271
6271
  // Enables simulation of `contextmenu` event, default is `true` for mobile Safari.
6272
- tapHold: T.touchNative && T.safari && T.mobile,
6272
+ tapHold: E.touchNative && E.safari && E.mobile,
6273
6273
  // @option tapTolerance: Number = 15
6274
6274
  // The max number of pixels a user can shift his finger during touch
6275
6275
  // for it to be considered a valid tap.
@@ -6326,7 +6326,7 @@ function eo() {
6326
6326
  // passed `'center'`, it will zoom to the center of the view regardless of
6327
6327
  // where the touch events (fingers) were. Enabled for touch-capable web
6328
6328
  // browsers.
6329
- touchZoom: T.touch,
6329
+ touchZoom: E.touch,
6330
6330
  // @option bounceAtZoomLimits: Boolean = true
6331
6331
  // Set it to false if you don't want the map to zoom beyond min/max zoom
6332
6332
  // and then bounce back when pinch-zooming.
@@ -6353,10 +6353,10 @@ function eo() {
6353
6353
  if (this._center = this._startLatLng, l === 1)
6354
6354
  return;
6355
6355
  } else {
6356
- var d = i._add(o)._divideBy(2)._subtract(this._centerPoint);
6357
- if (l === 1 && d.x === 0 && d.y === 0)
6356
+ var u = i._add(o)._divideBy(2)._subtract(this._centerPoint);
6357
+ if (l === 1 && u.x === 0 && u.y === 0)
6358
6358
  return;
6359
- this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(d), this._zoom);
6359
+ this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(u), this._zoom);
6360
6360
  }
6361
6361
  this._moved || (e._moveStart(!0, !1), this._moved = !0), rt(this._animRequest);
6362
6362
  var p = a(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
@@ -6371,7 +6371,7 @@ function eo() {
6371
6371
  this._zooming = !1, rt(this._animRequest), W(document, "touchmove", this._onTouchMove, this), W(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));
6372
6372
  }
6373
6373
  });
6374
- Z.addInitHook("addHandler", "touchZoom", Zn), Z.BoxZoom = zn, Z.DoubleClickZoom = On, Z.Drag = Bn, Z.Keyboard = Rn, Z.ScrollWheelZoom = Un, Z.TapHold = Nn, Z.TouchZoom = Zn, s.Bounds = j, s.Browser = T, s.CRS = xt, s.Canvas = Cn, s.Circle = vi, s.CircleMarker = Me, s.Class = ut, s.Control = gt, s.DivIcon = En, s.DivOverlay = bt, s.DomEvent = Fo, s.DomUtil = Zo, s.Draggable = Tt, s.Evented = Xt, s.FeatureGroup = kt, s.GeoJSON = Mt, s.GridLayer = he, s.Handler = wt, s.Icon = Gt, s.ImageOverlay = Se, s.LatLng = V, s.LatLngBounds = ht, s.Layer = vt, s.LayerGroup = Ft, s.LineUtil = er, s.Map = Z, s.Marker = Ae, s.Mixin = Jo, s.Path = Ct, s.Point = z, s.PolyUtil = Ko, s.Polygon = Vt, s.Polyline = At, s.Popup = De, s.PosAnimation = hn, s.Projection = ir, s.Rectangle = In, s.Renderer = Et, s.SVG = de, s.SVGOverlay = Mn, s.TileLayer = Yt, s.Tooltip = Ie, s.Transformation = Ve, s.Util = _e, s.VideoOverlay = An, s.bind = a, s.bounds = lt, s.canvas = Sn, s.circle = cr, s.circleMarker = hr, s.control = se, s.divIcon = yr, s.extend = n, s.featureGroup = sr, s.geoJSON = kn, s.geoJson = fr, s.gridLayer = Lr, s.icon = ar, s.imageOverlay = pr, s.latLng = N, s.latLngBounds = X, s.layerGroup = rr, s.map = Go, s.marker = lr, s.point = I, s.polygon = ur, s.polyline = dr, s.popup = gr, s.rectangle = xr, s.setOptions = P, s.stamp = f, s.svg = Dn, s.svgOverlay = _r, s.tileLayer = Pn, s.tooltip = vr, s.transformation = Qt, s.version = c, s.videoOverlay = mr;
6374
+ Z.addInitHook("addHandler", "touchZoom", Zn), Z.BoxZoom = zn, Z.DoubleClickZoom = On, Z.Drag = Bn, Z.Keyboard = Rn, Z.ScrollWheelZoom = Un, Z.TapHold = Nn, Z.TouchZoom = Zn, s.Bounds = j, s.Browser = E, s.CRS = xt, s.Canvas = Cn, s.Circle = vi, s.CircleMarker = Me, s.Class = ut, s.Control = gt, s.DivIcon = En, s.DivOverlay = bt, s.DomEvent = Fo, s.DomUtil = Zo, s.Draggable = Tt, s.Evented = Xt, s.FeatureGroup = kt, s.GeoJSON = Mt, s.GridLayer = he, s.Handler = wt, s.Icon = Gt, s.ImageOverlay = Se, s.LatLng = V, s.LatLngBounds = ht, s.Layer = vt, s.LayerGroup = Ft, s.LineUtil = er, s.Map = Z, s.Marker = Ae, s.Mixin = Jo, s.Path = Ct, s.Point = z, s.PolyUtil = Ko, s.Polygon = Vt, s.Polyline = At, s.Popup = De, s.PosAnimation = hn, s.Projection = ir, s.Rectangle = In, s.Renderer = Et, s.SVG = de, s.SVGOverlay = Mn, s.TileLayer = Yt, s.Tooltip = Ie, s.Transformation = Ve, s.Util = _e, s.VideoOverlay = An, s.bind = a, s.bounds = lt, s.canvas = Sn, s.circle = cr, s.circleMarker = hr, s.control = se, s.divIcon = yr, s.extend = n, s.featureGroup = sr, s.geoJSON = kn, s.geoJson = fr, s.gridLayer = Lr, s.icon = ar, s.imageOverlay = pr, s.latLng = N, s.latLngBounds = X, s.layerGroup = rr, s.map = Go, s.marker = lr, s.point = I, s.polygon = ur, s.polyline = dr, s.popup = gr, s.rectangle = xr, s.setOptions = M, s.stamp = f, s.svg = Dn, s.svgOverlay = _r, s.tileLayer = Pn, s.tooltip = vr, s.transformation = Qt, s.version = c, s.videoOverlay = mr;
6375
6375
  var Ar = window.L;
6376
6376
  s.noConflict = function() {
6377
6377
  return window.L = Ar, this;
@@ -6644,8 +6644,8 @@ function ts(m) {
6644
6644
  L.Draw.Feature.prototype.removeHooks.call(this), this._clearHideErrorTimeout(), this._cleanUpShape(), this._map.removeLayer(this._markerGroup), delete this._markerGroup, delete this._markers, this._map.removeLayer(this._poly), delete this._poly, this._mouseMarker.off("mousedown", this._onMouseDown, this).off("mouseout", this._onMouseOut, this).off("mouseup", this._onMouseUp, this).off("mousemove", this._onMouseMove, this), this._map.removeLayer(this._mouseMarker), delete this._mouseMarker, this._clearGuides(), this._map.off("mouseup", this._onMouseUp, this).off("mousemove", this._onMouseMove, this).off("zoomlevelschange", this._onZoomEnd, this).off("zoomend", this._onZoomEnd, this).off("touchstart", this._onTouch, this).off("click", this._onTouch, this);
6645
6645
  }, deleteLastVertex: function() {
6646
6646
  if (!(this._markers.length <= 1)) {
6647
- var n = this._markers.pop(), r = this._poly, a = r.getLatLngs(), u = a.splice(-1, 1)[0];
6648
- this._poly.setLatLngs(a), this._markerGroup.removeLayer(n), r.getLatLngs().length < 2 && this._map.removeLayer(r), this._vertexChanged(u, !1);
6647
+ var n = this._markers.pop(), r = this._poly, a = r.getLatLngs(), d = a.splice(-1, 1)[0];
6648
+ this._poly.setLatLngs(a), this._markerGroup.removeLayer(n), r.getLatLngs().length < 2 && this._map.removeLayer(r), this._vertexChanged(d, !1);
6649
6649
  }
6650
6650
  }, addVertex: function(n) {
6651
6651
  if (this._markers.length >= 2 && !this.options.allowIntersection && this._poly.newLatLngIntersects(n)) return void this._showErrorTooltip();
@@ -6668,23 +6668,23 @@ function ts(m) {
6668
6668
  }, _onMouseDown: function(n) {
6669
6669
  if (!this._clickHandled && !this._touchHandled && !this._disableMarkers) {
6670
6670
  this._onMouseMove(n), this._clickHandled = !0, this._disableNewMarkers();
6671
- var r = n.originalEvent, a = r.clientX, u = r.clientY;
6672
- this._startPoint.call(this, a, u);
6671
+ var r = n.originalEvent, a = r.clientX, d = r.clientY;
6672
+ this._startPoint.call(this, a, d);
6673
6673
  }
6674
6674
  }, _startPoint: function(n, r) {
6675
6675
  this._mouseDownOrigin = L.point(n, r);
6676
6676
  }, _onMouseUp: function(n) {
6677
- var r = n.originalEvent, a = r.clientX, u = r.clientY;
6678
- this._endPoint.call(this, a, u, n), this._clickHandled = null;
6677
+ var r = n.originalEvent, a = r.clientX, d = r.clientY;
6678
+ this._endPoint.call(this, a, d, n), this._clickHandled = null;
6679
6679
  }, _endPoint: function(n, r, a) {
6680
6680
  if (this._mouseDownOrigin) {
6681
- var u = L.point(n, r).distanceTo(this._mouseDownOrigin), f = this._calculateFinishDistance(a.latlng);
6682
- this.options.maxPoints > 1 && this.options.maxPoints == this._markers.length + 1 ? (this.addVertex(a.latlng), this._finishShape()) : f < 10 && L.Browser.touch ? this._finishShape() : Math.abs(u) < 9 * (m.devicePixelRatio || 1) && this.addVertex(a.latlng), this._enableNewMarkers();
6681
+ var d = L.point(n, r).distanceTo(this._mouseDownOrigin), f = this._calculateFinishDistance(a.latlng);
6682
+ this.options.maxPoints > 1 && this.options.maxPoints == this._markers.length + 1 ? (this.addVertex(a.latlng), this._finishShape()) : f < 10 && L.Browser.touch ? this._finishShape() : Math.abs(d) < 9 * (m.devicePixelRatio || 1) && this.addVertex(a.latlng), this._enableNewMarkers();
6683
6683
  }
6684
6684
  this._mouseDownOrigin = null;
6685
6685
  }, _onTouch: function(n) {
6686
- var r, a, u = n.originalEvent;
6687
- !u.touches || !u.touches[0] || this._clickHandled || this._touchHandled || this._disableMarkers || (r = u.touches[0].clientX, a = u.touches[0].clientY, this._disableNewMarkers(), this._touchHandled = !0, this._startPoint.call(this, r, a), this._endPoint.call(this, r, a, n), this._touchHandled = null), this._clickHandled = null;
6686
+ var r, a, d = n.originalEvent;
6687
+ !d.touches || !d.touches[0] || this._clickHandled || this._touchHandled || this._disableMarkers || (r = d.touches[0].clientX, a = d.touches[0].clientY, this._disableNewMarkers(), this._touchHandled = !0, this._startPoint.call(this, r, a), this._endPoint.call(this, r, a, n), this._touchHandled = null), this._clickHandled = null;
6688
6688
  }, _onMouseOut: function() {
6689
6689
  this._tooltip && this._tooltip._onMouseOut.call(this._tooltip);
6690
6690
  }, _calculateFinishDistance: function(n) {
@@ -6696,8 +6696,8 @@ function ts(m) {
6696
6696
  if (this.type !== L.Draw.Polygon.TYPE) return 1 / 0;
6697
6697
  a = this._markers[0];
6698
6698
  }
6699
- var u = this._map.latLngToContainerPoint(a.getLatLng()), f = new L.Marker(n, { icon: this.options.icon, zIndexOffset: 2 * this.options.zIndexOffset }), _ = this._map.latLngToContainerPoint(f.getLatLng());
6700
- r = u.distanceTo(_);
6699
+ var d = this._map.latLngToContainerPoint(a.getLatLng()), f = new L.Marker(n, { icon: this.options.icon, zIndexOffset: 2 * this.options.zIndexOffset }), _ = this._map.latLngToContainerPoint(f.getLatLng());
6700
+ r = d.distanceTo(_);
6701
6701
  } else r = 1 / 0;
6702
6702
  return r;
6703
6703
  }, _updateFinishHandler: function() {
@@ -6713,8 +6713,8 @@ function ts(m) {
6713
6713
  var r = this._getTooltipText();
6714
6714
  n && this._tooltip.updatePosition(n), this._errorShown || this._tooltip.updateContent(r);
6715
6715
  }, _drawGuide: function(n, r) {
6716
- var a, u, f, _ = Math.floor(Math.sqrt(Math.pow(r.x - n.x, 2) + Math.pow(r.y - n.y, 2))), g = this.options.guidelineDistance, w = this.options.maxGuideLineLength, x = _ > w ? _ - w : g;
6717
- for (this._guidesContainer || (this._guidesContainer = L.DomUtil.create("div", "leaflet-draw-guides", this._overlayPane)); x < _; x += this.options.guidelineDistance) a = x / _, u = { x: Math.floor(n.x * (1 - a) + a * r.x), y: Math.floor(n.y * (1 - a) + a * r.y) }, f = L.DomUtil.create("div", "leaflet-draw-guide-dash", this._guidesContainer), f.style.backgroundColor = this._errorShown ? this.options.drawError.color : this.options.shapeOptions.color, L.DomUtil.setPosition(f, u);
6716
+ var a, d, f, _ = Math.floor(Math.sqrt(Math.pow(r.x - n.x, 2) + Math.pow(r.y - n.y, 2))), g = this.options.guidelineDistance, w = this.options.maxGuideLineLength, x = _ > w ? _ - w : g;
6717
+ for (this._guidesContainer || (this._guidesContainer = L.DomUtil.create("div", "leaflet-draw-guides", this._overlayPane)); x < _; x += this.options.guidelineDistance) a = x / _, d = { x: Math.floor(n.x * (1 - a) + a * r.x), y: Math.floor(n.y * (1 - a) + a * r.y) }, f = L.DomUtil.create("div", "leaflet-draw-guide-dash", this._guidesContainer), f.style.backgroundColor = this._errorShown ? this.options.drawError.color : this.options.shapeOptions.color, L.DomUtil.setPosition(f, d);
6718
6718
  }, _updateGuideColor: function(n) {
6719
6719
  if (this._guidesContainer) for (var r = 0, a = this._guidesContainer.childNodes.length; r < a; r++) this._guidesContainer.childNodes[r].style.backgroundColor = n;
6720
6720
  }, _clearGuides: function() {
@@ -6723,8 +6723,8 @@ function ts(m) {
6723
6723
  var n, r, a = this.options.showLength;
6724
6724
  return this._markers.length === 0 ? n = { text: L.drawLocal.draw.handlers.polyline.tooltip.start } : (r = a ? this._getMeasurementString() : "", n = this._markers.length === 1 ? { text: L.drawLocal.draw.handlers.polyline.tooltip.cont, subtext: r } : { text: L.drawLocal.draw.handlers.polyline.tooltip.end, subtext: r }), n;
6725
6725
  }, _updateRunningMeasure: function(n, r) {
6726
- var a, u, f = this._markers.length;
6727
- this._markers.length === 1 ? this._measurementRunningTotal = 0 : (a = f - (r ? 2 : 1), u = L.GeometryUtil.isVersion07x() ? n.distanceTo(this._markers[a].getLatLng()) * (this.options.factor || 1) : this._map.distance(n, this._markers[a].getLatLng()) * (this.options.factor || 1), this._measurementRunningTotal += u * (r ? 1 : -1));
6726
+ var a, d, f = this._markers.length;
6727
+ this._markers.length === 1 ? this._measurementRunningTotal = 0 : (a = f - (r ? 2 : 1), d = L.GeometryUtil.isVersion07x() ? n.distanceTo(this._markers[a].getLatLng()) * (this.options.factor || 1) : this._map.distance(n, this._markers[a].getLatLng()) * (this.options.factor || 1), this._measurementRunningTotal += d * (r ? 1 : -1));
6728
6728
  }, _getMeasurementString: function() {
6729
6729
  var n, r = this._currentLatLng, a = this._markers[this._markers.length - 1].getLatLng();
6730
6730
  return n = L.GeometryUtil.isVersion07x() ? a && r && r.distanceTo ? this._measurementRunningTotal + r.distanceTo(a) * (this.options.factor || 1) : this._measurementRunningTotal || 0 : a && r ? this._measurementRunningTotal + this._map.distance(r, a) * (this.options.factor || 1) : this._measurementRunningTotal || 0, L.GeometryUtil.readableDistance(n, this.options.metric, this.options.feet, this.options.nautic, this.options.precision);
@@ -6792,8 +6792,8 @@ function ts(m) {
6792
6792
  var n = new L.Rectangle(this._shape.getBounds(), this.options.shapeOptions);
6793
6793
  L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this, n);
6794
6794
  }, _getTooltipText: function() {
6795
- var n, r, a, u = L.Draw.SimpleShape.prototype._getTooltipText.call(this), f = this._shape, _ = this.options.showArea;
6796
- return f && (n = this._shape._defaultShape ? this._shape._defaultShape() : this._shape.getLatLngs(), r = L.GeometryUtil.geodesicArea(n), a = _ ? L.GeometryUtil.readableArea(r, this.options.metric) : ""), { text: u.text, subtext: a };
6795
+ var n, r, a, d = L.Draw.SimpleShape.prototype._getTooltipText.call(this), f = this._shape, _ = this.options.showArea;
6796
+ return f && (n = this._shape._defaultShape ? this._shape._defaultShape() : this._shape.getLatLngs(), r = L.GeometryUtil.geodesicArea(n), a = _ ? L.GeometryUtil.readableArea(r, this.options.metric) : ""), { text: d.text, subtext: a };
6797
6797
  } }), L.Draw.Marker = L.Draw.Feature.extend({ statics: { TYPE: "marker" }, options: { icon: new L.Icon.Default(), repeatMode: !1, zIndexOffset: 2e3 }, initialize: function(n, r) {
6798
6798
  this.type = L.Draw.Marker.TYPE, this._initialLabelText = L.drawLocal.draw.handlers.marker.tooltip.start, L.Draw.Feature.prototype.initialize.call(this, n, r);
6799
6799
  }, addHooks: function() {
@@ -6829,11 +6829,11 @@ function ts(m) {
6829
6829
  var n = new L.Circle(this._startLatLng, this._shape.getRadius(), this.options.shapeOptions);
6830
6830
  L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this, n);
6831
6831
  }, _onMouseMove: function(n) {
6832
- var r, a = n.latlng, u = this.options.showRadius, f = this.options.metric;
6832
+ var r, a = n.latlng, d = this.options.showRadius, f = this.options.metric;
6833
6833
  if (this._tooltip.updatePosition(a), this._isDrawing) {
6834
6834
  this._drawShape(a), r = this._shape.getRadius().toFixed(1);
6835
6835
  var _ = "";
6836
- u && (_ = L.drawLocal.draw.handlers.circle.radius + ": " + L.GeometryUtil.readableDistance(r, f, this.options.feet, this.options.nautic)), this._tooltip.updateContent({ text: this._endLabelText, subtext: _ });
6836
+ d && (_ = L.drawLocal.draw.handlers.circle.radius + ": " + L.GeometryUtil.readableDistance(r, f, this.options.feet, this.options.nautic)), this._tooltip.updateContent({ text: this._endLabelText, subtext: _ });
6837
6837
  }
6838
6838
  } }), L.Edit = L.Edit || {}, L.Edit.Marker = L.Handler.extend({ initialize: function(n, r) {
6839
6839
  this._marker = n, L.setOptions(this, r);
@@ -6850,8 +6850,8 @@ function ts(m) {
6850
6850
  var n = this._marker._icon;
6851
6851
  n && (n.style.display = "none", L.DomUtil.hasClass(n, "leaflet-edit-marker-selected") ? (L.DomUtil.removeClass(n, "leaflet-edit-marker-selected"), this._offsetMarker(n, -4)) : (L.DomUtil.addClass(n, "leaflet-edit-marker-selected"), this._offsetMarker(n, 4)), n.style.display = "");
6852
6852
  }, _offsetMarker: function(n, r) {
6853
- var a = parseInt(n.style.marginTop, 10) - r, u = parseInt(n.style.marginLeft, 10) - r;
6854
- n.style.marginTop = a + "px", n.style.marginLeft = u + "px";
6853
+ var a = parseInt(n.style.marginTop, 10) - r, d = parseInt(n.style.marginLeft, 10) - r;
6854
+ n.style.marginTop = a + "px", n.style.marginLeft = d + "px";
6855
6855
  } }), L.Marker.addInitHook(function() {
6856
6856
  L.Edit.Marker && (this.editing = new L.Edit.Marker(this), this.options.editable && this.editing.enable());
6857
6857
  }), L.Edit = L.Edit || {}, L.Edit.Poly = L.Handler.extend({ initialize: function(n) {
@@ -6899,8 +6899,8 @@ function ts(m) {
6899
6899
  this._markerGroup.clearLayers(), this._initMarkers();
6900
6900
  }, _initMarkers: function() {
6901
6901
  this._markerGroup || (this._markerGroup = new L.LayerGroup()), this._markers = [];
6902
- var n, r, a, u, f = this._defaultShape();
6903
- for (n = 0, a = f.length; n < a; n++) u = this._createMarker(f[n], n), u.on("click", this._onMarkerClick, this), u.on("contextmenu", this._onContextMenu, this), this._markers.push(u);
6902
+ var n, r, a, d, f = this._defaultShape();
6903
+ for (n = 0, a = f.length; n < a; n++) d = this._createMarker(f[n], n), d.on("click", this._onMarkerClick, this), d.on("contextmenu", this._onContextMenu, this), this._markers.push(d);
6904
6904
  var _, g;
6905
6905
  for (n = 0, r = a - 1; n < a; r = n++) (n !== 0 || L.Polygon && this._poly instanceof L.Polygon) && (_ = this._markers[r], g = this._markers[n], this._createMiddleMarker(_, g), this._updatePrevNext(_, g));
6906
6906
  }, _createMarker: function(n, r) {
@@ -6917,11 +6917,11 @@ function ts(m) {
6917
6917
  }, _fireEdit: function() {
6918
6918
  this._poly.edited = !0, this._poly.fire("edit"), this._poly._map.fire(L.Draw.Event.EDITVERTEX, { layers: this._markerGroup, poly: this._poly });
6919
6919
  }, _onMarkerDrag: function(n) {
6920
- var r = n.target, a = this._poly, u = L.LatLngUtil.cloneLatLng(r._origLatLng);
6920
+ var r = n.target, a = this._poly, d = L.LatLngUtil.cloneLatLng(r._origLatLng);
6921
6921
  if (L.extend(r._origLatLng, r._latlng), a.options.poly) {
6922
6922
  var f = a._map._editTooltip;
6923
6923
  if (!a.options.poly.allowIntersection && a.intersects()) {
6924
- L.extend(r._origLatLng, u), r.setLatLng(u);
6924
+ L.extend(r._origLatLng, d), r.setLatLng(d);
6925
6925
  var _ = a.options.color;
6926
6926
  a.setStyle({ color: this.options.drawError.color }), f && f.updateContent({ text: L.drawLocal.draw.handlers.polyline.error }), setTimeout(function() {
6927
6927
  a.setStyle({ color: _ }), f && f.updateContent({ text: L.drawLocal.edit.handlers.edit.tooltip.text, subtext: L.drawLocal.edit.handlers.edit.tooltip.subtext });
@@ -6938,28 +6938,28 @@ function ts(m) {
6938
6938
  var r = n.target;
6939
6939
  this._poly, this._poly._map.fire(L.Draw.Event.MARKERCONTEXT, { marker: r, layers: this._markerGroup, poly: this._poly }), L.DomEvent.stopPropagation;
6940
6940
  }, _onTouchMove: function(n) {
6941
- var r = this._map.mouseEventToLayerPoint(n.originalEvent.touches[0]), a = this._map.layerPointToLatLng(r), u = n.target;
6942
- L.extend(u._origLatLng, a), u._middleLeft && u._middleLeft.setLatLng(this._getMiddleLatLng(u._prev, u)), u._middleRight && u._middleRight.setLatLng(this._getMiddleLatLng(u, u._next)), this._poly.redraw(), this.updateMarkers();
6941
+ var r = this._map.mouseEventToLayerPoint(n.originalEvent.touches[0]), a = this._map.layerPointToLatLng(r), d = n.target;
6942
+ L.extend(d._origLatLng, a), d._middleLeft && d._middleLeft.setLatLng(this._getMiddleLatLng(d._prev, d)), d._middleRight && d._middleRight.setLatLng(this._getMiddleLatLng(d, d._next)), this._poly.redraw(), this.updateMarkers();
6943
6943
  }, _updateIndexes: function(n, r) {
6944
6944
  this._markerGroup.eachLayer(function(a) {
6945
6945
  a._index > n && (a._index += r);
6946
6946
  });
6947
6947
  }, _createMiddleMarker: function(n, r) {
6948
- var a, u, f, _ = this._getMiddleLatLng(n, r), g = this._createMarker(_);
6949
- g.setOpacity(0.6), n._middleRight = r._middleLeft = g, u = function() {
6950
- g.off("touchmove", u, this);
6948
+ var a, d, f, _ = this._getMiddleLatLng(n, r), g = this._createMarker(_);
6949
+ g.setOpacity(0.6), n._middleRight = r._middleLeft = g, d = function() {
6950
+ g.off("touchmove", d, this);
6951
6951
  var w = r._index;
6952
6952
  g._index = w, g.off("click", a, this).on("click", this._onMarkerClick, this), _.lat = g.getLatLng().lat, _.lng = g.getLatLng().lng, this._spliceLatLngs(w, 0, _), this._markers.splice(w, 0, g), g.setOpacity(1), this._updateIndexes(w, 1), r._index++, this._updatePrevNext(n, g), this._updatePrevNext(g, r), this._poly.fire("editstart");
6953
6953
  }, f = function() {
6954
- g.off("dragstart", u, this), g.off("dragend", f, this), g.off("touchmove", u, this), this._createMiddleMarker(n, g), this._createMiddleMarker(g, r);
6954
+ g.off("dragstart", d, this), g.off("dragend", f, this), g.off("touchmove", d, this), this._createMiddleMarker(n, g), this._createMiddleMarker(g, r);
6955
6955
  }, a = function() {
6956
- u.call(this), f.call(this), this._fireEdit();
6957
- }, g.on("click", a, this).on("dragstart", u, this).on("dragend", f, this).on("touchmove", u, this), this._markerGroup.addLayer(g);
6956
+ d.call(this), f.call(this), this._fireEdit();
6957
+ }, g.on("click", a, this).on("dragstart", d, this).on("dragend", f, this).on("touchmove", d, this), this._markerGroup.addLayer(g);
6958
6958
  }, _updatePrevNext: function(n, r) {
6959
6959
  n && (n._next = r), r && (r._prev = n);
6960
6960
  }, _getMiddleLatLng: function(n, r) {
6961
- var a = this._poly._map, u = a.project(n.getLatLng()), f = a.project(r.getLatLng());
6962
- return a.unproject(u._add(f)._divideBy(2));
6961
+ var a = this._poly._map, d = a.project(n.getLatLng()), f = a.project(r.getLatLng());
6962
+ return a.unproject(d._add(f)._divideBy(2));
6963
6963
  } }), L.Polyline.addInitHook(function() {
6964
6964
  this.editing || (L.Edit.Poly && (this.editing = new L.Edit.Poly(this), this.options.editable && this.editing.enable()), this.on("add", function() {
6965
6965
  this.editing && this.editing.enabled() && this.editing.addHooks();
@@ -7006,8 +7006,8 @@ function ts(m) {
7006
7006
  n.target.setOpacity(1), this._fireEdit();
7007
7007
  }, _onTouchStart: function(n) {
7008
7008
  if (L.Edit.SimpleShape.prototype._onMarkerDragStart.call(this, n), typeof this._getCorners == "function") {
7009
- var r = this._getCorners(), a = n.target, u = a._cornerIndex;
7010
- a.setOpacity(0), this._oppositeCorner = r[(u + 2) % 4], this._toggleCornerMarkers(0, u);
7009
+ var r = this._getCorners(), a = n.target, d = a._cornerIndex;
7010
+ a.setOpacity(0), this._oppositeCorner = r[(d + 2) % 4], this._toggleCornerMarkers(0, d);
7011
7011
  }
7012
7012
  this._shape.fire("editstart");
7013
7013
  }, _onTouchMove: function(n) {
@@ -7026,13 +7026,13 @@ function ts(m) {
7026
7026
  for (var r = 0, a = n.length; r < a; r++) this._resizeMarkers.push(this._createMarker(n[r], this.options.resizeIcon)), this._resizeMarkers[r]._cornerIndex = r;
7027
7027
  }, _onMarkerDragStart: function(n) {
7028
7028
  L.Edit.SimpleShape.prototype._onMarkerDragStart.call(this, n);
7029
- var r = this._getCorners(), a = n.target, u = a._cornerIndex;
7030
- this._oppositeCorner = r[(u + 2) % 4], this._toggleCornerMarkers(0, u);
7029
+ var r = this._getCorners(), a = n.target, d = a._cornerIndex;
7030
+ this._oppositeCorner = r[(d + 2) % 4], this._toggleCornerMarkers(0, d);
7031
7031
  }, _onMarkerDragEnd: function(n) {
7032
- var r, a, u = n.target;
7033
- u === this._moveMarker && (r = this._shape.getBounds(), a = r.getCenter(), u.setLatLng(a)), this._toggleCornerMarkers(1), this._repositionCornerMarkers(), L.Edit.SimpleShape.prototype._onMarkerDragEnd.call(this, n);
7032
+ var r, a, d = n.target;
7033
+ d === this._moveMarker && (r = this._shape.getBounds(), a = r.getCenter(), d.setLatLng(a)), this._toggleCornerMarkers(1), this._repositionCornerMarkers(), L.Edit.SimpleShape.prototype._onMarkerDragEnd.call(this, n);
7034
7034
  }, _move: function(n) {
7035
- for (var r, a = this._shape._defaultShape ? this._shape._defaultShape() : this._shape.getLatLngs(), u = this._shape.getBounds(), f = u.getCenter(), _ = [], g = 0, w = a.length; g < w; g++) r = [a[g].lat - f.lat, a[g].lng - f.lng], _.push([n.lat + r[0], n.lng + r[1]]);
7035
+ for (var r, a = this._shape._defaultShape ? this._shape._defaultShape() : this._shape.getLatLngs(), d = this._shape.getBounds(), f = d.getCenter(), _ = [], g = 0, w = a.length; g < w; g++) r = [a[g].lat - f.lat, a[g].lng - f.lng], _.push([n.lat + r[0], n.lng + r[1]]);
7036
7036
  this._shape.setLatLngs(_), this._repositionCornerMarkers(), this._map.fire(L.Draw.Event.EDITMOVE, { layer: this._shape });
7037
7037
  }, _resize: function(n) {
7038
7038
  var r;
@@ -7086,8 +7086,8 @@ function ts(m) {
7086
7086
  if (!n.touches.length) return;
7087
7087
  a = n.touches[0];
7088
7088
  } else if (n.pointerType !== "touch" || (a = n, !this._filterClick(n))) return;
7089
- var u = this._map.mouseEventToContainerPoint(a), f = this._map.mouseEventToLayerPoint(a), _ = this._map.layerPointToLatLng(f);
7090
- this._map.fire(r, { latlng: _, layerPoint: f, containerPoint: u, pageX: a.pageX, pageY: a.pageY, originalEvent: n });
7089
+ var d = this._map.mouseEventToContainerPoint(a), f = this._map.mouseEventToLayerPoint(a), _ = this._map.layerPointToLatLng(f);
7090
+ this._map.fire(r, { latlng: _, layerPoint: f, containerPoint: d, pageX: a.pageX, pageY: a.pageY, originalEvent: n });
7091
7091
  }, _filterClick: function(n) {
7092
7092
  var r = n.timeStamp || n.originalEvent.timeStamp, a = L.DomEvent._lastClick && r - L.DomEvent._lastClick;
7093
7093
  return a && a > 100 && a < 500 || n.target._simulatedClick && !n._simulated ? (L.DomEvent.stop(n), !1) : (L.DomEvent._lastClick = r, !0);
@@ -7111,8 +7111,8 @@ function ts(m) {
7111
7111
  var a = n.indexOf("rv:");
7112
7112
  return parseInt(n.substring(a + 3, n.indexOf(".", a)), 10);
7113
7113
  }
7114
- var u = n.indexOf("Edge/");
7115
- return u > 0 && parseInt(n.substring(u + 5, n.indexOf(".", u)), 10);
7114
+ var d = n.indexOf("Edge/");
7115
+ return d > 0 && parseInt(n.substring(d + 5, n.indexOf(".", d)), 10);
7116
7116
  } }), L.Map.addInitHook("addHandler", "touchExtend", L.Map.TouchExtend), L.Marker.Touch = L.Marker.extend({ _initInteraction: function() {
7117
7117
  return this.addInteractiveTarget ? L.Marker.prototype._initInteraction.apply(this) : this._initInteractionLegacy();
7118
7118
  }, _initInteractionLegacy: function() {
@@ -7129,35 +7129,35 @@ function ts(m) {
7129
7129
  var a = n.indexOf("rv:");
7130
7130
  return parseInt(n.substring(a + 3, n.indexOf(".", a)), 10);
7131
7131
  }
7132
- var u = n.indexOf("Edge/");
7133
- return u > 0 && parseInt(n.substring(u + 5, n.indexOf(".", u)), 10);
7132
+ var d = n.indexOf("Edge/");
7133
+ return d > 0 && parseInt(n.substring(d + 5, n.indexOf(".", d)), 10);
7134
7134
  } }), L.LatLngUtil = { cloneLatLngs: function(n) {
7135
- for (var r = [], a = 0, u = n.length; a < u; a++) Array.isArray(n[a]) ? r.push(L.LatLngUtil.cloneLatLngs(n[a])) : r.push(this.cloneLatLng(n[a]));
7135
+ for (var r = [], a = 0, d = n.length; a < d; a++) Array.isArray(n[a]) ? r.push(L.LatLngUtil.cloneLatLngs(n[a])) : r.push(this.cloneLatLng(n[a]));
7136
7136
  return r;
7137
7137
  }, cloneLatLng: function(n) {
7138
7138
  return L.latLng(n.lat, n.lng);
7139
7139
  } }, (function() {
7140
7140
  var n = { km: 2, ha: 2, m: 0, mi: 2, ac: 2, yd: 0, ft: 0, nm: 2 };
7141
7141
  L.GeometryUtil = L.extend(L.GeometryUtil || {}, { geodesicArea: function(r) {
7142
- var a, u, f = r.length, _ = 0, g = Math.PI / 180;
7142
+ var a, d, f = r.length, _ = 0, g = Math.PI / 180;
7143
7143
  if (f > 2) {
7144
- for (var w = 0; w < f; w++) a = r[w], u = r[(w + 1) % f], _ += (u.lng - a.lng) * g * (2 + Math.sin(a.lat * g) + Math.sin(u.lat * g));
7144
+ for (var w = 0; w < f; w++) a = r[w], d = r[(w + 1) % f], _ += (d.lng - a.lng) * g * (2 + Math.sin(a.lat * g) + Math.sin(d.lat * g));
7145
7145
  _ = 6378137 * _ * 6378137 / 2;
7146
7146
  }
7147
7147
  return Math.abs(_);
7148
7148
  }, formattedNumber: function(r, a) {
7149
- var u = parseFloat(r).toFixed(a), f = L.drawLocal.format && L.drawLocal.format.numeric, _ = f && f.delimiters, g = _ && _.thousands, w = _ && _.decimal;
7149
+ var d = parseFloat(r).toFixed(a), f = L.drawLocal.format && L.drawLocal.format.numeric, _ = f && f.delimiters, g = _ && _.thousands, w = _ && _.decimal;
7150
7150
  if (g || w) {
7151
- var x = u.split(".");
7152
- u = g ? x[0].replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + g) : x[0], w = w || ".", x.length > 1 && (u = u + w + x[1]);
7151
+ var x = d.split(".");
7152
+ d = g ? x[0].replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + g) : x[0], w = w || ".", x.length > 1 && (d = d + w + x[1]);
7153
7153
  }
7154
- return u;
7154
+ return d;
7155
7155
  }, readableArea: function(r, a, g) {
7156
7156
  var f, _, g = L.Util.extend({}, n, g);
7157
7157
  return a ? (_ = ["ha", "m"], type = typeof a, type === "string" ? _ = [a] : type !== "boolean" && (_ = a), f = r >= 1e6 && _.indexOf("km") !== -1 ? L.GeometryUtil.formattedNumber(1e-6 * r, g.km) + " km²" : r >= 1e4 && _.indexOf("ha") !== -1 ? L.GeometryUtil.formattedNumber(1e-4 * r, g.ha) + " ha" : L.GeometryUtil.formattedNumber(r, g.m) + " m²") : (r /= 0.836127, f = r >= 3097600 ? L.GeometryUtil.formattedNumber(r / 3097600, g.mi) + " mi²" : r >= 4840 ? L.GeometryUtil.formattedNumber(r / 4840, g.ac) + " acres" : L.GeometryUtil.formattedNumber(r, g.yd) + " yd²"), f;
7158
- }, readableDistance: function(r, a, u, f, w) {
7158
+ }, readableDistance: function(r, a, d, f, w) {
7159
7159
  var g, w = L.Util.extend({}, n, w);
7160
- switch (a ? typeof a == "string" ? a : "metric" : u ? "feet" : f ? "nauticalMile" : "yards") {
7160
+ switch (a ? typeof a == "string" ? a : "metric" : d ? "feet" : f ? "nauticalMile" : "yards") {
7161
7161
  case "metric":
7162
7162
  g = r > 1e3 ? L.GeometryUtil.formattedNumber(r / 1e3, w.km) + " km" : L.GeometryUtil.formattedNumber(r, w.m) + " m";
7163
7163
  break;
@@ -7176,43 +7176,43 @@ function ts(m) {
7176
7176
  var r = L.version.split(".");
7177
7177
  return parseInt(r[0], 10) === 0 && parseInt(r[1], 10) === 7;
7178
7178
  } });
7179
- })(), L.Util.extend(L.LineUtil, { segmentsIntersect: function(n, r, a, u) {
7180
- return this._checkCounterclockwise(n, a, u) !== this._checkCounterclockwise(r, a, u) && this._checkCounterclockwise(n, r, a) !== this._checkCounterclockwise(n, r, u);
7179
+ })(), L.Util.extend(L.LineUtil, { segmentsIntersect: function(n, r, a, d) {
7180
+ return this._checkCounterclockwise(n, a, d) !== this._checkCounterclockwise(r, a, d) && this._checkCounterclockwise(n, r, a) !== this._checkCounterclockwise(n, r, d);
7181
7181
  }, _checkCounterclockwise: function(n, r, a) {
7182
7182
  return (a.y - n.y) * (r.x - n.x) > (r.y - n.y) * (a.x - n.x);
7183
7183
  } }), L.Polyline.include({ intersects: function() {
7184
- var n, r, a, u = this._getProjectedPoints(), f = u ? u.length : 0;
7184
+ var n, r, a, d = this._getProjectedPoints(), f = d ? d.length : 0;
7185
7185
  if (this._tooFewPointsForIntersection()) return !1;
7186
- for (n = f - 1; n >= 3; n--) if (r = u[n - 1], a = u[n], this._lineSegmentsIntersectsRange(r, a, n - 2)) return !0;
7186
+ for (n = f - 1; n >= 3; n--) if (r = d[n - 1], a = d[n], this._lineSegmentsIntersectsRange(r, a, n - 2)) return !0;
7187
7187
  return !1;
7188
7188
  }, newLatLngIntersects: function(n, r) {
7189
7189
  return !!this._map && this.newPointIntersects(this._map.latLngToLayerPoint(n), r);
7190
7190
  }, newPointIntersects: function(n, r) {
7191
- var a = this._getProjectedPoints(), u = a ? a.length : 0, f = a ? a[u - 1] : null, _ = u - 2;
7191
+ var a = this._getProjectedPoints(), d = a ? a.length : 0, f = a ? a[d - 1] : null, _ = d - 2;
7192
7192
  return !this._tooFewPointsForIntersection(1) && this._lineSegmentsIntersectsRange(f, n, _, r ? 1 : 0);
7193
7193
  }, _tooFewPointsForIntersection: function(n) {
7194
7194
  var r = this._getProjectedPoints(), a = r ? r.length : 0;
7195
7195
  return a += n || 0, !r || a <= 3;
7196
- }, _lineSegmentsIntersectsRange: function(n, r, a, u) {
7196
+ }, _lineSegmentsIntersectsRange: function(n, r, a, d) {
7197
7197
  var f, _, g = this._getProjectedPoints();
7198
- u = u || 0;
7199
- for (var w = a; w > u; w--) if (f = g[w - 1], _ = g[w], L.LineUtil.segmentsIntersect(n, r, f, _)) return !0;
7198
+ d = d || 0;
7199
+ for (var w = a; w > d; w--) if (f = g[w - 1], _ = g[w], L.LineUtil.segmentsIntersect(n, r, f, _)) return !0;
7200
7200
  return !1;
7201
7201
  }, _getProjectedPoints: function() {
7202
7202
  if (!this._defaultShape) return this._originalPoints;
7203
7203
  for (var n = [], r = this._defaultShape(), a = 0; a < r.length; a++) n.push(this._map.latLngToLayerPoint(r[a]));
7204
7204
  return n;
7205
7205
  } }), L.Polygon.include({ intersects: function() {
7206
- var n, r, a, u, f = this._getProjectedPoints();
7207
- return !this._tooFewPointsForIntersection() && (!!L.Polyline.prototype.intersects.call(this) || (n = f.length, r = f[0], a = f[n - 1], u = n - 2, this._lineSegmentsIntersectsRange(a, r, u, 1)));
7206
+ var n, r, a, d, f = this._getProjectedPoints();
7207
+ return !this._tooFewPointsForIntersection() && (!!L.Polyline.prototype.intersects.call(this) || (n = f.length, r = f[0], a = f[n - 1], d = n - 2, this._lineSegmentsIntersectsRange(a, r, d, 1)));
7208
7208
  } }), L.Control.Draw = L.Control.extend({ options: { position: "topleft", draw: {}, edit: !1 }, initialize: function(n) {
7209
7209
  if (L.version < "0.7") throw new Error("Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/");
7210
7210
  L.Control.prototype.initialize.call(this, n);
7211
7211
  var r;
7212
7212
  this._toolbars = {}, L.DrawToolbar && this.options.draw && (r = new L.DrawToolbar(this.options.draw), this._toolbars[L.DrawToolbar.TYPE] = r, this._toolbars[L.DrawToolbar.TYPE].on("enable", this._toolbarEnabled, this)), L.EditToolbar && this.options.edit && (r = new L.EditToolbar(this.options.edit), this._toolbars[L.EditToolbar.TYPE] = r, this._toolbars[L.EditToolbar.TYPE].on("enable", this._toolbarEnabled, this)), L.toolbar = this;
7213
7213
  }, onAdd: function(n) {
7214
- var r, a = L.DomUtil.create("div", "leaflet-draw"), u = !1;
7215
- for (var f in this._toolbars) this._toolbars.hasOwnProperty(f) && (r = this._toolbars[f].addToolbar(n)) && (u || (L.DomUtil.hasClass(r, "leaflet-draw-toolbar-top") || L.DomUtil.addClass(r.childNodes[0], "leaflet-draw-toolbar-top"), u = !0), a.appendChild(r));
7214
+ var r, a = L.DomUtil.create("div", "leaflet-draw"), d = !1;
7215
+ for (var f in this._toolbars) this._toolbars.hasOwnProperty(f) && (r = this._toolbars[f].addToolbar(n)) && (d || (L.DomUtil.hasClass(r, "leaflet-draw-toolbar-top") || L.DomUtil.addClass(r.childNodes[0], "leaflet-draw-toolbar-top"), d = !0), a.appendChild(r));
7216
7216
  return a;
7217
7217
  }, onRemove: function() {
7218
7218
  for (var n in this._toolbars) this._toolbars.hasOwnProperty(n) && this._toolbars[n].removeToolbar();
@@ -7232,24 +7232,24 @@ function ts(m) {
7232
7232
  }, disable: function() {
7233
7233
  this.enabled() && this._activeMode.handler.disable();
7234
7234
  }, addToolbar: function(n) {
7235
- var r, a = L.DomUtil.create("div", "leaflet-draw-section"), u = 0, f = this._toolbarClass || "", _ = this.getModeHandlers(n);
7236
- for (this._toolbarContainer = L.DomUtil.create("div", "leaflet-draw-toolbar leaflet-bar"), this._map = n, r = 0; r < _.length; r++) _[r].enabled && this._initModeHandler(_[r].handler, this._toolbarContainer, u++, f, _[r].title);
7237
- if (u) return this._lastButtonIndex = --u, this._actionsContainer = L.DomUtil.create("ul", "leaflet-draw-actions"), a.appendChild(this._toolbarContainer), a.appendChild(this._actionsContainer), a;
7235
+ var r, a = L.DomUtil.create("div", "leaflet-draw-section"), d = 0, f = this._toolbarClass || "", _ = this.getModeHandlers(n);
7236
+ for (this._toolbarContainer = L.DomUtil.create("div", "leaflet-draw-toolbar leaflet-bar"), this._map = n, r = 0; r < _.length; r++) _[r].enabled && this._initModeHandler(_[r].handler, this._toolbarContainer, d++, f, _[r].title);
7237
+ if (d) return this._lastButtonIndex = --d, this._actionsContainer = L.DomUtil.create("ul", "leaflet-draw-actions"), a.appendChild(this._toolbarContainer), a.appendChild(this._actionsContainer), a;
7238
7238
  }, removeToolbar: function() {
7239
7239
  for (var n in this._modes) this._modes.hasOwnProperty(n) && (this._disposeButton(this._modes[n].button, this._modes[n].handler.enable, this._modes[n].handler), this._modes[n].handler.disable(), this._modes[n].handler.off("enabled", this._handlerActivated, this).off("disabled", this._handlerDeactivated, this));
7240
7240
  this._modes = {};
7241
7241
  for (var r = 0, a = this._actionButtons.length; r < a; r++) this._disposeButton(this._actionButtons[r].button, this._actionButtons[r].callback, this);
7242
7242
  this._actionButtons = [], this._actionsContainer = null;
7243
- }, _initModeHandler: function(n, r, a, u, f) {
7243
+ }, _initModeHandler: function(n, r, a, d, f) {
7244
7244
  var _ = n.type;
7245
- this._modes[_] = {}, this._modes[_].handler = n, this._modes[_].button = this._createButton({ type: _, title: f, className: u + "-" + _, container: r, callback: this._modes[_].handler.enable, context: this._modes[_].handler }), this._modes[_].buttonIndex = a, this._modes[_].handler.on("enabled", this._handlerActivated, this).on("disabled", this._handlerDeactivated, this);
7245
+ this._modes[_] = {}, this._modes[_].handler = n, this._modes[_].button = this._createButton({ type: _, title: f, className: d + "-" + _, container: r, callback: this._modes[_].handler.enable, context: this._modes[_].handler }), this._modes[_].buttonIndex = a, this._modes[_].handler.on("enabled", this._handlerActivated, this).on("disabled", this._handlerDeactivated, this);
7246
7246
  }, _detectIOS: function() {
7247
7247
  return /iPad|iPhone|iPod/.test(navigator.userAgent) && !m.MSStream;
7248
7248
  }, _createButton: function(n) {
7249
7249
  var r = L.DomUtil.create("a", n.className || "", n.container), a = L.DomUtil.create("span", "sr-only", n.container);
7250
7250
  r.href = "#", r.appendChild(a), n.title && (r.title = n.title, a.innerHTML = n.title), n.text && (r.innerHTML = n.text, a.innerHTML = n.text);
7251
- var u = this._detectIOS() ? "touchstart" : "click";
7252
- return L.DomEvent.on(r, "click", L.DomEvent.stopPropagation).on(r, "mousedown", L.DomEvent.stopPropagation).on(r, "dblclick", L.DomEvent.stopPropagation).on(r, "touchstart", L.DomEvent.stopPropagation).on(r, "click", L.DomEvent.preventDefault).on(r, u, n.callback, n.context), r;
7251
+ var d = this._detectIOS() ? "touchstart" : "click";
7252
+ return L.DomEvent.on(r, "click", L.DomEvent.stopPropagation).on(r, "mousedown", L.DomEvent.stopPropagation).on(r, "dblclick", L.DomEvent.stopPropagation).on(r, "touchstart", L.DomEvent.stopPropagation).on(r, "click", L.DomEvent.preventDefault).on(r, d, n.callback, n.context), r;
7253
7253
  }, _disposeButton: function(n, r) {
7254
7254
  var a = this._detectIOS() ? "touchstart" : "click";
7255
7255
  L.DomEvent.off(n, "click", L.DomEvent.stopPropagation).off(n, "mousedown", L.DomEvent.stopPropagation).off(n, "dblclick", L.DomEvent.stopPropagation).off(n, "touchstart", L.DomEvent.stopPropagation).off(n, "click", L.DomEvent.preventDefault).off(n, a, r);
@@ -7258,8 +7258,8 @@ function ts(m) {
7258
7258
  }, _handlerDeactivated: function() {
7259
7259
  this._hideActionsToolbar(), L.DomUtil.removeClass(this._activeMode.button, "leaflet-draw-toolbar-button-enabled"), this._activeMode = null, this.fire("disable");
7260
7260
  }, _createActions: function(n) {
7261
- var r, a, u, f, _ = this._actionsContainer, g = this.getActions(n), w = g.length;
7262
- for (a = 0, u = this._actionButtons.length; a < u; a++) this._disposeButton(this._actionButtons[a].button, this._actionButtons[a].callback);
7261
+ var r, a, d, f, _ = this._actionsContainer, g = this.getActions(n), w = g.length;
7262
+ for (a = 0, d = this._actionButtons.length; a < d; a++) this._disposeButton(this._actionButtons[a].button, this._actionButtons[a].callback);
7263
7263
  for (this._actionButtons = []; _.firstChild; ) _.removeChild(_.firstChild);
7264
7264
  for (var x = 0; x < w; x++) "enabled" in g[x] && !g[x].enabled || (r = L.DomUtil.create("li", "", _), f = this._createButton({ title: g[x].title, text: g[x].text, container: r, callback: g[x].callback, context: g[x].context }), this._actionButtons.push({ button: f, callback: g[x].callback }));
7265
7265
  }, _showActionsToolbar: function() {
@@ -7348,8 +7348,8 @@ function ts(m) {
7348
7348
  var r = L.Util.stamp(n);
7349
7349
  n.edited = !1, this._uneditedLayerProps.hasOwnProperty(r) && (n instanceof L.Polyline || n instanceof L.Polygon || n instanceof L.Rectangle ? n.setLatLngs(this._uneditedLayerProps[r].latlngs) : n instanceof L.Circle ? (n.setLatLng(this._uneditedLayerProps[r].latlng), n.setRadius(this._uneditedLayerProps[r].radius)) : (n instanceof L.Marker || n instanceof L.CircleMarker) && n.setLatLng(this._uneditedLayerProps[r].latlng), n.fire("revert-edited", { layer: n }));
7350
7350
  }, _enableLayerEdit: function(n) {
7351
- var r, a, u = n.layer || n.target || n;
7352
- this._backupLayer(u), this.options.poly && (a = L.Util.extend({}, this.options.poly), u.options.poly = a), this.options.selectedPathOptions && (r = L.Util.extend({}, this.options.selectedPathOptions), r.maintainColor && (r.color = u.options.color, r.fillColor = u.options.fillColor), u.options.original = L.extend({}, u.options), u.options.editing = r), u instanceof L.Marker ? (u.editing && u.editing.enable(), u.dragging.enable(), u.on("dragend", this._onMarkerDragEnd).on("touchmove", this._onTouchMove, this).on("MSPointerMove", this._onTouchMove, this).on("touchend", this._onMarkerDragEnd, this).on("MSPointerUp", this._onMarkerDragEnd, this)) : u.editing.enable();
7351
+ var r, a, d = n.layer || n.target || n;
7352
+ this._backupLayer(d), this.options.poly && (a = L.Util.extend({}, this.options.poly), d.options.poly = a), this.options.selectedPathOptions && (r = L.Util.extend({}, this.options.selectedPathOptions), r.maintainColor && (r.color = d.options.color, r.fillColor = d.options.fillColor), d.options.original = L.extend({}, d.options), d.options.editing = r), d instanceof L.Marker ? (d.editing && d.editing.enable(), d.dragging.enable(), d.on("dragend", this._onMarkerDragEnd).on("touchmove", this._onTouchMove, this).on("MSPointerMove", this._onTouchMove, this).on("touchend", this._onMarkerDragEnd, this).on("MSPointerUp", this._onMarkerDragEnd, this)) : d.editing.enable();
7353
7353
  }, _disableLayerEdit: function(n) {
7354
7354
  var r = n.layer || n.target || n;
7355
7355
  r.edited = !1, r.editing && r.editing.disable(), delete r.options.editing, delete r.options.original, this._selectedPathOptions && (r instanceof L.Marker ? this._toggleMarkerHighlight(r) : (r.setStyle(r.options.previousOptions), delete r.options.previousOptions)), r instanceof L.Marker ? (r.dragging.disable(), r.off("dragend", this._onMarkerDragEnd, this).off("touchmove", this._onTouchMove, this).off("MSPointerMove", this._onTouchMove, this).off("touchend", this._onMarkerDragEnd, this).off("MSPointerUp", this._onMarkerDragEnd, this)) : r.editing.disable();
@@ -7359,8 +7359,8 @@ function ts(m) {
7359
7359
  var r = n.target;
7360
7360
  r.edited = !0, this._map.fire(L.Draw.Event.EDITMOVE, { layer: r });
7361
7361
  }, _onTouchMove: function(n) {
7362
- var r = n.originalEvent.changedTouches[0], a = this._map.mouseEventToLayerPoint(r), u = this._map.layerPointToLatLng(a);
7363
- n.target.setLatLng(u);
7362
+ var r = n.originalEvent.changedTouches[0], a = this._map.mouseEventToLayerPoint(r), d = this._map.layerPointToLatLng(a);
7363
+ n.target.setLatLng(d);
7364
7364
  }, _hasAvailableLayers: function() {
7365
7365
  return this._featureGroup.getLayers().length !== 0;
7366
7366
  } }), L.EditToolbar.Delete = L.Handler.extend({ statics: { TYPE: "remove" }, initialize: function(n, r) {
@@ -7459,9 +7459,9 @@ function es() {
7459
7459
  c.keyCode === 27 && (this._clickCount > 0 ? this._closePath() : (this._choice = !0, this._toggleMeasure()));
7460
7460
  },
7461
7461
  _calculateBearingAndDistance: function() {
7462
- var c = this._clickedLatLong.lat, n = this._clickedLatLong.lng, r = this._movingLatLong.lat, a = this._movingLatLong.lng, u = Math.PI / 180, f = Math.sin((a - n) * u) * Math.cos(r * u), _ = Math.cos(c * u) * Math.sin(r * u) - Math.sin(c * u) * Math.cos(r * u) * Math.cos((a - n) * u), g = Math.atan2(f, _) * ((this.options.angleUnit.factor ? this.options.angleUnit.factor / 2 : 180) / Math.PI);
7462
+ var c = this._clickedLatLong.lat, n = this._clickedLatLong.lng, r = this._movingLatLong.lat, a = this._movingLatLong.lng, d = Math.PI / 180, f = Math.sin((a - n) * d) * Math.cos(r * d), _ = Math.cos(c * d) * Math.sin(r * d) - Math.sin(c * d) * Math.cos(r * d) * Math.cos((a - n) * d), g = Math.atan2(f, _) * ((this.options.angleUnit.factor ? this.options.angleUnit.factor / 2 : 180) / Math.PI);
7463
7463
  g += g < 0 ? this.options.angleUnit.factor ? this.options.angleUnit.factor : 360 : 0;
7464
- var w = this.options.lengthUnit.factor ? 6371 * this.options.lengthUnit.factor : 6371, x = (r - c) * u, M = (a - n) * u, E = Math.sin(x / 2) * Math.sin(x / 2) + Math.cos(c * u) * Math.cos(r * u) * Math.sin(M / 2) * Math.sin(M / 2), P = 2 * Math.atan2(Math.sqrt(E), Math.sqrt(1 - E)), U = w * P;
7464
+ var w = this.options.lengthUnit.factor ? 6371 * this.options.lengthUnit.factor : 6371, x = (r - c) * d, T = (a - n) * d, P = Math.sin(x / 2) * Math.sin(x / 2) + Math.cos(c * d) * Math.cos(r * d) * Math.sin(T / 2) * Math.sin(T / 2), M = 2 * Math.atan2(Math.sqrt(P), Math.sqrt(1 - P)), U = w * M;
7465
7465
  this._result = {
7466
7466
  Bearing: g,
7467
7467
  Distance: U
@@ -7537,16 +7537,16 @@ function ls(m) {
7537
7537
  const h = m.geometry;
7538
7538
  if (!h) return null;
7539
7539
  let s = 1 / 0, c = 1 / 0, n = -1 / 0, r = -1 / 0, a = !1;
7540
- return as(h, (u) => {
7541
- const [f, _] = u;
7540
+ return as(h, (d) => {
7541
+ const [f, _] = d;
7542
7542
  typeof f != "number" || typeof _ != "number" || (a = !0, f < s && (s = f), _ < c && (c = _), f > n && (n = f), _ > r && (r = _));
7543
7543
  }), a ? [s, c, n, r] : null;
7544
7544
  }
7545
7545
  function hs(m) {
7546
7546
  let h = 1 / 0, s = 1 / 0, c = -1 / 0, n = -1 / 0, r = !1;
7547
7547
  for (const a of m.features) {
7548
- const u = ls(a);
7549
- u && (r = !0, h = Math.min(h, u[0]), s = Math.min(s, u[1]), c = Math.max(c, u[2]), n = Math.max(n, u[3]));
7548
+ const d = ls(a);
7549
+ d && (r = !0, h = Math.min(h, d[0]), s = Math.min(s, d[1]), c = Math.max(c, d[2]), n = Math.max(n, d[3]));
7550
7550
  }
7551
7551
  return r ? [h, s, c, n] : null;
7552
7552
  }
@@ -7618,8 +7618,8 @@ function us(m, h) {
7618
7618
  var n, r;
7619
7619
  const s = [];
7620
7620
  for (const a of m) {
7621
- const u = ds(a);
7622
- u.length > 0 && s.push(...u);
7621
+ const d = ds(a);
7622
+ d.length > 0 && s.push(...d);
7623
7623
  }
7624
7624
  if (s.length === 0) return null;
7625
7625
  const c = (r = h != null ? h : (n = m[0]) == null ? void 0 : n.properties) != null ? r : {};
@@ -7658,13 +7658,13 @@ class fs {
7658
7658
  * Add features to the store; returns the assigned/normalized ids in order.
7659
7659
  */
7660
7660
  add(h) {
7661
- var r, a, u, f;
7661
+ var r, a, d, f;
7662
7662
  const s = [], c = (a = (r = performance.now) == null ? void 0 : r.call(performance)) != null ? a : Date.now();
7663
7663
  for (const _ of h.features) {
7664
7664
  const g = this.ensureId(_), w = { ..._, id: g };
7665
7665
  this.features.set(g, w), s.push(g);
7666
7666
  }
7667
- const n = ((f = (u = performance.now) == null ? void 0 : u.call(performance)) != null ? f : Date.now()) - c;
7667
+ const n = ((f = (d = performance.now) == null ? void 0 : d.call(performance)) != null ? f : Date.now()) - c;
7668
7668
  return this.log.debug("add", {
7669
7669
  count: h.features.length,
7670
7670
  ids: s,
@@ -7732,10 +7732,10 @@ function ps(m = Re) {
7732
7732
  if (!((c = h == null ? void 0 : h.prototype) != null && c.getModeHandlers)) return;
7733
7733
  const s = h.prototype.getModeHandlers;
7734
7734
  h.prototype.getModeHandlers = function(n) {
7735
- var a, u, f, _;
7735
+ var a, d, f, _;
7736
7736
  const r = s.call(this, n);
7737
7737
  if ((a = this.options) != null && a.cake) {
7738
- const g = (u = m.Draw) == null ? void 0 : u.Cake;
7738
+ const g = (d = m.Draw) == null ? void 0 : d.Cake;
7739
7739
  if (!g) return r;
7740
7740
  r.push({
7741
7741
  enabled: !0,
@@ -7948,15 +7948,15 @@ function _s(m) {
7948
7948
  const h = m.Draw;
7949
7949
  if (!h || h.Move) return;
7950
7950
  const c = class c extends h.Feature {
7951
- constructor(a, u) {
7952
- super(a, u);
7951
+ constructor(a, d) {
7952
+ super(a, d);
7953
7953
  k(this, "_featureGroup");
7954
7954
  k(this, "_selectedLayer", null);
7955
7955
  k(this, "_originalLatLngs", null);
7956
7956
  k(this, "_dragStartLatLng", null);
7957
7957
  k(this, "_isDragging", !1);
7958
7958
  k(this, "_pendingMove", null);
7959
- this.type = c.TYPE, this._featureGroup = (u == null ? void 0 : u.featureGroup) || new tt.FeatureGroup();
7959
+ this.type = c.TYPE, this._featureGroup = (d == null ? void 0 : d.featureGroup) || new tt.FeatureGroup();
7960
7960
  }
7961
7961
  enable() {
7962
7962
  this._enabled || super.enable();
@@ -7970,16 +7970,16 @@ function _s(m) {
7970
7970
  m.DomUtil.addClass(a.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((f) => {
7971
7971
  this._enableLayerHover(f);
7972
7972
  });
7973
- const u = this._tooltip;
7974
- u != null && u.updateContent && u.updateContent({
7973
+ const d = this._tooltip;
7974
+ d != null && d.updateContent && d.updateContent({
7975
7975
  text: "Click and drag a feature to move it",
7976
7976
  subtext: ""
7977
7977
  });
7978
7978
  }
7979
7979
  removeHooks() {
7980
7980
  const a = this._map;
7981
- a && (m.DomUtil.removeClass(a.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((u) => {
7982
- this._disableLayerHover(u);
7981
+ a && (m.DomUtil.removeClass(a.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((d) => {
7982
+ this._disableLayerHover(d);
7983
7983
  }), this._cleanupDragging());
7984
7984
  }
7985
7985
  _enableLayerHover(a) {
@@ -7990,32 +7990,32 @@ function _s(m) {
7990
7990
  }
7991
7991
  _onLayerMouseOver(a) {
7992
7992
  if (this._isDragging) return;
7993
- const u = a.target;
7994
- if (u.getElement) {
7995
- const f = u.getElement();
7993
+ const d = a.target;
7994
+ if (d.getElement) {
7995
+ const f = d.getElement();
7996
7996
  f && (f.style.cursor = "grab");
7997
- } else u._path && (u._path.style.cursor = "grab");
7997
+ } else d._path && (d._path.style.cursor = "grab");
7998
7998
  }
7999
7999
  _onLayerMouseOut(a) {
8000
8000
  if (this._isDragging) return;
8001
- const u = a.target;
8002
- if (u.getElement) {
8003
- const f = u.getElement();
8001
+ const d = a.target;
8002
+ if (d.getElement) {
8003
+ const f = d.getElement();
8004
8004
  f && (f.style.cursor = "");
8005
- } else u._path && (u._path.style.cursor = "");
8005
+ } else d._path && (d._path.style.cursor = "");
8006
8006
  }
8007
8007
  _onLayerMouseDown(a) {
8008
8008
  if (this._isDragging) return;
8009
8009
  m.DomEvent.stopPropagation(a.originalEvent), m.DomEvent.preventDefault(a.originalEvent);
8010
- const u = a.target;
8011
- if (this._selectedLayer = u, this._isDragging = !0, this._dragStartLatLng = a.latlng, this._storeOriginalLatLngs(u), u.getElement) {
8012
- const _ = u.getElement();
8010
+ const d = a.target;
8011
+ if (this._selectedLayer = d, this._isDragging = !0, this._dragStartLatLng = a.latlng, this._storeOriginalLatLngs(d), d.getElement) {
8012
+ const _ = d.getElement();
8013
8013
  _ && (_.style.cursor = "grabbing");
8014
- } else u._path && (u._path.style.cursor = "grabbing");
8014
+ } else d._path && (d._path.style.cursor = "grabbing");
8015
8015
  this._map.on("mousemove", this._onMouseMove, this), this._map.on("mouseup", this._onMouseUp, this);
8016
- const f = u.toGeoJSON();
8016
+ const f = d.toGeoJSON();
8017
8017
  this._pendingMove = {
8018
- layer: u,
8018
+ layer: d,
8019
8019
  originalGeoJSON: f,
8020
8020
  newGeoJSON: f
8021
8021
  };
@@ -8028,33 +8028,33 @@ function _s(m) {
8028
8028
  _onMouseMove(a) {
8029
8029
  if (!this._isDragging || !this._selectedLayer || !this._dragStartLatLng)
8030
8030
  return;
8031
- const u = this._selectedLayer, f = {
8031
+ const d = this._selectedLayer, f = {
8032
8032
  lat: a.latlng.lat - this._dragStartLatLng.lat,
8033
8033
  lng: a.latlng.lng - this._dragStartLatLng.lng
8034
8034
  };
8035
- if (u.setLatLng) {
8035
+ if (d.setLatLng) {
8036
8036
  const _ = m.latLng(
8037
8037
  this._originalLatLngs.lat + f.lat,
8038
8038
  this._originalLatLngs.lng + f.lng
8039
8039
  );
8040
- u.setLatLng(_);
8041
- } else if (u.setLatLngs) {
8040
+ d.setLatLng(_);
8041
+ } else if (d.setLatLngs) {
8042
8042
  const _ = this._offsetLatLngs(this._originalLatLngs, f);
8043
- u.setLatLngs(_);
8043
+ d.setLatLngs(_);
8044
8044
  }
8045
8045
  }
8046
- _offsetLatLngs(a, u) {
8047
- return a instanceof m.LatLng || a.lat !== void 0 && a.lng !== void 0 ? m.latLng(a.lat + u.lat, a.lng + u.lng) : Array.isArray(a) ? a.map((f) => this._offsetLatLngs(f, u)) : a;
8046
+ _offsetLatLngs(a, d) {
8047
+ return a instanceof m.LatLng || a.lat !== void 0 && a.lng !== void 0 ? m.latLng(a.lat + d.lat, a.lng + d.lng) : Array.isArray(a) ? a.map((f) => this._offsetLatLngs(f, d)) : a;
8048
8048
  }
8049
8049
  _onMouseUp(a) {
8050
8050
  var f, _;
8051
8051
  if (!this._isDragging || !this._selectedLayer) return;
8052
8052
  this._pendingMove && (this._pendingMove.newGeoJSON = this._selectedLayer.toGeoJSON());
8053
- const u = this._selectedLayer;
8054
- if (u.getElement) {
8055
- const g = u.getElement();
8053
+ const d = this._selectedLayer;
8054
+ if (d.getElement) {
8055
+ const g = d.getElement();
8056
8056
  g && (g.style.cursor = "grab");
8057
- } else u._path && (u._path.style.cursor = "grab");
8057
+ } else d._path && (d._path.style.cursor = "grab");
8058
8058
  this._map.fire("draw:moveend", {
8059
8059
  layer: this._selectedLayer,
8060
8060
  originalGeoJSON: (f = this._pendingMove) == null ? void 0 : f.originalGeoJSON,
@@ -8065,8 +8065,8 @@ function _s(m) {
8065
8065
  if (this._selectedLayer) {
8066
8066
  const a = this._selectedLayer;
8067
8067
  if (a.getElement) {
8068
- const u = a.getElement();
8069
- u && (u.style.cursor = "");
8068
+ const d = a.getElement();
8069
+ d && (d.style.cursor = "");
8070
8070
  } else a._path && (a._path.style.cursor = "");
8071
8071
  }
8072
8072
  this._map.off("mousemove", this._onMouseMove, this), this._map.off("mouseup", this._onMouseUp, this), this._selectedLayer = null, this._originalLatLngs = null, this._dragStartLatLng = null, this._isDragging = !1, this._pendingMove = null;
@@ -8099,8 +8099,8 @@ function Kn(m) {
8099
8099
  return m * 180 / Math.PI;
8100
8100
  }
8101
8101
  function vs(m, h, s) {
8102
- const c = h / gs, n = ki(s), r = ki(m.lat), a = ki(m.lng), u = Math.sin(r), f = Math.cos(r), _ = Math.sin(c), g = Math.cos(c), w = u * g + f * _ * Math.cos(n), x = Math.asin(w), M = Math.sin(n) * _ * f, E = g - u * w, P = a + Math.atan2(M, E);
8103
- return { lat: Kn(x), lng: Kn(P) };
8102
+ const c = h / gs, n = ki(s), r = ki(m.lat), a = ki(m.lng), d = Math.sin(r), f = Math.cos(r), _ = Math.sin(c), g = Math.cos(c), w = d * g + f * _ * Math.cos(n), x = Math.asin(w), T = Math.sin(n) * _ * f, P = g - d * w, M = a + Math.atan2(T, P);
8103
+ return { lat: Kn(x), lng: Kn(M) };
8104
8104
  }
8105
8105
  function ys(m) {
8106
8106
  let h = 0;
@@ -8155,7 +8155,7 @@ function ws(m) {
8155
8155
  radiusInnerMeters: n,
8156
8156
  layerIndex: r,
8157
8157
  steps: a
8158
- } = m, u = Pi(
8158
+ } = m, d = Pi(
8159
8159
  Ti(s, c, a),
8160
8160
  !1
8161
8161
  ), f = Pi(
@@ -8175,16 +8175,16 @@ function ws(m) {
8175
8175
  radius: c
8176
8176
  }
8177
8177
  },
8178
- geometry: { type: "Polygon", coordinates: [u, f] }
8178
+ geometry: { type: "Polygon", coordinates: [d, f] }
8179
8179
  };
8180
8180
  }
8181
8181
  function bs(m) {
8182
8182
  const { circles: h, steps: s = 64 } = m, c = [...h].sort((r, a) => r.getRadius() - a.getRadius()), n = [];
8183
8183
  return c.forEach((r, a) => {
8184
- const u = r.getLatLng(), f = r.getRadius(), _ = Si();
8184
+ const d = r.getLatLng(), f = r.getRadius(), _ = Si();
8185
8185
  if (a === 0) {
8186
8186
  n.push(
8187
- Ls({ id: _, center: u, radiusMeters: f, layerIndex: a, steps: s })
8187
+ Ls({ id: _, center: d, radiusMeters: f, layerIndex: a, steps: s })
8188
8188
  );
8189
8189
  return;
8190
8190
  }
@@ -8192,7 +8192,7 @@ function bs(m) {
8192
8192
  n.push(
8193
8193
  ws({
8194
8194
  id: _,
8195
- center: u,
8195
+ center: d,
8196
8196
  radiusOuterMeters: f,
8197
8197
  radiusInnerMeters: w,
8198
8198
  layerIndex: a,
@@ -8206,16 +8206,16 @@ function ue(m) {
8206
8206
  }
8207
8207
  function xs(m) {
8208
8208
  var _, g;
8209
- const { root: h, addButtonId: s, saveButtonId: c, onAddRing: n, onSave: r } = m, a = (_ = h.querySelector) == null ? void 0 : _.call(h, `#${s}`), u = (g = h.querySelector) == null ? void 0 : g.call(h, `#${c}`);
8210
- if (!a || !u) return;
8209
+ const { root: h, addButtonId: s, saveButtonId: c, onAddRing: n, onSave: r } = m, a = (_ = h.querySelector) == null ? void 0 : _.call(h, `#${s}`), d = (g = h.querySelector) == null ? void 0 : g.call(h, `#${c}`);
8210
+ if (!a || !d) return;
8211
8211
  const f = "data-cake-controls-bound";
8212
- if (!(a.hasAttribute(f) || u.hasAttribute(f))) {
8213
- a.setAttribute(f, "true"), u.setAttribute(f, "true");
8214
- for (const w of [a, u])
8212
+ if (!(a.hasAttribute(f) || d.hasAttribute(f))) {
8213
+ a.setAttribute(f, "true"), d.setAttribute(f, "true");
8214
+ for (const w of [a, d])
8215
8215
  w.addEventListener("pointerdown", ue), w.addEventListener("mousedown", ue), w.addEventListener("touchstart", ue);
8216
8216
  a.addEventListener("click", (w) => {
8217
8217
  ue(w), n();
8218
- }), u.addEventListener("click", (w) => {
8218
+ }), d.addEventListener("click", (w) => {
8219
8219
  ue(w), r();
8220
8220
  });
8221
8221
  }
@@ -8246,31 +8246,31 @@ class As {
8246
8246
  this.map = h, this.onSave = c, this.measurementSystem = n, this.controlsGroup = tt.layerGroup().addTo(h), this.baseCircleOptions = { ...s.options }, delete this.baseCircleOptions.editing, delete this.baseCircleOptions.original, this.addLayer(s), this.installEditEventBridges(), this.renderControls();
8247
8247
  }
8248
8248
  installEditEventBridges() {
8249
- var g, w, x, M, E, P, U, H;
8250
- const h = Re, s = (w = (g = h == null ? void 0 : h.Draw) == null ? void 0 : g.Event) == null ? void 0 : w.EDITMOVE, c = (M = (x = h == null ? void 0 : h.Draw) == null ? void 0 : x.Event) == null ? void 0 : M.EDITRESIZE, n = (P = (E = h == null ? void 0 : h.Draw) == null ? void 0 : E.Event) == null ? void 0 : P.EDITSTART, r = (H = (U = h == null ? void 0 : h.Draw) == null ? void 0 : U.Event) == null ? void 0 : H.EDITSTOP;
8249
+ var g, w, x, T, P, M, U, F;
8250
+ const h = Re, s = (w = (g = h == null ? void 0 : h.Draw) == null ? void 0 : g.Event) == null ? void 0 : w.EDITMOVE, c = (T = (x = h == null ? void 0 : h.Draw) == null ? void 0 : x.Event) == null ? void 0 : T.EDITRESIZE, n = (M = (P = h == null ? void 0 : h.Draw) == null ? void 0 : P.Event) == null ? void 0 : M.EDITSTART, r = (F = (U = h == null ? void 0 : h.Draw) == null ? void 0 : U.Event) == null ? void 0 : F.EDITSTOP;
8251
8251
  if (!s || !c) return;
8252
- const a = (S) => {
8253
- const D = S == null ? void 0 : S.layer;
8252
+ const a = (C) => {
8253
+ const D = C == null ? void 0 : C.layer;
8254
8254
  D && this.layers.includes(D) && this.syncCenters(D);
8255
- }, u = (S) => {
8256
- const D = S == null ? void 0 : S.layer;
8255
+ }, d = (C) => {
8256
+ const D = C == null ? void 0 : C.layer;
8257
8257
  D && this.layers.includes(D) && (this.updateLabels(D), this.requestRenderControls());
8258
- }, f = (S) => {
8258
+ }, f = (C) => {
8259
8259
  var q;
8260
- const D = S == null ? void 0 : S.layer;
8260
+ const D = C == null ? void 0 : C.layer;
8261
8261
  if (!D || !this.layers.includes(D)) return;
8262
8262
  const G = D;
8263
8263
  ((q = G.getTooltip) == null ? void 0 : q.call(G)) && this.updateLabels(G);
8264
8264
  }, _ = () => {
8265
- this.layers.forEach((S) => {
8265
+ this.layers.forEach((C) => {
8266
8266
  var G;
8267
- const D = (G = S.getTooltip) == null ? void 0 : G.call(S);
8268
- D && (S.setTooltipContent(
8269
- fe(S.getRadius(), this.measurementSystem)
8270
- ), D.options.offset = [10, 0], D.options.direction = "right", S.closeTooltip(), S.openTooltip());
8267
+ const D = (G = C.getTooltip) == null ? void 0 : G.call(C);
8268
+ D && (C.setTooltipContent(
8269
+ fe(C.getRadius(), this.measurementSystem)
8270
+ ), D.options.offset = [10, 0], D.options.direction = "right", C.closeTooltip(), C.openTooltip());
8271
8271
  });
8272
8272
  };
8273
- this.map.on(s, a), this.map.on(c, u), n && (this.map.on(n, f), this.detachMapListeners.push(() => this.map.off(n, f))), r && (this.map.on(r, _), this.detachMapListeners.push(() => this.map.off(r, _))), this.detachMapListeners.push(() => this.map.off(s, a)), this.detachMapListeners.push(() => this.map.off(c, u));
8273
+ this.map.on(s, a), this.map.on(c, d), n && (this.map.on(n, f), this.detachMapListeners.push(() => this.map.off(n, f))), r && (this.map.on(r, _), this.detachMapListeners.push(() => this.map.off(r, _))), this.detachMapListeners.push(() => this.map.off(s, a)), this.detachMapListeners.push(() => this.map.off(c, d));
8274
8274
  }
8275
8275
  requestRenderControls() {
8276
8276
  if (this.renderScheduled) return;
@@ -8290,13 +8290,13 @@ class As {
8290
8290
  );
8291
8291
  const s = h.editing;
8292
8292
  setTimeout(() => {
8293
- var c, n, r, a, u;
8293
+ var c, n, r, a, d;
8294
8294
  try {
8295
8295
  if ((c = h.redraw) == null || c.call(h), ks(h), (n = s == null ? void 0 : s.enabled) != null && n.call(s)) {
8296
8296
  (r = s.updateMarkers) == null || r.call(s), this.requestRenderControls();
8297
8297
  return;
8298
8298
  }
8299
- (a = s == null ? void 0 : s.enable) == null || a.call(s), (u = s == null ? void 0 : s.updateMarkers) == null || u.call(s), this.requestRenderControls();
8299
+ (a = s == null ? void 0 : s.enable) == null || a.call(s), (d = s == null ? void 0 : s.updateMarkers) == null || d.call(s), this.requestRenderControls();
8300
8300
  } catch {
8301
8301
  }
8302
8302
  }, 0);
@@ -8337,12 +8337,12 @@ class As {
8337
8337
  const s = h.getRadius();
8338
8338
  let c = fe(s, this.measurementSystem);
8339
8339
  const n = this.layers.filter(
8340
- (u) => u !== h && u.getRadius() < s
8340
+ (d) => d !== h && d.getRadius() < s
8341
8341
  );
8342
8342
  if (n.length > 0) {
8343
- const u = n.reduce(
8343
+ const d = n.reduce(
8344
8344
  (g, w) => g.getRadius() > w.getRadius() ? g : w
8345
- ), f = s - u.getRadius(), _ = fe(f, this.measurementSystem);
8345
+ ), f = s - d.getRadius(), _ = fe(f, this.measurementSystem);
8346
8346
  c = `${fe(s, this.measurementSystem)} (+${_})`;
8347
8347
  }
8348
8348
  const r = (a = h.getTooltip) == null ? void 0 : a.call(h);
@@ -8373,9 +8373,9 @@ class As {
8373
8373
  keyboard: !1,
8374
8374
  bubblingMouseEvents: !1
8375
8375
  }).addTo(this.controlsGroup), setTimeout(() => {
8376
- const u = this.map.getContainer();
8376
+ const d = this.map.getContainer();
8377
8377
  xs({
8378
- root: u,
8378
+ root: d,
8379
8379
  addButtonId: n,
8380
8380
  saveButtonId: r,
8381
8381
  onAddRing: () => this.addRing(),
@@ -8457,52 +8457,52 @@ function Ss(m, h, s, c) {
8457
8457
  };
8458
8458
  }
8459
8459
  function Ds(m, h, s, c) {
8460
- const n = Jt(m), r = Jt(s), a = Jt(c - h), u = Math.atan((1 - Rt) * Math.tan(n)), f = Math.atan((1 - Rt) * Math.tan(r)), _ = Math.sin(u), g = Math.cos(u), w = Math.sin(f), x = Math.cos(f);
8461
- let M = a, E = 0, P = 0;
8460
+ const n = Jt(m), r = Jt(s), a = Jt(c - h), d = Math.atan((1 - Rt) * Math.tan(n)), f = Math.atan((1 - Rt) * Math.tan(r)), _ = Math.sin(d), g = Math.cos(d), w = Math.sin(f), x = Math.cos(f);
8461
+ let T = a, P = 0, M = 0;
8462
8462
  const U = 200;
8463
- let H = 0, S = 0, D = 0, G = 0, Y = 0;
8464
- for (; Math.abs(M - E) > 1e-12 && P < U; ) {
8465
- const rt = Math.sin(M), _e = Math.cos(M);
8466
- if (H = Math.sqrt(
8463
+ let F = 0, C = 0, D = 0, G = 0, Y = 0;
8464
+ for (; Math.abs(T - P) > 1e-12 && M < U; ) {
8465
+ const rt = Math.sin(T), _e = Math.cos(T);
8466
+ if (F = Math.sqrt(
8467
8467
  (x * rt) ** 2 + (g * w - _ * x * _e) ** 2
8468
- ), H === 0)
8468
+ ), F === 0)
8469
8469
  return {
8470
8470
  distanceMeters: 0,
8471
8471
  bearingRad: 0,
8472
- iterations: P,
8472
+ iterations: M,
8473
8473
  converged: !0
8474
8474
  };
8475
- S = _ * w + g * x * _e, D = Math.atan2(H, S);
8476
- const ut = g * x * rt / H;
8477
- G = 1 - ut ** 2, Y = G === 0 ? 0 : S - 2 * _ * w / G;
8475
+ C = _ * w + g * x * _e, D = Math.atan2(F, C);
8476
+ const ut = g * x * rt / F;
8477
+ G = 1 - ut ** 2, Y = G === 0 ? 0 : C - 2 * _ * w / G;
8478
8478
  const Kt = Rt / 16 * G * (4 + Rt * (4 - 3 * G));
8479
- E = M, M = a + (1 - Kt) * Rt * ut * (D + Kt * H * (Y + Kt * S * (-1 + 2 * Y ** 2))), P += 1;
8479
+ P = T, T = a + (1 - Kt) * Rt * ut * (D + Kt * F * (Y + Kt * C * (-1 + 2 * Y ** 2))), M += 1;
8480
8480
  }
8481
- if (P >= U)
8481
+ if (M >= U)
8482
8482
  return {
8483
8483
  distanceMeters: Number.NaN,
8484
8484
  bearingRad: 0,
8485
- iterations: P,
8485
+ iterations: M,
8486
8486
  converged: !1
8487
8487
  };
8488
- const q = (ro ** 2 - jt ** 2) / jt ** 2 * G, at = 1 + q / 16384 * (4096 + q * (-768 + q * (320 - 175 * q))), _t = q / 1024 * (256 + q * (-128 + q * (74 - 47 * q))), Ut = _t * H * (Y + _t / 4 * (S * (-1 + 2 * Y ** 2) - _t / 6 * Y * (-3 + 4 * H ** 2) * (-3 + 4 * Y ** 2))), me = jt * at * (D - Ut), ot = Math.atan2(
8489
- x * Math.sin(M),
8490
- g * w - _ * x * Math.cos(M)
8488
+ const q = (ro ** 2 - jt ** 2) / jt ** 2 * G, at = 1 + q / 16384 * (4096 + q * (-768 + q * (320 - 175 * q))), _t = q / 1024 * (256 + q * (-128 + q * (74 - 47 * q))), Ut = _t * F * (Y + _t / 4 * (C * (-1 + 2 * Y ** 2) - _t / 6 * Y * (-3 + 4 * F ** 2) * (-3 + 4 * Y ** 2))), me = jt * at * (D - Ut), ot = Math.atan2(
8489
+ x * Math.sin(T),
8490
+ g * w - _ * x * Math.cos(T)
8491
8491
  );
8492
8492
  return {
8493
8493
  distanceMeters: me,
8494
8494
  bearingRad: ot,
8495
- iterations: P,
8495
+ iterations: M,
8496
8496
  converged: !0
8497
8497
  };
8498
8498
  }
8499
8499
  function Is(m, h, s, c) {
8500
- const n = Jt(m), r = Jt(s), a = Jt(c - h), u = Math.atan((1 - Rt) * Math.tan(n)), f = Math.atan((1 - Rt) * Math.tan(r)), _ = Math.sin(u), g = Math.cos(u), w = Math.sin(f), x = Math.cos(f), M = Math.sqrt(
8500
+ const n = Jt(m), r = Jt(s), a = Jt(c - h), d = Math.atan((1 - Rt) * Math.tan(n)), f = Math.atan((1 - Rt) * Math.tan(r)), _ = Math.sin(d), g = Math.cos(d), w = Math.sin(f), x = Math.cos(f), T = Math.sqrt(
8501
8501
  (x * Math.sin(a)) ** 2 + (g * w - _ * x * Math.cos(a)) ** 2
8502
- ), E = _ * w + g * x * Math.cos(a), P = Math.atan2(M, E);
8503
- if (P === 0)
8502
+ ), P = _ * w + g * x * Math.cos(a), M = Math.atan2(T, P);
8503
+ if (M === 0)
8504
8504
  return { distanceMeters: 0, bearingRad: 0 };
8505
- const H = 1 - (g * x * Math.sin(a) / Math.sin(P)) ** 2, S = H === 0 ? 0 : E - 2 * _ * w / H, D = (ro ** 2 - jt ** 2) / jt ** 2 * H, G = 1 + D / 16384 * (4096 + D * (-768 + D * (320 - 175 * D))), Y = D / 1024 * (256 + D * (-128 + D * (74 - 47 * D))), q = Y * M * (S + Y / 4 * (E * (-1 + 2 * S ** 2) - Y / 6 * S * (-3 + 4 * M ** 2) * (-3 + 4 * S ** 2))), at = jt * G * (P - q), _t = Math.atan2(
8505
+ const F = 1 - (g * x * Math.sin(a) / Math.sin(M)) ** 2, C = F === 0 ? 0 : P - 2 * _ * w / F, D = (ro ** 2 - jt ** 2) / jt ** 2 * F, G = 1 + D / 16384 * (4096 + D * (-768 + D * (320 - 175 * D))), Y = D / 1024 * (256 + D * (-128 + D * (74 - 47 * D))), q = Y * T * (C + Y / 4 * (P * (-1 + 2 * C ** 2) - Y / 6 * C * (-3 + 4 * T ** 2) * (-3 + 4 * C ** 2))), at = jt * G * (M - q), _t = Math.atan2(
8506
8506
  x * Math.sin(a),
8507
8507
  g * w - _ * x * Math.cos(a)
8508
8508
  );
@@ -8555,7 +8555,14 @@ function Ai(m, h = {}) {
8555
8555
  ), n;
8556
8556
  }
8557
8557
  let Qn = !1;
8558
- class Ns {
8558
+ const Ns = {
8559
+ polygon: "tool:polygon:created",
8560
+ polyline: "tool:polyline:created",
8561
+ rectangle: "tool:rectangle:created",
8562
+ circle: "tool:circle:created",
8563
+ marker: "tool:marker:created"
8564
+ };
8565
+ class Zs {
8559
8566
  constructor(h) {
8560
8567
  k(this, "container");
8561
8568
  k(this, "logger");
@@ -8596,6 +8603,32 @@ class Ns {
8596
8603
  useExternalLeaflet: h.useExternalLeaflet
8597
8604
  }), ms(this.L), _s(this.L), ps(this.L);
8598
8605
  }
8606
+ emitToolEvent(h, s) {
8607
+ var n, r;
8608
+ try {
8609
+ (r = (n = this.options.toolHooks) == null ? void 0 : n[h]) == null || r.call(n, s);
8610
+ } catch (a) {
8611
+ this._error(`tool hook failed: ${h}`, a);
8612
+ }
8613
+ const c = this.options.toolEventEmitter;
8614
+ if (c)
8615
+ try {
8616
+ if (typeof c.emit == "function") {
8617
+ c.emit(h, s);
8618
+ return;
8619
+ }
8620
+ typeof c.dispatchEvent == "function" && c.dispatchEvent(
8621
+ new CustomEvent(h, {
8622
+ detail: s
8623
+ })
8624
+ );
8625
+ } catch (a) {
8626
+ this._error(`tool emitter failed: ${h}`, a);
8627
+ }
8628
+ }
8629
+ setToolObservers(h) {
8630
+ this.options.toolHooks = h.toolHooks, this.options.toolEventEmitter = h.toolEventEmitter;
8631
+ }
8599
8632
  resolveLeaflet(h) {
8600
8633
  if (!h.useExternalLeaflet)
8601
8634
  return Re;
@@ -8608,7 +8641,7 @@ class Ns {
8608
8641
  }
8609
8642
  // ---------------- Lifecycle ----------------
8610
8643
  async init() {
8611
- var s, c, n, r, a, u;
8644
+ var s, c, n, r, a, d;
8612
8645
  const h = (c = (s = performance.now) == null ? void 0 : s.call(performance)) != null ? c : Date.now();
8613
8646
  try {
8614
8647
  await this.destroy();
@@ -8618,29 +8651,29 @@ class Ns {
8618
8651
  zoom: g,
8619
8652
  minZoom: w,
8620
8653
  maxZoom: x,
8621
- tileUrl: M,
8622
- tileAttribution: E,
8623
- preferCanvas: P = !0,
8654
+ tileUrl: T,
8655
+ tileAttribution: P,
8656
+ preferCanvas: M = !0,
8624
8657
  // Default to Canvas rendering for better performance
8625
8658
  useExternalLeaflet: U
8626
- } = this.options.map, H = [f, _], S = this.L;
8627
- U && Ai(S, {
8659
+ } = this.options.map, F = [f, _], C = this.L;
8660
+ U && Ai(C, {
8628
8661
  onError: (at) => this.logger.warn("external-leaflet-missing-draw", { message: at })
8629
- }), this.map = S.map(this.container, {
8662
+ }), this.map = C.map(this.container, {
8630
8663
  zoomControl: !0,
8631
- preferCanvas: P
8632
- }).setView(H, g), this.setTileLayer({
8633
- urlTemplate: M,
8634
- attribution: E != null ? E : "",
8664
+ preferCanvas: M
8665
+ }).setView(F, g), this.setTileLayer({
8666
+ urlTemplate: T,
8667
+ attribution: P != null ? P : "",
8635
8668
  maxZoom: x
8636
- }), this.drawnItems = S.featureGroup().addTo(this.map);
8669
+ }), this.drawnItems = C.featureGroup().addTo(this.map);
8637
8670
  const D = this.buildDrawOptions(
8638
8671
  this.options.controls,
8639
8672
  !!this.options.readOnly
8640
- ), G = S.Control.Draw;
8673
+ ), G = C.Control.Draw;
8641
8674
  this.drawControl = new G(D), this.map.addControl(this.drawControl), this.applyLayerCakeToolbarIcon(), this.applyMoveToolbarIcon(), this.options.controls.ruler && (this.logger.debug("init:ruler", {
8642
- available: typeof S.control.ruler == "function"
8643
- }), typeof S.control.ruler == "function" ? (this.addRulerControl(), this.installMeasurementSettingsControl()) : this.logger.warn("init:ruler:missing", {
8675
+ available: typeof C.control.ruler == "function"
8676
+ }), typeof C.control.ruler == "function" ? (this.addRulerControl(), this.installMeasurementSettingsControl()) : this.logger.warn("init:ruler:missing", {
8644
8677
  msg: "L.control.ruler is not defined"
8645
8678
  })), this.patchLeafletDrawBugs(), this.installPolygonFinishPatch(), this.map.invalidateSize(), setTimeout(() => {
8646
8679
  var at;
@@ -8652,7 +8685,7 @@ class Ns {
8652
8685
  const Y = ((r = (n = performance.now) == null ? void 0 : n.call(performance)) != null ? r : Date.now()) - h;
8653
8686
  this.logger.debug("init:ready", { elapsedMs: Math.round(Y) });
8654
8687
  const q = this.store.bounds();
8655
- (u = (a = this.options.callbacks) == null ? void 0 : a.onReady) == null || u.call(a, q ? { bounds: q } : {});
8688
+ (d = (a = this.options.callbacks) == null ? void 0 : a.onReady) == null || d.call(a, q ? { bounds: q } : {});
8656
8689
  } catch (f) {
8657
8690
  this._error("Failed to initialize Leaflet map", f);
8658
8691
  }
@@ -8694,9 +8727,9 @@ class Ns {
8694
8727
  await this.clearLayers();
8695
8728
  const c = jn(h), n = this.store.add(c), r = this.L.geoJSON(c);
8696
8729
  let a = 0;
8697
- r.eachLayer((u) => {
8730
+ r.eachLayer((d) => {
8698
8731
  var f;
8699
- u._fid = (f = n[a]) != null ? f : n[n.length - 1], this.drawnItems.addLayer(u), this.installVertexContextMenu(u), a++;
8732
+ d._fid = (f = n[a]) != null ? f : n[n.length - 1], this.drawnItems.addLayer(d), this.installVertexContextMenu(d), a++;
8700
8733
  }), this.logger.debug("loadGeoJSON", {
8701
8734
  count: c.features.length,
8702
8735
  ids: n
@@ -8710,8 +8743,8 @@ class Ns {
8710
8743
  const s = jn(h), c = this.store.add(s), n = this.L.geoJSON(s);
8711
8744
  let r = 0;
8712
8745
  return n.eachLayer((a) => {
8713
- var u;
8714
- a._fid = (u = c[r]) != null ? u : c[c.length - 1], this.drawnItems.addLayer(a), this.installVertexContextMenu(a), r++;
8746
+ var d;
8747
+ a._fid = (d = c[r]) != null ? d : c[c.length - 1], this.drawnItems.addLayer(a), this.installVertexContextMenu(a), r++;
8715
8748
  }), c;
8716
8749
  }
8717
8750
  async updateFeature(h, s) {
@@ -8729,9 +8762,9 @@ class Ns {
8729
8762
  if (!s) return;
8730
8763
  const c = s, n = this.L.latLngBounds(c);
8731
8764
  if (h > 0) {
8732
- const r = n.getSouthWest(), a = n.getNorthEast(), u = (a.lat - r.lat) * h, f = (a.lng - r.lng) * h, _ = this.L.latLngBounds(
8733
- this.L.latLng(r.lat - u, r.lng - f),
8734
- this.L.latLng(a.lat + u, a.lng + f)
8765
+ const r = n.getSouthWest(), a = n.getNorthEast(), d = (a.lat - r.lat) * h, f = (a.lng - r.lng) * h, _ = this.L.latLngBounds(
8766
+ this.L.latLng(r.lat - d, r.lng - f),
8767
+ this.L.latLng(a.lat + d, a.lng + f)
8735
8768
  );
8736
8769
  this.map.fitBounds(_);
8737
8770
  } else
@@ -8741,9 +8774,9 @@ class Ns {
8741
8774
  if (!this.map) return;
8742
8775
  const c = this.L.latLngBounds(h);
8743
8776
  if (s > 0) {
8744
- const n = c.getSouthWest(), r = c.getNorthEast(), a = (r.lat - n.lat) * s, u = (r.lng - n.lng) * s, f = this.L.latLngBounds(
8745
- this.L.latLng(n.lat - a, n.lng - u),
8746
- this.L.latLng(r.lat + a, r.lng + u)
8777
+ const n = c.getSouthWest(), r = c.getNorthEast(), a = (r.lat - n.lat) * s, d = (r.lng - n.lng) * s, f = this.L.latLngBounds(
8778
+ this.L.latLng(n.lat - a, n.lng - d),
8779
+ this.L.latLng(r.lat + a, r.lng + d)
8747
8780
  );
8748
8781
  this.map.fitBounds(f);
8749
8782
  } else
@@ -8777,8 +8810,8 @@ class Ns {
8777
8810
  );
8778
8811
  let r = !1;
8779
8812
  n.on("tileerror", (a) => {
8780
- var u;
8781
- this.logger.error("tile-layer:error", { error: a }), r || (r = !0, (u = s == null ? void 0 : s.onTileError) == null || u.call(s, a));
8813
+ var d;
8814
+ this.logger.error("tile-layer:error", { error: a }), r || (r = !0, (d = s == null ? void 0 : s.onTileError) == null || d.call(s, a));
8782
8815
  }), n.addTo(this.map), this.tileLayer = n;
8783
8816
  }
8784
8817
  /**
@@ -8790,26 +8823,26 @@ class Ns {
8790
8823
  */
8791
8824
  async mergeVisiblePolygons(h) {
8792
8825
  if (!this.map || !this.drawnItems) return null;
8793
- const c = (await this.getGeoJSON()).features.filter((u) => {
8794
- const f = u.geometry;
8826
+ const c = (await this.getGeoJSON()).features.filter((d) => {
8827
+ const f = d.geometry;
8795
8828
  return f && (no(f) || oo(f));
8796
8829
  });
8797
8830
  if (c.length <= 1) {
8798
8831
  if (c.length === 1) {
8799
- const u = c[0].id;
8800
- return u ? String(u) : null;
8832
+ const d = c[0].id;
8833
+ return d ? String(d) : null;
8801
8834
  }
8802
8835
  return null;
8803
8836
  }
8804
8837
  const n = us(c, h == null ? void 0 : h.properties);
8805
8838
  if (!n) return null;
8806
8839
  const r = [];
8807
- for (const u of c) {
8808
- const f = u.id;
8840
+ for (const d of c) {
8841
+ const f = d.id;
8809
8842
  f && r.push(String(f));
8810
8843
  }
8811
- for (const u of r)
8812
- await this.removeFeature(u);
8844
+ for (const d of r)
8845
+ await this.removeFeature(d);
8813
8846
  const [a] = await this.addFeatures({
8814
8847
  type: "FeatureCollection",
8815
8848
  features: [n]
@@ -8817,7 +8850,12 @@ class Ns {
8817
8850
  return a || null;
8818
8851
  }
8819
8852
  setRulerUnits(h) {
8820
- this.measurementSystem !== h && (this.measurementSystem = h, this.logger.debug("ruler:units", { system: h }), this.syncMeasurementModalState(), this.rebuildRulerControl());
8853
+ if (this.measurementSystem === h) return;
8854
+ const s = this.measurementSystem;
8855
+ this.measurementSystem = h, this.logger.debug("ruler:units", { system: h }), this.emitToolEvent("tool:ruler:units-changed", {
8856
+ previous: s,
8857
+ current: h
8858
+ }), this.syncMeasurementModalState(), this.rebuildRulerControl();
8821
8859
  }
8822
8860
  // ---------------- Internals ----------------
8823
8861
  buildDrawOptions(h, s) {
@@ -8917,7 +8955,7 @@ class Ns {
8917
8955
  if (typeof c != "function") return;
8918
8956
  const n = this.logger;
8919
8957
  s._calculateBearingAndDistance = function() {
8920
- var a, u, f;
8958
+ var a, d, f;
8921
8959
  c.call(this);
8922
8960
  try {
8923
8961
  const _ = this._clickedLatLong, g = (a = this._movingLatLong) != null ? a : this._clickedLatLong;
@@ -8927,8 +8965,8 @@ class Ns {
8927
8965
  _.lng,
8928
8966
  g.lat,
8929
8967
  g.lng
8930
- ), M = w / 1e3, E = typeof ((f = (u = this.options) == null ? void 0 : u.lengthUnit) == null ? void 0 : f.factor) == "number" ? this.options.lengthUnit.factor : 1, P = Ci(M * E);
8931
- this._result = this._result || {}, this._result.Distance = P, this._result.Bearing = x, this._result.meters = w;
8968
+ ), T = w / 1e3, P = typeof ((f = (d = this.options) == null ? void 0 : d.lengthUnit) == null ? void 0 : f.factor) == "number" ? this.options.lengthUnit.factor : 1, M = Ci(T * P);
8969
+ this._result = this._result || {}, this._result.Distance = M, this._result.Bearing = x, this._result.meters = w;
8932
8970
  } catch (_) {
8933
8971
  n == null || n.warn("ruler:precision-patch", _);
8934
8972
  }
@@ -8996,8 +9034,8 @@ class Ns {
8996
9034
  });
8997
9035
  const a = document.createElement("div");
8998
9036
  a.className = "leaflet-ruler-modal-actions";
8999
- const u = document.createElement("button");
9000
- return u.type = "button", u.className = "leaflet-ruler-modal-close", u.textContent = "Close", u.addEventListener("click", () => this.toggleMeasurementModal(!1)), a.appendChild(u), s.appendChild(a), h.appendChild(s), this.container.appendChild(h), this.measurementModalOverlay = h, this.measurementModalDialog = s, this.syncMeasurementModalState(), h;
9037
+ const d = document.createElement("button");
9038
+ return d.type = "button", d.className = "leaflet-ruler-modal-close", d.textContent = "Close", d.addEventListener("click", () => this.toggleMeasurementModal(!1)), a.appendChild(d), s.appendChild(a), h.appendChild(s), this.container.appendChild(h), this.measurementModalOverlay = h, this.measurementModalDialog = s, this.syncMeasurementModalState(), h;
9001
9039
  }
9002
9040
  /* c8 ignore next */
9003
9041
  toggleMeasurementModal(h) {
@@ -9038,26 +9076,26 @@ class Ns {
9038
9076
  * if the click is within a small pixel radius of the first vertex, it triggers finishShape().
9039
9077
  */
9040
9078
  installPolygonFinishPatch() {
9041
- var a, u, f, _, g;
9079
+ var a, d, f, _, g;
9042
9080
  if (!this.map || !this.drawControl) return;
9043
9081
  try {
9044
9082
  (a = this.detachPolygonFinishPatch) == null || a.call(this);
9045
9083
  } catch {
9046
9084
  }
9047
9085
  this.detachPolygonFinishPatch = null;
9048
- const h = this.map, s = (f = (u = this.drawControl) == null ? void 0 : u._toolbars) == null ? void 0 : f.draw;
9086
+ const h = this.map, s = (f = (d = this.drawControl) == null ? void 0 : d._toolbars) == null ? void 0 : f.draw;
9049
9087
  if (!s || !!!((g = (_ = s._modes) == null ? void 0 : _.polygon) != null && g.handler)) return;
9050
9088
  const n = 10, r = (w) => {
9051
- var x, M, E, P, U, H, S, D;
9089
+ var x, T, P, M, U, F, C, D;
9052
9090
  try {
9053
- const G = (M = (x = s._modes) == null ? void 0 : x.polygon) == null ? void 0 : M.handler;
9091
+ const G = (T = (x = s._modes) == null ? void 0 : x.polygon) == null ? void 0 : T.handler;
9054
9092
  if (!G || !G._enabled) return;
9055
9093
  const Y = G._markers;
9056
9094
  if (!Array.isArray(Y) || Y.length < 4) return;
9057
- const q = (P = (E = Y[0]) == null ? void 0 : E.getLatLng) == null ? void 0 : P.call(E);
9095
+ const q = (M = (P = Y[0]) == null ? void 0 : P.getLatLng) == null ? void 0 : M.call(P);
9058
9096
  if (!q) return;
9059
9097
  const at = h.latLngToContainerPoint(q), _t = h.latLngToContainerPoint(w.latlng);
9060
- Math.hypot(at.x - _t.x, at.y - _t.y) <= n && typeof G._finishShape == "function" && ((H = (U = w.originalEvent) == null ? void 0 : U.preventDefault) == null || H.call(U), (D = (S = w.originalEvent) == null ? void 0 : S.stopPropagation) == null || D.call(S), G._finishShape());
9098
+ Math.hypot(at.x - _t.x, at.y - _t.y) <= n && typeof G._finishShape == "function" && ((F = (U = w.originalEvent) == null ? void 0 : U.preventDefault) == null || F.call(U), (D = (C = w.originalEvent) == null ? void 0 : C.stopPropagation) == null || D.call(C), G._finishShape());
9061
9099
  } catch (G) {
9062
9100
  this._error("polygon-finish-patch", G);
9063
9101
  }
@@ -9072,8 +9110,8 @@ class Ns {
9072
9110
  patchLeafletDrawBugs() {
9073
9111
  var h, s, c, n, r;
9074
9112
  try {
9075
- const a = this.L, u = a.GeometryUtil;
9076
- if (!u) return;
9113
+ const a = this.L, d = a.GeometryUtil;
9114
+ if (!d) return;
9077
9115
  const f = {
9078
9116
  km: 2,
9079
9117
  ha: 2,
@@ -9083,34 +9121,34 @@ class Ns {
9083
9121
  yd: 0,
9084
9122
  ft: 0,
9085
9123
  nm: 2
9086
- }, _ = (s = (h = u.formattedNumber) == null ? void 0 : h.bind(u)) != null ? s : ((g, w) => Number(g).toFixed(w));
9087
- u.readableArea = (g, w, x) => {
9088
- var P;
9089
- const M = (P = a.Util) != null && P.extend ? a.Util.extend({}, f, x || {}) : { ...f, ...x || {} };
9090
- let E;
9124
+ }, _ = (s = (h = d.formattedNumber) == null ? void 0 : h.bind(d)) != null ? s : ((g, w) => Number(g).toFixed(w));
9125
+ d.readableArea = (g, w, x) => {
9126
+ var M;
9127
+ const T = (M = a.Util) != null && M.extend ? a.Util.extend({}, f, x || {}) : { ...f, ...x || {} };
9128
+ let P;
9091
9129
  if (w) {
9092
9130
  let U = ["ha", "m"];
9093
- const H = typeof w;
9094
- H === "string" ? U = [w] : H !== "boolean" && (U = Array.isArray(w) ? w : U), g >= 1e6 && U.indexOf("km") !== -1 ? E = `${_(1e-6 * g, M.km)} km²` : g >= 1e4 && U.indexOf("ha") !== -1 ? E = `${_(1e-4 * g, M.ha)} ha` : E = `${_(g, M.m)} m²`;
9131
+ const F = typeof w;
9132
+ F === "string" ? U = [w] : F !== "boolean" && (U = Array.isArray(w) ? w : U), g >= 1e6 && U.indexOf("km") !== -1 ? P = `${_(1e-6 * g, T.km)} km²` : g >= 1e4 && U.indexOf("ha") !== -1 ? P = `${_(1e-4 * g, T.ha)} ha` : P = `${_(g, T.m)} m²`;
9095
9133
  } else
9096
- g = g / 0.836127, g >= 3097600 ? E = `${_(g / 3097600, M.mi)} mi²` : g >= 4840 ? E = `${_(g / 4840, M.ac)} acres` : E = `${_(g, M.yd)} yd²`;
9097
- return E;
9134
+ g = g / 0.836127, g >= 3097600 ? P = `${_(g / 3097600, T.mi)} mi²` : g >= 4840 ? P = `${_(g / 4840, T.ac)} acres` : P = `${_(g, T.yd)} yd²`;
9135
+ return P;
9098
9136
  };
9099
9137
  } catch (a) {
9100
9138
  this.logger.warn("leaflet-draw-patch:readableArea", a);
9101
9139
  }
9102
9140
  try {
9103
- const a = this.L, u = (c = a.Edit) == null ? void 0 : c.Circle, f = (n = a.Draw) == null ? void 0 : n.Event, _ = a.GeometryUtil;
9104
- if (!((r = u == null ? void 0 : u.prototype) != null && r._resize) || !f || !_) return;
9105
- u.prototype._resize = function(w) {
9106
- var E, P, U;
9107
- const x = this._moveMarker.getLatLng(), M = _.isVersion07x() ? x.distanceTo(w) : this._map.distance(x, w);
9108
- this._shape.setRadius(M);
9141
+ const a = this.L, d = (c = a.Edit) == null ? void 0 : c.Circle, f = (n = a.Draw) == null ? void 0 : n.Event, _ = a.GeometryUtil;
9142
+ if (!((r = d == null ? void 0 : d.prototype) != null && r._resize) || !f || !_) return;
9143
+ d.prototype._resize = function(w) {
9144
+ var P, M, U;
9145
+ const x = this._moveMarker.getLatLng(), T = _.isVersion07x() ? x.distanceTo(w) : this._map.distance(x, w);
9146
+ this._shape.setRadius(T);
9109
9147
  try {
9110
- (E = this._map) != null && E.editTooltip && ((U = (P = this._map) == null ? void 0 : P._editTooltip) != null && U.updateContent) && this._map._editTooltip.updateContent({
9148
+ (P = this._map) != null && P.editTooltip && ((U = (M = this._map) == null ? void 0 : M._editTooltip) != null && U.updateContent) && this._map._editTooltip.updateContent({
9111
9149
  text: a.drawLocal.edit.handlers.edit.tooltip.subtext + "<br />" + a.drawLocal.edit.handlers.edit.tooltip.text,
9112
9150
  subtext: a.drawLocal.draw.handlers.circle.radius + ": " + _.readableDistance(
9113
- M,
9151
+ T,
9114
9152
  !0,
9115
9153
  this.options.feet,
9116
9154
  this.options.nautic
@@ -9137,30 +9175,40 @@ class Ns {
9137
9175
  this.activeCakeSession = new As(
9138
9176
  this.map,
9139
9177
  r,
9140
- (g) => {
9178
+ (w) => {
9141
9179
  if (!this.drawnItems) return;
9142
- const w = this.store.add(g), x = this.L.geoJSON(g);
9143
- let M = 0;
9144
- x.eachLayer((E) => {
9145
- var U, H, S;
9146
- const P = (U = w[M]) != null ? U : w[w.length - 1];
9147
- E._fid = P, this.drawnItems.addLayer(E), this.installVertexContextMenu(E), (S = (H = this.options.callbacks) == null ? void 0 : H.onCreated) == null || S.call(H, {
9148
- id: P,
9180
+ const x = this.store.add(w), T = this.L.geoJSON(w);
9181
+ let P = 0;
9182
+ T.eachLayer((M) => {
9183
+ var F, C, D;
9184
+ const U = (F = x[P]) != null ? F : x[x.length - 1];
9185
+ M._fid = U, this.drawnItems.addLayer(M), this.installVertexContextMenu(M), (D = (C = this.options.callbacks) == null ? void 0 : C.onCreated) == null || D.call(C, {
9186
+ id: U,
9149
9187
  layerType: "polygon",
9150
- geoJSON: E.toGeoJSON()
9151
- }), M++;
9152
- }), this.activeCakeSession = null;
9188
+ geoJSON: M.toGeoJSON()
9189
+ }), P++;
9190
+ }), this.activeCakeSession = null, this.emitToolEvent("tool:layer-cake:saved", {
9191
+ featureCollection: w
9192
+ });
9153
9193
  },
9154
9194
  this.measurementSystem
9155
- );
9195
+ ), this.emitToolEvent("tool:layer-cake:session-started", {
9196
+ center: r.getLatLng(),
9197
+ radius: r.getRadius()
9198
+ });
9156
9199
  return;
9157
9200
  }
9158
9201
  this.drawnItems.addLayer(r);
9159
- const u = r.toGeoJSON(), _ = this.store.add({
9202
+ const d = r.toGeoJSON(), _ = this.store.add({
9160
9203
  type: "FeatureCollection",
9161
- features: [u]
9204
+ features: [d]
9162
9205
  })[0];
9163
- r._fid = _, this.installVertexContextMenu(r), (n = (c = this.options.callbacks) == null ? void 0 : c.onCreated) == null || n.call(c, { id: _, layerType: a, geoJSON: u });
9206
+ r._fid = _, this.installVertexContextMenu(r), (n = (c = this.options.callbacks) == null ? void 0 : c.onCreated) == null || n.call(c, { id: _, layerType: a, geoJSON: d });
9207
+ const g = Ns[a];
9208
+ g && this.emitToolEvent(g, {
9209
+ id: _,
9210
+ geoJSON: d
9211
+ });
9164
9212
  } catch (r) {
9165
9213
  this._error("onCreated handler failed", r);
9166
9214
  }
@@ -9168,20 +9216,25 @@ class Ns {
9168
9216
  var s, c;
9169
9217
  try {
9170
9218
  const n = [];
9171
- h.layers.eachLayer((a) => {
9172
- const u = a.toGeoJSON(), f = a._fid;
9173
- if (f)
9174
- this.store.update(f, u), n.push(f);
9219
+ h.layers.eachLayer((d) => {
9220
+ const f = d.toGeoJSON(), _ = d._fid;
9221
+ if (_)
9222
+ this.store.update(_, f), n.push(_);
9175
9223
  else {
9176
- const _ = this.store.add({
9224
+ const g = this.store.add({
9177
9225
  type: "FeatureCollection",
9178
- features: [u]
9226
+ features: [f]
9179
9227
  })[0];
9180
- a._fid = _, n.push(_);
9228
+ d._fid = g, n.push(g);
9181
9229
  }
9182
- }), (c = (s = this.options.callbacks) == null ? void 0 : s.onEdited) == null || c.call(s, {
9230
+ });
9231
+ const a = this.store.toFeatureCollection();
9232
+ (c = (s = this.options.callbacks) == null ? void 0 : s.onEdited) == null || c.call(s, {
9183
9233
  ids: n,
9184
- geoJSON: this.store.toFeatureCollection()
9234
+ geoJSON: a
9235
+ }), this.emitToolEvent("tool:edit:applied", {
9236
+ ids: n,
9237
+ geoJSON: a
9185
9238
  });
9186
9239
  } catch (n) {
9187
9240
  this._error("onEdited handler failed", n);
@@ -9190,36 +9243,51 @@ class Ns {
9190
9243
  var s, c;
9191
9244
  try {
9192
9245
  const n = [];
9193
- h.layers.eachLayer((a) => {
9194
- const u = a._fid;
9195
- u && (n.push(u), this.store.remove(u));
9196
- }), (c = (s = this.options.callbacks) == null ? void 0 : s.onDeleted) == null || c.call(s, {
9246
+ h.layers.eachLayer((d) => {
9247
+ const f = d._fid;
9248
+ f && (n.push(f), this.store.remove(f));
9249
+ });
9250
+ const a = this.store.toFeatureCollection();
9251
+ (c = (s = this.options.callbacks) == null ? void 0 : s.onDeleted) == null || c.call(s, {
9197
9252
  ids: n,
9198
- geoJSON: this.store.toFeatureCollection()
9253
+ geoJSON: a
9254
+ }), this.emitToolEvent("tool:delete:applied", {
9255
+ ids: n,
9256
+ geoJSON: a
9199
9257
  });
9200
9258
  } catch (n) {
9201
9259
  this._error("onDeleted handler failed", n);
9202
9260
  }
9203
9261
  }), this.map.on("draw:moveend", (h) => {
9262
+ var s;
9204
9263
  try {
9205
- this.showMoveConfirmationUI(h.layer, h.originalGeoJSON, h.newGeoJSON);
9206
- } catch (s) {
9207
- this._error("draw:moveend handler failed", s);
9264
+ this.emitToolEvent("tool:move:pending", {
9265
+ layerId: (s = h == null ? void 0 : h.layer) == null ? void 0 : s._fid,
9266
+ originalGeoJSON: h == null ? void 0 : h.originalGeoJSON,
9267
+ newGeoJSON: h == null ? void 0 : h.newGeoJSON
9268
+ }), this.showMoveConfirmationUI(h.layer);
9269
+ } catch (c) {
9270
+ this._error("draw:moveend handler failed", c);
9208
9271
  }
9209
9272
  }), this.map.on("draw:moveconfirmed", (h) => {
9210
- var s, c;
9273
+ var s, c, n;
9211
9274
  try {
9212
- const n = h.layer, r = n._fid;
9213
- if (r) {
9214
- const a = n.toGeoJSON();
9215
- this.store.update(r, a), (c = (s = this.options.callbacks) == null ? void 0 : s.onEdited) == null || c.call(s, {
9216
- ids: [r],
9275
+ this.emitToolEvent("tool:move:confirmed", {
9276
+ layerId: (s = h == null ? void 0 : h.layer) == null ? void 0 : s._fid,
9277
+ originalGeoJSON: h == null ? void 0 : h.originalGeoJSON,
9278
+ newGeoJSON: h == null ? void 0 : h.newGeoJSON
9279
+ });
9280
+ const r = h.layer, a = r._fid;
9281
+ if (a) {
9282
+ const d = r.toGeoJSON();
9283
+ this.store.update(a, d), (n = (c = this.options.callbacks) == null ? void 0 : c.onEdited) == null || n.call(c, {
9284
+ ids: [a],
9217
9285
  geoJSON: this.store.toFeatureCollection()
9218
9286
  });
9219
9287
  }
9220
9288
  this.hideMoveConfirmationUI();
9221
- } catch (n) {
9222
- this._error("draw:moveconfirmed handler failed", n);
9289
+ } catch (r) {
9290
+ this._error("draw:moveconfirmed handler failed", r);
9223
9291
  }
9224
9292
  }));
9225
9293
  }
@@ -9231,9 +9299,9 @@ class Ns {
9231
9299
  installVertexContextMenu(h) {
9232
9300
  if (!h || typeof h.on != "function") return;
9233
9301
  const s = (n) => {
9234
- var r, a, u, f;
9302
+ var r, a, d, f;
9235
9303
  try {
9236
- (a = (r = n == null ? void 0 : n.originalEvent) == null ? void 0 : r.preventDefault) == null || a.call(r), (f = (u = n == null ? void 0 : n.originalEvent) == null ? void 0 : u.stopPropagation) == null || f.call(u);
9304
+ (a = (r = n == null ? void 0 : n.originalEvent) == null ? void 0 : r.preventDefault) == null || a.call(r), (f = (d = n == null ? void 0 : n.originalEvent) == null ? void 0 : d.stopPropagation) == null || f.call(d);
9237
9305
  } catch {
9238
9306
  }
9239
9307
  this.openVertexMenu(h, n);
@@ -9252,10 +9320,10 @@ class Ns {
9252
9320
  const n = h.editing;
9253
9321
  if (!n || typeof n.enabled != "function" || !n.enabled())
9254
9322
  return;
9255
- const r = s == null ? void 0 : s.latlng, a = this.map.latLngToContainerPoint(r), u = this.findNearestVertex(h, r, 12);
9256
- if (!u) return;
9323
+ const r = s == null ? void 0 : s.latlng, a = this.map.latLngToContainerPoint(r), d = this.findNearestVertex(h, r, 12);
9324
+ if (!d) return;
9257
9325
  this.showVertexMenu(a, async () => {
9258
- await this.deleteVertex(h, u.pathIndex, u.vertexIndex);
9326
+ await this.deleteVertex(h, d.pathIndex, d.vertexIndex);
9259
9327
  });
9260
9328
  } catch (c) {
9261
9329
  this._error("openVertexMenu", c);
@@ -9282,29 +9350,29 @@ class Ns {
9282
9350
  }), n.appendChild(r);
9283
9351
  const a = () => {
9284
9352
  try {
9285
- window.removeEventListener("pointerdown", u), this.container.removeEventListener("scroll", a, !0), n.remove();
9353
+ window.removeEventListener("pointerdown", d), this.container.removeEventListener("scroll", a, !0), n.remove();
9286
9354
  } catch {
9287
9355
  }
9288
9356
  this.vertexMenuEl = null, this.vertexMenuCleanup = null;
9289
- }, u = (f) => {
9357
+ }, d = (f) => {
9290
9358
  n.contains(f.target) || a();
9291
9359
  };
9292
- window.addEventListener("pointerdown", u, { capture: !0 }), this.container.addEventListener("scroll", a, !0), this.container.appendChild(n), this.vertexMenuEl = n, this.vertexMenuCleanup = a;
9360
+ window.addEventListener("pointerdown", d, { capture: !0 }), this.container.addEventListener("scroll", a, !0), this.container.appendChild(n), this.vertexMenuEl = n, this.vertexMenuCleanup = a;
9293
9361
  } catch (n) {
9294
9362
  this._error("showVertexMenu", n);
9295
9363
  }
9296
9364
  }
9297
9365
  findNearestVertex(h, s, c) {
9298
9366
  if (!this.map) return null;
9299
- const n = (x) => this.map.latLngToContainerPoint(x), r = (x, M) => Math.hypot(x.x - M.x, x.y - M.y), a = n(s);
9300
- let u = 1 / 0, f = -1, _ = -1;
9367
+ const n = (x) => this.map.latLngToContainerPoint(x), r = (x, T) => Math.hypot(x.x - T.x, x.y - T.y), a = n(s);
9368
+ let d = 1 / 0, f = -1, _ = -1;
9301
9369
  const g = h.getLatLngs();
9302
- return (Array.isArray(g[0]) ? g : [g]).forEach((x, M) => {
9303
- x.forEach((E, P) => {
9304
- const U = n(E), H = r(U, a);
9305
- H < u && (u = H, f = M, _ = P);
9370
+ return (Array.isArray(g[0]) ? g : [g]).forEach((x, T) => {
9371
+ x.forEach((P, M) => {
9372
+ const U = n(P), F = r(U, a);
9373
+ F < d && (d = F, f = T, _ = M);
9306
9374
  });
9307
- }), f === -1 || u > c ? null : { pathIndex: f, vertexIndex: _ };
9375
+ }), f === -1 || d > c ? null : { pathIndex: f, vertexIndex: _ };
9308
9376
  }
9309
9377
  async deleteVertex(h, s, c) {
9310
9378
  var n, r, a;
@@ -9317,55 +9385,57 @@ class Ns {
9317
9385
  if (g.splice(c, 1), _.length === 1)
9318
9386
  h.setLatLngs(g);
9319
9387
  else {
9320
- const E = _.map((P, U) => U === s ? g : P);
9321
- h.setLatLngs(E);
9388
+ const P = _.map((M, U) => U === s ? g : M);
9389
+ h.setLatLngs(P);
9322
9390
  }
9323
9391
  (n = h.redraw) == null || n.call(h);
9324
- const M = h._fid;
9325
- if (M) {
9326
- const E = h.toGeoJSON();
9327
- this.store.update(M, E), (a = (r = this.options.callbacks) == null ? void 0 : r.onEdited) == null || a.call(r, {
9328
- ids: [M],
9392
+ const T = h._fid;
9393
+ if (T) {
9394
+ const P = h.toGeoJSON();
9395
+ this.store.update(T, P), (a = (r = this.options.callbacks) == null ? void 0 : r.onEdited) == null || a.call(r, {
9396
+ ids: [T],
9329
9397
  geoJSON: this.store.toFeatureCollection()
9330
9398
  });
9331
9399
  }
9332
- } catch (u) {
9333
- this._error("deleteVertex", u);
9400
+ } catch (d) {
9401
+ this._error("deleteVertex", d);
9334
9402
  }
9335
9403
  }
9336
9404
  // -------- Move tool Save/Cancel UI --------
9337
- showMoveConfirmationUI(h, s, c) {
9338
- var n, r;
9405
+ showMoveConfirmationUI(h) {
9406
+ var s, c;
9339
9407
  try {
9340
9408
  if (this.hideMoveConfirmationUI(), !this.container || !this.map) return;
9341
- const a = this.drawControl;
9342
- if (!a) return;
9343
- const u = (n = a == null ? void 0 : a._toolbars) == null ? void 0 : n.draw;
9344
- if (!u) return;
9345
- const f = u._modes || {};
9346
- let _ = null;
9347
- for (const M in f) {
9348
- const E = f[M];
9349
- if (((r = E == null ? void 0 : E.handler) == null ? void 0 : r.type) === "move") {
9350
- _ = E.handler;
9409
+ const n = this.drawControl;
9410
+ if (!n) return;
9411
+ const r = (s = n == null ? void 0 : n._toolbars) == null ? void 0 : s.draw;
9412
+ if (!r) return;
9413
+ const a = r._modes || {};
9414
+ let d = null;
9415
+ for (const w in a) {
9416
+ const x = a[w];
9417
+ if (((c = x == null ? void 0 : x.handler) == null ? void 0 : c.type) === "move") {
9418
+ d = x.handler;
9351
9419
  break;
9352
9420
  }
9353
9421
  }
9354
- this.activeMoveHandler = _;
9355
- const g = document.createElement("div");
9356
- g.style.position = "absolute", g.style.bottom = "60px", g.style.left = "50%", g.style.transform = "translateX(-50%)", g.style.display = "flex", g.style.gap = "8px", g.style.background = "#fff", g.style.border = "2px solid #3388ff", g.style.borderRadius = "8px", g.style.padding = "12px 16px", g.style.boxShadow = "0 4px 12px rgba(0,0,0,0.2)", g.style.zIndex = "10000", g.style.fontSize = "14px", g.style.fontFamily = "system-ui, sans-serif";
9357
- const w = document.createElement("button");
9358
- w.textContent = "✓ Save", w.style.padding = "8px 16px", w.style.border = "none", w.style.background = "#28a745", w.style.color = "#fff", w.style.borderRadius = "4px", w.style.cursor = "pointer", w.style.fontWeight = "600", w.style.fontSize = "14px", w.addEventListener("click", (M) => {
9359
- M.stopPropagation(), M.preventDefault(), _ != null && _.confirmMove && _.confirmMove();
9422
+ this.activeMoveHandler = d;
9423
+ const f = document.createElement("div");
9424
+ f.style.position = "absolute", f.style.bottom = "60px", f.style.left = "50%", f.style.transform = "translateX(-50%)", f.style.display = "flex", f.style.gap = "8px", f.style.background = "#fff", f.style.border = "2px solid #3388ff", f.style.borderRadius = "8px", f.style.padding = "12px 16px", f.style.boxShadow = "0 4px 12px rgba(0,0,0,0.2)", f.style.zIndex = "10000", f.style.fontSize = "14px", f.style.fontFamily = "system-ui, sans-serif";
9425
+ const _ = document.createElement("button");
9426
+ _.textContent = "✓ Save", _.style.padding = "8px 16px", _.style.border = "none", _.style.background = "#28a745", _.style.color = "#fff", _.style.borderRadius = "4px", _.style.cursor = "pointer", _.style.fontWeight = "600", _.style.fontSize = "14px", _.addEventListener("click", (w) => {
9427
+ w.stopPropagation(), w.preventDefault(), d != null && d.confirmMove && d.confirmMove();
9360
9428
  });
9361
- const x = document.createElement("button");
9362
- x.textContent = "✕ Cancel", x.style.padding = "8px 16px", x.style.border = "1px solid #ccc", x.style.background = "#fff", x.style.color = "#333", x.style.borderRadius = "4px", x.style.cursor = "pointer", x.style.fontWeight = "600", x.style.fontSize = "14px", x.addEventListener("click", (M) => {
9363
- M.stopPropagation(), M.preventDefault(), _ != null && _.cancelMove && _.cancelMove(), this.hideMoveConfirmationUI();
9364
- }), g.appendChild(w), g.appendChild(x), this.container.appendChild(g), this.moveConfirmationUI = g, this.logger.debug("showMoveConfirmationUI", {
9429
+ const g = document.createElement("button");
9430
+ g.textContent = "✕ Cancel", g.style.padding = "8px 16px", g.style.border = "1px solid #ccc", g.style.background = "#fff", g.style.color = "#333", g.style.borderRadius = "4px", g.style.cursor = "pointer", g.style.fontWeight = "600", g.style.fontSize = "14px", g.addEventListener("click", (w) => {
9431
+ w.stopPropagation(), w.preventDefault(), this.emitToolEvent("tool:move:cancelled", {
9432
+ layerId: h == null ? void 0 : h._fid
9433
+ }), d != null && d.cancelMove && d.cancelMove(), this.hideMoveConfirmationUI();
9434
+ }), f.appendChild(_), f.appendChild(g), this.container.appendChild(f), this.moveConfirmationUI = f, this.logger.debug("showMoveConfirmationUI", {
9365
9435
  layerId: h._fid
9366
9436
  });
9367
- } catch (a) {
9368
- this._error("showMoveConfirmationUI", a);
9437
+ } catch (n) {
9438
+ this._error("showMoveConfirmationUI", n);
9369
9439
  }
9370
9440
  }
9371
9441
  hideMoveConfirmationUI() {
@@ -9402,7 +9472,7 @@ function ao(m) {
9402
9472
  const h = m.trim();
9403
9473
  return h.length > 0 ? h : void 0;
9404
9474
  }
9405
- function Zs(m) {
9475
+ function Hs(m) {
9406
9476
  const { style: h, attribution: s } = m, c = so(m.provider), n = ao(m.apiKey);
9407
9477
  switch (c) {
9408
9478
  case "osm":
@@ -9427,7 +9497,7 @@ function Zs(m) {
9427
9497
  throw new Error(`Unknown tile provider: ${m.provider}`);
9428
9498
  }
9429
9499
  }
9430
- function Hs(m) {
9500
+ function Fs(m) {
9431
9501
  const h = so(m.provider), s = ao(m.apiKey);
9432
9502
  return h ? h === "here" && !s ? { valid: !1, error: "HERE Maps requires an API key" } : { valid: !0 } : { valid: !1, error: "Provider is required" };
9433
9503
  }
@@ -9468,6 +9538,8 @@ class lo extends HTMLElement {
9468
9538
  k(this, "_useExternalLeaflet", !1);
9469
9539
  k(this, "_skipLeafletStyles", !1);
9470
9540
  k(this, "_leafletInstance");
9541
+ k(this, "_toolHooks");
9542
+ k(this, "_toolEventEmitter");
9471
9543
  this._root = this.attachShadow({ mode: "open" }), this._root.innerHTML = `
9472
9544
  <style>
9473
9545
  :host {
@@ -9529,7 +9601,7 @@ class lo extends HTMLElement {
9529
9601
  this._logger.debug("connectedCallback", this._currentConfig()), ts({
9530
9602
  root: this._root,
9531
9603
  skipStyles: this._skipLeafletStyles
9532
- }), this._applyThemeStyles(), this._controller = new Ns({
9604
+ }), this._applyThemeStyles(), this._controller = new Zs({
9533
9605
  container: this._container,
9534
9606
  map: this._mapConfig(),
9535
9607
  controls: this._controlsFromAttributes(),
@@ -9559,7 +9631,9 @@ class lo extends HTMLElement {
9559
9631
  }
9560
9632
  },
9561
9633
  leaflet: (s = this._leafletInstance) != null ? s : void 0,
9562
- useExternalLeaflet: this._useExternalLeaflet
9634
+ useExternalLeaflet: this._useExternalLeaflet,
9635
+ toolHooks: this._toolHooks,
9636
+ toolEventEmitter: this._toolEventEmitter
9563
9637
  }), await this._controller.init(), this._tileProvider && this._updateTileLayer();
9564
9638
  }
9565
9639
  async disconnectedCallback() {
@@ -9677,30 +9751,30 @@ class lo extends HTMLElement {
9677
9751
  }
9678
9752
  try {
9679
9753
  if (this._tileProvider) {
9680
- const u = this._tileProvider, f = {
9681
- provider: u,
9754
+ const d = this._tileProvider, f = {
9755
+ provider: d,
9682
9756
  style: this._tileStyle,
9683
9757
  apiKey: this._apiKey,
9684
9758
  attribution: this._tileAttribution
9685
- }, _ = Hs(f);
9759
+ }, _ = Fs(f);
9686
9760
  if (!_.valid) {
9687
9761
  const x = (c = _.error) != null && c.toLowerCase().includes("api key") ? "missing_api_key" : "tile_load_failed";
9688
9762
  this._handleTileProviderError(
9689
9763
  x,
9690
9764
  (n = _.error) != null ? n : "Invalid tile provider configuration",
9691
- u
9765
+ d
9692
9766
  );
9693
9767
  return;
9694
9768
  }
9695
- const g = Zs(f), w = this._activeTileProvider;
9769
+ const g = Hs(f), w = this._activeTileProvider;
9696
9770
  s.setTileLayer(g, {
9697
9771
  onTileError: (x) => {
9698
- if (this._tileProvider !== u) return;
9699
- const M = this._describeTileLayerError(x, u), E = u === "here" ? this._resolveHereTileLayerErrorCode(M) : "tile_load_failed";
9700
- this._handleTileProviderError(E, M, u);
9772
+ if (this._tileProvider !== d) return;
9773
+ const T = this._describeTileLayerError(x, d), P = d === "here" ? this._resolveHereTileLayerErrorCode(T) : "tile_load_failed";
9774
+ this._handleTileProviderError(P, T, d);
9701
9775
  }
9702
- }), this._activeTileProvider = u, this._emitTileProviderChanged(
9703
- u,
9776
+ }), this._activeTileProvider = d, this._emitTileProviderChanged(
9777
+ d,
9704
9778
  this._tileStyle,
9705
9779
  w
9706
9780
  );
@@ -9712,11 +9786,11 @@ class lo extends HTMLElement {
9712
9786
  maxZoom: this._maxZoom,
9713
9787
  subdomains: ["a", "b", "c"]
9714
9788
  }), this._activeTileProvider = "tile-url";
9715
- } catch (u) {
9716
- const f = this._resolveTileProviderErrorCode(u);
9717
- this._logger.error("Failed to update tile layer", { error: u, code: f }), this._handleTileProviderError(
9789
+ } catch (d) {
9790
+ const f = this._resolveTileProviderErrorCode(d);
9791
+ this._logger.error("Failed to update tile layer", { error: d, code: f }), this._handleTileProviderError(
9718
9792
  f,
9719
- u instanceof Error ? u.message : "Unknown tile layer error",
9793
+ d instanceof Error ? d.message : "Unknown tile layer error",
9720
9794
  (a = this._tileProvider) != null ? a : "unknown"
9721
9795
  );
9722
9796
  }
@@ -9862,6 +9936,28 @@ class lo extends HTMLElement {
9862
9936
  set leafletInstance(s) {
9863
9937
  this._leafletInstance = s;
9864
9938
  }
9939
+ get toolHooks() {
9940
+ return this._toolHooks;
9941
+ }
9942
+ set toolHooks(s) {
9943
+ this._toolHooks = s;
9944
+ const c = this._controller;
9945
+ typeof (c == null ? void 0 : c.setToolObservers) == "function" && c.setToolObservers({
9946
+ toolHooks: this._toolHooks,
9947
+ toolEventEmitter: this._toolEventEmitter
9948
+ });
9949
+ }
9950
+ get toolEventEmitter() {
9951
+ return this._toolEventEmitter;
9952
+ }
9953
+ set toolEventEmitter(s) {
9954
+ this._toolEventEmitter = s;
9955
+ const c = this._controller;
9956
+ typeof (c == null ? void 0 : c.setToolObservers) == "function" && c.setToolObservers({
9957
+ toolHooks: this._toolHooks,
9958
+ toolEventEmitter: this._toolEventEmitter
9959
+ });
9960
+ }
9865
9961
  get themeCss() {
9866
9962
  return this._themeCss;
9867
9963
  }
@@ -9927,12 +10023,12 @@ class lo extends HTMLElement {
9927
10023
  if (this._logger.debug("mergePolygons"), !this._controller) return null;
9928
10024
  const n = (await this._controller.getGeoJSON()).features.length, r = await this._controller.mergeVisiblePolygons(s);
9929
10025
  if (r) {
9930
- const a = await this._controller.getGeoJSON(), u = {
10026
+ const a = await this._controller.getGeoJSON(), d = {
9931
10027
  id: r,
9932
10028
  mergedFeatureCount: n - a.features.length + 1,
9933
10029
  geoJSON: a
9934
10030
  };
9935
- this.dispatchEvent(new CustomEvent("leaflet-draw:merged", { detail: u }));
10031
+ this.dispatchEvent(new CustomEvent("leaflet-draw:merged", { detail: d }));
9936
10032
  }
9937
10033
  return r;
9938
10034
  }
@@ -9943,14 +10039,14 @@ class lo extends HTMLElement {
9943
10039
  if (this._logger.debug("loadGeoJSONFromUrl", { url: s }), !this._controller) return;
9944
10040
  const c = await fetch(s, { headers: { Accept: "application/json" } });
9945
10041
  if (!c.ok) {
9946
- const u = new Error(
10042
+ const d = new Error(
9947
10043
  `Failed to fetch GeoJSON from ${s}: ${c.status} ${c.statusText}`
9948
10044
  );
9949
10045
  throw this.dispatchEvent(
9950
10046
  new CustomEvent("leaflet-draw:error", {
9951
- detail: { message: u.message, cause: u }
10047
+ detail: { message: d.message, cause: d }
9952
10048
  })
9953
- ), u;
10049
+ ), d;
9954
10050
  }
9955
10051
  const n = await c.json(), r = { fc: n, mode: "load" };
9956
10052
  this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: r }));
@@ -9963,11 +10059,11 @@ class lo extends HTMLElement {
9963
10059
  let c;
9964
10060
  try {
9965
10061
  c = JSON.parse(s);
9966
- } catch (u) {
10062
+ } catch (d) {
9967
10063
  const f = new Error("Failed to parse GeoJSON text");
9968
10064
  throw this.dispatchEvent(
9969
10065
  new CustomEvent("leaflet-draw:error", {
9970
- detail: { message: f.message, cause: u }
10066
+ detail: { message: f.message, cause: d }
9971
10067
  })
9972
10068
  ), f;
9973
10069
  }
@@ -10056,7 +10152,7 @@ class lo extends HTMLElement {
10056
10152
  return Number.isFinite(n) ? n : c != null ? c : NaN;
10057
10153
  }
10058
10154
  }
10059
- const Gs = {
10155
+ const Vs = {
10060
10156
  Ready: "leaflet-draw:ready",
10061
10157
  Created: "leaflet-draw:created",
10062
10158
  Edited: "leaflet-draw:edited",
@@ -10077,7 +10173,7 @@ if (!customElements.get(to)) {
10077
10173
  customElements.define(to, m);
10078
10174
  }
10079
10175
  export {
10080
- Gs as DrawEvent,
10176
+ Vs as DrawEvent,
10081
10177
  lo as LeafletDrawMapElement
10082
10178
  };
10083
10179
  //# sourceMappingURL=leaflet-geokit.es.js.map