gis-leaflet-helper 3.2.5 → 3.2.7

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.
@@ -75,7 +75,7 @@ function Mh() {
75
75
  p ? y = arguments : (t.apply(l, arguments), setTimeout(Z, s), p = !0);
76
76
  }, k;
77
77
  }
78
- function E(t, s, l) {
78
+ function w(t, s, l) {
79
79
  var p = s[1], y = s[0], k = p - y;
80
80
  return t === p && l ? t : ((t - y) % k + k) % k + y;
81
81
  }
@@ -155,7 +155,7 @@ function Mh() {
155
155
  },
156
156
  stamp: M,
157
157
  throttle: D,
158
- wrapNum: E,
158
+ wrapNum: w,
159
159
  falseFn: C,
160
160
  formatNum: R,
161
161
  trim: I,
@@ -832,7 +832,7 @@ function Mh() {
832
832
  // Returns a `LatLng` where lat and lng has been wrapped according to the
833
833
  // CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.
834
834
  wrapLatLng: function(t) {
835
- var s = this.wrapLng ? E(t.lng, this.wrapLng, !0) : t.lng, l = this.wrapLat ? E(t.lat, this.wrapLat, !0) : t.lat, p = t.alt;
835
+ var s = this.wrapLng ? w(t.lng, this.wrapLng, !0) : t.lng, l = this.wrapLat ? w(t.lat, this.wrapLat, !0) : t.lat, p = t.alt;
836
836
  return new jt(l, s, p);
837
837
  },
838
838
  // @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
@@ -5304,8 +5304,8 @@ function Mh() {
5304
5304
  },
5305
5305
  _wrapCoords: function(t) {
5306
5306
  var s = new Et(
5307
- this._wrapX ? E(t.x, this._wrapX) : t.x,
5308
- this._wrapY ? E(t.y, this._wrapY) : t.y
5307
+ this._wrapX ? w(t.x, this._wrapX) : t.x,
5308
+ this._wrapY ? w(t.y, this._wrapY) : t.y
5309
5309
  );
5310
5310
  return s.z = t.z, s;
5311
5311
  },
@@ -6341,7 +6341,7 @@ function Mh() {
6341
6341
  });
6342
6342
  }(da, da.exports)), da.exports;
6343
6343
  }
6344
- var H = Mh();
6344
+ var q = Mh();
6345
6345
  (function(e) {
6346
6346
  typeof define == "function" && define.amd ? define(e) : e();
6347
6347
  })(function() {
@@ -6359,11 +6359,11 @@ var H = Mh();
6359
6359
  * @param {Number} bearing
6360
6360
  * @param {L.Point} pivot
6361
6361
  */
6362
- setTransform: function(E, C, R, I, G) {
6362
+ setTransform: function(w, C, R, I, G) {
6363
6363
  var j = C || new L.Point(0, 0);
6364
6364
  if (!I)
6365
6365
  return C = j._round(), e.setTransform.apply(this, arguments);
6366
- j = j.rotateFrom(I, G), E.style[L.DomUtil.TRANSFORM] = "translate3d(" + j.x + "px," + j.y + "px,0)" + (R ? " scale(" + R + ")" : "") + " rotate(" + I + "rad)";
6366
+ j = j.rotateFrom(I, G), w.style[L.DomUtil.TRANSFORM] = "translate3d(" + j.x + "px," + j.y + "px,0)" + (R ? " scale(" + R + ")" : "") + " rotate(" + I + "rad)";
6367
6367
  },
6368
6368
  /**
6369
6369
  * Sets the position of `el` to coordinates specified by
@@ -6377,10 +6377,10 @@ var H = Mh();
6377
6377
  * @param {L.Point} pivot
6378
6378
  * @param {Number} scale
6379
6379
  */
6380
- setPosition: function(E, C, R, I, G) {
6380
+ setPosition: function(w, C, R, I, G) {
6381
6381
  if (!R && !G)
6382
6382
  return e.setPosition.apply(this, arguments);
6383
- E._leaflet_pos = C, L.Browser.any3d ? L.DomUtil.setTransform(E, C, G, R, I) : (E.style.left = C.x + "px", E.style.top = C.y + "px");
6383
+ w._leaflet_pos = C, L.Browser.any3d ? L.DomUtil.setTransform(w, C, G, R, I) : (w.style.left = C.x + "px", w.style.top = C.y + "px");
6384
6384
  },
6385
6385
  /**
6386
6386
  * @constant radians = degrees × π/180°
@@ -6404,8 +6404,8 @@ var H = Mh();
6404
6404
  *
6405
6405
  * @param theta must be given in radians.
6406
6406
  */
6407
- rotate: function(E) {
6408
- return this.rotateFrom(E, new L.Point(0, 0));
6407
+ rotate: function(w) {
6408
+ return this.rotateFrom(w, new L.Point(0, 0));
6409
6409
  },
6410
6410
  /**
6411
6411
  * Rotate around (pivot.x, pivot.y) by:
@@ -6421,10 +6421,10 @@ var H = Mh();
6421
6421
  *
6422
6422
  * @returns {L.Point}
6423
6423
  */
6424
- rotateFrom: function(E, C) {
6425
- if (!E)
6424
+ rotateFrom: function(w, C) {
6425
+ if (!w)
6426
6426
  return this;
6427
- var R = Math.sin(E), I = Math.cos(E), G = C.x, j = C.y, X = this.x - G, rt = this.y - j;
6427
+ var R = Math.sin(w), I = Math.cos(w), G = C.x, j = C.y, X = this.x - G, rt = this.y - j;
6428
6428
  return new L.Point(X * I - rt * R + G, X * R + rt * I + j);
6429
6429
  }
6430
6430
  });
@@ -6445,8 +6445,8 @@ var H = Mh();
6445
6445
  */
6446
6446
  _updatePosition: function() {
6447
6447
  if (this._map && (r._updatePosition.apply(this, arguments), this._map && this._map._rotate && this._zoomAnimated)) {
6448
- var E = this._getAnchor(), C = L.DomUtil.getPosition(this._container).subtract(E);
6449
- L.DomUtil.setPosition(this._container, this._map.rotatedPointToMapPanePoint(C).add(E));
6448
+ var w = this._getAnchor(), C = L.DomUtil.getPosition(this._container).subtract(w);
6449
+ L.DomUtil.setPosition(this._container, this._map.rotatedPointToMapPanePoint(C).add(w));
6450
6450
  }
6451
6451
  }
6452
6452
  });
@@ -6456,7 +6456,7 @@ var H = Mh();
6456
6456
  * 0. update element anchor point (popupProto v1.9.3)
6457
6457
  * 1. rotate around anchor point (subtract anchor -> rotate point -> add anchor)
6458
6458
  */
6459
- _animateZoom: function(E) {
6459
+ _animateZoom: function(w) {
6460
6460
  if (o._animateZoom.apply(this, arguments), this._map && this._map._rotate) {
6461
6461
  var C = this._getAnchor(), R = L.DomUtil.getPosition(this._container).subtract(C);
6462
6462
  L.DomUtil.setPosition(this._container, this._map.rotatedPointToMapPanePoint(R).add(C));
@@ -6473,33 +6473,33 @@ var H = Mh();
6473
6473
  this._autopanning = !1;
6474
6474
  return;
6475
6475
  }
6476
- var E = this._map, C = parseInt(L.DomUtil.getStyle(this._container, "marginBottom"), 10) || 0, R = this._container.offsetHeight + C, I = this._containerWidth, G = new L.Point(this._containerLeft, -R - this._containerBottom);
6476
+ var w = this._map, C = parseInt(L.DomUtil.getStyle(this._container, "marginBottom"), 10) || 0, R = this._container.offsetHeight + C, I = this._containerWidth, G = new L.Point(this._containerLeft, -R - this._containerBottom);
6477
6477
  G._add(L.DomUtil.getPosition(this._container));
6478
- var j = G._add(this._map._getMapPanePos()), X = L.point(this.options.autoPanPadding), rt = L.point(this.options.autoPanPaddingTopLeft || X), at = L.point(this.options.autoPanPaddingBottomRight || X), ct = E.getSize(), yt = 0, _t = 0;
6479
- j.x + I + at.x > ct.x && (yt = j.x + I - ct.x + at.x), j.x - yt - rt.x < 0 && (yt = j.x - rt.x), j.y + R + at.y > ct.y && (_t = j.y + R - ct.y + at.y), j.y - _t - rt.y < 0 && (_t = j.y - rt.y), (yt || _t) && (this.options.keepInView && (this._autopanning = !0), E.fire("autopanstart").panBy([yt, _t]));
6478
+ var j = G._add(this._map._getMapPanePos()), X = L.point(this.options.autoPanPadding), rt = L.point(this.options.autoPanPaddingTopLeft || X), at = L.point(this.options.autoPanPaddingBottomRight || X), ct = w.getSize(), yt = 0, _t = 0;
6479
+ j.x + I + at.x > ct.x && (yt = j.x + I - ct.x + at.x), j.x - yt - rt.x < 0 && (yt = j.x - rt.x), j.y + R + at.y > ct.y && (_t = j.y + R - ct.y + at.y), j.y - _t - rt.y < 0 && (_t = j.y - rt.y), (yt || _t) && (this.options.keepInView && (this._autopanning = !0), w.fire("autopanstart").panBy([yt, _t]));
6480
6480
  }
6481
6481
  }
6482
6482
  });
6483
6483
  const c = L.extend({}, L.Tooltip.prototype);
6484
6484
  L.Tooltip.include({
6485
- _animateZoom: function(E) {
6485
+ _animateZoom: function(w) {
6486
6486
  if (!this._map._rotate)
6487
6487
  return c._animateZoom.apply(this, arguments);
6488
- var C = this._map._latLngToNewLayerPoint(this._latlng, E.zoom, E.center);
6488
+ var C = this._map._latLngToNewLayerPoint(this._latlng, w.zoom, w.center);
6489
6489
  C = this._map.rotatedPointToMapPanePoint(C), this._setPosition(C);
6490
6490
  },
6491
6491
  _updatePosition: function() {
6492
6492
  if (!this._map._rotate)
6493
6493
  return c._updatePosition.apply(this, arguments);
6494
- var E = this._map.latLngToLayerPoint(this._latlng);
6495
- E = this._map.rotatedPointToMapPanePoint(E), this._setPosition(E);
6494
+ var w = this._map.latLngToLayerPoint(this._latlng);
6495
+ w = this._map.rotatedPointToMapPanePoint(w), this._setPosition(w);
6496
6496
  }
6497
6497
  }), L.extend({}, L.Icon.prototype), L.Icon.include({
6498
- _setIconStyles: function(E, C) {
6498
+ _setIconStyles: function(w, C) {
6499
6499
  var R = this.options, I = R[C + "Size"];
6500
6500
  typeof I == "number" && (I = [I, I]);
6501
6501
  var G = L.point(I), j = L.point(C === "shadow" && R.shadowAnchor || R.iconAnchor || G && G.divideBy(2, !0));
6502
- E.className = "leaflet-marker-" + C + " " + (R.className || ""), j && (E.style.marginLeft = -j.x + "px", E.style.marginTop = -j.y + "px", E.style[L.DomUtil.TRANSFORM + "Origin"] = j.x + "px " + j.y + "px 0px"), G && (E.style.width = G.x + "px", E.style.height = G.y + "px");
6502
+ w.className = "leaflet-marker-" + C + " " + (R.className || ""), j && (w.style.marginLeft = -j.x + "px", w.style.marginTop = -j.y + "px", w.style[L.DomUtil.TRANSFORM + "Origin"] = j.x + "px " + j.y + "px 0px"), G && (w.style.width = G.x + "px", w.style.height = G.y + "px");
6503
6503
  }
6504
6504
  });
6505
6505
  const d = L.extend({}, L.Marker.prototype);
@@ -6530,13 +6530,13 @@ var H = Mh();
6530
6530
  // }
6531
6531
  // this._draggable.updateMapBearing(this._marker._map._bearing);
6532
6532
  // },
6533
- _onDrag: function(E) {
6533
+ _onDrag: function(w) {
6534
6534
  var C = this._marker, R = C.options.rotation || C.options.rotateWithView, I = C._shadow, G = L.DomUtil.getPosition(C._icon);
6535
6535
  !R && I && L.DomUtil.setPosition(I, G), C._map._rotate && (G = C._map.mapPanePointToRotatedPoint(G));
6536
6536
  var j = C._map.layerPointToLatLng(G);
6537
- C._latlng = j, E.latlng = j, E.oldLatLng = this._oldLatLng, R ? C.setLatLng(j) : C.fire("move", E), C.fire("drag", E);
6537
+ C._latlng = j, w.latlng = j, w.oldLatLng = this._oldLatLng, R ? C.setLatLng(j) : C.fire("move", w), C.fire("drag", w);
6538
6538
  },
6539
- _onDragEnd: function(E) {
6539
+ _onDragEnd: function(w) {
6540
6540
  this._marker._map._rotate && this._marker.update(), _._onDragEnd.apply(this, arguments);
6541
6541
  }
6542
6542
  };
@@ -6551,17 +6551,17 @@ var H = Mh();
6551
6551
  return L.extend(d.getEvents.apply(this, arguments), { rotate: this.update });
6552
6552
  },
6553
6553
  _initInteraction: function() {
6554
- var E = d._initInteraction.apply(this, arguments);
6554
+ var w = d._initInteraction.apply(this, arguments);
6555
6555
  return this.dragging && this.dragging.enabled() && this._map && this._map._rotate && (_ = _ || Object.getPrototypeOf(this.dragging), this.dragging.disable(), Object.assign(this.dragging, {
6556
6556
  // _onDragStart: MarkerDrag._onDragStart.bind(this.dragging),
6557
6557
  _onDrag: m._onDrag.bind(this.dragging),
6558
6558
  _onDragEnd: m._onDragEnd.bind(this.dragging)
6559
- }), this.dragging.enable()), E;
6559
+ }), this.dragging.enable()), w;
6560
6560
  },
6561
- _setPos: function(E) {
6562
- this._map._rotate && (E = this._map.rotatedPointToMapPanePoint(E));
6561
+ _setPos: function(w) {
6562
+ this._map._rotate && (w = this._map.rotatedPointToMapPanePoint(w));
6563
6563
  var C = this.options.rotation || 0;
6564
- this.options.rotateWithView && (C += this._map._bearing), this._icon && L.DomUtil.setPosition(this._icon, E, C, E, this.options.scale), this._shadow && L.DomUtil.setPosition(this._shadow, E, C, E, this.options.scale), this._zIndex = E.y + this.options.zIndexOffset, this._resetZIndex();
6564
+ this.options.rotateWithView && (C += this._map._bearing), this._icon && L.DomUtil.setPosition(this._icon, w, C, w, this.options.scale), this._shadow && L.DomUtil.setPosition(this._shadow, w, C, w, this.options.scale), this._zIndex = w.y + this.options.zIndexOffset, this._resetZIndex();
6565
6565
  },
6566
6566
  // _updateZIndex: function(offset) {
6567
6567
  // if (!this._map._rotate) {
@@ -6569,8 +6569,8 @@ var H = Mh();
6569
6569
  // }
6570
6570
  // this._icon.style.zIndex = Math.round(this._zIndex + offset);
6571
6571
  // },
6572
- setRotation: function(E) {
6573
- this.options.rotation = E, this.update();
6572
+ setRotation: function(w) {
6573
+ this.options.rotation = w, this.update();
6574
6574
  }
6575
6575
  });
6576
6576
  const A = L.extend({}, L.GridLayer.prototype);
@@ -6582,11 +6582,11 @@ var H = Mh();
6582
6582
  * @listens L.Map~rotate
6583
6583
  */
6584
6584
  getEvents: function() {
6585
- var E = A.getEvents.apply(this, arguments);
6586
- return this._map._rotate && !this.options.updateWhenIdle && (this._onRotate || (this._onRotate = L.Util.throttle(this._onMoveEnd, this.options.updateInterval, this)), E.rotate = this._onRotate), E;
6585
+ var w = A.getEvents.apply(this, arguments);
6586
+ return this._map._rotate && !this.options.updateWhenIdle && (this._onRotate || (this._onRotate = L.Util.throttle(this._onMoveEnd, this.options.updateInterval, this)), w.rotate = this._onRotate), w;
6587
6587
  },
6588
- _getTiledPixelBounds: function(E) {
6589
- return this._map._rotate ? this._map._getNewPixelBounds(E, this._tileZoom) : A._getTiledPixelBounds.apply(this, arguments);
6588
+ _getTiledPixelBounds: function(w) {
6589
+ return this._map._rotate ? this._map._getNewPixelBounds(w, this._tileZoom) : A._getTiledPixelBounds.apply(this, arguments);
6590
6590
  }
6591
6591
  });
6592
6592
  const M = L.extend({}, L.Renderer.prototype);
@@ -6627,10 +6627,10 @@ var H = Mh();
6627
6627
  *
6628
6628
  * @see https://github.com/Leaflet/Leaflet/compare/v1.7.0...v1.9.3
6629
6629
  */
6630
- _updateTransform: function(E, C) {
6630
+ _updateTransform: function(w, C) {
6631
6631
  if (!this._map._rotate)
6632
6632
  return M._updateTransform.apply(this, arguments);
6633
- var R = this._map.getZoomScale(C, this._zoom), I = this._map._latLngToNewLayerPoint(this._topLeft, C, E);
6633
+ var R = this._map.getZoomScale(C, this._zoom), I = this._map._latLngToNewLayerPoint(this._topLeft, C, w);
6634
6634
  L.DomUtil.setTransform(this._container, I, R);
6635
6635
  },
6636
6636
  // getEvents() {
@@ -6680,7 +6680,7 @@ var H = Mh();
6680
6680
  * @param {(HTMLElement|String)} id html selector
6681
6681
  * @param {Object} [options={}] leaflet map options
6682
6682
  */
6683
- initialize: function(E, C) {
6683
+ initialize: function(w, C) {
6684
6684
  C.rotate && (this._rotate = !0, this._bearing = 0), D.initialize.apply(this, arguments), this.options.rotate && this.setBearing(this.options.bearing);
6685
6685
  },
6686
6686
  /**
@@ -6691,8 +6691,8 @@ var H = Mh();
6691
6691
  * @param {L.Point} point pixel screen coordinates
6692
6692
  * @returns {L.Point} transformed pixel point
6693
6693
  */
6694
- containerPointToLayerPoint: function(E) {
6695
- return this._rotate ? L.point(E).subtract(this._getMapPanePos()).rotateFrom(-this._bearing, this._getRotatePanePos()).subtract(this._getRotatePanePos()) : D.containerPointToLayerPoint.apply(this, arguments);
6694
+ containerPointToLayerPoint: function(w) {
6695
+ return this._rotate ? L.point(w).subtract(this._getMapPanePos()).rotateFrom(-this._bearing, this._getRotatePanePos()).subtract(this._getRotatePanePos()) : D.containerPointToLayerPoint.apply(this, arguments);
6696
6696
  },
6697
6697
  /**
6698
6698
  * Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),
@@ -6701,8 +6701,8 @@ var H = Mh();
6701
6701
  * @param {L.Point} point pixel screen coordinates
6702
6702
  * @returns {L.Point} transformed pixel point
6703
6703
  */
6704
- layerPointToContainerPoint: function(E) {
6705
- return this._rotate ? L.point(E).add(this._getRotatePanePos()).rotateFrom(this._bearing, this._getRotatePanePos()).add(this._getMapPanePos()) : D.layerPointToContainerPoint.apply(this, arguments);
6704
+ layerPointToContainerPoint: function(w) {
6705
+ return this._rotate ? L.point(w).add(this._getRotatePanePos()).rotateFrom(this._bearing, this._getRotatePanePos()).add(this._getMapPanePos()) : D.layerPointToContainerPoint.apply(this, arguments);
6706
6706
  },
6707
6707
  /**
6708
6708
  * Converts a coordinate from the rotated pane reference system
@@ -6716,8 +6716,8 @@ var H = Mh();
6716
6716
  *
6717
6717
  * @since leaflet-rotate (v0.1)
6718
6718
  */
6719
- rotatedPointToMapPanePoint: function(E) {
6720
- return L.point(E).rotate(this._bearing)._add(this._getRotatePanePos());
6719
+ rotatedPointToMapPanePoint: function(w) {
6720
+ return L.point(w).rotate(this._bearing)._add(this._getRotatePanePos());
6721
6721
  },
6722
6722
  /**
6723
6723
  * Converts a coordinate from the not rotated map pane reference system
@@ -6730,8 +6730,8 @@ var H = Mh();
6730
6730
  *
6731
6731
  * @since leaflet-rotate (v0.1)
6732
6732
  */
6733
- mapPanePointToRotatedPoint: function(E) {
6734
- return L.point(E)._subtract(this._getRotatePanePos()).rotate(-this._bearing);
6733
+ mapPanePointToRotatedPoint: function(w) {
6734
+ return L.point(w)._subtract(this._getRotatePanePos()).rotate(-this._bearing);
6735
6735
  },
6736
6736
  // latLngToLayerPoint: function (latlng) {
6737
6737
  // var projectedPoint = this.project(L.latLng(latlng))._round();
@@ -6751,10 +6751,10 @@ var H = Mh();
6751
6751
  *
6752
6752
  * @since leaflet-rotate (v0.2)
6753
6753
  */
6754
- mapBoundsToContainerBounds: function(E) {
6754
+ mapBoundsToContainerBounds: function(w) {
6755
6755
  if (!this._rotate && D.mapBoundsToContainerBounds)
6756
6756
  return D.mapBoundsToContainerBounds.apply(this, arguments);
6757
- const C = this.getPixelOrigin(), R = this.layerPointToContainerPoint(this.project(E.getNorthWest())._subtract(C)), I = this.layerPointToContainerPoint(this.project(E.getNorthEast())._subtract(C)), G = this.layerPointToContainerPoint(this.project(E.getSouthWest())._subtract(C)), j = this.layerPointToContainerPoint(this.project(E.getSouthEast())._subtract(C));
6757
+ const C = this.getPixelOrigin(), R = this.layerPointToContainerPoint(this.project(w.getNorthWest())._subtract(C)), I = this.layerPointToContainerPoint(this.project(w.getNorthEast())._subtract(C)), G = this.layerPointToContainerPoint(this.project(w.getSouthWest())._subtract(C)), j = this.layerPointToContainerPoint(this.project(w.getSouthEast())._subtract(C));
6758
6758
  return L.bounds([
6759
6759
  L.point(Math.min(R.x, I.x, j.x, G.x), Math.min(R.y, I.y, j.y, G.y)),
6760
6760
  // [ minX, minY ]
@@ -6775,15 +6775,15 @@ var H = Mh();
6775
6775
  getBounds: function() {
6776
6776
  if (!this._rotate)
6777
6777
  return D.getBounds.apply(this, arguments);
6778
- var E = this.getSize();
6778
+ var w = this.getSize();
6779
6779
  return new L.LatLngBounds([
6780
6780
  this.containerPointToLatLng([0, 0]),
6781
6781
  // topleft
6782
- this.containerPointToLatLng([E.x, 0]),
6782
+ this.containerPointToLatLng([w.x, 0]),
6783
6783
  // topright
6784
- this.containerPointToLatLng([E.x, E.y]),
6784
+ this.containerPointToLatLng([w.x, w.y]),
6785
6785
  // bottomright
6786
- this.containerPointToLatLng([0, E.y])
6786
+ this.containerPointToLatLng([0, w.y])
6787
6787
  // bottomleft
6788
6788
  ]);
6789
6789
  },
@@ -6810,9 +6810,9 @@ var H = Mh();
6810
6810
  *
6811
6811
  * @since leaflet-rotate (v0.1)
6812
6812
  */
6813
- setBearing: function(E) {
6813
+ setBearing: function(w) {
6814
6814
  if (!(!L.Browser.any3d || !this._rotate)) {
6815
- var C = L.Util.wrapNum(E, [0, 360]) * L.DomUtil.DEG_TO_RAD, R = this._getPixelCenter(), I = this._getRotatePanePos().rotateFrom(-this._bearing, R), G = I.rotateFrom(C, R);
6815
+ var C = L.Util.wrapNum(w, [0, 360]) * L.DomUtil.DEG_TO_RAD, R = this._getPixelCenter(), I = this._getRotatePanePos().rotateFrom(-this._bearing, R), G = I.rotateFrom(C, R);
6816
6816
  L.DomUtil.setPosition(this._rotatePane, I, C, R), this._pivot = R, this._bearing = C, this._rotatePanePos = G, this.fire("rotate");
6817
6817
  }
6818
6818
  },
@@ -6864,8 +6864,8 @@ var H = Mh();
6864
6864
  * - popupPane [HTMLElement = 700] - Pane for popups.
6865
6865
  */
6866
6866
  _initPanes: function() {
6867
- var E = this._panes = {};
6868
- this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), L.DomUtil.setPosition(this._mapPane, new L.Point(0, 0)), this._rotate ? (this._rotatePane = this.createPane("rotatePane", this._mapPane), this._norotatePane = this.createPane("norotatePane", this._mapPane), this.createPane("tilePane", this._rotatePane), this.createPane("overlayPane", this._rotatePane), this.createPane("shadowPane", this._norotatePane), this.createPane("markerPane", this._norotatePane), this.createPane("tooltipPane", this._norotatePane), this.createPane("popupPane", this._norotatePane)) : (this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane")), this.options.markerZoomAnimation || (L.DomUtil.addClass(E.markerPane, "leaflet-zoom-hide"), L.DomUtil.addClass(E.shadowPane, "leaflet-zoom-hide"));
6867
+ var w = this._panes = {};
6868
+ this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), L.DomUtil.setPosition(this._mapPane, new L.Point(0, 0)), this._rotate ? (this._rotatePane = this.createPane("rotatePane", this._mapPane), this._norotatePane = this.createPane("norotatePane", this._mapPane), this.createPane("tilePane", this._rotatePane), this.createPane("overlayPane", this._rotatePane), this.createPane("shadowPane", this._norotatePane), this.createPane("markerPane", this._norotatePane), this.createPane("tooltipPane", this._norotatePane), this.createPane("popupPane", this._norotatePane)) : (this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane")), this.options.markerZoomAnimation || (L.DomUtil.addClass(w.markerPane, "leaflet-zoom-hide"), L.DomUtil.addClass(w.shadowPane, "leaflet-zoom-hide"));
6869
6869
  },
6870
6870
  /**
6871
6871
  * Pans the map the minimum amount to make the `latlng` visible. Use
@@ -6880,11 +6880,11 @@ var H = Mh();
6880
6880
  *
6881
6881
  * @returns {L.Map} current map instance
6882
6882
  */
6883
- panInside(E, C) {
6883
+ panInside(w, C) {
6884
6884
  if (!this._rotate || Math.abs(this._bearing).toFixed(1) < 0.1)
6885
6885
  return D.panInside.apply(this, arguments);
6886
6886
  C = C || {};
6887
- const R = L.point(C.paddingTopLeft || C.padding || [0, 0]), I = L.point(C.paddingBottomRight || C.padding || [0, 0]), G = this._container.getBoundingClientRect(), j = this.latLngToContainerPoint(E), X = L.bounds([L.point(G), L.point(G).add(this.getSize())]), rt = X.getCenter(), at = L.bounds([X.min.add(R), X.max.subtract(I)]), ct = at.getSize();
6887
+ const R = L.point(C.paddingTopLeft || C.padding || [0, 0]), I = L.point(C.paddingBottomRight || C.padding || [0, 0]), G = this._container.getBoundingClientRect(), j = this.latLngToContainerPoint(w), X = L.bounds([L.point(G), L.point(G).add(this.getSize())]), rt = X.getCenter(), at = L.bounds([X.min.add(R), X.max.subtract(I)]), ct = at.getSize();
6888
6888
  if (!at.contains(j)) {
6889
6889
  this._enforcingBounds = !0;
6890
6890
  const yt = j.subtract(at.getCenter()), _t = at.extend(j).getSize().subtract(ct);
@@ -6975,12 +6975,12 @@ var H = Mh();
6975
6975
  *
6976
6976
  * @returns {Number} zoom level
6977
6977
  */
6978
- getBoundsZoom(E, C, R) {
6978
+ getBoundsZoom(w, C, R) {
6979
6979
  if (!this._rotate || Math.abs(this._bearing).toFixed(1) < 0.1)
6980
6980
  return D.getBoundsZoom.apply(this, arguments);
6981
- E = L.latLngBounds(E), R = L.point(R || [0, 0]);
6981
+ w = L.latLngBounds(w), R = L.point(R || [0, 0]);
6982
6982
  let I = this.getZoom() || 0;
6983
- const G = this.getMinZoom(), j = this.getMaxZoom(), X = this.getSize().subtract(R), rt = this.mapBoundsToContainerBounds(E).getSize(), at = this.options.zoomSnap, ct = X.x / rt.x, yt = X.y / rt.y, _t = C ? Math.max(ct, yt) : Math.min(ct, yt);
6983
+ const G = this.getMinZoom(), j = this.getMaxZoom(), X = this.getSize().subtract(R), rt = this.mapBoundsToContainerBounds(w).getSize(), at = this.options.zoomSnap, ct = X.x / rt.x, yt = X.y / rt.y, _t = C ? Math.max(ct, yt) : Math.min(ct, yt);
6984
6984
  return I = this.getScaleZoom(_t, I), at && (I = Math.round(I / (at / 100)) * (at / 100), I = C ? Math.ceil(I / at) * at : Math.floor(I / at) * at), Math.max(G, Math.min(j, I));
6985
6985
  },
6986
6986
  /**
@@ -6996,7 +6996,7 @@ var H = Mh();
6996
6996
  *
6997
6997
  * @param {L.LatLng} latlng map coordinates
6998
6998
  */
6999
- _getCenterOffset: function(E) {
6999
+ _getCenterOffset: function(w) {
7000
7000
  var C = D._getCenterOffset.apply(this, arguments);
7001
7001
  return this._rotate && (C = C.rotate(this._bearing)), C;
7002
7002
  },
@@ -7010,21 +7010,21 @@ var H = Mh();
7010
7010
  // const topLeft = this._getNewPixelOrigin(center, zoom);
7011
7011
  // return this.project(latlng, zoom)._subtract(topLeft);
7012
7012
  //},
7013
- _getNewPixelOrigin: function(E, C) {
7013
+ _getNewPixelOrigin: function(w, C) {
7014
7014
  if (!this._rotate)
7015
7015
  return D._getNewPixelOrigin.apply(this, arguments);
7016
7016
  var R = this.getSize()._divideBy(2);
7017
- return this.project(E, C).rotate(this._bearing)._subtract(R)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round();
7017
+ return this.project(w, C).rotate(this._bearing)._subtract(R)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round();
7018
7018
  },
7019
7019
  /**
7020
7020
  * @since leaflet-rotate (v0.2)
7021
7021
  *
7022
7022
  * @see src\layer\tile\GridLayer::_getTiledPixelBounds()
7023
7023
  */
7024
- _getNewPixelBounds: function(E, C) {
7025
- if (E = E || this.getCenter(), C = C || this.getZoom(), !this._rotate && D._getNewPixelBounds)
7024
+ _getNewPixelBounds: function(w, C) {
7025
+ if (w = w || this.getCenter(), C = C || this.getZoom(), !this._rotate && D._getNewPixelBounds)
7026
7026
  return D._getNewPixelBounds.apply(this, arguments);
7027
- var R = this._animatingZoom ? Math.max(this._animateToZoom, this.getZoom()) : this.getZoom(), I = this.getZoomScale(R, C), G = this.project(E, C).floor(), j = this.getSize(), X = new L.Bounds([
7027
+ var R = this._animatingZoom ? Math.max(this._animateToZoom, this.getZoom()) : this.getZoom(), I = this.getZoomScale(R, C), G = this.project(w, C).floor(), j = this.getSize(), X = new L.Bounds([
7028
7028
  this.containerPointToLayerPoint([0, 0]).floor(),
7029
7029
  this.containerPointToLayerPoint([j.x, 0]).floor(),
7030
7030
  this.containerPointToLayerPoint([0, j.y]).floor(),
@@ -7045,10 +7045,10 @@ var H = Mh();
7045
7045
  *
7046
7046
  * @see src\layer\vector\Renderer::_update()
7047
7047
  */
7048
- _getPaddedPixelBounds: function(E) {
7048
+ _getPaddedPixelBounds: function(w) {
7049
7049
  if (!this._rotate && D._getPaddedPixelBounds)
7050
7050
  return D._getPaddedPixelBounds.apply(this, arguments);
7051
- var C = E, R = this.getSize(), I = R.multiplyBy(-C), G = R.multiplyBy(1 + C);
7051
+ var C = w, R = this.getSize(), I = R.multiplyBy(-C), G = R.multiplyBy(1 + C);
7052
7052
  return new L.Bounds([
7053
7053
  this.containerPointToLayerPoint([I.x, I.y]).floor(),
7054
7054
  this.containerPointToLayerPoint([I.x, G.y]).floor(),
@@ -7056,9 +7056,9 @@ var H = Mh();
7056
7056
  this.containerPointToLayerPoint([G.x, G.y]).floor()
7057
7057
  ]);
7058
7058
  },
7059
- _handleGeolocationResponse: function(E) {
7059
+ _handleGeolocationResponse: function(w) {
7060
7060
  if (this._container._leaflet_id) {
7061
- var C = E.coords.latitude, R = E.coords.longitude, I = E.coords.heading, G = new L.LatLng(C, R), j = G.toBounds(E.coords.accuracy), X = this._locateOptions;
7061
+ var C = w.coords.latitude, R = w.coords.longitude, I = w.coords.heading, G = new L.LatLng(C, R), j = G.toBounds(w.coords.accuracy), X = this._locateOptions;
7062
7062
  if (X.setView) {
7063
7063
  var rt = this.getBoundsZoom(j);
7064
7064
  this.setView(G, X.maxZoom ? Math.min(rt, X.maxZoom) : rt);
@@ -7066,12 +7066,12 @@ var H = Mh();
7066
7066
  var at = {
7067
7067
  latlng: G,
7068
7068
  bounds: j,
7069
- timestamp: E.timestamp,
7069
+ timestamp: w.timestamp,
7070
7070
  /** @TODO use mapProto._handleGeolocationResponse */
7071
7071
  heading: I
7072
7072
  };
7073
- for (var ct in E.coords)
7074
- typeof E.coords[ct] == "number" && (at[ct] = E.coords[ct]);
7073
+ for (var ct in w.coords)
7074
+ typeof w.coords[ct] == "number" && (at[ct] = w.coords[ct]);
7075
7075
  this.fire("locationfound", at);
7076
7076
  }
7077
7077
  }
@@ -7090,8 +7090,8 @@ var H = Mh();
7090
7090
  // return L.bounds(L.point(minX, minY), L.point(maxX, maxY));
7091
7091
  // },
7092
7092
  }), L.Map.CompassBearing = L.Handler.extend({
7093
- initialize: function(E) {
7094
- this._map = E, "ondeviceorientationabsolute" in window ? this.__deviceOrientationEvent = "deviceorientationabsolute" : "ondeviceorientation" in window && (this.__deviceOrientationEvent = "deviceorientation"), this._throttled = L.Util.throttle(this._onDeviceOrientation, 100, this);
7093
+ initialize: function(w) {
7094
+ this._map = w, "ondeviceorientationabsolute" in window ? this.__deviceOrientationEvent = "deviceorientationabsolute" : "ondeviceorientation" in window && (this.__deviceOrientationEvent = "deviceorientation"), this._throttled = L.Util.throttle(this._onDeviceOrientation, 100, this);
7095
7095
  },
7096
7096
  addHooks: function() {
7097
7097
  this._map._rotate && this.__deviceOrientationEvent ? L.DomEvent.on(window, this.__deviceOrientationEvent, this._throttled, this) : this.disable();
@@ -7117,9 +7117,9 @@ var H = Mh();
7117
7117
  * @see https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/alpha
7118
7118
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/orientation
7119
7119
  */
7120
- _onDeviceOrientation: function(E) {
7121
- var C = E.webkitCompassHeading || E.alpha, R = 0;
7122
- !E.absolute && E.webkitCompassHeading && (C = 360 - C), !E.absolute && typeof window.orientation < "u" && (R = window.orientation), this._map.setBearing(C - R);
7120
+ _onDeviceOrientation: function(w) {
7121
+ var C = w.webkitCompassHeading || w.alpha, R = 0;
7122
+ !w.absolute && w.webkitCompassHeading && (C = 360 - C), !w.absolute && typeof window.orientation < "u" && (R = window.orientation), this._map.setBearing(C - R);
7123
7123
  }
7124
7124
  }), L.Map.addInitHook("addHandler", "compassBearing", L.Map.CompassBearing), L.Map.mergeOptions({
7125
7125
  /**
@@ -7156,8 +7156,8 @@ var H = Mh();
7156
7156
  */
7157
7157
  bounceAtZoomLimits: !0
7158
7158
  }), L.Map.TouchGestures = L.Handler.extend({
7159
- initialize: function(E) {
7160
- this._map = E, this.rotate = !!this._map.options.touchRotate, this.zoom = !!this._map.options.touchZoom;
7159
+ initialize: function(w) {
7160
+ this._map = w, this.rotate = !!this._map.options.touchRotate, this.zoom = !!this._map.options.touchZoom;
7161
7161
  },
7162
7162
  addHooks: function() {
7163
7163
  L.DomEvent.on(this._map._container, "touchstart", this._onTouchStart, this);
@@ -7165,16 +7165,16 @@ var H = Mh();
7165
7165
  removeHooks: function() {
7166
7166
  L.DomEvent.off(this._map._container, "touchstart", this._onTouchStart, this);
7167
7167
  },
7168
- _onTouchStart: function(E) {
7168
+ _onTouchStart: function(w) {
7169
7169
  var C = this._map;
7170
- if (!(!E.touches || E.touches.length !== 2 || C._animatingZoom || this._zooming || this._rotating)) {
7171
- var R = C.mouseEventToContainerPoint(E.touches[0]), I = C.mouseEventToContainerPoint(E.touches[1]), G = R.subtract(I);
7172
- this._centerPoint = C.getSize()._divideBy(2), this._startLatLng = C.containerPointToLatLng(this._centerPoint), this.zoom ? (C.options.touchZoom !== "center" && (this._pinchStartLatLng = C.containerPointToLatLng(R.add(I)._divideBy(2))), this._startDist = R.distanceTo(I), this._startZoom = C.getZoom(), this._zooming = !0) : this._zooming = !1, this.rotate ? (this._startTheta = Math.atan(G.x / G.y), this._startBearing = C.getBearing(), G.y < 0 && (this._startBearing += 180), this._rotating = !0) : this._rotating = !1, this._moved = !1, C._stop(), L.DomEvent.on(document, "touchmove", this._onTouchMove, this).on(document, "touchend touchcancel", this._onTouchEnd, this), L.DomEvent.preventDefault(E);
7170
+ if (!(!w.touches || w.touches.length !== 2 || C._animatingZoom || this._zooming || this._rotating)) {
7171
+ var R = C.mouseEventToContainerPoint(w.touches[0]), I = C.mouseEventToContainerPoint(w.touches[1]), G = R.subtract(I);
7172
+ this._centerPoint = C.getSize()._divideBy(2), this._startLatLng = C.containerPointToLatLng(this._centerPoint), this.zoom ? (C.options.touchZoom !== "center" && (this._pinchStartLatLng = C.containerPointToLatLng(R.add(I)._divideBy(2))), this._startDist = R.distanceTo(I), this._startZoom = C.getZoom(), this._zooming = !0) : this._zooming = !1, this.rotate ? (this._startTheta = Math.atan(G.x / G.y), this._startBearing = C.getBearing(), G.y < 0 && (this._startBearing += 180), this._rotating = !0) : this._rotating = !1, this._moved = !1, C._stop(), L.DomEvent.on(document, "touchmove", this._onTouchMove, this).on(document, "touchend touchcancel", this._onTouchEnd, this), L.DomEvent.preventDefault(w);
7173
7173
  }
7174
7174
  },
7175
- _onTouchMove: function(E) {
7176
- if (!(!E.touches || E.touches.length !== 2 || !(this._zooming || this._rotating))) {
7177
- var C = this._map, R = C.mouseEventToContainerPoint(E.touches[0]), I = C.mouseEventToContainerPoint(E.touches[1]), G = R.subtract(I), j = R.distanceTo(I) / this._startDist, X;
7175
+ _onTouchMove: function(w) {
7176
+ if (!(!w.touches || w.touches.length !== 2 || !(this._zooming || this._rotating))) {
7177
+ var C = this._map, R = C.mouseEventToContainerPoint(w.touches[0]), I = C.mouseEventToContainerPoint(w.touches[1]), G = R.subtract(I), j = R.distanceTo(I) / this._startDist, X;
7178
7178
  if (this._rotating) {
7179
7179
  var rt = Math.atan(G.x / G.y), at = (rt - this._startTheta) * L.DomUtil.RAD_TO_DEG;
7180
7180
  G.y < 0 && (at += 180), at && C.setBearing(this._startBearing - at);
@@ -7191,7 +7191,7 @@ var H = Mh();
7191
7191
  }
7192
7192
  this._moved || (C._moveStart(!0, !1), this._moved = !0), L.Util.cancelAnimFrame(this._animRequest);
7193
7193
  var yt = C._move.bind(C, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
7194
- this._animRequest = L.Util.requestAnimFrame(yt, this, !0), L.DomEvent.preventDefault(E);
7194
+ this._animRequest = L.Util.requestAnimFrame(yt, this, !0), L.DomEvent.preventDefault(w);
7195
7195
  }
7196
7196
  },
7197
7197
  _onTouchEnd: function() {
@@ -7228,8 +7228,8 @@ var H = Mh();
7228
7228
  removeHooks: function() {
7229
7229
  L.DomEvent.off(this._map._container, "wheel", this._handleShiftScroll, this), this._map.shiftKeyRotate.rotate = !1;
7230
7230
  },
7231
- _handleShiftScroll: function(E) {
7232
- E.shiftKey ? (E.preventDefault(), this._map.scrollWheelZoom.disable(), this._map.setBearing(this._map._bearing * L.DomUtil.RAD_TO_DEG + Math.sign(E.deltaY) * 5)) : this._map.scrollWheelZoom.enable();
7231
+ _handleShiftScroll: function(w) {
7232
+ w.shiftKey ? (w.preventDefault(), this._map.scrollWheelZoom.disable(), this._map.setBearing(this._map._bearing * L.DomUtil.RAD_TO_DEG + Math.sign(w.deltaY) * 5)) : this._map.scrollWheelZoom.enable();
7233
7233
  }
7234
7234
  }), L.Map.addInitHook("addHandler", "shiftKeyRotate", L.Map.ShiftKeyRotate), L.Map.addInitHook(function() {
7235
7235
  this.scrollWheelZoom.enabled() && this.shiftKeyRotate.enabled() && (this.scrollWheelZoom.disable(), this.scrollWheelZoom.enable());
@@ -7266,28 +7266,28 @@ var H = Mh();
7266
7266
  position: "topleft",
7267
7267
  closeOnZeroBearing: !0
7268
7268
  },
7269
- onAdd: function(E) {
7269
+ onAdd: function(w) {
7270
7270
  var C = this._container = L.DomUtil.create("div", "leaflet-control-rotate leaflet-bar"), R = this._arrow = L.DomUtil.create("span", "leaflet-control-rotate-arrow");
7271
7271
  R.style.backgroundImage = `url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")`, R.style.cursor = "grab", R.style.display = "block", R.style.width = "100%", R.style.height = "100%", R.style.backgroundRepeat = "no-repeat", R.style.backgroundPosition = "50%";
7272
7272
  var I = this._link = L.DomUtil.create("a", "leaflet-control-rotate-toggle", C);
7273
- return I.appendChild(R), I.href = "#", I.title = "Rotate map", L.DomEvent.on(I, "dblclick", L.DomEvent.stopPropagation).on(I, "mousedown", this._handleMouseDown, this).on(I, "click", L.DomEvent.stop).on(I, "click", this._cycleState, this).on(I, "click", this._refocusOnMap, this), L.Browser.any3d || L.DomUtil.addClass(I, "leaflet-disabled"), this._restyle(), E.on("rotate", this._restyle, this), this._follow = !1, this._canFollow = !1, this.options.closeOnZeroBearing && E.getBearing() === 0 && (C.style.display = "none"), C;
7273
+ return I.appendChild(R), I.href = "#", I.title = "Rotate map", L.DomEvent.on(I, "dblclick", L.DomEvent.stopPropagation).on(I, "mousedown", this._handleMouseDown, this).on(I, "click", L.DomEvent.stop).on(I, "click", this._cycleState, this).on(I, "click", this._refocusOnMap, this), L.Browser.any3d || L.DomUtil.addClass(I, "leaflet-disabled"), this._restyle(), w.on("rotate", this._restyle, this), this._follow = !1, this._canFollow = !1, this.options.closeOnZeroBearing && w.getBearing() === 0 && (C.style.display = "none"), C;
7274
7274
  },
7275
- onRemove: function(E) {
7276
- E.off("rotate", this._restyle, this);
7275
+ onRemove: function(w) {
7276
+ w.off("rotate", this._restyle, this);
7277
7277
  },
7278
- _handleMouseDown: function(E) {
7279
- L.DomEvent.stop(E), this.dragging = !0, this.dragstartX = E.pageX, this.dragstartY = E.pageY, L.DomEvent.on(document, "mousemove", this._handleMouseDrag, this).on(document, "mouseup", this._handleMouseUp, this);
7278
+ _handleMouseDown: function(w) {
7279
+ L.DomEvent.stop(w), this.dragging = !0, this.dragstartX = w.pageX, this.dragstartY = w.pageY, L.DomEvent.on(document, "mousemove", this._handleMouseDrag, this).on(document, "mouseup", this._handleMouseUp, this);
7280
7280
  },
7281
- _handleMouseUp: function(E) {
7282
- L.DomEvent.stop(E), this.dragging = !1, L.DomEvent.off(document, "mousemove", this._handleMouseDrag, this).off(document, "mouseup", this._handleMouseUp, this);
7281
+ _handleMouseUp: function(w) {
7282
+ L.DomEvent.stop(w), this.dragging = !1, L.DomEvent.off(document, "mousemove", this._handleMouseDrag, this).off(document, "mouseup", this._handleMouseUp, this);
7283
7283
  },
7284
- _handleMouseDrag: function(E) {
7284
+ _handleMouseDrag: function(w) {
7285
7285
  if (this.dragging) {
7286
- var C = E.clientX - this.dragstartX;
7286
+ var C = w.clientX - this.dragstartX;
7287
7287
  this._map.setBearing(C);
7288
7288
  }
7289
7289
  },
7290
- _cycleState: function(E) {
7290
+ _cycleState: function(w) {
7291
7291
  if (this._map) {
7292
7292
  var C = this._map;
7293
7293
  !C.touchRotate.enabled() && !C.compassBearing.enabled() ? C.touchRotate.enable() : C.compassBearing.enabled() ? (C.compassBearing.disable(), C.setBearing(0), this.options.closeOnZeroBearing && C.touchRotate.enable()) : (C.touchRotate.disable(), (DeviceOrientationEvent && DeviceOrientationEvent.requestPermission ? DeviceOrientationEvent.requestPermission() : Promise.resolve("granted")).then((R) => R === "granted" && C.compassBearing.enable())), this._restyle();
@@ -7297,18 +7297,18 @@ var H = Mh();
7297
7297
  if (!this._map.options.rotate)
7298
7298
  L.DomUtil.addClass(this._link, "leaflet-disabled");
7299
7299
  else {
7300
- var E = this._map, C = E.getBearing();
7301
- this._arrow.style.transform = "rotate(" + C + "deg)", C && this.options.closeOnZeroBearing && (this._container.style.display = "block"), E.compassBearing.enabled() ? this._link.style.backgroundColor = "orange" : E.touchRotate.enabled() ? this._link.style.backgroundColor = null : (this._link.style.backgroundColor = "grey", C === 0 && this.options.closeOnZeroBearing && (this._container.style.display = "none"));
7300
+ var w = this._map, C = w.getBearing();
7301
+ this._arrow.style.transform = "rotate(" + C + "deg)", C && this.options.closeOnZeroBearing && (this._container.style.display = "block"), w.compassBearing.enabled() ? this._link.style.backgroundColor = "orange" : w.touchRotate.enabled() ? this._link.style.backgroundColor = null : (this._link.style.backgroundColor = "grey", C === 0 && this.options.closeOnZeroBearing && (this._container.style.display = "none"));
7302
7302
  }
7303
7303
  }
7304
- }), L.control.rotate = function(E) {
7305
- return new L.Control.Rotate(E);
7304
+ }), L.control.rotate = function(w) {
7305
+ return new L.Control.Rotate(w);
7306
7306
  }, L.Map.mergeOptions({
7307
7307
  rotateControl: !0
7308
7308
  }), L.Map.addInitHook(function() {
7309
7309
  if (this.options.rotateControl) {
7310
- var E = typeof this.options.rotateControl == "object" ? this.options.rotateControl : {};
7311
- this.rotateControl = L.control.rotate(E), this.addControl(this.rotateControl);
7310
+ var w = typeof this.options.rotateControl == "object" ? this.options.rotateControl : {};
7311
+ this.rotateControl = L.control.rotate(w), this.addControl(this.rotateControl);
7312
7312
  }
7313
7313
  });
7314
7314
  });
@@ -7322,13 +7322,13 @@ var H = Mh();
7322
7322
  this.__data__ = [], this.size = 0;
7323
7323
  }
7324
7324
  n.exports = a;
7325
- }), E = m((i, n) => {
7325
+ }), w = m((i, n) => {
7326
7326
  function a(h, u) {
7327
7327
  return h === u || h !== h && u !== u;
7328
7328
  }
7329
7329
  n.exports = a;
7330
7330
  }), C = m((i, n) => {
7331
- var a = E();
7331
+ var a = w();
7332
7332
  function h(u, f) {
7333
7333
  for (var g = u.length; g--; ) if (a(u[g][0], f)) return g;
7334
7334
  return -1;
@@ -7339,8 +7339,8 @@ var H = Mh();
7339
7339
  function f(g) {
7340
7340
  var v = this.__data__, x = a(v, g);
7341
7341
  if (x < 0) return !1;
7342
- var w = v.length - 1;
7343
- return x == w ? v.pop() : u.call(v, x, 1), --this.size, !0;
7342
+ var E = v.length - 1;
7343
+ return x == E ? v.pop() : u.call(v, x, 1), --this.size, !0;
7344
7344
  }
7345
7345
  n.exports = f;
7346
7346
  }), I = m((i, n) => {
@@ -7366,9 +7366,9 @@ var H = Mh();
7366
7366
  }), X = m((i, n) => {
7367
7367
  var a = D(), h = R(), u = I(), f = G(), g = j();
7368
7368
  function v(x) {
7369
- var w = -1, N = x == null ? 0 : x.length;
7370
- for (this.clear(); ++w < N; ) {
7371
- var F = x[w];
7369
+ var E = -1, N = x == null ? 0 : x.length;
7370
+ for (this.clear(); ++E < N; ) {
7371
+ var F = x[E];
7372
7372
  this.set(F[0], F[1]);
7373
7373
  }
7374
7374
  }
@@ -7407,14 +7407,14 @@ var H = Mh();
7407
7407
  }), kt = m((i, n) => {
7408
7408
  var a = Zt(), h = Object.prototype, u = h.hasOwnProperty, f = h.toString, g = a ? a.toStringTag : void 0;
7409
7409
  function v(x) {
7410
- var w = u.call(x, g), N = x[g];
7410
+ var E = u.call(x, g), N = x[g];
7411
7411
  try {
7412
7412
  x[g] = void 0;
7413
7413
  var F = !0;
7414
7414
  } catch {
7415
7415
  }
7416
7416
  var J = f.call(x);
7417
- return F && (w ? x[g] = N : delete x[g]), J;
7417
+ return F && (E ? x[g] = N : delete x[g]), J;
7418
7418
  }
7419
7419
  n.exports = v;
7420
7420
  }), Xt = m((i, n) => {
@@ -7425,8 +7425,8 @@ var H = Mh();
7425
7425
  n.exports = u;
7426
7426
  }), Qt = m((i, n) => {
7427
7427
  var a = Zt(), h = kt(), u = Xt(), f = "[object Null]", g = "[object Undefined]", v = a ? a.toStringTag : void 0;
7428
- function x(w) {
7429
- return w == null ? w === void 0 ? g : f : v && v in Object(w) ? h(w) : u(w);
7428
+ function x(E) {
7429
+ return E == null ? E === void 0 ? g : f : v && v in Object(E) ? h(E) : u(E);
7430
7430
  }
7431
7431
  n.exports = x;
7432
7432
  }), Dt = m((i, n) => {
@@ -7437,9 +7437,9 @@ var H = Mh();
7437
7437
  n.exports = a;
7438
7438
  }), Vt = m((i, n) => {
7439
7439
  var a = Qt(), h = Dt(), u = "[object AsyncFunction]", f = "[object Function]", g = "[object GeneratorFunction]", v = "[object Proxy]";
7440
- function x(w) {
7441
- if (!h(w)) return !1;
7442
- var N = a(w);
7440
+ function x(E) {
7441
+ if (!h(E)) return !1;
7442
+ var N = a(E);
7443
7443
  return N == f || N == g || N == u || N == v;
7444
7444
  }
7445
7445
  n.exports = x;
@@ -7472,7 +7472,7 @@ var H = Mh();
7472
7472
  }
7473
7473
  n.exports = u;
7474
7474
  }), Pe = m((i, n) => {
7475
- var a = Vt(), h = Ae(), u = Dt(), f = ka(), g = /[\\^$.*+?()[\]{}|]/g, v = /^\[object .+?Constructor\]$/, x = Function.prototype, w = Object.prototype, N = x.toString, F = w.hasOwnProperty, J = RegExp("^" + N.call(F).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
7475
+ var a = Vt(), h = Ae(), u = Dt(), f = ka(), g = /[\\^$.*+?()[\]{}|]/g, v = /^\[object .+?Constructor\]$/, x = Function.prototype, E = Object.prototype, N = x.toString, F = E.hasOwnProperty, J = RegExp("^" + N.call(F).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
7476
7476
  function nt(lt) {
7477
7477
  if (!u(lt) || h(lt)) return !1;
7478
7478
  var dt = a(lt) ? J : v;
@@ -7514,8 +7514,8 @@ var H = Mh();
7514
7514
  function g(v) {
7515
7515
  var x = this.__data__;
7516
7516
  if (a) {
7517
- var w = x[v];
7518
- return w === h ? void 0 : w;
7517
+ var E = x[v];
7518
+ return E === h ? void 0 : E;
7519
7519
  }
7520
7520
  return f.call(x, v) ? x[v] : void 0;
7521
7521
  }
@@ -7537,9 +7537,9 @@ var H = Mh();
7537
7537
  }), Rt = m((i, n) => {
7538
7538
  var a = Jt(), h = xe(), u = Le(), f = re(), g = jt();
7539
7539
  function v(x) {
7540
- var w = -1, N = x == null ? 0 : x.length;
7541
- for (this.clear(); ++w < N; ) {
7542
- var F = x[w];
7540
+ var E = -1, N = x == null ? 0 : x.length;
7541
+ for (this.clear(); ++E < N; ) {
7542
+ var F = x[E];
7543
7543
  this.set(F[0], F[1]);
7544
7544
  }
7545
7545
  }
@@ -7592,9 +7592,9 @@ var H = Mh();
7592
7592
  }), fr = m((i, n) => {
7593
7593
  var a = ei(), h = as(), u = os(), f = Ji(), g = hs();
7594
7594
  function v(x) {
7595
- var w = -1, N = x == null ? 0 : x.length;
7596
- for (this.clear(); ++w < N; ) {
7597
- var F = x[w];
7595
+ var E = -1, N = x == null ? 0 : x.length;
7596
+ for (this.clear(); ++E < N; ) {
7597
+ var F = x[E];
7598
7598
  this.set(F[0], F[1]);
7599
7599
  }
7600
7600
  }
@@ -7602,19 +7602,19 @@ var H = Mh();
7602
7602
  }), pr = m((i, n) => {
7603
7603
  var a = X(), h = rs(), u = fr(), f = 200;
7604
7604
  function g(v, x) {
7605
- var w = this.__data__;
7606
- if (w instanceof a) {
7607
- var N = w.__data__;
7608
- if (!h || N.length < f - 1) return N.push([v, x]), this.size = ++w.size, this;
7609
- w = this.__data__ = new u(N);
7605
+ var E = this.__data__;
7606
+ if (E instanceof a) {
7607
+ var N = E.__data__;
7608
+ if (!h || N.length < f - 1) return N.push([v, x]), this.size = ++E.size, this;
7609
+ E = this.__data__ = new u(N);
7610
7610
  }
7611
- return w.set(v, x), this.size = w.size, this;
7611
+ return E.set(v, x), this.size = E.size, this;
7612
7612
  }
7613
7613
  n.exports = g;
7614
7614
  }), mr = m((i, n) => {
7615
7615
  var a = X(), h = rt(), u = at(), f = ct(), g = yt(), v = pr();
7616
- function x(w) {
7617
- var N = this.__data__ = new a(w);
7616
+ function x(E) {
7617
+ var N = this.__data__ = new a(E);
7618
7618
  this.size = N.size;
7619
7619
  }
7620
7620
  x.prototype.clear = h, x.prototype.delete = u, x.prototype.get = f, x.prototype.has = g, x.prototype.set = v, n.exports = x;
@@ -7634,7 +7634,7 @@ var H = Mh();
7634
7634
  }
7635
7635
  n.exports = h;
7636
7636
  }), _r = m((i, n) => {
7637
- var a = Oi(), h = E();
7637
+ var a = Oi(), h = w();
7638
7638
  function u(f, g, v) {
7639
7639
  (v !== void 0 && !h(f[g], v) || v === void 0 && !(g in f)) && a(f, g, v);
7640
7640
  }
@@ -7642,8 +7642,8 @@ var H = Mh();
7642
7642
  }), gr = m((i, n) => {
7643
7643
  function a(h) {
7644
7644
  return function(u, f, g) {
7645
- for (var v = -1, x = Object(u), w = g(u), N = w.length; N--; ) {
7646
- var F = w[h ? N : ++v];
7645
+ for (var v = -1, x = Object(u), E = g(u), N = E.length; N--; ) {
7646
+ var F = E[h ? N : ++v];
7647
7647
  if (f(x[F], F, x) === !1) break;
7648
7648
  }
7649
7649
  return u;
@@ -7655,10 +7655,10 @@ var H = Mh();
7655
7655
  n.exports = h;
7656
7656
  }), Ar = m((i, n) => {
7657
7657
  var a = xt(), h = typeof i == "object" && i && !i.nodeType && i, u = h && typeof n == "object" && n && !n.nodeType && n, f = u && u.exports === h, g = f ? a.Buffer : void 0, v = g ? g.allocUnsafe : void 0;
7658
- function x(w, N) {
7659
- if (N) return w.slice();
7660
- var F = w.length, J = v ? v(F) : new w.constructor(F);
7661
- return w.copy(J), J;
7658
+ function x(E, N) {
7659
+ if (N) return E.slice();
7660
+ var F = E.length, J = v ? v(F) : new E.constructor(F);
7661
+ return E.copy(J), J;
7662
7662
  }
7663
7663
  n.exports = x;
7664
7664
  }), yr = m((i, n) => {
@@ -7766,23 +7766,23 @@ var H = Mh();
7766
7766
  }
7767
7767
  n.exports = a;
7768
7768
  }), ds = m((i, n) => {
7769
- var a = xt(), h = Sa(), u = typeof i == "object" && i && !i.nodeType && i, f = u && typeof n == "object" && n && !n.nodeType && n, g = f && f.exports === u, v = g ? a.Buffer : void 0, x = v ? v.isBuffer : void 0, w = x || h;
7770
- n.exports = w;
7769
+ var a = xt(), h = Sa(), u = typeof i == "object" && i && !i.nodeType && i, f = u && typeof n == "object" && n && !n.nodeType && n, g = f && f.exports === u, v = g ? a.Buffer : void 0, x = v ? v.isBuffer : void 0, E = x || h;
7770
+ n.exports = E;
7771
7771
  }), wr = m((i, n) => {
7772
- var a = Qt(), h = xr(), u = Ii(), f = "[object Object]", g = Function.prototype, v = Object.prototype, x = g.toString, w = v.hasOwnProperty, N = x.call(Object);
7772
+ var a = Qt(), h = xr(), u = Ii(), f = "[object Object]", g = Function.prototype, v = Object.prototype, x = g.toString, E = v.hasOwnProperty, N = x.call(Object);
7773
7773
  function F(J) {
7774
7774
  if (!u(J) || a(J) != f) return !1;
7775
7775
  var nt = h(J);
7776
7776
  if (nt === null) return !0;
7777
- var lt = w.call(nt, "constructor") && nt.constructor;
7777
+ var lt = E.call(nt, "constructor") && nt.constructor;
7778
7778
  return typeof lt == "function" && lt instanceof lt && x.call(lt) == N;
7779
7779
  }
7780
7780
  n.exports = F;
7781
7781
  }), Er = m((i, n) => {
7782
- var a = Qt(), h = Cr(), u = Ii(), f = "[object Arguments]", g = "[object Array]", v = "[object Boolean]", x = "[object Date]", w = "[object Error]", N = "[object Function]", F = "[object Map]", J = "[object Number]", nt = "[object Object]", lt = "[object RegExp]", dt = "[object Set]", At = "[object String]", zt = "[object WeakMap]", z = "[object ArrayBuffer]", U = "[object DataView]", K = "[object Float32Array]", it = "[object Float64Array]", $ = "[object Int8Array]", et = "[object Int16Array]", b = "[object Int32Array]", P = "[object Uint8Array]", T = "[object Uint8ClampedArray]", B = "[object Uint16Array]", S = "[object Uint32Array]", O = {};
7783
- O[K] = O[it] = O[$] = O[et] = O[b] = O[P] = O[T] = O[B] = O[S] = !0, O[f] = O[g] = O[z] = O[v] = O[U] = O[x] = O[w] = O[N] = O[F] = O[J] = O[nt] = O[lt] = O[dt] = O[At] = O[zt] = !1;
7784
- function V(q) {
7785
- return u(q) && h(q.length) && !!O[a(q)];
7782
+ var a = Qt(), h = Cr(), u = Ii(), f = "[object Arguments]", g = "[object Array]", v = "[object Boolean]", x = "[object Date]", E = "[object Error]", N = "[object Function]", F = "[object Map]", J = "[object Number]", nt = "[object Object]", lt = "[object RegExp]", dt = "[object Set]", At = "[object String]", zt = "[object WeakMap]", z = "[object ArrayBuffer]", U = "[object DataView]", K = "[object Float32Array]", it = "[object Float64Array]", $ = "[object Int8Array]", et = "[object Int16Array]", b = "[object Int32Array]", P = "[object Uint8Array]", T = "[object Uint8ClampedArray]", B = "[object Uint16Array]", S = "[object Uint32Array]", O = {};
7783
+ O[K] = O[it] = O[$] = O[et] = O[b] = O[P] = O[T] = O[B] = O[S] = !0, O[f] = O[g] = O[z] = O[v] = O[U] = O[x] = O[E] = O[N] = O[F] = O[J] = O[nt] = O[lt] = O[dt] = O[At] = O[zt] = !1;
7784
+ function V(H) {
7785
+ return u(H) && h(H.length) && !!O[a(H)];
7786
7786
  }
7787
7787
  n.exports = V;
7788
7788
  }), Da = m((i, n) => {
@@ -7810,20 +7810,20 @@ var H = Mh();
7810
7810
  }
7811
7811
  n.exports = a;
7812
7812
  }), Ia = m((i, n) => {
7813
- var a = Oi(), h = E(), u = Object.prototype, f = u.hasOwnProperty;
7814
- function g(v, x, w) {
7813
+ var a = Oi(), h = w(), u = Object.prototype, f = u.hasOwnProperty;
7814
+ function g(v, x, E) {
7815
7815
  var N = v[x];
7816
- (!(f.call(v, x) && h(N, w)) || w === void 0 && !(x in v)) && a(v, x, w);
7816
+ (!(f.call(v, x) && h(N, E)) || E === void 0 && !(x in v)) && a(v, x, E);
7817
7817
  }
7818
7818
  n.exports = g;
7819
7819
  }), Ra = m((i, n) => {
7820
7820
  var a = Ia(), h = Oi();
7821
7821
  function u(f, g, v, x) {
7822
- var w = !v;
7822
+ var E = !v;
7823
7823
  v || (v = {});
7824
7824
  for (var N = -1, F = g.length; ++N < F; ) {
7825
7825
  var J = g[N], nt = x ? x(v[J], f[J], J, v, f) : void 0;
7826
- nt === void 0 && (nt = f[J]), w ? h(v, J, nt) : a(v, J, nt);
7826
+ nt === void 0 && (nt = f[J]), E ? h(v, J, nt) : a(v, J, nt);
7827
7827
  }
7828
7828
  return v;
7829
7829
  }
@@ -7842,10 +7842,10 @@ var H = Mh();
7842
7842
  }
7843
7843
  n.exports = u;
7844
7844
  }), Fa = m((i, n) => {
7845
- var a = fs(), h = yn(), u = Ri(), f = ds(), g = Br(), v = kr(), x = Object.prototype, w = x.hasOwnProperty;
7845
+ var a = fs(), h = yn(), u = Ri(), f = ds(), g = Br(), v = kr(), x = Object.prototype, E = x.hasOwnProperty;
7846
7846
  function N(F, J) {
7847
7847
  var nt = u(F), lt = !nt && h(F), dt = !nt && !lt && f(F), At = !nt && !lt && !dt && v(F), zt = nt || lt || dt || At, z = zt ? a(F.length, String) : [], U = z.length;
7848
- for (var K in F) (J || w.call(F, K)) && !(zt && (K == "length" || dt && (K == "offset" || K == "parent") || At && (K == "buffer" || K == "byteLength" || K == "byteOffset") || g(K, U))) && z.push(K);
7848
+ for (var K in F) (J || E.call(F, K)) && !(zt && (K == "length" || dt && (K == "offset" || K == "parent") || At && (K == "buffer" || K == "byteLength" || K == "byteOffset") || g(K, U))) && z.push(K);
7849
7849
  return z;
7850
7850
  }
7851
7851
  n.exports = N;
@@ -7860,8 +7860,8 @@ var H = Mh();
7860
7860
  var a = Dt(), h = cs(), u = za(), f = Object.prototype, g = f.hasOwnProperty;
7861
7861
  function v(x) {
7862
7862
  if (!a(x)) return u(x);
7863
- var w = h(x), N = [];
7864
- for (var F in x) F == "constructor" && (w || !g.call(x, F)) || N.push(F);
7863
+ var E = h(x), N = [];
7864
+ for (var F in x) F == "constructor" && (E || !g.call(x, F)) || N.push(F);
7865
7865
  return N;
7866
7866
  }
7867
7867
  n.exports = v;
@@ -7878,7 +7878,7 @@ var H = Mh();
7878
7878
  }
7879
7879
  n.exports = u;
7880
7880
  }), Tr = m((i, n) => {
7881
- var a = _r(), h = Ar(), u = Ba(), f = us(), g = Lr(), v = yn(), x = Ri(), w = Ta(), N = ds(), F = Vt(), J = Dt(), nt = wr(), lt = kr(), dt = Pr(), At = Mt();
7881
+ var a = _r(), h = Ar(), u = Ba(), f = us(), g = Lr(), v = yn(), x = Ri(), E = Ta(), N = ds(), F = Vt(), J = Dt(), nt = wr(), lt = kr(), dt = Pr(), At = Mt();
7882
7882
  function zt(z, U, K, it, $, et, b) {
7883
7883
  var P = dt(z, K), T = dt(U, K), B = b.get(T);
7884
7884
  if (B) {
@@ -7887,24 +7887,24 @@ var H = Mh();
7887
7887
  }
7888
7888
  var S = et ? et(P, T, K + "", z, U, b) : void 0, O = S === void 0;
7889
7889
  if (O) {
7890
- var V = x(T), q = !V && N(T), W = !V && !q && lt(T);
7891
- S = T, V || q || W ? x(P) ? S = P : w(P) ? S = f(P) : q ? (O = !1, S = h(T, !0)) : W ? (O = !1, S = u(T, !0)) : S = [] : nt(T) || v(T) ? (S = P, v(P) ? S = At(P) : (!J(P) || F(P)) && (S = g(T))) : O = !1;
7890
+ var V = x(T), H = !V && N(T), W = !V && !H && lt(T);
7891
+ S = T, V || H || W ? x(P) ? S = P : E(P) ? S = f(P) : H ? (O = !1, S = h(T, !0)) : W ? (O = !1, S = u(T, !0)) : S = [] : nt(T) || v(T) ? (S = P, v(P) ? S = At(P) : (!J(P) || F(P)) && (S = g(T))) : O = !1;
7892
7892
  }
7893
7893
  O && (b.set(T, S), $(S, T, it, et, b), b.delete(T)), a(z, K, S);
7894
7894
  }
7895
7895
  n.exports = zt;
7896
7896
  }), Sr = m((i, n) => {
7897
7897
  var a = mr(), h = _r(), u = ls(), f = Tr(), g = Dt(), v = Ue(), x = Pr();
7898
- function w(N, F, J, nt, lt) {
7898
+ function E(N, F, J, nt, lt) {
7899
7899
  N !== F && u(F, function(dt, At) {
7900
- if (lt || (lt = new a()), g(dt)) f(N, F, At, J, w, nt, lt);
7900
+ if (lt || (lt = new a()), g(dt)) f(N, F, At, J, E, nt, lt);
7901
7901
  else {
7902
7902
  var zt = nt ? nt(x(N, At), dt, At + "", N, F, lt) : void 0;
7903
7903
  zt === void 0 && (zt = dt), h(N, At, zt);
7904
7904
  }
7905
7905
  }, v);
7906
7906
  }
7907
- n.exports = w;
7907
+ n.exports = E;
7908
7908
  }), ps = m((i, n) => {
7909
7909
  function a(h) {
7910
7910
  return h;
@@ -7929,9 +7929,9 @@ var H = Mh();
7929
7929
  var a = Dr(), h = Math.max;
7930
7930
  function u(f, g, v) {
7931
7931
  return g = h(g === void 0 ? f.length - 1 : g, 0), function() {
7932
- for (var x = arguments, w = -1, N = h(x.length - g, 0), F = Array(N); ++w < N; ) F[w] = x[g + w];
7933
- w = -1;
7934
- for (var J = Array(g + 1); ++w < g; ) J[w] = x[w];
7932
+ for (var x = arguments, E = -1, N = h(x.length - g, 0), F = Array(N); ++E < N; ) F[E] = x[g + E];
7933
+ E = -1;
7934
+ for (var J = Array(g + 1); ++E < g; ) J[E] = x[E];
7935
7935
  return J[g] = v(F), a(f, this, J);
7936
7936
  };
7937
7937
  }
@@ -7953,8 +7953,8 @@ var H = Mh();
7953
7953
  function f(g) {
7954
7954
  var v = 0, x = 0;
7955
7955
  return function() {
7956
- var w = u(), N = h - (w - x);
7957
- if (x = w, N > 0) {
7956
+ var E = u(), N = h - (E - x);
7957
+ if (x = E, N > 0) {
7958
7958
  if (++v >= a) return arguments[0];
7959
7959
  } else v = 0;
7960
7960
  return g.apply(void 0, arguments);
@@ -7971,19 +7971,19 @@ var H = Mh();
7971
7971
  }
7972
7972
  n.exports = f;
7973
7973
  }), ja = m((i, n) => {
7974
- var a = E(), h = vi(), u = Br(), f = Dt();
7975
- function g(v, x, w) {
7976
- if (!f(w)) return !1;
7974
+ var a = w(), h = vi(), u = Br(), f = Dt();
7975
+ function g(v, x, E) {
7976
+ if (!f(E)) return !1;
7977
7977
  var N = typeof x;
7978
- return (N == "number" ? h(w) && u(x, w.length) : N == "string" && x in w) ? a(w[x], v) : !1;
7978
+ return (N == "number" ? h(E) && u(x, E.length) : N == "string" && x in E) ? a(E[x], v) : !1;
7979
7979
  }
7980
7980
  n.exports = g;
7981
7981
  }), Ua = m((i, n) => {
7982
7982
  var a = Za(), h = ja();
7983
7983
  function u(f) {
7984
7984
  return a(function(g, v) {
7985
- var x = -1, w = v.length, N = w > 1 ? v[w - 1] : void 0, F = w > 2 ? v[2] : void 0;
7986
- for (N = f.length > 3 && typeof N == "function" ? (w--, N) : void 0, F && h(v[0], v[1], F) && (N = w < 3 ? void 0 : N, w = 1), g = Object(g); ++x < w; ) {
7985
+ var x = -1, E = v.length, N = E > 1 ? v[E - 1] : void 0, F = E > 2 ? v[2] : void 0;
7986
+ for (N = f.length > 3 && typeof N == "function" ? (E--, N) : void 0, F && h(v[0], v[1], F) && (N = E < 3 ? void 0 : N, E = 1), g = Object(g); ++x < E; ) {
7987
7987
  var J = v[x];
7988
7988
  J && f(g, J, x, N);
7989
7989
  }
@@ -8006,8 +8006,8 @@ var H = Mh();
8006
8006
  var a = Ri(), h = _s(), u = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, f = /^\w*$/;
8007
8007
  function g(v, x) {
8008
8008
  if (a(v)) return !1;
8009
- var w = typeof v;
8010
- return w == "number" || w == "symbol" || w == "boolean" || v == null || h(v) ? !0 : f.test(v) || !u.test(v) || x != null && v in Object(x);
8009
+ var E = typeof v;
8010
+ return E == "number" || E == "symbol" || E == "boolean" || v == null || h(v) ? !0 : f.test(v) || !u.test(v) || x != null && v in Object(x);
8011
8011
  }
8012
8012
  n.exports = g;
8013
8013
  }), qa = m((i, n) => {
@@ -8015,10 +8015,10 @@ var H = Mh();
8015
8015
  function u(f, g) {
8016
8016
  if (typeof f != "function" || g != null && typeof g != "function") throw new TypeError(h);
8017
8017
  var v = function() {
8018
- var x = arguments, w = g ? g.apply(this, x) : x[0], N = v.cache;
8019
- if (N.has(w)) return N.get(w);
8018
+ var x = arguments, E = g ? g.apply(this, x) : x[0], N = v.cache;
8019
+ if (N.has(E)) return N.get(E);
8020
8020
  var F = f.apply(this, x);
8021
- return v.cache = N.set(w, F) || N, F;
8021
+ return v.cache = N.set(E, F) || N, F;
8022
8022
  };
8023
8023
  return v.cache = new (u.Cache || a)(), v;
8024
8024
  }
@@ -8035,8 +8035,8 @@ var H = Mh();
8035
8035
  }), Va = m((i, n) => {
8036
8036
  var a = Ha(), h = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, u = /\\(\\)?/g, f = a(function(g) {
8037
8037
  var v = [];
8038
- return g.charCodeAt(0) === 46 && v.push(""), g.replace(h, function(x, w, N, F) {
8039
- v.push(N ? F.replace(u, "$1") : w || x);
8038
+ return g.charCodeAt(0) === 46 && v.push(""), g.replace(h, function(x, E, N, F) {
8039
+ v.push(N ? F.replace(u, "$1") : E || x);
8040
8040
  }), v;
8041
8041
  });
8042
8042
  n.exports = f;
@@ -8048,14 +8048,14 @@ var H = Mh();
8048
8048
  n.exports = a;
8049
8049
  }), Ka = m((i, n) => {
8050
8050
  var a = Zt(), h = Wa(), u = Ri(), f = _s(), g = 1 / 0, v = a ? a.prototype : void 0, x = v ? v.toString : void 0;
8051
- function w(N) {
8051
+ function E(N) {
8052
8052
  if (typeof N == "string") return N;
8053
- if (u(N)) return h(N, w) + "";
8053
+ if (u(N)) return h(N, E) + "";
8054
8054
  if (f(N)) return x ? x.call(N) : "";
8055
8055
  var F = N + "";
8056
8056
  return F == "0" && 1 / N == -g ? "-0" : F;
8057
8057
  }
8058
- n.exports = w;
8058
+ n.exports = E;
8059
8059
  }), gs = m((i, n) => {
8060
8060
  var a = Ka();
8061
8061
  function h(u) {
@@ -8099,7 +8099,7 @@ var H = Mh();
8099
8099
  (function et(b, P, T, B, S) {
8100
8100
  for (; B > T; ) {
8101
8101
  if (B - T > 600) {
8102
- var O = B - T + 1, V = P - T + 1, q = Math.log(O), W = 0.5 * Math.exp(2 * q / 3), Y = 0.5 * Math.sqrt(q * W * (O - W) / O) * (V - O / 2 < 0 ? -1 : 1), Q = Math.max(T, Math.floor(P - V * W / O + Y)), ot = Math.min(B, Math.floor(P + (O - V) * W / O + Y));
8102
+ var O = B - T + 1, V = P - T + 1, H = Math.log(O), W = 0.5 * Math.exp(2 * H / 3), Y = 0.5 * Math.sqrt(H * W * (O - W) / O) * (V - O / 2 < 0 ? -1 : 1), Q = Math.max(T, Math.floor(P - V * W / O + Y)), ot = Math.min(B, Math.floor(P + (O - V) * W / O + Y));
8103
8103
  et(b, P, Q, ot, S);
8104
8104
  }
8105
8105
  var gt = b[P], vt = T, bt = B;
@@ -8133,11 +8133,11 @@ var H = Mh();
8133
8133
  $ || ($ = At(null)), $.minX = 1 / 0, $.minY = 1 / 0, $.maxX = -1 / 0, $.maxY = -1 / 0;
8134
8134
  for (var et = U; et < K; et++) {
8135
8135
  var b = z.children[et];
8136
- w($, z.leaf ? it(b) : b);
8136
+ E($, z.leaf ? it(b) : b);
8137
8137
  }
8138
8138
  return $;
8139
8139
  }
8140
- function w(z, U) {
8140
+ function E(z, U) {
8141
8141
  return z.minX = Math.min(z.minX, U.minX), z.minY = Math.min(z.minY, U.minY), z.maxX = Math.max(z.maxX, U.maxX), z.maxY = Math.max(z.maxY, U.maxY), z;
8142
8142
  }
8143
8143
  function N(z, U) {
@@ -8265,7 +8265,7 @@ var H = Mh();
8265
8265
  return U;
8266
8266
  }, f.prototype._insert = function(z, U, K) {
8267
8267
  var it = K ? z : this.toBBox(z), $ = [], et = this._chooseSubtree(it, this.data, U, $);
8268
- for (et.children.push(z), w(et, it); U >= 0 && $[U].children.length > this._maxEntries; ) this._split($, U), U--;
8268
+ for (et.children.push(z), E(et, it); U >= 0 && $[U].children.length > this._maxEntries; ) this._split($, U), U--;
8269
8269
  this._adjustParentBBoxes(it, $, U);
8270
8270
  }, f.prototype._split = function(z, U) {
8271
8271
  var K = z[U], it = K.children.length, $ = this._minEntries;
@@ -8276,7 +8276,7 @@ var H = Mh();
8276
8276
  this.data = At([z, U]), this.data.height = z.height + 1, this.data.leaf = !1, v(this.data, this.toBBox);
8277
8277
  }, f.prototype._chooseSplitIndex = function(z, U, K) {
8278
8278
  for (var it, $, et, b, P, T, B, S = 1 / 0, O = 1 / 0, V = U; V <= K - U; V++) {
8279
- var q = x(z, 0, V, this.toBBox), W = x(z, V, K, this.toBBox), Y = ($ = q, et = W, b = void 0, P = void 0, T = void 0, B = void 0, b = Math.max($.minX, et.minX), P = Math.max($.minY, et.minY), T = Math.min($.maxX, et.maxX), B = Math.min($.maxY, et.maxY), Math.max(0, T - b) * Math.max(0, B - P)), Q = J(q) + J(W);
8279
+ var H = x(z, 0, V, this.toBBox), W = x(z, V, K, this.toBBox), Y = ($ = H, et = W, b = void 0, P = void 0, T = void 0, B = void 0, b = Math.max($.minX, et.minX), P = Math.max($.minY, et.minY), T = Math.min($.maxX, et.maxX), B = Math.min($.maxY, et.maxY), Math.max(0, T - b) * Math.max(0, B - P)), Q = J(H) + J(W);
8280
8280
  Y < S ? (S = Y, it = V, O = Q < O ? Q : O) : Y === S && Q < O && (O = Q, it = V);
8281
8281
  }
8282
8282
  return it || K - U;
@@ -8287,15 +8287,15 @@ var H = Mh();
8287
8287
  z.children.sort(it);
8288
8288
  for (var $ = this.toBBox, et = x(z, 0, U, $), b = x(z, K - U, K, $), P = nt(et) + nt(b), T = U; T < K - U; T++) {
8289
8289
  var B = z.children[T];
8290
- w(et, z.leaf ? $(B) : B), P += nt(et);
8290
+ E(et, z.leaf ? $(B) : B), P += nt(et);
8291
8291
  }
8292
8292
  for (var S = K - U - 1; S >= U; S--) {
8293
8293
  var O = z.children[S];
8294
- w(b, z.leaf ? $(O) : O), P += nt(b);
8294
+ E(b, z.leaf ? $(O) : O), P += nt(b);
8295
8295
  }
8296
8296
  return P;
8297
8297
  }, f.prototype._adjustParentBBoxes = function(z, U, K) {
8298
- for (var it = K; it >= 0; it--) w(U[it], z);
8298
+ for (var it = K; it >= 0; it--) E(U[it], z);
8299
8299
  }, f.prototype._condense = function(z) {
8300
8300
  for (var U = z.length - 1, K = void 0; U >= 0; U--) z[U].children.length === 0 ? U > 0 ? (K = z[U - 1].children).splice(K.indexOf(z[U]), 1) : this.clear() : v(z[U], this.toBBox);
8301
8301
  }, f;
@@ -8337,15 +8337,15 @@ var H = Mh();
8337
8337
  }
8338
8338
  i.point = h;
8339
8339
  function u(B, S, O) {
8340
- return O === void 0 && (O = {}), w(B.map(function(V) {
8340
+ return O === void 0 && (O = {}), E(B.map(function(V) {
8341
8341
  return h(V, S);
8342
8342
  }), O);
8343
8343
  }
8344
8344
  i.points = u;
8345
8345
  function f(B, S, O) {
8346
8346
  O === void 0 && (O = {});
8347
- for (var V = 0, q = B; V < q.length; V++) {
8348
- var W = q[V];
8347
+ for (var V = 0, H = B; V < H.length; V++) {
8348
+ var W = H[V];
8349
8349
  if (W.length < 4) throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");
8350
8350
  for (var Y = 0; Y < W[W.length - 1].length; Y++) if (W[W.length - 1][Y] !== W[0][Y]) throw new Error("First and last Position are not equivalent.");
8351
8351
  }
@@ -8354,7 +8354,7 @@ var H = Mh();
8354
8354
  }
8355
8355
  i.polygon = f;
8356
8356
  function g(B, S, O) {
8357
- return O === void 0 && (O = {}), w(B.map(function(V) {
8357
+ return O === void 0 && (O = {}), E(B.map(function(V) {
8358
8358
  return f(V, S);
8359
8359
  }), O);
8360
8360
  }
@@ -8366,17 +8366,17 @@ var H = Mh();
8366
8366
  }
8367
8367
  i.lineString = v;
8368
8368
  function x(B, S, O) {
8369
- return O === void 0 && (O = {}), w(B.map(function(V) {
8369
+ return O === void 0 && (O = {}), E(B.map(function(V) {
8370
8370
  return v(V, S);
8371
8371
  }), O);
8372
8372
  }
8373
8373
  i.lineStrings = x;
8374
- function w(B, S) {
8374
+ function E(B, S) {
8375
8375
  S === void 0 && (S = {});
8376
8376
  var O = { type: "FeatureCollection" };
8377
8377
  return S.id && (O.id = S.id), S.bbox && (O.bbox = S.bbox), O.features = B, O;
8378
8378
  }
8379
- i.featureCollection = w;
8379
+ i.featureCollection = E;
8380
8380
  function N(B, S, O) {
8381
8381
  O === void 0 && (O = {});
8382
8382
  var V = { type: "MultiLineString", coordinates: B };
@@ -8449,9 +8449,9 @@ var H = Mh();
8449
8449
  if (S === void 0 && (S = "meters"), O === void 0 && (O = "kilometers"), !(B >= 0)) throw new Error("area must be a positive number");
8450
8450
  var V = i.areaFactors[S];
8451
8451
  if (!V) throw new Error("invalid original units");
8452
- var q = i.areaFactors[O];
8453
- if (!q) throw new Error("invalid final units");
8454
- return B / V * q;
8452
+ var H = i.areaFactors[O];
8453
+ if (!H) throw new Error("invalid final units");
8454
+ return B / V * H;
8455
8455
  }
8456
8456
  i.convertArea = $;
8457
8457
  function et(B) {
@@ -8480,11 +8480,11 @@ var H = Mh();
8480
8480
  Object.defineProperty(i, "__esModule", { value: !0 });
8481
8481
  var n = Yt();
8482
8482
  function a(U, K, it) {
8483
- if (U !== null) for (var $, et, b, P, T, B, S, O = 0, V = 0, q, W = U.type, Y = W === "FeatureCollection", Q = W === "Feature", ot = Y ? U.features.length : 1, gt = 0; gt < ot; gt++) {
8484
- S = Y ? U.features[gt].geometry : Q ? U.geometry : U, q = S ? S.type === "GeometryCollection" : !1, T = q ? S.geometries.length : 1;
8483
+ if (U !== null) for (var $, et, b, P, T, B, S, O = 0, V = 0, H, W = U.type, Y = W === "FeatureCollection", Q = W === "Feature", ot = Y ? U.features.length : 1, gt = 0; gt < ot; gt++) {
8484
+ S = Y ? U.features[gt].geometry : Q ? U.geometry : U, H = S ? S.type === "GeometryCollection" : !1, T = H ? S.geometries.length : 1;
8485
8485
  for (var vt = 0; vt < T; vt++) {
8486
8486
  var bt = 0, Ut = 0;
8487
- if (P = q ? S.geometries[vt] : S, P !== null) {
8487
+ if (P = H ? S.geometries[vt] : S, P !== null) {
8488
8488
  B = P.coordinates;
8489
8489
  var Kt = P.type;
8490
8490
  switch (O = it && (Kt === "Polygon" || Kt === "MultiPolygon") ? 1 : 0, Kt) {
@@ -8574,12 +8574,12 @@ var H = Mh();
8574
8574
  K.push(it);
8575
8575
  }), K;
8576
8576
  }
8577
- function w(U, K) {
8578
- var it, $, et, b, P, T, B, S, O, V, q = 0, W = U.type === "FeatureCollection", Y = U.type === "Feature", Q = W ? U.features.length : 1;
8577
+ function E(U, K) {
8578
+ var it, $, et, b, P, T, B, S, O, V, H = 0, W = U.type === "FeatureCollection", Y = U.type === "Feature", Q = W ? U.features.length : 1;
8579
8579
  for (it = 0; it < Q; it++) {
8580
8580
  for (T = W ? U.features[it].geometry : Y ? U.geometry : U, S = W ? U.features[it].properties : Y ? U.properties : {}, O = W ? U.features[it].bbox : Y ? U.bbox : void 0, V = W ? U.features[it].id : Y ? U.id : void 0, B = T ? T.type === "GeometryCollection" : !1, P = B ? T.geometries.length : 1, et = 0; et < P; et++) {
8581
8581
  if (b = B ? T.geometries[et] : T, b === null) {
8582
- if (K(null, q, S, O, V) === !1) return !1;
8582
+ if (K(null, H, S, O, V) === !1) return !1;
8583
8583
  continue;
8584
8584
  }
8585
8585
  switch (b.type) {
@@ -8589,28 +8589,28 @@ var H = Mh();
8589
8589
  case "Polygon":
8590
8590
  case "MultiLineString":
8591
8591
  case "MultiPolygon": {
8592
- if (K(b, q, S, O, V) === !1) return !1;
8592
+ if (K(b, H, S, O, V) === !1) return !1;
8593
8593
  break;
8594
8594
  }
8595
8595
  case "GeometryCollection": {
8596
- for ($ = 0; $ < b.geometries.length; $++) if (K(b.geometries[$], q, S, O, V) === !1) return !1;
8596
+ for ($ = 0; $ < b.geometries.length; $++) if (K(b.geometries[$], H, S, O, V) === !1) return !1;
8597
8597
  break;
8598
8598
  }
8599
8599
  default:
8600
8600
  throw new Error("Unknown Geometry Type");
8601
8601
  }
8602
8602
  }
8603
- q++;
8603
+ H++;
8604
8604
  }
8605
8605
  }
8606
8606
  function N(U, K, it) {
8607
8607
  var $ = it;
8608
- return w(U, function(et, b, P, T, B) {
8608
+ return E(U, function(et, b, P, T, B) {
8609
8609
  b === 0 && it === void 0 ? $ = et : $ = K($, et, b, P, T, B);
8610
8610
  }), $;
8611
8611
  }
8612
8612
  function F(U, K) {
8613
- w(U, function(it, $, et, b, P) {
8613
+ E(U, function(it, $, et, b, P) {
8614
8614
  var T = it === null ? null : it.type;
8615
8615
  switch (T) {
8616
8616
  case null:
@@ -8650,7 +8650,7 @@ var H = Mh();
8650
8650
  var P = it.geometry.type;
8651
8651
  if (!(P === "Point" || P === "MultiPoint")) {
8652
8652
  var T, B = 0, S = 0, O = 0;
8653
- if (a(it, function(V, q, W, Y, Q) {
8653
+ if (a(it, function(V, H, W, Y, Q) {
8654
8654
  if (T === void 0 || $ > B || Y > S || Q > O) {
8655
8655
  T = V, B = $, S = Y, O = Q, b = 0;
8656
8656
  return;
@@ -8770,7 +8770,7 @@ var H = Mh();
8770
8770
  }
8771
8771
  throw new Error("geojson is invalid");
8772
8772
  }
8773
- i.coordAll = x, i.coordEach = a, i.coordReduce = h, i.featureEach = g, i.featureReduce = v, i.findPoint = z, i.findSegment = zt, i.flattenEach = F, i.flattenReduce = J, i.geomEach = w, i.geomReduce = N, i.lineEach = dt, i.lineReduce = At, i.propEach = u, i.propReduce = f, i.segmentEach = nt, i.segmentReduce = lt;
8773
+ i.coordAll = x, i.coordEach = a, i.coordReduce = h, i.featureEach = g, i.featureReduce = v, i.findPoint = z, i.findSegment = zt, i.flattenEach = F, i.flattenReduce = J, i.geomEach = E, i.geomReduce = N, i.lineEach = dt, i.lineReduce = At, i.propEach = u, i.propReduce = f, i.segmentEach = nt, i.segmentReduce = lt;
8774
8774
  }), zi = m((i) => {
8775
8775
  Object.defineProperty(i, "__esModule", { value: !0 });
8776
8776
  var n = en();
@@ -8785,8 +8785,8 @@ var H = Mh();
8785
8785
  var a = Nt(), h = Yt(), u = en(), f = zi().default, g = u.featureEach;
8786
8786
  u.coordEach, h.polygon;
8787
8787
  var v = h.featureCollection;
8788
- function x(w) {
8789
- var N = new a(w);
8788
+ function x(E) {
8789
+ var N = new a(E);
8790
8790
  return N.insert = function(F) {
8791
8791
  if (F.type !== "Feature") throw new Error("invalid feature");
8792
8792
  return F.bbox = F.bbox ? F.bbox : f(F), a.prototype.insert.call(this, F);
@@ -9116,21 +9116,21 @@ var H = Mh();
9116
9116
  }, []);
9117
9117
  }
9118
9118
  function qr(i, n, a) {
9119
- let h = { a: L.CRS.Earth.R, b: 63567523142e-4, f: 0.0033528106647474805 }, { a: u, b: f, f: g } = h, v = i.lng, x = i.lat, w = a, N = Math.PI, F = n * N / 180, J = Math.sin(F), nt = Math.cos(F), lt = (1 - g) * Math.tan(x * N / 180), dt = 1 / Math.sqrt(1 + lt * lt), At = lt * dt, zt = Math.atan2(lt, nt), z = dt * J, U = 1 - z * z, K = U * (u * u - f * f) / (f * f), it = 1 + K / 16384 * (4096 + K * (-768 + K * (320 - 175 * K))), $ = K / 1024 * (256 + K * (-128 + K * (74 - 47 * K))), et = w / (f * it), b = 2 * Math.PI, P, T, B;
9119
+ let h = { a: L.CRS.Earth.R, b: 63567523142e-4, f: 0.0033528106647474805 }, { a: u, b: f, f: g } = h, v = i.lng, x = i.lat, E = a, N = Math.PI, F = n * N / 180, J = Math.sin(F), nt = Math.cos(F), lt = (1 - g) * Math.tan(x * N / 180), dt = 1 / Math.sqrt(1 + lt * lt), At = lt * dt, zt = Math.atan2(lt, nt), z = dt * J, U = 1 - z * z, K = U * (u * u - f * f) / (f * f), it = 1 + K / 16384 * (4096 + K * (-768 + K * (320 - 175 * K))), $ = K / 1024 * (256 + K * (-128 + K * (74 - 47 * K))), et = E / (f * it), b = 2 * Math.PI, P, T, B;
9120
9120
  for (; Math.abs(et - b) > 1e-12; ) {
9121
9121
  P = Math.cos(2 * zt + et), T = Math.sin(et), B = Math.cos(et);
9122
9122
  let ot = $ * T * (P + $ / 4 * (B * (-1 + 2 * P * P) - $ / 6 * P * (-3 + 4 * T * T) * (-3 + 4 * P * P)));
9123
- b = et, et = w / (f * it) + ot;
9123
+ b = et, et = E / (f * it) + ot;
9124
9124
  }
9125
- let S = At * T - dt * B * nt, O = Math.atan2(At * B + dt * T * nt, (1 - g) * Math.sqrt(z * z + S * S)), V = Math.atan2(T * J, dt * B - At * T * nt), q = g / 16 * U * (4 + g * (4 - 3 * U)), W = V - (1 - q) * g * z * (et + q * T * (P + q * B * (-1 + 2 * P * P))), Y = v + W * 180 / N, Q = O * 180 / N;
9125
+ let S = At * T - dt * B * nt, O = Math.atan2(At * B + dt * T * nt, (1 - g) * Math.sqrt(z * z + S * S)), V = Math.atan2(T * J, dt * B - At * T * nt), H = g / 16 * U * (4 + g * (4 - 3 * U)), W = V - (1 - H) * g * z * (et + H * T * (P + H * B * (-1 + 2 * P * P))), Y = v + W * 180 / N, Q = O * 180 / N;
9126
9126
  return L.latLng(Y, Q);
9127
9127
  }
9128
9128
  function Hr(i, n, a, h, u = !0) {
9129
9129
  let f, g, v, x = [];
9130
- for (let w = 0; w < a; w += 1) {
9131
- if (u) f = w * 360 / a + h, g = qr(i, f, n), v = L.latLng(g.lng, g.lat);
9130
+ for (let E = 0; E < a; E += 1) {
9131
+ if (u) f = E * 360 / a + h, g = qr(i, f, n), v = L.latLng(g.lng, g.lat);
9132
9132
  else {
9133
- let N = i.lat + Math.cos(2 * w * Math.PI / a) * n, F = i.lng + Math.sin(2 * w * Math.PI / a) * n;
9133
+ let N = i.lat + Math.cos(2 * E * Math.PI / a) * n, F = i.lng + Math.sin(2 * E * Math.PI / a) * n;
9134
9134
  v = L.latLng(N, F);
9135
9135
  }
9136
9136
  x.push(v);
@@ -9139,7 +9139,7 @@ var H = Mh();
9139
9139
  }
9140
9140
  function Ps(i, n, a) {
9141
9141
  n = (n + 360) % 360;
9142
- let h = Math.PI / 180, u = 180 / Math.PI, { R: f } = L.CRS.Earth, g = i.lng * h, v = i.lat * h, x = n * h, w = Math.sin(v), N = Math.cos(v), F = Math.cos(a / f), J = Math.sin(a / f), nt = Math.asin(w * F + N * J * Math.cos(x)), lt = g + Math.atan2(Math.sin(x) * J * N, F - w * Math.sin(nt));
9142
+ let h = Math.PI / 180, u = 180 / Math.PI, { R: f } = L.CRS.Earth, g = i.lng * h, v = i.lat * h, x = n * h, E = Math.sin(v), N = Math.cos(v), F = Math.cos(a / f), J = Math.sin(a / f), nt = Math.asin(E * F + N * J * Math.cos(x)), lt = g + Math.atan2(Math.sin(x) * J * N, F - E * Math.sin(nt));
9143
9143
  lt *= u;
9144
9144
  let dt = lt - 360, At = lt < -180 ? lt + 360 : lt;
9145
9145
  return lt = lt > 180 ? dt : At, L.latLng([nt * u, lt]);
@@ -9153,7 +9153,7 @@ var H = Mh();
9153
9153
  return Ps(n, u, h);
9154
9154
  }
9155
9155
  function Ja(i, n, a = "asc") {
9156
- if (!n || Object.keys(n).length === 0) return (x, w) => x - w;
9156
+ if (!n || Object.keys(n).length === 0) return (x, E) => x - E;
9157
9157
  let h = Object.keys(n), u, f = h.length - 1, g = {};
9158
9158
  for (; f >= 0; ) u = h[f], g[u.toLowerCase()] = n[u], f -= 1;
9159
9159
  function v(x) {
@@ -9164,9 +9164,9 @@ var H = Mh();
9164
9164
  if (x instanceof L.Polygon) return "Polygon";
9165
9165
  if (x instanceof L.Polyline) return "Line";
9166
9166
  }
9167
- return (x, w) => {
9167
+ return (x, E) => {
9168
9168
  let N, F;
9169
- if (N = v(x.layer).toLowerCase(), F = v(w.layer).toLowerCase(), !N || !F) return 0;
9169
+ if (N = v(x.layer).toLowerCase(), F = v(E.layer).toLowerCase(), !N || !F) return 0;
9170
9170
  let J = N in g ? g[N] : Number.MAX_SAFE_INTEGER, nt = F in g ? g[F] : Number.MAX_SAFE_INTEGER, lt = 0;
9171
9171
  return J < nt ? lt = -1 : J > nt && (lt = 1), a === "desc" ? lt * -1 : lt;
9172
9172
  };
@@ -9311,11 +9311,11 @@ var H = Mh();
9311
9311
  this._map.pm.Draw[i.jsClass]._finishShape(x);
9312
9312
  } } };
9313
9313
  f.forEach((x) => {
9314
- let w = typeof x == "string" ? x : x.name, N;
9315
- if (g[w]) N = g[w];
9314
+ let E = typeof x == "string" ? x : x.name, N;
9315
+ if (g[E]) N = g[E];
9316
9316
  else if (x.text) N = x;
9317
9317
  else return;
9318
- let F = L.DomUtil.create("a", `leaflet-pm-action ${n} action-${w}`, u);
9318
+ let F = L.DomUtil.create("a", `leaflet-pm-action ${n} action-${E}`, u);
9319
9319
  if (F.setAttribute("role", "button"), F.setAttribute("tabindex", "0"), F.href = "#", N.title && (F.title = N.title), F.innerHTML = N.text, L.DomEvent.disableClickPropagation(F), L.DomEvent.on(F, "click", L.DomEvent.stop), !i.disabled && N.onClick) {
9320
9320
  let J = (nt) => {
9321
9321
  nt.preventDefault();
@@ -9413,7 +9413,7 @@ var H = Mh();
9413
9413
  }, doToggle: !0, toggleStatus: !1, disableOtherButtons: !0, position: this.options.position, tool: "edit", actions: ["finishMode"] }, x = { title: Ft("buttonTitles.cutButton"), className: "control-icon leaflet-pm-icon-cut", jsClass: "Cut", onClick: () => {
9414
9414
  }, afterClick: (J, nt) => {
9415
9415
  this.map.pm.Draw[nt.button._button.jsClass].toggle({ snappable: !0, cursorMarker: !0, allowSelfIntersection: !1 });
9416
- }, doToggle: !0, toggleStatus: !1, disableOtherButtons: !0, position: this.options.position, tool: "edit", actions: ["finish", "removeLastVertex", "cancel"] }, w = { title: Ft("buttonTitles.deleteButton"), className: "control-icon leaflet-pm-icon-delete", onClick: () => {
9416
+ }, doToggle: !0, toggleStatus: !1, disableOtherButtons: !0, position: this.options.position, tool: "edit", actions: ["finish", "removeLastVertex", "cancel"] }, E = { title: Ft("buttonTitles.deleteButton"), className: "control-icon leaflet-pm-icon-delete", onClick: () => {
9417
9417
  }, afterClick: () => {
9418
9418
  this.map.pm.toggleGlobalRemovalMode();
9419
9419
  }, doToggle: !0, toggleStatus: !1, disableOtherButtons: !0, position: this.options.position, tool: "edit", actions: ["finishMode"] }, N = { title: Ft("buttonTitles.rotateButton"), className: "control-icon leaflet-pm-icon-rotate", onClick: () => {
@@ -9423,7 +9423,7 @@ var H = Mh();
9423
9423
  }, afterClick: (J, nt) => {
9424
9424
  this.map.pm.Draw[nt.button._button.jsClass].toggle();
9425
9425
  }, doToggle: !0, toggleStatus: !1, disableOtherButtons: !0, position: this.options.position, actions: ["cancel"] };
9426
- this._addButton("drawMarker", new L.Control.PMButton(i)), this._addButton("drawPolyline", new L.Control.PMButton(a)), this._addButton("drawRectangle", new L.Control.PMButton(f)), this._addButton("drawPolygon", new L.Control.PMButton(n)), this._addButton("drawCircle", new L.Control.PMButton(h)), this._addButton("drawCircleMarker", new L.Control.PMButton(u)), this._addButton("drawText", new L.Control.PMButton(F)), this._addButton("editMode", new L.Control.PMButton(g)), this._addButton("dragMode", new L.Control.PMButton(v)), this._addButton("cutPolygon", new L.Control.PMButton(x)), this._addButton("removalMode", new L.Control.PMButton(w)), this._addButton("rotateMode", new L.Control.PMButton(N));
9426
+ this._addButton("drawMarker", new L.Control.PMButton(i)), this._addButton("drawPolyline", new L.Control.PMButton(a)), this._addButton("drawRectangle", new L.Control.PMButton(f)), this._addButton("drawPolygon", new L.Control.PMButton(n)), this._addButton("drawCircle", new L.Control.PMButton(h)), this._addButton("drawCircleMarker", new L.Control.PMButton(u)), this._addButton("drawText", new L.Control.PMButton(F)), this._addButton("editMode", new L.Control.PMButton(g)), this._addButton("dragMode", new L.Control.PMButton(v)), this._addButton("cutPolygon", new L.Control.PMButton(x)), this._addButton("removalMode", new L.Control.PMButton(E)), this._addButton("rotateMode", new L.Control.PMButton(N));
9427
9427
  }, _showHideButtons() {
9428
9428
  if (!this.isVisible) return;
9429
9429
  this.removeControls(), this.isVisible = !0;
@@ -9530,9 +9530,9 @@ var H = Mh();
9530
9530
  }, _handleThrottleSnapping() {
9531
9531
  this.throttledList && this._createSnapList();
9532
9532
  }, _handleSnapping(i) {
9533
- var v, x, w;
9533
+ var v, x, E;
9534
9534
  let n = i.target;
9535
- if (n._snapped = !1, this.throttledList || (this.throttledList = L.Util.throttle(this._handleThrottleSnapping, 100, this)), ((v = i == null ? void 0 : i.originalEvent) == null ? void 0 : v.altKey) || ((w = (x = this._map) == null ? void 0 : x.pm) == null ? void 0 : w.Keyboard.isAltKeyPressed()) || (this._snapList === void 0 && (this._createSnapList(), this._map.off("layeradd", this.throttledList, this), this._map.on("layeradd", this.throttledList, this)), this._snapList.length <= 0)) return !1;
9535
+ if (n._snapped = !1, this.throttledList || (this.throttledList = L.Util.throttle(this._handleThrottleSnapping, 100, this)), ((v = i == null ? void 0 : i.originalEvent) == null ? void 0 : v.altKey) || ((E = (x = this._map) == null ? void 0 : x.pm) == null ? void 0 : E.Keyboard.isAltKeyPressed()) || (this._snapList === void 0 && (this._createSnapList(), this._map.off("layeradd", this.throttledList, this), this._map.on("layeradd", this.throttledList, this)), this._snapList.length <= 0)) return !1;
9536
9536
  let a = this._calcClosestLayer(n.getLatLng(), this._snapList);
9537
9537
  if (Object.keys(a).length === 0) return !1;
9538
9538
  let h = a.layer instanceof L.Marker || a.layer instanceof L.CircleMarker || !this.options.snapSegment, u;
@@ -9572,8 +9572,8 @@ var H = Mh();
9572
9572
  let x = this._calcLayerDistances(i, g);
9573
9573
  if (x.distance = Math.floor(x.distance), this.debugIndicatorLines) {
9574
9574
  if (!this.debugIndicatorLines[v]) {
9575
- let w = L.polyline([], { color: "red", pmIgnore: !0 });
9576
- w._pmTempLayer = !0, this.debugIndicatorLines[v] = w;
9575
+ let E = L.polyline([], { color: "red", pmIgnore: !0 });
9576
+ E._pmTempLayer = !0, this.debugIndicatorLines[v] = E;
9577
9577
  }
9578
9578
  this.debugIndicatorLines[v].setLatLngs([i, x.latlng]);
9579
9579
  }
@@ -9590,13 +9590,13 @@ var H = Mh();
9590
9590
  return this._calcLatLngDistances(f, n.getLatLngs(), a, u);
9591
9591
  }, _calcLatLngDistances(i, n, a, h = !1) {
9592
9592
  let u, f, g, v = (x) => {
9593
- x.forEach((w, N) => {
9594
- if (Array.isArray(w)) {
9595
- v(w);
9593
+ x.forEach((E, N) => {
9594
+ if (Array.isArray(E)) {
9595
+ v(E);
9596
9596
  return;
9597
9597
  }
9598
9598
  if (this.options.snapSegment) {
9599
- let F = w, J;
9599
+ let F = E, J;
9600
9600
  h ? J = N + 1 === x.length ? 0 : N + 1 : J = N + 1 === x.length ? void 0 : N + 1;
9601
9601
  let nt = x[J];
9602
9602
  if (nt) {
@@ -9604,8 +9604,8 @@ var H = Mh();
9604
9604
  (f === void 0 || lt < f) && (f = lt, g = [F, nt]);
9605
9605
  }
9606
9606
  } else {
9607
- let F = this._getDistance(a, i, w);
9608
- (f === void 0 || F < f) && (f = F, u = w);
9607
+ let F = this._getDistance(a, i, E);
9608
+ (f === void 0 || F < f) && (f = F, u = E);
9609
9609
  }
9610
9610
  });
9611
9611
  };
@@ -9622,8 +9622,8 @@ var H = Mh();
9622
9622
  let F = L.PM.Utils.calcMiddleLatLng(n, a, h), J = this._getDistance(n, F, u);
9623
9623
  J < f && J < g && (v = F, x = J);
9624
9624
  }
9625
- let w = this.options.snapDistance, N;
9626
- return x < w ? N = v : N = u, { ...N };
9625
+ let E = this.options.snapDistance, N;
9626
+ return x < E ? N = v : N = u, { ...N };
9627
9627
  }, _unsnap() {
9628
9628
  delete this._snapLatLng;
9629
9629
  }, _getClosestPointOnSegment(i, n, a, h) {
@@ -9790,8 +9790,8 @@ var H = Mh();
9790
9790
  }), h;
9791
9791
  }
9792
9792
  function no(i, n, a, h, u, f, g, v) {
9793
- var x, w, N, F, J, nt = { x: null, y: null, onLine1: !1, onLine2: !1 };
9794
- return x = (v - f) * (a - i) - (g - u) * (h - n), x === 0 ? nt.x !== null && nt.y !== null ? nt : !1 : (w = n - f, N = i - u, F = (g - u) * w - (v - f) * N, J = (a - i) * w - (h - n) * N, w = F / x, N = J / x, nt.x = i + w * (a - i), nt.y = n + w * (h - n), w >= 0 && w <= 1 && (nt.onLine1 = !0), N >= 0 && N <= 1 && (nt.onLine2 = !0), nt.onLine1 && nt.onLine2 ? [nt.x, nt.y] : !1);
9793
+ var x, E, N, F, J, nt = { x: null, y: null, onLine1: !1, onLine2: !1 };
9794
+ return x = (v - f) * (a - i) - (g - u) * (h - n), x === 0 ? nt.x !== null && nt.y !== null ? nt : !1 : (E = n - f, N = i - u, F = (g - u) * E - (v - f) * N, J = (a - i) * E - (h - n) * N, E = F / x, N = J / x, nt.x = i + E * (a - i), nt.y = n + E * (h - n), E >= 0 && E <= 1 && (nt.onLine1 = !0), N >= 0 && N <= 1 && (nt.onLine2 = !0), nt.onLine1 && nt.onLine2 ? [nt.x, nt.y] : !1);
9795
9795
  }
9796
9796
  me.Line = me.extend({ initialize(i) {
9797
9797
  this._map = i, this._shape = "Line", this.toolbarButtonName = "drawPolyline", this._doesSelfIntersect = !1;
@@ -10066,11 +10066,11 @@ var H = Mh();
10066
10066
  return i.type === "FeatureCollection" ? "FeatureCollection" : i.type === "GeometryCollection" ? "GeometryCollection" : i.type === "Feature" && i.geometry !== null ? i.geometry.type : i.type;
10067
10067
  }
10068
10068
  function Pn(i, n, a) {
10069
- if (i !== null) for (var h, u, f, g, v, x, w, N = 0, F = 0, J, nt = i.type, lt = nt === "FeatureCollection", dt = nt === "Feature", At = lt ? i.features.length : 1, zt = 0; zt < At; zt++) {
10070
- w = lt ? i.features[zt].geometry : dt ? i.geometry : i, J = w ? w.type === "GeometryCollection" : !1, v = J ? w.geometries.length : 1;
10069
+ if (i !== null) for (var h, u, f, g, v, x, E, N = 0, F = 0, J, nt = i.type, lt = nt === "FeatureCollection", dt = nt === "Feature", At = lt ? i.features.length : 1, zt = 0; zt < At; zt++) {
10070
+ E = lt ? i.features[zt].geometry : dt ? i.geometry : i, J = E ? E.type === "GeometryCollection" : !1, v = J ? E.geometries.length : 1;
10071
10071
  for (var z = 0; z < v; z++) {
10072
10072
  var U = 0, K = 0;
10073
- if (g = J ? w.geometries[z] : w, g !== null) {
10073
+ if (g = J ? E.geometries[z] : E, g !== null) {
10074
10074
  x = g.coordinates;
10075
10075
  var it = g.type;
10076
10076
  switch (N = 0, it) {
@@ -10132,11 +10132,11 @@ var H = Mh();
10132
10132
  }), h;
10133
10133
  }
10134
10134
  function Ui(i, n) {
10135
- var a, h, u, f, g, v, x, w, N, F, J = 0, nt = i.type === "FeatureCollection", lt = i.type === "Feature", dt = nt ? i.features.length : 1;
10135
+ var a, h, u, f, g, v, x, E, N, F, J = 0, nt = i.type === "FeatureCollection", lt = i.type === "Feature", dt = nt ? i.features.length : 1;
10136
10136
  for (a = 0; a < dt; a++) {
10137
- for (v = nt ? i.features[a].geometry : lt ? i.geometry : i, w = nt ? i.features[a].properties : lt ? i.properties : {}, N = nt ? i.features[a].bbox : lt ? i.bbox : void 0, F = nt ? i.features[a].id : lt ? i.id : void 0, x = v ? v.type === "GeometryCollection" : !1, g = x ? v.geometries.length : 1, u = 0; u < g; u++) {
10137
+ for (v = nt ? i.features[a].geometry : lt ? i.geometry : i, E = nt ? i.features[a].properties : lt ? i.properties : {}, N = nt ? i.features[a].bbox : lt ? i.bbox : void 0, F = nt ? i.features[a].id : lt ? i.id : void 0, x = v ? v.type === "GeometryCollection" : !1, g = x ? v.geometries.length : 1, u = 0; u < g; u++) {
10138
10138
  if (f = x ? v.geometries[u] : v, f === null) {
10139
- if (n(null, J, w, N, F) === !1) return !1;
10139
+ if (n(null, J, E, N, F) === !1) return !1;
10140
10140
  continue;
10141
10141
  }
10142
10142
  switch (f.type) {
@@ -10146,11 +10146,11 @@ var H = Mh();
10146
10146
  case "Polygon":
10147
10147
  case "MultiLineString":
10148
10148
  case "MultiPolygon": {
10149
- if (n(f, J, w, N, F) === !1) return !1;
10149
+ if (n(f, J, E, N, F) === !1) return !1;
10150
10150
  break;
10151
10151
  }
10152
10152
  case "GeometryCollection": {
10153
- for (h = 0; h < f.geometries.length; h++) if (n(f.geometries[h], J, w, N, F) === !1) return !1;
10153
+ for (h = 0; h < f.geometries.length; h++) if (n(f.geometries[h], J, E, N, F) === !1) return !1;
10154
10154
  break;
10155
10155
  }
10156
10156
  default:
@@ -10182,9 +10182,9 @@ var H = Mh();
10182
10182
  x = "Polygon";
10183
10183
  break;
10184
10184
  }
10185
- for (var w = 0; w < a.coordinates.length; w++) {
10186
- var N = a.coordinates[w], F = { type: x, coordinates: N };
10187
- if (n(Zi(F, u), h, w) === !1) return !1;
10185
+ for (var E = 0; E < a.coordinates.length; E++) {
10186
+ var N = a.coordinates[E], F = { type: x, coordinates: N };
10187
+ if (n(Zi(F, u), h, E) === !1) return !1;
10188
10188
  }
10189
10189
  });
10190
10190
  }
@@ -10221,8 +10221,8 @@ var H = Mh();
10221
10221
  }), a;
10222
10222
  }
10223
10223
  function ro(i, n) {
10224
- var a = i[0], h = i[1], u = n[0], f = n[1], g = a < u ? a : u, v = h < f ? h : f, x = a > u ? a : u, w = h > f ? h : f;
10225
- return [g, v, x, w];
10224
+ var a = i[0], h = i[1], u = n[0], f = n[1], g = a < u ? a : u, v = h < f ? h : f, x = a > u ? a : u, E = h > f ? h : f;
10225
+ return [g, v, x, E];
10226
10226
  }
10227
10227
  var Bi = ii, Qr = M(Mi(), 1);
10228
10228
  function Bn(i, n) {
@@ -10236,8 +10236,8 @@ var H = Mh();
10236
10236
  ln(f.search(g), function(v) {
10237
10237
  var x = Yr(g, v);
10238
10238
  if (x) {
10239
- var w = Fe(x).join(",");
10240
- a[w] || (a[w] = !0, h.push(x));
10239
+ var E = Fe(x).join(",");
10240
+ a[E] || (a[E] = !0, h.push(x));
10241
10241
  }
10242
10242
  });
10243
10243
  }), qe(h);
@@ -10246,7 +10246,7 @@ var H = Mh();
10246
10246
  var a = Fe(i), h = Fe(n);
10247
10247
  if (a.length !== 2) throw new Error("<intersects> line1 must only contain 2 coordinates");
10248
10248
  if (h.length !== 2) throw new Error("<intersects> line2 must only contain 2 coordinates");
10249
- var u = a[0][0], f = a[0][1], g = a[1][0], v = a[1][1], x = h[0][0], w = h[0][1], N = h[1][0], F = h[1][1], J = (F - w) * (g - u) - (N - x) * (v - f), nt = (N - x) * (f - w) - (F - w) * (u - x), lt = (g - u) * (f - w) - (v - f) * (u - x);
10249
+ var u = a[0][0], f = a[0][1], g = a[1][0], v = a[1][1], x = h[0][0], E = h[0][1], N = h[1][0], F = h[1][1], J = (F - E) * (g - u) - (N - x) * (v - f), nt = (N - x) * (f - E) - (F - E) * (u - x), lt = (g - u) * (f - E) - (v - f) * (u - x);
10250
10250
  if (J === 0) return null;
10251
10251
  var dt = nt / J, At = lt / J;
10252
10252
  if (dt >= 0 && dt <= 1 && At >= 0 && At <= 1) {
@@ -10258,8 +10258,8 @@ var H = Mh();
10258
10258
  var Ce = Bn, un = M(Mi(), 1);
10259
10259
  function ao(i, n, a) {
10260
10260
  a === void 0 && (a = {});
10261
- var h = Re(i), u = Re(n), f = ee(u[1] - h[1]), g = ee(u[0] - h[0]), v = ee(h[1]), x = ee(u[1]), w = Math.pow(Math.sin(f / 2), 2) + Math.pow(Math.sin(g / 2), 2) * Math.cos(v) * Math.cos(x);
10262
- return ki(2 * Math.atan2(Math.sqrt(w), Math.sqrt(1 - w)), a.units);
10261
+ var h = Re(i), u = Re(n), f = ee(u[1] - h[1]), g = ee(u[0] - h[0]), v = ee(h[1]), x = ee(u[1]), E = Math.pow(Math.sin(f / 2), 2) + Math.pow(Math.sin(g / 2), 2) * Math.cos(v) * Math.cos(x);
10262
+ return ki(2 * Math.atan2(Math.sqrt(E), Math.sqrt(1 - E)), a.units);
10263
10263
  }
10264
10264
  var ni = ao;
10265
10265
  function oo(i) {
@@ -10301,8 +10301,8 @@ var H = Mh();
10301
10301
  var Tn = ho;
10302
10302
  function Rs(i, n, a) {
10303
10303
  if (a === void 0 && (a = {}), a.final === !0) return Fs(i, n);
10304
- var h = Re(i), u = Re(n), f = ee(h[0]), g = ee(u[0]), v = ee(h[1]), x = ee(u[1]), w = Math.sin(g - f) * Math.cos(x), N = Math.cos(v) * Math.sin(x) - Math.sin(v) * Math.cos(x) * Math.cos(g - f);
10305
- return Pi(Math.atan2(w, N));
10304
+ var h = Re(i), u = Re(n), f = ee(h[0]), g = ee(u[0]), v = ee(h[1]), x = ee(u[1]), E = Math.sin(g - f) * Math.cos(x), N = Math.cos(v) * Math.sin(x) - Math.sin(v) * Math.cos(x) * Math.cos(g - f);
10305
+ return Pi(Math.atan2(E, N));
10306
10306
  }
10307
10307
  function Fs(i, n) {
10308
10308
  var a = Rs(n, i);
@@ -10310,7 +10310,7 @@ var H = Mh();
10310
10310
  }
10311
10311
  function cn(i, n, a, h) {
10312
10312
  h === void 0 && (h = {});
10313
- var u = Re(i), f = ee(u[0]), g = ee(u[1]), v = ee(a), x = io(n, h.units), w = Math.asin(Math.sin(g) * Math.cos(x) + Math.cos(g) * Math.sin(x) * Math.cos(v)), N = f + Math.atan2(Math.sin(v) * Math.sin(x) * Math.cos(g), Math.cos(x) - Math.sin(g) * Math.sin(w)), F = Pi(N), J = Pi(w);
10313
+ var u = Re(i), f = ee(u[0]), g = ee(u[1]), v = ee(a), x = io(n, h.units), E = Math.asin(Math.sin(g) * Math.cos(x) + Math.cos(g) * Math.sin(x) * Math.cos(v)), N = f + Math.atan2(Math.sin(v) * Math.sin(x) * Math.cos(g), Math.cos(x) - Math.sin(g) * Math.sin(E)), F = Pi(N), J = Pi(E);
10314
10314
  return Ei([F, J], h.properties);
10315
10315
  }
10316
10316
  function zs(i, n, a) {
@@ -10320,10 +10320,10 @@ var H = Mh();
10320
10320
  for (var g = Fe(f), v = 0; v < g.length - 1; v++) {
10321
10321
  var x = Ei(g[v]);
10322
10322
  x.properties.dist = ni(n, x, a);
10323
- var w = Ei(g[v + 1]);
10324
- w.properties.dist = ni(n, w, a);
10325
- var N = ni(x, w, a), F = Math.max(x.properties.dist, w.properties.dist), J = Rs(x, w), nt = cn(n, F, J + 90, a), lt = cn(n, F, J - 90, a), dt = Ce(ji([nt.geometry.coordinates, lt.geometry.coordinates]), ji([x.geometry.coordinates, w.geometry.coordinates])), At = null;
10326
- dt.features.length > 0 && (At = dt.features[0], At.properties.dist = ni(n, At, a), At.properties.location = u + ni(x, At, a)), x.properties.dist < h.properties.dist && (h = x, h.properties.index = v, h.properties.location = u), w.properties.dist < h.properties.dist && (h = w, h.properties.index = v + 1, h.properties.location = u + N), At && At.properties.dist < h.properties.dist && (h = At, h.properties.index = v), u += N;
10323
+ var E = Ei(g[v + 1]);
10324
+ E.properties.dist = ni(n, E, a);
10325
+ var N = ni(x, E, a), F = Math.max(x.properties.dist, E.properties.dist), J = Rs(x, E), nt = cn(n, F, J + 90, a), lt = cn(n, F, J - 90, a), dt = Ce(ji([nt.geometry.coordinates, lt.geometry.coordinates]), ji([x.geometry.coordinates, E.geometry.coordinates])), At = null;
10326
+ dt.features.length > 0 && (At = dt.features[0], At.properties.dist = ni(n, At, a), At.properties.location = u + ni(x, At, a)), x.properties.dist < h.properties.dist && (h = x, h.properties.index = v, h.properties.location = u), E.properties.dist < h.properties.dist && (h = E, h.properties.index = v + 1, h.properties.location = u + N), At && At.properties.dist < h.properties.dist && (h = At, h.properties.index = v), u += N;
10327
10327
  }
10328
10328
  }), h;
10329
10329
  }
@@ -10376,10 +10376,10 @@ var H = Mh();
10376
10376
  f.load(g);
10377
10377
  var v = f.search(n);
10378
10378
  if (!v.features.length) return qe([i]);
10379
- var x = Ns(n, v), w = [h], N = He(g, function(F, J, nt) {
10379
+ var x = Ns(n, v), E = [h], N = He(g, function(F, J, nt) {
10380
10380
  var lt = Fe(J)[1], dt = Re(n);
10381
10381
  return nt === x.id ? (F.push(dt), a.push(ji(F)), Gs(dt, lt) ? [dt] : [dt, lt]) : (F.push(lt), F);
10382
- }, w);
10382
+ }, E);
10383
10383
  return N.length > 1 && a.push(ji(N)), qe(a);
10384
10384
  }
10385
10385
  function Ns(i, n) {
@@ -10401,8 +10401,8 @@ var H = Mh();
10401
10401
  var h = Re(i), u = kn(n), f = u.type, g = n.bbox, v = u.coordinates;
10402
10402
  if (g && lo(h, g) === !1) return !1;
10403
10403
  f === "Polygon" && (v = [v]);
10404
- for (var x = !1, w = 0; w < v.length && !x; w++) if (Zs(h, v[w][0], a.ignoreBoundary)) {
10405
- for (var N = !1, F = 1; F < v[w].length && !N; ) Zs(h, v[w][F], !a.ignoreBoundary) && (N = !0), F++;
10404
+ for (var x = !1, E = 0; E < v.length && !x; E++) if (Zs(h, v[E][0], a.ignoreBoundary)) {
10405
+ for (var N = !1, F = 1; F < v[E].length && !N; ) Zs(h, v[E][F], !a.ignoreBoundary) && (N = !0), F++;
10406
10406
  N || (x = !0);
10407
10407
  }
10408
10408
  return x;
@@ -10411,9 +10411,9 @@ var H = Mh();
10411
10411
  var h = !1;
10412
10412
  n[0][0] === n[n.length - 1][0] && n[0][1] === n[n.length - 1][1] && (n = n.slice(0, n.length - 1));
10413
10413
  for (var u = 0, f = n.length - 1; u < n.length; f = u++) {
10414
- var g = n[u][0], v = n[u][1], x = n[f][0], w = n[f][1], N = i[1] * (g - x) + v * (x - i[0]) + w * (i[0] - g) === 0 && (g - i[0]) * (x - i[0]) <= 0 && (v - i[1]) * (w - i[1]) <= 0;
10414
+ var g = n[u][0], v = n[u][1], x = n[f][0], E = n[f][1], N = i[1] * (g - x) + v * (x - i[0]) + E * (i[0] - g) === 0 && (g - i[0]) * (x - i[0]) <= 0 && (v - i[1]) * (E - i[1]) <= 0;
10415
10415
  if (N) return !a;
10416
- var F = v > i[1] != w > i[1] && i[0] < (x - g) * (i[1] - v) / (w - v) + g;
10416
+ var F = v > i[1] != E > i[1] && i[0] < (x - g) * (i[1] - v) / (E - v) + g;
10417
10417
  F && (h = !h);
10418
10418
  }
10419
10419
  return h;
@@ -10430,15 +10430,15 @@ var H = Mh();
10430
10430
  return !1;
10431
10431
  }
10432
10432
  function uo(i, n, a, h, u) {
10433
- var f = a[0], g = a[1], v = i[0], x = i[1], w = n[0], N = n[1], F = a[0] - v, J = a[1] - x, nt = w - v, lt = N - x, dt = F * lt - J * nt;
10433
+ var f = a[0], g = a[1], v = i[0], x = i[1], E = n[0], N = n[1], F = a[0] - v, J = a[1] - x, nt = E - v, lt = N - x, dt = F * lt - J * nt;
10434
10434
  if (u !== null) {
10435
10435
  if (Math.abs(dt) > u) return !1;
10436
10436
  } else if (dt !== 0) return !1;
10437
10437
  if (h) {
10438
- if (h === "start") return Math.abs(nt) >= Math.abs(lt) ? nt > 0 ? v < f && f <= w : w <= f && f < v : lt > 0 ? x < g && g <= N : N <= g && g < x;
10439
- if (h === "end") return Math.abs(nt) >= Math.abs(lt) ? nt > 0 ? v <= f && f < w : w < f && f <= v : lt > 0 ? x <= g && g < N : N < g && g <= x;
10440
- if (h === "both") return Math.abs(nt) >= Math.abs(lt) ? nt > 0 ? v < f && f < w : w < f && f < v : lt > 0 ? x < g && g < N : N < g && g < x;
10441
- } else return Math.abs(nt) >= Math.abs(lt) ? nt > 0 ? v <= f && f <= w : w <= f && f <= v : lt > 0 ? x <= g && g <= N : N <= g && g <= x;
10438
+ if (h === "start") return Math.abs(nt) >= Math.abs(lt) ? nt > 0 ? v < f && f <= E : E <= f && f < v : lt > 0 ? x < g && g <= N : N <= g && g < x;
10439
+ if (h === "end") return Math.abs(nt) >= Math.abs(lt) ? nt > 0 ? v <= f && f < E : E < f && f <= v : lt > 0 ? x <= g && g < N : N < g && g <= x;
10440
+ if (h === "both") return Math.abs(nt) >= Math.abs(lt) ? nt > 0 ? v < f && f < E : E < f && f < v : lt > 0 ? x < g && g < N : N < g && g < x;
10441
+ } else return Math.abs(nt) >= Math.abs(lt) ? nt > 0 ? v <= f && f <= E : E <= f && f <= v : lt > 0 ? x <= g && g <= N : N <= g && g <= x;
10442
10442
  return !1;
10443
10443
  }
10444
10444
  var we = Jr;
@@ -10547,8 +10547,8 @@ var H = Mh();
10547
10547
  if (i.type === "Feature" && i.geometry === null || n.type === "Feature" && n.geometry === null) return !1;
10548
10548
  var a = $e(i), h = $e(n);
10549
10549
  if (!Ti(a, h)) return !1;
10550
- for (var u = kn(n).coordinates, f = 0, g = u; f < g.length; f++) for (var v = g[f], x = 0, w = v; x < w.length; x++) {
10551
- var N = w[x];
10550
+ for (var u = kn(n).coordinates, f = 0, g = u; f < g.length; f++) for (var v = g[f], x = 0, E = v; x < E.length; x++) {
10551
+ var N = E[x];
10552
10552
  if (!On(N, i)) return !1;
10553
10553
  }
10554
10554
  return !0;
@@ -10569,22 +10569,22 @@ var H = Mh();
10569
10569
  function ia(i) {
10570
10570
  let n = i ? (a, h, u, f, g) => a.exponentiatedBy(2).isLessThanOrEqualTo(f.minus(h).exponentiatedBy(2).plus(g.minus(u).exponentiatedBy(2)).times(i)) : Xe(!1);
10571
10571
  return (a, h, u) => {
10572
- let f = a.x, g = a.y, v = u.x, x = u.y, w = g.minus(x).times(h.x.minus(v)).minus(f.minus(v).times(h.y.minus(x)));
10573
- return n(w, f, g, v, x) ? 0 : w.comparedTo(0);
10572
+ let f = a.x, g = a.y, v = u.x, x = u.y, E = g.minus(x).times(h.x.minus(v)).minus(f.minus(v).times(h.y.minus(x)));
10573
+ return n(E, f, g, v, x) ? 0 : E.comparedTo(0);
10574
10574
  };
10575
10575
  }
10576
10576
  var mn = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, js = Math.ceil, ye = Math.floor, de = "[BigNumber Error] ", Us = de + "Number primitive has more than 15 significant digits: ", ze = 1e14, Pt = 14, Nn = 9007199254740991, Gn = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ai = 1e7, ue = 1e9;
10577
10577
  function qs(i) {
10578
- var n, a, h, u = z.prototype = { constructor: z, toString: null, valueOf: null }, f = new z(1), g = 20, v = 4, x = -7, w = 21, N = -1e7, F = 1e7, J = !1, nt = 1, lt = 0, dt = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: " ", suffix: "" }, At = "0123456789abcdefghijklmnopqrstuvwxyz", zt = !0;
10578
+ var n, a, h, u = z.prototype = { constructor: z, toString: null, valueOf: null }, f = new z(1), g = 20, v = 4, x = -7, E = 21, N = -1e7, F = 1e7, J = !1, nt = 1, lt = 0, dt = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: " ", suffix: "" }, At = "0123456789abcdefghijklmnopqrstuvwxyz", zt = !0;
10579
10579
  function z(b, P) {
10580
- var T, B, S, O, V, q, W, Y, Q = this;
10580
+ var T, B, S, O, V, H, W, Y, Q = this;
10581
10581
  if (!(Q instanceof z)) return new z(b, P);
10582
10582
  if (P == null) {
10583
10583
  if (b && b._isBigNumber === !0) {
10584
10584
  Q.s = b.s, !b.c || b.e > F ? Q.c = Q.e = null : b.e < N ? Q.c = [Q.e = 0] : (Q.e = b.e, Q.c = b.c.slice());
10585
10585
  return;
10586
10586
  }
10587
- if ((q = typeof b == "number") && b * 0 == 0) {
10587
+ if ((H = typeof b == "number") && b * 0 == 0) {
10588
10588
  if (Q.s = 1 / b < 0 ? (b = -b, -1) : 1, b === ~~b) {
10589
10589
  for (O = 0, V = b; V >= 10; V /= 10, O++) ;
10590
10590
  O > F ? Q.c = Q.e = null : (Q.e = O, Q.c = [b]);
@@ -10592,14 +10592,14 @@ var H = Mh();
10592
10592
  }
10593
10593
  Y = String(b);
10594
10594
  } else {
10595
- if (!mn.test(Y = String(b))) return h(Q, Y, q);
10595
+ if (!mn.test(Y = String(b))) return h(Q, Y, H);
10596
10596
  Q.s = Y.charCodeAt(0) == 45 ? (Y = Y.slice(1), -1) : 1;
10597
10597
  }
10598
10598
  (O = Y.indexOf(".")) > -1 && (Y = Y.replace(".", "")), (V = Y.search(/e/i)) > 0 ? (O < 0 && (O = V), O += +Y.slice(V + 1), Y = Y.substring(0, V)) : O < 0 && (O = Y.length);
10599
10599
  } else {
10600
10600
  if (te(P, 2, At.length, "Base"), P == 10 && zt) return Q = new z(b), $(Q, g + Q.e + 1, v);
10601
- if (Y = String(b), q = typeof b == "number") {
10602
- if (b * 0 != 0) return h(Q, Y, q, P);
10601
+ if (Y = String(b), H = typeof b == "number") {
10602
+ if (b * 0 != 0) return h(Q, Y, H, P);
10603
10603
  if (Q.s = 1 / b < 0 ? (Y = Y.slice(1), -1) : 1, z.DEBUG && Y.replace(/^0\.0*|\./, "").length > 15) throw Error(Us + b);
10604
10604
  } else Q.s = Y.charCodeAt(0) === 45 ? (Y = Y.slice(1), -1) : 1;
10605
10605
  for (T = At.slice(0, P), O = V = 0, W = Y.length; V < W; V++) if (T.indexOf(B = Y.charAt(V)) < 0) {
@@ -10612,14 +10612,14 @@ var H = Mh();
10612
10612
  S = !0, V = -1, O = 0;
10613
10613
  continue;
10614
10614
  }
10615
- return h(Q, String(b), q, P);
10615
+ return h(Q, String(b), H, P);
10616
10616
  }
10617
- q = !1, Y = a(Y, P, 10, Q.s), (O = Y.indexOf(".")) > -1 ? Y = Y.replace(".", "") : O = Y.length;
10617
+ H = !1, Y = a(Y, P, 10, Q.s), (O = Y.indexOf(".")) > -1 ? Y = Y.replace(".", "") : O = Y.length;
10618
10618
  }
10619
10619
  for (V = 0; Y.charCodeAt(V) === 48; V++) ;
10620
10620
  for (W = Y.length; Y.charCodeAt(--W) === 48; ) ;
10621
10621
  if (Y = Y.slice(V, ++W)) {
10622
- if (W -= V, q && z.DEBUG && W > 15 && (b > Nn || b !== ye(b))) throw Error(Us + Q.s * b);
10622
+ if (W -= V, H && z.DEBUG && W > 15 && (b > Nn || b !== ye(b))) throw Error(Us + Q.s * b);
10623
10623
  if ((O = O - V - 1) > F) Q.c = Q.e = null;
10624
10624
  else if (O < N) Q.c = [Q.e = 0];
10625
10625
  else {
@@ -10635,7 +10635,7 @@ var H = Mh();
10635
10635
  z.clone = qs, z.ROUND_UP = 0, z.ROUND_DOWN = 1, z.ROUND_CEIL = 2, z.ROUND_FLOOR = 3, z.ROUND_HALF_UP = 4, z.ROUND_HALF_DOWN = 5, z.ROUND_HALF_EVEN = 6, z.ROUND_HALF_CEIL = 7, z.ROUND_HALF_FLOOR = 8, z.EUCLID = 9, z.config = z.set = function(b) {
10636
10636
  var P, T;
10637
10637
  if (b != null) if (typeof b == "object") {
10638
- if (b.hasOwnProperty(P = "DECIMAL_PLACES") && (T = b[P], te(T, 0, ue, P), g = T), b.hasOwnProperty(P = "ROUNDING_MODE") && (T = b[P], te(T, 0, 8, P), v = T), b.hasOwnProperty(P = "EXPONENTIAL_AT") && (T = b[P], T && T.pop ? (te(T[0], -ue, 0, P), te(T[1], 0, ue, P), x = T[0], w = T[1]) : (te(T, -ue, ue, P), x = -(w = T < 0 ? -T : T))), b.hasOwnProperty(P = "RANGE")) if (T = b[P], T && T.pop) te(T[0], -ue, -1, P), te(T[1], 1, ue, P), N = T[0], F = T[1];
10638
+ if (b.hasOwnProperty(P = "DECIMAL_PLACES") && (T = b[P], te(T, 0, ue, P), g = T), b.hasOwnProperty(P = "ROUNDING_MODE") && (T = b[P], te(T, 0, 8, P), v = T), b.hasOwnProperty(P = "EXPONENTIAL_AT") && (T = b[P], T && T.pop ? (te(T[0], -ue, 0, P), te(T[1], 0, ue, P), x = T[0], E = T[1]) : (te(T, -ue, ue, P), x = -(E = T < 0 ? -T : T))), b.hasOwnProperty(P = "RANGE")) if (T = b[P], T && T.pop) te(T[0], -ue, -1, P), te(T[1], 1, ue, P), N = T[0], F = T[1];
10639
10639
  else if (te(T, -ue, ue, P), T) N = -(F = T < 0 ? -T : T);
10640
10640
  else throw Error(de + P + " cannot be zero: " + T);
10641
10641
  if (b.hasOwnProperty(P = "CRYPTO")) if (T = b[P], T === !!T) if (T) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) J = T;
@@ -10647,7 +10647,7 @@ var H = Mh();
10647
10647
  if (b.hasOwnProperty(P = "ALPHABET")) if (T = b[P], typeof T == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(T)) zt = T.slice(0, 10) == "0123456789", At = T;
10648
10648
  else throw Error(de + P + " invalid: " + T);
10649
10649
  } else throw Error(de + "Object expected: " + b);
10650
- return { DECIMAL_PLACES: g, ROUNDING_MODE: v, EXPONENTIAL_AT: [x, w], RANGE: [N, F], CRYPTO: J, MODULO_MODE: nt, POW_PRECISION: lt, FORMAT: dt, ALPHABET: At };
10650
+ return { DECIMAL_PLACES: g, ROUNDING_MODE: v, EXPONENTIAL_AT: [x, E], RANGE: [N, F], CRYPTO: J, MODULO_MODE: nt, POW_PRECISION: lt, FORMAT: dt, ALPHABET: At };
10651
10651
  }, z.isBigNumber = function(b) {
10652
10652
  if (!b || b._isBigNumber !== !0) return !1;
10653
10653
  if (!z.DEBUG) return !0;
@@ -10676,20 +10676,20 @@ var H = Mh();
10676
10676
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
10677
10677
  };
10678
10678
  return function(T) {
10679
- var B, S, O, V, q, W = 0, Y = [], Q = new z(f);
10679
+ var B, S, O, V, H, W = 0, Y = [], Q = new z(f);
10680
10680
  if (T == null ? T = g : te(T, 0, ue), V = js(T / Pt), J) if (crypto.getRandomValues) {
10681
- for (B = crypto.getRandomValues(new Uint32Array(V *= 2)); W < V; ) q = B[W] * 131072 + (B[W + 1] >>> 11), q >= 9e15 ? (S = crypto.getRandomValues(new Uint32Array(2)), B[W] = S[0], B[W + 1] = S[1]) : (Y.push(q % 1e14), W += 2);
10681
+ for (B = crypto.getRandomValues(new Uint32Array(V *= 2)); W < V; ) H = B[W] * 131072 + (B[W + 1] >>> 11), H >= 9e15 ? (S = crypto.getRandomValues(new Uint32Array(2)), B[W] = S[0], B[W + 1] = S[1]) : (Y.push(H % 1e14), W += 2);
10682
10682
  W = V / 2;
10683
10683
  } else if (crypto.randomBytes) {
10684
- for (B = crypto.randomBytes(V *= 7); W < V; ) q = (B[W] & 31) * 281474976710656 + B[W + 1] * 1099511627776 + B[W + 2] * 4294967296 + B[W + 3] * 16777216 + (B[W + 4] << 16) + (B[W + 5] << 8) + B[W + 6], q >= 9e15 ? crypto.randomBytes(7).copy(B, W) : (Y.push(q % 1e14), W += 7);
10684
+ for (B = crypto.randomBytes(V *= 7); W < V; ) H = (B[W] & 31) * 281474976710656 + B[W + 1] * 1099511627776 + B[W + 2] * 4294967296 + B[W + 3] * 16777216 + (B[W + 4] << 16) + (B[W + 5] << 8) + B[W + 6], H >= 9e15 ? crypto.randomBytes(7).copy(B, W) : (Y.push(H % 1e14), W += 7);
10685
10685
  W = V / 7;
10686
10686
  } else throw J = !1, Error(de + "crypto unavailable");
10687
- if (!J) for (; W < V; ) q = P(), q < 9e15 && (Y[W++] = q % 1e14);
10688
- for (V = Y[--W], T %= Pt, V && T && (q = Gn[Pt - T], Y[W] = ye(V / q) * q); Y[W] === 0; Y.pop(), W--) ;
10687
+ if (!J) for (; W < V; ) H = P(), H < 9e15 && (Y[W++] = H % 1e14);
10688
+ for (V = Y[--W], T %= Pt, V && T && (H = Gn[Pt - T], Y[W] = ye(V / H) * H); Y[W] === 0; Y.pop(), W--) ;
10689
10689
  if (W < 0) Y = [O = 0];
10690
10690
  else {
10691
10691
  for (O = -1; Y[0] === 0; Y.splice(0, 1), O -= Pt) ;
10692
- for (W = 1, q = Y[0]; q >= 10; q /= 10, W++) ;
10692
+ for (W = 1, H = Y[0]; H >= 10; H /= 10, W++) ;
10693
10693
  W < Pt && (O -= Pt - W);
10694
10694
  }
10695
10695
  return Q.e = O, Q.c = Y, Q;
@@ -10700,63 +10700,63 @@ var H = Mh();
10700
10700
  }, a = /* @__PURE__ */ function() {
10701
10701
  var b = "0123456789";
10702
10702
  function P(T, B, S, O) {
10703
- for (var V, q = [0], W, Y = 0, Q = T.length; Y < Q; ) {
10704
- for (W = q.length; W--; q[W] *= B) ;
10705
- for (q[0] += O.indexOf(T.charAt(Y++)), V = 0; V < q.length; V++) q[V] > S - 1 && (q[V + 1] == null && (q[V + 1] = 0), q[V + 1] += q[V] / S | 0, q[V] %= S);
10703
+ for (var V, H = [0], W, Y = 0, Q = T.length; Y < Q; ) {
10704
+ for (W = H.length; W--; H[W] *= B) ;
10705
+ for (H[0] += O.indexOf(T.charAt(Y++)), V = 0; V < H.length; V++) H[V] > S - 1 && (H[V + 1] == null && (H[V + 1] = 0), H[V + 1] += H[V] / S | 0, H[V] %= S);
10706
10706
  }
10707
- return q.reverse();
10707
+ return H.reverse();
10708
10708
  }
10709
10709
  return function(T, B, S, O, V) {
10710
- var q, W, Y, Q, ot, gt, vt, bt, Ut = T.indexOf("."), Kt = g, Gt = v;
10711
- for (Ut >= 0 && (Q = lt, lt = 0, T = T.replace(".", ""), bt = new z(B), gt = bt.pow(T.length - Ut), lt = Q, bt.c = P(l(Te(gt.c), gt.e, "0"), 10, S, b), bt.e = bt.c.length), vt = P(T, B, S, V ? (q = At, b) : (q = b, At)), Y = Q = vt.length; vt[--Q] == 0; vt.pop()) ;
10712
- if (!vt[0]) return q.charAt(0);
10713
- if (Ut < 0 ? --Y : (gt.c = vt, gt.e = Y, gt.s = O, gt = n(gt, bt, Kt, Gt, S), vt = gt.c, ot = gt.r, Y = gt.e), W = Y + Kt + 1, Ut = vt[W], Q = S / 2, ot = ot || W < 0 || vt[W + 1] != null, ot = Gt < 4 ? (Ut != null || ot) && (Gt == 0 || Gt == (gt.s < 0 ? 3 : 2)) : Ut > Q || Ut == Q && (Gt == 4 || ot || Gt == 6 && vt[W - 1] & 1 || Gt == (gt.s < 0 ? 8 : 7)), W < 1 || !vt[0]) T = ot ? l(q.charAt(1), -Kt, q.charAt(0)) : q.charAt(0);
10710
+ var H, W, Y, Q, ot, gt, vt, bt, Ut = T.indexOf("."), Kt = g, Gt = v;
10711
+ for (Ut >= 0 && (Q = lt, lt = 0, T = T.replace(".", ""), bt = new z(B), gt = bt.pow(T.length - Ut), lt = Q, bt.c = P(l(Te(gt.c), gt.e, "0"), 10, S, b), bt.e = bt.c.length), vt = P(T, B, S, V ? (H = At, b) : (H = b, At)), Y = Q = vt.length; vt[--Q] == 0; vt.pop()) ;
10712
+ if (!vt[0]) return H.charAt(0);
10713
+ if (Ut < 0 ? --Y : (gt.c = vt, gt.e = Y, gt.s = O, gt = n(gt, bt, Kt, Gt, S), vt = gt.c, ot = gt.r, Y = gt.e), W = Y + Kt + 1, Ut = vt[W], Q = S / 2, ot = ot || W < 0 || vt[W + 1] != null, ot = Gt < 4 ? (Ut != null || ot) && (Gt == 0 || Gt == (gt.s < 0 ? 3 : 2)) : Ut > Q || Ut == Q && (Gt == 4 || ot || Gt == 6 && vt[W - 1] & 1 || Gt == (gt.s < 0 ? 8 : 7)), W < 1 || !vt[0]) T = ot ? l(H.charAt(1), -Kt, H.charAt(0)) : H.charAt(0);
10714
10714
  else {
10715
10715
  if (vt.length = W, ot) for (--S; ++vt[--W] > S; ) vt[W] = 0, W || (++Y, vt = [1].concat(vt));
10716
10716
  for (Q = vt.length; !vt[--Q]; ) ;
10717
- for (Ut = 0, T = ""; Ut <= Q; T += q.charAt(vt[Ut++])) ;
10718
- T = l(T, Y, q.charAt(0));
10717
+ for (Ut = 0, T = ""; Ut <= Q; T += H.charAt(vt[Ut++])) ;
10718
+ T = l(T, Y, H.charAt(0));
10719
10719
  }
10720
10720
  return T;
10721
10721
  };
10722
10722
  }(), n = /* @__PURE__ */ function() {
10723
10723
  function b(B, S, O) {
10724
- var V, q, W, Y, Q = 0, ot = B.length, gt = S % ai, vt = S / ai | 0;
10725
- for (B = B.slice(); ot--; ) W = B[ot] % ai, Y = B[ot] / ai | 0, V = vt * W + Y * gt, q = gt * W + V % ai * ai + Q, Q = (q / O | 0) + (V / ai | 0) + vt * Y, B[ot] = q % O;
10724
+ var V, H, W, Y, Q = 0, ot = B.length, gt = S % ai, vt = S / ai | 0;
10725
+ for (B = B.slice(); ot--; ) W = B[ot] % ai, Y = B[ot] / ai | 0, V = vt * W + Y * gt, H = gt * W + V % ai * ai + Q, Q = (H / O | 0) + (V / ai | 0) + vt * Y, B[ot] = H % O;
10726
10726
  return Q && (B = [Q].concat(B)), B;
10727
10727
  }
10728
10728
  function P(B, S, O, V) {
10729
- var q, W;
10729
+ var H, W;
10730
10730
  if (O != V) W = O > V ? 1 : -1;
10731
- else for (q = W = 0; q < O; q++) if (B[q] != S[q]) {
10732
- W = B[q] > S[q] ? 1 : -1;
10731
+ else for (H = W = 0; H < O; H++) if (B[H] != S[H]) {
10732
+ W = B[H] > S[H] ? 1 : -1;
10733
10733
  break;
10734
10734
  }
10735
10735
  return W;
10736
10736
  }
10737
10737
  function T(B, S, O, V) {
10738
- for (var q = 0; O--; ) B[O] -= q, q = B[O] < S[O] ? 1 : 0, B[O] = q * V + B[O] - S[O];
10738
+ for (var H = 0; O--; ) B[O] -= H, H = B[O] < S[O] ? 1 : 0, B[O] = H * V + B[O] - S[O];
10739
10739
  for (; !B[0] && B.length > 1; B.splice(0, 1)) ;
10740
10740
  }
10741
- return function(B, S, O, V, q) {
10741
+ return function(B, S, O, V, H) {
10742
10742
  var W, Y, Q, ot, gt, vt, bt, Ut, Kt, Gt, $t, Ee, ca, vo, Mo, mi, Ws, Ye = B.s == S.s ? 1 : -1, Se = B.c, le = S.c;
10743
10743
  if (!Se || !Se[0] || !le || !le[0]) return new z(!B.s || !S.s || (Se ? le && Se[0] == le[0] : !le) ? NaN : Se && Se[0] == 0 || !le ? Ye * 0 : Ye / 0);
10744
- for (Ut = new z(Ye), Kt = Ut.c = [], Y = B.e - S.e, Ye = O + Y + 1, q || (q = ze, Y = Ne(B.e / Pt) - Ne(S.e / Pt), Ye = Ye / Pt | 0), Q = 0; le[Q] == (Se[Q] || 0); Q++) ;
10744
+ for (Ut = new z(Ye), Kt = Ut.c = [], Y = B.e - S.e, Ye = O + Y + 1, H || (H = ze, Y = Ne(B.e / Pt) - Ne(S.e / Pt), Ye = Ye / Pt | 0), Q = 0; le[Q] == (Se[Q] || 0); Q++) ;
10745
10745
  if (le[Q] > (Se[Q] || 0) && Y--, Ye < 0) Kt.push(1), ot = !0;
10746
10746
  else {
10747
- for (vo = Se.length, mi = le.length, Q = 0, Ye += 2, gt = ye(q / (le[0] + 1)), gt > 1 && (le = b(le, gt, q), Se = b(Se, gt, q), mi = le.length, vo = Se.length), ca = mi, Gt = Se.slice(0, mi), $t = Gt.length; $t < mi; Gt[$t++] = 0) ;
10748
- Ws = le.slice(), Ws = [0].concat(Ws), Mo = le[0], le[1] >= q / 2 && Mo++;
10747
+ for (vo = Se.length, mi = le.length, Q = 0, Ye += 2, gt = ye(H / (le[0] + 1)), gt > 1 && (le = b(le, gt, H), Se = b(Se, gt, H), mi = le.length, vo = Se.length), ca = mi, Gt = Se.slice(0, mi), $t = Gt.length; $t < mi; Gt[$t++] = 0) ;
10748
+ Ws = le.slice(), Ws = [0].concat(Ws), Mo = le[0], le[1] >= H / 2 && Mo++;
10749
10749
  do {
10750
10750
  if (gt = 0, W = P(le, Gt, mi, $t), W < 0) {
10751
- if (Ee = Gt[0], mi != $t && (Ee = Ee * q + (Gt[1] || 0)), gt = ye(Ee / Mo), gt > 1) for (gt >= q && (gt = q - 1), vt = b(le, gt, q), bt = vt.length, $t = Gt.length; P(vt, Gt, bt, $t) == 1; ) gt--, T(vt, mi < bt ? Ws : le, bt, q), bt = vt.length, W = 1;
10751
+ if (Ee = Gt[0], mi != $t && (Ee = Ee * H + (Gt[1] || 0)), gt = ye(Ee / Mo), gt > 1) for (gt >= H && (gt = H - 1), vt = b(le, gt, H), bt = vt.length, $t = Gt.length; P(vt, Gt, bt, $t) == 1; ) gt--, T(vt, mi < bt ? Ws : le, bt, H), bt = vt.length, W = 1;
10752
10752
  else gt == 0 && (W = gt = 1), vt = le.slice(), bt = vt.length;
10753
- if (bt < $t && (vt = [0].concat(vt)), T(Gt, vt, $t, q), $t = Gt.length, W == -1) for (; P(le, Gt, mi, $t) < 1; ) gt++, T(Gt, mi < $t ? Ws : le, $t, q), $t = Gt.length;
10753
+ if (bt < $t && (vt = [0].concat(vt)), T(Gt, vt, $t, H), $t = Gt.length, W == -1) for (; P(le, Gt, mi, $t) < 1; ) gt++, T(Gt, mi < $t ? Ws : le, $t, H), $t = Gt.length;
10754
10754
  } else W === 0 && (gt++, Gt = [0]);
10755
10755
  Kt[Q++] = gt, Gt[0] ? Gt[$t++] = Se[ca] || 0 : (Gt = [Se[ca]], $t = 1);
10756
10756
  } while ((ca++ < vo || Gt[0] != null) && Ye--);
10757
10757
  ot = Gt[0] != null, Kt[0] || Kt.splice(0, 1);
10758
10758
  }
10759
- if (q == ze) {
10759
+ if (H == ze) {
10760
10760
  for (Q = 1, Ye = Kt[0]; Ye >= 10; Ye /= 10, Q++) ;
10761
10761
  $(Ut, O + (Ut.e = Q + Y * Pt - 1) + 1, V, ot);
10762
10762
  } else Ut.e = Y, Ut.r = +ot;
@@ -10764,15 +10764,15 @@ var H = Mh();
10764
10764
  };
10765
10765
  }();
10766
10766
  function U(b, P, T, B) {
10767
- var S, O, V, q, W;
10767
+ var S, O, V, H, W;
10768
10768
  if (T == null ? T = v : te(T, 0, 8), !b.c) return b.toString();
10769
- if (S = b.c[0], V = b.e, P == null) W = Te(b.c), W = B == 1 || B == 2 && (V <= x || V >= w) ? s(W, V) : l(W, V, "0");
10770
- else if (b = $(new z(b), P, T), O = b.e, W = Te(b.c), q = W.length, B == 1 || B == 2 && (P <= O || O <= x)) {
10771
- for (; q < P; W += "0", q++) ;
10769
+ if (S = b.c[0], V = b.e, P == null) W = Te(b.c), W = B == 1 || B == 2 && (V <= x || V >= E) ? s(W, V) : l(W, V, "0");
10770
+ else if (b = $(new z(b), P, T), O = b.e, W = Te(b.c), H = W.length, B == 1 || B == 2 && (P <= O || O <= x)) {
10771
+ for (; H < P; W += "0", H++) ;
10772
10772
  W = s(W, O);
10773
- } else if (P -= V, W = l(W, O, "0"), O + 1 > q) {
10773
+ } else if (P -= V, W = l(W, O, "0"), O + 1 > H) {
10774
10774
  if (--P > 0) for (W += "."; P--; W += "0") ;
10775
- } else if (P += O - q, P > 0) for (O + 1 == q && (W += "."); P--; W += "0") ;
10775
+ } else if (P += O - H, P > 0) for (O + 1 == H && (W += "."); P--; W += "0") ;
10776
10776
  return b.s < 0 && S ? "-" + W : W;
10777
10777
  }
10778
10778
  function K(b, P) {
@@ -10786,11 +10786,11 @@ var H = Mh();
10786
10786
  }
10787
10787
  h = /* @__PURE__ */ function() {
10788
10788
  var b = /^(-?)0([xbo])(?=\w[\w.]*$)/i, P = /^([^.]+)\.$/, T = /^\.([^.]+)$/, B = /^-?(Infinity|NaN)$/, S = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
10789
- return function(O, V, q, W) {
10790
- var Y, Q = q ? V : V.replace(S, "");
10789
+ return function(O, V, H, W) {
10790
+ var Y, Q = H ? V : V.replace(S, "");
10791
10791
  if (B.test(Q)) O.s = isNaN(Q) ? null : Q < 0 ? -1 : 1;
10792
10792
  else {
10793
- if (!q && (Q = Q.replace(b, function(ot, gt, vt) {
10793
+ if (!H && (Q = Q.replace(b, function(ot, gt, vt) {
10794
10794
  return Y = (vt = vt.toLowerCase()) == "x" ? 16 : vt == "b" ? 2 : 8, !W || W == Y ? gt : ot;
10795
10795
  }), W && (Y = W, Q = Q.replace(P, "$1").replace(T, "0.$1")), V != Q)) return new z(Q, Y);
10796
10796
  if (z.DEBUG) throw Error(de + "Not a" + (W ? " base " + W : "") + " number: " + V);
@@ -10800,28 +10800,28 @@ var H = Mh();
10800
10800
  };
10801
10801
  }();
10802
10802
  function $(b, P, T, B) {
10803
- var S, O, V, q, W, Y, Q, ot = b.c, gt = Gn;
10803
+ var S, O, V, H, W, Y, Q, ot = b.c, gt = Gn;
10804
10804
  if (ot) {
10805
10805
  t: {
10806
- for (S = 1, q = ot[0]; q >= 10; q /= 10, S++) ;
10806
+ for (S = 1, H = ot[0]; H >= 10; H /= 10, S++) ;
10807
10807
  if (O = P - S, O < 0) O += Pt, V = P, W = ot[Y = 0], Q = ye(W / gt[S - V - 1] % 10);
10808
10808
  else if (Y = js((O + 1) / Pt), Y >= ot.length) if (B) {
10809
10809
  for (; ot.length <= Y; ot.push(0)) ;
10810
10810
  W = Q = 0, S = 1, O %= Pt, V = O - Pt + 1;
10811
10811
  } else break t;
10812
10812
  else {
10813
- for (W = q = ot[Y], S = 1; q >= 10; q /= 10, S++) ;
10813
+ for (W = H = ot[Y], S = 1; H >= 10; H /= 10, S++) ;
10814
10814
  O %= Pt, V = O - Pt + S, Q = V < 0 ? 0 : ye(W / gt[S - V - 1] % 10);
10815
10815
  }
10816
10816
  if (B = B || P < 0 || ot[Y + 1] != null || (V < 0 ? W : W % gt[S - V - 1]), B = T < 4 ? (Q || B) && (T == 0 || T == (b.s < 0 ? 3 : 2)) : Q > 5 || Q == 5 && (T == 4 || B || T == 6 && (O > 0 ? V > 0 ? W / gt[S - V] : 0 : ot[Y - 1]) % 10 & 1 || T == (b.s < 0 ? 8 : 7)), P < 1 || !ot[0]) return ot.length = 0, B ? (P -= b.e + 1, ot[0] = gt[(Pt - P % Pt) % Pt], b.e = -P || 0) : ot[0] = b.e = 0, b;
10817
- if (O == 0 ? (ot.length = Y, q = 1, Y--) : (ot.length = Y + 1, q = gt[Pt - O], ot[Y] = V > 0 ? ye(W / gt[S - V] % gt[V]) * q : 0), B) for (; ; ) if (Y == 0) {
10817
+ if (O == 0 ? (ot.length = Y, H = 1, Y--) : (ot.length = Y + 1, H = gt[Pt - O], ot[Y] = V > 0 ? ye(W / gt[S - V] % gt[V]) * H : 0), B) for (; ; ) if (Y == 0) {
10818
10818
  for (O = 1, V = ot[0]; V >= 10; V /= 10, O++) ;
10819
- for (V = ot[0] += q, q = 1; V >= 10; V /= 10, q++) ;
10820
- O != q && (b.e++, ot[0] == ze && (ot[0] = 1));
10819
+ for (V = ot[0] += H, H = 1; V >= 10; V /= 10, H++) ;
10820
+ O != H && (b.e++, ot[0] == ze && (ot[0] = 1));
10821
10821
  break;
10822
10822
  } else {
10823
- if (ot[Y] += q, ot[Y] != ze) break;
10824
- ot[Y--] = 0, q = 1;
10823
+ if (ot[Y] += H, ot[Y] != ze) break;
10824
+ ot[Y--] = 0, H = 1;
10825
10825
  }
10826
10826
  for (O = ot.length; ot[--O] === 0; ot.pop()) ;
10827
10827
  }
@@ -10831,7 +10831,7 @@ var H = Mh();
10831
10831
  }
10832
10832
  function et(b) {
10833
10833
  var P, T = b.e;
10834
- return T === null ? b.toString() : (P = Te(b.c), P = T <= x || T >= w ? s(P, T) : l(P, T, "0"), b.s < 0 ? "-" + P : P);
10834
+ return T === null ? b.toString() : (P = Te(b.c), P = T <= x || T >= E ? s(P, T) : l(P, T, "0"), b.s < 0 ? "-" + P : P);
10835
10835
  }
10836
10836
  return u.absoluteValue = u.abs = function() {
10837
10837
  var b = new z(this);
@@ -10849,17 +10849,17 @@ var H = Mh();
10849
10849
  }, u.dividedToIntegerBy = u.idiv = function(b, P) {
10850
10850
  return n(this, new z(b, P), 0, 1);
10851
10851
  }, u.exponentiatedBy = u.pow = function(b, P) {
10852
- var T, B, S, O, V, q, W, Y, Q, ot = this;
10852
+ var T, B, S, O, V, H, W, Y, Q, ot = this;
10853
10853
  if (b = new z(b), b.c && !b.isInteger()) throw Error(de + "Exponent not an integer: " + et(b));
10854
- if (P != null && (P = new z(P)), q = b.e > 14, !ot.c || !ot.c[0] || ot.c[0] == 1 && !ot.e && ot.c.length == 1 || !b.c || !b.c[0]) return Q = new z(Math.pow(+et(ot), q ? b.s * (2 - t(b)) : +et(b))), P ? Q.mod(P) : Q;
10854
+ if (P != null && (P = new z(P)), H = b.e > 14, !ot.c || !ot.c[0] || ot.c[0] == 1 && !ot.e && ot.c.length == 1 || !b.c || !b.c[0]) return Q = new z(Math.pow(+et(ot), H ? b.s * (2 - t(b)) : +et(b))), P ? Q.mod(P) : Q;
10855
10855
  if (W = b.s < 0, P) {
10856
10856
  if (P.c ? !P.c[0] : !P.s) return new z(NaN);
10857
10857
  B = !W && ot.isInteger() && P.isInteger(), B && (ot = ot.mod(P));
10858
10858
  } else {
10859
- if (b.e > 9 && (ot.e > 0 || ot.e < -1 || (ot.e == 0 ? ot.c[0] > 1 || q && ot.c[1] >= 24e7 : ot.c[0] < 8e13 || q && ot.c[0] <= 9999975e7))) return O = ot.s < 0 && t(b) ? -0 : 0, ot.e > -1 && (O = 1 / O), new z(W ? 1 / O : O);
10859
+ if (b.e > 9 && (ot.e > 0 || ot.e < -1 || (ot.e == 0 ? ot.c[0] > 1 || H && ot.c[1] >= 24e7 : ot.c[0] < 8e13 || H && ot.c[0] <= 9999975e7))) return O = ot.s < 0 && t(b) ? -0 : 0, ot.e > -1 && (O = 1 / O), new z(W ? 1 / O : O);
10860
10860
  lt && (O = js(lt / Pt + 2));
10861
10861
  }
10862
- for (q ? (T = new z(0.5), W && (b.s = 1), Y = t(b)) : (S = Math.abs(+et(b)), Y = S % 2), Q = new z(f); ; ) {
10862
+ for (H ? (T = new z(0.5), W && (b.s = 1), Y = t(b)) : (S = Math.abs(+et(b)), Y = S % 2), Q = new z(f); ; ) {
10863
10863
  if (Y) {
10864
10864
  if (Q = Q.times(ot), !Q.c) break;
10865
10865
  O ? Q.c.length > O && (Q.c.length = O) : B && (Q = Q.mod(P));
@@ -10901,23 +10901,23 @@ var H = Mh();
10901
10901
  }, u.isZero = function() {
10902
10902
  return !!this.c && this.c[0] == 0;
10903
10903
  }, u.minus = function(b, P) {
10904
- var T, B, S, O, V = this, q = V.s;
10905
- if (b = new z(b, P), P = b.s, !q || !P) return new z(NaN);
10906
- if (q != P) return b.s = -P, V.plus(b);
10904
+ var T, B, S, O, V = this, H = V.s;
10905
+ if (b = new z(b, P), P = b.s, !H || !P) return new z(NaN);
10906
+ if (H != P) return b.s = -P, V.plus(b);
10907
10907
  var W = V.e / Pt, Y = b.e / Pt, Q = V.c, ot = b.c;
10908
10908
  if (!W || !Y) {
10909
10909
  if (!Q || !ot) return Q ? (b.s = -P, b) : new z(ot ? V : NaN);
10910
10910
  if (!Q[0] || !ot[0]) return ot[0] ? (b.s = -P, b) : new z(Q[0] ? V : v == 3 ? -0 : 0);
10911
10911
  }
10912
- if (W = Ne(W), Y = Ne(Y), Q = Q.slice(), q = W - Y) {
10913
- for ((O = q < 0) ? (q = -q, S = Q) : (Y = W, S = ot), S.reverse(), P = q; P--; S.push(0)) ;
10912
+ if (W = Ne(W), Y = Ne(Y), Q = Q.slice(), H = W - Y) {
10913
+ for ((O = H < 0) ? (H = -H, S = Q) : (Y = W, S = ot), S.reverse(), P = H; P--; S.push(0)) ;
10914
10914
  S.reverse();
10915
- } else for (B = (O = (q = Q.length) < (P = ot.length)) ? q : P, q = P = 0; P < B; P++) if (Q[P] != ot[P]) {
10915
+ } else for (B = (O = (H = Q.length) < (P = ot.length)) ? H : P, H = P = 0; P < B; P++) if (Q[P] != ot[P]) {
10916
10916
  O = Q[P] < ot[P];
10917
10917
  break;
10918
10918
  }
10919
10919
  if (O && (S = Q, Q = ot, ot = S, b.s = -b.s), P = (B = ot.length) - (T = Q.length), P > 0) for (; P--; Q[T++] = 0) ;
10920
- for (P = ze - 1; B > q; ) {
10920
+ for (P = ze - 1; B > H; ) {
10921
10921
  if (Q[--B] < ot[B]) {
10922
10922
  for (T = B; T && !Q[--T]; Q[T] = P) ;
10923
10923
  --Q[T], Q[B] += ze;
@@ -10930,11 +10930,11 @@ var H = Mh();
10930
10930
  var T, B, S = this;
10931
10931
  return b = new z(b, P), !S.c || !b.s || b.c && !b.c[0] ? new z(NaN) : !b.c || S.c && !S.c[0] ? new z(S) : (nt == 9 ? (B = b.s, b.s = 1, T = n(S, b, 0, 3), b.s = B, T.s *= B) : T = n(S, b, 0, nt), b = S.minus(T.times(b)), !b.c[0] && nt == 1 && (b.s = S.s), b);
10932
10932
  }, u.multipliedBy = u.times = function(b, P) {
10933
- var T, B, S, O, V, q, W, Y, Q, ot, gt, vt, bt, Ut, Kt, Gt = this, $t = Gt.c, Ee = (b = new z(b, P)).c;
10933
+ var T, B, S, O, V, H, W, Y, Q, ot, gt, vt, bt, Ut, Kt, Gt = this, $t = Gt.c, Ee = (b = new z(b, P)).c;
10934
10934
  if (!$t || !Ee || !$t[0] || !Ee[0]) return !Gt.s || !b.s || $t && !$t[0] && !Ee || Ee && !Ee[0] && !$t ? b.c = b.e = b.s = null : (b.s *= Gt.s, !$t || !Ee ? b.c = b.e = null : (b.c = [0], b.e = 0)), b;
10935
10935
  for (B = Ne(Gt.e / Pt) + Ne(b.e / Pt), b.s *= Gt.s, W = $t.length, ot = Ee.length, W < ot && (bt = $t, $t = Ee, Ee = bt, S = W, W = ot, ot = S), S = W + ot, bt = []; S--; bt.push(0)) ;
10936
10936
  for (Ut = ze, Kt = ai, S = ot; --S >= 0; ) {
10937
- for (T = 0, gt = Ee[S] % Kt, vt = Ee[S] / Kt | 0, V = W, O = S + V; O > S; ) Y = $t[--V] % Kt, Q = $t[V] / Kt | 0, q = vt * Y + Q * gt, Y = gt * Y + q % Kt * Kt + bt[O] + T, T = (Y / Ut | 0) + (q / Kt | 0) + vt * Q, bt[O--] = Y % Ut;
10937
+ for (T = 0, gt = Ee[S] % Kt, vt = Ee[S] / Kt | 0, V = W, O = S + V; O > S; ) Y = $t[--V] % Kt, Q = $t[V] / Kt | 0, H = vt * Y + Q * gt, Y = gt * Y + H % Kt * Kt + bt[O] + T, T = (Y / Ut | 0) + (H / Kt | 0) + vt * Q, bt[O--] = Y % Ut;
10938
10938
  bt[O] = T;
10939
10939
  }
10940
10940
  return T ? ++B : bt.splice(0, 1), it(b, bt, B);
@@ -10945,17 +10945,17 @@ var H = Mh();
10945
10945
  var T, B = this, S = B.s;
10946
10946
  if (b = new z(b, P), P = b.s, !S || !P) return new z(NaN);
10947
10947
  if (S != P) return b.s = -P, B.minus(b);
10948
- var O = B.e / Pt, V = b.e / Pt, q = B.c, W = b.c;
10948
+ var O = B.e / Pt, V = b.e / Pt, H = B.c, W = b.c;
10949
10949
  if (!O || !V) {
10950
- if (!q || !W) return new z(S / 0);
10951
- if (!q[0] || !W[0]) return W[0] ? b : new z(q[0] ? B : S * 0);
10950
+ if (!H || !W) return new z(S / 0);
10951
+ if (!H[0] || !W[0]) return W[0] ? b : new z(H[0] ? B : S * 0);
10952
10952
  }
10953
- if (O = Ne(O), V = Ne(V), q = q.slice(), S = O - V) {
10954
- for (S > 0 ? (V = O, T = W) : (S = -S, T = q), T.reverse(); S--; T.push(0)) ;
10953
+ if (O = Ne(O), V = Ne(V), H = H.slice(), S = O - V) {
10954
+ for (S > 0 ? (V = O, T = W) : (S = -S, T = H), T.reverse(); S--; T.push(0)) ;
10955
10955
  T.reverse();
10956
10956
  }
10957
- for (S = q.length, P = W.length, S - P < 0 && (T = W, W = q, q = T, P = S), S = 0; P; ) S = (q[--P] = q[P] + W[P] + S) / ze | 0, q[P] = ze === q[P] ? 0 : q[P] % ze;
10958
- return S && (q = [S].concat(q), ++V), it(b, q, V);
10957
+ for (S = H.length, P = W.length, S - P < 0 && (T = W, W = H, H = T, P = S), S = 0; P; ) S = (H[--P] = H[P] + W[P] + S) / ze | 0, H[P] = ze === H[P] ? 0 : H[P] % ze;
10958
+ return S && (H = [S].concat(H), ++V), it(b, H, V);
10959
10959
  }, u.precision = u.sd = function(b, P) {
10960
10960
  var T, B, S, O = this;
10961
10961
  if (b != null && b !== !!b) return te(b, 1, ue), P == null ? P = v : te(P, 0, 8), $(new z(O), b, P);
@@ -10968,15 +10968,15 @@ var H = Mh();
10968
10968
  }, u.shiftedBy = function(b) {
10969
10969
  return te(b, -Nn, Nn), this.times("1e" + b);
10970
10970
  }, u.squareRoot = u.sqrt = function() {
10971
- var b, P, T, B, S, O = this, V = O.c, q = O.s, W = O.e, Y = g + 4, Q = new z("0.5");
10972
- if (q !== 1 || !V || !V[0]) return new z(!q || q < 0 && (!V || V[0]) ? NaN : V ? O : 1 / 0);
10973
- if (q = Math.sqrt(+et(O)), q == 0 || q == 1 / 0 ? (P = Te(V), (P.length + W) % 2 == 0 && (P += "0"), q = Math.sqrt(+P), W = Ne((W + 1) / 2) - (W < 0 || W % 2), q == 1 / 0 ? P = "5e" + W : (P = q.toExponential(), P = P.slice(0, P.indexOf("e") + 1) + W), T = new z(P)) : T = new z(q + ""), T.c[0]) {
10974
- for (W = T.e, q = W + Y, q < 3 && (q = 0); ; ) if (S = T, T = Q.times(S.plus(n(O, S, Y, 1))), Te(S.c).slice(0, q) === (P = Te(T.c)).slice(0, q)) if (T.e < W && --q, P = P.slice(q - 3, q + 1), P == "9999" || !B && P == "4999") {
10971
+ var b, P, T, B, S, O = this, V = O.c, H = O.s, W = O.e, Y = g + 4, Q = new z("0.5");
10972
+ if (H !== 1 || !V || !V[0]) return new z(!H || H < 0 && (!V || V[0]) ? NaN : V ? O : 1 / 0);
10973
+ if (H = Math.sqrt(+et(O)), H == 0 || H == 1 / 0 ? (P = Te(V), (P.length + W) % 2 == 0 && (P += "0"), H = Math.sqrt(+P), W = Ne((W + 1) / 2) - (W < 0 || W % 2), H == 1 / 0 ? P = "5e" + W : (P = H.toExponential(), P = P.slice(0, P.indexOf("e") + 1) + W), T = new z(P)) : T = new z(H + ""), T.c[0]) {
10974
+ for (W = T.e, H = W + Y, H < 3 && (H = 0); ; ) if (S = T, T = Q.times(S.plus(n(O, S, Y, 1))), Te(S.c).slice(0, H) === (P = Te(T.c)).slice(0, H)) if (T.e < W && --H, P = P.slice(H - 3, H + 1), P == "9999" || !B && P == "4999") {
10975
10975
  if (!B && ($(S, S.e + g + 2, 0), S.times(S).eq(O))) {
10976
10976
  T = S;
10977
10977
  break;
10978
10978
  }
10979
- Y += 4, q += 4, B = 1;
10979
+ Y += 4, H += 4, B = 1;
10980
10980
  } else {
10981
10981
  (!+P || !+P.slice(1) && P.charAt(0) == "5") && ($(T, T.e + g + 2, 1), b = !T.times(T).eq(O));
10982
10982
  break;
@@ -10992,19 +10992,19 @@ var H = Mh();
10992
10992
  if (T == null) b != null && P && typeof P == "object" ? (T = P, P = null) : b && typeof b == "object" ? (T = b, b = P = null) : T = dt;
10993
10993
  else if (typeof T != "object") throw Error(de + "Argument not an object: " + T);
10994
10994
  if (B = S.toFixed(b, P), S.c) {
10995
- var O, V = B.split("."), q = +T.groupSize, W = +T.secondaryGroupSize, Y = T.groupSeparator || "", Q = V[0], ot = V[1], gt = S.s < 0, vt = gt ? Q.slice(1) : Q, bt = vt.length;
10996
- if (W && (O = q, q = W, W = O, bt -= O), q > 0 && bt > 0) {
10997
- for (O = bt % q || q, Q = vt.substr(0, O); O < bt; O += q) Q += Y + vt.substr(O, q);
10995
+ var O, V = B.split("."), H = +T.groupSize, W = +T.secondaryGroupSize, Y = T.groupSeparator || "", Q = V[0], ot = V[1], gt = S.s < 0, vt = gt ? Q.slice(1) : Q, bt = vt.length;
10996
+ if (W && (O = H, H = W, W = O, bt -= O), H > 0 && bt > 0) {
10997
+ for (O = bt % H || H, Q = vt.substr(0, O); O < bt; O += H) Q += Y + vt.substr(O, H);
10998
10998
  W > 0 && (Q += Y + vt.slice(O)), gt && (Q = "-" + Q);
10999
10999
  }
11000
11000
  B = ot ? Q + (T.decimalSeparator || "") + ((W = +T.fractionGroupSize) ? ot.replace(new RegExp("\\d{" + W + "}\\B", "g"), "$&" + (T.fractionGroupSeparator || "")) : ot) : Q;
11001
11001
  }
11002
11002
  return (T.prefix || "") + B + (T.suffix || "");
11003
11003
  }, u.toFraction = function(b) {
11004
- var P, T, B, S, O, V, q, W, Y, Q, ot, gt, vt = this, bt = vt.c;
11005
- if (b != null && (q = new z(b), !q.isInteger() && (q.c || q.s !== 1) || q.lt(f))) throw Error(de + "Argument " + (q.isInteger() ? "out of range: " : "not an integer: ") + et(q));
11004
+ var P, T, B, S, O, V, H, W, Y, Q, ot, gt, vt = this, bt = vt.c;
11005
+ if (b != null && (H = new z(b), !H.isInteger() && (H.c || H.s !== 1) || H.lt(f))) throw Error(de + "Argument " + (H.isInteger() ? "out of range: " : "not an integer: ") + et(H));
11006
11006
  if (!bt) return new z(vt);
11007
- for (P = new z(f), Y = T = new z(f), B = W = new z(f), gt = Te(bt), O = P.e = gt.length - vt.e - 1, P.c[0] = Gn[(V = O % Pt) < 0 ? Pt + V : V], b = !b || q.comparedTo(P) > 0 ? O > 0 ? P : Y : q, V = F, F = 1 / 0, q = new z(gt), W.c[0] = 0; Q = n(q, P, 0, 1), S = T.plus(Q.times(B)), S.comparedTo(b) != 1; ) T = B, B = S, Y = W.plus(Q.times(S = Y)), W = S, P = q.minus(Q.times(S = P)), q = S;
11007
+ for (P = new z(f), Y = T = new z(f), B = W = new z(f), gt = Te(bt), O = P.e = gt.length - vt.e - 1, P.c[0] = Gn[(V = O % Pt) < 0 ? Pt + V : V], b = !b || H.comparedTo(P) > 0 ? O > 0 ? P : Y : H, V = F, F = 1 / 0, H = new z(gt), W.c[0] = 0; Q = n(H, P, 0, 1), S = T.plus(Q.times(B)), S.comparedTo(b) != 1; ) T = B, B = S, Y = W.plus(Q.times(S = Y)), W = S, P = H.minus(Q.times(S = P)), H = S;
11008
11008
  return S = n(b.minus(T), B, 0, 1), W = W.plus(S.times(Y)), T = T.plus(S.times(B)), W.s = Y.s = vt.s, O = O * 2, ot = n(Y, B, O, v).minus(vt).abs().comparedTo(n(W, T, O, v).minus(vt).abs()) < 1 ? [Y, B] : [W, T], F = V, ot;
11009
11009
  }, u.toNumber = function() {
11010
11010
  return +et(this);
@@ -11012,7 +11012,7 @@ var H = Mh();
11012
11012
  return b != null && te(b, 1, ue), U(this, b, P, 2);
11013
11013
  }, u.toString = function(b) {
11014
11014
  var P, T = this, B = T.s, S = T.e;
11015
- return S === null ? B ? (P = "Infinity", B < 0 && (P = "-" + P)) : P = "NaN" : (b == null ? P = S <= x || S >= w ? s(Te(T.c), S) : l(Te(T.c), S, "0") : b === 10 && zt ? (T = $(new z(T), g + S + 1, v), P = l(Te(T.c), T.e, "0")) : (te(b, 2, At.length, "Base"), P = a(l(Te(T.c), S, "0"), 10, b, B, !0)), B < 0 && T.c[0] && (P = "-" + P)), P;
11015
+ return S === null ? B ? (P = "Infinity", B < 0 && (P = "-" + P)) : P = "NaN" : (b == null ? P = S <= x || S >= E ? s(Te(T.c), S) : l(Te(T.c), S, "0") : b === 10 && zt ? (T = $(new z(T), g + S + 1, v), P = l(Te(T.c), T.e, "0")) : (te(b, 2, At.length, "Base"), P = a(l(Te(T.c), S, "0"), 10, b, B, !0)), B < 0 && T.c[0] && (P = "-" + P)), P;
11016
11016
  }, u.valueOf = u.toJSON = function() {
11017
11017
  return et(this);
11018
11018
  }, u._isBigNumber = !0, u[Symbol.toStringTag] = "BigNumber", u[Symbol.for("nodejs.util.inspect.custom")] = u.valueOf, i != null && z.set(i), z;
@@ -11030,14 +11030,14 @@ var H = Mh();
11030
11030
  return f.slice(0, u + 1 || 1);
11031
11031
  }
11032
11032
  function fi(i, n) {
11033
- var a, h, u = i.c, f = n.c, g = i.s, v = n.s, x = i.e, w = n.e;
11033
+ var a, h, u = i.c, f = n.c, g = i.s, v = n.s, x = i.e, E = n.e;
11034
11034
  if (!g || !v) return null;
11035
11035
  if (a = u && !u[0], h = f && !f[0], a || h) return a ? h ? 0 : -v : g;
11036
11036
  if (g != v) return g;
11037
- if (a = g < 0, h = x == w, !u || !f) return h ? 0 : !u ^ a ? 1 : -1;
11038
- if (!h) return x > w ^ a ? 1 : -1;
11039
- for (v = (x = u.length) < (w = f.length) ? x : w, g = 0; g < v; g++) if (u[g] != f[g]) return u[g] > f[g] ^ a ? 1 : -1;
11040
- return x == w ? 0 : x > w ^ a ? 1 : -1;
11037
+ if (a = g < 0, h = x == E, !u || !f) return h ? 0 : !u ^ a ? 1 : -1;
11038
+ if (!h) return x > E ^ a ? 1 : -1;
11039
+ for (v = (x = u.length) < (E = f.length) ? x : E, g = 0; g < v; g++) if (u[g] != f[g]) return u[g] > f[g] ^ a ? 1 : -1;
11040
+ return x == E ? 0 : x > E ^ a ? 1 : -1;
11041
11041
  }
11042
11042
  function te(i, n, a, h) {
11043
11043
  if (i < n || i > a || i !== ye(i)) throw Error(de + (h || "Argument") + (typeof i == "number" ? i < n || i > a ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(i));
@@ -11082,13 +11082,13 @@ var H = Mh();
11082
11082
  if (n == null) return this.compare(i, i), -1;
11083
11083
  let a = null, h = null, u = null, f = null, g = n, v = this.compare, x;
11084
11084
  for (; ; ) if (x = v(g.key, i), x > 0) {
11085
- let w = g.left;
11086
- if (w == null || (x = v(w.key, i), x > 0 && (g.left = w.right, w.right = g, g = w, w = g.left, w == null))) break;
11087
- a == null ? h = g : a.left = g, a = g, g = w;
11085
+ let E = g.left;
11086
+ if (E == null || (x = v(E.key, i), x > 0 && (g.left = E.right, E.right = g, g = E, E = g.left, E == null))) break;
11087
+ a == null ? h = g : a.left = g, a = g, g = E;
11088
11088
  } else if (x < 0) {
11089
- let w = g.right;
11090
- if (w == null || (x = v(w.key, i), x < 0 && (g.right = w.left, w.left = g, g = w, w = g.right, w == null))) break;
11091
- u == null ? f = g : u.right = g, u = g, g = w;
11089
+ let E = g.right;
11090
+ if (E == null || (x = v(E.key, i), x < 0 && (g.right = E.left, E.left = g, g = E, E = g.right, E == null))) break;
11091
+ u == null ? f = g : u.right = g, u = g, g = E;
11092
11092
  } else break;
11093
11093
  return u != null && (u.right = g.left, g.left = f), a != null && (a.left = g.right, g.right = h), this.root !== g && (this.root = g, this.splayCount++), x;
11094
11094
  }
@@ -11255,12 +11255,12 @@ var H = Mh();
11255
11255
  let v, x;
11256
11256
  do {
11257
11257
  if (v = f.left, x = f.right, v != null) {
11258
- let w = new Z(v.key);
11259
- g.left = w, h(v, w);
11258
+ let E = new Z(v.key);
11259
+ g.left = E, h(v, E);
11260
11260
  }
11261
11261
  if (x != null) {
11262
- let w = new Z(x.key);
11263
- g.right = w, f = x, g = w;
11262
+ let E = new Z(x.key);
11263
+ g.right = E, f = x, g = E;
11264
11264
  }
11265
11265
  } while (x != null);
11266
11266
  }
@@ -11360,7 +11360,7 @@ var H = Mh();
11360
11360
  if (h.y.isZero()) return Hs(i, n, a.y);
11361
11361
  let u = Zn(n, h);
11362
11362
  if (u.isZero()) return null;
11363
- let f = { x: a.x.minus(i.x), y: a.y.minus(i.y) }, g = Zn(f, n).div(u), v = Zn(f, h).div(u), x = i.x.plus(v.times(n.x)), w = a.x.plus(g.times(h.x)), N = i.y.plus(v.times(n.y)), F = a.y.plus(g.times(h.y)), J = x.plus(w).div(2), nt = N.plus(F).div(2);
11363
+ let f = { x: a.x.minus(i.x), y: a.y.minus(i.y) }, g = Zn(f, n).div(u), v = Zn(f, h).div(u), x = i.x.plus(v.times(n.x)), E = a.x.plus(g.times(h.x)), N = i.y.plus(v.times(n.y)), F = a.y.plus(g.times(h.y)), J = x.plus(E).div(2), nt = N.plus(F).div(2);
11364
11364
  return { x: J, y: nt };
11365
11365
  }, Qe = class xh {
11366
11366
  constructor(n, a) {
@@ -11412,8 +11412,8 @@ var H = Mh();
11412
11412
  };
11413
11413
  return (u, f) => {
11414
11414
  a.has(u) || h(u), a.has(f) || h(f);
11415
- let { sine: g, cosine: v } = a.get(u), { sine: x, cosine: w } = a.get(f);
11416
- return g.isGreaterThanOrEqualTo(0) && x.isGreaterThanOrEqualTo(0) ? v.isLessThan(w) ? 1 : v.isGreaterThan(w) ? -1 : 0 : g.isLessThan(0) && x.isLessThan(0) ? v.isLessThan(w) ? -1 : v.isGreaterThan(w) ? 1 : 0 : x.isLessThan(g) ? -1 : x.isGreaterThan(g) ? 1 : 0;
11415
+ let { sine: g, cosine: v } = a.get(u), { sine: x, cosine: E } = a.get(f);
11416
+ return g.isGreaterThanOrEqualTo(0) && x.isGreaterThanOrEqualTo(0) ? v.isLessThan(E) ? 1 : v.isGreaterThan(E) ? -1 : 0 : g.isLessThan(0) && x.isLessThan(0) ? v.isLessThan(E) ? -1 : v.isGreaterThan(E) ? 1 : 0 : x.isLessThan(g) ? -1 : x.isGreaterThan(g) ? 1 : 0;
11417
11417
  };
11418
11418
  }
11419
11419
  }, Ao = 0, qn = class ma {
@@ -11436,10 +11436,10 @@ var H = Mh();
11436
11436
  let h = n.leftSE.point.x, u = a.leftSE.point.x, f = n.rightSE.point.x, g = a.rightSE.point.x;
11437
11437
  if (g.isLessThan(h)) return 1;
11438
11438
  if (f.isLessThan(u)) return -1;
11439
- let v = n.leftSE.point.y, x = a.leftSE.point.y, w = n.rightSE.point.y, N = a.rightSE.point.y;
11439
+ let v = n.leftSE.point.y, x = a.leftSE.point.y, E = n.rightSE.point.y, N = a.rightSE.point.y;
11440
11440
  if (h.isLessThan(u)) {
11441
- if (x.isLessThan(v) && x.isLessThan(w)) return 1;
11442
- if (x.isGreaterThan(v) && x.isGreaterThan(w)) return -1;
11441
+ if (x.isLessThan(v) && x.isLessThan(E)) return 1;
11442
+ if (x.isGreaterThan(v) && x.isGreaterThan(E)) return -1;
11443
11443
  let F = n.comparePoint(a.leftSE.point);
11444
11444
  if (F < 0) return 1;
11445
11445
  if (F > 0) return -1;
@@ -11466,19 +11466,19 @@ var H = Mh();
11466
11466
  if (F > 0) return -1;
11467
11467
  }
11468
11468
  if (!f.eq(g)) {
11469
- let F = w.minus(v), J = f.minus(h), nt = N.minus(x), lt = g.minus(u);
11469
+ let F = E.minus(v), J = f.minus(h), nt = N.minus(x), lt = g.minus(u);
11470
11470
  if (F.isGreaterThan(J) && nt.isLessThan(lt)) return 1;
11471
11471
  if (F.isLessThan(J) && nt.isGreaterThan(lt)) return -1;
11472
11472
  }
11473
- return f.isGreaterThan(g) ? 1 : f.isLessThan(g) || w.isLessThan(N) ? -1 : w.isGreaterThan(N) ? 1 : n.id < a.id ? -1 : n.id > a.id ? 1 : 0;
11473
+ return f.isGreaterThan(g) ? 1 : f.isLessThan(g) || E.isLessThan(N) ? -1 : E.isGreaterThan(N) ? 1 : n.id < a.id ? -1 : n.id > a.id ? 1 : 0;
11474
11474
  }
11475
11475
  static fromRing(n, a, h) {
11476
11476
  let u, f, g, v = Qe.comparePoints(n, a);
11477
11477
  if (v < 0) u = n, f = a, g = 1;
11478
11478
  else if (v > 0) u = a, f = n, g = -1;
11479
11479
  else throw new Error(`Tried to create degenerate segment at [${n.x}, ${n.y}]`);
11480
- let x = new Qe(u, !0), w = new Qe(f, !1);
11481
- return new ma(x, w, [h], [g]);
11480
+ let x = new Qe(u, !0), E = new Qe(f, !1);
11481
+ return new ma(x, E, [h], [g]);
11482
11482
  }
11483
11483
  replaceRightSE(n) {
11484
11484
  this.rightSE = n, this.rightSE.segment = this, this.rightSE.otherSE = this.leftSE, this.leftSE.otherSE = this.rightSE;
@@ -11499,10 +11499,10 @@ var H = Mh();
11499
11499
  getIntersection(n) {
11500
11500
  let a = this.bbox(), h = n.bbox(), u = pi(a, h);
11501
11501
  if (u === null) return null;
11502
- let f = this.leftSE.point, g = this.rightSE.point, v = n.leftSE.point, x = n.rightSE.point, w = fe(a, v) && this.comparePoint(v) === 0, N = fe(h, f) && n.comparePoint(f) === 0, F = fe(a, x) && this.comparePoint(x) === 0, J = fe(h, g) && n.comparePoint(g) === 0;
11503
- if (N && w) return J && !F ? g : !J && F ? x : null;
11502
+ let f = this.leftSE.point, g = this.rightSE.point, v = n.leftSE.point, x = n.rightSE.point, E = fe(a, v) && this.comparePoint(v) === 0, N = fe(h, f) && n.comparePoint(f) === 0, F = fe(a, x) && this.comparePoint(x) === 0, J = fe(h, g) && n.comparePoint(g) === 0;
11503
+ if (N && E) return J && !F ? g : !J && F ? x : null;
11504
11504
  if (N) return F && f.x.eq(x.x) && f.y.eq(x.y) ? null : f;
11505
- if (w) return J && g.x.eq(v.x) && g.y.eq(v.y) ? null : v;
11505
+ if (E) return J && g.x.eq(v.x) && g.y.eq(v.y) ? null : v;
11506
11506
  if (J && F) return null;
11507
11507
  if (J) return g;
11508
11508
  if (F) return x;
@@ -11535,8 +11535,8 @@ var H = Mh();
11535
11535
  a = h, h = f;
11536
11536
  }
11537
11537
  for (let f = 0, g = h.rings.length; f < g; f++) {
11538
- let v = h.rings[f], x = h.windings[f], w = a.rings.indexOf(v);
11539
- w === -1 ? (a.rings.push(v), a.windings.push(x)) : a.windings[w] += x;
11538
+ let v = h.rings[f], x = h.windings[f], E = a.rings.indexOf(v);
11539
+ E === -1 ? (a.rings.push(v), a.windings.push(x)) : a.windings[E] += x;
11540
11540
  }
11541
11541
  h.rings = null, h.windings = null, h.consumedBy = a, h.leftSE.consumedBy = a.leftSE, h.rightSE.consumedBy = a.rightSE;
11542
11542
  }
@@ -11559,23 +11559,23 @@ var H = Mh();
11559
11559
  this._afterState = { rings: n.rings.slice(0), windings: n.windings.slice(0), multiPolys: [] };
11560
11560
  let a = this._afterState.rings, h = this._afterState.windings, u = this._afterState.multiPolys;
11561
11561
  for (let v = 0, x = this.rings.length; v < x; v++) {
11562
- let w = this.rings[v], N = this.windings[v], F = a.indexOf(w);
11563
- F === -1 ? (a.push(w), h.push(N)) : h[F] += N;
11562
+ let E = this.rings[v], N = this.windings[v], F = a.indexOf(E);
11563
+ F === -1 ? (a.push(E), h.push(N)) : h[F] += N;
11564
11564
  }
11565
11565
  let f = [], g = [];
11566
11566
  for (let v = 0, x = a.length; v < x; v++) {
11567
11567
  if (h[v] === 0) continue;
11568
- let w = a[v], N = w.poly;
11569
- if (g.indexOf(N) === -1) if (w.isExterior) f.push(N);
11568
+ let E = a[v], N = E.poly;
11569
+ if (g.indexOf(N) === -1) if (E.isExterior) f.push(N);
11570
11570
  else {
11571
11571
  g.indexOf(N) === -1 && g.push(N);
11572
- let F = f.indexOf(w.poly);
11572
+ let F = f.indexOf(E.poly);
11573
11573
  F !== -1 && f.splice(F, 1);
11574
11574
  }
11575
11575
  }
11576
11576
  for (let v = 0, x = f.length; v < x; v++) {
11577
- let w = f[v].multiPoly;
11578
- u.indexOf(w) === -1 && u.push(w);
11577
+ let E = f[v].multiPoly;
11578
+ u.indexOf(E) === -1 && u.push(E);
11579
11579
  }
11580
11580
  return this._afterState;
11581
11581
  }
@@ -11695,11 +11695,11 @@ var H = Mh();
11695
11695
  for (let h = 0, u = n.length; h < u; h++) {
11696
11696
  let f = n[h];
11697
11697
  if (!f.isInResult() || f.ringOut) continue;
11698
- let g = null, v = f.leftSE, x = f.rightSE, w = [v], N = v.point, F = [];
11699
- for (; g = v, v = x, w.push(v), v.point !== N; ) for (; ; ) {
11698
+ let g = null, v = f.leftSE, x = f.rightSE, E = [v], N = v.point, F = [];
11699
+ for (; g = v, v = x, E.push(v), v.point !== N; ) for (; ; ) {
11700
11700
  let J = v.getAvailableLinkedEvents();
11701
11701
  if (J.length === 0) {
11702
- let dt = w[0].point, At = w[w.length - 1].point;
11702
+ let dt = E[0].point, At = E[E.length - 1].point;
11703
11703
  throw new Error(`Unable to complete output ring starting at [${dt.x}, ${dt.y}]. Last matching segment found ends at [${At.x}, ${At.y}].`);
11704
11704
  }
11705
11705
  if (J.length === 1) {
@@ -11712,30 +11712,30 @@ var H = Mh();
11712
11712
  break;
11713
11713
  }
11714
11714
  if (nt !== null) {
11715
- let dt = F.splice(nt)[0], At = w.splice(dt.index);
11715
+ let dt = F.splice(nt)[0], At = E.splice(dt.index);
11716
11716
  At.unshift(At[0].otherSE), a.push(new ko(At.reverse()));
11717
11717
  continue;
11718
11718
  }
11719
- F.push({ index: w.length, point: v.point });
11719
+ F.push({ index: E.length, point: v.point });
11720
11720
  let lt = v.getLeftmostComparator(g);
11721
11721
  x = J.sort(lt)[0].otherSE;
11722
11722
  break;
11723
11723
  }
11724
- a.push(new ko(w));
11724
+ a.push(new ko(E));
11725
11725
  }
11726
11726
  return a;
11727
11727
  }
11728
11728
  getGeom() {
11729
11729
  let n = this.events[0].point, a = [n];
11730
- for (let w = 1, N = this.events.length - 1; w < N; w++) {
11731
- let F = this.events[w].point, J = this.events[w + 1].point;
11730
+ for (let E = 1, N = this.events.length - 1; E < N; E++) {
11731
+ let F = this.events[E].point, J = this.events[E + 1].point;
11732
11732
  he.orient(F, n, J) !== 0 && (a.push(F), n = F);
11733
11733
  }
11734
11734
  if (a.length === 1) return null;
11735
11735
  let h = a[0], u = a[1];
11736
11736
  he.orient(h, n, u) === 0 && a.shift(), a.push(a[0]);
11737
11737
  let f = this.isExteriorRing() ? 1 : -1, g = this.isExteriorRing() ? 0 : a.length - 1, v = this.isExteriorRing() ? a.length : -1, x = [];
11738
- for (let w = g; w != v; w += f) x.push([a[w].x.toNumber(), a[w].y.toNumber()]);
11738
+ for (let E = g; E != v; E += f) x.push([a[E].x.toNumber(), a[E].y.toNumber()]);
11739
11739
  return x;
11740
11740
  }
11741
11741
  isExteriorRing() {
@@ -11833,7 +11833,7 @@ var H = Mh();
11833
11833
  let v = h.getIntersection(n);
11834
11834
  if (v !== null && (n.isAnEndpoint(v) || (f = v), !h.isAnEndpoint(v))) {
11835
11835
  let x = this._splitSafely(h, v);
11836
- for (let w = 0, N = x.length; w < N; w++) a.push(x[w]);
11836
+ for (let E = 0, N = x.length; E < N; E++) a.push(x[E]);
11837
11837
  }
11838
11838
  }
11839
11839
  let g = null;
@@ -11841,14 +11841,14 @@ var H = Mh();
11841
11841
  let v = u.getIntersection(n);
11842
11842
  if (v !== null && (n.isAnEndpoint(v) || (g = v), !u.isAnEndpoint(v))) {
11843
11843
  let x = this._splitSafely(u, v);
11844
- for (let w = 0, N = x.length; w < N; w++) a.push(x[w]);
11844
+ for (let E = 0, N = x.length; E < N; E++) a.push(x[E]);
11845
11845
  }
11846
11846
  }
11847
11847
  if (f !== null || g !== null) {
11848
11848
  let v = null;
11849
11849
  f === null ? v = g : g === null ? v = f : v = Qe.comparePoints(f, g) <= 0 ? f : g, this.queue.delete(n.rightSE), a.push(n.rightSE);
11850
11850
  let x = n.split(v);
11851
- for (let w = 0, N = x.length; w < N; w++) a.push(x[w]);
11851
+ for (let E = 0, N = x.length; E < N; E++) a.push(x[E]);
11852
11852
  }
11853
11853
  a.length > 0 ? (this.tree.delete(n), a.push(i)) : (this.segments.push(n), n.prev = h);
11854
11854
  } else {
@@ -11884,25 +11884,25 @@ var H = Mh();
11884
11884
  run(i, n, a) {
11885
11885
  Vs.type = i;
11886
11886
  let h = [new aa(n, !0)];
11887
- for (let x = 0, w = a.length; x < w; x++) h.push(new aa(a[x], !1));
11887
+ for (let x = 0, E = a.length; x < E; x++) h.push(new aa(a[x], !1));
11888
11888
  if (Vs.numMultiPolys = h.length, Vs.type === "difference") {
11889
- let x = h[0], w = 1;
11890
- for (; w < h.length; ) pi(h[w].bbox, x.bbox) !== null ? w++ : h.splice(w, 1);
11889
+ let x = h[0], E = 1;
11890
+ for (; E < h.length; ) pi(h[E].bbox, x.bbox) !== null ? E++ : h.splice(E, 1);
11891
11891
  }
11892
- if (Vs.type === "intersection") for (let x = 0, w = h.length; x < w; x++) {
11892
+ if (Vs.type === "intersection") for (let x = 0, E = h.length; x < E; x++) {
11893
11893
  let N = h[x];
11894
11894
  for (let F = x + 1, J = h.length; F < J; F++) if (pi(N.bbox, h[F].bbox) === null) return [];
11895
11895
  }
11896
11896
  let u = new st(Qe.compare);
11897
- for (let x = 0, w = h.length; x < w; x++) {
11897
+ for (let x = 0, E = h.length; x < E; x++) {
11898
11898
  let N = h[x].getSweepEvents();
11899
11899
  for (let F = 0, J = N.length; F < J; F++) u.add(N[F]);
11900
11900
  }
11901
11901
  let f = new Jh(u), g = null;
11902
11902
  for (u.size != 0 && (g = u.first(), u.delete(g)); g; ) {
11903
11903
  let x = f.process(g);
11904
- for (let w = 0, N = x.length; w < N; w++) {
11905
- let F = x[w];
11904
+ for (let E = 0, N = x.length; E < N; E++) {
11905
+ let F = x[E];
11906
11906
  F.consumedBy === void 0 && u.add(F);
11907
11907
  }
11908
11908
  u.size != 0 ? (g = u.first(), u.delete(g)) : g = null;
@@ -11983,9 +11983,9 @@ var H = Mh();
11983
11983
  if (h instanceof L.Polygon) {
11984
11984
  u = L.polygon(h.getLatLngs());
11985
11985
  let x = u.getLatLngs();
11986
- a.forEach((w) => {
11987
- if (w && w.snapInfo) {
11988
- let { latlng: N } = w, F = this._calcClosestLayer(N, [u]);
11986
+ a.forEach((E) => {
11987
+ if (E && E.snapInfo) {
11988
+ let { latlng: N } = E, F = this._calcClosestLayer(N, [u]);
11989
11989
  if (F && F.segment && F.distance < this.options.snapDistance) {
11990
11990
  let { segment: J } = F;
11991
11991
  if (J && J.length === 2) {
@@ -12195,8 +12195,8 @@ var H = Mh();
12195
12195
  this._rotationLayer.setLatLngs(this._rotateLayer(u, this._rotationLayer.pm._rotateOrgLatLng, this._rotationOriginLatLng, L.PM.Matrix.init(), this._map));
12196
12196
  let x = u * 180 / Math.PI;
12197
12197
  x = x < 0 ? x + 360 : x;
12198
- let w = x + this._startAngle;
12199
- this._setAngle(w), this._rotationLayer.pm._setAngle(w), this._fireRotation(this._rotationLayer, x, v), this._fireRotation(this._map, x, v), this._rotationLayer.pm._fireChange(this._rotationLayer.getLatLngs(), "Rotation");
12198
+ let E = x + this._startAngle;
12199
+ this._setAngle(E), this._rotationLayer.pm._setAngle(E), this._fireRotation(this._rotationLayer, x, v), this._fireRotation(this._map, x, v), this._rotationLayer.pm._fireChange(this._rotationLayer.getLatLngs(), "Rotation");
12200
12200
  }, _onRotateEnd() {
12201
12201
  let i = this._startAngle;
12202
12202
  delete this._rotationOriginLatLng, delete this._rotationOriginPoint, delete this._rotationStartPoint, delete this._initialRotateLatLng, delete this._startAngle;
@@ -12436,8 +12436,8 @@ var H = Mh();
12436
12436
  i.off("movestart", this._onMiddleMarkerMoveStart, this), i.off(this.options.addVertexOn, this._onMiddleMarkerClick, this);
12437
12437
  let h = i.getLatLng(), u = this._layer._latlngs;
12438
12438
  delete i.leftM, delete i.rightM;
12439
- let { indexPath: f, index: g, parentPath: v } = L.PM.Utils.findDeepMarkerIndex(this._markers, n), x = f.length > 1 ? (0, Vi.default)(u, v) : u, w = f.length > 1 ? (0, Vi.default)(this._markers, v) : this._markers;
12440
- x.splice(g + 1, 0, h), w.splice(g + 1, 0, i), this._layer.setLatLngs(u), this.options.hideMiddleMarkers !== !0 && (this._createMiddleMarker(n, i), this._createMiddleMarker(i, a)), this._fireEdit(), this._layerEdited = !0, this._fireChange(this._layer.getLatLngs(), "Edit"), this._fireVertexAdded(i, L.PM.Utils.findDeepMarkerIndex(this._markers, i).indexPath, h), this.options.snappable && this._initSnappableMarkers();
12439
+ let { indexPath: f, index: g, parentPath: v } = L.PM.Utils.findDeepMarkerIndex(this._markers, n), x = f.length > 1 ? (0, Vi.default)(u, v) : u, E = f.length > 1 ? (0, Vi.default)(this._markers, v) : this._markers;
12440
+ x.splice(g + 1, 0, h), E.splice(g + 1, 0, i), this._layer.setLatLngs(u), this.options.hideMiddleMarkers !== !0 && (this._createMiddleMarker(n, i), this._createMiddleMarker(i, a)), this._fireEdit(), this._layerEdited = !0, this._fireChange(this._layer.getLatLngs(), "Edit"), this._fireVertexAdded(i, L.PM.Utils.findDeepMarkerIndex(this._markers, i).indexPath, h), this.options.snappable && this._initSnappableMarkers();
12441
12441
  }, hasSelfIntersection() {
12442
12442
  return hn(this._layer.toGeoJSON(15)).features.length > 0;
12443
12443
  }, _handleSelfIntersectionOnVertexRemoval() {
@@ -12471,9 +12471,9 @@ var H = Mh();
12471
12471
  g.splice(u, 1), this._layer.setLatLngs(a), this.isPolygon() && g.length <= 2 && g.splice(0, g.length);
12472
12472
  let x = !1;
12473
12473
  if (g.length <= 1 && (g.splice(0, g.length), f.length > 1 && h.length > 1 && (a = ui(a)), this._layer.setLatLngs(a), this._initMarkers(), x = !0), Be(a) || this._layer.remove(), a = ui(a), this._layer.setLatLngs(a), this._markers = ui(this._markers), !x && (v = h.length > 1 ? (0, Vi.default)(this._markers, f) : this._markers, n._middleMarkerPrev && (this._markerGroup.removeLayer(n._middleMarkerPrev), this._removeFromCache(n._middleMarkerPrev)), n._middleMarkerNext && (this._markerGroup.removeLayer(n._middleMarkerNext), this._removeFromCache(n._middleMarkerNext)), this._markerGroup.removeLayer(n), this._removeFromCache(n), v)) {
12474
- let w, N;
12475
- if (this.isPolygon() ? (w = (u + 1) % v.length, N = (u + (v.length - 1)) % v.length) : (N = u - 1 < 0 ? void 0 : u - 1, w = u + 1 >= v.length ? void 0 : u + 1), w !== N) {
12476
- let F = v[N], J = v[w];
12474
+ let E, N;
12475
+ if (this.isPolygon() ? (E = (u + 1) % v.length, N = (u + (v.length - 1)) % v.length) : (N = u - 1 < 0 ? void 0 : u - 1, E = u + 1 >= v.length ? void 0 : u + 1), E !== N) {
12476
+ let F = v[N], J = v[E];
12477
12477
  this.options.hideMiddleMarkers !== !0 && this._createMiddleMarker(F, J);
12478
12478
  }
12479
12479
  v.splice(u, 1);
@@ -12503,13 +12503,13 @@ var H = Mh();
12503
12503
  return;
12504
12504
  }
12505
12505
  this.updatePolygonCoordsFromMarkerDrag(n);
12506
- let f = a.length > 1 ? (0, Vi.default)(this._markers, u) : this._markers, g = (h + 1) % f.length, v = (h + (f.length - 1)) % f.length, x = n.getLatLng(), w = f[v].getLatLng(), N = f[g].getLatLng();
12506
+ let f = a.length > 1 ? (0, Vi.default)(this._markers, u) : this._markers, g = (h + 1) % f.length, v = (h + (f.length - 1)) % f.length, x = n.getLatLng(), E = f[v].getLatLng(), N = f[g].getLatLng();
12507
12507
  if (n._middleMarkerNext) {
12508
12508
  let F = L.PM.Utils.calcMiddleLatLng(this._map, x, N);
12509
12509
  n._middleMarkerNext.setLatLng(F);
12510
12510
  }
12511
12511
  if (n._middleMarkerPrev) {
12512
- let F = L.PM.Utils.calcMiddleLatLng(this._map, x, w);
12512
+ let F = L.PM.Utils.calcMiddleLatLng(this._map, x, E);
12513
12513
  n._middleMarkerPrev.setLatLng(F);
12514
12514
  }
12515
12515
  this.options.allowSelfIntersection || this._handleLayerStyle(), this._fireMarkerDrag(i, a), this._fireChange(this._layer.getLatLngs(), "Edit");
@@ -12833,11 +12833,11 @@ var H = Mh();
12833
12833
  }, flip() {
12834
12834
  return this._matrix[1] *= -1, this._matrix[2] *= -1, this;
12835
12835
  }, _add(i, n, a, h, u, f) {
12836
- let g = [[], [], []], v = this._matrix, x = [[v[0], v[2], v[4]], [v[1], v[3], v[5]], [0, 0, 1]], w = [[i, a, u], [n, h, f], [0, 0, 1]], N;
12837
- i && i instanceof L.PM.Matrix && (v = i._matrix, w = [[v[0], v[2], v[4]], [v[1], v[3], v[5]], [0, 0, 1]]);
12836
+ let g = [[], [], []], v = this._matrix, x = [[v[0], v[2], v[4]], [v[1], v[3], v[5]], [0, 0, 1]], E = [[i, a, u], [n, h, f], [0, 0, 1]], N;
12837
+ i && i instanceof L.PM.Matrix && (v = i._matrix, E = [[v[0], v[2], v[4]], [v[1], v[3], v[5]], [0, 0, 1]]);
12838
12838
  for (let F = 0; F < 3; F += 1) for (let J = 0; J < 3; J += 1) {
12839
12839
  N = 0;
12840
- for (let nt = 0; nt < 3; nt += 1) N += x[F][nt] * w[nt][J];
12840
+ for (let nt = 0; nt < 3; nt += 1) N += x[F][nt] * E[nt][J];
12841
12841
  g[F][J] = N;
12842
12842
  }
12843
12843
  return this._matrix = [g[0][0], g[1][0], g[0][1], g[1][1], g[0][2], g[1][2]], this;
@@ -12878,11 +12878,11 @@ var H = Mh();
12878
12878
  return !i._pmLastGroupFetch || !i._pmLastGroupFetch.time || (/* @__PURE__ */ new Date()).getTime() - i._pmLastGroupFetch.time > 1e3 ? (h(i), i._pmLastGroupFetch = { time: (/* @__PURE__ */ new Date()).getTime(), groups: a, groupIds: n }, { groupIds: n, groups: a }) : { groups: i._pmLastGroupFetch.groups, groupIds: i._pmLastGroupFetch.groupIds };
12879
12879
  }, createGeodesicPolygon: Hr, getTranslation: Ft, findDeepCoordIndex(i, n, a = !0) {
12880
12880
  let h, u = (g) => (v, x) => {
12881
- let w = g.concat(x);
12881
+ let E = g.concat(x);
12882
12882
  if (a) {
12883
- if (v.lat && v.lat === n.lat && v.lng === n.lng) return h = w, !0;
12884
- } else if (v.lat && L.latLng(v).equals(n)) return h = w, !0;
12885
- return Array.isArray(v) && v.some(u(w));
12883
+ if (v.lat && v.lat === n.lat && v.lng === n.lng) return h = E, !0;
12884
+ } else if (v.lat && L.latLng(v).equals(n)) return h = E, !0;
12885
+ return Array.isArray(v) && v.some(u(E));
12886
12886
  };
12887
12887
  i.some(u([]));
12888
12888
  let f = {};
@@ -12902,7 +12902,7 @@ var H = Mh();
12902
12902
  }
12903
12903
  return null;
12904
12904
  }, _getRotatedRectangle(i, n, a, h) {
12905
- let u = Vn(h, i), f = Vn(h, n), g = a * Math.PI / 180, v = Math.cos(g), x = Math.sin(g), w = (f.x - u.x) * v + (f.y - u.y) * x, N = (f.y - u.y) * v - (f.x - u.x) * x, F = w * v + u.x, J = w * x + u.y, nt = -N * x + u.x, lt = N * v + u.y, dt = ua(h, u), At = ua(h, { x: F, y: J }), zt = ua(h, f), z = ua(h, { x: nt, y: lt });
12905
+ let u = Vn(h, i), f = Vn(h, n), g = a * Math.PI / 180, v = Math.cos(g), x = Math.sin(g), E = (f.x - u.x) * v + (f.y - u.y) * x, N = (f.y - u.y) * v - (f.x - u.x) * x, F = E * v + u.x, J = E * x + u.y, nt = -N * x + u.x, lt = N * v + u.y, dt = ua(h, u), At = ua(h, { x: F, y: J }), zt = ua(h, f), z = ua(h, { x: nt, y: lt });
12906
12906
  return [dt, At, zt, z];
12907
12907
  }, pxRadiusToMeterRadius(i, n, a) {
12908
12908
  let h = n.project(a), u = L.point(h.x + i, h.y);
@@ -13016,7 +13016,7 @@ const El = {
13016
13016
  lng: "经度",
13017
13017
  lat: "纬度"
13018
13018
  }
13019
- }, Lh = H.Control.extend({
13019
+ }, Lh = q.Control.extend({
13020
13020
  options: {
13021
13021
  position: "bottomleft",
13022
13022
  coordinateUnit: "decimal",
@@ -13025,12 +13025,12 @@ const El = {
13025
13025
  showFPS: !0
13026
13026
  },
13027
13027
  initialize(e) {
13028
- H.setOptions(this, e), this.lastTime = +/* @__PURE__ */ new Date(), this.frames = 0, H.Control.prototype.initialize.call(this, this.options);
13028
+ q.setOptions(this, e), this.lastTime = +/* @__PURE__ */ new Date(), this.frames = 0, q.Control.prototype.initialize.call(this, this.options);
13029
13029
  },
13030
13030
  onAdd(e) {
13031
- this.map = e, this.lang = e.lang, this.langDic = kl, this._container = H.DomUtil.create("div", `${e.clsPrefix}-statusbar`), this.zoom = e.getZoom();
13031
+ this.map = e, this.lang = e.lang, this.langDic = kl, this._container = q.DomUtil.create("div", `${e.clsPrefix}-statusbar`), this.zoom = e.getZoom();
13032
13032
  const r = e.getCenter();
13033
- return this.lng = r.lng, this.lat = r.lat, this.options.showCoordinate && (this._latlngContainer = H.DomUtil.create("div", `${e.clsPrefix}-statusbar-item coordinate`, this._container), this._latlngContainer.innerHTML = `<b>${this.langDic[this.lang].coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`), this.options.showLevel && (this._levelContainer = H.DomUtil.create("div", `${e.clsPrefix}-statusbar-item level`, this._container), this._levelContainer.innerHTML = `<b>${this.langDic[this.lang].zoomLevel}:</b>${this.zoom + 1}`), this.options.showFPS && (this._fpsContainer = H.DomUtil.create("div", `${e.clsPrefix}-statusbar-item fps`, this._container), this._fpsContainer.innerHTML = `<b>${this.langDic[this.lang].FPS}:</b>60`), this.initEvt(), this._container;
13033
+ return this.lng = r.lng, this.lat = r.lat, this.options.showCoordinate && (this._latlngContainer = q.DomUtil.create("div", `${e.clsPrefix}-statusbar-item coordinate`, this._container), this._latlngContainer.innerHTML = `<b>${this.langDic[this.lang].coordinate}:</b>${this.getCoordinate(this.lng)},${this.getCoordinate(this.lat)}`), this.options.showLevel && (this._levelContainer = q.DomUtil.create("div", `${e.clsPrefix}-statusbar-item level`, this._container), this._levelContainer.innerHTML = `<b>${this.langDic[this.lang].zoomLevel}:</b>${this.zoom + 1}`), this.options.showFPS && (this._fpsContainer = q.DomUtil.create("div", `${e.clsPrefix}-statusbar-item fps`, this._container), this._fpsContainer.innerHTML = `<b>${this.langDic[this.lang].FPS}:</b>60`), this.initEvt(), this._container;
13034
13034
  },
13035
13035
  initEvt() {
13036
13036
  this.map.on("mousemove", (e) => {
@@ -13063,8 +13063,8 @@ const El = {
13063
13063
  }
13064
13064
  requestAnimationFrame(this.calcFPS.bind(this));
13065
13065
  }
13066
- }), bh = H.Control.extend({
13067
- includes: H.Evented ? H.Evented.prototype : H.Mixin.Events,
13066
+ }), bh = q.Control.extend({
13067
+ includes: q.Evented ? q.Evented.prototype : q.Mixin.Events,
13068
13068
  options: {
13069
13069
  position: "bottomright",
13070
13070
  toggleDisplay: !0,
@@ -13084,10 +13084,10 @@ const El = {
13084
13084
  mapOptions: {}
13085
13085
  },
13086
13086
  initialize(e, r) {
13087
- H.Util.setOptions(this, r), this.options.aimingRectOptions.interactive = !1, this.options.shadowRectOptions.interactive = !1, this._layer = e;
13087
+ q.Util.setOptions(this, r), this.options.aimingRectOptions.interactive = !1, this.options.shadowRectOptions.interactive = !1, this._layer = e;
13088
13088
  },
13089
13089
  onAdd(e) {
13090
- this._mainMap = e, this.lang = e.options.lang ?? this.options.lang ?? "zh_CN", this.langDic = El, this.options.strings = { hideText: this.langDic[this.lang].hideEagle, showText: this.langDic[this.lang].showEagle }, this._container = H.DomUtil.create("div", `${e.clsPrefix}-eaglemap`), this._container.style.width = this.options.width + "px", this._container.style.height = this.options.height + "px", H.DomEvent.disableClickPropagation(this._container), H.DomEvent.on(this._container, "mousewheel", H.DomEvent.stopPropagation);
13090
+ this._mainMap = e, this.lang = e.options.lang ?? this.options.lang ?? "zh_CN", this.langDic = El, this.options.strings = { hideText: this.langDic[this.lang].hideEagle, showText: this.langDic[this.lang].showEagle }, this._container = q.DomUtil.create("div", `${e.clsPrefix}-eaglemap`), this._container.style.width = this.options.width + "px", this._container.style.height = this.options.height + "px", q.DomEvent.disableClickPropagation(this._container), q.DomEvent.on(this._container, "mousewheel", q.DomEvent.stopPropagation);
13091
13091
  let r = {
13092
13092
  attributionControl: !1,
13093
13093
  dragging: !this.options.centerFixed,
@@ -13104,14 +13104,14 @@ const El = {
13104
13104
  bearing: e.options.bearing,
13105
13105
  lang: this.lang
13106
13106
  };
13107
- return r = H.Util.extend(this.options.mapOptions, r), this._eagleMap = new H.Map(this._container, r), this._layer instanceof H.Layer && this._eagleMap.addLayer(this._layer), this._mainMapMoving = !1, this._eagleMapMoving = !1, this._userToggledDisplay = !1, this._minimized = !1, this.options.toggleDisplay && this._addToggleButton(), this._eagleMap.whenReady(
13108
- H.Util.bind(function() {
13109
- this._aimingRect = new H.Rectangle(this._mainMap.getBounds(), this.options.aimingRectOptions).addTo(this._eagleMap), this._shadowRect = new H.Rectangle(this._mainMap.getBounds(), this.options.shadowRectOptions).addTo(this._eagleMap), this._mainMap.on("moveend", this._onMainMapMoved, this), this._mainMap.on("move", this._onMainMapMoving, this), this._eagleMap.on("movestart", this._onEagleMapMoveStarted, this), this._eagleMap.on("move", this._onEagleMapMoving, this), this._eagleMap.on("moveend", this._onEagleMapMoved, this);
13107
+ return r = q.Util.extend(this.options.mapOptions, r), this._eagleMap = new q.Map(this._container, r), this._layer instanceof q.Layer && this._eagleMap.addLayer(this._layer), this._mainMapMoving = !1, this._eagleMapMoving = !1, this._userToggledDisplay = !1, this._minimized = !1, this.options.toggleDisplay && this._addToggleButton(), this._eagleMap.whenReady(
13108
+ q.Util.bind(function() {
13109
+ this._aimingRect = new q.Rectangle(this._mainMap.getBounds(), this.options.aimingRectOptions).addTo(this._eagleMap), this._shadowRect = new q.Rectangle(this._mainMap.getBounds(), this.options.shadowRectOptions).addTo(this._eagleMap), this._mainMap.on("moveend", this._onMainMapMoved, this), this._mainMap.on("move", this._onMainMapMoving, this), this._eagleMap.on("movestart", this._onEagleMapMoveStarted, this), this._eagleMap.on("move", this._onEagleMapMoving, this), this._eagleMap.on("moveend", this._onEagleMapMoved, this);
13110
13110
  }, this)
13111
13111
  ), this._container;
13112
13112
  },
13113
13113
  addTo(e) {
13114
- H.Control.prototype.addTo.call(this, e);
13114
+ q.Control.prototype.addTo.call(this, e);
13115
13115
  const r = this.options.centerFixed || this._mainMap.getCenter();
13116
13116
  return this._eagleMap.setView(r, this._decideZoom(!0)), this._setDisplay(this.options.minimized), this;
13117
13117
  },
@@ -13135,10 +13135,10 @@ const El = {
13135
13135
  return this.options.minimized ? this.langDic[this.lang].showEagle : this.langDic[this.lang].hideEagle;
13136
13136
  },
13137
13137
  _createButton(e, r, o, c, d, _) {
13138
- const m = H.DomUtil.create("a", o, c);
13138
+ const m = q.DomUtil.create("a", o, c);
13139
13139
  m.innerHTML = e, m.href = "#", m.title = r;
13140
- const A = H.DomEvent.stopPropagation;
13141
- return H.DomEvent.on(m, "click", A).on(m, "mousedown", A).on(m, "dblclick", A).on(m, "click", H.DomEvent.preventDefault).on(m, "click", d, _), m;
13140
+ const A = q.DomEvent.stopPropagation;
13141
+ return q.DomEvent.on(m, "click", A).on(m, "mousedown", A).on(m, "dblclick", A).on(m, "click", q.DomEvent.preventDefault).on(m, "click", d, _), m;
13142
13142
  },
13143
13143
  _toggleDisplayButtonClicked() {
13144
13144
  this._userToggledDisplay = !0, this._minimized ? this._restore() : this._minimize();
@@ -13172,7 +13172,7 @@ const El = {
13172
13172
  },
13173
13173
  _onEagleMapMoving(e) {
13174
13174
  this.options.centerFixed || !this._mainMapMoving && this._lastAimingRectPosition && (this._shadowRect.setBounds(
13175
- new H.LatLngBounds(this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.sw), this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.ne))
13175
+ new q.LatLngBounds(this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.sw), this._eagleMap.containerPointToLatLng(this._lastAimingRectPosition.ne))
13176
13176
  ), this._shadowRect.setStyle({ opacity: 1, fillOpacity: 0.3 }));
13177
13177
  },
13178
13178
  _onEagleMapMoved(e) {
@@ -13203,12 +13203,12 @@ const El = {
13203
13203
  return typeof e < "u";
13204
13204
  },
13205
13205
  _onToggle() {
13206
- H.Util.requestAnimFrame(function() {
13207
- H.DomEvent.on(this._container, "transitionend", this._fireToggleEvents, this), H.Browser.any3d || H.Util.requestAnimFrame(this._fireToggleEvents, this);
13206
+ q.Util.requestAnimFrame(function() {
13207
+ q.DomEvent.on(this._container, "transitionend", this._fireToggleEvents, this), q.Browser.any3d || q.Util.requestAnimFrame(this._fireToggleEvents, this);
13208
13208
  }, this);
13209
13209
  },
13210
13210
  _fireToggleEvents() {
13211
- H.DomEvent.off(this._container, "transitionend", this._fireToggleEvents, this);
13211
+ q.DomEvent.off(this._container, "transitionend", this._fireToggleEvents, this);
13212
13212
  const e = { minimized: this._minimized };
13213
13213
  this.fire(this._minimized ? "minimize" : "restore", e), this.fire("toggle", e);
13214
13214
  }
@@ -13221,7 +13221,7 @@ const El = {
13221
13221
  typeof e.getLatLngs == "function" && (M = e.getLatLngs());
13222
13222
  for (let R = m ? 0 : 1, I = M.length - (A ? 0 : 1); R < I; R++) {
13223
13223
  const G = M[R];
13224
- var D = typeof _ == "function" ? _.call(this, R, M) : _ || "", E = L.divIcon({ className: o, html: D, iconSize: c, iconAnchor: d }), C = L.marker(G, { icon: E, pmIgnore: !0, index: R });
13224
+ var D = typeof _ == "function" ? _.call(this, R, M) : _ || "", w = L.divIcon({ className: o, html: D, iconSize: c, iconAnchor: d }), C = L.marker(G, { icon: w, pmIgnore: !0, index: R });
13225
13225
  this.markers.push(C);
13226
13226
  }
13227
13227
  L.FeatureGroup.prototype.initialize.call(this, this.markers);
@@ -13260,9 +13260,9 @@ class _a extends L[L.Layer ? "Layer" : "Class"] {
13260
13260
  L.DomUtil.setPosition(this._element, o), this._element.style.transform += " rotate(" + this._rotation + "rad)";
13261
13261
  }
13262
13262
  }
13263
- H.Map.addInitHook(function() {
13263
+ q.Map.addInitHook(function() {
13264
13264
  var e, r, o;
13265
- this.pm && this.pm.setLang(this.options.lang.split("_")[0]), (e = this.options.eagleMapControl) != null && e.show && (this.eagleMapControl = new bh(this.options.eagleMapControl), this.addControl(this.eagleMapControl)), (r = this.options.statusBarControl) != null && r.show && (this.statusBarControl = new Lh(this.options.statusBarControl), this.addControl(this.statusBarControl)), (o = this.options.scaleControl) != null && o.show && (this.scaleControl = new H.Control.Scale(
13265
+ this.pm && this.pm.setLang(this.options.lang.split("_")[0]), (e = this.options.eagleMapControl) != null && e.show && (this.eagleMapControl = new bh(this.options.eagleMapControl), this.addControl(this.eagleMapControl)), (r = this.options.statusBarControl) != null && r.show && (this.statusBarControl = new Lh(this.options.statusBarControl), this.addControl(this.statusBarControl)), (o = this.options.scaleControl) != null && o.show && (this.scaleControl = new q.Control.Scale(
13266
13266
  Object.assign(
13267
13267
  {
13268
13268
  position: "bottomleft",
@@ -13274,17 +13274,17 @@ H.Map.addInitHook(function() {
13274
13274
  )
13275
13275
  ), this.addControl(this.scaleControl));
13276
13276
  });
13277
- H.TileLayer.mergeOptions({
13277
+ q.TileLayer.mergeOptions({
13278
13278
  errorTileUrl: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAIAAADTED8xAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAoNSURBVHhe7drLgquqFoXh8/5PtdvVTz/t9Ku9DsgEQSdEczGxxv+1Vikiwhxeqtb//gHCCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKR9aQB+J/ZD7fd2vUQ3b+fQ783vcaV77s/5/b1FG8f/8BQp+sYA/F5//osuN9swG+waywf+XMdlsbXdoW6XaUzbLnrPFKVcvZJ1fB5fGABbbq8EH63/zWUtVf+56QtdrOvz+L4AvKH+rcv7x+2u/9zzK/RG9/b6/3le6mj3wnyBrwvA6+t/c/mfq/5v16n02lf9/fXfu9bb9brxmyPYldHv8m0BeLj+e9+t+0tie/3fe4e+pP7+u1xtw0jnnN369ybqVfWfR77xQ/rE9f/JAHi/rXis/n+nBRsd9BNvZx5rF+2v/zsGF7PZi+o/JDXe0e2noF//uZOt1X/u+v9gALzV2l//qfbNcgnKWnZVR+TGr6r/l/T3VP3Hqr+U9/OmrTVdjq2ZzTvKsaeu/88FYLla0b76j0+QslyLd+EoHzJQ92atvZM/wru+3R6q/5/LXPWzpq01bbeFj4qp5fCjOLUIyrHnrv+PBcCrj+31f6/2g1IOV3vZqcyvuNa4ad79nNjDrmV/Xdh7YWJjCiWd2FvMaqLCJVUTUoTj8uZmHKv6Hz5Hi7lVtUQnr/9PBWBQ/yuxhOfmzVr5tR/U9bziBG1unyrGPW674emHepOQpOnK47+EwVaTYUJcwjd3Pq9Xnza6NLg5OjFm6V9ONZdpD73X1+T1fyqfCUBV0EVv6cM65eaVuMrd4spdufXnnds5wTMZyOffXxahzgp73yi3/3A7j0+n+gaQ+S/6wZ36n2/pdifxZq668a/uN17/5/KRAAzqf7p9NcKit+XZve2bvIjtMmb5PPWufIKwMaz29M9JOJO1yDb934H5Xmkbtli9di1rqx6Yia846cCqqCvePLdNww/+LX26+Fj6qYd4McsBBssxntAnAuCti02lV7K5+bQK49qvGwfrhfFOXTbmk9el1g7IKcIXWQ11WVvNhS3b206//t1L8CY6W1xl/4azHOMZfSAAXhEOlsVr3rNYuuUhfld5a3Xy9jmQt+eGb7C6uFVthXf1+DB0a84Gtpg9d+tgonuf0lG49dizpuKO5WyOD4BXhYNl8Zr7Sn2GxXKWvtdT3txpPdm6xp2+9uvV1ovqfz4+Fn2o+upawyHxnh+O6uThJ/5WKsThT9T/8QHINVLP2yvq3/qYOvHWPne0PMngBKnLe58cs94p9uvVlrvdu9rOnJbjf53STnd5a1lxHgyx194YT+boAHj15q5VMijPhdQytVsf1e1nfILwzbu5lu0q8mVMH5DxZrm9h6JXW+52u4Jm9sorXNu0Or6MNn9HxydB/PXp6I8g9rSYOu2N8WwODoC3WjaVz9V/EFbHelge5pdDtOsEI6WgbAy5Y++q7unVlru9zGj6Q27MXPx5suihPn5Z6Hn8RcxufCTESFibWm+Mp3NsAMpqVXNqU/l0/dfqPnMnXi8Pn6C1PsUzHafBr+fDrTk7UWhtu4tVB+7xSXzJiQ+sqcGKszSDvk7m0ADMq2UbAptKZ5Lzrs40h0Xrvl2UI6/5X17/r6n/Uv3p1WByWP3bxtB6qmGz/oVN4B7vCbf8+H9H81/iBivz1Lx9iSMD8Fj9e7uC4d5SlElVmrUX1P98orqTLR0v30GydF3ry3JrbjQJ076f+P/A5x8Xw0x/gBu89He4YzmpAwPwyvrPJebvnfdHvXXaUqZD80naYWzpuHN1dui0OX1yWnrdmhtNke3LR6yPzw2y+PUweusvnp63r3JcAOq1zZwVjM/fuACjxS1r4O+NtTOvbm+dnlvH+Eue6fDYQTuILR13ri4fWovd+F0Opmg5QdZ0Pj7+HnR9rlaVCDsqsq57U382hwXAm7e8gmGWy//9CmKbweKW4zoltqoit5lfU5tUxe/8lnNDx7nJfHXpd+2LcYf6Sy8wnS7tPyY5M7ScoFX918INP7/zLwaQ1atgY/EX5oSOCkCet1AwzSeW4179r8tnlvfFM9nfg6N1nXZq6q6q+Mej21D/ocmmP0jtHeuq/bD+V1Ig5gVqLtP6di/9lN4eAJvO1TK30tO2vH7mJXTmOe9aL2fZU46rtgRT+KaWUThTZD9tUdd+twIGI8/qcNdj9n95E4zuBmvrEeyr/yHrfONQzuC9AWgrsOa+Xha2ZFFoN5ufGu1q9u/LTdWa9LkXhPMP1Glpan/92jMrI/drZO4oXUB4AnTrPpsnMWZkZPpotqbz6echPc86+jv1f1wAxhW/0A/OpF6A6eXZtocdXm02TbayhMWKnY/NL+V9VXQHQoas/Rbb+qw03e8++q6/VP/vDkC4LW2q+JXp7zp225ktbpf1G3SozXsnmr/17sYhVVBdO/drP/EeObVwEZv6aXifCq6p96Z7u4bmQfqoNIY/Vf+HfQS/R34lfaCmjH0KLNhO6/+B7q2fJdt7IKv/XU+cjjzZf6r+Tx6AsCrhEWP/fIePFC0OdPYAAE8hAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAaQQA0ggApBEASCMAkEYAII0AQBoBgDQCAGkEANIIAKQRAEgjAJBGACCNAEAaAYA0AgBpBADSCACkEQBIIwCQRgAgjQBAGgGANAIAYf/+/R9s8HzCwqXCjgAAAABJRU5ErkJggg=="
13279
13279
  });
13280
- H.Marker.addInitHook(function() {
13280
+ q.Marker.addInitHook(function() {
13281
13281
  let r = this.options.icon && this.options.icon.options && this.options.icon.options.iconAnchor;
13282
13282
  r && (r = r[0] + "px " + r[1] + "px"), this.options.rotationOrigin = this.options.rotationOrigin || r || "center bottom", this.on("drag", (o) => {
13283
13283
  o.target._applyRotation();
13284
13284
  });
13285
13285
  });
13286
- H.Marker.mergeOptions({ scale: 1, rotation: 0, minZoom: 0, maxZoom: 16, hideOnMinZoom: !0, minificationScale: 0.6 });
13287
- H.Marker.include({
13286
+ q.Marker.mergeOptions({ scale: 1, rotation: 0, minZoom: 0, maxZoom: 16, hideOnMinZoom: !0, minificationScale: 0.6 });
13287
+ q.Marker.include({
13288
13288
  _setPos(e) {
13289
13289
  this._icon.style.display = "initial";
13290
13290
  const { rotation: r, minZoom: o, maxZoom: c, hideOnMinZoom: d, minificationScale: _ } = this.options;
@@ -13292,10 +13292,10 @@ H.Marker.include({
13292
13292
  const m = parseFloat(((1 - _) / (c - o)).toFixed(2));
13293
13293
  this._map._zoom >= c ? this.options.scale = 1 : this._map._zoom > o & this._map._zoom < c ? this.options.scale = 1 - (c - this._map._zoom) * m : this._map._zoom <= o && d ? this._icon.style.display = "none" : this._map._zoom <= o && !d && (this.options.scale = _);
13294
13294
  }
13295
- this._map._rotate && (e = this._map.rotatedPointToMapPanePoint(e)), this._icon && H.DomUtil.setPosition(this._icon, e, r, e, this.options.scale), this._shadow && H.DomUtil.setPosition(this._shadow, e, r, e, this.options.scale), this._zIndex = e.y + this.options.zIndexOffset, this._resetZIndex();
13295
+ this._map._rotate && (e = this._map.rotatedPointToMapPanePoint(e)), this._icon && q.DomUtil.setPosition(this._icon, e, r, e, this.options.scale), this._shadow && q.DomUtil.setPosition(this._shadow, e, r, e, this.options.scale), this._zIndex = e.y + this.options.zIndexOffset, this._resetZIndex();
13296
13296
  },
13297
13297
  _applyRotation() {
13298
- this.options.rotation && (this._icon.style[H.DomUtil.TRANSFORM + "Origin"] = this.options.rotationOrigin, H.DomUtil.TRANSFORM === "msTransform" ? this._icon.style[H.DomUtil.TRANSFORM] = "rotate(" + this.options.rotation + "deg)" : this._icon.style[H.DomUtil.TRANSFORM] += " rotateZ(" + this.options.rotation + "deg)");
13298
+ this.options.rotation && (this._icon.style[q.DomUtil.TRANSFORM + "Origin"] = this.options.rotationOrigin, q.DomUtil.TRANSFORM === "msTransform" ? this._icon.style[q.DomUtil.TRANSFORM] = "rotate(" + this.options.rotation + "deg)" : this._icon.style[q.DomUtil.TRANSFORM] += " rotateZ(" + this.options.rotation + "deg)");
13299
13299
  },
13300
13300
  twinkle(e, r) {
13301
13301
  let o = !1, c = 0;
@@ -13305,18 +13305,22 @@ H.Marker.include({
13305
13305
  d();
13306
13306
  }
13307
13307
  });
13308
- H.Map.include({
13308
+ q.Map.include({
13309
13309
  hasLayer: function(e) {
13310
- return e && H.Util.stamp(e) in this._layers;
13310
+ return e && q.Util.stamp(e) in this._layers;
13311
+ },
13312
+ removeLayerById: function(e) {
13313
+ const r = this.getLayer(e);
13314
+ r && this.removeLayer(r);
13311
13315
  }
13312
13316
  });
13313
- H.Path.addInitHook(function() {
13317
+ q.Path.addInitHook(function() {
13314
13318
  this.options.color && (this.color = Qo.from(this.options.color)), this.options.fillColor && (this.fillColor = Qo.from(this.options.fillColor));
13315
13319
  });
13316
- H.Polyline.addInitHook(function() {
13320
+ q.Polyline.addInitHook(function() {
13317
13321
  this.options.showMeasurements && this.showMeasurements();
13318
13322
  });
13319
- H.Circle.include({
13323
+ q.Circle.include({
13320
13324
  toGeoJSON() {
13321
13325
  return {
13322
13326
  type: "Feature",
@@ -13329,10 +13333,10 @@ H.Circle.include({
13329
13333
  };
13330
13334
  }
13331
13335
  });
13332
- H.Layer.addInitHook(function() {
13333
- this._leaflet_id = this.options.id || H.stamp({});
13336
+ q.Layer.addInitHook(function() {
13337
+ this._leaflet_id = this.options.id || q.stamp({});
13334
13338
  });
13335
- H.LayerGroup.include({
13339
+ q.LayerGroup.include({
13336
13340
  // override
13337
13341
  getLayerId(e) {
13338
13342
  return e._leaflet_id;
@@ -13341,26 +13345,26 @@ H.LayerGroup.include({
13341
13345
  return e ? (["number", "string"].includes(typeof e) ? e : this.getLayerId(e)) in this._layers : !1;
13342
13346
  }
13343
13347
  });
13344
- H.GridLayer.include({
13348
+ q.GridLayer.include({
13345
13349
  _setZoomTransform: function(e, c, o) {
13346
13350
  var d = c, c = (d != null && this.options && (this.options.corrdType == "gcj02" ? d = Wn.gcjEncrypt(c.lat, c.lng) : this.options.corrdType == "bd09" && (c = Wn.gcjEncrypt(c.lat, c.lng), d = Wn.bdEncrypt(c.lat, c.lng))), this._map.getZoomScale(o, e.zoom)), d = e.origin.multiplyBy(c).subtract(this._map._getNewPixelOrigin(d, o)).round();
13347
- H.Browser.any3d ? H.DomUtil.setTransform(e.el, d, c) : H.DomUtil.setPosition(e.el, d);
13351
+ q.Browser.any3d ? q.DomUtil.setTransform(e.el, d, c) : q.DomUtil.setPosition(e.el, d);
13348
13352
  },
13349
13353
  _getTiledPixelBounds: function(c) {
13350
13354
  var o = c, c = (o != null && this.options && (this.options.corrdType == "gcj02" ? o = Wn.gcjEncrypt(c.lat, c.lng) : this.options.corrdType == "bd09" && (c = Wn.gcjEncrypt(c.lat, c.lng), o = Wn.bdEncrypt(c.lat, c.lng))), this._map), r = c._animatingZoom ? Math.max(c._animateToZoom, c.getZoom()) : c.getZoom(), r = c.getZoomScale(r, this._tileZoom), o = c.project(o, this._tileZoom).floor(), c = c.getSize().divideBy(2 * r);
13351
- return new H.Bounds(o.subtract(c), o.add(c));
13355
+ return new q.Bounds(o.subtract(c), o.add(c));
13352
13356
  }
13353
13357
  });
13354
- H.TileLayer.addInitHook(function() {
13358
+ q.TileLayer.addInitHook(function() {
13355
13359
  this.on("add", function(e) {
13356
13360
  this._container.style.filter = Object.keys(this.options.style || {}).map((r) => `${r}(${this.options.style[r]})`).join(" ");
13357
13361
  });
13358
13362
  });
13359
- H.Polyline.include({
13360
- _originalOnAdd: H.Polyline.prototype.onAdd,
13361
- _originalOnRemove: H.Polyline.prototype.onRemove,
13362
- _originalSetLatLngs: H.Polyline.prototype.setLatLngs,
13363
- _originalAddLatLng: H.Polyline.prototype.addLatLng,
13363
+ q.Polyline.include({
13364
+ _originalOnAdd: q.Polyline.prototype.onAdd,
13365
+ _originalOnRemove: q.Polyline.prototype.onRemove,
13366
+ _originalSetLatLngs: q.Polyline.prototype.setLatLngs,
13367
+ _originalAddLatLng: q.Polyline.prototype.addLatLng,
13364
13368
  setLatLngs: function(e) {
13365
13369
  var r = this._map && this._vertexMarkers && this._latlngs.length !== e.length;
13366
13370
  this._originalSetLatLngs(e), r && (this.removeVertexMarkers(), this.destroyVertexMarkers(), this.createVertexMarkers()), this.options.showMeasurements && this.updateMeasurements();
@@ -13384,7 +13388,7 @@ H.Polyline.include({
13384
13388
  this.removeVertexMarkers(), this._originalOnRemove(e), this.options.showMeasurements && this.hideMeasurements();
13385
13389
  },
13386
13390
  showMeasurements(e) {
13387
- return !this._map || this._measurementLayer ? this : (this._measurementOptions = H.extend(
13391
+ return !this._map || this._measurementLayer ? this : (this._measurementOptions = q.extend(
13388
13392
  {
13389
13393
  showOnHover: !1,
13390
13394
  minPixelDistance: 30,
@@ -13399,7 +13403,7 @@ H.Polyline.include({
13399
13403
  map: this._map
13400
13404
  },
13401
13405
  e || {}
13402
- ), this._measurementLayer = new H.LayerGroup().addTo(this._map), this.updateMeasurements(), this._map.on("zoomend", this.updateMeasurements, this), this);
13406
+ ), this._measurementLayer = new q.LayerGroup().addTo(this._map), this.updateMeasurements(), this._map.on("zoomend", this.updateMeasurements, this), this);
13403
13407
  },
13404
13408
  hideMeasurements() {
13405
13409
  return this._map.off("zoomend", this.updateMeasurements, this), this._measurementLayer ? (this._map.removeLayer(this._measurementLayer), this._measurementLayer = null, this) : this;
@@ -13411,9 +13415,9 @@ H.Polyline.include({
13411
13415
  o.push(G);
13412
13416
  }
13413
13417
  const c = o.length;
13414
- let d = 0, _, m, A, M, D, E;
13418
+ let d = 0, _, m, A, M, D, w;
13415
13419
  for (let I = 0; I < c - 1; I++)
13416
- _ = o[I], A = _.x, M = _.y, m = o[I + 1], D = m.x, E = m.y, d += Math.sqrt((A - D) * (A - D) + (M - E) * (M - E));
13420
+ _ = o[I], A = _.x, M = _.y, m = o[I + 1], D = m.x, w = m.y, d += Math.sqrt((A - D) * (A - D) + (M - w) * (M - w));
13417
13421
  const C = d;
13418
13422
  let R = "";
13419
13423
  return C > 1e3 ? R = "总长:" + Number(C / 1e3).toFixed(1) + "公里" : R = "总长:" + Math.round(C) + "米", R;
@@ -13422,9 +13426,9 @@ H.Polyline.include({
13422
13426
  const o = this._map.options.crs;
13423
13427
  e = o.project(e), e = new Array(e), r = o.project(r), e.push(r);
13424
13428
  const c = e.length;
13425
- let d = 0, _, m, A, M, D, E;
13429
+ let d = 0, _, m, A, M, D, w;
13426
13430
  for (let I = 0; I < c - 1; I++)
13427
- _ = e[I], A = _.x, M = _.y, m = e[I + 1], D = m.x, E = m.y, d += Math.sqrt((A - D) * (A - D) + (M - E) * (M - E));
13431
+ _ = e[I], A = _.x, M = _.y, m = e[I + 1], D = m.x, w = m.y, d += Math.sqrt((A - D) * (A - D) + (M - w) * (M - w));
13428
13432
  const C = d;
13429
13433
  let R = "";
13430
13434
  return C > 1e3 ? R = Number(C / 1e3).toFixed(1) + "公里" : R = Math.round(C) + "米", R;
@@ -13441,7 +13445,7 @@ H.Polyline.include({
13441
13445
  break;
13442
13446
  }
13443
13447
  const _ = o.length;
13444
- let m = 0, A, M, D = 0, E = 0, C = 0, R = 0;
13448
+ let m = 0, A, M, D = 0, w = 0, C = 0, R = 0;
13445
13449
  if (o != null) {
13446
13450
  let j;
13447
13451
  if (c)
@@ -13453,7 +13457,7 @@ H.Polyline.include({
13453
13457
  A = o[d], rt = A.x, d == 0 ? (at = rt, ct = rt) : (rt < at && (at = rt), rt > ct && (ct = rt));
13454
13458
  const yt = parseInt(((at + ct) / 2 + 3) / 6);
13455
13459
  for (var d = 0; d < _; d++)
13456
- j = (d + 1) % _, d == 0 ? (A = o[d], D = widget.LonLatToXA80N(yt, A.x, A.y)[0], E = widget.LonLatToXA80N(yt, A.x, A.y)[1]) : (D = C, E = R), M = o[j], C = widget.LonLatToXA80N(yt, M.x, M.y)[0], R = widget.LonLatToXA80N(yt, M.x, M.y)[1], m += D * R, m -= C * E;
13460
+ j = (d + 1) % _, d == 0 ? (A = o[d], D = widget.LonLatToXA80N(yt, A.x, A.y)[0], w = widget.LonLatToXA80N(yt, A.x, A.y)[1]) : (D = C, w = R), M = o[j], C = widget.LonLatToXA80N(yt, M.x, M.y)[0], R = widget.LonLatToXA80N(yt, M.x, M.y)[1], m += D * R, m -= C * w;
13457
13461
  }
13458
13462
  }
13459
13463
  const I = Math.abs(m / 2);
@@ -13467,12 +13471,12 @@ H.Polyline.include({
13467
13471
  const e = this.getLatLngs();
13468
13472
  new Array().push(e);
13469
13473
  let o = this.getLatLngs();
13470
- const c = this instanceof H.Polygon, d = this._measurementOptions;
13474
+ const c = this instanceof q.Polygon, d = this._measurementOptions;
13471
13475
  let _, m, A, M, D;
13472
- if (o && o.length && H.Util.isArray(o[0]) && (o = o[0]), this._measurementLayer.clearLayers(), this._measurementOptions.showDistances && o.length > 1) {
13476
+ if (o && o.length && q.Util.isArray(o[0]) && (o = o[0]), this._measurementLayer.clearLayers(), this._measurementOptions.showDistances && o.length > 1) {
13473
13477
  e.length - 1;
13474
- for (let E = 1, C = o.length; c && E <= C || E < C; E++)
13475
- if (_ = o[E - 1], m = o[E % C], _.distanceTo(m), A = this._map.latLngToLayerPoint(_), M = this._map.latLngToLayerPoint(m), D = A.distanceTo(M), D >= d.minPixelDistance) {
13478
+ for (let w = 1, C = o.length; c && w <= C || w < C; w++)
13479
+ if (_ = o[w - 1], m = o[w % C], _.distanceTo(m), A = this._map.latLngToLayerPoint(_), M = this._map.latLngToLayerPoint(m), D = A.distanceTo(M), D >= d.minPixelDistance) {
13476
13480
  const R = this.tempMoveFormatDistance(_, m);
13477
13481
  new _a(
13478
13482
  this._map.layerPointToLatLng([(A.x + M.x) / 2, (A.y + M.y) / 2]),
@@ -13491,34 +13495,45 @@ H.Polyline.include({
13491
13495
  return Math.atan((c.y - o.y) / (c.x - o.x));
13492
13496
  }
13493
13497
  });
13494
- H.LatLng.prototype.toArray = function() {
13498
+ q.LatLng.prototype.toArray = function() {
13495
13499
  return [this.lat, this.lng];
13496
13500
  };
13497
- H.Path.include({
13501
+ q.Path.include({
13502
+ twinkle(e, r) {
13503
+ let o = !1, c = 0;
13504
+ const d = () => {
13505
+ c++, c > Math.floor(r / e) ? this.setStyle({ fill: !0 }) : (o ? (this.setStyle({ fill: !1 }), o = !1) : (this.setStyle({ fill: !0 }), o = !0), setTimeout(d, e));
13506
+ };
13507
+ d();
13508
+ },
13498
13509
  getArea(e) {
13499
- var r, o = this._latlngs[0], c = (e || this._map).options.crs, d = o.length;
13500
- let _ = 0, m, A;
13501
- if (o != null)
13502
- for (let M = 0; M < d; M++)
13503
- r = (M + 1) % d, m = 180 < o[M].lng && 90 < o[M].lat ? { x: o[M].lat, y: o[M].lng } : c.project(o[M]), A = 180 < o[r].lng && 90 < o[r].lat ? { x: o[r].lat, y: o[r].lng } : c.project(o[r]), _ = (_ += m.x * A.y) - m.y * A.x;
13504
- return Math.abs(_ / 2);
13510
+ if (this instanceof q.Polyline) {
13511
+ var r, o = this._latlngs[0], c = (e || this._map).options.crs, d = o.length;
13512
+ let _ = 0, m, A;
13513
+ if (o != null)
13514
+ for (let M = 0; M < d; M++)
13515
+ r = (M + 1) % d, m = 180 < o[M].lng && 90 < o[M].lat ? { x: o[M].lat, y: o[M].lng } : c.project(o[M]), A = 180 < o[r].lng && 90 < o[r].lat ? { x: o[r].lat, y: o[r].lng } : c.project(o[r]), _ = (_ += m.x * A.y) - m.y * A.x;
13516
+ return Math.abs(_ / 2);
13517
+ } else return this instanceof q.Circle ? 2 * Math.PI * this.getRadius() : null;
13505
13518
  },
13506
13519
  getLength(e) {
13507
- for (var r = [], o = (e || this._map).options.crs, c = this._latlngs, d = 0; d < c.length; d++)
13508
- this instanceof H.Polygon ? r.push(...c[d]) : this instanceof H.Polyline && r.push(c[d]);
13509
- let _ = 0, m, A;
13510
- for (let R = 0, I = r.length - 1; R < I; R++) {
13511
- m = 180 < r[R][0] && 90 < r[R][1] ? { x: r[R].lat, y: r[R].lng } : o.project(r[R]), A = 180 < r[R + 1][0] && 90 < r[R + 1][1] ? { x: r[R + 1].lat, y: r[R + 1].lng } : o.project(r[R + 1]);
13512
- var M = m.x, D = m.y, E = A.x, C = A.y;
13513
- _ += Math.sqrt((M - E) * (M - E) + (D - C) * (D - C));
13514
- }
13515
- return _;
13520
+ if (this instanceof q.Polyline) {
13521
+ for (var r = [], o = (e || this._map).options.crs, c = this._latlngs, d = 0; d < c.length; d++)
13522
+ this instanceof q.Polygon ? r.push(...c[d]) : this instanceof q.Polyline && r.push(c[d]);
13523
+ let D = 0, w, C;
13524
+ for (let R = 0, I = r.length - 1; R < I; R++) {
13525
+ w = 180 < r[R][0] && 90 < r[R][1] ? { x: r[R].lat, y: r[R].lng } : o.project(r[R]), C = 180 < r[R + 1][0] && 90 < r[R + 1][1] ? { x: r[R + 1].lat, y: r[R + 1].lng } : o.project(r[R + 1]);
13526
+ var _ = w.x, m = w.y, A = C.x, M = C.y;
13527
+ D += Math.sqrt((_ - A) * (_ - A) + (m - M) * (m - M));
13528
+ }
13529
+ return D;
13530
+ } else return this instanceof q.Circle ? Math.PI * Math.pow(this.getRadius(), 2) : null;
13516
13531
  }
13517
13532
  });
13518
- H.Control.mergeOptions({
13533
+ q.Control.mergeOptions({
13519
13534
  offset: [0, 0]
13520
13535
  });
13521
- H.Control.addInitHook(function() {
13536
+ q.Control.addInitHook(function() {
13522
13537
  const {
13523
13538
  className: e,
13524
13539
  offset: [r, o]
@@ -13528,20 +13543,20 @@ H.Control.addInitHook(function() {
13528
13543
  c && (c.style.transform = `translate(${r}px, ${o}px)`, e && c.classList.add(e));
13529
13544
  }, 200);
13530
13545
  });
13531
- H.Canvas.include({
13546
+ q.Canvas.include({
13532
13547
  _fillStroke: function(e, r) {
13533
13548
  var o = r.options;
13534
13549
  if (o.fill && (e.globalAlpha = o.fillOpacity, e.fillStyle = o.fillColor || o.color, e.fill(o.fillRule || "evenodd")), o.stroke && o.weight !== 0 && (e.setLineDash && e.setLineDash(r.options && r.options._dashArray || []), e.globalAlpha = o.opacity, e.lineWidth = o.weight, e.strokeStyle = o.color, e.lineCap = o.lineCap, e.lineJoin = o.lineJoin, e.stroke(), o.img)) {
13535
13550
  const c = new Image();
13536
13551
  c.src = o.img, c.onload = function() {
13537
13552
  e.save(), e.clip();
13538
- var d = r instanceof H.Circle ? r._pxBounds : r._rawPxBounds, _ = d.getSize(), m = e.createPattern(c, "repeat");
13553
+ var d = r instanceof q.Circle ? r._pxBounds : r._rawPxBounds, _ = d.getSize(), m = e.createPattern(c, "repeat");
13539
13554
  e.fillStyle = m, e.fillRect(d.min.x, d.min.y, _.x, _.y), e.restore();
13540
13555
  };
13541
13556
  }
13542
13557
  }
13543
13558
  });
13544
- H.SVG.include({
13559
+ q.SVG.include({
13545
13560
  _updateStyle: function(e) {
13546
13561
  var r = e._path, o = e.options;
13547
13562
  r && (o.stroke ? (r.setAttribute("stroke", o.color), r.setAttribute("stroke-opacity", o.opacity), r.setAttribute("stroke-width", o.weight), r.setAttribute("stroke-linecap", o.lineCap), r.setAttribute("stroke-linejoin", o.lineJoin), o.dashArray ? r.setAttribute("stroke-dasharray", o.dashArray) : r.removeAttribute("stroke-dasharray"), o.dashOffset ? r.setAttribute("stroke-dashoffset", o.dashOffset) : r.removeAttribute("stroke-dashoffset")) : r.setAttribute("stroke", "none"), o.img ? (typeof o.img == "string" && o.img.match(/^url\(/) ? this.__fillPattern(e) : r.setAttribute("fill", o.fillColor || o.color), r.setAttribute("fill-opacity", o.fillOpacity), r.setAttribute("fill-rule", o.fillRule || "evenodd")) : (r.setAttribute("fill", o.fillColor), r.setAttribute("fill-opacity", o.fillOpacity)));
@@ -13964,12 +13979,12 @@ function ql(e) {
13964
13979
  e.UNIT && (e.units = e.UNIT.name.toLowerCase(), e.units === "metre" && (e.units = "meter"), e.UNIT.convert && (e.type === "GEOGCS" ? e.DATUM && e.DATUM.SPHEROID && (e.to_meter = e.UNIT.convert * e.DATUM.SPHEROID.a) : e.to_meter = e.UNIT.convert));
13965
13980
  var m = e.GEOGCS;
13966
13981
  e.type === "GEOGCS" && (m = e), m && (m.DATUM ? e.datumCode = m.DATUM.name.toLowerCase() : e.datumCode = m.name.toLowerCase(), e.datumCode.slice(0, 2) === "d_" && (e.datumCode = e.datumCode.slice(2)), e.datumCode === "new_zealand_1949" && (e.datumCode = "nzgd49"), (e.datumCode === "wgs_1984" || e.datumCode === "world_geodetic_system_1984") && (e.PROJECTION === "Mercator_Auxiliary_Sphere" && (e.sphere = !0), e.datumCode = "wgs84"), e.datumCode === "belge_1972" && (e.datumCode = "rnb72"), m.DATUM && m.DATUM.SPHEROID && (e.ellps = m.DATUM.SPHEROID.name.replace("_19", "").replace(/[Cc]larke\_18/, "clrk"), e.ellps.toLowerCase().slice(0, 13) === "international" && (e.ellps = "intl"), e.a = m.DATUM.SPHEROID.a, e.rf = parseFloat(m.DATUM.SPHEROID.rf, 10)), m.DATUM && m.DATUM.TOWGS84 && (e.datum_params = m.DATUM.TOWGS84), ~e.datumCode.indexOf("osgb_1936") && (e.datumCode = "osgb36"), ~e.datumCode.indexOf("osni_1952") && (e.datumCode = "osni52"), (~e.datumCode.indexOf("tm65") || ~e.datumCode.indexOf("geodetic_datum_of_1965")) && (e.datumCode = "ire65"), e.datumCode === "ch1903+" && (e.datumCode = "ch1903"), ~e.datumCode.indexOf("israel") && (e.datumCode = "isr93")), e.b && !isFinite(e.b) && (e.b = e.a);
13967
- function A(E) {
13982
+ function A(w) {
13968
13983
  var C = e.to_meter || 1;
13969
- return E * C;
13984
+ return w * C;
13970
13985
  }
13971
- var M = function(E) {
13972
- return Ul(e, E);
13986
+ var M = function(w) {
13987
+ return Ul(e, w);
13973
13988
  }, D = [
13974
13989
  ["standard_parallel_1", "Standard_Parallel_1"],
13975
13990
  ["standard_parallel_1", "Latitude of 1st standard parallel"],
@@ -14667,7 +14682,7 @@ function Oh(e, r, o) {
14667
14682
  };
14668
14683
  }
14669
14684
  function Ih(e, r, o, c) {
14670
- var d = 1e-12, _ = d * d, m = 30, A, M, D, E, C, R, I, G, j, X, rt, at, ct, yt = e.x, _t = e.y, xt = e.z ? e.z : 0, Zt, kt, Xt;
14685
+ var d = 1e-12, _ = d * d, m = 30, A, M, D, w, C, R, I, G, j, X, rt, at, ct, yt = e.x, _t = e.y, xt = e.z ? e.z : 0, Zt, kt, Xt;
14671
14686
  if (A = Math.sqrt(yt * yt + _t * _t), M = Math.sqrt(yt * yt + _t * _t + xt * xt), A / o < d) {
14672
14687
  if (Zt = 0, M / o < d)
14673
14688
  return kt = ut, Xt = -c, {
@@ -14677,9 +14692,9 @@ function Ih(e, r, o, c) {
14677
14692
  };
14678
14693
  } else
14679
14694
  Zt = Math.atan2(_t, yt);
14680
- D = xt / M, E = A / M, C = 1 / Math.sqrt(1 - r * (2 - r) * E * E), G = E * (1 - r) * C, j = D * C, ct = 0;
14695
+ D = xt / M, w = A / M, C = 1 / Math.sqrt(1 - r * (2 - r) * w * w), G = w * (1 - r) * C, j = D * C, ct = 0;
14681
14696
  do
14682
- ct++, I = o / Math.sqrt(1 - r * j * j), Xt = A * G + xt * j - I * (1 - r * j * j), R = r * I / (I + Xt), C = 1 / Math.sqrt(1 - R * (2 - R) * E * E), X = E * (1 - R) * C, rt = D * C, at = rt * G - X * j, G = X, j = rt;
14697
+ ct++, I = o / Math.sqrt(1 - r * j * j), Xt = A * G + xt * j - I * (1 - r * j * j), R = r * I / (I + Xt), C = 1 / Math.sqrt(1 - R * (2 - R) * w * w), X = w * (1 - R) * C, rt = D * C, at = rt * G - X * j, G = X, j = rt;
14683
14698
  while (at * at > _ && ct < m);
14684
14699
  return kt = Math.atan(rt / Math.abs(X)), {
14685
14700
  x: Zt,
@@ -14711,11 +14726,11 @@ function ku(e, r, o) {
14711
14726
  z: e.z - o[2]
14712
14727
  };
14713
14728
  if (r === gn) {
14714
- var c = o[0], d = o[1], _ = o[2], m = o[3], A = o[4], M = o[5], D = o[6], E = (e.x - c) / D, C = (e.y - d) / D, R = (e.z - _) / D;
14729
+ var c = o[0], d = o[1], _ = o[2], m = o[3], A = o[4], M = o[5], D = o[6], w = (e.x - c) / D, C = (e.y - d) / D, R = (e.z - _) / D;
14715
14730
  return {
14716
- x: E + M * C - A * R,
14717
- y: -M * E + C + m * R,
14718
- z: A * E - m * C + R
14731
+ x: w + M * C - A * R,
14732
+ y: -M * w + C + m * R,
14733
+ z: A * w - m * C + R
14719
14734
  };
14720
14735
  }
14721
14736
  }
@@ -14758,7 +14773,7 @@ function ah(e, r, o) {
14758
14773
  return console.log("Unable to find mandatory grid '" + A.name + "'"), -1;
14759
14774
  continue;
14760
14775
  }
14761
- for (var M = A.grid.subgrids, D = 0, E = M.length; D < E; D++) {
14776
+ for (var M = A.grid.subgrids, D = 0, w = M.length; D < w; D++) {
14762
14777
  var C = M[D], R = (Math.abs(C.del[1]) + Math.abs(C.del[0])) / 1e4, I = C.ll[0] - R, G = C.ll[1] - R, j = C.ll[0] + (C.lim[0] - 1) * C.del[0] + R, X = C.ll[1] + (C.lim[1] - 1) * C.del[1] + R;
14763
14778
  if (!(G > c.y || I > c.x || X < c.y || j < c.x) && (d = Bu(c, r, C), !isNaN(d.x)))
14764
14779
  break t;
@@ -14803,8 +14818,8 @@ function oh(e, r) {
14803
14818
  m += r.lim[0];
14804
14819
  var D = { x: r.cvs[m][0], y: r.cvs[m][1] };
14805
14820
  m--;
14806
- var E = { x: r.cvs[m][0], y: r.cvs[m][1] }, C = d.x * d.y, R = d.x * (1 - d.y), I = (1 - d.x) * (1 - d.y), G = (1 - d.x) * d.y;
14807
- return _.x = I * A.x + R * M.x + G * E.x + C * D.x, _.y = I * A.y + R * M.y + G * E.y + C * D.y, _;
14821
+ var w = { x: r.cvs[m][0], y: r.cvs[m][1] }, C = d.x * d.y, R = d.x * (1 - d.y), I = (1 - d.x) * (1 - d.y), G = (1 - d.x) * d.y;
14822
+ return _.x = I * A.x + R * M.x + G * w.x + C * D.x, _.y = I * A.y + R * M.y + G * w.y + C * D.y, _;
14808
14823
  }
14809
14824
  function hh(e, r, o) {
14810
14825
  var c = o.x, d = o.y, _ = o.z || 0, m, A, M, D = {};
@@ -14946,9 +14961,9 @@ function fh(e) {
14946
14961
  return 180 * (e / Math.PI);
14947
14962
  }
14948
14963
  function Iu(e) {
14949
- var r = e.lat, o = e.lon, c = 6378137, d = 669438e-8, _ = 0.9996, m, A, M, D, E, C, R, I = wo(r), G = wo(o), j, X;
14950
- X = Math.floor((o + 180) / 6) + 1, o === 180 && (X = 60), r >= 56 && r < 64 && o >= 3 && o < 12 && (X = 32), r >= 72 && r < 84 && (o >= 0 && o < 9 ? X = 31 : o >= 9 && o < 21 ? X = 33 : o >= 21 && o < 33 ? X = 35 : o >= 33 && o < 42 && (X = 37)), m = (X - 1) * 6 - 180 + 3, j = wo(m), A = d / (1 - d), M = c / Math.sqrt(1 - d * Math.sin(I) * Math.sin(I)), D = Math.tan(I) * Math.tan(I), E = A * Math.cos(I) * Math.cos(I), C = Math.cos(I) * (G - j), R = c * ((1 - d / 4 - 3 * d * d / 64 - 5 * d * d * d / 256) * I - (3 * d / 8 + 3 * d * d / 32 + 45 * d * d * d / 1024) * Math.sin(2 * I) + (15 * d * d / 256 + 45 * d * d * d / 1024) * Math.sin(4 * I) - 35 * d * d * d / 3072 * Math.sin(6 * I));
14951
- var rt = _ * M * (C + (1 - D + E) * C * C * C / 6 + (5 - 18 * D + D * D + 72 * E - 58 * A) * C * C * C * C * C / 120) + 5e5, at = _ * (R + M * Math.tan(I) * (C * C / 2 + (5 - D + 9 * E + 4 * E * E) * C * C * C * C / 24 + (61 - 58 * D + D * D + 600 * E - 330 * A) * C * C * C * C * C * C / 720));
14964
+ var r = e.lat, o = e.lon, c = 6378137, d = 669438e-8, _ = 0.9996, m, A, M, D, w, C, R, I = wo(r), G = wo(o), j, X;
14965
+ X = Math.floor((o + 180) / 6) + 1, o === 180 && (X = 60), r >= 56 && r < 64 && o >= 3 && o < 12 && (X = 32), r >= 72 && r < 84 && (o >= 0 && o < 9 ? X = 31 : o >= 9 && o < 21 ? X = 33 : o >= 21 && o < 33 ? X = 35 : o >= 33 && o < 42 && (X = 37)), m = (X - 1) * 6 - 180 + 3, j = wo(m), A = d / (1 - d), M = c / Math.sqrt(1 - d * Math.sin(I) * Math.sin(I)), D = Math.tan(I) * Math.tan(I), w = A * Math.cos(I) * Math.cos(I), C = Math.cos(I) * (G - j), R = c * ((1 - d / 4 - 3 * d * d / 64 - 5 * d * d * d / 256) * I - (3 * d / 8 + 3 * d * d / 32 + 45 * d * d * d / 1024) * Math.sin(2 * I) + (15 * d * d / 256 + 45 * d * d * d / 1024) * Math.sin(4 * I) - 35 * d * d * d / 3072 * Math.sin(6 * I));
14966
+ var rt = _ * M * (C + (1 - D + w) * C * C * C / 6 + (5 - 18 * D + D * D + 72 * w - 58 * A) * C * C * C * C * C / 120) + 5e5, at = _ * (R + M * Math.tan(I) * (C * C / 2 + (5 - D + 9 * w + 4 * w * w) * C * C * C * C / 24 + (61 - 58 * D + D * D + 600 * w - 330 * A) * C * C * C * C * C * C / 720));
14952
14967
  return r < 0 && (at += 1e7), {
14953
14968
  northing: Math.round(at),
14954
14969
  easting: Math.round(rt),
@@ -14960,9 +14975,9 @@ function Io(e) {
14960
14975
  var r = e.northing, o = e.easting, c = e.zoneLetter, d = e.zoneNumber;
14961
14976
  if (d < 0 || d > 60)
14962
14977
  return null;
14963
- var _ = 0.9996, m = 6378137, A = 669438e-8, M, D = (1 - Math.sqrt(1 - A)) / (1 + Math.sqrt(1 - A)), E, C, R, I, G, j, X, rt, at, ct = o - 5e5, yt = r;
14964
- c < "N" && (yt -= 1e7), X = (d - 1) * 6 - 180 + 3, M = A / (1 - A), j = yt / _, rt = j / (m * (1 - A / 4 - 3 * A * A / 64 - 5 * A * A * A / 256)), at = rt + (3 * D / 2 - 27 * D * D * D / 32) * Math.sin(2 * rt) + (21 * D * D / 16 - 55 * D * D * D * D / 32) * Math.sin(4 * rt) + 151 * D * D * D / 96 * Math.sin(6 * rt), E = m / Math.sqrt(1 - A * Math.sin(at) * Math.sin(at)), C = Math.tan(at) * Math.tan(at), R = M * Math.cos(at) * Math.cos(at), I = m * (1 - A) / Math.pow(1 - A * Math.sin(at) * Math.sin(at), 1.5), G = ct / (E * _);
14965
- var _t = at - E * Math.tan(at) / I * (G * G / 2 - (5 + 3 * C + 10 * R - 4 * R * R - 9 * M) * G * G * G * G / 24 + (61 + 90 * C + 298 * R + 45 * C * C - 252 * M - 3 * R * R) * G * G * G * G * G * G / 720);
14978
+ var _ = 0.9996, m = 6378137, A = 669438e-8, M, D = (1 - Math.sqrt(1 - A)) / (1 + Math.sqrt(1 - A)), w, C, R, I, G, j, X, rt, at, ct = o - 5e5, yt = r;
14979
+ c < "N" && (yt -= 1e7), X = (d - 1) * 6 - 180 + 3, M = A / (1 - A), j = yt / _, rt = j / (m * (1 - A / 4 - 3 * A * A / 64 - 5 * A * A * A / 256)), at = rt + (3 * D / 2 - 27 * D * D * D / 32) * Math.sin(2 * rt) + (21 * D * D / 16 - 55 * D * D * D * D / 32) * Math.sin(4 * rt) + 151 * D * D * D / 96 * Math.sin(6 * rt), w = m / Math.sqrt(1 - A * Math.sin(at) * Math.sin(at)), C = Math.tan(at) * Math.tan(at), R = M * Math.cos(at) * Math.cos(at), I = m * (1 - A) / Math.pow(1 - A * Math.sin(at) * Math.sin(at), 1.5), G = ct / (w * _);
14980
+ var _t = at - w * Math.tan(at) / I * (G * G / 2 - (5 + 3 * C + 10 * R - 4 * R * R - 9 * M) * G * G * G * G / 24 + (61 + 90 * C + 298 * R + 45 * C * C - 252 * M - 3 * R * R) * G * G * G * G * G * G / 720);
14966
14981
  _t = fh(_t);
14967
14982
  var xt = (G - (1 + 2 * C + R) * G * G * G / 6 + (5 - 2 * R + 28 * C - 3 * R * R + 8 * M + 24 * C * C) * G * G * G * G * G / 120) / Math.cos(at);
14968
14983
  xt = X + fh(xt);
@@ -15024,8 +15039,8 @@ function jh(e) {
15024
15039
  if (A <= "A" || A === "B" || A === "Y" || A >= "Z" || A === "I" || A === "O")
15025
15040
  throw "MGRSPoint zone letter " + A + " not handled: " + e;
15026
15041
  o = e.substring(_, _ += 2);
15027
- for (var M = Zh(m), D = Gu(o.charAt(0), M), E = Zu(o.charAt(1), M); E < ju(A); )
15028
- E += 2e6;
15042
+ for (var M = Zh(m), D = Gu(o.charAt(0), M), w = Zu(o.charAt(1), M); w < ju(A); )
15043
+ w += 2e6;
15029
15044
  var C = r - _;
15030
15045
  if (C % 2 !== 0)
15031
15046
  throw `MGRSPoint has to have an even number
@@ -15033,7 +15048,7 @@ of digits after the zone letter and two 100km letters - front
15033
15048
  half for easting meters, second half for
15034
15049
  northing meters` + e;
15035
15050
  var R = C / 2, I = 0, G = 0, j, X, rt, at, ct;
15036
- return R > 0 && (j = 1e5 / Math.pow(10, R), X = e.substring(_, _ + R), I = parseFloat(X) * j, rt = e.substring(_ + R), G = parseFloat(rt) * j), at = I + D, ct = G + E, {
15051
+ return R > 0 && (j = 1e5 / Math.pow(10, R), X = e.substring(_, _ + R), I = parseFloat(X) * j, rt = e.substring(_ + R), G = parseFloat(rt) * j), at = I + D, ct = G + w, {
15037
15052
  easting: at,
15038
15053
  northing: ct,
15039
15054
  zoneLetter: A,
@@ -15180,10 +15195,10 @@ function Ju() {
15180
15195
  function tc(e) {
15181
15196
  var r = e.x, o = e.y, c = pt(r - this.long0), d, _, m, A = Math.sin(o), M = Math.cos(o);
15182
15197
  if (this.es) {
15183
- var E = M * c, C = Math.pow(E, 2), R = this.ep2 * Math.pow(M, 2), I = Math.pow(R, 2), G = Math.abs(M) > ft ? Math.tan(o) : 0, j = Math.pow(G, 2), X = Math.pow(j, 2);
15184
- d = 1 - this.es * Math.pow(A, 2), E = E / Math.sqrt(d);
15198
+ var w = M * c, C = Math.pow(w, 2), R = this.ep2 * Math.pow(M, 2), I = Math.pow(R, 2), G = Math.abs(M) > ft ? Math.tan(o) : 0, j = Math.pow(G, 2), X = Math.pow(j, 2);
15199
+ d = 1 - this.es * Math.pow(A, 2), w = w / Math.sqrt(d);
15185
15200
  var rt = ss(o, A, M, this.en);
15186
- _ = this.a * (this.k0 * E * (1 + C / 6 * (1 - j + R + C / 20 * (5 - 18 * j + X + 14 * R - 58 * j * R + C / 42 * (61 + 179 * X - X * j - 479 * j))))) + this.x0, m = this.a * (this.k0 * (rt - this.ml0 + A * c * E / 2 * (1 + C / 12 * (5 - j + 9 * R + 4 * I + C / 30 * (61 + X - 58 * j + 270 * R - 330 * j * R + C / 56 * (1385 + 543 * X - X * j - 3111 * j)))))) + this.y0;
15201
+ _ = this.a * (this.k0 * w * (1 + C / 6 * (1 - j + R + C / 20 * (5 - 18 * j + X + 14 * R - 58 * j * R + C / 42 * (61 + 179 * X - X * j - 479 * j))))) + this.x0, m = this.a * (this.k0 * (rt - this.ml0 + A * c * w / 2 * (1 + C / 12 * (5 - j + 9 * R + 4 * I + C / 30 * (61 + X - 58 * j + 270 * R - 330 * j * R + C / 56 * (1385 + 543 * X - X * j - 3111 * j)))))) + this.y0;
15187
15202
  } else {
15188
15203
  var D = M * Math.sin(c);
15189
15204
  if (Math.abs(Math.abs(D) - 1) < ft)
@@ -15209,8 +15224,8 @@ function ec(e) {
15209
15224
  } else
15210
15225
  c = ut * hr(m), d = 0;
15211
15226
  else {
15212
- var A = Math.exp(_ / this.k0), M = 0.5 * (A - 1 / A), D = this.lat0 + m / this.k0, E = Math.cos(D);
15213
- r = Math.sqrt((1 - Math.pow(E, 2)) / (1 + Math.pow(M, 2))), c = Math.asin(r), m < 0 && (c = -c), M === 0 && E === 0 ? d = 0 : d = pt(Math.atan2(M, E) + this.long0);
15227
+ var A = Math.exp(_ / this.k0), M = 0.5 * (A - 1 / A), D = this.lat0 + m / this.k0, w = Math.cos(D);
15228
+ r = Math.sqrt((1 - Math.pow(w, 2)) / (1 + Math.pow(M, 2))), c = Math.asin(r), m < 0 && (c = -c), M === 0 && w === 0 ? d = 0 : d = pt(Math.atan2(M, w) + this.long0);
15214
15229
  }
15215
15230
  return e.x = d, e.y = c, e;
15216
15231
  }
@@ -15253,9 +15268,9 @@ function ac(e) {
15253
15268
  return r = (r + 1 / r) / 2, r;
15254
15269
  }
15255
15270
  function qh(e, r, o) {
15256
- for (var c = Math.sin(r), d = Math.cos(r), _ = Uh(o), m = ac(o), A = 2 * d * m, M = -2 * c * _, D = e.length - 1, E = e[D], C = 0, R = 0, I = 0, G, j; --D >= 0; )
15257
- G = R, j = C, R = E, C = I, E = -G + A * R - M * C + e[D], I = -j + M * R + A * C;
15258
- return A = c * m, M = d * _, [A * E - M * I, A * I + M * E];
15271
+ for (var c = Math.sin(r), d = Math.cos(r), _ = Uh(o), m = ac(o), A = 2 * d * m, M = -2 * c * _, D = e.length - 1, w = e[D], C = 0, R = 0, I = 0, G, j; --D >= 0; )
15272
+ G = R, j = C, R = w, C = I, w = -G + A * R - M * C + e[D], I = -j + M * R + A * C;
15273
+ return A = c * m, M = d * _, [A * w - M * I, A * I + M * w];
15259
15274
  }
15260
15275
  function oc() {
15261
15276
  if (!this.approx && (isNaN(this.es) || this.es <= 0))
@@ -15372,8 +15387,8 @@ function Ec() {
15372
15387
  this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.coslat0 = Math.cos(this.lat0), this.sinlat0 = Math.sin(this.lat0), this.sphere ? this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= ft && (this.k0 = 0.5 * (1 + hr(this.lat0) * Math.sin(this.lat_ts))) : (Math.abs(this.coslat0) <= ft && (this.lat0 > 0 ? this.con = 1 : this.con = -1), this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e)), this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= ft && Math.abs(Math.cos(this.lat_ts)) > ft && (this.k0 = 0.5 * this.cons * yi(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / oi(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts))), this.ms1 = yi(this.e, this.sinlat0, this.coslat0), this.X0 = 2 * Math.atan(this.ssfn_(this.lat0, this.sinlat0, this.e)) - ut, this.cosX0 = Math.cos(this.X0), this.sinX0 = Math.sin(this.X0));
15373
15388
  }
15374
15389
  function kc(e) {
15375
- var r = e.x, o = e.y, c = Math.sin(o), d = Math.cos(o), _, m, A, M, D, E, C = pt(r - this.long0);
15376
- return Math.abs(Math.abs(r - this.long0) - Math.PI) <= ft && Math.abs(o + this.lat0) <= ft ? (e.x = NaN, e.y = NaN, e) : this.sphere ? (_ = 2 * this.k0 / (1 + this.sinlat0 * c + this.coslat0 * d * Math.cos(C)), e.x = this.a * _ * d * Math.sin(C) + this.x0, e.y = this.a * _ * (this.coslat0 * c - this.sinlat0 * d * Math.cos(C)) + this.y0, e) : (m = 2 * Math.atan(this.ssfn_(o, c, this.e)) - ut, M = Math.cos(m), A = Math.sin(m), Math.abs(this.coslat0) <= ft ? (D = oi(this.e, o * this.con, this.con * c), E = 2 * this.a * this.k0 * D / this.cons, e.x = this.x0 + E * Math.sin(r - this.long0), e.y = this.y0 - this.con * E * Math.cos(r - this.long0), e) : (Math.abs(this.sinlat0) < ft ? (_ = 2 * this.a * this.k0 / (1 + M * Math.cos(C)), e.y = _ * A) : (_ = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * A + this.cosX0 * M * Math.cos(C))), e.y = _ * (this.cosX0 * A - this.sinX0 * M * Math.cos(C)) + this.y0), e.x = _ * M * Math.sin(C) + this.x0, e));
15390
+ var r = e.x, o = e.y, c = Math.sin(o), d = Math.cos(o), _, m, A, M, D, w, C = pt(r - this.long0);
15391
+ return Math.abs(Math.abs(r - this.long0) - Math.PI) <= ft && Math.abs(o + this.lat0) <= ft ? (e.x = NaN, e.y = NaN, e) : this.sphere ? (_ = 2 * this.k0 / (1 + this.sinlat0 * c + this.coslat0 * d * Math.cos(C)), e.x = this.a * _ * d * Math.sin(C) + this.x0, e.y = this.a * _ * (this.coslat0 * c - this.sinlat0 * d * Math.cos(C)) + this.y0, e) : (m = 2 * Math.atan(this.ssfn_(o, c, this.e)) - ut, M = Math.cos(m), A = Math.sin(m), Math.abs(this.coslat0) <= ft ? (D = oi(this.e, o * this.con, this.con * c), w = 2 * this.a * this.k0 * D / this.cons, e.x = this.x0 + w * Math.sin(r - this.long0), e.y = this.y0 - this.con * w * Math.cos(r - this.long0), e) : (Math.abs(this.sinlat0) < ft ? (_ = 2 * this.a * this.k0 / (1 + M * Math.cos(C)), e.y = _ * A) : (_ = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * A + this.cosX0 * M * Math.cos(C))), e.y = _ * (this.cosX0 * A - this.sinX0 * M * Math.cos(C)) + this.y0), e.x = _ * M * Math.sin(C) + this.x0, e));
15377
15392
  }
15378
15393
  function Pc(e) {
15379
15394
  e.x -= this.x0, e.y -= this.y0;
@@ -15410,10 +15425,10 @@ function Dc(e) {
15410
15425
  return e.y = this.R / 2 * Math.log((1 + Math.sin(A)) / (1 - Math.sin(A))) + this.y0, e.x = this.R * m + this.x0, e;
15411
15426
  }
15412
15427
  function Oc(e) {
15413
- for (var r = e.x - this.x0, o = e.y - this.y0, c = r / this.R, d = 2 * (Math.atan(Math.exp(o / this.R)) - Math.PI / 4), _ = Math.asin(Math.cos(this.b0) * Math.sin(d) + Math.sin(this.b0) * Math.cos(d) * Math.cos(c)), m = Math.atan(Math.sin(c) / (Math.cos(this.b0) * Math.cos(c) - Math.sin(this.b0) * Math.tan(d))), A = this.lambda0 + m / this.alpha, M = 0, D = _, E = -1e3, C = 0; Math.abs(D - E) > 1e-7; ) {
15428
+ for (var r = e.x - this.x0, o = e.y - this.y0, c = r / this.R, d = 2 * (Math.atan(Math.exp(o / this.R)) - Math.PI / 4), _ = Math.asin(Math.cos(this.b0) * Math.sin(d) + Math.sin(this.b0) * Math.cos(d) * Math.cos(c)), m = Math.atan(Math.sin(c) / (Math.cos(this.b0) * Math.cos(c) - Math.sin(this.b0) * Math.tan(d))), A = this.lambda0 + m / this.alpha, M = 0, D = _, w = -1e3, C = 0; Math.abs(D - w) > 1e-7; ) {
15414
15429
  if (++C > 20)
15415
15430
  return;
15416
- M = 1 / this.alpha * (Math.log(Math.tan(Math.PI / 4 + _ / 2)) - this.K) + this.e * Math.log(Math.tan(Math.PI / 4 + Math.asin(this.e * Math.sin(D)) / 2)), E = D, D = 2 * Math.atan(Math.exp(M)) - Math.PI / 2;
15431
+ M = 1 / this.alpha * (Math.log(Math.tan(Math.PI / 4 + _ / 2)) - this.K) + this.e * Math.log(Math.tan(Math.PI / 4 + Math.asin(this.e * Math.sin(D)) / 2)), w = D, D = 2 * Math.atan(Math.exp(M)) - Math.PI / 2;
15417
15432
  }
15418
15433
  return e.x = A, e.y = D, e;
15419
15434
  }
@@ -15430,17 +15445,17 @@ function Fc(e) {
15430
15445
  return "no_uoff" in e || "no_off" in e || r.indexOf(o) !== -1;
15431
15446
  }
15432
15447
  function zc() {
15433
- var e, r, o, c, d, _, m, A, M, D, E = 0, C, R = 0, I = 0, G = 0, j = 0, X = 0, rt = 0;
15448
+ var e, r, o, c, d, _, m, A, M, D, w = 0, C, R = 0, I = 0, G = 0, j = 0, X = 0, rt = 0;
15434
15449
  this.no_off = Fc(this), this.no_rot = "no_rot" in this;
15435
15450
  var at = !1;
15436
15451
  "alpha" in this && (at = !0);
15437
15452
  var ct = !1;
15438
- if ("rectified_grid_angle" in this && (ct = !0), at && (rt = this.alpha), ct && (E = this.rectified_grid_angle * Me), at || ct)
15453
+ if ("rectified_grid_angle" in this && (ct = !0), at && (rt = this.alpha), ct && (w = this.rectified_grid_angle * Me), at || ct)
15439
15454
  R = this.longc;
15440
15455
  else if (I = this.long1, j = this.lat1, G = this.long2, X = this.lat2, Math.abs(j - X) <= Kn || (e = Math.abs(j)) <= Kn || Math.abs(e - ut) <= Kn || Math.abs(Math.abs(this.lat0) - ut) <= Kn || Math.abs(Math.abs(X) - ut) <= Kn)
15441
15456
  throw new Error();
15442
15457
  var yt = 1 - this.es;
15443
- r = Math.sqrt(yt), Math.abs(this.lat0) > ft ? (A = Math.sin(this.lat0), o = Math.cos(this.lat0), e = 1 - this.es * A * A, this.B = o * o, this.B = Math.sqrt(1 + this.es * this.B * this.B / yt), this.A = this.B * this.k0 * r / e, c = this.B * r / (o * Math.sqrt(e)), d = c * c - 1, d <= 0 ? d = 0 : (d = Math.sqrt(d), this.lat0 < 0 && (d = -d)), this.E = d += c, this.E *= Math.pow(oi(this.e, this.lat0, A), this.B)) : (this.B = 1 / r, this.A = this.k0, this.E = c = d = 1), at || ct ? (at ? (C = Math.asin(Math.sin(rt) / c), ct || (E = rt)) : (C = E, rt = Math.asin(c * Math.sin(C))), this.lam0 = R - Math.asin(0.5 * (d - 1 / d) * Math.tan(C)) / this.B) : (_ = Math.pow(oi(this.e, j, Math.sin(j)), this.B), m = Math.pow(oi(this.e, X, Math.sin(X)), this.B), d = this.E / _, M = (m - _) / (m + _), D = this.E * this.E, D = (D - m * _) / (D + m * _), e = I - G, e < -Math.pi ? G -= sr : e > Math.pi && (G += sr), this.lam0 = pt(0.5 * (I + G) - Math.atan(D * Math.tan(0.5 * this.B * (I - G)) / M) / this.B), C = Math.atan(2 * Math.sin(this.B * pt(I - this.lam0)) / (d - 1 / d)), E = rt = Math.asin(c * Math.sin(C))), this.singam = Math.sin(C), this.cosgam = Math.cos(C), this.sinrot = Math.sin(E), this.cosrot = Math.cos(E), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.A * this.B, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(c * c - 1) / Math.cos(rt))), this.lat0 < 0 && (this.u_0 = -this.u_0)), d = 0.5 * C, this.v_pole_n = this.ArB * Math.log(Math.tan(qt - d)), this.v_pole_s = this.ArB * Math.log(Math.tan(qt + d));
15458
+ r = Math.sqrt(yt), Math.abs(this.lat0) > ft ? (A = Math.sin(this.lat0), o = Math.cos(this.lat0), e = 1 - this.es * A * A, this.B = o * o, this.B = Math.sqrt(1 + this.es * this.B * this.B / yt), this.A = this.B * this.k0 * r / e, c = this.B * r / (o * Math.sqrt(e)), d = c * c - 1, d <= 0 ? d = 0 : (d = Math.sqrt(d), this.lat0 < 0 && (d = -d)), this.E = d += c, this.E *= Math.pow(oi(this.e, this.lat0, A), this.B)) : (this.B = 1 / r, this.A = this.k0, this.E = c = d = 1), at || ct ? (at ? (C = Math.asin(Math.sin(rt) / c), ct || (w = rt)) : (C = w, rt = Math.asin(c * Math.sin(C))), this.lam0 = R - Math.asin(0.5 * (d - 1 / d) * Math.tan(C)) / this.B) : (_ = Math.pow(oi(this.e, j, Math.sin(j)), this.B), m = Math.pow(oi(this.e, X, Math.sin(X)), this.B), d = this.E / _, M = (m - _) / (m + _), D = this.E * this.E, D = (D - m * _) / (D + m * _), e = I - G, e < -Math.pi ? G -= sr : e > Math.pi && (G += sr), this.lam0 = pt(0.5 * (I + G) - Math.atan(D * Math.tan(0.5 * this.B * (I - G)) / M) / this.B), C = Math.atan(2 * Math.sin(this.B * pt(I - this.lam0)) / (d - 1 / d)), w = rt = Math.asin(c * Math.sin(C))), this.singam = Math.sin(C), this.cosgam = Math.cos(C), this.sinrot = Math.sin(w), this.cosrot = Math.cos(w), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.A * this.B, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(c * c - 1) / Math.cos(rt))), this.lat0 < 0 && (this.u_0 = -this.u_0)), d = 0.5 * C, this.v_pole_n = this.ArB * Math.log(Math.tan(qt - d)), this.v_pole_s = this.ArB * Math.log(Math.tan(qt + d));
15444
15459
  }
15445
15460
  function Nc(e) {
15446
15461
  var r = {}, o, c, d, _, m, A, M, D;
@@ -15522,17 +15537,17 @@ function Kc() {
15522
15537
  this.a = 6377397155e-3, this.es = 0.006674372230614, this.e = Math.sqrt(this.es), this.lat0 || (this.lat0 = 0.863937979737193), this.long0 || (this.long0 = 0.7417649320975901 - 0.308341501185665), this.k0 || (this.k0 = 0.9999), this.s45 = 0.785398163397448, this.s90 = 2 * this.s45, this.fi0 = this.lat0, this.e2 = this.es, this.e = Math.sqrt(this.e2), this.alfa = Math.sqrt(1 + this.e2 * Math.pow(Math.cos(this.fi0), 4) / (1 - this.e2)), this.uq = 1.04216856380474, this.u0 = Math.asin(Math.sin(this.fi0) / this.alfa), this.g = Math.pow((1 + this.e * Math.sin(this.fi0)) / (1 - this.e * Math.sin(this.fi0)), this.alfa * this.e / 2), this.k = Math.tan(this.u0 / 2 + this.s45) / Math.pow(Math.tan(this.fi0 / 2 + this.s45), this.alfa) * this.g, this.k1 = this.k0, this.n0 = this.a * Math.sqrt(1 - this.e2) / (1 - this.e2 * Math.pow(Math.sin(this.fi0), 2)), this.s0 = 1.37008346281555, this.n = Math.sin(this.s0), this.ro0 = this.k1 * this.n0 / Math.tan(this.s0), this.ad = this.s90 - this.uq;
15523
15538
  }
15524
15539
  function $c(e) {
15525
- var r, o, c, d, _, m, A, M = e.x, D = e.y, E = pt(M - this.long0);
15526
- return r = Math.pow((1 + this.e * Math.sin(D)) / (1 - this.e * Math.sin(D)), this.alfa * this.e / 2), o = 2 * (Math.atan(this.k * Math.pow(Math.tan(D / 2 + this.s45), this.alfa) / r) - this.s45), c = -E * this.alfa, d = Math.asin(Math.cos(this.ad) * Math.sin(o) + Math.sin(this.ad) * Math.cos(o) * Math.cos(c)), _ = Math.asin(Math.cos(o) * Math.sin(c) / Math.cos(d)), m = this.n * _, A = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(d / 2 + this.s45), this.n), e.y = A * Math.cos(m) / 1, e.x = A * Math.sin(m) / 1, this.czech || (e.y *= -1, e.x *= -1), e;
15540
+ var r, o, c, d, _, m, A, M = e.x, D = e.y, w = pt(M - this.long0);
15541
+ return r = Math.pow((1 + this.e * Math.sin(D)) / (1 - this.e * Math.sin(D)), this.alfa * this.e / 2), o = 2 * (Math.atan(this.k * Math.pow(Math.tan(D / 2 + this.s45), this.alfa) / r) - this.s45), c = -w * this.alfa, d = Math.asin(Math.cos(this.ad) * Math.sin(o) + Math.sin(this.ad) * Math.cos(o) * Math.cos(c)), _ = Math.asin(Math.cos(o) * Math.sin(c) / Math.cos(d)), m = this.n * _, A = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(d / 2 + this.s45), this.n), e.y = A * Math.cos(m) / 1, e.x = A * Math.sin(m) / 1, this.czech || (e.y *= -1, e.x *= -1), e;
15527
15542
  }
15528
15543
  function Xc(e) {
15529
15544
  var r, o, c, d, _, m, A, M, D = e.x;
15530
15545
  e.x = e.y, e.y = D, this.czech || (e.y *= -1, e.x *= -1), m = Math.sqrt(e.x * e.x + e.y * e.y), _ = Math.atan2(e.y, e.x), d = _ / Math.sin(this.s0), c = 2 * (Math.atan(Math.pow(this.ro0 / m, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), r = Math.asin(Math.cos(this.ad) * Math.sin(c) - Math.sin(this.ad) * Math.cos(c) * Math.cos(d)), o = Math.asin(Math.cos(c) * Math.sin(d) / Math.cos(r)), e.x = this.long0 - o / this.alfa, A = r, M = 0;
15531
- var E = 0;
15546
+ var w = 0;
15532
15547
  do
15533
- e.y = 2 * (Math.atan(Math.pow(this.k, -1 / this.alfa) * Math.pow(Math.tan(r / 2 + this.s45), 1 / this.alfa) * Math.pow((1 + this.e * Math.sin(A)) / (1 - this.e * Math.sin(A)), this.e / 2)) - this.s45), Math.abs(A - e.y) < 1e-10 && (M = 1), A = e.y, E += 1;
15534
- while (M === 0 && E < 15);
15535
- return E >= 15 ? null : e;
15548
+ e.y = 2 * (Math.atan(Math.pow(this.k, -1 / this.alfa) * Math.pow(Math.tan(r / 2 + this.s45), 1 / this.alfa) * Math.pow((1 + this.e * Math.sin(A)) / (1 - this.e * Math.sin(A)), this.e / 2)) - this.s45), Math.abs(A - e.y) < 1e-10 && (M = 1), A = e.y, w += 1;
15549
+ while (M === 0 && w < 15);
15550
+ return w >= 15 ? null : e;
15536
15551
  }
15537
15552
  var Qc = ["Krovak", "krovak"];
15538
15553
  const Yc = {
@@ -15579,8 +15594,8 @@ function td(e) {
15579
15594
  if (c = pt(c - this.long0), this.sphere)
15580
15595
  r = this.a * Math.asin(Math.cos(d) * Math.sin(c)), o = this.a * (Math.atan2(Math.tan(d), Math.cos(c)) - this.lat0);
15581
15596
  else {
15582
- var _ = Math.sin(d), m = Math.cos(d), A = ns(this.a, this.e, _), M = Math.tan(d) * Math.tan(d), D = c * Math.cos(d), E = D * D, C = this.es * m * m / (1 - this.es), R = this.a * Oe(this.e0, this.e1, this.e2, this.e3, d);
15583
- r = A * D * (1 - E * M * (1 / 6 - (8 - M + 8 * C) * E / 120)), o = R - this.ml0 + A * _ / m * E * (0.5 + (5 - M + 6 * C) * E / 24);
15597
+ var _ = Math.sin(d), m = Math.cos(d), A = ns(this.a, this.e, _), M = Math.tan(d) * Math.tan(d), D = c * Math.cos(d), w = D * D, C = this.es * m * m / (1 - this.es), R = this.a * Oe(this.e0, this.e1, this.e2, this.e3, d);
15598
+ r = A * D * (1 - w * M * (1 / 6 - (8 - M + 8 * C) * w / 120)), o = R - this.ml0 + A * _ / m * w * (0.5 + (5 - M + 6 * C) * w / 24);
15584
15599
  }
15585
15600
  return e.x = r + this.x0, e.y = o + this.y0, e;
15586
15601
  }
@@ -15594,8 +15609,8 @@ function ed(e) {
15594
15609
  var m = this.ml0 / this.a + o, A = ba(m, this.e0, this.e1, this.e2, this.e3);
15595
15610
  if (Math.abs(Math.abs(A) - ut) <= ft)
15596
15611
  return e.x = this.long0, e.y = ut, o < 0 && (e.y *= -1), e;
15597
- var M = ns(this.a, this.e, Math.sin(A)), D = M * M * M / this.a / this.a * (1 - this.es), E = Math.pow(Math.tan(A), 2), C = r * this.a / M, R = C * C;
15598
- c = A - M * Math.tan(A) / D * C * C * (0.5 - (1 + 3 * E) * C * C / 24), d = C * (1 - R * (E / 3 + (1 + 3 * E) * E * R / 15)) / Math.cos(A);
15612
+ var M = ns(this.a, this.e, Math.sin(A)), D = M * M * M / this.a / this.a * (1 - this.es), w = Math.pow(Math.tan(A), 2), C = r * this.a / M, R = C * C;
15613
+ c = A - M * Math.tan(A) / D * C * C * (0.5 - (1 + 3 * w) * C * C / 24), d = C * (1 - R * (w / 3 + (1 + 3 * w) * w * R / 15)) / Math.cos(A);
15599
15614
  }
15600
15615
  return e.x = pt(d + this.long0), e.y = Xi(c), e;
15601
15616
  }
@@ -15633,12 +15648,12 @@ function hd() {
15633
15648
  this.mode === this.OBLIQ && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
15634
15649
  }
15635
15650
  function ld(e) {
15636
- var r, o, c, d, _, m, A, M, D, E, C = e.x, R = e.y;
15651
+ var r, o, c, d, _, m, A, M, D, w, C = e.x, R = e.y;
15637
15652
  if (C = pt(C - this.long0), this.sphere) {
15638
- if (_ = Math.sin(R), E = Math.cos(R), c = Math.cos(C), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
15639
- if (o = this.mode === this.EQUIT ? 1 + E * c : 1 + this.sinph0 * _ + this.cosph0 * E * c, o <= ft)
15653
+ if (_ = Math.sin(R), w = Math.cos(R), c = Math.cos(C), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
15654
+ if (o = this.mode === this.EQUIT ? 1 + w * c : 1 + this.sinph0 * _ + this.cosph0 * w * c, o <= ft)
15640
15655
  return null;
15641
- o = Math.sqrt(2 / o), r = o * E * Math.sin(C), o *= this.mode === this.EQUIT ? _ : this.cosph0 * _ - this.sinph0 * E * c;
15656
+ o = Math.sqrt(2 / o), r = o * w * Math.sin(C), o *= this.mode === this.EQUIT ? _ : this.cosph0 * _ - this.sinph0 * w * c;
15642
15657
  } else if (this.mode === this.N_POLE || this.mode === this.S_POLE) {
15643
15658
  if (this.mode === this.N_POLE && (c = -c), Math.abs(R + this.lat0) < ft)
15644
15659
  return null;
@@ -15678,15 +15693,15 @@ function ud(e) {
15678
15693
  e.x -= this.x0, e.y -= this.y0;
15679
15694
  var r = e.x / this.a, o = e.y / this.a, c, d, _, m, A, M, D;
15680
15695
  if (this.sphere) {
15681
- var E = 0, C, R = 0;
15696
+ var w = 0, C, R = 0;
15682
15697
  if (C = Math.sqrt(r * r + o * o), d = C * 0.5, d > 1)
15683
15698
  return null;
15684
- switch (d = 2 * Math.asin(d), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (R = Math.sin(d), E = Math.cos(d)), this.mode) {
15699
+ switch (d = 2 * Math.asin(d), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (R = Math.sin(d), w = Math.cos(d)), this.mode) {
15685
15700
  case this.EQUIT:
15686
- d = Math.abs(C) <= ft ? 0 : Math.asin(o * R / C), r *= R, o = E * C;
15701
+ d = Math.abs(C) <= ft ? 0 : Math.asin(o * R / C), r *= R, o = w * C;
15687
15702
  break;
15688
15703
  case this.OBLIQ:
15689
- d = Math.abs(C) <= ft ? this.lat0 : Math.asin(E * this.sinph0 + o * R * this.cosph0 / C), r *= R * this.cosph0, o = (E - Math.sin(d) * this.sinph0) * C;
15704
+ d = Math.abs(C) <= ft ? this.lat0 : Math.asin(w * this.sinph0 + o * R * this.cosph0 / C), r *= R * this.cosph0, o = (w - Math.sin(d) * this.sinph0) * C;
15690
15705
  break;
15691
15706
  case this.N_POLE:
15692
15707
  o = -o, d = ut - d;
@@ -15767,8 +15782,8 @@ function Ed() {
15767
15782
  this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
15768
15783
  }
15769
15784
  function kd(e) {
15770
- var r, o, c, d, _, m, A, M, D = e.x, E = e.y;
15771
- return c = pt(D - this.long0), r = Math.sin(E), o = Math.cos(E), d = Math.cos(c), m = this.sin_p14 * r + this.cos_p14 * o * d, _ = 1, m > 0 || Math.abs(m) <= ft ? (A = this.x0 + this.a * _ * o * Math.sin(c) / m, M = this.y0 + this.a * _ * (this.cos_p14 * r - this.sin_p14 * o * d) / m) : (A = this.x0 + this.infinity_dist * o * Math.sin(c), M = this.y0 + this.infinity_dist * (this.cos_p14 * r - this.sin_p14 * o * d)), e.x = A, e.y = M, e;
15785
+ var r, o, c, d, _, m, A, M, D = e.x, w = e.y;
15786
+ return c = pt(D - this.long0), r = Math.sin(w), o = Math.cos(w), d = Math.cos(c), m = this.sin_p14 * r + this.cos_p14 * o * d, _ = 1, m > 0 || Math.abs(m) <= ft ? (A = this.x0 + this.a * _ * o * Math.sin(c) / m, M = this.y0 + this.a * _ * (this.cos_p14 * r - this.sin_p14 * o * d) / m) : (A = this.x0 + this.infinity_dist * o * Math.sin(c), M = this.y0 + this.infinity_dist * (this.cos_p14 * r - this.sin_p14 * o * d)), e.x = A, e.y = M, e;
15772
15787
  }
15773
15788
  function Pd(e) {
15774
15789
  var r, o, c, d, _, m;
@@ -15856,9 +15871,9 @@ function Hd(e) {
15856
15871
  r = pt(c / this.a + this.long0), o = 0;
15857
15872
  else {
15858
15873
  m = this.lat0 + d / this.a, A = c * c / this.a / this.a + m * m, M = m;
15859
- var E;
15874
+ var w;
15860
15875
  for (_ = gh; _; --_)
15861
- if (E = Math.tan(M), D = -1 * (m * (M * E + 1) - M - 0.5 * (M * M + A) * E) / ((M - m) / E - 1), M += D, Math.abs(D) <= ft) {
15876
+ if (w = Math.tan(M), D = -1 * (m * (M * w + 1) - M - 0.5 * (M * M + A) * w) / ((M - m) / w - 1), M += D, Math.abs(D) <= ft) {
15862
15877
  o = M;
15863
15878
  break;
15864
15879
  }
@@ -15892,15 +15907,15 @@ function $d(e) {
15892
15907
  var r, o = e.x, c = e.y, d = c - this.lat0, _ = o - this.long0, m = d / Js * 1e-5, A = _, M = 1, D = 0;
15893
15908
  for (r = 1; r <= 10; r++)
15894
15909
  M = M * m, D = D + this.A[r] * M;
15895
- var E = D, C = A, R = 1, I = 0, G, j, X = 0, rt = 0;
15910
+ var w = D, C = A, R = 1, I = 0, G, j, X = 0, rt = 0;
15896
15911
  for (r = 1; r <= 6; r++)
15897
- G = R * E - I * C, j = I * E + R * C, R = G, I = j, X = X + this.B_re[r] * R - this.B_im[r] * I, rt = rt + this.B_im[r] * R + this.B_re[r] * I;
15912
+ G = R * w - I * C, j = I * w + R * C, R = G, I = j, X = X + this.B_re[r] * R - this.B_im[r] * I, rt = rt + this.B_im[r] * R + this.B_re[r] * I;
15898
15913
  return e.x = rt * this.a + this.x0, e.y = X * this.a + this.y0, e;
15899
15914
  }
15900
15915
  function Xd(e) {
15901
- var r, o = e.x, c = e.y, d = o - this.x0, _ = c - this.y0, m = _ / this.a, A = d / this.a, M = 1, D = 0, E, C, R = 0, I = 0;
15916
+ var r, o = e.x, c = e.y, d = o - this.x0, _ = c - this.y0, m = _ / this.a, A = d / this.a, M = 1, D = 0, w, C, R = 0, I = 0;
15902
15917
  for (r = 1; r <= 6; r++)
15903
- E = M * m - D * A, C = D * m + M * A, M = E, D = C, R = R + this.C_re[r] * M - this.C_im[r] * D, I = I + this.C_im[r] * M + this.C_re[r] * D;
15918
+ w = M * m - D * A, C = D * m + M * A, M = w, D = C, R = R + this.C_re[r] * M - this.C_im[r] * D, I = I + this.C_im[r] * M + this.C_re[r] * D;
15904
15919
  for (var G = 0; G < this.iterations; G++) {
15905
15920
  var j = R, X = I, rt, at, ct = m, yt = A;
15906
15921
  for (r = 2; r <= 6; r++)
@@ -16042,14 +16057,14 @@ function M0(e) {
16042
16057
  Math.abs(o) <= ft && (d = this.x0 + this.R * c, _ = this.y0);
16043
16058
  var m = $i(2 * Math.abs(o / Math.PI));
16044
16059
  (Math.abs(c) <= ft || Math.abs(Math.abs(o) - ut) <= ft) && (d = this.x0, o >= 0 ? _ = this.y0 + Math.PI * this.R * Math.tan(0.5 * m) : _ = this.y0 + Math.PI * this.R * -Math.tan(0.5 * m));
16045
- var A = 0.5 * Math.abs(Math.PI / c - c / Math.PI), M = A * A, D = Math.sin(m), E = Math.cos(m), C = E / (D + E - 1), R = C * C, I = C * (2 / D - 1), G = I * I, j = Math.PI * this.R * (A * (C - G) + Math.sqrt(M * (C - G) * (C - G) - (G + M) * (R - G))) / (G + M);
16060
+ var A = 0.5 * Math.abs(Math.PI / c - c / Math.PI), M = A * A, D = Math.sin(m), w = Math.cos(m), C = w / (D + w - 1), R = C * C, I = C * (2 / D - 1), G = I * I, j = Math.PI * this.R * (A * (C - G) + Math.sqrt(M * (C - G) * (C - G) - (G + M) * (R - G))) / (G + M);
16046
16061
  c < 0 && (j = -j), d = this.x0 + j;
16047
16062
  var X = M + C;
16048
16063
  return j = Math.PI * this.R * (I * X - A * Math.sqrt((G + M) * (M + 1) - X * X)) / (G + M), o >= 0 ? _ = this.y0 + j : _ = this.y0 - j, e.x = d, e.y = _, e;
16049
16064
  }
16050
16065
  function x0(e) {
16051
- var r, o, c, d, _, m, A, M, D, E, C, R, I;
16052
- return e.x -= this.x0, e.y -= this.y0, C = Math.PI * this.R, c = e.x / C, d = e.y / C, _ = c * c + d * d, m = -Math.abs(d) * (1 + _), A = m - 2 * d * d + c * c, M = -2 * m + 1 + 2 * d * d + _ * _, I = d * d / M + (2 * A * A * A / M / M / M - 9 * m * A / M / M) / 27, D = (m - A * A / 3 / M) / M, E = 2 * Math.sqrt(-D / 3), C = 3 * I / D / E, Math.abs(C) > 1 && (C >= 0 ? C = 1 : C = -1), R = Math.acos(C) / 3, e.y >= 0 ? o = (-E * Math.cos(R + Math.PI / 3) - A / 3 / M) * Math.PI : o = -(-E * Math.cos(R + Math.PI / 3) - A / 3 / M) * Math.PI, Math.abs(c) < ft ? r = this.long0 : r = pt(this.long0 + Math.PI * (_ - 1 + Math.sqrt(1 + 2 * (c * c - d * d) + _ * _)) / 2 / c), e.x = r, e.y = o, e;
16066
+ var r, o, c, d, _, m, A, M, D, w, C, R, I;
16067
+ return e.x -= this.x0, e.y -= this.y0, C = Math.PI * this.R, c = e.x / C, d = e.y / C, _ = c * c + d * d, m = -Math.abs(d) * (1 + _), A = m - 2 * d * d + c * c, M = -2 * m + 1 + 2 * d * d + _ * _, I = d * d / M + (2 * A * A * A / M / M / M - 9 * m * A / M / M) / 27, D = (m - A * A / 3 / M) / M, w = 2 * Math.sqrt(-D / 3), C = 3 * I / D / w, Math.abs(C) > 1 && (C >= 0 ? C = 1 : C = -1), R = Math.acos(C) / 3, e.y >= 0 ? o = (-w * Math.cos(R + Math.PI / 3) - A / 3 / M) * Math.PI : o = -(-w * Math.cos(R + Math.PI / 3) - A / 3 / M) * Math.PI, Math.abs(c) < ft ? r = this.long0 : r = pt(this.long0 + Math.PI * (_ - 1 + Math.sqrt(1 + 2 * (c * c - d * d) + _ * _)) / 2 / c), e.x = r, e.y = o, e;
16053
16068
  }
16054
16069
  var L0 = ["Van_der_Grinten_I", "VanDerGrinten", "vandg"];
16055
16070
  const b0 = {
@@ -16062,13 +16077,13 @@ function C0() {
16062
16077
  this.sin_p12 = Math.sin(this.lat0), this.cos_p12 = Math.cos(this.lat0);
16063
16078
  }
16064
16079
  function w0(e) {
16065
- var r = e.x, o = e.y, c = Math.sin(e.y), d = Math.cos(e.y), _ = pt(r - this.long0), m, A, M, D, E, C, R, I, G, j, X, rt, at, ct, yt, _t, xt, Zt, kt, Xt, Qt, Dt, Vt;
16066
- return this.sphere ? Math.abs(this.sin_p12 - 1) <= ft ? (e.x = this.x0 + this.a * (ut - o) * Math.sin(_), e.y = this.y0 - this.a * (ut - o) * Math.cos(_), e) : Math.abs(this.sin_p12 + 1) <= ft ? (e.x = this.x0 + this.a * (ut + o) * Math.sin(_), e.y = this.y0 + this.a * (ut + o) * Math.cos(_), e) : (Zt = this.sin_p12 * c + this.cos_p12 * d * Math.cos(_), _t = Math.acos(Zt), xt = _t ? _t / Math.sin(_t) : 1, e.x = this.x0 + this.a * xt * d * Math.sin(_), e.y = this.y0 + this.a * xt * (this.cos_p12 * c - this.sin_p12 * d * Math.cos(_)), e) : (m = lr(this.es), A = ur(this.es), M = cr(this.es), D = dr(this.es), Math.abs(this.sin_p12 - 1) <= ft ? (E = this.a * Oe(m, A, M, D, ut), C = this.a * Oe(m, A, M, D, o), e.x = this.x0 + (E - C) * Math.sin(_), e.y = this.y0 - (E - C) * Math.cos(_), e) : Math.abs(this.sin_p12 + 1) <= ft ? (E = this.a * Oe(m, A, M, D, ut), C = this.a * Oe(m, A, M, D, o), e.x = this.x0 + (E + C) * Math.sin(_), e.y = this.y0 + (E + C) * Math.cos(_), e) : (R = c / d, I = ns(this.a, this.e, this.sin_p12), G = ns(this.a, this.e, c), j = Math.atan((1 - this.es) * R + this.es * I * this.sin_p12 / (G * d)), X = Math.atan2(Math.sin(_), this.cos_p12 * Math.tan(j) - this.sin_p12 * Math.cos(_)), X === 0 ? kt = Math.asin(this.cos_p12 * Math.sin(j) - this.sin_p12 * Math.cos(j)) : Math.abs(Math.abs(X) - Math.PI) <= ft ? kt = -Math.asin(this.cos_p12 * Math.sin(j) - this.sin_p12 * Math.cos(j)) : kt = Math.asin(Math.sin(_) * Math.cos(j) / Math.sin(X)), rt = this.e * this.sin_p12 / Math.sqrt(1 - this.es), at = this.e * this.cos_p12 * Math.cos(X) / Math.sqrt(1 - this.es), ct = rt * at, yt = at * at, Xt = kt * kt, Qt = Xt * kt, Dt = Qt * kt, Vt = Dt * kt, _t = I * kt * (1 - Xt * yt * (1 - yt) / 6 + Qt / 8 * ct * (1 - 2 * yt) + Dt / 120 * (yt * (4 - 7 * yt) - 3 * rt * rt * (1 - 7 * yt)) - Vt / 48 * ct), e.x = this.x0 + _t * Math.sin(X), e.y = this.y0 + _t * Math.cos(X), e));
16080
+ var r = e.x, o = e.y, c = Math.sin(e.y), d = Math.cos(e.y), _ = pt(r - this.long0), m, A, M, D, w, C, R, I, G, j, X, rt, at, ct, yt, _t, xt, Zt, kt, Xt, Qt, Dt, Vt;
16081
+ return this.sphere ? Math.abs(this.sin_p12 - 1) <= ft ? (e.x = this.x0 + this.a * (ut - o) * Math.sin(_), e.y = this.y0 - this.a * (ut - o) * Math.cos(_), e) : Math.abs(this.sin_p12 + 1) <= ft ? (e.x = this.x0 + this.a * (ut + o) * Math.sin(_), e.y = this.y0 + this.a * (ut + o) * Math.cos(_), e) : (Zt = this.sin_p12 * c + this.cos_p12 * d * Math.cos(_), _t = Math.acos(Zt), xt = _t ? _t / Math.sin(_t) : 1, e.x = this.x0 + this.a * xt * d * Math.sin(_), e.y = this.y0 + this.a * xt * (this.cos_p12 * c - this.sin_p12 * d * Math.cos(_)), e) : (m = lr(this.es), A = ur(this.es), M = cr(this.es), D = dr(this.es), Math.abs(this.sin_p12 - 1) <= ft ? (w = this.a * Oe(m, A, M, D, ut), C = this.a * Oe(m, A, M, D, o), e.x = this.x0 + (w - C) * Math.sin(_), e.y = this.y0 - (w - C) * Math.cos(_), e) : Math.abs(this.sin_p12 + 1) <= ft ? (w = this.a * Oe(m, A, M, D, ut), C = this.a * Oe(m, A, M, D, o), e.x = this.x0 + (w + C) * Math.sin(_), e.y = this.y0 + (w + C) * Math.cos(_), e) : (R = c / d, I = ns(this.a, this.e, this.sin_p12), G = ns(this.a, this.e, c), j = Math.atan((1 - this.es) * R + this.es * I * this.sin_p12 / (G * d)), X = Math.atan2(Math.sin(_), this.cos_p12 * Math.tan(j) - this.sin_p12 * Math.cos(_)), X === 0 ? kt = Math.asin(this.cos_p12 * Math.sin(j) - this.sin_p12 * Math.cos(j)) : Math.abs(Math.abs(X) - Math.PI) <= ft ? kt = -Math.asin(this.cos_p12 * Math.sin(j) - this.sin_p12 * Math.cos(j)) : kt = Math.asin(Math.sin(_) * Math.cos(j) / Math.sin(X)), rt = this.e * this.sin_p12 / Math.sqrt(1 - this.es), at = this.e * this.cos_p12 * Math.cos(X) / Math.sqrt(1 - this.es), ct = rt * at, yt = at * at, Xt = kt * kt, Qt = Xt * kt, Dt = Qt * kt, Vt = Dt * kt, _t = I * kt * (1 - Xt * yt * (1 - yt) / 6 + Qt / 8 * ct * (1 - 2 * yt) + Dt / 120 * (yt * (4 - 7 * yt) - 3 * rt * rt * (1 - 7 * yt)) - Vt / 48 * ct), e.x = this.x0 + _t * Math.sin(X), e.y = this.y0 + _t * Math.cos(X), e));
16067
16082
  }
16068
16083
  function E0(e) {
16069
16084
  e.x -= this.x0, e.y -= this.y0;
16070
- var r, o, c, d, _, m, A, M, D, E, C, R, I, G, j, X, rt, at, ct, yt, _t, xt, Zt, kt;
16071
- return this.sphere ? (r = Math.sqrt(e.x * e.x + e.y * e.y), r > 2 * ut * this.a ? void 0 : (o = r / this.a, c = Math.sin(o), d = Math.cos(o), _ = this.long0, Math.abs(r) <= ft ? m = this.lat0 : (m = $i(d * this.sin_p12 + e.y * c * this.cos_p12 / r), A = Math.abs(this.lat0) - ut, Math.abs(A) <= ft ? this.lat0 >= 0 ? _ = pt(this.long0 + Math.atan2(e.x, -e.y)) : _ = pt(this.long0 - Math.atan2(-e.x, e.y)) : _ = pt(this.long0 + Math.atan2(e.x * c, r * this.cos_p12 * d - e.y * this.sin_p12 * c))), e.x = _, e.y = m, e)) : (M = lr(this.es), D = ur(this.es), E = cr(this.es), C = dr(this.es), Math.abs(this.sin_p12 - 1) <= ft ? (R = this.a * Oe(M, D, E, C, ut), r = Math.sqrt(e.x * e.x + e.y * e.y), I = R - r, m = ba(I / this.a, M, D, E, C), _ = pt(this.long0 + Math.atan2(e.x, -1 * e.y)), e.x = _, e.y = m, e) : Math.abs(this.sin_p12 + 1) <= ft ? (R = this.a * Oe(M, D, E, C, ut), r = Math.sqrt(e.x * e.x + e.y * e.y), I = r - R, m = ba(I / this.a, M, D, E, C), _ = pt(this.long0 + Math.atan2(e.x, e.y)), e.x = _, e.y = m, e) : (r = Math.sqrt(e.x * e.x + e.y * e.y), X = Math.atan2(e.x, e.y), G = ns(this.a, this.e, this.sin_p12), rt = Math.cos(X), at = this.e * this.cos_p12 * rt, ct = -at * at / (1 - this.es), yt = 3 * this.es * (1 - ct) * this.sin_p12 * this.cos_p12 * rt / (1 - this.es), _t = r / G, xt = _t - ct * (1 + ct) * Math.pow(_t, 3) / 6 - yt * (1 + 3 * ct) * Math.pow(_t, 4) / 24, Zt = 1 - ct * xt * xt / 2 - _t * xt * xt * xt / 6, j = Math.asin(this.sin_p12 * Math.cos(xt) + this.cos_p12 * Math.sin(xt) * rt), _ = pt(this.long0 + Math.asin(Math.sin(X) * Math.sin(xt) / Math.cos(j))), kt = Math.sin(j), m = Math.atan2((kt - this.es * Zt * this.sin_p12) * Math.tan(j), kt * (1 - this.es)), e.x = _, e.y = m, e));
16085
+ var r, o, c, d, _, m, A, M, D, w, C, R, I, G, j, X, rt, at, ct, yt, _t, xt, Zt, kt;
16086
+ return this.sphere ? (r = Math.sqrt(e.x * e.x + e.y * e.y), r > 2 * ut * this.a ? void 0 : (o = r / this.a, c = Math.sin(o), d = Math.cos(o), _ = this.long0, Math.abs(r) <= ft ? m = this.lat0 : (m = $i(d * this.sin_p12 + e.y * c * this.cos_p12 / r), A = Math.abs(this.lat0) - ut, Math.abs(A) <= ft ? this.lat0 >= 0 ? _ = pt(this.long0 + Math.atan2(e.x, -e.y)) : _ = pt(this.long0 - Math.atan2(-e.x, e.y)) : _ = pt(this.long0 + Math.atan2(e.x * c, r * this.cos_p12 * d - e.y * this.sin_p12 * c))), e.x = _, e.y = m, e)) : (M = lr(this.es), D = ur(this.es), w = cr(this.es), C = dr(this.es), Math.abs(this.sin_p12 - 1) <= ft ? (R = this.a * Oe(M, D, w, C, ut), r = Math.sqrt(e.x * e.x + e.y * e.y), I = R - r, m = ba(I / this.a, M, D, w, C), _ = pt(this.long0 + Math.atan2(e.x, -1 * e.y)), e.x = _, e.y = m, e) : Math.abs(this.sin_p12 + 1) <= ft ? (R = this.a * Oe(M, D, w, C, ut), r = Math.sqrt(e.x * e.x + e.y * e.y), I = r - R, m = ba(I / this.a, M, D, w, C), _ = pt(this.long0 + Math.atan2(e.x, e.y)), e.x = _, e.y = m, e) : (r = Math.sqrt(e.x * e.x + e.y * e.y), X = Math.atan2(e.x, e.y), G = ns(this.a, this.e, this.sin_p12), rt = Math.cos(X), at = this.e * this.cos_p12 * rt, ct = -at * at / (1 - this.es), yt = 3 * this.es * (1 - ct) * this.sin_p12 * this.cos_p12 * rt / (1 - this.es), _t = r / G, xt = _t - ct * (1 + ct) * Math.pow(_t, 3) / 6 - yt * (1 + 3 * ct) * Math.pow(_t, 4) / 24, Zt = 1 - ct * xt * xt / 2 - _t * xt * xt * xt / 6, j = Math.asin(this.sin_p12 * Math.cos(xt) + this.cos_p12 * Math.sin(xt) * rt), _ = pt(this.long0 + Math.asin(Math.sin(X) * Math.sin(xt) / Math.cos(j))), kt = Math.sin(j), m = Math.atan2((kt - this.es * Zt * this.sin_p12) * Math.tan(j), kt * (1 - this.es)), e.x = _, e.y = m, e));
16072
16087
  }
16073
16088
  var k0 = ["Azimuthal_Equidistant", "aeqd"];
16074
16089
  const P0 = {
@@ -16081,8 +16096,8 @@ function B0() {
16081
16096
  this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0);
16082
16097
  }
16083
16098
  function T0(e) {
16084
- var r, o, c, d, _, m, A, M, D = e.x, E = e.y;
16085
- return c = pt(D - this.long0), r = Math.sin(E), o = Math.cos(E), d = Math.cos(c), m = this.sin_p14 * r + this.cos_p14 * o * d, _ = 1, (m > 0 || Math.abs(m) <= ft) && (A = this.a * _ * o * Math.sin(c), M = this.y0 + this.a * _ * (this.cos_p14 * r - this.sin_p14 * o * d)), e.x = A, e.y = M, e;
16099
+ var r, o, c, d, _, m, A, M, D = e.x, w = e.y;
16100
+ return c = pt(D - this.long0), r = Math.sin(w), o = Math.cos(w), d = Math.cos(c), m = this.sin_p14 * r + this.cos_p14 * o * d, _ = 1, (m > 0 || Math.abs(m) <= ft) && (A = this.a * _ * o * Math.sin(c), M = this.y0 + this.a * _ * (this.cos_p14 * r - this.sin_p14 * o * d)), e.x = A, e.y = M, e;
16086
16101
  }
16087
16102
  function S0(e) {
16088
16103
  var r, o, c, d, _, m, A;
@@ -16118,20 +16133,20 @@ function R0(e) {
16118
16133
  else if (this.face === se.BOTTOM)
16119
16134
  _ = ut + o, c >= qt && c <= ut + qt ? (M.value = Ht.AREA_0, d = -c + ut) : c < qt && c >= -qt ? (M.value = Ht.AREA_1, d = -c) : c < -qt && c >= -(ut + qt) ? (M.value = Ht.AREA_2, d = -c - ut) : (M.value = Ht.AREA_3, d = c > 0 ? -c + ce : -c - ce);
16120
16135
  else {
16121
- var D, E, C, R, I, G, j;
16122
- this.face === se.RIGHT ? c = es(c, +ut) : this.face === se.BACK ? c = es(c, +ce) : this.face === se.LEFT && (c = es(c, -ut)), R = Math.sin(o), I = Math.cos(o), G = Math.sin(c), j = Math.cos(c), D = I * j, E = I * G, C = R, this.face === se.FRONT ? (_ = Math.acos(D), d = pa(_, C, E, M)) : this.face === se.RIGHT ? (_ = Math.acos(E), d = pa(_, C, -D, M)) : this.face === se.BACK ? (_ = Math.acos(-D), d = pa(_, C, -E, M)) : this.face === se.LEFT ? (_ = Math.acos(-E), d = pa(_, C, D, M)) : (_ = d = 0, M.value = Ht.AREA_0);
16136
+ var D, w, C, R, I, G, j;
16137
+ this.face === se.RIGHT ? c = es(c, +ut) : this.face === se.BACK ? c = es(c, +ce) : this.face === se.LEFT && (c = es(c, -ut)), R = Math.sin(o), I = Math.cos(o), G = Math.sin(c), j = Math.cos(c), D = I * j, w = I * G, C = R, this.face === se.FRONT ? (_ = Math.acos(D), d = pa(_, C, w, M)) : this.face === se.RIGHT ? (_ = Math.acos(w), d = pa(_, C, -D, M)) : this.face === se.BACK ? (_ = Math.acos(-D), d = pa(_, C, -w, M)) : this.face === se.LEFT ? (_ = Math.acos(-w), d = pa(_, C, D, M)) : (_ = d = 0, M.value = Ht.AREA_0);
16123
16138
  }
16124
16139
  return A = Math.atan(12 / ce * (d + Math.acos(Math.sin(d) * Math.cos(qt)) - ut)), m = Math.sqrt((1 - Math.cos(_)) / (Math.cos(A) * Math.cos(A)) / (1 - Math.cos(Math.atan(1 / Math.cos(d))))), M.value === Ht.AREA_1 ? A += ut : M.value === Ht.AREA_2 ? A += ce : M.value === Ht.AREA_3 && (A += 1.5 * ce), r.x = m * Math.cos(A), r.y = m * Math.sin(A), r.x = r.x * this.a + this.x0, r.y = r.y * this.a + this.y0, e.x = r.x, e.y = r.y, e;
16125
16140
  }
16126
16141
  function F0(e) {
16127
- var r = { lam: 0, phi: 0 }, o, c, d, _, m, A, M, D, E, C = { value: 0 };
16128
- if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, c = Math.atan(Math.sqrt(e.x * e.x + e.y * e.y)), o = Math.atan2(e.y, e.x), e.x >= 0 && e.x >= Math.abs(e.y) ? C.value = Ht.AREA_0 : e.y >= 0 && e.y >= Math.abs(e.x) ? (C.value = Ht.AREA_1, o -= ut) : e.x < 0 && -e.x >= Math.abs(e.y) ? (C.value = Ht.AREA_2, o = o < 0 ? o + ce : o - ce) : (C.value = Ht.AREA_3, o += ut), E = ce / 12 * Math.tan(o), m = Math.sin(E) / (Math.cos(E) - 1 / Math.sqrt(2)), A = Math.atan(m), d = Math.cos(o), _ = Math.tan(c), M = 1 - d * d * _ * _ * (1 - Math.cos(Math.atan(1 / Math.cos(A)))), M < -1 ? M = -1 : M > 1 && (M = 1), this.face === se.TOP)
16142
+ var r = { lam: 0, phi: 0 }, o, c, d, _, m, A, M, D, w, C = { value: 0 };
16143
+ if (e.x = (e.x - this.x0) / this.a, e.y = (e.y - this.y0) / this.a, c = Math.atan(Math.sqrt(e.x * e.x + e.y * e.y)), o = Math.atan2(e.y, e.x), e.x >= 0 && e.x >= Math.abs(e.y) ? C.value = Ht.AREA_0 : e.y >= 0 && e.y >= Math.abs(e.x) ? (C.value = Ht.AREA_1, o -= ut) : e.x < 0 && -e.x >= Math.abs(e.y) ? (C.value = Ht.AREA_2, o = o < 0 ? o + ce : o - ce) : (C.value = Ht.AREA_3, o += ut), w = ce / 12 * Math.tan(o), m = Math.sin(w) / (Math.cos(w) - 1 / Math.sqrt(2)), A = Math.atan(m), d = Math.cos(o), _ = Math.tan(c), M = 1 - d * d * _ * _ * (1 - Math.cos(Math.atan(1 / Math.cos(A)))), M < -1 ? M = -1 : M > 1 && (M = 1), this.face === se.TOP)
16129
16144
  D = Math.acos(M), r.phi = ut - D, C.value === Ht.AREA_0 ? r.lam = A + ut : C.value === Ht.AREA_1 ? r.lam = A < 0 ? A + ce : A - ce : C.value === Ht.AREA_2 ? r.lam = A - ut : r.lam = A;
16130
16145
  else if (this.face === se.BOTTOM)
16131
16146
  D = Math.acos(M), r.phi = D - ut, C.value === Ht.AREA_0 ? r.lam = -A + ut : C.value === Ht.AREA_1 ? r.lam = -A : C.value === Ht.AREA_2 ? r.lam = -A - ut : r.lam = A < 0 ? -A - ce : -A + ce;
16132
16147
  else {
16133
16148
  var R, I, G;
16134
- R = M, E = R * R, E >= 1 ? G = 0 : G = Math.sqrt(1 - E) * Math.sin(A), E += G * G, E >= 1 ? I = 0 : I = Math.sqrt(1 - E), C.value === Ht.AREA_1 ? (E = I, I = -G, G = E) : C.value === Ht.AREA_2 ? (I = -I, G = -G) : C.value === Ht.AREA_3 && (E = I, I = G, G = -E), this.face === se.RIGHT ? (E = R, R = -I, I = E) : this.face === se.BACK ? (R = -R, I = -I) : this.face === se.LEFT && (E = R, R = I, I = -E), r.phi = Math.acos(-G) - ut, r.lam = Math.atan2(I, R), this.face === se.RIGHT ? r.lam = es(r.lam, -ut) : this.face === se.BACK ? r.lam = es(r.lam, -ce) : this.face === se.LEFT && (r.lam = es(r.lam, +ut));
16149
+ R = M, w = R * R, w >= 1 ? G = 0 : G = Math.sqrt(1 - w) * Math.sin(A), w += G * G, w >= 1 ? I = 0 : I = Math.sqrt(1 - w), C.value === Ht.AREA_1 ? (w = I, I = -G, G = w) : C.value === Ht.AREA_2 ? (I = -I, G = -G) : C.value === Ht.AREA_3 && (w = I, I = G, G = -w), this.face === se.RIGHT ? (w = R, R = -I, I = w) : this.face === se.BACK ? (R = -R, I = -I) : this.face === se.LEFT && (w = R, R = I, I = -w), r.phi = Math.acos(-G) - ut, r.lam = Math.atan2(I, R), this.face === se.RIGHT ? r.lam = es(r.lam, -ut) : this.face === se.BACK ? r.lam = es(r.lam, -ce) : this.face === se.LEFT && (r.lam = es(r.lam, +ut));
16135
16150
  }
16136
16151
  if (this.es !== 0) {
16137
16152
  var j, X, rt;
@@ -16540,8 +16555,8 @@ const Lf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16540
16555
  this._scales = this.options.scales;
16541
16556
  else if (this.options.resolutions) {
16542
16557
  this._scales = [];
16543
- for (var E = this.options.resolutions.length - 1; E >= 0; E--)
16544
- this.options.resolutions[E] && (this._scales[E] = 1 / this.options.resolutions[E]);
16558
+ for (var w = this.options.resolutions.length - 1; w >= 0; w--)
16559
+ this.options.resolutions[w] && (this._scales[w] = 1 / this.options.resolutions[w]);
16545
16560
  }
16546
16561
  this.infinite = !this.options.bounds;
16547
16562
  },
@@ -16611,7 +16626,7 @@ const Lf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16611
16626
  }, r.Proj;
16612
16627
  });
16613
16628
  })(Pl);
16614
- const Kh = new H.Proj.CRS(
16629
+ const Kh = new q.Proj.CRS(
16615
16630
  "EPSG:900913",
16616
16631
  "+proj=merc +a=6378206 +b=6356584.314245179 +lat_ts=0.0 +lon_0=0.0 +x_0=0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs",
16617
16632
  {
@@ -16623,9 +16638,9 @@ const Kh = new H.Proj.CRS(
16623
16638
  return e;
16624
16639
  }(),
16625
16640
  origin: [0, 0],
16626
- bounds: H.bounds([20037508342789244e-9, 0], [0, 20037508342789244e-9])
16641
+ bounds: q.bounds([20037508342789244e-9, 0], [0, 20037508342789244e-9])
16627
16642
  }
16628
- ), Cf = H.Marker.extend({
16643
+ ), Cf = q.Marker.extend({
16629
16644
  options: {
16630
16645
  fontSize: "12px",
16631
16646
  color: "#f00",
@@ -16636,12 +16651,12 @@ const Kh = new H.Proj.CRS(
16636
16651
  maxZoom: void 0
16637
16652
  },
16638
16653
  initialize(e, r, o = {}) {
16639
- this._latlng = e, this._enabled = !1, this.options.id = o.id || "text_" + vh.guid(), this.options.text = r || "", o = Object.assign(this.options, o), H.setOptions(this, o);
16654
+ this._latlng = e, this._enabled = !1, this.options.id = o.id || "text_" + vh.guid(), this.options.text = r || "", o = Object.assign(this.options, o), q.setOptions(this, o);
16640
16655
  const { id: c, fontSize: d, color: _, fontWeight: m, background: A, fontShadowColor: M } = this.options;
16641
- this.options.icon = new H.DivIcon({
16656
+ this.options.icon = new q.DivIcon({
16642
16657
  html: `<span id=${c} style="padding:2px 4px;white-space:nowrap;font-weight:${m};font-size:${d};color:${_};background:${A};text-shadow:${M} 1px 0px 2px">${r || ""}</span>`,
16643
16658
  className: "leaflet-text"
16644
- }), H.Marker.prototype.initialize.call(this, e, this.options);
16659
+ }), q.Marker.prototype.initialize.call(this, e, this.options);
16645
16660
  },
16646
16661
  setStyle(e) {
16647
16662
  const r = document.getElementById(this.options.id), { text: o, color: c, fontSize: d, fontShadowColor: _, fontWeight: m } = e, A = e.background || "none";
@@ -16651,7 +16666,7 @@ const Kh = new H.Proj.CRS(
16651
16666
  const { fontSize: r, color: o, text: c } = this.options;
16652
16667
  if (!this._enabled) {
16653
16668
  this._enabled = !0;
16654
- const d = new H.DivIcon({
16669
+ const d = new q.DivIcon({
16655
16670
  html: `<input type="text" id="text-input-icon" style="font-size:${r};color:${o};" value=${c}></input>`,
16656
16671
  className: "leaflet-text"
16657
16672
  });
@@ -16667,14 +16682,14 @@ const Kh = new H.Proj.CRS(
16667
16682
  disableEdit(e) {
16668
16683
  if (this._enabled) {
16669
16684
  this._enabled = !1;
16670
- const { id: r, color: o, fontSize: c, fontWeight: d, fontShadowColor: _ } = this.options, m = new H.DivIcon({
16685
+ const { id: r, color: o, fontSize: c, fontWeight: d, fontShadowColor: _ } = this.options, m = new q.DivIcon({
16671
16686
  html: `<span id=${r} style="padding:2px 4px;white-space:nowrap;font-weight:${d};font-size:${c};color:${o};text-shadow:${_} 1px 2px 3px">${this.options.text}</span>`,
16672
16687
  className: "leaflet-text"
16673
16688
  });
16674
16689
  return this.setIcon(m), e && e(this), this;
16675
16690
  }
16676
16691
  }
16677
- }), wf = H.Marker.extend({
16692
+ }), wf = q.Marker.extend({
16678
16693
  options: {
16679
16694
  color: "#f00",
16680
16695
  diveColor: "#f00",
@@ -16684,9 +16699,9 @@ const Kh = new H.Proj.CRS(
16684
16699
  animation: !0
16685
16700
  },
16686
16701
  initialize(e, r) {
16687
- H.setOptions(this, r);
16702
+ q.setOptions(this, r);
16688
16703
  const { clsPrefix: o } = this.options;
16689
- this.tempDivEle = document.createElement("div"), this.spanEl = Yo.create("span", `${o}-pulse-icon`), this.aEl = Yo.create("a", `${o}-dive-icon`), this.tempDivEle.append(this.spanEl), this.spanEl.append(this.aEl), this._init(), H.Marker.prototype.initialize.call(this, e, this.options);
16704
+ this.tempDivEle = document.createElement("div"), this.spanEl = Yo.create("span", `${o}-pulse-icon`), this.aEl = Yo.create("a", `${o}-dive-icon`), this.tempDivEle.append(this.spanEl), this.spanEl.append(this.aEl), this._init(), q.Marker.prototype.initialize.call(this, e, this.options);
16690
16705
  },
16691
16706
  _init() {
16692
16707
  const { color: e, iconSize: r, diveColor: o, level: c, speedTime: d, animation: _, clsPrefix: m } = this.options;
@@ -16695,15 +16710,15 @@ const Kh = new H.Proj.CRS(
16695
16710
  this.options.icon ? this.setIcon(A) : this.options.icon = A;
16696
16711
  },
16697
16712
  setOptions(e) {
16698
- H.setOptions(this, e), this._init();
16713
+ q.setOptions(this, e), this._init();
16699
16714
  },
16700
16715
  start(e) {
16701
- H.setOptions(this, e), this.options.animation = !0, this._init();
16716
+ q.setOptions(this, e), this.options.animation = !0, this._init();
16702
16717
  },
16703
16718
  stop(e) {
16704
- H.setOptions(this, e), this.options.animation = !1, this._init();
16719
+ q.setOptions(this, e), this.options.animation = !1, this._init();
16705
16720
  }
16706
- }), Ef = H.Layer.extend({
16721
+ }), Ef = q.Layer.extend({
16707
16722
  provide: {
16708
16723
  TDT: "tdt",
16709
16724
  BAIDU: "bd",
@@ -16731,7 +16746,7 @@ const Kh = new H.Proj.CRS(
16731
16746
  accessToken: "016b31f15f25e1365e85aec7e7b0464e"
16732
16747
  },
16733
16748
  initialize(e) {
16734
- e = vh.deleteEmptyProperty(e), H.Util.setOptions(this, e);
16749
+ e = vh.deleteEmptyProperty(e), q.Util.setOptions(this, e);
16735
16750
  },
16736
16751
  onAdd(e) {
16737
16752
  this.map = e, this.replaceProjection(), this.tileLayers = this.getLayerGroup(), e.addLayer(this.tileLayers);
@@ -16742,7 +16757,7 @@ const Kh = new H.Proj.CRS(
16742
16757
  },
16743
16758
  replaceProjection() {
16744
16759
  const e = this.map.getCenter(), r = this.map.getZoom();
16745
- this.options.provide === this.provide.BAIDU ? this.map.options.crs = Kh : this.options.provide === this.provide.YANDEX ? this.map.options.crs = H.CRS.EPSG3395 : this.map.options.crs = H.CRS.EPSG3857, this._resetMapStatus(e, r);
16760
+ this.options.provide === this.provide.BAIDU ? this.map.options.crs = Kh : this.options.provide === this.provide.YANDEX ? this.map.options.crs = q.CRS.EPSG3395 : this.map.options.crs = q.CRS.EPSG3857, this._resetMapStatus(e, r);
16746
16761
  },
16747
16762
  _resetMapStatus(e, r) {
16748
16763
  this.map.setView(e), this.map._resetView(e, r, !0);
@@ -16779,7 +16794,7 @@ const Kh = new H.Proj.CRS(
16779
16794
  break;
16780
16795
  }
16781
16796
  if (this.options.opacity >= 0 && (e.opacity = this.options.opacity), this.options.url)
16782
- return new H.TileLayer(this.options.url, { ...r, style: e });
16797
+ return new q.TileLayer(this.options.url, { ...r, style: e });
16783
16798
  switch (this.options.provide) {
16784
16799
  case this.provide.TDT:
16785
16800
  let o;
@@ -16800,9 +16815,9 @@ const Kh = new H.Proj.CRS(
16800
16815
  o = ["img_w"];
16801
16816
  break;
16802
16817
  }
16803
- return new H.LayerGroup(
16818
+ return new q.LayerGroup(
16804
16819
  o.map(
16805
- (c) => new H.TileLayer(`http://t{s}.tianditu.gov.cn/DataServer?T=${c}&x={x}&y={y}&l={z}&tk=${this.options.accessToken}`, {
16820
+ (c) => new q.TileLayer(`http://t{s}.tianditu.gov.cn/DataServer?T=${c}&x={x}&y={y}&l={z}&tk=${this.options.accessToken}`, {
16806
16821
  ...r,
16807
16822
  style: e
16808
16823
  })
@@ -16811,28 +16826,28 @@ const Kh = new H.Proj.CRS(
16811
16826
  case this.provide.BAIDU:
16812
16827
  switch (this.options.source) {
16813
16828
  case this.source.VECTOR:
16814
- return r.maxNativeZoom = 19, new H.TileLayer("http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1", {
16829
+ return r.maxNativeZoom = 19, new q.TileLayer("http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1", {
16815
16830
  ...r,
16816
16831
  style: e
16817
16832
  });
16818
16833
  case this.source.ANNO:
16819
- return r.maxNativeZoom = 19, new H.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl", {
16834
+ return r.maxNativeZoom = 19, new q.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl", {
16820
16835
  ...r,
16821
16836
  style: e
16822
16837
  });
16823
16838
  case this.source.SATELITE:
16824
- return r.maxNativeZoom = 17, new H.LayerGroup([
16825
- new H.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46", {
16839
+ return r.maxNativeZoom = 17, new q.LayerGroup([
16840
+ new q.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46", {
16826
16841
  ...r,
16827
16842
  style: e
16828
16843
  }),
16829
- new H.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl", {
16844
+ new q.TileLayer("http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl", {
16830
16845
  ...r,
16831
16846
  style: e
16832
16847
  })
16833
16848
  ]);
16834
16849
  case this.source.SATELITE_NO_ANNO:
16835
- return r.maxNativeZoom = 19, new H.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46", {
16850
+ return r.maxNativeZoom = 19, new q.TileLayer("http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46", {
16836
16851
  ...r,
16837
16852
  style: e
16838
16853
  });
@@ -16841,28 +16856,28 @@ const Kh = new H.Proj.CRS(
16841
16856
  case this.provide.GAODE:
16842
16857
  switch (this.options.source) {
16843
16858
  case this.source.VECTOR:
16844
- return r.maxNativeZoom = 18, new H.TileLayer("http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
16859
+ return r.maxNativeZoom = 18, new q.TileLayer("http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
16845
16860
  ...r,
16846
16861
  style: e
16847
16862
  });
16848
16863
  case this.source.ANNO:
16849
- return r.maxNativeZoom = 18, new H.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
16864
+ return r.maxNativeZoom = 18, new q.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
16850
16865
  ...r,
16851
16866
  style: e
16852
16867
  });
16853
16868
  case this.source.SATELITE:
16854
- return r.maxNativeZoom = 16, new H.LayerGroup([
16855
- new H.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6", {
16869
+ return r.maxNativeZoom = 16, new q.LayerGroup([
16870
+ new q.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6", {
16856
16871
  ...r,
16857
16872
  style: e
16858
16873
  }),
16859
- new H.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
16874
+ new q.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
16860
16875
  ...r,
16861
16876
  style: e
16862
16877
  })
16863
16878
  ]);
16864
16879
  case this.source.SATELITE_NO_ANNO:
16865
- return r.maxNativeZoom = 18, new H.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6", {
16880
+ return r.maxNativeZoom = 18, new q.TileLayer("http://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=6", {
16866
16881
  ...r,
16867
16882
  style: e
16868
16883
  });
@@ -16871,7 +16886,7 @@ const Kh = new H.Proj.CRS(
16871
16886
  case this.provide.YANDEX:
16872
16887
  switch (this.options.source) {
16873
16888
  case this.source.ANNO:
16874
- return new H.TileLayer(
16889
+ return new q.TileLayer(
16875
16890
  "https://core-renderer-tiles.maps.yandex.net/tiles?l=skl&v=24.05.19-0-b240515214430&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps&experimental_ranking_mode_name=default-web-ranking&experimental_data_hd=vegetation_model_exp",
16876
16891
  {
16877
16892
  ...r,
@@ -16879,13 +16894,13 @@ const Kh = new H.Proj.CRS(
16879
16894
  }
16880
16895
  );
16881
16896
  case this.source.SATELITE:
16882
- return new H.LayerGroup([
16883
- new H.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps", {
16897
+ return new q.LayerGroup([
16898
+ new q.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps", {
16884
16899
  ...r,
16885
16900
  subdomains: ["01", "02", "03", "04"],
16886
16901
  style: e
16887
16902
  }),
16888
- new H.TileLayer(
16903
+ new q.TileLayer(
16889
16904
  "https://core-renderer-tiles.maps.yandex.net/tiles?l=skl&v=24.05.19-0-b240515214430&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps&experimental_ranking_mode_name=default-web-ranking&experimental_data_hd=vegetation_model_exp",
16890
16905
  {
16891
16906
  ...r,
@@ -16894,7 +16909,7 @@ const Kh = new H.Proj.CRS(
16894
16909
  )
16895
16910
  ]);
16896
16911
  case this.source.SATELITE_NO_ANNO:
16897
- return new H.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps", {
16912
+ return new q.TileLayer("https://sat{s}.maps.yandex.net/tiles?l=sat&v=3.1238.0&x={x}&y={y}&z={z}&scale=1&lang=en_US&client_id=yandex-web-maps", {
16898
16913
  ...r,
16899
16914
  subdomains: ["01", "02", "03", "04"],
16900
16915
  style: e
@@ -16904,50 +16919,50 @@ const Kh = new H.Proj.CRS(
16904
16919
  }
16905
16920
  },
16906
16921
  setOptions(e) {
16907
- H.Util.setOptions(this, e);
16922
+ q.Util.setOptions(this, e);
16908
16923
  const r = this.getLayerGroup();
16909
16924
  this.map.removeLayer(this.tileLayers), setTimeout(() => {
16910
16925
  this.replaceProjection(), this.tileLayers = r.addTo(this.map);
16911
16926
  }, 500);
16912
16927
  }
16913
- }), kf = H.ImageOverlay.extend({
16914
- initialize(e, r = {}, o = new H.Marker(), c = new H.Marker()) {
16915
- typeof e == "string" ? this._url = e : this._rawImage = e, this.topRightMarker = o, this.bottomLeftMarker = c, this.angle = 0, H.setOptions(this, r), this._topLeft = new H.LatLng(r.corners[0]), this._topRight = new H.LatLng(r.corners[1]), this._bottomLeft = new H.LatLng(r.corners[3]), o.on("drag dragend", this.reposition, this), c.on("drag dragend", this.reposition, this);
16928
+ }), kf = q.ImageOverlay.extend({
16929
+ initialize(e, r = {}, o = new q.Marker(), c = new q.Marker()) {
16930
+ typeof e == "string" ? this._url = e : this._rawImage = e, this.topRightMarker = o, this.bottomLeftMarker = c, this.angle = 0, q.setOptions(this, r), this._topLeft = new q.LatLng(r.corners[0]), this._topRight = new q.LatLng(r.corners[1]), this._bottomLeft = new q.LatLng(r.corners[3]), o.on("drag dragend", this.reposition, this), c.on("drag dragend", this.reposition, this);
16916
16931
  },
16917
16932
  onAdd(e) {
16918
- this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (H.DomUtil.addClass(this._rawImage, "leaflet-interactive"), this.addInteractiveTarget(this._rawImage)), e.on("zoomend resetview", this._reset, this), this.getPane().appendChild(this._image), this._reset();
16933
+ this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (q.DomUtil.addClass(this._rawImage, "leaflet-interactive"), this.addInteractiveTarget(this._rawImage)), e.on("zoomend resetview", this._reset, this), this.getPane().appendChild(this._image), this._reset();
16919
16934
  },
16920
16935
  onRemove(e) {
16921
- e.off("zoomend resetview", this._reset, this), H.ImageOverlay.prototype.onRemove.call(this, e);
16936
+ e.off("zoomend resetview", this._reset, this), q.ImageOverlay.prototype.onRemove.call(this, e);
16922
16937
  },
16923
16938
  _initImage() {
16924
16939
  let e = this._rawImage;
16925
- this._url && (e = H.DomUtil.create("img"), e.style.display = "none", this.options.crossOrigin && (e.crossOrigin = ""), e.src = this._url, this._rawImage = e), H.DomUtil.addClass(e, "leaflet-image-layer");
16926
- const r = this._image = H.DomUtil.create("div", "leaflet-image-layer " + (this._zoomAnimated ? "leaflet-zoom-animated" : ""));
16927
- this._updateZIndex && this._updateZIndex(), r.appendChild(e), r.onselectstart = H.Util.falseFn, r.onmousemove = H.Util.falseFn, e.onload = (function() {
16928
- this._reset(), e.style.display = "block", this.options.w = this._rawImage.width, this.options.h = this._rawImage.height, this.boundsRectBottomLeft = new H.Point(0, 0), this.boundsRectTopRight = new H.Point(this.options.w, this.options.h), this.diagonalVector = this.boundsRectTopRight.subtract(this.boundsRectBottomLeft), this.fire("load");
16940
+ this._url && (e = q.DomUtil.create("img"), e.style.display = "none", this.options.crossOrigin && (e.crossOrigin = ""), e.src = this._url, this._rawImage = e), q.DomUtil.addClass(e, "leaflet-image-layer");
16941
+ const r = this._image = q.DomUtil.create("div", "leaflet-image-layer " + (this._zoomAnimated ? "leaflet-zoom-animated" : ""));
16942
+ this._updateZIndex && this._updateZIndex(), r.appendChild(e), r.onselectstart = q.Util.falseFn, r.onmousemove = q.Util.falseFn, e.onload = (function() {
16943
+ this._reset(), e.style.display = "block", this.options.w = this._rawImage.width, this.options.h = this._rawImage.height, this.boundsRectBottomLeft = new q.Point(0, 0), this.boundsRectTopRight = new q.Point(this.options.w, this.options.h), this.diagonalVector = this.boundsRectTopRight.subtract(this.boundsRectBottomLeft), this.fire("load");
16929
16944
  }).bind(this), e.alt = this.options.alt;
16930
16945
  },
16931
16946
  _reset() {
16932
- const e = this._image, r = this._map.latLngToLayerPoint(this._topLeft), o = this._map.latLngToLayerPoint(this._topRight), c = this._map.latLngToLayerPoint(this._bottomLeft), d = o.subtract(r).add(c), _ = new H.Bounds([r, o, c, d]), m = _.getSize(), A = r.subtract(_.min), M = o.subtract(r), D = c.subtract(r), E = Math.atan2(M.y, M.x), C = Math.atan2(D.x, D.y);
16933
- this.angle = ((Math.abs(E) + Math.abs(C)) / 2 * 180).toFixed(2), this._bounds = new H.LatLngBounds(this._map.layerPointToLatLng(_.min), this._map.layerPointToLatLng(_.max)), H.DomUtil.setPosition(e, _.min), e.pxBounds = _, e.style.width = m.x + "px", e.style.height = m.y + "px";
16947
+ const e = this._image, r = this._map.latLngToLayerPoint(this._topLeft), o = this._map.latLngToLayerPoint(this._topRight), c = this._map.latLngToLayerPoint(this._bottomLeft), d = o.subtract(r).add(c), _ = new q.Bounds([r, o, c, d]), m = _.getSize(), A = r.subtract(_.min), M = o.subtract(r), D = c.subtract(r), w = Math.atan2(M.y, M.x), C = Math.atan2(D.x, D.y);
16948
+ this.angle = ((Math.abs(w) + Math.abs(C)) / 2 * 180).toFixed(2), this._bounds = new q.LatLngBounds(this._map.layerPointToLatLng(_.min), this._map.layerPointToLatLng(_.max)), q.DomUtil.setPosition(e, _.min), e.pxBounds = _, e.style.width = m.x + "px", e.style.height = m.y + "px";
16934
16949
  const R = this._rawImage.width, I = this._rawImage.height;
16935
16950
  if (!R || !I)
16936
16951
  return;
16937
- const G = r.distanceTo(o) / R * Math.cos(E), j = r.distanceTo(c) / I * Math.cos(C);
16938
- this._rawImage.style.transformOrigin = "0 0", this._rawImage.style.transform = "translate(" + A.x + "px, " + A.y + "px)skew(" + C + "rad, " + E + "rad) scale(" + G + ", " + j + ") ";
16952
+ const G = r.distanceTo(o) / R * Math.cos(w), j = r.distanceTo(c) / I * Math.cos(C);
16953
+ this._rawImage.style.transformOrigin = "0 0", this._rawImage.style.transform = "translate(" + A.x + "px, " + A.y + "px)skew(" + C + "rad, " + w + "rad) scale(" + G + ", " + j + ") ";
16939
16954
  },
16940
16955
  _animateZoom(e) {
16941
16956
  const r = this._map.getZoomScale(e.zoom), c = this._map._latLngBoundsToNewLayerBounds(this._bounds, e.zoom, e.center).min;
16942
- H.DomUtil.setTransform(this._image, c, r);
16957
+ q.DomUtil.setTransform(this._image, c, r);
16943
16958
  },
16944
16959
  reposition() {
16945
- const e = this.topRightMarker.getLatLng(), r = this.bottomLeftMarker.getLatLng(), o = this.options.w, c = this.options.h, d = this.getCornerLatLng(new H.Point(0, c), r, e), _ = this.getCornerLatLng(new H.Point(o, c), r, e), m = this.getCornerLatLng(new H.Point(0, 0), r, e), A = this.getCornerLatLng(new H.Point(o, 0), r, e);
16946
- this.options.corners = [d, _, A, m], this._topLeft = new H.LatLng(d), this._topRight = new H.LatLng(_), this._bottomLeft = new H.LatLng(m), this._reset();
16960
+ const e = this.topRightMarker.getLatLng(), r = this.bottomLeftMarker.getLatLng(), o = this.options.w, c = this.options.h, d = this.getCornerLatLng(new q.Point(0, c), r, e), _ = this.getCornerLatLng(new q.Point(o, c), r, e), m = this.getCornerLatLng(new q.Point(0, 0), r, e), A = this.getCornerLatLng(new q.Point(o, 0), r, e);
16961
+ this.options.corners = [d, _, A, m], this._topLeft = new q.LatLng(d), this._topRight = new q.LatLng(_), this._bottomLeft = new q.LatLng(m), this._reset();
16947
16962
  },
16948
16963
  getCornerLatLng(e, r, o) {
16949
- const c = this.boundsRectBottomLeft, d = this.diagonalVector, _ = e.subtract(c), m = this.getClockWiseRotate90DegreePoint(d), A = this.getDotProduction(d, _) / this.getDotProduction(d, d), M = -this.getDotProduction(m, _) / this.getDotProduction(m, m), D = new H.Projection.SphericalMercator.project(r), E = new H.Projection.SphericalMercator.project(o), C = D.add(E.subtract(D).multiplyBy(A)), R = this.getClockWiseRotate90DegreePoint(D.subtract(E)).multiplyBy(M), I = C.add(R);
16950
- return new H.Projection.SphericalMercator.unproject(I);
16964
+ const c = this.boundsRectBottomLeft, d = this.diagonalVector, _ = e.subtract(c), m = this.getClockWiseRotate90DegreePoint(d), A = this.getDotProduction(d, _) / this.getDotProduction(d, d), M = -this.getDotProduction(m, _) / this.getDotProduction(m, m), D = new q.Projection.SphericalMercator.project(r), w = new q.Projection.SphericalMercator.project(o), C = D.add(w.subtract(D).multiplyBy(A)), R = this.getClockWiseRotate90DegreePoint(D.subtract(w)).multiplyBy(M), I = C.add(R);
16965
+ return new q.Projection.SphericalMercator.unproject(I);
16951
16966
  },
16952
16967
  setUrl(e) {
16953
16968
  return this._url = e, this._rawImage && (this._rawImage.src = e), this;
@@ -16956,7 +16971,7 @@ const Kh = new H.Proj.CRS(
16956
16971
  return e.x * r.x + e.y * r.y;
16957
16972
  },
16958
16973
  getClockWiseRotate90DegreePoint(e) {
16959
- return new H.Point([e.y, -e.x]);
16974
+ return new q.Point([e.y, -e.x]);
16960
16975
  }
16961
16976
  });
16962
16977
  var $h = { exports: {} };
@@ -16978,11 +16993,11 @@ var $h = { exports: {} };
16978
16993
  }, o = function() {
16979
16994
  var D = function(R) {
16980
16995
  this._coordinator = {}, this._data = [], this._radi = [], this._min = 10, this._max = 1, this._xField = R.xField || R.defaultXField, this._yField = R.yField || R.defaultYField, this._valueField = R.valueField || R.defaultValueField, R.radius && (this._cfgRadius = R.radius);
16981
- }, E = r.defaultRadius;
16996
+ }, w = r.defaultRadius;
16982
16997
  return D.prototype = {
16983
16998
  // when forceRender = false -> called from setData, omits renderall event
16984
16999
  _organiseData: function(C, R) {
16985
- var I = C[this._xField], G = C[this._yField], j = this._radi, X = this._data, rt = this._max, at = this._min, ct = C[this._valueField] || 1, yt = C.radius || this._cfgRadius || E;
17000
+ var I = C[this._xField], G = C[this._yField], j = this._radi, X = this._data, rt = this._max, at = this._min, ct = C[this._valueField] || 1, yt = C.radius || this._cfgRadius || w;
16986
17001
  X[I] || (X[I] = [], j[I] = []), X[I][G] ? X[I][G] += ct : (X[I][G] = ct, j[I][G] = yt);
16987
17002
  var _t = X[I][G];
16988
17003
  return _t > rt ? (R ? this.setDataMax(_t) : this._max = _t, !1) : _t < at ? (R ? this.setDataMin(_t) : this._min = _t, !1) : {
@@ -17107,7 +17122,7 @@ var $h = { exports: {} };
17107
17122
  for (var at in G)
17108
17123
  rt.addColorStop(at, G[at]);
17109
17124
  return X.fillStyle = rt, X.fillRect(0, 0, 256, 1), X.getImageData(0, 0, 256, 1).data;
17110
- }, E = function(I, G) {
17125
+ }, w = function(I, G) {
17111
17126
  var j = document.createElement("canvas"), X = j.getContext("2d"), rt = I, at = I;
17112
17127
  if (j.width = j.height = I * 2, G == 1)
17113
17128
  X.beginPath(), X.arc(rt, at, I, 0, 2 * Math.PI, !1), X.fillStyle = "rgba(0,0,0,1)", X.fill();
@@ -17164,7 +17179,7 @@ var $h = { exports: {} };
17164
17179
  _drawAlpha: function(X) {
17165
17180
  for (var G = this._min = X.min, j = this._max = X.max, X = X.data || [], rt = X.length, at = 1 - this._blur; rt--; ) {
17166
17181
  var ct = X[rt], yt = ct.x, _t = ct.y, xt = ct.radius, Zt = Math.min(ct.value, j), kt = yt - xt, Xt = _t - xt, Qt = this.shadowCtx, Dt;
17167
- this._templates[xt] ? Dt = this._templates[xt] : this._templates[xt] = Dt = E(xt, at);
17182
+ this._templates[xt] ? Dt = this._templates[xt] : this._templates[xt] = Dt = w(xt, at);
17168
17183
  var Vt = (Zt - G) / (j - G);
17169
17184
  Qt.globalAlpha = Vt < 0.01 ? 0.01 : Vt, Qt.drawImage(Dt, kt, Xt), kt < this._renderBoundaries[0] && (this._renderBoundaries[0] = kt), Xt < this._renderBoundaries[1] && (this._renderBoundaries[1] = Xt), kt + 2 * xt > this._renderBoundaries[2] && (this._renderBoundaries[2] = kt + 2 * xt), Xt + 2 * xt > this._renderBoundaries[3] && (this._renderBoundaries[3] = Xt + 2 * xt);
17170
17185
  }
@@ -17194,8 +17209,8 @@ var $h = { exports: {} };
17194
17209
  return r.defaultRenderer === "canvas2d" && (D = c), D;
17195
17210
  }(), _ = {
17196
17211
  merge: function() {
17197
- for (var M = {}, D = arguments.length, E = 0; E < D; E++) {
17198
- var C = arguments[E];
17212
+ for (var M = {}, D = arguments.length, w = 0; w < D; w++) {
17213
+ var C = arguments[w];
17199
17214
  for (var R in C)
17200
17215
  M[R] = C[R];
17201
17216
  }
@@ -17222,7 +17237,7 @@ var $h = { exports: {} };
17222
17237
  }
17223
17238
  }
17224
17239
  }, I;
17225
- }(), E = function(R) {
17240
+ }(), w = function(R) {
17226
17241
  var I = R._renderer, G = R._coordinator, j = R._store;
17227
17242
  G.on("renderpartial", I.renderPartial, I), G.on("renderall", I.renderAll, I), G.on("extremachange", function(X) {
17228
17243
  R._config.onExtremaChange && R._config.onExtremaChange({
@@ -17243,7 +17258,7 @@ var $h = { exports: {} };
17243
17258
  throw new Error("Plugin '" + I + "' not found. Maybe it was not registered.");
17244
17259
  } else
17245
17260
  this._renderer = new d(R), this._store = new o(R);
17246
- E(this);
17261
+ w(this);
17247
17262
  }
17248
17263
  return C.prototype = {
17249
17264
  addData: function() {
@@ -17317,13 +17332,13 @@ var Zo = L.Layer.extend({
17317
17332
  return;
17318
17333
  }
17319
17334
  for (var d = [], _ = this.cfg.scaleRadius ? o : 1, m = 0, A = 0, M = this.cfg.valueField, D = this._data.length; D--; ) {
17320
- var E = this._data[D], C = E[M], R = E.latlng;
17335
+ var w = this._data[D], C = w[M], R = w.latlng;
17321
17336
  if (e.contains(R)) {
17322
17337
  m = Math.max(C, m), A = Math.min(C, A);
17323
17338
  var I = this._map.latLngToContainerPoint(R), G = { x: Math.round(I.x), y: Math.round(I.y) };
17324
17339
  G[M] = C;
17325
17340
  var j;
17326
- E.radius ? j = E.radius * _ : j = (this.cfg.radius || 2) * _, G.radius = j, d.push(G);
17341
+ w.radius ? j = w.radius * _ : j = (this.cfg.radius || 2) * _, G.radius = j, d.push(G);
17327
17342
  }
17328
17343
  }
17329
17344
  this.cfg.useLocalExtrema && (c.max = m, c.min = A), c.data = d, this._heatmap.setData(c);
@@ -17389,7 +17404,7 @@ const Tf = L.TileLayer.extend({
17389
17404
  o.x += 1, o.y -= 1;
17390
17405
  var c = o.add(new L.Point(r, r)), d = this._tileZoom, _ = this._crs.project(this._map.unproject(o, d)), m = this._crs.project(this._map.unproject(c, d));
17391
17406
  tilewidth = m.x - _.x;
17392
- var A = this.matrixIds[d].identifier, M = this.wmtsParams.tilematrixset + ":" + A, D = this.matrixIds[d].topLeftCorner.lng, E = this.matrixIds[d].topLeftCorner.lat, C = Math.floor((_.x - D) / tilewidth), R = -Math.floor((_.y - E) / tilewidth), I = L.Util.template(this._url, { s: this._getSubdomain(e) });
17407
+ var A = this.matrixIds[d].identifier, M = this.wmtsParams.tilematrixset + ":" + A, D = this.matrixIds[d].topLeftCorner.lng, w = this.matrixIds[d].topLeftCorner.lat, C = Math.floor((_.x - D) / tilewidth), R = -Math.floor((_.y - w) / tilewidth), I = L.Util.template(this._url, { s: this._getSubdomain(e) });
17393
17408
  return I + L.Util.getParamString(this.wmtsParams, I) + "&tilematrix=" + M + "&tilerow=" + R + "&tilecol=" + C;
17394
17409
  },
17395
17410
  setParams: function(e, r) {
@@ -17619,9 +17634,9 @@ function Sf(e, r) {
17619
17634
  c.readyState === 4 && (c.status === 200 ? r.call(o, c.responseText) : r.call(o, "error"));
17620
17635
  }
17621
17636
  }
17622
- const Df = H.Draggable.extend({
17637
+ const Df = q.Draggable.extend({
17623
17638
  initialize(e, r, o) {
17624
- H.Draggable.prototype.initialize.call(this, e, e), this._element = e, this._stepHeight = r ?? 5.45, this._knobHeight = o ?? 10, this.on(
17639
+ q.Draggable.prototype.initialize.call(this, e, e), this._element = e, this._stepHeight = r ?? 5.45, this._knobHeight = o ?? 10, this.on(
17625
17640
  "predrag",
17626
17641
  function() {
17627
17642
  this._newPos.x = 0, this._newPos.y = this._adjust(this._newPos.y);
@@ -17645,15 +17660,15 @@ const Df = H.Draggable.extend({
17645
17660
  this._maxValue = e - 1, this._k = -this._stepHeight, this._m = 0;
17646
17661
  },
17647
17662
  setPosition(e) {
17648
- H.DomUtil.setPosition(this._element, L.point(0, this._adjust(e)));
17663
+ q.DomUtil.setPosition(this._element, L.point(0, this._adjust(e)));
17649
17664
  },
17650
17665
  setValue(e) {
17651
17666
  this.setPosition(this._toY(e));
17652
17667
  },
17653
17668
  getValue() {
17654
- return this._toValue(H.DomUtil.getPosition(this._element).y);
17669
+ return this._toValue(q.DomUtil.getPosition(this._element).y);
17655
17670
  }
17656
- }), Xh = H.Handler.extend({
17671
+ }), Xh = q.Handler.extend({
17657
17672
  options: {
17658
17673
  color: "#f00",
17659
17674
  weight: 1,
@@ -17663,7 +17678,7 @@ const Df = H.Draggable.extend({
17663
17678
  },
17664
17679
  PointEvents: {
17665
17680
  _mouseMove(e) {
17666
- this.tooltip.setLatLng(e.latlng), this.tempPoint.setLatLng(e.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? this.geometry.setLatLng(e.latlng) : (this.tooltip.setContent("点击开始绘制"), this.geometry = new H.CircleMarker(e.latlng, this.options).addTo(this._map)), this.onDrawing && this.onDrawing(this.geometry);
17681
+ this.tooltip.setLatLng(e.latlng), this.tempPoint.setLatLng(e.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? this.geometry.setLatLng(e.latlng) : (this.tooltip.setContent("点击开始绘制"), this.geometry = new q.CircleMarker(e.latlng, this.options).addTo(this._map)), this.onDrawing && this.onDrawing(this.geometry);
17667
17682
  },
17668
17683
  _mouseClick(e) {
17669
17684
  this.onFinish && this.geometry && this.onFinish(this.geometry), this.geometry = null, !this.options.continue && this.disable();
@@ -17673,19 +17688,19 @@ const Df = H.Draggable.extend({
17673
17688
  _mouseMove(e) {
17674
17689
  if (this.tooltip.setLatLng(e.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry)) {
17675
17690
  const r = this.latlng ? this._map.distance(e.latlng, this.latlng) : 0;
17676
- this.geometry.setRadius(r), r !== 0 ? this.tooltip.setContent(`半径:${r.toFixed(2)}m,继续点击完成绘制`) : this.tooltip.setContent("点击开始绘制");
17691
+ this.geometry.setRadius(r), r !== 0 ? this.tooltip.setContent(`半径:<b>${r.toFixed(2)}m</b><br/>继续点击完成绘制`) : this.tooltip.setContent("点击开始绘制");
17677
17692
  }
17678
17693
  this.onDrawing && this.onDrawing(this.geometry);
17679
17694
  },
17680
17695
  _mouseClick(e) {
17681
- this.latlng = e.latlng, this.onVertexAdd && this.onVertexAdd(this.geometry), this.geometry && this.geometry.getRadius() !== 0 ? (this.onFinish && this.geometry && this.onFinish(this.geometry), this.latlngs = [], this.geometry = null, !this.options.continue && this.disable()) : this.geometry = new H.Circle(this.latlng, 0, this.options).addTo(this._map);
17696
+ this.latlng = e.latlng, this.onVertexAdd && this.onVertexAdd(this.geometry), this.geometry && this.geometry.getRadius() !== 0 ? (this.onFinish && this.geometry && this.onFinish(this.geometry), this.latlngs = [], this.geometry = null, !this.options.continue && this.disable()) : this.geometry = new q.Circle(this.latlng, 0, this.options).addTo(this._map);
17682
17697
  },
17683
17698
  _mouseDblClick(e) {
17684
17699
  }
17685
17700
  },
17686
17701
  PolylineEvents: {
17687
17702
  _mouseMove(e) {
17688
- this.tooltip.setLatLng(e.latlng), this.tempPoint.setLatLng(e.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setLatLngs([...this.latlngs, e.latlng]), this.latlngs.length ? this.tooltip.setContent("点击继续绘制,双击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new H.Polyline([e.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
17703
+ this.tooltip.setLatLng(e.latlng), this.tempPoint.setLatLng(e.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setLatLngs([...this.latlngs, e.latlng]), this.latlngs.length ? this.tooltip.setContent("点击继续绘制,双击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new q.Polyline([e.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
17689
17704
  },
17690
17705
  _mouseClick(e) {
17691
17706
  this.latlngs.push(e.latlng), String(this.latlngs.at(-1)) === String(this.latlngs.at(-2)) && (this.latlngs = this.latlngs.slice(0, this.latlngs.length - 1)), this.geometry.setLatLngs(this.latlngs), this.onVertexAdd && this.onVertexAdd(this.geometry);
@@ -17696,7 +17711,7 @@ const Df = H.Draggable.extend({
17696
17711
  },
17697
17712
  RectangleEvents: {
17698
17713
  _mouseMove(e) {
17699
- this.tooltip.setLatLng(e.latlng), this.tempPoint.setLatLng(e.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setBounds([...this.latlngs, e.latlng]), this.latlngs.length ? this.tooltip.setContent("继续点击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new H.Rectangle([e.latlng, e.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
17714
+ this.tooltip.setLatLng(e.latlng), this.tempPoint.setLatLng(e.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setBounds([...this.latlngs, e.latlng]), this.latlngs.length ? this.tooltip.setContent("继续点击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new q.Rectangle([e.latlng, e.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
17700
17715
  },
17701
17716
  _mouseClick(e) {
17702
17717
  this.latlngs.push(e.latlng), String(this.latlngs.at(-1)) === String(this.latlngs.at(-2)) && (this.latlngs = this.latlngs.slice(0, this.latlngs.length - 1)), this.geometry.setBounds(this.latlngs), this.onVertexAdd && this.onVertexAdd(this.geometry), this.latlngs.length === 2 && (this.onFinish && this.geometry && this.onFinish(this.geometry), this.latlngs = [], this.geometry = null, !this.options.continue && this.disable());
@@ -17706,7 +17721,7 @@ const Df = H.Draggable.extend({
17706
17721
  },
17707
17722
  PolygonEvents: {
17708
17723
  _mouseMove(e) {
17709
- this.tooltip.setLatLng(e.latlng), this.tempPoint.setLatLng(e.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setLatLngs([...this.latlngs, e.latlng]), this.latlngs.length ? this.tooltip.setContent("点击继续绘制,双击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new H.Polygon([e.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
17724
+ this.tooltip.setLatLng(e.latlng), this.tempPoint.setLatLng(e.latlng), this._map.openTooltip(this.tooltip), this.geometry && this._map.hasLayer(this.geometry) ? (this.geometry.setLatLngs([...this.latlngs, e.latlng]), this.latlngs.length ? this.tooltip.setContent("点击继续绘制,双击完成绘制") : this.tooltip.setContent("点击开始绘制")) : this.geometry = new q.Polygon([e.latlng], this.options).addTo(this._map), this.onDrawing && this.onDrawing(this.geometry);
17710
17725
  },
17711
17726
  _mouseClick(e) {
17712
17727
  this.latlngs.push(e.latlng), String(this.latlngs.at(-1)) === String(this.latlngs.at(-2)) && (this.latlngs = this.latlngs.slice(0, this.latlngs.length - 1)), this.geometry.setLatLngs(this.latlngs), this.onVertexAdd && this.onVertexAdd(this.geometry);
@@ -17722,28 +17737,28 @@ const Df = H.Draggable.extend({
17722
17737
  this[this.drawType + "Events"] && (this[this.drawType + "Events"]._mouseMove && this._map.off("mousemove", this[this.drawType + "Events"]._mouseMove, this), this[this.drawType + "Events"]._mouseClick && this._map.off("click", this[this.drawType + "Events"]._mouseClick, this), this[this.drawType + "Events"]._mouseDblClick && this._map.off("dblclick", this[this.drawType + "Events"]._mouseDblClick, this));
17723
17738
  },
17724
17739
  setOptions(e) {
17725
- return H.Util.setOptions(this, e), this;
17740
+ return q.Util.setOptions(this, e), this;
17726
17741
  },
17727
17742
  enable(e, r = {}) {
17728
- return H.Util.setOptions(this, r), this.onFinish = r.onFinish || new Function(), this.onDrawing = r.onDrawing || new Function(), this.onVertexAdd = r.onVertexAdd || new Function(), this.drawType = bl.changeCase(e, 1), this.latlngs = r.latlngs || [], this._map.setCursor(
17743
+ return q.Util.setOptions(this, r), this.onFinish = r.onFinish || new Function(), this.onDrawing = r.onDrawing || new Function(), this.onVertexAdd = r.onVertexAdd || new Function(), this.drawType = bl.changeCase(e, 1), this.latlngs = r.latlngs || [], this._map.setCursor(
17729
17744
  "data:application/octet-stream;base64,AAACAAEAEBAAAAMABgBoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AACxAAAs6/oAAIKEAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQUAAAAAAAAAAAAAAAAAAAUFBQAAAAAAAAAAAAAAAAAFAwQAAAAAAAAAAAAAAAAAAAMDBAAAAAAAAAEBAQAAAAADAwQAAAAAAAABAQEAAAAAAAMDBAQAAAAAAQEBAAAAAAADAwIAAAAAAAAAAAAAAAAAAAIBAQAAAAAAAAAAAAAAAAABAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AAD//wAA/v8AAP4/AAD+HwAA/g8AAP4PAAD+BwAAxwcAAMcDAADHgwAA/8EAAP/BAAD/5wAA//8AAP//AAA="
17730
- ), this.tempPoint = new H.CircleMarker([0, 0], { weight: 1, radius: 5, color: "#3388ff", fillColor: "#fff", fillOpacity: 1 }).addTo(this._map), this.tooltip = new H.Tooltip({ offset: [10, -10] }).setContent("点击开始绘制"), H.Handler.prototype.enable.call(this), this;
17745
+ ), this.tempPoint = new q.CircleMarker([0, 0], { weight: 1, radius: 5, color: "#3388ff", fillColor: "#fff", fillOpacity: 1 }).addTo(this._map), this.tooltip = new q.Tooltip({ offset: [10, -10] }).setContent("点击开始绘制"), q.Handler.prototype.enable.call(this), this;
17731
17746
  },
17732
17747
  disable() {
17733
- return this._map.setCursor(), this.removeHooks(), this._map.closeTooltip(this.tooltip), this._map.removeLayer(this.tempPoint), H.Handler.prototype.disable.call(this), this;
17748
+ return this._map.setCursor(), this.removeHooks(), this._map.closeTooltip(this.tooltip), this._map.removeLayer(this.tempPoint), q.Handler.prototype.disable.call(this), this;
17734
17749
  }
17735
17750
  });
17736
- H.Map.addInitHook("addHandler", "drawHandler", Xh);
17737
- const Si = H.Handler.extend({
17738
- _touchstart: H.Browser.msPointer ? "MSPointerDown" : H.Browser.pointer ? "pointerdown" : "touchstart",
17751
+ q.Map.addInitHook("addHandler", "drawHandler", Xh);
17752
+ const Si = q.Handler.extend({
17753
+ _touchstart: q.Browser.msPointer ? "MSPointerDown" : q.Browser.pointer ? "pointerdown" : "touchstart",
17739
17754
  initialize(e) {
17740
- H.Handler.prototype.initialize.call(this, e), this._items = [], this._visible = !1, Si.BASE_CLS = `${e.clsPrefix}-contextmenu`;
17741
- const r = this._container = H.DomUtil.create("div", `${e.clsPrefix}-contextmenu`, e._container);
17742
- r.style.zIndex = 1e4, r.style.position = "absolute", e.options.contextmenuWidth && (r.style.width = e.options.contextmenuWidth + "px"), this._createItems(), H.DomEvent.on(r, "click", H.DomEvent.stop).on(r, "mousedown", H.DomEvent.stop).on(r, "dblclick", H.DomEvent.stop).on(r, "contextmenu", H.DomEvent.stop);
17755
+ q.Handler.prototype.initialize.call(this, e), this._items = [], this._visible = !1, Si.BASE_CLS = `${e.clsPrefix}-contextmenu`;
17756
+ const r = this._container = q.DomUtil.create("div", `${e.clsPrefix}-contextmenu`, e._container);
17757
+ r.style.zIndex = 1e4, r.style.position = "absolute", e.options.contextmenuWidth && (r.style.width = e.options.contextmenuWidth + "px"), this._createItems(), q.DomEvent.on(r, "click", q.DomEvent.stop).on(r, "mousedown", q.DomEvent.stop).on(r, "dblclick", q.DomEvent.stop).on(r, "contextmenu", q.DomEvent.stop);
17743
17758
  },
17744
17759
  addHooks() {
17745
17760
  const e = this._map.getContainer();
17746
- H.DomEvent.on(e, "mouseleave", this._hide, this).on(document, "keydown", this._onKeyDown, this), H.Browser.touch && H.DomEvent.on(document, this._touchstart, this._hide, this), this._map.on(
17761
+ q.DomEvent.on(e, "mouseleave", this._hide, this).on(document, "keydown", this._onKeyDown, this), q.Browser.touch && q.DomEvent.on(document, this._touchstart, this._hide, this), this._map.on(
17747
17762
  {
17748
17763
  contextmenu: this._show,
17749
17764
  mousedown: this._hide,
@@ -17754,7 +17769,7 @@ const Si = H.Handler.extend({
17754
17769
  },
17755
17770
  removeHooks() {
17756
17771
  const e = this._map.getContainer();
17757
- H.DomEvent.off(e, "mouseleave", this._hide, this).off(document, "keydown", this._onKeyDown, this), H.Browser.touch && H.DomEvent.off(document, this._touchstart, this._hide, this), this._map.off(
17772
+ q.DomEvent.off(e, "mouseleave", this._hide, this).off(document, "keydown", this._onKeyDown, this), q.Browser.touch && q.DomEvent.off(document, this._touchstart, this._hide, this), this._map.off(
17758
17773
  {
17759
17774
  contextmenu: this._show,
17760
17775
  mousedown: this._hide,
@@ -17764,7 +17779,7 @@ const Si = H.Handler.extend({
17764
17779
  );
17765
17780
  },
17766
17781
  showAt(e, r) {
17767
- e instanceof H.LatLng && (e = this._map.latLngToContainerPoint(e)), this._showAtPoint(e, r);
17782
+ e instanceof q.LatLng && (e = this._map.latLngToContainerPoint(e)), this._showAtPoint(e, r);
17768
17783
  },
17769
17784
  hide() {
17770
17785
  this._hide();
@@ -17783,7 +17798,7 @@ const Si = H.Handler.extend({
17783
17798
  },
17784
17799
  removeItem(e) {
17785
17800
  const r = this._container;
17786
- return isNaN(e) || (e = r.children[e]), e ? (this._removeItem(H.Util.stamp(e)), this._sizeChanged = !0, this._map.fire("contextmenu.removeitem", {
17801
+ return isNaN(e) || (e = r.children[e]), e ? (this._removeItem(q.Util.stamp(e)), this._sizeChanged = !0, this._map.fire("contextmenu.removeitem", {
17787
17802
  contextmenu: this,
17788
17803
  el: e
17789
17804
  }), e) : null;
@@ -17792,7 +17807,7 @@ const Si = H.Handler.extend({
17792
17807
  const e = this._container.children;
17793
17808
  let r;
17794
17809
  for (; e.length; )
17795
- r = e[0], this._removeItem(H.Util.stamp(r));
17810
+ r = e[0], this._removeItem(q.Util.stamp(r));
17796
17811
  return e;
17797
17812
  },
17798
17813
  hideAllItems() {
@@ -17807,10 +17822,10 @@ const Si = H.Handler.extend({
17807
17822
  },
17808
17823
  setDisabled(e, r) {
17809
17824
  const o = this._container, c = Si.BASE_CLS + "-item";
17810
- isNaN(e) || (e = o.children[e]), e && H.DomUtil.hasClass(e, c) && (r ? (H.DomUtil.addClass(e, c + "-disabled"), this._map.fire("contextmenu.disableitem", {
17825
+ isNaN(e) || (e = o.children[e]), e && q.DomUtil.hasClass(e, c) && (r ? (q.DomUtil.addClass(e, c + "-disabled"), this._map.fire("contextmenu.disableitem", {
17811
17826
  contextmenu: this,
17812
17827
  el: e
17813
- })) : (H.DomUtil.removeClass(e, c + "-disabled"), this._map.fire("contextmenu.enableitem", {
17828
+ })) : (q.DomUtil.removeClass(e, c + "-disabled"), this._map.fire("contextmenu.enableitem", {
17814
17829
  contextmenu: this,
17815
17830
  el: e
17816
17831
  })));
@@ -17829,8 +17844,8 @@ const Si = H.Handler.extend({
17829
17844
  return this._createSeparator(e, o);
17830
17845
  const c = Si.BASE_CLS + "-item", d = r.disabled ? c + " " + c + "-disabled" : c, _ = this._insertElementAt("a", d, e, o), m = this._createEventHandler(_, r.callback, r.context, r.hideOnSelect), A = this._getIcon(r), M = this._getIconCls(r);
17831
17846
  let D = "";
17832
- return A ? D = '<img class="' + Si.BASE_CLS + '-icon" src="' + A + '"/>' : M && (D = '<span class="' + Si.BASE_CLS + "-icon " + M + '"></span>'), _.innerHTML = D + r.text, _.href = "#", H.DomEvent.on(_, "mouseover", this._onItemMouseOver, this).on(_, "mouseout", this._onItemMouseOut, this).on(_, "mousedown", H.DomEvent.stopPropagation).on(_, "click", m), H.Browser.touch && H.DomEvent.on(_, this._touchstart, H.DomEvent.stopPropagation), H.Browser.pointer || H.DomEvent.on(_, "click", this._onItemMouseOut, this), {
17833
- id: H.Util.stamp(_),
17847
+ return A ? D = '<img class="' + Si.BASE_CLS + '-icon" src="' + A + '"/>' : M && (D = '<span class="' + Si.BASE_CLS + "-icon " + M + '"></span>'), _.innerHTML = D + r.text, _.href = "#", q.DomEvent.on(_, "mouseover", this._onItemMouseOver, this).on(_, "mouseout", this._onItemMouseOut, this).on(_, "mousedown", q.DomEvent.stopPropagation).on(_, "click", m), q.Browser.touch && q.DomEvent.on(_, this._touchstart, q.DomEvent.stopPropagation), q.Browser.pointer || q.DomEvent.on(_, "click", this._onItemMouseOut, this), {
17848
+ id: q.Util.stamp(_),
17834
17849
  el: _,
17835
17850
  callback: m
17836
17851
  };
@@ -17839,13 +17854,13 @@ const Si = H.Handler.extend({
17839
17854
  let r, o, c, d, _;
17840
17855
  for (c = 0, d = this._items.length; c < d; c++)
17841
17856
  if (r = this._items[c], r.id === e)
17842
- return o = r.el, _ = r.callback, _ && (H.DomEvent.off(o, "mouseover", this._onItemMouseOver, this).off(o, "mouseover", this._onItemMouseOut, this).off(o, "mousedown", H.DomEvent.stopPropagation).off(o, "click", _), H.Browser.touch && H.DomEvent.off(o, this._touchstart, H.DomEvent.stopPropagation), H.Browser.pointer || H.DomEvent.on(o, "click", this._onItemMouseOut, this)), this._container.removeChild(o), this._items.splice(c, 1), r;
17857
+ return o = r.el, _ = r.callback, _ && (q.DomEvent.off(o, "mouseover", this._onItemMouseOver, this).off(o, "mouseover", this._onItemMouseOut, this).off(o, "mousedown", q.DomEvent.stopPropagation).off(o, "click", _), q.Browser.touch && q.DomEvent.off(o, this._touchstart, q.DomEvent.stopPropagation), q.Browser.pointer || q.DomEvent.on(o, "click", this._onItemMouseOut, this)), this._container.removeChild(o), this._items.splice(c, 1), r;
17843
17858
  return null;
17844
17859
  },
17845
17860
  _createSeparator(e, r) {
17846
17861
  const o = this._insertElementAt("div", Si.BASE_CLS + "-separator", e, r);
17847
17862
  return {
17848
- id: H.Util.stamp(o),
17863
+ id: q.Util.stamp(o),
17849
17864
  el: o
17850
17865
  };
17851
17866
  },
@@ -17855,11 +17870,11 @@ const Si = H.Handler.extend({
17855
17870
  const _ = Si.BASE_CLS + "-item-disabled";
17856
17871
  var m = m !== void 0 ? m : !0;
17857
17872
  return function(A) {
17858
- if (H.DomUtil.hasClass(e, _))
17873
+ if (q.DomUtil.hasClass(e, _))
17859
17874
  return;
17860
- const M = d._map, D = d._showLocation.containerPoint, E = M.containerPointToLayerPoint(D), C = M.layerPointToLatLng(E), R = d._showLocation.relatedTarget, I = {
17875
+ const M = d._map, D = d._showLocation.containerPoint, w = M.containerPointToLayerPoint(D), C = M.layerPointToLatLng(w), R = d._showLocation.relatedTarget, I = {
17861
17876
  containerPoint: D,
17862
- layerPoint: E,
17877
+ layerPoint: w,
17863
17878
  latlng: C,
17864
17879
  relatedTarget: R
17865
17880
  };
@@ -17880,7 +17895,7 @@ const Si = H.Handler.extend({
17880
17895
  _showAtPoint(e, r) {
17881
17896
  if (this._items.length) {
17882
17897
  this._map;
17883
- const o = H.extend(r || {}, { contextmenu: this });
17898
+ const o = q.extend(r || {}, { contextmenu: this });
17884
17899
  this._showLocation = {
17885
17900
  containerPoint: e
17886
17901
  }, r && r.relatedTarget && (this._showLocation.relatedTarget = r.relatedTarget), this._setPosition(e), this._visible || (this._container.style.display = "block", this._visible = !0), this._map.fire("contextmenu.show", o);
@@ -17890,15 +17905,15 @@ const Si = H.Handler.extend({
17890
17905
  this._visible && (this._visible = !1, this._container.style.display = "none", this._map.fire("contextmenu.hide", { contextmenu: this }));
17891
17906
  },
17892
17907
  _getIcon(e) {
17893
- return H.Browser.retina && e.retinaIcon || e.icon;
17908
+ return q.Browser.retina && e.retinaIcon || e.icon;
17894
17909
  },
17895
17910
  _getIconCls(e) {
17896
- return H.Browser.retina && e.retinaIconCls || e.iconCls;
17911
+ return q.Browser.retina && e.retinaIconCls || e.iconCls;
17897
17912
  },
17898
17913
  _setPosition(e) {
17899
17914
  const r = this._map.getSize(), o = this._container, c = this._getElementSize(o);
17900
17915
  let d;
17901
- this._map.options.contextmenuAnchor && (d = new H.Point(this._map.options.contextmenuAnchor), e = e.add(d)), o._leaflet_pos = e, e.x + c.x > r.x ? (o.style.left = "auto", o.style.right = Math.min(Math.max(r.x - e.x, 0), r.x - c.x - 1) + "px") : (o.style.left = Math.max(e.x, 0) + "px", o.style.right = "auto"), e.y + c.y > r.y ? (o.style.top = "auto", o.style.bottom = Math.min(Math.max(r.y - e.y, 0), r.y - c.y - 1) + "px") : (o.style.top = Math.max(e.y, 0) + "px", o.style.bottom = "auto");
17916
+ this._map.options.contextmenuAnchor && (d = new q.Point(this._map.options.contextmenuAnchor), e = e.add(d)), o._leaflet_pos = e, e.x + c.x > r.x ? (o.style.left = "auto", o.style.right = Math.min(Math.max(r.x - e.x, 0), r.x - c.x - 1) + "px") : (o.style.left = Math.max(e.x, 0) + "px", o.style.right = "auto"), e.y + c.y > r.y ? (o.style.top = "auto", o.style.bottom = Math.min(Math.max(r.y - e.y, 0), r.y - c.y - 1) + "px") : (o.style.top = Math.max(e.y, 0) + "px", o.style.bottom = "auto");
17902
17917
  },
17903
17918
  _getElementSize(e) {
17904
17919
  let r = this._size;
@@ -17909,16 +17924,16 @@ const Si = H.Handler.extend({
17909
17924
  e.keyCode === 27 && this._hide();
17910
17925
  },
17911
17926
  _onItemMouseOver(e) {
17912
- H.DomUtil.addClass(e.target || e.srcElement, "over");
17927
+ q.DomUtil.addClass(e.target || e.srcElement, "over");
17913
17928
  },
17914
17929
  _onItemMouseOut(e) {
17915
- H.DomUtil.removeClass(e.target || e.srcElement, "over");
17930
+ q.DomUtil.removeClass(e.target || e.srcElement, "over");
17916
17931
  }
17917
17932
  });
17918
- H.Map.mergeOptions({
17933
+ q.Map.mergeOptions({
17919
17934
  contextmenuItems: []
17920
17935
  });
17921
- H.Map.addInitHook("addHandler", "contextmenu", Si);
17936
+ q.Map.addInitHook("addHandler", "contextmenu", Si);
17922
17937
  const Of = {
17923
17938
  bindContextMenu(e) {
17924
17939
  return L.setOptions(this, e), this._initContextMenu(), this;
@@ -17959,7 +17974,7 @@ const Of = {
17959
17974
  this._items.length = 0, this.options.contextmenuInheritItems || this._map.contextmenu.showAllItems();
17960
17975
  }
17961
17976
  }
17962
- }, Ah = [H.Marker, H.Path], yh = {
17977
+ }, Ah = [q.Marker, q.Path], yh = {
17963
17978
  contextmenu: !1,
17964
17979
  contextmenuItems: [],
17965
17980
  contextmenuInheritItems: !1
@@ -17970,9 +17985,9 @@ for (let e = 0, r = Ah.length; e < r; e++) {
17970
17985
  this.options.contextmenu && this._initContextMenu();
17971
17986
  }), o.include(Of);
17972
17987
  }
17973
- const If = H.LayerGroup.extend({
17988
+ const If = q.LayerGroup.extend({
17974
17989
  initialize(e) {
17975
- H.Util.setOptions(this, e), H.LayerGroup.prototype.initialize.call(this, e);
17990
+ q.Util.setOptions(this, e), q.LayerGroup.prototype.initialize.call(this, e);
17976
17991
  },
17977
17992
  /**
17978
17993
  * 递归获取所有的非group图层