@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.
@@ -146,9 +146,9 @@ function ro() {
146
146
  o.push(encodeURIComponent(i ? l.toUpperCase() : l) + "=" + encodeURIComponent(t[l]));
147
147
  return (!e || e.indexOf("?") === -1 ? "?" : "&") + o.join("&");
148
148
  }
149
- var H = /\{ *([\w_ -]+) *\}/g;
150
- function S(t, e) {
151
- return t.replace(H, function(i, o) {
149
+ var F = /\{ *([\w_ -]+) *\}/g;
150
+ function C(t, e) {
151
+ return t.replace(F, function(i, o) {
152
152
  var l = e[o];
153
153
  if (l === void 0)
154
154
  throw new Error("No value provided for variable " + i);
@@ -202,7 +202,7 @@ function ro() {
202
202
  splitWords: P,
203
203
  setOptions: A,
204
204
  getParamString: N,
205
- template: S,
205
+ template: C,
206
206
  isArray: D,
207
207
  indexOf: G,
208
208
  emptyImageUrl: Y,
@@ -1133,7 +1133,7 @@ function ro() {
1133
1133
  }
1134
1134
  return i === "auto" ? null : i;
1135
1135
  }
1136
- function F(t, e, i) {
1136
+ function H(t, e, i) {
1137
1137
  var o = document.createElement(t);
1138
1138
  return o.className = e || "", i && i.appendChild(o), o;
1139
1139
  }
@@ -1262,7 +1262,7 @@ function ro() {
1262
1262
  TRANSITION_END: rn,
1263
1263
  get: sn,
1264
1264
  getStyle: ee,
1265
- create: F,
1265
+ create: H,
1266
1266
  remove: J,
1267
1267
  empty: ye,
1268
1268
  toFront: Zt,
@@ -1644,9 +1644,9 @@ function ro() {
1644
1644
  this._stop();
1645
1645
  var o = this.project(this.getCenter()), l = this.project(t), u = this.getSize(), p = this._zoom;
1646
1646
  t = U(t), e = e === void 0 ? p : e;
1647
- var v = Math.max(u.x, u.y), y = v * this.getZoomScale(p, e), b = l.distanceTo(o) || 1, M = 1.42, C = M * M;
1647
+ var v = Math.max(u.x, u.y), y = v * this.getZoomScale(p, e), b = l.distanceTo(o) || 1, M = 1.42, S = M * M;
1648
1648
  function R($) {
1649
- var Oe = $ ? -1 : 1, Ir = $ ? y : v, zr = y * y - v * v + Oe * C * C * b * b, Or = 2 * Ir * C * b, xi = zr / Or, Yn = Math.sqrt(xi * xi + 1) - xi, Br = Yn < 1e-9 ? -18 : Math.log(Yn);
1649
+ var Oe = $ ? -1 : 1, Ir = $ ? y : v, zr = y * y - v * v + Oe * S * S * b * b, Or = 2 * Ir * S * b, xi = zr / Or, Yn = Math.sqrt(xi * xi + 1) - xi, Br = Yn < 1e-9 ? -18 : Math.log(Yn);
1650
1650
  return Br;
1651
1651
  }
1652
1652
  function st($) {
@@ -1663,7 +1663,7 @@ function ro() {
1663
1663
  return v * (et(ct) / et(ct + M * $));
1664
1664
  }
1665
1665
  function Tr($) {
1666
- return v * (et(ct) * mt(ct + M * $) - st(ct)) / C;
1666
+ return v * (et(ct) * mt(ct + M * $) - st(ct)) / S;
1667
1667
  }
1668
1668
  function Cr($) {
1669
1669
  return 1 - Math.pow(1 - $, 1.5);
@@ -1850,7 +1850,7 @@ function ro() {
1850
1850
  // then returns it. The pane is created as a child of `container`, or
1851
1851
  // as a child of the main map pane if not set.
1852
1852
  createPane: function(t, e) {
1853
- var i = "leaflet-pane" + (t ? " leaflet-" + t.replace("Pane", "") + "-pane" : ""), o = F("div", i, e || this._mapPane);
1853
+ var i = "leaflet-pane" + (t ? " leaflet-" + t.replace("Pane", "") + "-pane" : ""), o = H("div", i, e || this._mapPane);
1854
1854
  return t && (this._panes[t] = o), o;
1855
1855
  },
1856
1856
  // @section Methods for Getting Map State
@@ -1887,7 +1887,7 @@ function ro() {
1887
1887
  // the given bounds in its entirety.
1888
1888
  getBoundsZoom: function(t, e, i) {
1889
1889
  t = X(t), i = I(i || [0, 0]);
1890
- 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(), M = 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);
1890
+ 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(), M = T.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);
1891
1891
  return o = this.getScaleZoom(st, o), M && (o = Math.round(o / (M / 100)) * (M / 100), o = e ? Math.ceil(o / M) * M : Math.floor(o / M) * M), Math.max(l, Math.min(u, o));
1892
1892
  },
1893
1893
  // @method getSize(): Point
@@ -2270,7 +2270,7 @@ function ro() {
2270
2270
  return (e && e.animate) !== !0 && !this.getSize().contains(i) ? !1 : (this.panBy(i, e), !0);
2271
2271
  },
2272
2272
  _createAnimProxy: function() {
2273
- var t = this._proxy = F("div", "leaflet-proxy leaflet-zoom-animated");
2273
+ var t = this._proxy = H("div", "leaflet-proxy leaflet-zoom-animated");
2274
2274
  this._panes.mapPane.appendChild(t), this.on("zoomanim", function(e) {
2275
2275
  var i = $e, o = this._proxy.style[i];
2276
2276
  Dt(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), o === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
@@ -2375,10 +2375,10 @@ function ro() {
2375
2375
  return t.remove(), this;
2376
2376
  },
2377
2377
  _initControlPos: function() {
2378
- var t = this._controlCorners = {}, e = "leaflet-", i = this._controlContainer = F("div", e + "control-container", this._container);
2378
+ var t = this._controlCorners = {}, e = "leaflet-", i = this._controlContainer = H("div", e + "control-container", this._container);
2379
2379
  function o(l, u) {
2380
2380
  var p = e + l + " " + e + u;
2381
- t[l + u] = F("div", p, i);
2381
+ t[l + u] = H("div", p, i);
2382
2382
  }
2383
2383
  o("top", "left"), o("top", "right"), o("bottom", "left"), o("bottom", "right");
2384
2384
  },
@@ -2467,14 +2467,14 @@ function ro() {
2467
2467
  return K(this._container, "leaflet-control-layers-expanded"), this;
2468
2468
  },
2469
2469
  _initLayout: function() {
2470
- var t = "leaflet-control-layers", e = this._container = F("div", t), i = this.options.collapsed;
2470
+ var t = "leaflet-control-layers", e = this._container = H("div", t), i = this.options.collapsed;
2471
2471
  e.setAttribute("aria-haspopup", !0), re(e), di(e);
2472
- var o = this._section = F("section", t + "-list");
2472
+ var o = this._section = H("section", t + "-list");
2473
2473
  i && (this._map.on("click", this.collapse, this), O(e, {
2474
2474
  mouseenter: this._expandSafely,
2475
2475
  mouseleave: this.collapse
2476
2476
  }, this));
2477
- var l = this._layersLink = F("a", t + "-toggle", e);
2477
+ var l = this._layersLink = H("a", t + "-toggle", e);
2478
2478
  l.href = "#", l.title = "Layers", l.setAttribute("role", "button"), O(l, {
2479
2479
  keydown: function(u) {
2480
2480
  u.keyCode === 13 && this._expandSafely();
@@ -2483,7 +2483,7 @@ function ro() {
2483
2483
  click: function(u) {
2484
2484
  it(u), this._expandSafely();
2485
2485
  }
2486
- }, 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);
2486
+ }, 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);
2487
2487
  },
2488
2488
  _getLayer: function(t) {
2489
2489
  for (var e = 0; e < this._layers.length; e++)
@@ -2577,7 +2577,7 @@ function ro() {
2577
2577
  zoomOutTitle: "Zoom out"
2578
2578
  },
2579
2579
  onAdd: function(t) {
2580
- var e = "leaflet-control-zoom", i = F("div", e + " leaflet-bar"), o = this.options;
2580
+ var e = "leaflet-control-zoom", i = H("div", e + " leaflet-bar"), o = this.options;
2581
2581
  return this._zoomInButton = this._createButton(
2582
2582
  o.zoomInText,
2583
2583
  o.zoomInTitle,
@@ -2608,7 +2608,7 @@ function ro() {
2608
2608
  !this._disabled && this._map._zoom > this._map.getMinZoom() && this._map.zoomOut(this._map.options.zoomDelta * (t.shiftKey ? 3 : 1));
2609
2609
  },
2610
2610
  _createButton: function(t, e, i, o, l) {
2611
- var u = F("a", i, o);
2611
+ var u = H("a", i, o);
2612
2612
  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;
2613
2613
  },
2614
2614
  _updateDisabled: function() {
@@ -2641,14 +2641,14 @@ function ro() {
2641
2641
  // If `true`, the control is updated on [`moveend`](#map-moveend), otherwise it's always up-to-date (updated on [`move`](#map-move)).
2642
2642
  },
2643
2643
  onAdd: function(t) {
2644
- var e = "leaflet-control-scale", i = F("div", e), o = this.options;
2644
+ var e = "leaflet-control-scale", i = H("div", e), o = this.options;
2645
2645
  return this._addScales(o, e + "-line", i), t.on(o.updateWhenIdle ? "moveend" : "move", this._update, this), t.whenReady(this._update, this), i;
2646
2646
  },
2647
2647
  onRemove: function(t) {
2648
2648
  t.off(this.options.updateWhenIdle ? "moveend" : "move", this._update, this);
2649
2649
  },
2650
2650
  _addScales: function(t, e, i) {
2651
- t.metric && (this._mScale = F("div", e, i)), t.imperial && (this._iScale = F("div", e, i));
2651
+ t.metric && (this._mScale = H("div", e, i)), t.imperial && (this._iScale = H("div", e, i));
2652
2652
  },
2653
2653
  _update: function() {
2654
2654
  var t = this._map, e = t.getSize().y / 2, i = t.distance(
@@ -2690,7 +2690,7 @@ function ro() {
2690
2690
  A(this, t), this._attributions = {};
2691
2691
  },
2692
2692
  onAdd: function(t) {
2693
- t.attributionControl = this, this._container = F("div", "leaflet-control-attribution"), re(this._container);
2693
+ t.attributionControl = this, this._container = H("div", "leaflet-control-attribution"), re(this._container);
2694
2694
  for (var e in t._layers)
2695
2695
  t._layers[e].getAttribution && this.addAttribution(t._layers[e].getAttribution());
2696
2696
  return this._update(), t.on("layeradd", this._addAttribution, this), this._container;
@@ -2832,12 +2832,12 @@ function ro() {
2832
2832
  }
2833
2833
  });
2834
2834
  function _n(t, e, i) {
2835
- var o, l = [1, 4, 2, 8], u, p, v, y, b, M, C, R;
2835
+ var o, l = [1, 4, 2, 8], u, p, v, y, b, M, S, R;
2836
2836
  for (u = 0, M = t.length; u < M; u++)
2837
2837
  t[u]._code = Bt(t[u], e);
2838
2838
  for (v = 0; v < 4; v++) {
2839
- for (C = l[v], o = [], u = 0, M = t.length, p = M - 1; u < M; p = u++)
2840
- y = t[u], 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));
2839
+ for (S = l[v], o = [], u = 0, M = t.length, p = M - 1; u < M; p = u++)
2840
+ 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));
2841
2841
  t = o;
2842
2842
  }
2843
2843
  return t;
@@ -2847,18 +2847,18 @@ function ro() {
2847
2847
  if (!t || t.length === 0)
2848
2848
  throw new Error("latlngs not passed");
2849
2849
  pt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
2850
- var C = U([0, 0]), R = X(t), st = R.getNorthWest().distanceTo(R.getSouthWest()) * R.getNorthEast().distanceTo(R.getNorthWest());
2851
- st < 1700 && (C = mi(t));
2850
+ var S = U([0, 0]), R = X(t), st = R.getNorthWest().distanceTo(R.getSouthWest()) * R.getNorthEast().distanceTo(R.getNorthWest());
2851
+ st < 1700 && (S = mi(t));
2852
2852
  var et = t.length, mt = [];
2853
2853
  for (i = 0; i < et; i++) {
2854
2854
  var ct = U(t[i]);
2855
- mt.push(e.project(U([ct.lat - C.lat, ct.lng - C.lng])));
2855
+ mt.push(e.project(U([ct.lat - S.lat, ct.lng - S.lng])));
2856
2856
  }
2857
2857
  for (v = y = b = 0, i = 0, o = et - 1; i < et; o = i++)
2858
2858
  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;
2859
2859
  v === 0 ? M = mt[0] : M = [y / v, b / v];
2860
2860
  var qt = e.unproject(I(M));
2861
- return U([qt.lat + C.lat, qt.lng + C.lng]);
2861
+ return U([qt.lat + S.lat, qt.lng + S.lng]);
2862
2862
  }
2863
2863
  function mi(t) {
2864
2864
  for (var e = 0, i = 0, o = 0, l = 0; l < t.length; l++) {
@@ -2942,7 +2942,7 @@ function ro() {
2942
2942
  if (!t || t.length === 0)
2943
2943
  throw new Error("latlngs not passed");
2944
2944
  pt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
2945
- var M = U([0, 0]), C = X(t), R = C.getNorthWest().distanceTo(C.getSouthWest()) * C.getNorthEast().distanceTo(C.getNorthWest());
2945
+ var M = U([0, 0]), S = X(t), R = S.getNorthWest().distanceTo(S.getSouthWest()) * S.getNorthEast().distanceTo(S.getNorthWest());
2946
2946
  R < 1700 && (M = mi(t));
2947
2947
  var st = t.length, et = [];
2948
2948
  for (i = 0; i < st; i++) {
@@ -3380,7 +3380,7 @@ function ro() {
3380
3380
  return t = e(t, /^url\((['"])?(.+)\1\)$/, 2), t && e(t, /^(.*)marker-icon\.png$/, 1);
3381
3381
  },
3382
3382
  _detectIconPath: function() {
3383
- var t = F("div", "leaflet-default-icon-path", document.body), e = ee(t, "background-image") || ee(t, "backgroundImage");
3383
+ var t = H("div", "leaflet-default-icon-path", document.body), e = ee(t, "background-image") || ee(t, "backgroundImage");
3384
3384
  if (document.body.removeChild(t), e = this._stripUrl(e), e)
3385
3385
  return e;
3386
3386
  var i = document.querySelector('link[href$="leaflet.css"]');
@@ -3803,8 +3803,8 @@ function ro() {
3803
3803
  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, M = Math.acos((Math.cos(u * l) - Math.sin(e * l) * Math.sin(b * l)) / (Math.cos(e * l) * Math.cos(b * l))) / l;
3804
3804
  (isNaN(M) || M === 0) && (M = u / Math.cos(Math.PI / 180 * e)), this._point = y.subtract(i.getPixelOrigin()), this._radius = isNaN(M) ? 0 : y.x - i.project([b, t - M]).x, this._radiusY = y.y - p.y;
3805
3805
  } else {
3806
- var C = o.unproject(o.project(this._latlng).subtract([this._mRadius, 0]));
3807
- this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(C).x;
3806
+ var S = o.unproject(o.project(this._latlng).subtract([this._mRadius, 0]));
3807
+ this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(S).x;
3808
3808
  }
3809
3809
  this._updateBounds();
3810
3810
  }
@@ -3848,8 +3848,8 @@ function ro() {
3848
3848
  for (var e = 1 / 0, i = null, o = ae, l, u, p = 0, v = this._parts.length; p < v; p++)
3849
3849
  for (var y = this._parts[p], b = 1, M = y.length; b < M; b++) {
3850
3850
  l = y[b - 1], u = y[b];
3851
- var C = o(t, l, u, !0);
3852
- C < e && (e = C, i = o(t, l, u));
3851
+ var S = o(t, l, u, !0);
3852
+ S < e && (e = S, i = o(t, l, u));
3853
3853
  }
3854
3854
  return i && (i.distance = Math.sqrt(e)), i;
3855
3855
  },
@@ -4103,12 +4103,12 @@ function ro() {
4103
4103
  return y = Pe(o, i.type === "Polygon" ? 1 : 2, p), new Vt(y, e);
4104
4104
  case "GeometryCollection":
4105
4105
  for (b = 0, M = i.geometries.length; b < M; b++) {
4106
- var C = Ee({
4106
+ var S = Ee({
4107
4107
  geometry: i.geometries[b],
4108
4108
  type: "Feature",
4109
4109
  properties: t.properties
4110
4110
  }, e);
4111
- C && l.push(C);
4111
+ S && l.push(S);
4112
4112
  }
4113
4113
  return new kt(l);
4114
4114
  case "FeatureCollection":
@@ -4303,7 +4303,7 @@ function ro() {
4303
4303
  return this._image;
4304
4304
  },
4305
4305
  _initImage: function() {
4306
- var t = this._url.tagName === "IMG", e = this._image = t ? this._url : F("img");
4306
+ var t = this._url.tagName === "IMG", e = this._image = t ? this._url : H("img");
4307
4307
  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) {
4308
4308
  this._url = e.src;
4309
4309
  return;
@@ -4362,7 +4362,7 @@ function ro() {
4362
4362
  playsInline: !0
4363
4363
  },
4364
4364
  _initImage: function() {
4365
- var t = this._url.tagName === "VIDEO", e = this._image = t ? this._url : F("video");
4365
+ var t = this._url.tagName === "VIDEO", e = this._image = t ? this._url : H("video");
4366
4366
  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) {
4367
4367
  for (var i = e.getElementsByTagName("source"), o = [], l = 0; l < i.length; l++)
4368
4368
  o.push(i[l].src);
@@ -4371,7 +4371,7 @@ function ro() {
4371
4371
  }
4372
4372
  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;
4373
4373
  for (var u = 0; u < this._url.length; u++) {
4374
- var p = F("source");
4374
+ var p = H("source");
4375
4375
  p.src = this._url[u], e.appendChild(p);
4376
4376
  }
4377
4377
  }
@@ -4639,12 +4639,12 @@ function ro() {
4639
4639
  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;
4640
4640
  },
4641
4641
  _initLayout: function() {
4642
- var t = "leaflet-popup", e = this._container = F(
4642
+ var t = "leaflet-popup", e = this._container = H(
4643
4643
  "div",
4644
4644
  t + " " + (this.options.className || "") + " leaflet-zoom-animated"
4645
- ), i = this._wrapper = F("div", t + "-content-wrapper", e);
4646
- if (this._contentNode = F("div", t + "-content", i), re(e), di(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) {
4647
- var o = this._closeButton = F("a", t + "-close-button", e);
4645
+ ), i = this._wrapper = H("div", t + "-content-wrapper", e);
4646
+ if (this._contentNode = H("div", t + "-content", i), re(e), di(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) {
4647
+ var o = this._closeButton = H("a", t + "-close-button", e);
4648
4648
  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) {
4649
4649
  it(l), this.close();
4650
4650
  }, this);
@@ -4670,8 +4670,8 @@ function ro() {
4670
4670
  }
4671
4671
  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);
4672
4672
  l._add(It(this._container));
4673
- 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(), M = 0, C = 0;
4674
- u.x + o + y.x > b.x && (M = u.x + o - b.x + y.x), u.x - M - v.x < 0 && (M = u.x - v.x), u.y + i + y.y > b.y && (C = u.y + i - b.y + y.y), u.y - C - v.y < 0 && (C = u.y - v.y), (M || C) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([M, C]));
4673
+ 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(), M = 0, S = 0;
4674
+ u.x + o + y.x > b.x && (M = u.x + o - b.x + y.x), u.x - M - v.x < 0 && (M = 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), (M || S) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([M, S]));
4675
4675
  }
4676
4676
  },
4677
4677
  _getAnchor: function() {
@@ -4805,15 +4805,15 @@ function ro() {
4805
4805
  },
4806
4806
  _initLayout: function() {
4807
4807
  var t = "leaflet-tooltip", e = t + " " + (this.options.className || "") + " leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide");
4808
- this._contentNode = this._container = F("div", e), this._container.setAttribute("role", "tooltip"), this._container.setAttribute("id", "leaflet-tooltip-" + f(this));
4808
+ this._contentNode = this._container = H("div", e), this._container.setAttribute("role", "tooltip"), this._container.setAttribute("id", "leaflet-tooltip-" + f(this));
4809
4809
  },
4810
4810
  _updateLayout: function() {
4811
4811
  },
4812
4812
  _adjustPan: function() {
4813
4813
  },
4814
4814
  _setPosition: function(t) {
4815
- 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, M = I(this.options.offset), C = this._getAnchor();
4816
- 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 + (M.x + C.x) * 2, i = b / 2), t = t.subtract(I(e, i, !0)).add(M).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);
4815
+ 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, M = I(this.options.offset), S = this._getAnchor();
4816
+ 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 + (M.x + S.x) * 2, i = b / 2), t = t.subtract(I(e, i, !0)).add(M).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);
4817
4817
  },
4818
4818
  _updatePosition: function() {
4819
4819
  var t = this._map.latLngToLayerPoint(this._latlng);
@@ -5125,7 +5125,7 @@ function ro() {
5125
5125
  },
5126
5126
  _onOpaqueTile: w,
5127
5127
  _initContainer: function() {
5128
- this._container || (this._container = F("div", "leaflet-layer " + (this.options.className || "")), this._updateZIndex(), this.options.opacity < 1 && this._updateOpacity(), this.getPane().appendChild(this._container));
5128
+ this._container || (this._container = H("div", "leaflet-layer " + (this.options.className || "")), this._updateZIndex(), this.options.opacity < 1 && this._updateOpacity(), this.getPane().appendChild(this._container));
5129
5129
  },
5130
5130
  _updateLevels: function() {
5131
5131
  var t = this._tileZoom, e = this.options.maxZoom;
@@ -5133,7 +5133,7 @@ function ro() {
5133
5133
  for (var i in this._levels)
5134
5134
  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]);
5135
5135
  var o = this._levels[t], l = this._map;
5136
- 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;
5136
+ 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;
5137
5137
  }
5138
5138
  },
5139
5139
  _onUpdateLevel: w,
@@ -5251,9 +5251,9 @@ function ro() {
5251
5251
  this._setView(t, i);
5252
5252
  return;
5253
5253
  }
5254
- for (var C = l.min.y; C <= l.max.y; C++)
5254
+ for (var S = l.min.y; S <= l.max.y; S++)
5255
5255
  for (var R = l.min.x; R <= l.max.x; R++) {
5256
- var st = new z(R, C);
5256
+ var st = new z(R, S);
5257
5257
  if (st.z = this._tileZoom, !!this._isValidTile(st)) {
5258
5258
  var et = this._tiles[this._tileCoordsToKey(st)];
5259
5259
  et ? et.current = !0 : p.push(st);
@@ -5443,7 +5443,7 @@ function ro() {
5443
5443
  var i = this._globalTileRange.max.y - t.y;
5444
5444
  this.options.tms && (e.y = i), e["-y"] = i;
5445
5445
  }
5446
- return S(this._url, n(e, this.options));
5446
+ return C(this._url, n(e, this.options));
5447
5447
  },
5448
5448
  _tileOnLoad: function(t, e) {
5449
5449
  T.ielt9 ? setTimeout(a(t, this, null, e), 0) : t(null, e);
@@ -5804,7 +5804,7 @@ function ro() {
5804
5804
  };
5805
5805
  })(), Ar = {
5806
5806
  _initContainer: function() {
5807
- this._container = F("div", "leaflet-vml-container");
5807
+ this._container = H("div", "leaflet-vml-container");
5808
5808
  },
5809
5809
  _update: function() {
5810
5810
  this._map._animatingZoom || (Et.prototype._update.call(this), this.fire("update"));
@@ -5971,7 +5971,7 @@ function ro() {
5971
5971
  }, this);
5972
5972
  },
5973
5973
  _onMouseMove: function(t) {
5974
- 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);
5974
+ 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);
5975
5975
  var e = new j(this._point, this._startPoint), i = e.getSize();
5976
5976
  Q(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
5977
5977
  },
@@ -6119,10 +6119,10 @@ function ro() {
6119
6119
  e.fire("moveend");
6120
6120
  else {
6121
6121
  this._prunePositions(+/* @__PURE__ */ new Date());
6122
- 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), M = v.multiplyBy(b / y), C = b / (i.inertiaDeceleration * p), R = M.multiplyBy(-C / 2).round();
6122
+ 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), M = v.multiplyBy(b / y), S = b / (i.inertiaDeceleration * p), R = M.multiplyBy(-S / 2).round();
6123
6123
  !R.x && !R.y ? e.fire("moveend") : (R = e._limitOffset(R, e.options.maxBounds), ot(function() {
6124
6124
  e.panBy(R, {
6125
- duration: C,
6125
+ duration: S,
6126
6126
  easeLinearity: p,
6127
6127
  noMoveStart: !0,
6128
6128
  animate: !0
@@ -8248,28 +8248,28 @@ class Ds {
8248
8248
  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();
8249
8249
  }
8250
8250
  installEditEventBridges() {
8251
- var g, w, x, E, P, A, N, H;
8252
- const h = Ne, s = (w = (g = h == null ? void 0 : h.Draw) == null ? void 0 : g.Event) == null ? void 0 : w.EDITMOVE, c = (E = (x = h == null ? void 0 : h.Draw) == null ? void 0 : x.Event) == null ? void 0 : E.EDITRESIZE, n = (A = (P = h == null ? void 0 : h.Draw) == null ? void 0 : P.Event) == null ? void 0 : A.EDITSTART, r = (H = (N = h == null ? void 0 : h.Draw) == null ? void 0 : N.Event) == null ? void 0 : H.EDITSTOP;
8251
+ var g, w, x, E, P, A, N, F;
8252
+ const h = Ne, s = (w = (g = h == null ? void 0 : h.Draw) == null ? void 0 : g.Event) == null ? void 0 : w.EDITMOVE, c = (E = (x = h == null ? void 0 : h.Draw) == null ? void 0 : x.Event) == null ? void 0 : E.EDITRESIZE, n = (A = (P = h == null ? void 0 : h.Draw) == null ? void 0 : P.Event) == null ? void 0 : A.EDITSTART, r = (F = (N = h == null ? void 0 : h.Draw) == null ? void 0 : N.Event) == null ? void 0 : F.EDITSTOP;
8253
8253
  if (!s || !c) return;
8254
- const a = (S) => {
8255
- const D = S == null ? void 0 : S.layer;
8254
+ const a = (C) => {
8255
+ const D = C == null ? void 0 : C.layer;
8256
8256
  D && this.layers.includes(D) && this.syncCenters(D);
8257
- }, d = (S) => {
8258
- const D = S == null ? void 0 : S.layer;
8257
+ }, d = (C) => {
8258
+ const D = C == null ? void 0 : C.layer;
8259
8259
  D && this.layers.includes(D) && (this.updateLabels(D), this.requestRenderControls());
8260
- }, f = (S) => {
8260
+ }, f = (C) => {
8261
8261
  var q;
8262
- const D = S == null ? void 0 : S.layer;
8262
+ const D = C == null ? void 0 : C.layer;
8263
8263
  if (!D || !this.layers.includes(D)) return;
8264
8264
  const G = D;
8265
8265
  ((q = G.getTooltip) == null ? void 0 : q.call(G)) && this.updateLabels(G);
8266
8266
  }, _ = () => {
8267
- this.layers.forEach((S) => {
8267
+ this.layers.forEach((C) => {
8268
8268
  var G;
8269
- const D = (G = S.getTooltip) == null ? void 0 : G.call(S);
8270
- D && (S.setTooltipContent(
8271
- fe(S.getRadius(), this.measurementSystem)
8272
- ), D.options.offset = [10, 0], D.options.direction = "right", S.closeTooltip(), S.openTooltip());
8269
+ const D = (G = C.getTooltip) == null ? void 0 : G.call(C);
8270
+ D && (C.setTooltipContent(
8271
+ fe(C.getRadius(), this.measurementSystem)
8272
+ ), D.options.offset = [10, 0], D.options.direction = "right", C.closeTooltip(), C.openTooltip());
8273
8273
  });
8274
8274
  };
8275
8275
  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));
@@ -8462,23 +8462,23 @@ function Us(m, h, s, c) {
8462
8462
  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);
8463
8463
  let E = a, P = 0, A = 0;
8464
8464
  const N = 200;
8465
- let H = 0, S = 0, D = 0, G = 0, Y = 0;
8465
+ let F = 0, C = 0, D = 0, G = 0, Y = 0;
8466
8466
  for (; Math.abs(E - P) > 1e-12 && A < N; ) {
8467
8467
  const rt = Math.sin(E), _e = Math.cos(E);
8468
- if (H = Math.sqrt(
8468
+ if (F = Math.sqrt(
8469
8469
  (x * rt) ** 2 + (g * w - _ * x * _e) ** 2
8470
- ), H === 0)
8470
+ ), F === 0)
8471
8471
  return {
8472
8472
  distanceMeters: 0,
8473
8473
  bearingRad: 0,
8474
8474
  iterations: A,
8475
8475
  converged: !0
8476
8476
  };
8477
- S = _ * w + g * x * _e, D = Math.atan2(H, S);
8478
- const ut = g * x * rt / H;
8479
- G = 1 - ut ** 2, Y = G === 0 ? 0 : S - 2 * _ * w / G;
8477
+ C = _ * w + g * x * _e, D = Math.atan2(F, C);
8478
+ const ut = g * x * rt / F;
8479
+ G = 1 - ut ** 2, Y = G === 0 ? 0 : C - 2 * _ * w / G;
8480
8480
  const Kt = Rt / 16 * G * (4 + Rt * (4 - 3 * G));
8481
- P = E, E = a + (1 - Kt) * Rt * ut * (D + Kt * H * (Y + Kt * S * (-1 + 2 * Y ** 2))), A += 1;
8481
+ P = E, E = a + (1 - Kt) * Rt * ut * (D + Kt * F * (Y + Kt * C * (-1 + 2 * Y ** 2))), A += 1;
8482
8482
  }
8483
8483
  if (A >= N)
8484
8484
  return {
@@ -8487,7 +8487,7 @@ function Us(m, h, s, c) {
8487
8487
  iterations: A,
8488
8488
  converged: !1
8489
8489
  };
8490
- const q = (ho ** 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))), Nt = _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 - Nt), ot = Math.atan2(
8490
+ const q = (ho ** 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))), Nt = _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 - Nt), ot = Math.atan2(
8491
8491
  x * Math.sin(E),
8492
8492
  g * w - _ * x * Math.cos(E)
8493
8493
  );
@@ -8504,7 +8504,7 @@ function Zs(m, h, s, c) {
8504
8504
  ), P = _ * w + g * x * Math.cos(a), A = Math.atan2(E, P);
8505
8505
  if (A === 0)
8506
8506
  return { distanceMeters: 0, bearingRad: 0 };
8507
- const H = 1 - (g * x * Math.sin(a) / Math.sin(A)) ** 2, S = H === 0 ? 0 : P - 2 * _ * w / H, D = (ho ** 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 * E * (S + Y / 4 * (P * (-1 + 2 * S ** 2) - Y / 6 * S * (-3 + 4 * E ** 2) * (-3 + 4 * S ** 2))), at = jt * G * (A - q), _t = Math.atan2(
8507
+ const F = 1 - (g * x * Math.sin(a) / Math.sin(A)) ** 2, C = F === 0 ? 0 : P - 2 * _ * w / F, D = (ho ** 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 * E * (C + Y / 4 * (P * (-1 + 2 * C ** 2) - Y / 6 * C * (-3 + 4 * E ** 2) * (-3 + 4 * C ** 2))), at = jt * G * (A - q), _t = Math.atan2(
8508
8508
  x * Math.sin(a),
8509
8509
  g * w - _ * x * Math.cos(a)
8510
8510
  );
@@ -8557,7 +8557,14 @@ function Mi(m, h = {}) {
8557
8557
  ), n;
8558
8558
  }
8559
8559
  let eo = !1;
8560
- class Ys {
8560
+ const Ys = {
8561
+ polygon: "tool:polygon:created",
8562
+ polyline: "tool:polyline:created",
8563
+ rectangle: "tool:rectangle:created",
8564
+ circle: "tool:circle:created",
8565
+ marker: "tool:marker:created"
8566
+ };
8567
+ class qs {
8561
8568
  constructor(h) {
8562
8569
  k(this, "container");
8563
8570
  k(this, "logger");
@@ -8598,6 +8605,32 @@ class Ys {
8598
8605
  useExternalLeaflet: h.useExternalLeaflet
8599
8606
  }), bs(this.L), xs(this.L), ws(this.L);
8600
8607
  }
8608
+ emitToolEvent(h, s) {
8609
+ var n, r;
8610
+ try {
8611
+ (r = (n = this.options.toolHooks) == null ? void 0 : n[h]) == null || r.call(n, s);
8612
+ } catch (a) {
8613
+ this._error(`tool hook failed: ${h}`, a);
8614
+ }
8615
+ const c = this.options.toolEventEmitter;
8616
+ if (c)
8617
+ try {
8618
+ if (typeof c.emit == "function") {
8619
+ c.emit(h, s);
8620
+ return;
8621
+ }
8622
+ typeof c.dispatchEvent == "function" && c.dispatchEvent(
8623
+ new CustomEvent(h, {
8624
+ detail: s
8625
+ })
8626
+ );
8627
+ } catch (a) {
8628
+ this._error(`tool emitter failed: ${h}`, a);
8629
+ }
8630
+ }
8631
+ setToolObservers(h) {
8632
+ this.options.toolHooks = h.toolHooks, this.options.toolEventEmitter = h.toolEventEmitter;
8633
+ }
8601
8634
  resolveLeaflet(h) {
8602
8635
  if (!h.useExternalLeaflet)
8603
8636
  return Ne;
@@ -8625,24 +8658,24 @@ class Ys {
8625
8658
  preferCanvas: A = !0,
8626
8659
  // Default to Canvas rendering for better performance
8627
8660
  useExternalLeaflet: N
8628
- } = this.options.map, H = [f, _], S = this.L;
8629
- N && Mi(S, {
8661
+ } = this.options.map, F = [f, _], C = this.L;
8662
+ N && Mi(C, {
8630
8663
  onError: (at) => this.logger.warn("external-leaflet-missing-draw", { message: at })
8631
- }), this.map = S.map(this.container, {
8664
+ }), this.map = C.map(this.container, {
8632
8665
  zoomControl: !0,
8633
8666
  preferCanvas: A
8634
- }).setView(H, g), this.setTileLayer({
8667
+ }).setView(F, g), this.setTileLayer({
8635
8668
  urlTemplate: E,
8636
8669
  attribution: P != null ? P : "",
8637
8670
  maxZoom: x
8638
- }), this.drawnItems = S.featureGroup().addTo(this.map);
8671
+ }), this.drawnItems = C.featureGroup().addTo(this.map);
8639
8672
  const D = this.buildDrawOptions(
8640
8673
  this.options.controls,
8641
8674
  !!this.options.readOnly
8642
- ), G = S.Control.Draw;
8675
+ ), G = C.Control.Draw;
8643
8676
  this.drawControl = new G(D), this.map.addControl(this.drawControl), this.applyLayerCakeToolbarIcon(), this.applyMoveToolbarIcon(), this.options.controls.ruler && (this.logger.debug("init:ruler", {
8644
- available: typeof S.control.ruler == "function"
8645
- }), typeof S.control.ruler == "function" ? (this.addRulerControl(), this.installMeasurementSettingsControl()) : this.logger.warn("init:ruler:missing", {
8677
+ available: typeof C.control.ruler == "function"
8678
+ }), typeof C.control.ruler == "function" ? (this.addRulerControl(), this.installMeasurementSettingsControl()) : this.logger.warn("init:ruler:missing", {
8646
8679
  msg: "L.control.ruler is not defined"
8647
8680
  })), this.patchLeafletDrawBugs(), this.installPolygonFinishPatch(), this.map.invalidateSize(), setTimeout(() => {
8648
8681
  var at;
@@ -8819,7 +8852,12 @@ class Ys {
8819
8852
  return a || null;
8820
8853
  }
8821
8854
  setRulerUnits(h) {
8822
- this.measurementSystem !== h && (this.measurementSystem = h, this.logger.debug("ruler:units", { system: h }), this.syncMeasurementModalState(), this.rebuildRulerControl());
8855
+ if (this.measurementSystem === h) return;
8856
+ const s = this.measurementSystem;
8857
+ this.measurementSystem = h, this.logger.debug("ruler:units", { system: h }), this.emitToolEvent("tool:ruler:units-changed", {
8858
+ previous: s,
8859
+ current: h
8860
+ }), this.syncMeasurementModalState(), this.rebuildRulerControl();
8823
8861
  }
8824
8862
  // ---------------- Internals ----------------
8825
8863
  buildDrawOptions(h, s) {
@@ -9050,7 +9088,7 @@ class Ys {
9050
9088
  const h = this.map, s = (f = (d = this.drawControl) == null ? void 0 : d._toolbars) == null ? void 0 : f.draw;
9051
9089
  if (!s || !!!((g = (_ = s._modes) == null ? void 0 : _.polygon) != null && g.handler)) return;
9052
9090
  const n = 10, r = (w) => {
9053
- var x, E, P, A, N, H, S, D;
9091
+ var x, E, P, A, N, F, C, D;
9054
9092
  try {
9055
9093
  const G = (E = (x = s._modes) == null ? void 0 : x.polygon) == null ? void 0 : E.handler;
9056
9094
  if (!G || !G._enabled) return;
@@ -9059,7 +9097,7 @@ class Ys {
9059
9097
  const q = (A = (P = Y[0]) == null ? void 0 : P.getLatLng) == null ? void 0 : A.call(P);
9060
9098
  if (!q) return;
9061
9099
  const at = h.latLngToContainerPoint(q), _t = h.latLngToContainerPoint(w.latlng);
9062
- Math.hypot(at.x - _t.x, at.y - _t.y) <= n && typeof G._finishShape == "function" && ((H = (N = w.originalEvent) == null ? void 0 : N.preventDefault) == null || H.call(N), (D = (S = w.originalEvent) == null ? void 0 : S.stopPropagation) == null || D.call(S), G._finishShape());
9100
+ Math.hypot(at.x - _t.x, at.y - _t.y) <= n && typeof G._finishShape == "function" && ((F = (N = w.originalEvent) == null ? void 0 : N.preventDefault) == null || F.call(N), (D = (C = w.originalEvent) == null ? void 0 : C.stopPropagation) == null || D.call(C), G._finishShape());
9063
9101
  } catch (G) {
9064
9102
  this._error("polygon-finish-patch", G);
9065
9103
  }
@@ -9092,8 +9130,8 @@ class Ys {
9092
9130
  let P;
9093
9131
  if (w) {
9094
9132
  let N = ["ha", "m"];
9095
- const H = typeof w;
9096
- H === "string" ? N = [w] : H !== "boolean" && (N = Array.isArray(w) ? w : N), g >= 1e6 && N.indexOf("km") !== -1 ? P = `${_(1e-6 * g, E.km)} km²` : g >= 1e4 && N.indexOf("ha") !== -1 ? P = `${_(1e-4 * g, E.ha)} ha` : P = `${_(g, E.m)} m²`;
9133
+ const F = typeof w;
9134
+ F === "string" ? N = [w] : F !== "boolean" && (N = Array.isArray(w) ? w : N), g >= 1e6 && N.indexOf("km") !== -1 ? P = `${_(1e-6 * g, E.km)} km²` : g >= 1e4 && N.indexOf("ha") !== -1 ? P = `${_(1e-4 * g, E.ha)} ha` : P = `${_(g, E.m)} m²`;
9097
9135
  } else
9098
9136
  g = g / 0.836127, g >= 3097600 ? P = `${_(g / 3097600, E.mi)} mi²` : g >= 4840 ? P = `${_(g / 4840, E.ac)} acres` : P = `${_(g, E.yd)} yd²`;
9099
9137
  return P;
@@ -9139,22 +9177,27 @@ class Ys {
9139
9177
  this.activeCakeSession = new Ds(
9140
9178
  this.map,
9141
9179
  r,
9142
- (g) => {
9180
+ (w) => {
9143
9181
  if (!this.drawnItems) return;
9144
- const w = this.store.add(g), x = this.L.geoJSON(g);
9145
- let E = 0;
9146
- x.eachLayer((P) => {
9147
- var N, H, S;
9148
- const A = (N = w[E]) != null ? N : w[w.length - 1];
9149
- P._fid = A, this.drawnItems.addLayer(P), this.installVertexContextMenu(P), (S = (H = this.options.callbacks) == null ? void 0 : H.onCreated) == null || S.call(H, {
9150
- id: A,
9182
+ const x = this.store.add(w), E = this.L.geoJSON(w);
9183
+ let P = 0;
9184
+ E.eachLayer((A) => {
9185
+ var F, C, D;
9186
+ const N = (F = x[P]) != null ? F : x[x.length - 1];
9187
+ A._fid = N, this.drawnItems.addLayer(A), this.installVertexContextMenu(A), (D = (C = this.options.callbacks) == null ? void 0 : C.onCreated) == null || D.call(C, {
9188
+ id: N,
9151
9189
  layerType: "polygon",
9152
- geoJSON: P.toGeoJSON()
9153
- }), E++;
9154
- }), this.activeCakeSession = null;
9190
+ geoJSON: A.toGeoJSON()
9191
+ }), P++;
9192
+ }), this.activeCakeSession = null, this.emitToolEvent("tool:layer-cake:saved", {
9193
+ featureCollection: w
9194
+ });
9155
9195
  },
9156
9196
  this.measurementSystem
9157
- );
9197
+ ), this.emitToolEvent("tool:layer-cake:session-started", {
9198
+ center: r.getLatLng(),
9199
+ radius: r.getRadius()
9200
+ });
9158
9201
  return;
9159
9202
  }
9160
9203
  this.drawnItems.addLayer(r);
@@ -9163,6 +9206,11 @@ class Ys {
9163
9206
  features: [d]
9164
9207
  })[0];
9165
9208
  r._fid = _, this.installVertexContextMenu(r), (n = (c = this.options.callbacks) == null ? void 0 : c.onCreated) == null || n.call(c, { id: _, layerType: a, geoJSON: d });
9209
+ const g = Ys[a];
9210
+ g && this.emitToolEvent(g, {
9211
+ id: _,
9212
+ geoJSON: d
9213
+ });
9166
9214
  } catch (r) {
9167
9215
  this._error("onCreated handler failed", r);
9168
9216
  }
@@ -9170,20 +9218,25 @@ class Ys {
9170
9218
  var s, c;
9171
9219
  try {
9172
9220
  const n = [];
9173
- h.layers.eachLayer((a) => {
9174
- const d = a.toGeoJSON(), f = a._fid;
9175
- if (f)
9176
- this.store.update(f, d), n.push(f);
9221
+ h.layers.eachLayer((d) => {
9222
+ const f = d.toGeoJSON(), _ = d._fid;
9223
+ if (_)
9224
+ this.store.update(_, f), n.push(_);
9177
9225
  else {
9178
- const _ = this.store.add({
9226
+ const g = this.store.add({
9179
9227
  type: "FeatureCollection",
9180
- features: [d]
9228
+ features: [f]
9181
9229
  })[0];
9182
- a._fid = _, n.push(_);
9230
+ d._fid = g, n.push(g);
9183
9231
  }
9184
- }), (c = (s = this.options.callbacks) == null ? void 0 : s.onEdited) == null || c.call(s, {
9232
+ });
9233
+ const a = this.store.toFeatureCollection();
9234
+ (c = (s = this.options.callbacks) == null ? void 0 : s.onEdited) == null || c.call(s, {
9185
9235
  ids: n,
9186
- geoJSON: this.store.toFeatureCollection()
9236
+ geoJSON: a
9237
+ }), this.emitToolEvent("tool:edit:applied", {
9238
+ ids: n,
9239
+ geoJSON: a
9187
9240
  });
9188
9241
  } catch (n) {
9189
9242
  this._error("onEdited handler failed", n);
@@ -9192,36 +9245,51 @@ class Ys {
9192
9245
  var s, c;
9193
9246
  try {
9194
9247
  const n = [];
9195
- h.layers.eachLayer((a) => {
9196
- const d = a._fid;
9197
- d && (n.push(d), this.store.remove(d));
9198
- }), (c = (s = this.options.callbacks) == null ? void 0 : s.onDeleted) == null || c.call(s, {
9248
+ h.layers.eachLayer((d) => {
9249
+ const f = d._fid;
9250
+ f && (n.push(f), this.store.remove(f));
9251
+ });
9252
+ const a = this.store.toFeatureCollection();
9253
+ (c = (s = this.options.callbacks) == null ? void 0 : s.onDeleted) == null || c.call(s, {
9199
9254
  ids: n,
9200
- geoJSON: this.store.toFeatureCollection()
9255
+ geoJSON: a
9256
+ }), this.emitToolEvent("tool:delete:applied", {
9257
+ ids: n,
9258
+ geoJSON: a
9201
9259
  });
9202
9260
  } catch (n) {
9203
9261
  this._error("onDeleted handler failed", n);
9204
9262
  }
9205
9263
  }), this.map.on("draw:moveend", (h) => {
9264
+ var s;
9206
9265
  try {
9207
- this.showMoveConfirmationUI(h.layer, h.originalGeoJSON, h.newGeoJSON);
9208
- } catch (s) {
9209
- this._error("draw:moveend handler failed", s);
9266
+ this.emitToolEvent("tool:move:pending", {
9267
+ layerId: (s = h == null ? void 0 : h.layer) == null ? void 0 : s._fid,
9268
+ originalGeoJSON: h == null ? void 0 : h.originalGeoJSON,
9269
+ newGeoJSON: h == null ? void 0 : h.newGeoJSON
9270
+ }), this.showMoveConfirmationUI(h.layer);
9271
+ } catch (c) {
9272
+ this._error("draw:moveend handler failed", c);
9210
9273
  }
9211
9274
  }), this.map.on("draw:moveconfirmed", (h) => {
9212
- var s, c;
9275
+ var s, c, n;
9213
9276
  try {
9214
- const n = h.layer, r = n._fid;
9215
- if (r) {
9216
- const a = n.toGeoJSON();
9217
- this.store.update(r, a), (c = (s = this.options.callbacks) == null ? void 0 : s.onEdited) == null || c.call(s, {
9218
- ids: [r],
9277
+ this.emitToolEvent("tool:move:confirmed", {
9278
+ layerId: (s = h == null ? void 0 : h.layer) == null ? void 0 : s._fid,
9279
+ originalGeoJSON: h == null ? void 0 : h.originalGeoJSON,
9280
+ newGeoJSON: h == null ? void 0 : h.newGeoJSON
9281
+ });
9282
+ const r = h.layer, a = r._fid;
9283
+ if (a) {
9284
+ const d = r.toGeoJSON();
9285
+ this.store.update(a, d), (n = (c = this.options.callbacks) == null ? void 0 : c.onEdited) == null || n.call(c, {
9286
+ ids: [a],
9219
9287
  geoJSON: this.store.toFeatureCollection()
9220
9288
  });
9221
9289
  }
9222
9290
  this.hideMoveConfirmationUI();
9223
- } catch (n) {
9224
- this._error("draw:moveconfirmed handler failed", n);
9291
+ } catch (r) {
9292
+ this._error("draw:moveconfirmed handler failed", r);
9225
9293
  }
9226
9294
  }));
9227
9295
  }
@@ -9303,8 +9371,8 @@ class Ys {
9303
9371
  const g = h.getLatLngs();
9304
9372
  return (Array.isArray(g[0]) ? g : [g]).forEach((x, E) => {
9305
9373
  x.forEach((P, A) => {
9306
- const N = n(P), H = r(N, a);
9307
- H < d && (d = H, f = E, _ = A);
9374
+ const N = n(P), F = r(N, a);
9375
+ F < d && (d = F, f = E, _ = A);
9308
9376
  });
9309
9377
  }), f === -1 || d > c ? null : { pathIndex: f, vertexIndex: _ };
9310
9378
  }
@@ -9336,38 +9404,40 @@ class Ys {
9336
9404
  }
9337
9405
  }
9338
9406
  // -------- Move tool Save/Cancel UI --------
9339
- showMoveConfirmationUI(h, s, c) {
9340
- var n, r;
9407
+ showMoveConfirmationUI(h) {
9408
+ var s, c;
9341
9409
  try {
9342
9410
  if (this.hideMoveConfirmationUI(), !this.container || !this.map) return;
9343
- const a = this.drawControl;
9344
- if (!a) return;
9345
- const d = (n = a == null ? void 0 : a._toolbars) == null ? void 0 : n.draw;
9346
- if (!d) return;
9347
- const f = d._modes || {};
9348
- let _ = null;
9349
- for (const E in f) {
9350
- const P = f[E];
9351
- if (((r = P == null ? void 0 : P.handler) == null ? void 0 : r.type) === "move") {
9352
- _ = P.handler;
9411
+ const n = this.drawControl;
9412
+ if (!n) return;
9413
+ const r = (s = n == null ? void 0 : n._toolbars) == null ? void 0 : s.draw;
9414
+ if (!r) return;
9415
+ const a = r._modes || {};
9416
+ let d = null;
9417
+ for (const w in a) {
9418
+ const x = a[w];
9419
+ if (((c = x == null ? void 0 : x.handler) == null ? void 0 : c.type) === "move") {
9420
+ d = x.handler;
9353
9421
  break;
9354
9422
  }
9355
9423
  }
9356
- this.activeMoveHandler = _;
9357
- const g = document.createElement("div");
9358
- 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";
9359
- const w = document.createElement("button");
9360
- 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", (E) => {
9361
- E.stopPropagation(), E.preventDefault(), _ != null && _.confirmMove && _.confirmMove();
9424
+ this.activeMoveHandler = d;
9425
+ const f = document.createElement("div");
9426
+ 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";
9427
+ const _ = document.createElement("button");
9428
+ _.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) => {
9429
+ w.stopPropagation(), w.preventDefault(), d != null && d.confirmMove && d.confirmMove();
9362
9430
  });
9363
- const x = document.createElement("button");
9364
- 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", (E) => {
9365
- E.stopPropagation(), E.preventDefault(), _ != null && _.cancelMove && _.cancelMove(), this.hideMoveConfirmationUI();
9366
- }), g.appendChild(w), g.appendChild(x), this.container.appendChild(g), this.moveConfirmationUI = g, this.logger.debug("showMoveConfirmationUI", {
9431
+ const g = document.createElement("button");
9432
+ 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) => {
9433
+ w.stopPropagation(), w.preventDefault(), this.emitToolEvent("tool:move:cancelled", {
9434
+ layerId: h == null ? void 0 : h._fid
9435
+ }), d != null && d.cancelMove && d.cancelMove(), this.hideMoveConfirmationUI();
9436
+ }), f.appendChild(_), f.appendChild(g), this.container.appendChild(f), this.moveConfirmationUI = f, this.logger.debug("showMoveConfirmationUI", {
9367
9437
  layerId: h._fid
9368
9438
  });
9369
- } catch (a) {
9370
- this._error("showMoveConfirmationUI", a);
9439
+ } catch (n) {
9440
+ this._error("showMoveConfirmationUI", n);
9371
9441
  }
9372
9442
  }
9373
9443
  hideMoveConfirmationUI() {
@@ -9404,7 +9474,7 @@ function uo(m) {
9404
9474
  const h = m.trim();
9405
9475
  return h.length > 0 ? h : void 0;
9406
9476
  }
9407
- function qs(m) {
9477
+ function js(m) {
9408
9478
  const { style: h, attribution: s } = m, c = co(m.provider), n = uo(m.apiKey);
9409
9479
  switch (c) {
9410
9480
  case "osm":
@@ -9429,7 +9499,7 @@ function qs(m) {
9429
9499
  throw new Error(`Unknown tile provider: ${m.provider}`);
9430
9500
  }
9431
9501
  }
9432
- function js(m) {
9502
+ function Js(m) {
9433
9503
  const h = co(m.provider), s = uo(m.apiKey);
9434
9504
  return h ? h === "here" && !s ? { valid: !1, error: "HERE Maps requires an API key" } : { valid: !0 } : { valid: !1, error: "Provider is required" };
9435
9505
  }
@@ -9470,6 +9540,8 @@ class zi extends HTMLElement {
9470
9540
  k(this, "_useExternalLeaflet", !1);
9471
9541
  k(this, "_skipLeafletStyles", !1);
9472
9542
  k(this, "_leafletInstance");
9543
+ k(this, "_toolHooks");
9544
+ k(this, "_toolEventEmitter");
9473
9545
  this._root = this.attachShadow({ mode: "open" }), this._root.innerHTML = `
9474
9546
  <style>
9475
9547
  :host {
@@ -9531,7 +9603,7 @@ class zi extends HTMLElement {
9531
9603
  this._logger.debug("connectedCallback", this._currentConfig()), as({
9532
9604
  root: this._root,
9533
9605
  skipStyles: this._skipLeafletStyles
9534
- }), this._applyThemeStyles(), this._controller = new Ys({
9606
+ }), this._applyThemeStyles(), this._controller = new qs({
9535
9607
  container: this._container,
9536
9608
  map: this._mapConfig(),
9537
9609
  controls: this._controlsFromAttributes(),
@@ -9561,7 +9633,9 @@ class zi extends HTMLElement {
9561
9633
  }
9562
9634
  },
9563
9635
  leaflet: (s = this._leafletInstance) != null ? s : void 0,
9564
- useExternalLeaflet: this._useExternalLeaflet
9636
+ useExternalLeaflet: this._useExternalLeaflet,
9637
+ toolHooks: this._toolHooks,
9638
+ toolEventEmitter: this._toolEventEmitter
9565
9639
  }), await this._controller.init(), this._tileProvider && this._updateTileLayer();
9566
9640
  }
9567
9641
  async disconnectedCallback() {
@@ -9684,7 +9758,7 @@ class zi extends HTMLElement {
9684
9758
  style: this._tileStyle,
9685
9759
  apiKey: this._apiKey,
9686
9760
  attribution: this._tileAttribution
9687
- }, _ = js(f);
9761
+ }, _ = Js(f);
9688
9762
  if (!_.valid) {
9689
9763
  const x = (c = _.error) != null && c.toLowerCase().includes("api key") ? "missing_api_key" : "tile_load_failed";
9690
9764
  this._handleTileProviderError(
@@ -9694,7 +9768,7 @@ class zi extends HTMLElement {
9694
9768
  );
9695
9769
  return;
9696
9770
  }
9697
- const g = qs(f), w = this._activeTileProvider;
9771
+ const g = js(f), w = this._activeTileProvider;
9698
9772
  s.setTileLayer(g, {
9699
9773
  onTileError: (x) => {
9700
9774
  if (this._tileProvider !== d) return;
@@ -9864,6 +9938,28 @@ class zi extends HTMLElement {
9864
9938
  set leafletInstance(s) {
9865
9939
  this._leafletInstance = s;
9866
9940
  }
9941
+ get toolHooks() {
9942
+ return this._toolHooks;
9943
+ }
9944
+ set toolHooks(s) {
9945
+ this._toolHooks = s;
9946
+ const c = this._controller;
9947
+ typeof (c == null ? void 0 : c.setToolObservers) == "function" && c.setToolObservers({
9948
+ toolHooks: this._toolHooks,
9949
+ toolEventEmitter: this._toolEventEmitter
9950
+ });
9951
+ }
9952
+ get toolEventEmitter() {
9953
+ return this._toolEventEmitter;
9954
+ }
9955
+ set toolEventEmitter(s) {
9956
+ this._toolEventEmitter = s;
9957
+ const c = this._controller;
9958
+ typeof (c == null ? void 0 : c.setToolObservers) == "function" && c.setToolObservers({
9959
+ toolHooks: this._toolHooks,
9960
+ toolEventEmitter: this._toolEventEmitter
9961
+ });
9962
+ }
9867
9963
  get themeCss() {
9868
9964
  return this._themeCss;
9869
9965
  }
@@ -10066,16 +10162,16 @@ if (!customElements.get(no)) {
10066
10162
  }
10067
10163
  customElements.define(no, m);
10068
10164
  }
10069
- const Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10165
+ const Ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10070
10166
  __proto__: null,
10071
10167
  LeafletDrawMapElement: zi
10072
- }, Symbol.toStringTag, { value: "Module" })), Ks = "leaflet-geokit";
10168
+ }, Symbol.toStringTag, { value: "Module" })), Xs = "leaflet-geokit";
10073
10169
  let Re = null;
10074
- function Xs() {
10075
- return typeof customElements == "undefined" ? !1 : !!customElements.get(Ks);
10170
+ function Qs() {
10171
+ return typeof customElements == "undefined" ? !1 : !!customElements.get(Xs);
10076
10172
  }
10077
- async function Qs() {
10078
- typeof customElements != "undefined" && (Xs() || (Re || (Re = Promise.resolve().then(() => Js).then(() => {
10173
+ async function $s() {
10174
+ typeof customElements != "undefined" && (Qs() || (Re || (Re = Promise.resolve().then(() => Ks).then(() => {
10079
10175
  }).finally(() => {
10080
10176
  Re = null;
10081
10177
  })), await Re));
@@ -10086,13 +10182,13 @@ const oo = [
10086
10182
  "leaflet-draw:deleted",
10087
10183
  "leaflet-draw:merged"
10088
10184
  ];
10089
- function $s(m) {
10185
+ function ta(m) {
10090
10186
  return m ? typeof m == "string" ? m : Object.entries(m).map(([h, s]) => `${h}: ${String(s)};`).join(" ") : "";
10091
10187
  }
10092
10188
  function Ei(m) {
10093
10189
  return m instanceof Error ? m : typeof m == "string" ? new Error(m) : new Error("Unknown GeoKit Preact shim error");
10094
10190
  }
10095
- function ta(m, h) {
10191
+ function ea(m, h) {
10096
10192
  Object.entries(h).forEach(([s, c]) => {
10097
10193
  if (c === !1 || c === null || c === void 0) {
10098
10194
  m.removeAttribute(s);
@@ -10105,24 +10201,24 @@ function ta(m, h) {
10105
10201
  m.setAttribute(s, String(c));
10106
10202
  });
10107
10203
  }
10108
- function ea(m, h) {
10204
+ function ia(m, h) {
10109
10205
  if (h === "external") {
10110
10206
  m.useExternalLeaflet = !0, m.skipLeafletStyles = !0, m.setAttribute("use-external-leaflet", ""), m.setAttribute("skip-leaflet-styles", "");
10111
10207
  return;
10112
10208
  }
10113
10209
  m.useExternalLeaflet = !1, m.skipLeafletStyles = !1, m.removeAttribute("use-external-leaflet"), m.removeAttribute("skip-leaflet-styles");
10114
10210
  }
10115
- function ia(m) {
10211
+ function na(m) {
10116
10212
  return function(s) {
10117
- const c = Zr(null), n = Hr(() => $s(s.style), [s.style]);
10213
+ const c = Zr(null), n = Hr(() => ta(s.style), [s.style]);
10118
10214
  return Fr(() => {
10119
10215
  let r = !1, a;
10120
- return Qs().then(() => {
10216
+ return $s().then(() => {
10121
10217
  if (r) return;
10122
10218
  const d = c.current;
10123
10219
  if (!d) return;
10124
10220
  const f = s.externalLeaflet != null ? s.externalLeaflet ? "external" : "bundled" : m;
10125
- ea(d, f), s.leafletInstance && (d.leafletInstance = s.leafletInstance), s.attributes && ta(d, s.attributes);
10221
+ ia(d, f), d.leafletInstance = s.leafletInstance, d.toolHooks = s.toolHooks, d.toolEventEmitter = s.toolEventEmitter, s.attributes && ea(d, s.attributes);
10126
10222
  const _ = async () => {
10127
10223
  var x, E, P;
10128
10224
  try {
@@ -10157,6 +10253,8 @@ function ia(m) {
10157
10253
  m,
10158
10254
  s.externalLeaflet,
10159
10255
  s.leafletInstance,
10256
+ s.toolHooks,
10257
+ s.toolEventEmitter,
10160
10258
  s.attributes,
10161
10259
  s.initialGeoJSONText,
10162
10260
  s.onChangeText,
@@ -10170,9 +10268,9 @@ function ia(m) {
10170
10268
  });
10171
10269
  };
10172
10270
  }
10173
- const sa = ia("bundled");
10271
+ const aa = na("bundled");
10174
10272
  export {
10175
- sa as PreactLeafletGeoKit,
10176
- sa as default
10273
+ aa as PreactLeafletGeoKit,
10274
+ aa as default
10177
10275
  };
10178
10276
  //# sourceMappingURL=index.js.map