tg-map-vue3 3.6.2 → 3.6.3

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.
package/dist/tg-map.js CHANGED
@@ -1,7 +1,7 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.baidu-info-box-container{transform:translateY(-11px);font-size:13px;font-weight:300;width:100vw}.baidu-info-box-container__border{position:absolute;padding:12px;background-color:#fff;box-shadow:0 2px 7px 1px #0000004d;border-radius:8px;transform:translate(-50%,-100%)}.baidu-info-box-container__inner{overflow:auto}.baidu-info-box-container__close{position:absolute;right:-6px;top:-6px;width:14px;height:14px;margin:8px;opacity:.6;cursor:pointer}.baidu-info-box-container__close:hover{opacity:1}.baidu-info-box-container:after{position:absolute;background-color:#fff;content:"";width:15px;height:15px;left:0px;top:0px;box-shadow:-2px 2px 2px #b2b2b266;transform:translate(-50%,-50%) rotate(-45deg)}.element-overlay{position:absolute}.tg-map{height:100%;position:relative}.tg-map__map{width:100%;height:100%}.tg-map__map--hide-logo-google .gm-style a[target=_blank]:has(> div > img){display:none!important}.tg-map__map--hide-logo-google .gm-style>div:last-child>div:last-child>div{display:none}.tg-map__map--hide-logo-baidu div.anchorBL>a[target=_blank]>img{display:none}.tg-map__map--hide-logo-baidu div.BMap_cpyCtrl{display:none}.tg-map-widget{position:absolute}.tg-map>.tg-custom-control{display:none}.tg-map .tg-element-overlay{display:none}.tg-map__map .tg-element-overlay{display:block}.tg-map .tg-info-box{display:none}.tg-map__map .tg-info-box{display:block}.tg-map .tg-label{display:none}.tg-map__map .tg-label{display:block}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  var kr = Object.defineProperty;
3
3
  var Ir = (i, t, e) => t in i ? kr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
4
- var c = (i, t, e) => (Ir(i, typeof t != "symbol" ? t + "" : t, e), e);
4
+ var h = (i, t, e) => (Ir(i, typeof t != "symbol" ? t + "" : t, e), e);
5
5
  import { createCommentVNode as Je, computed as Ft, defineComponent as w, markRaw as Br, watch as Ut, openBlock as V, createElementBlock as F, mergeProps as ue, createElementVNode as Sr, normalizeClass as Ze, renderSlot as W, normalizeStyle as Ar, getCurrentInstance as Rr, inject as $r, onMounted as Dr, onBeforeUnmount as zr, toRaw as We, withDirectives as Nr, vShow as Gr } from "vue";
6
6
  function U(i, t, e) {
7
7
  Object.keys(i).forEach((r) => {
@@ -38,7 +38,7 @@ var qt = { exports: {} };
38
38
  new n(82.9684, 29.5297, 97.0352, 26.7186),
39
39
  new n(97.0253, 29.5297, 124.367395, 20.414096),
40
40
  new n(107.975793, 20.414096, 111.744104, 17.871542)
41
- ], h = [
41
+ ], d = [
42
42
  new n(119.921265, 25.398623, 122.497559, 21.785006),
43
43
  new n(101.8652, 22.284, 106.665, 20.0988),
44
44
  new n(106.4525, 21.5422, 108.051, 20.4878),
@@ -50,8 +50,8 @@ var qt = { exports: {} };
50
50
  function o(g, f) {
51
51
  for (var v = 0; v < a.length; v++)
52
52
  if (a[v].contain(g, f)) {
53
- for (var O = 0; O < h.length; O++)
54
- if (h[O].contain(g, f))
53
+ for (var O = 0; O < d.length; O++)
54
+ if (d[O].contain(g, f))
55
55
  return !1;
56
56
  return !0;
57
57
  }
@@ -61,7 +61,7 @@ var qt = { exports: {} };
61
61
  var v = g - 65e-4, O = f - 6e-3, x = Math.sqrt(v * v + O * O) - 2e-5 * Math.sin(O * t), E = Math.atan2(O, v) - 3e-6 * Math.cos(v * t), Q = x * Math.cos(E), ie = x * Math.sin(E);
62
62
  return [Q, ie];
63
63
  }
64
- function d(g, f) {
64
+ function c(g, f) {
65
65
  var v = Math.sqrt(g * g + f * f) + 2e-5 * Math.sin(f * t), O = Math.atan2(f, g) + 3e-6 * Math.cos(g * t), x = v * Math.cos(O) + 65e-4, E = v * Math.sin(O) + 6e-3;
66
66
  return [x, E];
67
67
  }
@@ -93,12 +93,12 @@ var qt = { exports: {} };
93
93
  return {
94
94
  // 向前兼容
95
95
  bd09togcj02: l,
96
- gcj02tobd09: d,
96
+ gcj02tobd09: c,
97
97
  wgs84togcj02: u,
98
98
  gcj02towgs84: p,
99
99
  // 小驼峰命名风格
100
100
  bd09ToGcj02: l,
101
- gcj02ToBd09: d,
101
+ gcj02ToBd09: c,
102
102
  wgs84ToGcj02: u,
103
103
  gcj02ToWgs84: p,
104
104
  bd09ToWgs84: function(g, f) {
@@ -111,7 +111,7 @@ var qt = { exports: {} };
111
111
  if (!o(g, f))
112
112
  return [g, f];
113
113
  var v = u(g, f);
114
- return d(v[0], v[1]);
114
+ return c(v[0], v[1]);
115
115
  }
116
116
  };
117
117
  });
@@ -237,7 +237,7 @@ const qe = "wgs84", N = class {
237
237
  }
238
238
  };
239
239
  let y = N;
240
- c(y, "ZERO", N.create(0, 0));
240
+ h(y, "ZERO", N.create(0, 0));
241
241
  const te = class {
242
242
  /**
243
243
  * 不推荐直接创建LatLngBounds, sw和ne的大小关系可能没法保证, 推荐用LatLngBounds.Builder或者LatLngBounds.from等静态方法来创建
@@ -245,7 +245,7 @@ const te = class {
245
245
  * @param ne 东北, lat/lng更大
246
246
  */
247
247
  constructor(t, e) {
248
- c(this, "coord");
248
+ h(this, "coord");
249
249
  this.sw = t, this.ne = e, oe(t.coord === e.coord, "sw和ne的coord应该相同"), oe(Number.isFinite(t.lat) && Number.isFinite(t.lng) && Number.isFinite(e.lat) && Number.isFinite(e.lng), `sw(${t})和ne(${e})不能包含NaN或Infinite`), oe(t.lat <= e.lat, `sw.lat(${t.lat})应该比ne.lat(${e.lat})小`), this.coord = t.coord;
250
250
  }
251
251
  static isBetweenLng(t, e, r) {
@@ -320,15 +320,15 @@ const te = class {
320
320
  }
321
321
  };
322
322
  let A = te;
323
- c(A, "EMPTY", new te(y.ZERO, y.ZERO));
323
+ h(A, "EMPTY", new te(y.ZERO, y.ZERO));
324
324
  ((i) => {
325
325
  class t {
326
326
  constructor(r) {
327
- c(this, "coord");
328
- c(this, "minLat");
329
- c(this, "minLng");
330
- c(this, "maxLat");
331
- c(this, "maxLng");
327
+ h(this, "coord");
328
+ h(this, "minLat");
329
+ h(this, "minLng");
330
+ h(this, "maxLat");
331
+ h(this, "maxLng");
332
332
  this.coord = r.coord, this.minLat = this.maxLat = r.lat, this.minLng = this.maxLng = r.lng;
333
333
  }
334
334
  build() {
@@ -470,45 +470,49 @@ var tt;
470
470
  })(tt || (tt = {}));
471
471
  var he;
472
472
  ((i) => {
473
- function t(h, o) {
474
- return h.length === o.length && h.every((l, d) => l === o[d]);
473
+ function t(o, l) {
474
+ return o.length === l.length && o.every((c, u) => c === l[u]);
475
475
  }
476
476
  i.equals = t;
477
- function e(h, o) {
478
- const l = h.indexOf(o);
479
- if (l !== -1)
480
- return h.splice(l, 1)[0];
477
+ function e(o, l) {
478
+ const c = o.indexOf(l);
479
+ if (c !== -1)
480
+ return o.splice(c, 1)[0];
481
481
  }
482
482
  i.remove = e;
483
- function r(h, o) {
484
- for (const l of h)
485
- if (l instanceof o)
486
- return l;
483
+ function r(o, l) {
484
+ for (const c of o)
485
+ if (c instanceof l)
486
+ return c;
487
487
  }
488
488
  i.findByType = r;
489
- function s(h, o) {
490
- return h.includes(o);
489
+ function s(o, l) {
490
+ return o.includes(l);
491
491
  }
492
492
  i.includesTyped = s;
493
- function n(h, o, l) {
494
- const d = o >= 0 ? o : h.length + o;
495
- if (l === void 0)
496
- return h[d];
497
- h[d] = l;
493
+ function n(o, l, c) {
494
+ const u = l >= 0 ? l : o.length + l;
495
+ if (c === void 0)
496
+ return o[u];
497
+ o[u] = c;
498
498
  }
499
499
  i.at = n;
500
- function a(h) {
501
- return h.length > 0;
500
+ function a(o) {
501
+ return o.length > 0;
502
502
  }
503
503
  i.isNotEmpty = a;
504
+ function d(o) {
505
+ return !(o != null && o.length);
506
+ }
507
+ i.isNullOrEmpty = d;
504
508
  })(he || (he = {}));
505
509
  var ce;
506
510
  ((i) => {
507
511
  function t(s, n) {
508
512
  const a = s.getLength();
509
- for (let h = 0; h < a; h++)
510
- if (s.getAt(h) === n)
511
- return h;
513
+ for (let d = 0; d < a; d++)
514
+ if (s.getAt(d) === n)
515
+ return d;
512
516
  return -1;
513
517
  }
514
518
  i.indexOf = t;
@@ -541,8 +545,8 @@ function zt(i, t, e) {
541
545
  }
542
546
  class rr {
543
547
  constructor(t, e) {
544
- c(this, "eventMap", /* @__PURE__ */ new Map());
545
- c(this, "target", void 0);
548
+ h(this, "eventMap", /* @__PURE__ */ new Map());
549
+ h(this, "target", void 0);
546
550
  this.inner = t, this.coordTypeSupplier = e, this.addEventListener = this.addEventListener.bind(this), this.removeEventListener = this.removeEventListener.bind(this);
547
551
  }
548
552
  setTarget(t) {
@@ -551,7 +555,7 @@ class rr {
551
555
  }
552
556
  class He {
553
557
  constructor(t, e) {
554
- c(this, "eventHub", new ir());
558
+ h(this, "eventHub", new ir());
555
559
  this.delegate = t, this.options = e;
556
560
  }
557
561
  notify(t) {
@@ -602,7 +606,7 @@ const At = class extends rr {
602
606
  };
603
607
  let re = At;
604
608
  // 事件类型映射: tg => google
605
- c(re, "EVENT_TYPE_MAP", {
609
+ h(re, "EVENT_TYPE_MAP", {
606
610
  "center-changed": "center_changed",
607
611
  "zoom-changed": "zoom_changed",
608
612
  "radius-changed": "radius_changed",
@@ -643,7 +647,7 @@ const Ne = class extends rr {
643
647
  let ae = Ne;
644
648
  // cSpell:words clickclose
645
649
  // 事件类型映射, tg => baidu
646
- c(ae, "EVENT_TYPE_MAP", {
650
+ h(ae, "EVENT_TYPE_MAP", {
647
651
  drag: "dragging",
648
652
  closeclick: "clickclose",
649
653
  // baidu不支持contextmenu事件, 将其映射为rightclick
@@ -653,7 +657,7 @@ c(ae, "EVENT_TYPE_MAP", {
653
657
  });
654
658
  class ir {
655
659
  constructor() {
656
- c(this, "typeMap", /* @__PURE__ */ new Map());
660
+ h(this, "typeMap", /* @__PURE__ */ new Map());
657
661
  }
658
662
  addEventListener(t, e) {
659
663
  let r = this.typeMap.get(t);
@@ -677,8 +681,8 @@ class Nt {
677
681
  * `keys`和`values`数组中可以有相同的值, 若存在相同值, 则index越小的优先级越高
678
682
  */
679
683
  constructor(t, e) {
680
- c(this, "keyToValue", /* @__PURE__ */ new Map());
681
- c(this, "valueToKey", /* @__PURE__ */ new Map());
684
+ h(this, "keyToValue", /* @__PURE__ */ new Map());
685
+ h(this, "valueToKey", /* @__PURE__ */ new Map());
682
686
  oe(t.length === e.length);
683
687
  for (let r = t.length - 1; r >= 0; r--)
684
688
  this.keyToValue.set(t[r], e[r]), this.valueToKey.set(e[r], t[r]);
@@ -692,7 +696,7 @@ class Nt {
692
696
  }
693
697
  class li {
694
698
  constructor(t, e = 10) {
695
- c(this, "map", /* @__PURE__ */ new Map());
699
+ h(this, "map", /* @__PURE__ */ new Map());
696
700
  this.values = t, this.maxSize4Debug = e;
697
701
  }
698
702
  /** 获取保存key-value映射的Map */
@@ -721,7 +725,7 @@ class li {
721
725
  }
722
726
  class fe {
723
727
  constructor(t) {
724
- c(this, "value");
728
+ h(this, "value");
725
729
  this.creator = t;
726
730
  }
727
731
  get() {
@@ -797,7 +801,7 @@ var I = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
797
801
  class hi {
798
802
  constructor(t) {
799
803
  /** 实际添加到地图中的control对象 */
800
- c(this, "inner");
804
+ h(this, "inner");
801
805
  this.position = t;
802
806
  }
803
807
  }
@@ -829,8 +833,8 @@ class ot extends sr {
829
833
  class at extends sr {
830
834
  constructor(e, r) {
831
835
  super();
832
- c(this, "visible", !1);
833
- c(this, "map");
836
+ h(this, "visible", !1);
837
+ h(this, "map");
834
838
  this._type = e, this.position = r;
835
839
  }
836
840
  isVisible() {
@@ -890,14 +894,14 @@ class S {
890
894
  }
891
895
  class Ns {
892
896
  constructor(t, e) {
893
- c(this, "baiduLayerCached", new fe(() => {
897
+ h(this, "baiduLayerCached", new fe(() => {
894
898
  const t = new BMap.TileLayer({});
895
899
  return t.getTilesUrl = (e, r) => {
896
900
  const s = Math.pow(2, r - 1), n = e.x + s, a = s - 1 - e.y;
897
901
  return this.options.getTileUrl({ x: n, y: a }, r);
898
902
  }, t;
899
903
  }));
900
- c(this, "baiduMapTypeCached", new fe(() => {
904
+ h(this, "baiduMapTypeCached", new fe(() => {
901
905
  const t = new BMap.MapType(this.options.name, this.baiduLayerCached.get(), {
902
906
  maxZoom: this.options.maxZoom,
903
907
  minZoom: this.options.minZoom,
@@ -905,7 +909,7 @@ class Ns {
905
909
  });
906
910
  return t.__baidu_map_type__ = this, t;
907
911
  }));
908
- c(this, "googleCached", new fe(() => {
912
+ h(this, "googleCached", new fe(() => {
909
913
  const t = new google.maps.ImageMapType({
910
914
  getTileUrl: (e, r) => this.options.getTileUrl(e, r),
911
915
  tileSize: new google.maps.Size(256, 256),
@@ -942,8 +946,8 @@ class Ns {
942
946
  }
943
947
  class ci {
944
948
  constructor() {
945
- c(this, "baiduCache", new fe(() => new BMap.TrafficLayer()));
946
- c(this, "googleCache", new fe(() => new google.maps.TrafficLayer()));
949
+ h(this, "baiduCache", new fe(() => new BMap.TrafficLayer()));
950
+ h(this, "googleCache", new fe(() => new google.maps.TrafficLayer()));
947
951
  }
948
952
  asBaiduLayer() {
949
953
  return this.baiduCache.get();
@@ -999,7 +1003,7 @@ const ne = class extends at {
999
1003
  }
1000
1004
  };
1001
1005
  let ke = ne;
1002
- c(ke, "type2google");
1006
+ h(ke, "type2google");
1003
1007
  class ht extends ot {
1004
1008
  static create(t) {
1005
1009
  const e = new BMap.ScaleControl({
@@ -1036,12 +1040,12 @@ class ut extends at {
1036
1040
  }
1037
1041
  function di(i) {
1038
1042
  let t, e, r;
1039
- const s = "The Google Maps JavaScript API", n = "google", a = "importLibrary", h = "__ib__", o = document, l = window, d = l[n] || (l[n] = {}), u = d.maps || (d.maps = {}), p = /* @__PURE__ */ new Set(), b = new URLSearchParams(), _ = () => t || (t = new Promise(async (T, g) => {
1043
+ const s = "The Google Maps JavaScript API", n = "google", a = "importLibrary", d = "__ib__", o = document, l = window, c = l[n] || (l[n] = {}), u = c.maps || (c.maps = {}), p = /* @__PURE__ */ new Set(), b = new URLSearchParams(), _ = () => t || (t = new Promise(async (T, g) => {
1040
1044
  var f;
1041
1045
  await (e = o.createElement("script")), b.set("libraries", [...p] + "");
1042
1046
  for (r in i)
1043
1047
  b.set(r.replace(/[A-Z]/g, (v) => "_" + v[0].toLowerCase()), i[r]);
1044
- b.set("callback", n + ".maps." + h), e.src = `https://maps.${n}apis.com/maps/api/js?` + b, u[h] = T, e.onerror = () => t = g(Error(s + " could not load.")), e.nonce = ((f = o.querySelector("script[nonce]")) == null ? void 0 : f.nonce) || "", o.head.append(e);
1048
+ b.set("callback", n + ".maps." + d), e.src = `https://maps.${n}apis.com/maps/api/js?` + b, u[d] = T, e.onerror = () => t = g(Error(s + " could not load.")), e.nonce = ((f = o.querySelector("script[nonce]")) == null ? void 0 : f.nonce) || "", o.head.append(e);
1045
1049
  }));
1046
1050
  u[a] ? console.warn(s + " only loads once. Ignoring:", i) : u[a] = (T, ...g) => p.add(T) && _().then(() => u[a](T, ...g));
1047
1051
  }
@@ -1098,7 +1102,7 @@ class cr {
1098
1102
  class gi extends cr {
1099
1103
  constructor(e, r) {
1100
1104
  super();
1101
- c(this, "inner");
1105
+ h(this, "inner");
1102
1106
  this.map = e, this.inner = new google.maps.places.Autocomplete(r.input, {
1103
1107
  fields: [
1104
1108
  "address_components",
@@ -1128,10 +1132,10 @@ class gi extends cr {
1128
1132
  class mi extends cr {
1129
1133
  constructor(e, r) {
1130
1134
  super();
1131
- c(this, "inner");
1132
- c(this, "input");
1135
+ h(this, "inner");
1136
+ h(this, "input");
1133
1137
  // TODO: 要不要添加个移除监听的方法?
1134
- c(this, "removeableArray", []);
1138
+ h(this, "removeableArray", []);
1135
1139
  if (this.map = e, this.input = r.input, this.inner = new BMap.Autocomplete({
1136
1140
  input: r.input,
1137
1141
  location: r.bindToMap ? e.innerMap : void 0
@@ -1148,12 +1152,12 @@ class mi extends cr {
1148
1152
  addResultListener(e) {
1149
1153
  let r = 0;
1150
1154
  const s = oi(this.inner, "confirm", (a) => {
1151
- const h = a.item.value;
1155
+ const d = a.item.value;
1152
1156
  r = Date.now(), e(Object.assign({
1153
- title: h.business,
1157
+ title: d.business,
1154
1158
  country: ""
1155
1159
  // Baidu的自动完成只支持中国
1156
- }, h));
1160
+ }, d));
1157
1161
  }), n = ai(this.input, "keyup", (a) => {
1158
1162
  a.key === "Enter" && Date.now() - r > 100 && e({
1159
1163
  title: this.input.value,
@@ -1188,11 +1192,11 @@ const Rt = class extends dr {
1188
1192
  }
1189
1193
  };
1190
1194
  let Ie = Rt;
1191
- c(Ie, "BASE_URL", "https://www.google.com/maps/");
1195
+ h(Ie, "BASE_URL", "https://www.google.com/maps/");
1192
1196
  const $t = class extends dr {
1193
1197
  /** @see https://lbsyun.baidu.com/faq/api?title=webapi/uri/web#:~:text=%E6%9C%8D%E5%8A%A1%E5%9C%B0%E5%9D%80-,http%3A//api.map.baidu.com/direction,-//PC%26Webapp%E6%9C%8D%E5%8A%A1 */
1194
1198
  directions(t, e, r = "driving") {
1195
- const s = new URL("direction", $t.BASE_URL), n = K.getCoordType(e) ?? K.getCoordType(t) ?? B.bd09, a = K.toString(e, n), h = new URLSearchParams(Object.entries({
1199
+ const s = new URL("direction", $t.BASE_URL), n = K.getCoordType(e) ?? K.getCoordType(t) ?? B.bd09, a = K.toString(e, n), d = new URLSearchParams(Object.entries({
1196
1200
  // baidu地图, 一定要有起点, 故这里用终点当起点, 防止导航失败
1197
1201
  origin: K.toString(t, n) ?? (typeof e != "string" ? `name:请选择起点|latlng:${a}` : a),
1198
1202
  destination: a,
@@ -1203,11 +1207,11 @@ const $t = class extends dr {
1203
1207
  region: "中国",
1204
1208
  src: window.location.hostname
1205
1209
  }).filter(Kt));
1206
- return s.search = "?" + h.toString(), s;
1210
+ return s.search = "?" + d.toString(), s;
1207
1211
  }
1208
1212
  };
1209
1213
  let Be = $t;
1210
- c(Be, "BASE_URL", "https://api.map.baidu.com/");
1214
+ h(Be, "BASE_URL", "https://api.map.baidu.com/");
1211
1215
  let fi = class ur {
1212
1216
  constructor(t, e, r) {
1213
1217
  this.extend(ur, google.maps.OverlayView), this.map_ = t, this.MARKER_CLUSTER_IMAGE_PATH_ = "../images/m", this.MARKER_CLUSTER_IMAGE_EXTENSION_ = "png", this.markers_ = [], this.clusters_ = [], this.sizes = [53, 56, 66, 78, 90], this.styles_ = [], this.ready_ = !1;
@@ -1215,11 +1219,11 @@ let fi = class ur {
1215
1219
  this.zIndex_ = s.zIndex || google.maps.Marker.MAX_ZINDEX + 1, this.gridSize_ = s.gridSize || 60, this.minClusterSize_ = s.minimumClusterSize || 2, this.maxZoom_ = s.maxZoom || null, this.styles_ = s.styles || [], this.imagePath_ = s.imagePath || this.MARKER_CLUSTER_IMAGE_PATH_, this.imageExtension_ = s.imageExtension || this.MARKER_CLUSTER_IMAGE_EXTENSION_, this.zoomOnClick_ = !0, s.zoomOnClick != null && (this.zoomOnClick_ = s.zoomOnClick), this.averageCenter_ = !1, s.averageCenter != null && (this.averageCenter_ = s.averageCenter), this.setupStyles_(), this.setMap(t), this.prevZoom_ = this.map_.getZoom();
1216
1220
  var n = this;
1217
1221
  google.maps.event.addListener(this.map_, "zoom_changed", function() {
1218
- var a = n.map_.getZoom(), h = n.map_.minZoom || 0, o = Math.min(
1222
+ var a = n.map_.getZoom(), d = n.map_.minZoom || 0, o = Math.min(
1219
1223
  n.map_.maxZoom || 100,
1220
1224
  n.map_.mapTypes[n.map_.getMapTypeId()].maxZoom
1221
1225
  );
1222
- a = Math.min(Math.max(a, h), o), n.prevZoom_ != a && (n.prevZoom_ = a, n.resetViewport());
1226
+ a = Math.min(Math.max(a, d), o), n.prevZoom_ != a && (n.prevZoom_ = a, n.resetViewport());
1223
1227
  }), google.maps.event.addListener(this.map_, "idle", function() {
1224
1228
  n.redraw();
1225
1229
  }), e && (e.length || Object.keys(e).length) && this.addMarkers(e, !1);
@@ -1462,8 +1466,8 @@ let fi = class ur {
1462
1466
  */
1463
1467
  removeMarkers(t, e) {
1464
1468
  for (var r = t === this.getMarkers() ? t.slice() : t, s = !1, n = 0, a; a = r[n]; n++) {
1465
- var h = this.removeMarker_(a);
1466
- s = s || h;
1469
+ var d = this.removeMarker_(a);
1470
+ s = s || d;
1467
1471
  }
1468
1472
  if (!e && s)
1469
1473
  return this.resetViewport(), this.redraw(), !0;
@@ -1550,8 +1554,8 @@ let fi = class ur {
1550
1554
  n.x += this.gridSize_, n.y -= this.gridSize_;
1551
1555
  var a = e.fromLatLngToDivPixel(s);
1552
1556
  a.x -= this.gridSize_, a.y += this.gridSize_;
1553
- var h = e.fromDivPixelToLatLng(n), o = e.fromDivPixelToLatLng(a);
1554
- return t.extend(h), t.extend(o), t;
1557
+ var d = e.fromDivPixelToLatLng(n), o = e.fromDivPixelToLatLng(a);
1558
+ return t.extend(d), t.extend(o), t;
1555
1559
  }
1556
1560
  /**
1557
1561
  * Determins if a marker is contained in a bounds.
@@ -1609,7 +1613,7 @@ let fi = class ur {
1609
1613
  distanceBetweenPoints_(t, e) {
1610
1614
  if (!t || !e)
1611
1615
  return 0;
1612
- var r = 6371, s = (e.lat() - t.lat()) * Math.PI / 180, n = (e.lng() - t.lng()) * Math.PI / 180, a = Math.sin(s / 2) * Math.sin(s / 2) + Math.cos(t.lat() * Math.PI / 180) * Math.cos(e.lat() * Math.PI / 180) * Math.sin(n / 2) * Math.sin(n / 2), h = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)), o = r * h;
1616
+ var r = 6371, s = (e.lat() - t.lat()) * Math.PI / 180, n = (e.lng() - t.lng()) * Math.PI / 180, a = Math.sin(s / 2) * Math.sin(s / 2) + Math.cos(t.lat() * Math.PI / 180) * Math.cos(e.lat() * Math.PI / 180) * Math.sin(n / 2) * Math.sin(n / 2), d = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)), o = r * d;
1613
1617
  return o;
1614
1618
  }
1615
1619
  /**
@@ -1622,8 +1626,8 @@ let fi = class ur {
1622
1626
  for (var e = 4e4, r = null, s = 0, n; n = this.clusters_[s]; s++) {
1623
1627
  var a = n.getCenter();
1624
1628
  if (a) {
1625
- var h = this.distanceBetweenPoints_(a, t.getPosition());
1626
- h < e && (e = h, r = n);
1629
+ var d = this.distanceBetweenPoints_(a, t.getPosition());
1630
+ d < e && (e = d, r = n);
1627
1631
  }
1628
1632
  }
1629
1633
  if (r && r.isMarkerInClusterBounds(t))
@@ -1931,55 +1935,55 @@ var pr = { exports: {} };
1931
1935
  return r.lang.isString(o) ? document.getElementById(o) : o;
1932
1936
  }, r._g = r.dom._g, r.browser = r.browser || {}, /msie (\d+\.\d)/i.test(navigator.userAgent) && (r.browser.ie = r.ie = document.documentMode || +RegExp.$1), r.dom.getComputedStyle = function(o, l) {
1933
1937
  o = r.dom._g(o);
1934
- var d = r.dom.getDocument(o), u;
1935
- return d.defaultView && d.defaultView.getComputedStyle && (u = d.defaultView.getComputedStyle(o, null), u) ? u[l] || u.getPropertyValue(l) : "";
1936
- }, r.dom._styleFixer = r.dom._styleFixer || {}, r.dom._styleFilter = r.dom._styleFilter || [], r.dom._styleFilter.filter = function(o, l, d) {
1938
+ var c = r.dom.getDocument(o), u;
1939
+ return c.defaultView && c.defaultView.getComputedStyle && (u = c.defaultView.getComputedStyle(o, null), u) ? u[l] || u.getPropertyValue(l) : "";
1940
+ }, r.dom._styleFixer = r.dom._styleFixer || {}, r.dom._styleFilter = r.dom._styleFilter || [], r.dom._styleFilter.filter = function(o, l, c) {
1937
1941
  for (var u = 0, p = r.dom._styleFilter, b; b = p[u]; u++)
1938
- (b = b[d]) && (l = b(o, l));
1942
+ (b = b[c]) && (l = b(o, l));
1939
1943
  return l;
1940
1944
  }, r.string = r.string || {}, r.string.toCamelCase = function(o) {
1941
1945
  return o.indexOf("-") < 0 && o.indexOf("_") < 0 ? o : o.replace(/[-_][^-_]/g, function(l) {
1942
1946
  return l.charAt(1).toUpperCase();
1943
1947
  });
1944
1948
  }, r.dom.getStyle = function(o, l) {
1945
- var d = r.dom;
1946
- o = d.g(o), l = r.string.toCamelCase(l);
1947
- var u = o.style[l] || (o.currentStyle ? o.currentStyle[l] : "") || d.getComputedStyle(o, l);
1949
+ var c = r.dom;
1950
+ o = c.g(o), l = r.string.toCamelCase(l);
1951
+ var u = o.style[l] || (o.currentStyle ? o.currentStyle[l] : "") || c.getComputedStyle(o, l);
1948
1952
  if (!u) {
1949
- var p = d._styleFixer[l];
1953
+ var p = c._styleFixer[l];
1950
1954
  p && (u = p.get ? p.get(o) : r.dom.getStyle(o, p));
1951
1955
  }
1952
- return (p = d._styleFilter) && (u = p.filter(l, u, "get")), u;
1956
+ return (p = c._styleFilter) && (u = p.filter(l, u, "get")), u;
1953
1957
  }, r.getStyle = r.dom.getStyle, /opera\/(\d+\.\d)/i.test(navigator.userAgent) && (r.browser.opera = +RegExp.$1), r.browser.isWebkit = /webkit/i.test(navigator.userAgent), r.browser.isGecko = /gecko/i.test(navigator.userAgent) && !/like gecko/i.test(navigator.userAgent), r.browser.isStrict = document.compatMode == "CSS1Compat", r.dom.getPosition = function(o) {
1954
1958
  o = r.dom.g(o);
1955
- var l = r.dom.getDocument(o), d = r.browser, u = r.dom.getStyle;
1956
- d.isGecko > 0 && l.getBoxObjectFor && u(o, "position") == "absolute" && (o.style.top === "" || o.style.left);
1957
- var p = { left: 0, top: 0 }, b = d.ie && !d.isStrict ? l.body : l.documentElement, _, T;
1959
+ var l = r.dom.getDocument(o), c = r.browser, u = r.dom.getStyle;
1960
+ c.isGecko > 0 && l.getBoxObjectFor && u(o, "position") == "absolute" && (o.style.top === "" || o.style.left);
1961
+ var p = { left: 0, top: 0 }, b = c.ie && !c.isStrict ? l.body : l.documentElement, _, T;
1958
1962
  if (o == b)
1959
1963
  return p;
1960
1964
  if (o.getBoundingClientRect) {
1961
1965
  T = o.getBoundingClientRect(), p.left = Math.floor(T.left) + Math.max(l.documentElement.scrollLeft, l.body.scrollLeft), p.top = Math.floor(T.top) + Math.max(l.documentElement.scrollTop, l.body.scrollTop), p.left -= l.documentElement.clientLeft, p.top -= l.documentElement.clientTop;
1962
1966
  var g = l.body, f = parseInt(u(g, "borderLeftWidth")), v = parseInt(u(g, "borderTopWidth"));
1963
- d.ie && !d.isStrict && (p.left -= isNaN(f) ? 2 : f, p.top -= isNaN(v) ? 2 : v);
1967
+ c.ie && !c.isStrict && (p.left -= isNaN(f) ? 2 : f, p.top -= isNaN(v) ? 2 : v);
1964
1968
  } else {
1965
1969
  _ = o;
1966
1970
  do {
1967
- if (p.left += _.offsetLeft, p.top += _.offsetTop, d.isWebkit > 0 && u(_, "position") == "fixed") {
1971
+ if (p.left += _.offsetLeft, p.top += _.offsetTop, c.isWebkit > 0 && u(_, "position") == "fixed") {
1968
1972
  p.left += l.body.scrollLeft, p.top += l.body.scrollTop;
1969
1973
  break;
1970
1974
  }
1971
1975
  _ = _.offsetParent;
1972
1976
  } while (_ && _ != o);
1973
- for ((d.opera > 0 || d.isWebkit > 0 && u(o, "position") == "absolute") && (p.top -= l.body.offsetTop), _ = o.offsetParent; _ && _ != l.body; )
1974
- p.left -= _.scrollLeft, (!d.opera || _.tagName != "TR") && (p.top -= _.scrollTop), _ = _.offsetParent;
1977
+ for ((c.opera > 0 || c.isWebkit > 0 && u(o, "position") == "absolute") && (p.top -= l.body.offsetTop), _ = o.offsetParent; _ && _ != l.body; )
1978
+ p.left -= _.scrollLeft, (!c.opera || _.tagName != "TR") && (p.top -= _.scrollTop), _ = _.offsetParent;
1975
1979
  }
1976
1980
  return p;
1977
- }, r.event = r.event || {}, r.event._listeners = r.event._listeners || [], r.event.on = function(o, l, d) {
1981
+ }, r.event = r.event || {}, r.event._listeners = r.event._listeners || [], r.event.on = function(o, l, c) {
1978
1982
  l = l.replace(/^on/i, ""), o = r.dom._g(o);
1979
1983
  var u = function(g) {
1980
- d.call(o, g);
1984
+ c.call(o, g);
1981
1985
  }, p = r.event._listeners, b = r.event._eventFilter, _, T = l;
1982
- return l = l.toLowerCase(), b && b[l] && (_ = b[l](o, l, u), T = _.type, u = _.listener), o.addEventListener ? o.addEventListener(T, u, !1) : o.attachEvent && o.attachEvent("on" + T, u), p[p.length] = [o, l, d, u, T], o;
1986
+ return l = l.toLowerCase(), b && b[l] && (_ = b[l](o, l, u), T = _.type, u = _.listener), o.addEventListener ? o.addEventListener(T, u, !1) : o.attachEvent && o.attachEvent("on" + T, u), p[p.length] = [o, l, c, u, T], o;
1983
1987
  }, r.on = r.event.on, function() {
1984
1988
  var o = s[r.guid];
1985
1989
  r.lang.guid = function() {
@@ -1998,87 +2002,87 @@ var pr = { exports: {} };
1998
2002
  return "[object " + (this._className || "Object") + "]";
1999
2003
  }, r.lang.Event = function(o, l) {
2000
2004
  this.type = o, this.returnValue = !0, this.target = l || null, this.currentTarget = null;
2001
- }, r.lang.Class.prototype.addEventListener = function(o, l, d) {
2005
+ }, r.lang.Class.prototype.addEventListener = function(o, l, c) {
2002
2006
  if (r.lang.isFunction(l)) {
2003
2007
  !this.__listeners && (this.__listeners = {});
2004
2008
  var u = this.__listeners, p;
2005
- if (typeof d == "string" && d) {
2006
- if (/[^\w\-]/.test(d))
2007
- throw "nonstandard key:" + d;
2008
- l.hashCode = d, p = d;
2009
+ if (typeof c == "string" && c) {
2010
+ if (/[^\w\-]/.test(c))
2011
+ throw "nonstandard key:" + c;
2012
+ l.hashCode = c, p = c;
2009
2013
  }
2010
2014
  o.indexOf("on") != 0 && (o = "on" + o), typeof u[o] != "object" && (u[o] = {}), p = p || r.lang.guid(), l.hashCode = p, u[o][p] = l;
2011
2015
  }
2012
2016
  }, r.lang.Class.prototype.removeEventListener = function(o, l) {
2013
2017
  if (!(typeof l < "u" && (r.lang.isFunction(l) && !(l = l.hashCode) || !r.lang.isString(l)))) {
2014
2018
  !this.__listeners && (this.__listeners = {}), o.indexOf("on") != 0 && (o = "on" + o);
2015
- var d = this.__listeners;
2016
- if (d[o])
2019
+ var c = this.__listeners;
2020
+ if (c[o])
2017
2021
  if (typeof l < "u")
2018
- d[o][l] && delete d[o][l];
2022
+ c[o][l] && delete c[o][l];
2019
2023
  else
2020
- for (var u in d[o])
2021
- delete d[o][u];
2024
+ for (var u in c[o])
2025
+ delete c[o][u];
2022
2026
  }
2023
2027
  }, r.lang.Class.prototype.dispatchEvent = function(o, l) {
2024
2028
  r.lang.isString(o) && (o = new r.lang.Event(o)), !this.__listeners && (this.__listeners = {}), l = l || {};
2025
- for (var d in l)
2026
- o[d] = l[d];
2027
- var d, u = this.__listeners, p = o.type;
2029
+ for (var c in l)
2030
+ o[c] = l[c];
2031
+ var c, u = this.__listeners, p = o.type;
2028
2032
  if (o.target = o.target || this, o.currentTarget = this, p.indexOf("on") != 0 && (p = "on" + p), r.lang.isFunction(this[p]) && this[p].apply(this, arguments), typeof u[p] == "object")
2029
- for (d in u[p])
2030
- u[p][d].apply(this, arguments);
2033
+ for (c in u[p])
2034
+ u[p][c].apply(this, arguments);
2031
2035
  return o.returnValue;
2032
- }, r.lang.inherits = function(o, l, d) {
2036
+ }, r.lang.inherits = function(o, l, c) {
2033
2037
  var u, p, b = o.prototype, _ = new Function();
2034
2038
  _.prototype = l.prototype, p = o.prototype = new _();
2035
2039
  for (u in b)
2036
2040
  p[u] = b[u];
2037
- o.prototype.constructor = o, o.superClass = l.prototype, typeof d == "string" && (p._className = d);
2041
+ o.prototype.constructor = o, o.superClass = l.prototype, typeof c == "string" && (p._className = c);
2038
2042
  }, r.inherits = r.lang.inherits;
2039
- var n = "http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m", a = "png", h = function(o, l, d) {
2043
+ var n = "http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m", a = "png", d = function(o, l, c) {
2040
2044
  try {
2041
2045
  BMap;
2042
2046
  } catch {
2043
2047
  throw Error("Baidu Map JS API is not ready yet!");
2044
2048
  }
2045
- e.lang.inherits(h, BMap.Overlay, "TextIconOverlay"), this._position = o, this._text = l, this._options = d || {}, this._styles = this._options.styles || [], this._zIndex = this._options.zIndex, !this._styles.length && this._setupDefaultStyles();
2049
+ e.lang.inherits(d, BMap.Overlay, "TextIconOverlay"), this._position = o, this._text = l, this._options = c || {}, this._styles = this._options.styles || [], this._zIndex = this._options.zIndex, !this._styles.length && this._setupDefaultStyles();
2046
2050
  };
2047
- return h.prototype._setupDefaultStyles = function() {
2048
- for (var o = [53, 56, 66, 78, 90], l = 0, d; d = o[l]; l++)
2051
+ return d.prototype._setupDefaultStyles = function() {
2052
+ for (var o = [53, 56, 66, 78, 90], l = 0, c; c = o[l]; l++)
2049
2053
  this._styles.push({
2050
2054
  url: n + l + "." + a,
2051
- size: new BMap.Size(d, d)
2055
+ size: new BMap.Size(c, c)
2052
2056
  });
2053
- }, h.prototype.initialize = function(o) {
2057
+ }, d.prototype.initialize = function(o) {
2054
2058
  return this._map = o, this._domElement = document.createElement("div"), this._updateCss(), this._updateText(), this._updatePosition(), this._bind(), this._map.getPanes().markerMouseTarget.appendChild(this._domElement), this._domElement;
2055
- }, h.prototype.draw = function() {
2059
+ }, d.prototype.draw = function() {
2056
2060
  this._map && this._updatePosition();
2057
- }, h.prototype.getText = function() {
2061
+ }, d.prototype.getText = function() {
2058
2062
  return this._text;
2059
- }, h.prototype.setText = function(o) {
2063
+ }, d.prototype.setText = function(o) {
2060
2064
  o && (!this._text || this._text.toString() != o.toString()) && (this._text = o, this._updateText(), this._updateCss(), this._updatePosition());
2061
- }, h.prototype.getPosition = function() {
2065
+ }, d.prototype.getPosition = function() {
2062
2066
  return this._position;
2063
- }, h.prototype.setPosition = function(o) {
2067
+ }, d.prototype.setPosition = function(o) {
2064
2068
  o && (!this._position || !this._position.equals(o)) && (this._position = o, this._updatePosition());
2065
- }, h.prototype.getStyleByText = function(o, l) {
2066
- var d = parseInt(o), u = parseInt(d / 10);
2069
+ }, d.prototype.getStyleByText = function(o, l) {
2070
+ var c = parseInt(o), u = parseInt(c / 10);
2067
2071
  return u = Math.max(0, u), u = Math.min(u, l.length - 1), l[u];
2068
- }, h.prototype._updateCss = function() {
2072
+ }, d.prototype._updateCss = function() {
2069
2073
  if (this._domElement) {
2070
2074
  var o = this.getStyleByText(this._text, this._styles);
2071
2075
  this._domElement.style.cssText = this._buildCssText(o);
2072
2076
  }
2073
- }, h.prototype._updateText = function() {
2077
+ }, d.prototype._updateText = function() {
2074
2078
  this._domElement && (this._domElement.innerHTML = this._text);
2075
- }, h.prototype._updatePosition = function() {
2079
+ }, d.prototype._updatePosition = function() {
2076
2080
  if (this._domElement && this._position) {
2077
2081
  var o = this._domElement.style, l = this._map.pointToOverlayPixel(this._position);
2078
2082
  l.x -= Math.ceil(parseInt(o.width) / 2), l.y -= Math.ceil(parseInt(o.height) / 2), o.left = l.x + "px", o.top = l.y + "px";
2079
2083
  }
2080
- }, h.prototype._buildCssText = function(o) {
2081
- var l = o.url, d = o.size, u = o.anchor, p = o.offset, b = o.textColor || "black", _ = o.textSize || 10, T = [];
2084
+ }, d.prototype._buildCssText = function(o) {
2085
+ var l = o.url, c = o.size, u = o.anchor, p = o.offset, b = o.textColor || "black", _ = o.textSize || 10, T = [];
2082
2086
  if (this._zIndex && T.push("z-index:" + this._zIndex + ";"), e.browser.ie < 7)
2083
2087
  T.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="' + l + '");');
2084
2088
  else {
@@ -2086,11 +2090,11 @@ var pr = { exports: {} };
2086
2090
  var g = "0 0";
2087
2091
  p instanceof BMap.Size && (g = p.width + "px " + p.height + "px"), T.push("background-position:" + g + ";");
2088
2092
  }
2089
- return d instanceof BMap.Size && (u instanceof BMap.Size ? (u.height > 0 && u.height < d.height && T.push("height:" + (d.height - u.height) + "px; padding-top:" + u.height + "px;"), u.width > 0 && u.width < d.width && T.push("width:" + (d.width - u.width) + "px; padding-left:" + u.width + "px;")) : (T.push("height:" + d.height + "px; line-height:" + d.height + "px;"), T.push("width:" + d.width + "px; text-align:center;"))), T.push("cursor:pointer; color:" + b + "; position:absolute; font-size:" + _ + "px; font-family:Arial,sans-serif; font-weight:bold"), T.join("");
2090
- }, h.prototype._bind = function() {
2093
+ return c instanceof BMap.Size && (u instanceof BMap.Size ? (u.height > 0 && u.height < c.height && T.push("height:" + (c.height - u.height) + "px; padding-top:" + u.height + "px;"), u.width > 0 && u.width < c.width && T.push("width:" + (c.width - u.width) + "px; padding-left:" + u.width + "px;")) : (T.push("height:" + c.height + "px; line-height:" + c.height + "px;"), T.push("width:" + c.width + "px; text-align:center;"))), T.push("cursor:pointer; color:" + b + "; position:absolute; font-size:" + _ + "px; font-family:Arial,sans-serif; font-weight:bold"), T.join("");
2094
+ }, d.prototype._bind = function() {
2091
2095
  if (!this._domElement)
2092
2096
  return;
2093
- var o = this, l = this._map, d = e.lang.Event;
2097
+ var o = this, l = this._map, c = e.lang.Event;
2094
2098
  function u(p, b) {
2095
2099
  var _ = p.srcElement || p.target, T = p.clientX || p.pageX, g = p.clientY || p.pageY;
2096
2100
  if (p && b && T && g && _) {
@@ -2100,13 +2104,13 @@ var pr = { exports: {} };
2100
2104
  return b;
2101
2105
  }
2102
2106
  e.event.on(this._domElement, "mouseover", function(p) {
2103
- o.dispatchEvent(u(p, new d("onmouseover")));
2107
+ o.dispatchEvent(u(p, new c("onmouseover")));
2104
2108
  }), e.event.on(this._domElement, "mouseout", function(p) {
2105
- o.dispatchEvent(u(p, new d("onmouseout")));
2109
+ o.dispatchEvent(u(p, new c("onmouseout")));
2106
2110
  }), e.event.on(this._domElement, "click", function(p) {
2107
- o.dispatchEvent(u(p, new d("onclick")));
2111
+ o.dispatchEvent(u(p, new c("onclick")));
2108
2112
  });
2109
- }, h;
2113
+ }, d;
2110
2114
  });
2111
2115
  })(pr);
2112
2116
  var vi = pr.exports;
@@ -2396,7 +2400,7 @@ var Re;
2396
2400
  })(Re || (Re = {}));
2397
2401
  class yr {
2398
2402
  constructor(t) {
2399
- c(this, "inner");
2403
+ h(this, "inner");
2400
2404
  this.map = t;
2401
2405
  }
2402
2406
  /** baidu/google 拥有相同的函数名 */
@@ -2457,10 +2461,10 @@ class Ti extends yr {
2457
2461
  }
2458
2462
  );
2459
2463
  const r = e.stylesIndexCalculator;
2460
- r && this.inner.setCalculator((a, h) => ({
2464
+ r && this.inner.setCalculator((a, d) => ({
2461
2465
  text: a.length,
2462
2466
  // google内部, 取index时, 会`-1`...故我们这里`+1`, 抵消掉它
2463
- index: r(a.length, h) + 1
2467
+ index: r(a.length, d) + 1
2464
2468
  }));
2465
2469
  }
2466
2470
  recreate() {
@@ -2474,7 +2478,7 @@ class vr {
2474
2478
  class Mi extends vr {
2475
2479
  constructor(e, r) {
2476
2480
  super();
2477
- c(this, "inner");
2481
+ h(this, "inner");
2478
2482
  this.map = e, this.inner = new google.maps.places.PlacesService(e.innerMap);
2479
2483
  }
2480
2484
  search(e, r) {
@@ -2501,8 +2505,8 @@ class Mi extends vr {
2501
2505
  // 'address_components', // TODO: 2023/04/28 ipcjs 查询请求不支持该字段...
2502
2506
  ],
2503
2507
  locationBias: r
2504
- }, (a, h) => {
2505
- switch (h) {
2508
+ }, (a, d) => {
2509
+ switch (d) {
2506
2510
  case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:
2507
2511
  case google.maps.places.PlacesServiceStatus.OK: {
2508
2512
  const o = (a ?? []).map((l) => hr(l, this.map));
@@ -2510,7 +2514,7 @@ class Mi extends vr {
2510
2514
  break;
2511
2515
  }
2512
2516
  default:
2513
- n(new Error(`status: ${h}`));
2517
+ n(new Error(`status: ${d}`));
2514
2518
  break;
2515
2519
  }
2516
2520
  });
@@ -2520,8 +2524,8 @@ class Mi extends vr {
2520
2524
  class Oi extends vr {
2521
2525
  constructor(e, r) {
2522
2526
  super();
2523
- c(this, "searchRequestMap", /* @__PURE__ */ new Map());
2524
- c(this, "currentSearch");
2527
+ h(this, "searchRequestMap", /* @__PURE__ */ new Map());
2528
+ h(this, "currentSearch");
2525
2529
  this.map = e;
2526
2530
  }
2527
2531
  get inner() {
@@ -2548,14 +2552,14 @@ class Oi extends vr {
2548
2552
  newSearch(e, r) {
2549
2553
  return new Promise((s, n) => {
2550
2554
  const a = new BMap.LocalSearch(e ?? this.map.innerMap, {
2551
- onSearchComplete: (h) => {
2552
- Array.isArray(h) && nt("当前只支持一次搜索一条数据");
2555
+ onSearchComplete: (d) => {
2556
+ Array.isArray(d) && nt("当前只支持一次搜索一条数据");
2553
2557
  const o = a.getStatus();
2554
2558
  switch (o) {
2555
2559
  case BMAP_STATUS_SUCCESS: {
2556
2560
  const l = [];
2557
- for (let d = 0; d < h.getCurrentNumPois(); d++) {
2558
- const u = h.getPoi(d);
2561
+ for (let c = 0; c < d.getCurrentNumPois(); c++) {
2562
+ const u = d.getPoi(c);
2559
2563
  l.push({
2560
2564
  id: u.uid,
2561
2565
  city: u.city,
@@ -2585,8 +2589,8 @@ class Oi extends vr {
2585
2589
  }
2586
2590
  class _r {
2587
2591
  constructor(t, e) {
2588
- c(this, "onData");
2589
- c(this, "onError");
2592
+ h(this, "onData");
2593
+ h(this, "onError");
2590
2594
  this.map = t, this.input = e;
2591
2595
  }
2592
2596
  /**
@@ -2601,7 +2605,7 @@ class _r {
2601
2605
  class Ci extends _r {
2602
2606
  constructor(e, r) {
2603
2607
  super(e, r.input);
2604
- c(this, "searchBox");
2608
+ h(this, "searchBox");
2605
2609
  this.searchBox = new google.maps.places.SearchBox(r.input), this.searchBox.bindTo("bounds", e.innerMap);
2606
2610
  }
2607
2611
  setSearchListener(e, r) {
@@ -2617,8 +2621,8 @@ class Ci extends _r {
2617
2621
  class wi extends _r {
2618
2622
  constructor(e, r) {
2619
2623
  super(e, r.input);
2620
- c(this, "autocomplete");
2621
- c(this, "placesService");
2624
+ h(this, "autocomplete");
2625
+ h(this, "placesService");
2622
2626
  this.autocomplete = e.createAutocomplete({ input: r.input, bindToMap: !0 }), this.placesService = e.createPlacesService({});
2623
2627
  }
2624
2628
  setSearchListener(e, r) {
@@ -2636,9 +2640,9 @@ class wi extends _r {
2636
2640
  var Ei = /* @__PURE__ */ ((i) => (i[i.WORLD = 1] = "WORLD", i[i.STATE = 5] = "STATE", i[i.CITY = 10] = "CITY", i[i.STREET = 15] = "STREET", i[i.BUILDING = 20] = "BUILDING", i))(Ei || {});
2637
2641
  class gt {
2638
2642
  constructor(t) {
2639
- c(this, "latestInfoWindow");
2643
+ h(this, "latestInfoWindow");
2640
2644
  /** 使用{@link setEventTargetDelegate}初始化 */
2641
- c(this, "delegate", void 0);
2645
+ h(this, "delegate", void 0);
2642
2646
  this.element = t, process.env.NODE_ENV !== "production" && setTimeout(() => {
2643
2647
  this.delegate || console.warn(`${this.constructor.name}继承了AbstractMap, 但未调用setEventTargetDelegate(delegate)`);
2644
2648
  });
@@ -2705,36 +2709,36 @@ function br(i) {
2705
2709
  }
2706
2710
  var be;
2707
2711
  ((i) => {
2708
- function t(h, o) {
2709
- return h.reduce((l, d) => (l[o(d)] = d, l), {});
2712
+ function t(d, o) {
2713
+ return d.reduce((l, c) => (l[o(c)] = c, l), {});
2710
2714
  }
2711
2715
  i.fromArray = t;
2712
- function e(h) {
2713
- return h.reduce((o, l) => (o[l[0]] = l[1], o), {});
2716
+ function e(d) {
2717
+ return d.reduce((o, l) => (o[l[0]] = l[1], o), {});
2714
2718
  }
2715
2719
  i.fromEntries = e;
2716
- function r(h) {
2717
- return JSON.stringify(h, (o, l) => typeof l == "object" && Object.getPrototypeOf(l) !== Object.prototype ? l.toString !== Object.prototype.toString ? l.toString() : `[object ${Object.getPrototypeOf(l).constructor.name}]` : l);
2720
+ function r(d) {
2721
+ return JSON.stringify(d, (o, l) => typeof l == "object" && Object.getPrototypeOf(l) !== Object.prototype ? l.toString !== Object.prototype.toString ? l.toString() : `[object ${Object.getPrototypeOf(l).constructor.name}]` : l);
2718
2722
  }
2719
2723
  i.toJsonSafely = r;
2720
- function s(h) {
2721
- br(h) && Object.keys(h).forEach((o) => {
2722
- h[o] === void 0 ? delete h[o] : s(h[o]);
2724
+ function s(d) {
2725
+ br(d) && Object.keys(d).forEach((o) => {
2726
+ d[o] === void 0 ? delete d[o] : s(d[o]);
2723
2727
  });
2724
2728
  }
2725
2729
  i.deleteUndefinedPropertyOnPlainObjectDeeply = s;
2726
- function n(h, ...o) {
2727
- const l = Wt(o), d = {};
2728
- for (const u in h)
2729
- l(u) || (d[u] = h[u]);
2730
- return d;
2730
+ function n(d, ...o) {
2731
+ const l = Wt(o), c = {};
2732
+ for (const u in d)
2733
+ l(u) || (c[u] = d[u]);
2734
+ return c;
2731
2735
  }
2732
2736
  i.omit = n;
2733
- function a(h, ...o) {
2734
- const l = Wt(o), d = {};
2735
- for (const u in h)
2736
- l(u) && (d[u] = h[u]);
2737
- return d;
2737
+ function a(d, ...o) {
2738
+ const l = Wt(o), c = {};
2739
+ for (const u in d)
2740
+ l(u) && (c[u] = d[u]);
2741
+ return c;
2738
2742
  }
2739
2743
  i.pick = a;
2740
2744
  })(be || (be = {}));
@@ -2761,7 +2765,7 @@ var j = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "g
2761
2765
  })(rt || (rt = {}));
2762
2766
  class Tr {
2763
2767
  constructor(t, e, r) {
2764
- c(this, "_delegate");
2768
+ h(this, "_delegate");
2765
2769
  this.innerOverlay = t, this.coordType = e, this.map = r;
2766
2770
  }
2767
2771
  get delegate() {
@@ -2846,7 +2850,7 @@ let k = Ge;
2846
2850
  * - 透明度为0.7和0.8时, 在maintain的发布模式下, polyline的线条会不可见 (原因未知, 在tg-map中无法复现)
2847
2851
  * 故统一加个0.001, 规避这些问题...
2848
2852
  */
2849
- c(k, "OPACITY_DELTA", 1e-3);
2853
+ h(k, "OPACITY_DELTA", 1e-3);
2850
2854
  class Ve extends mt {
2851
2855
  isEditable() {
2852
2856
  return this.innerOverlay.getEditable();
@@ -2873,22 +2877,22 @@ class Ve extends mt {
2873
2877
  class ft extends k {
2874
2878
  constructor() {
2875
2879
  super(...arguments);
2876
- c(this, "prevCenter");
2877
- c(this, "prevRadius");
2878
- c(this, "isDoingSetCenter", !1);
2879
- c(this, "isDoingSetRadius", !1);
2880
- c(this, "eventHubDelegate");
2881
- c(this, "onRadiusChanged", () => {
2880
+ h(this, "prevCenter");
2881
+ h(this, "prevRadius");
2882
+ h(this, "isDoingSetCenter", !1);
2883
+ h(this, "isDoingSetRadius", !1);
2884
+ h(this, "eventHubDelegate");
2885
+ h(this, "onRadiusChanged", () => {
2882
2886
  var r;
2883
2887
  const e = this.innerOverlay.getRadius();
2884
2888
  this.prevRadius !== e && (this.isDoingSetRadius || (r = this.eventHubDelegate) == null || r.notify({ type: "radius-changed", target: this }), this.prevRadius = e);
2885
2889
  });
2886
- c(this, "onCenterChanged", () => {
2890
+ h(this, "onCenterChanged", () => {
2887
2891
  var r;
2888
2892
  const e = this.innerOverlay.getCenter();
2889
2893
  this.prevCenter !== e && (this.isDoingSetCenter || (r = this.eventHubDelegate) == null || r.notify({ type: "center-changed", target: this }), this.prevCenter = e);
2890
2894
  });
2891
- c(this, "resetEditableTimeoutId");
2895
+ h(this, "resetEditableTimeoutId");
2892
2896
  }
2893
2897
  static create(e) {
2894
2898
  const r = this.coordType, s = new BMap.Circle(e.center.toBaidu(r), e.radius, {
@@ -2982,21 +2986,21 @@ function ki() {
2982
2986
  Mr();
2983
2987
  const i = new BMap.Point(0, 0);
2984
2988
  return class extends BMap.OverlayV3 {
2985
- constructor(r, s = i, n = X.ZERO, a, h = 654, o = "") {
2989
+ constructor(r, s = i, n = X.ZERO, a, d = 654, o = "") {
2986
2990
  super();
2987
2991
  // 类表达式不能有私有成员, 故改成public
2988
- c(this, "container");
2989
- c(this, "border");
2990
- c(this, "inner");
2991
- c(this, "map");
2992
- c(this, "marker");
2992
+ h(this, "container");
2993
+ h(this, "border");
2994
+ h(this, "inner");
2995
+ h(this, "map");
2996
+ h(this, "marker");
2993
2997
  this.content = r, this.position = s, this.offset = n;
2994
2998
  const l = "baidu-info-box-container";
2995
2999
  this.container = document.createElement("div"), this.container.className = l, this.container.style.position = "absolute", this.border = document.createElement("div"), this.border.className = `${l}__border ${o}`, this.inner = document.createElement("div"), this.inner.className = l + "__inner";
2996
- const d = document.createElement("img");
2997
- d.className = l + "__close", d.src = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23000000%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%0A%3C%2Fsvg%3E%0A", d.addEventListener("click", () => {
3000
+ const c = document.createElement("img");
3001
+ c.className = l + "__close", c.src = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23000000%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%0A%3C%2Fsvg%3E%0A", c.addEventListener("click", () => {
2998
3002
  this.close(), this.dispatchEvent({ type: "onclickclose" });
2999
- }), this.inner.appendChild(r), this.border.appendChild(this.inner), this.border.appendChild(d), this.container.appendChild(this.border), a && this.setZIndex(a), this.setMaxWidth(h), this.onMarkerPositionChanged = this.onMarkerPositionChanged.bind(this);
3003
+ }), this.inner.appendChild(r), this.border.appendChild(this.inner), this.border.appendChild(c), this.container.appendChild(this.border), a && this.setZIndex(a), this.setMaxWidth(d), this.onMarkerPositionChanged = this.onMarkerPositionChanged.bind(this);
3000
3004
  }
3001
3005
  initialize(r) {
3002
3006
  return this.map = r, r.getPanes().floatPane.appendChild(this.container), this.container;
@@ -3088,8 +3092,8 @@ class _t extends vt {
3088
3092
  class bt extends vt {
3089
3093
  constructor(e, r) {
3090
3094
  super(new re(e, r));
3091
- c(this, "eventHub", new ir());
3092
- c(this, "isOpened", !1);
3095
+ h(this, "eventHub", new ir());
3096
+ h(this, "isOpened", !1);
3093
3097
  this.inner = e, this.map = r, e.addListener("closeclick", () => {
3094
3098
  this.isOpened = !1, this.eventHub.hasListener("close") && this.eventHub.notify({ type: "close", target: this });
3095
3099
  }), e.addListener("map_changed", () => {
@@ -3192,8 +3196,8 @@ class Mt extends vt {
3192
3196
  maxWidth: t.maxWidth
3193
3197
  }), s = t.borderClass;
3194
3198
  return s && r.addListener("domready", () => {
3195
- var h;
3196
- const a = (h = t.content.parentElement) == null ? void 0 : h.parentElement;
3199
+ var d;
3200
+ const a = (d = t.content.parentElement) == null ? void 0 : d.parentElement;
3197
3201
  a && a.className.includes("gm-style-iw-c") && !a.className.includes(s) && (a.className += ` ${s}`);
3198
3202
  }), new Mt(r, e, this);
3199
3203
  }
@@ -3237,7 +3241,7 @@ var Te;
3237
3241
  }
3238
3242
  i.trimIndent = e;
3239
3243
  function r(s) {
3240
- return s.replace(/([^A-Z]?)([A-Z])/g, (n, a, h) => a ? `${a}-${h.toLowerCase()}` : h.toLowerCase());
3244
+ return s.replace(/([^A-Z]?)([A-Z])/g, (n, a, d) => a ? `${a}-${d.toLowerCase()}` : d.toLowerCase());
3241
3245
  }
3242
3246
  i.pascal2kebab = r;
3243
3247
  })(Te || (Te = {}));
@@ -3283,11 +3287,11 @@ var Me = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overla
3283
3287
  })(Oe || (Oe = {}));
3284
3288
  class Bi {
3285
3289
  constructor(t, e) {
3286
- c(this, "baidu");
3287
- c(this, "google");
3288
- c(this, "projection");
3289
- c(this, "element", void 0);
3290
- c(this, "mapPane");
3290
+ h(this, "baidu");
3291
+ h(this, "google");
3292
+ h(this, "projection");
3293
+ h(this, "element", void 0);
3294
+ h(this, "mapPane");
3291
3295
  this.map = t, this.mapPane = e.mapPane;
3292
3296
  }
3293
3297
  create() {
@@ -3306,8 +3310,8 @@ class Bi {
3306
3310
  class e extends BMap.OverlayV3 {
3307
3311
  initialize(n) {
3308
3312
  var o;
3309
- const a = t.create(), h = n.getPanes();
3310
- return (o = Oe.toBaidu(t.mapPane, h)) == null || o.appendChild(a), a;
3313
+ const a = t.create(), d = n.getPanes();
3314
+ return (o = Oe.toBaidu(t.mapPane, d)) == null || o.appendChild(a), a;
3311
3315
  }
3312
3316
  draw() {
3313
3317
  t.draw();
@@ -3362,7 +3366,7 @@ function Ai() {
3362
3366
  return class extends google.maps.OverlayView {
3363
3367
  constructor(e, r, s, n = Me.overlayMouseTarget, a) {
3364
3368
  super();
3365
- c(this, "container");
3369
+ h(this, "container");
3366
3370
  this.position = r, this.offset = s, this._mapPane = n, this.container = document.createElement("div"), this.container.className = "label-container", this.container.style.position = "absolute", a && this.setZIndex(a), this.container.addEventListener("click", () => {
3367
3371
  google.maps.event.trigger(this, "click");
3368
3372
  }), this.setElement(e);
@@ -3430,10 +3434,10 @@ var de;
3430
3434
  class Ot extends je {
3431
3435
  constructor(e, r, s, n) {
3432
3436
  super(e, r, s);
3433
- c(this, "icon");
3434
- c(this, "iconAnchor");
3435
- c(this, "content", void 0);
3436
- c(this, "contentObserver");
3437
+ h(this, "icon");
3438
+ h(this, "iconAnchor");
3439
+ h(this, "content", void 0);
3440
+ h(this, "contentObserver");
3437
3441
  this.setContentInternal(n, !0);
3438
3442
  }
3439
3443
  static create(e) {
@@ -3486,7 +3490,7 @@ class Ot extends je {
3486
3490
  * @description baidu中Label默认左上角对齐Icon的左上, 我们要将其转换为对齐marker的position
3487
3491
  * */
3488
3492
  attachIcon(e) {
3489
- var h;
3493
+ var d;
3490
3494
  let r;
3491
3495
  if (e instanceof BMap.Icon)
3492
3496
  r = e.anchor;
@@ -3494,7 +3498,7 @@ class Ot extends je {
3494
3498
  if (e.anchor)
3495
3499
  r = e.anchor;
3496
3500
  else {
3497
- const o = ((h = e.__icon__) == null ? void 0 : h.baiduLabelOffset) ?? { x: 0, y: 0 };
3501
+ const o = ((d = e.__icon__) == null ? void 0 : d.baiduLabelOffset) ?? { x: 0, y: 0 };
3498
3502
  r = {
3499
3503
  width: e.style.anchor.width + o.x,
3500
3504
  height: e.style.anchor.height + o.y
@@ -3504,8 +3508,8 @@ class Ot extends je {
3504
3508
  console.log("BaiduLabelOverlay.attachIcon", "Bmap.Symbol.anchor尚未计算完成");
3505
3509
  return;
3506
3510
  }
3507
- const l = e.anchor.width - e.style.anchor.width, d = e.anchor.height - e.style.anchor.height;
3508
- if (o.x !== l || o.y !== d) {
3511
+ const l = e.anchor.width - e.style.anchor.width, c = e.anchor.height - e.style.anchor.height;
3512
+ if (o.x !== l || o.y !== c) {
3509
3513
  const b = [
3510
3514
  (u = e.__icon__.anchor) == null ? void 0 : u.x,
3511
3515
  (p = e.__icon__.anchor) == null ? void 0 : p.y,
@@ -3516,7 +3520,7 @@ class Ot extends je {
3516
3520
  console.warn("BaiduLabelOverlay.attachIcon", e.__icon__, Te.trimIndent(
3517
3521
  `
3518
3522
  为了保证Label的位置正确, 请将SymbolIcon(${b})中baiduLabelOffset的值改写成:
3519
- ${JSON.stringify({ x: l, y: d })}
3523
+ ${JSON.stringify({ x: l, y: c })}
3520
3524
  `
3521
3525
  ));
3522
3526
  }
@@ -3642,8 +3646,8 @@ class Ce extends je {
3642
3646
  draggingCursor: t.cursor
3643
3647
  }, n = new BMap.Marker(t.position.toBaidu(e), s);
3644
3648
  t.zIndex !== void 0 && n.setZIndex(t.zIndex);
3645
- const a = t.clickable === void 0 ? !0 : t.clickable, h = !!t.draggable;
3646
- return new Ce(n, e, this, { clickable: a, draggable: h, zIndex: t.zIndex }).visibleOptionInternal(t.visible);
3649
+ const a = t.clickable === void 0 ? !0 : t.clickable, d = !!t.draggable;
3650
+ return new Ce(n, e, this, { clickable: a, draggable: d, zIndex: t.zIndex }).visibleOptionInternal(t.visible);
3647
3651
  }
3648
3652
  getPosition() {
3649
3653
  return y.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
@@ -3697,10 +3701,10 @@ class Ce extends je {
3697
3701
  class wt extends mt {
3698
3702
  constructor() {
3699
3703
  super(...arguments);
3700
- c(this, "label");
3701
- c(this, "labelPositionListener");
3702
- c(this, "labelVisibleListener");
3703
- c(this, "labelMapChangedListener");
3704
+ h(this, "label");
3705
+ h(this, "labelPositionListener");
3706
+ h(this, "labelVisibleListener");
3707
+ h(this, "labelMapChangedListener");
3704
3708
  }
3705
3709
  static create(e) {
3706
3710
  const r = this.coordType, s = e.icon, n = {
@@ -3773,10 +3777,10 @@ class wt extends mt {
3773
3777
  class Et extends k {
3774
3778
  constructor() {
3775
3779
  super(...arguments);
3776
- c(this, "eventHubDelegate");
3777
- c(this, "prevPath");
3778
- c(this, "isDoingSetPath", !1);
3779
- c(this, "onLineUpdate", () => {
3780
+ h(this, "eventHubDelegate");
3781
+ h(this, "prevPath");
3782
+ h(this, "isDoingSetPath", !1);
3783
+ h(this, "onLineUpdate", () => {
3780
3784
  var r;
3781
3785
  const e = this.innerOverlay.getPath();
3782
3786
  e !== this.prevPath && (this.isDoingSetPath || (r = this.eventHubDelegate) == null || r.notify({
@@ -3809,7 +3813,7 @@ class Et extends k {
3809
3813
  class Lt extends Et {
3810
3814
  constructor() {
3811
3815
  super(...arguments);
3812
- c(this, "pathEditedEventType", "path-edited");
3816
+ h(this, "pathEditedEventType", "path-edited");
3813
3817
  }
3814
3818
  static create(e) {
3815
3819
  const r = this.coordType, s = new BMap.Polyline(e.path.map((n) => n.toBaidu(r)), {
@@ -3831,8 +3835,8 @@ class Lt extends Et {
3831
3835
  class xt extends Ve {
3832
3836
  constructor() {
3833
3837
  super(...arguments);
3834
- c(this, "pathChangedListeners");
3835
- c(this, "eventHubDelegate");
3838
+ h(this, "pathChangedListeners");
3839
+ h(this, "eventHubDelegate");
3836
3840
  }
3837
3841
  static create(e) {
3838
3842
  const r = this.coordType, s = new google.maps.Polyline({
@@ -3878,7 +3882,7 @@ class xt extends Ve {
3878
3882
  class Pt extends Et {
3879
3883
  constructor() {
3880
3884
  super(...arguments);
3881
- c(this, "pathEditedEventType", "paths-edited");
3885
+ h(this, "pathEditedEventType", "paths-edited");
3882
3886
  }
3883
3887
  static create(e) {
3884
3888
  const r = this.coordType;
@@ -3904,8 +3908,8 @@ class Pt extends Et {
3904
3908
  class kt extends Ve {
3905
3909
  constructor() {
3906
3910
  super(...arguments);
3907
- c(this, "pathChangedListeners");
3908
- c(this, "eventHubDelegate");
3911
+ h(this, "pathChangedListeners");
3912
+ h(this, "eventHubDelegate");
3909
3913
  }
3910
3914
  static create(e) {
3911
3915
  const r = this.coordType, s = new google.maps.Polygon({
@@ -3958,9 +3962,9 @@ class kt extends Ve {
3958
3962
  class It extends Et {
3959
3963
  constructor(e, r, s, n) {
3960
3964
  super(e, r, s, n);
3961
- c(this, "pathEditedEventType", "bounds-changed");
3962
- c(this, "isDoingUpdateRectangle", !1);
3963
- c(this, "onBoundsChanged", ({ originalEvent: e }) => {
3965
+ h(this, "pathEditedEventType", "bounds-changed");
3966
+ h(this, "isDoingUpdateRectangle", !1);
3967
+ h(this, "onBoundsChanged", ({ originalEvent: e }) => {
3964
3968
  if (this.isDoingUpdateRectangle)
3965
3969
  return;
3966
3970
  const r = e.prevPath ?? [], s = e.path;
@@ -3971,9 +3975,9 @@ class It extends Et {
3971
3975
  if (a > r.length) {
3972
3976
  for (let o = 0; o < a; o++)
3973
3977
  if (r[o] == null || !Ht.equals(s[o], r[o])) {
3974
- const l = s[(o - 2 + a) % a], d = s[(o - 1 + a) % a], u = s[o], p = s[(o + 1) % a], b = s[(o + 2) % a];
3978
+ const l = s[(o - 2 + a) % a], c = s[(o - 1 + a) % a], u = s[o], p = s[(o + 1) % a], b = s[(o + 2) % a];
3975
3979
  let _;
3976
- d.lat === p.lat ? _ = new BMap.Point(d.lng, u.lat) : d.lng === p.lng ? _ = new BMap.Point(u.lng, d.lat) : _ = u, n = [l, b, _];
3980
+ c.lat === p.lat ? _ = new BMap.Point(c.lng, u.lat) : c.lng === p.lng ? _ = new BMap.Point(u.lng, c.lat) : _ = u, n = [l, b, _];
3977
3981
  break;
3978
3982
  }
3979
3983
  } else if (a === r.length) {
@@ -3987,8 +3991,8 @@ class It extends Et {
3987
3991
  }
3988
3992
  } else
3989
3993
  a < r.length;
3990
- const h = A.fromArray(n.map((o) => y.fromBaidu(o, this.coordType)));
3991
- h && (this.isDoingUpdateRectangle = !0, this.innerOverlay.setPath(h.toRectArray().map((o) => o.toBaidu(this.coordType))), this.isDoingUpdateRectangle = !1);
3994
+ const d = A.fromArray(n.map((o) => y.fromBaidu(o, this.coordType)));
3995
+ d && (this.isDoingUpdateRectangle = !0, this.innerOverlay.setPath(d.toRectArray().map((o) => o.toBaidu(this.coordType))), this.isDoingUpdateRectangle = !1);
3992
3996
  }, 0);
3993
3997
  });
3994
3998
  this.addEventListener("bounds-changed", this.onBoundsChanged);
@@ -4043,20 +4047,20 @@ class Ri extends gt {
4043
4047
  constructor(e, r) {
4044
4048
  var s;
4045
4049
  super(e);
4046
- c(this, "buildInMapTypeId2BIMT");
4047
- c(this, "baiduMapType2BIMT");
4048
- c(this, "map");
4049
- c(this, "createLabel", Ot.create);
4050
- c(this, "createCircle", ft.create);
4051
- c(this, "createPolygon", Pt.create);
4052
- c(this, "createPolyline", Lt.create);
4053
- c(this, "createRectangle", It.create);
4054
- c(this, "createInfoWindow", _t.create);
4055
- c(this, "createInfoBox", Tt.create);
4056
- c(this, "createMarker", Ce.create);
4057
- c(this, "createMapTypeControl", lt.create);
4058
- c(this, "createZoomControl", dt.create);
4059
- c(this, "createScaleControl", ht.create);
4050
+ h(this, "buildInMapTypeId2BIMT");
4051
+ h(this, "baiduMapType2BIMT");
4052
+ h(this, "map");
4053
+ h(this, "createLabel", Ot.create);
4054
+ h(this, "createCircle", ft.create);
4055
+ h(this, "createPolygon", Pt.create);
4056
+ h(this, "createPolyline", Lt.create);
4057
+ h(this, "createRectangle", It.create);
4058
+ h(this, "createInfoWindow", _t.create);
4059
+ h(this, "createInfoBox", Tt.create);
4060
+ h(this, "createMarker", Ce.create);
4061
+ h(this, "createMapTypeControl", lt.create);
4062
+ h(this, "createZoomControl", dt.create);
4063
+ h(this, "createScaleControl", ht.create);
4060
4064
  this.buildInMapTypeId2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getId), this.baiduMapType2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.asBaiduMapType), this.map = new BMap.Map(e, {
4061
4065
  minZoom: r.minZoom && r.minZoom + ee,
4062
4066
  maxZoom: r.maxZoom && r.maxZoom + ee,
@@ -4190,8 +4194,8 @@ class Ri extends gt {
4190
4194
  const r = class extends BMap.Control {
4191
4195
  constructor() {
4192
4196
  super(...arguments);
4193
- c(this, "defaultAnchor", $.getBaidu().toValue(e.position));
4194
- c(this, "defaultOffset", new BMap.Size(0, 0));
4197
+ h(this, "defaultAnchor", $.getBaidu().toValue(e.position));
4198
+ h(this, "defaultOffset", new BMap.Size(0, 0));
4195
4199
  }
4196
4200
  initialize(n) {
4197
4201
  const a = e.onCreateElement();
@@ -4224,20 +4228,20 @@ class $i extends gt {
4224
4228
  constructor(e, r) {
4225
4229
  var n;
4226
4230
  super(e);
4227
- c(this, "buildInMapTypeId2BIMT");
4228
- c(this, "googleMapTypeId2BIMT");
4229
- c(this, "map");
4230
- c(this, "createLabel", Ct.create);
4231
- c(this, "createCircle", yt.create);
4232
- c(this, "createPolygon", kt.create);
4233
- c(this, "createPolyline", xt.create);
4234
- c(this, "createRectangle", Bt.create);
4235
- c(this, "createInfoWindow", bt.create);
4236
- c(this, "createInfoBox", Mt.create);
4237
- c(this, "createMarker", wt.create);
4238
- c(this, "createMapTypeControl", ke.create);
4239
- c(this, "createZoomControl", ut.create);
4240
- c(this, "createScaleControl", ct.create);
4231
+ h(this, "buildInMapTypeId2BIMT");
4232
+ h(this, "googleMapTypeId2BIMT");
4233
+ h(this, "map");
4234
+ h(this, "createLabel", Ct.create);
4235
+ h(this, "createCircle", yt.create);
4236
+ h(this, "createPolygon", kt.create);
4237
+ h(this, "createPolyline", xt.create);
4238
+ h(this, "createRectangle", Bt.create);
4239
+ h(this, "createInfoWindow", bt.create);
4240
+ h(this, "createInfoBox", Mt.create);
4241
+ h(this, "createMarker", wt.create);
4242
+ h(this, "createMapTypeControl", ke.create);
4243
+ h(this, "createZoomControl", ut.create);
4244
+ h(this, "createScaleControl", ct.create);
4241
4245
  this.mapOptions = r, this.buildInMapTypeId2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getId), this.googleMapTypeId2BIMT = R.BUILD_IN_MAP_TYPES.getValueMap(S.prototype.getGoogleMapTypeId);
4242
4246
  const s = r.buildInMapTypeId && this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId);
4243
4247
  this.map = new google.maps.Map(e, {
@@ -4267,20 +4271,20 @@ class $i extends gt {
4267
4271
  const r = this.innerMap.getProjection(), s = this.innerMap.getBounds();
4268
4272
  if (r == null || s == null)
4269
4273
  return y.ZERO;
4270
- const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), h = this.innerMap.getZoom();
4271
- if (n == null || a == null || h == null)
4274
+ const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), d = this.innerMap.getZoom();
4275
+ if (n == null || a == null || d == null)
4272
4276
  return y.ZERO;
4273
- const o = Math.pow(2, h), l = new google.maps.Point(e.x / o + n.x, e.y / o + a.y);
4277
+ const o = Math.pow(2, d), l = new google.maps.Point(e.x / o + n.x, e.y / o + a.y);
4274
4278
  return y.fromGoogle(r.fromPointToLatLng(l) ?? J.LATLNG_ZERO, this.coordType);
4275
4279
  }
4276
4280
  fromLatLngToContainerPoint(e) {
4277
4281
  const r = this.innerMap.getProjection(), s = this.innerMap.getBounds();
4278
4282
  if (r == null || s == null)
4279
4283
  return X.ZERO;
4280
- const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), h = this.innerMap.getZoom();
4281
- if (n == null || a == null || h == null)
4284
+ const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), d = this.innerMap.getZoom();
4285
+ if (n == null || a == null || d == null)
4282
4286
  return X.ZERO;
4283
- const o = Math.pow(2, h), l = r.fromLatLngToPoint(e.toGoogle(this.coordType));
4287
+ const o = Math.pow(2, d), l = r.fromLatLngToPoint(e.toGoogle(this.coordType));
4284
4288
  return l == null ? X.ZERO : { x: (l.x - n.x) * o, y: (l.y - a.y) * o };
4285
4289
  }
4286
4290
  setDefaultCursor(e) {
@@ -4385,8 +4389,8 @@ class Di extends gt {
4385
4389
  constructor(e, r) {
4386
4390
  var a;
4387
4391
  super(e);
4388
- c(this, "map");
4389
- c(this, "defaultLayers");
4392
+ h(this, "map");
4393
+ h(this, "defaultLayers");
4390
4394
  this.mapOptions = r;
4391
4395
  const s = er().here;
4392
4396
  Ae.includes(s.version) || C(`不支持${s.version}, HereMap当前只支持如下版本: ${Ae}`);
@@ -4868,8 +4872,8 @@ const Ys = () => {
4868
4872
  () => this.zoom,
4869
4873
  () => this.center
4870
4874
  //
4871
- ], ([s, n], [a, h]) => {
4872
- s !== a && t.setZoom(s), n !== h && (t.getCenter().equals(n) || t.setCenter(n));
4875
+ ], ([s, n], [a, d]) => {
4876
+ s !== a && t.setZoom(s), n !== d && (t.getCenter().equals(n) || t.setCenter(n));
4873
4877
  }), "update:center" in this.attrs.listenerProps) {
4874
4878
  const s = () => this.$emit("update:center", t.getCenter());
4875
4879
  t.addEventListener("center-changed", () => {
@@ -5896,24 +5900,24 @@ function Ls(i, t) {
5896
5900
  if (i.lat === t.lat && i.lng === t.lng)
5897
5901
  return 0;
5898
5902
  const e = ye((i.lat + t.lat) / 2), r = ye((i.lat - t.lat) / 2), s = ye((i.lng - t.lng) / 2);
5899
- let n = Math.sin(r), a = Math.sin(s), h = Math.sin(e);
5903
+ let n = Math.sin(r), a = Math.sin(s), d = Math.sin(e);
5900
5904
  const o = Es, l = 1 / 298.257;
5901
- n = n * n, a = a * a, h = h * h;
5902
- const d = n * (1 - a) + (1 - h) * a, u = (1 - n) * (1 - a) + h * a, p = Math.atan(Math.sqrt(d / u)), b = Math.sqrt(d * u) / p, _ = 2 * p * o, T = (3 * b - 1) / 2 / u, g = (3 * b + 1) / 2 / d;
5903
- return _ * (1 + l * (T * h * (1 - n) - g * (1 - h) * n));
5905
+ n = n * n, a = a * a, d = d * d;
5906
+ const c = n * (1 - a) + (1 - d) * a, u = (1 - n) * (1 - a) + d * a, p = Math.atan(Math.sqrt(c / u)), b = Math.sqrt(c * u) / p, _ = 2 * p * o, T = (3 * b - 1) / 2 / u, g = (3 * b + 1) / 2 / c;
5907
+ return _ * (1 + l * (T * d * (1 - n) - g * (1 - d) * n));
5904
5908
  }
5905
5909
  function xs(i, t, e) {
5906
- const s = 63567523142e-4, n = 1 / 298.257223563, a = ye(t), h = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(ye(i.lat)), d = 1 / Math.sqrt(1 + l * l), u = l * d, p = Math.atan2(l, o), b = d * h, _ = 1 - b * b, T = _ * (6378137 * 6378137 - s * s) / (s * s), g = 1 + T / 16384 * (4096 + T * (-768 + T * (320 - 175 * T))), f = T / 1024 * (256 + T * (-128 + T * (74 - 47 * T)));
5910
+ const s = 63567523142e-4, n = 1 / 298.257223563, a = ye(t), d = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(ye(i.lat)), c = 1 / Math.sqrt(1 + l * l), u = l * c, p = Math.atan2(l, o), b = c * d, _ = 1 - b * b, T = _ * (6378137 * 6378137 - s * s) / (s * s), g = 1 + T / 16384 * (4096 + T * (-768 + T * (320 - 175 * T))), f = T / 1024 * (256 + T * (-128 + T * (74 - 47 * T)));
5907
5911
  let v = 0, O = 0, x = 0, E = e / (s * g), Q = 2 * Math.PI;
5908
5912
  for (; Math.abs(E - Q) > 1e-12; ) {
5909
5913
  v = Math.cos(2 * p + E), O = Math.sin(E), x = Math.cos(E);
5910
5914
  const Pr = f * O * (v + f / 4 * (x * (-1 + 2 * v * v) - f / 6 * v * (-3 + 4 * O * O) * (-3 + 4 * v * v)));
5911
5915
  Q = E, E = e / (s * g) + Pr;
5912
5916
  }
5913
- const ie = u * O - d * x * o, Ue = Math.atan2(
5914
- u * x + d * O * o,
5917
+ const ie = u * O - c * x * o, Ue = Math.atan2(
5918
+ u * x + c * O * o,
5915
5919
  (1 - n) * Math.sqrt(b * b + ie * ie)
5916
- ), Lr = Math.atan2(O * h, d * x - u * O * o), Ye = n / 16 * _ * (4 + n * (4 - 3 * _)), xr = Lr - (1 - Ye) * n * b * (E + Ye * O * (v + Ye * x * (-1 + 2 * v * v)));
5920
+ ), Lr = Math.atan2(O * d, c * x - u * O * o), Ye = n / 16 * _ * (4 + n * (4 - 3 * _)), xr = Lr - (1 - Ye) * n * b * (E + Ye * O * (v + Ye * x * (-1 + 2 * v * v)));
5917
5921
  return { lng: i.lng + Vt(xr), lat: Vt(Ue) };
5918
5922
  }
5919
5923
  const Ks = {