tg-map-vue3 3.6.7 → 3.6.8

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,29 +1,29 @@
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
- var Ir = Object.defineProperty;
3
- var Sr = (i, t, e) => t in i ? Ir(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
4
- var c = (i, t, e) => (Sr(i, typeof t != "symbol" ? t + "" : t, e), e);
5
- import { createCommentVNode as tt, computed as qt, defineComponent as w, markRaw as Ar, watch as Kt, openBlock as F, createElementBlock as U, mergeProps as ue, createElementVNode as Rr, normalizeClass as je, renderSlot as W, normalizeStyle as $r, getCurrentInstance as zr, inject as Dr, onMounted as Nr, onBeforeUnmount as Gr, toRaw as Ve, withDirectives as Zr, vShow as Wr } from "vue";
2
+ var Sr = Object.defineProperty;
3
+ var Ar = (i, t, e) => t in i ? Sr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
4
+ var c = (i, t, e) => (Ar(i, typeof t != "symbol" ? t + "" : t, e), e);
5
+ import { createCommentVNode as tt, computed as Kt, defineComponent as w, markRaw as Rr, watch as Xt, openBlock as F, createElementBlock as U, mergeProps as pe, createElementVNode as $r, normalizeClass as He, renderSlot as W, normalizeStyle as zr, getCurrentInstance as Dr, inject as Nr, onMounted as Gr, onBeforeUnmount as Zr, toRaw as Ve, withDirectives as Wr, vShow as jr } from "vue";
6
6
  function Y(i, t, e) {
7
7
  Object.keys(i).forEach((r) => {
8
8
  r.startsWith("update:") || e != null && e.includes(r) || t.addEventListener(r, i[r]);
9
9
  });
10
10
  }
11
11
  let Hr = 1;
12
- function jr() {
12
+ function Vr() {
13
13
  return Hr++;
14
14
  }
15
15
  function Se(i, t) {
16
- return t.__id__ || (t.__id__ = jr()), `${i}::${t.__id__}`;
16
+ return t.__id__ || (t.__id__ = Vr()), `${i}::${t.__id__}`;
17
17
  }
18
- var Xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
+ var Jt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
19
  function lt(i) {
20
20
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
21
21
  }
22
- var Jt = { exports: {} };
22
+ var Qt = { exports: {} };
23
23
  (function(i) {
24
24
  (function(t, e) {
25
25
  i.exports ? i.exports = e() : t.coordtransform = e();
26
- })(Xt, function() {
26
+ })(Jt, function() {
27
27
  var t = 52.35987755982988, e = 3.141592653589793, r = 6378245, s = 0.006693421622965943;
28
28
  function n(g, f, v, O) {
29
29
  this.west = Math.min(g, v), this.north = Math.max(f, O), this.east = Math.max(g, v), this.south = Math.min(f, O);
@@ -115,9 +115,9 @@ var Jt = { exports: {} };
115
115
  }
116
116
  };
117
117
  });
118
- })(Jt);
119
- var Vr = Jt.exports;
120
- const se = /* @__PURE__ */ lt(Vr);
118
+ })(Qt);
119
+ var Fr = Qt.exports;
120
+ const se = /* @__PURE__ */ lt(Fr);
121
121
  function oe(i, t) {
122
122
  if (!i)
123
123
  throw new Error(`AssertionError: ${t}`);
@@ -125,22 +125,22 @@ function oe(i, t) {
125
125
  function rt(i) {
126
126
  throw new Error(`Unexpected object: ${i}`);
127
127
  }
128
- function Rs() {
128
+ function $s() {
129
129
  }
130
130
  function it(i) {
131
131
  return i;
132
132
  }
133
- function $s(i, t) {
133
+ function zs(i, t) {
134
134
  return i instanceof t;
135
135
  }
136
- function zs(i, t) {
136
+ function Ds(i, t) {
137
137
  if (i instanceof t)
138
138
  return i;
139
139
  }
140
140
  function st(i, t) {
141
141
  return (i == null ? void 0 : i.$options.name) === t.name;
142
142
  }
143
- function Qt(i, t) {
143
+ function er(i, t) {
144
144
  return st(i, t) ? i : void 0;
145
145
  }
146
146
  function ht(i, t, e) {
@@ -153,7 +153,7 @@ function ht(i, t, e) {
153
153
  r = r.$parent;
154
154
  }
155
155
  }
156
- function Ds(i) {
156
+ function Ns(i) {
157
157
  return i;
158
158
  }
159
159
  function C(i) {
@@ -162,18 +162,18 @@ function C(i) {
162
162
  function ct(i) {
163
163
  throw new Error(`Unsupported: ${i}`);
164
164
  }
165
- function Ns(i) {
165
+ function Gs(i) {
166
166
  throw new Error(`todo: ${i}`);
167
167
  }
168
- function Gs(i) {
168
+ function Zs(i) {
169
169
  return i;
170
170
  }
171
- function ve(...i) {
171
+ function _e(...i) {
172
172
  }
173
- function Zs(i) {
173
+ function Ws(i) {
174
174
  return i != null;
175
175
  }
176
- function Fr(i) {
176
+ function Ur(i) {
177
177
  return i[1] != null;
178
178
  }
179
179
  var B = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(B || {});
@@ -411,67 +411,67 @@ var V;
411
411
  }
412
412
  i.getCoordType = e;
413
413
  })(V || (V = {}));
414
- var Ur = function(t) {
415
- return Yr(t) && !qr(t);
414
+ var Yr = function(t) {
415
+ return qr(t) && !Kr(t);
416
416
  };
417
- function Yr(i) {
417
+ function qr(i) {
418
418
  return !!i && typeof i == "object";
419
419
  }
420
- function qr(i) {
420
+ function Kr(i) {
421
421
  var t = Object.prototype.toString.call(i);
422
- return t === "[object RegExp]" || t === "[object Date]" || Jr(i);
423
- }
424
- var Kr = typeof Symbol == "function" && Symbol.for, Xr = Kr ? Symbol.for("react.element") : 60103;
425
- function Jr(i) {
426
- return i.$$typeof === Xr;
422
+ return t === "[object RegExp]" || t === "[object Date]" || Qr(i);
427
423
  }
424
+ var Xr = typeof Symbol == "function" && Symbol.for, Jr = Xr ? Symbol.for("react.element") : 60103;
428
425
  function Qr(i) {
426
+ return i.$$typeof === Jr;
427
+ }
428
+ function ei(i) {
429
429
  return Array.isArray(i) ? [] : {};
430
430
  }
431
- function _e(i, t) {
432
- return t.clone !== !1 && t.isMergeableObject(i) ? le(Qr(i), i, t) : i;
431
+ function be(i, t) {
432
+ return t.clone !== !1 && t.isMergeableObject(i) ? le(ei(i), i, t) : i;
433
433
  }
434
- function ei(i, t, e) {
434
+ function ti(i, t, e) {
435
435
  return i.concat(t).map(function(r) {
436
- return _e(r, e);
436
+ return be(r, e);
437
437
  });
438
438
  }
439
- function ti(i, t) {
439
+ function ri(i, t) {
440
440
  if (!t.customMerge)
441
441
  return le;
442
442
  var e = t.customMerge(i);
443
443
  return typeof e == "function" ? e : le;
444
444
  }
445
- function ri(i) {
445
+ function ii(i) {
446
446
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(i).filter(function(t) {
447
447
  return Object.propertyIsEnumerable.call(i, t);
448
448
  }) : [];
449
449
  }
450
450
  function Gt(i) {
451
- return Object.keys(i).concat(ri(i));
451
+ return Object.keys(i).concat(ii(i));
452
452
  }
453
- function er(i, t) {
453
+ function tr(i, t) {
454
454
  try {
455
455
  return t in i;
456
456
  } catch {
457
457
  return !1;
458
458
  }
459
459
  }
460
- function ii(i, t) {
461
- return er(i, t) && !(Object.hasOwnProperty.call(i, t) && Object.propertyIsEnumerable.call(i, t));
460
+ function si(i, t) {
461
+ return tr(i, t) && !(Object.hasOwnProperty.call(i, t) && Object.propertyIsEnumerable.call(i, t));
462
462
  }
463
- function si(i, t, e) {
463
+ function ni(i, t, e) {
464
464
  var r = {};
465
465
  return e.isMergeableObject(i) && Gt(i).forEach(function(s) {
466
- r[s] = _e(i[s], e);
466
+ r[s] = be(i[s], e);
467
467
  }), Gt(t).forEach(function(s) {
468
- ii(i, s) || (er(i, s) && e.isMergeableObject(t[s]) ? r[s] = ti(s, e)(i[s], t[s], e) : r[s] = _e(t[s], e));
468
+ si(i, s) || (tr(i, s) && e.isMergeableObject(t[s]) ? r[s] = ri(s, e)(i[s], t[s], e) : r[s] = be(t[s], e));
469
469
  }), r;
470
470
  }
471
471
  function le(i, t, e) {
472
- e = e || {}, e.arrayMerge = e.arrayMerge || ei, e.isMergeableObject = e.isMergeableObject || Ur, e.cloneUnlessOtherwiseSpecified = _e;
472
+ e = e || {}, e.arrayMerge = e.arrayMerge || ti, e.isMergeableObject = e.isMergeableObject || Yr, e.cloneUnlessOtherwiseSpecified = be;
473
473
  var r = Array.isArray(t), s = Array.isArray(i), n = r === s;
474
- return n ? r ? e.arrayMerge(i, t, e) : si(i, t, e) : _e(t, e);
474
+ return n ? r ? e.arrayMerge(i, t, e) : ni(i, t, e) : be(t, e);
475
475
  }
476
476
  le.all = function(t, e) {
477
477
  if (!Array.isArray(t))
@@ -480,8 +480,8 @@ le.all = function(t, e) {
480
480
  return le(r, s, e);
481
481
  }, {});
482
482
  };
483
- var ni = le, oi = ni;
484
- const tr = /* @__PURE__ */ lt(oi), Ae = ["3.0"], ai = {
483
+ var oi = le, ai = oi;
484
+ const rr = /* @__PURE__ */ lt(ai), Ae = ["3.0"], li = {
485
485
  baidu: {
486
486
  version: "3.0",
487
487
  // 在build时会被静态替换, 导致使用者不能无法设置它
@@ -500,12 +500,12 @@ const tr = /* @__PURE__ */ lt(oi), Ae = ["3.0"], ai = {
500
500
  key: ""
501
501
  }
502
502
  };
503
- let rr;
504
- function ir() {
505
- return rr || C("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
503
+ let ir;
504
+ function sr() {
505
+ return ir || C("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
506
506
  }
507
- function li(i) {
508
- i != null && (rr = tr(ai, i));
507
+ function hi(i) {
508
+ i != null && (ir = rr(li, i));
509
509
  }
510
510
  var nt;
511
511
  ((i) => {
@@ -573,19 +573,19 @@ var ce;
573
573
  }
574
574
  i.listenChanged = r;
575
575
  })(ce || (ce = {}));
576
- function sr(i, t, e) {
576
+ function nr(i, t, e) {
577
577
  return i.addListener(t, e).remove;
578
578
  }
579
- function hi(i, t, e) {
579
+ function ci(i, t, e) {
580
580
  return i.addEventListener(t, e), () => i.removeEventListener(t, e);
581
581
  }
582
- function ci(i, t, e, r) {
582
+ function di(i, t, e, r) {
583
583
  return i.addEventListener(t, e, r), () => i.removeEventListener(t, e, r);
584
584
  }
585
585
  function Zt(i, t, e) {
586
586
  return i.addEventListener(t, e), () => i.removeEventListener(t, e);
587
587
  }
588
- class nr {
588
+ class or {
589
589
  constructor(t, e) {
590
590
  c(this, "eventMap", /* @__PURE__ */ new Map());
591
591
  c(this, "target", void 0);
@@ -597,7 +597,7 @@ class nr {
597
597
  }
598
598
  class Fe {
599
599
  constructor(t, e) {
600
- c(this, "eventHub", new or());
600
+ c(this, "eventHub", new ar());
601
601
  this.delegate = t, this.options = e;
602
602
  }
603
603
  notify(t) {
@@ -624,7 +624,7 @@ class Fe {
624
624
  this.delegate.removeEventListener(t, e);
625
625
  }
626
626
  }
627
- const Nt = class extends nr {
627
+ const Nt = class extends or {
628
628
  addEventListener(t, e) {
629
629
  const r = Se(t, e);
630
630
  if (this.eventMap.get(r)) {
@@ -664,7 +664,7 @@ c(re, "EVENT_TYPE_MAP", {
664
664
  "map-mouseup": "mouseup",
665
665
  "map-dblclick": "dblclick"
666
666
  });
667
- const Ge = class extends nr {
667
+ const Ge = class extends or {
668
668
  addEventListener(t, e) {
669
669
  const r = Se(t, e);
670
670
  if (this.eventMap.get(r)) {
@@ -697,7 +697,7 @@ c(ae, "EVENT_TYPE_MAP", {
697
697
  "zoom-changed": "zoomend",
698
698
  "map-type-changed": "maptypechange"
699
699
  });
700
- class or {
700
+ class ar {
701
701
  constructor() {
702
702
  c(this, "typeMap", /* @__PURE__ */ new Map());
703
703
  }
@@ -736,7 +736,7 @@ class Wt {
736
736
  return this.keyToValue.get(t) ?? C();
737
737
  }
738
738
  }
739
- class di {
739
+ class ui {
740
740
  constructor(t, e = 10) {
741
741
  c(this, "map", /* @__PURE__ */ new Map());
742
742
  this.values = t, this.maxSize4Debug = e;
@@ -765,7 +765,7 @@ class di {
765
765
  return this.getOrNull(t, e) ?? C(`key(${e})不存在与valueMap(${this.getValueMap(t)})中`);
766
766
  }
767
767
  }
768
- class fe {
768
+ class ye {
769
769
  constructor(t) {
770
770
  c(this, "value");
771
771
  this.creator = t;
@@ -840,16 +840,16 @@ var S = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
840
840
  }
841
841
  i.getGoogle = n;
842
842
  })(z || (z = {}));
843
- class ui {
843
+ class pi {
844
844
  constructor(t) {
845
845
  /** 实际添加到地图中的control对象 */
846
846
  c(this, "inner");
847
847
  this.position = t;
848
848
  }
849
849
  }
850
- class ar {
850
+ class lr {
851
851
  }
852
- class dt extends ar {
852
+ class dt extends lr {
853
853
  constructor(t, e) {
854
854
  super(), this.inner = t, this.position = e;
855
855
  }
@@ -872,7 +872,7 @@ class dt extends ar {
872
872
  t.innerMap.removeControl(this.inner);
873
873
  }
874
874
  }
875
- class ut extends ar {
875
+ class ut extends lr {
876
876
  constructor(e, r) {
877
877
  super();
878
878
  c(this, "visible", !1);
@@ -909,7 +909,7 @@ class ut extends ar {
909
909
  });
910
910
  }
911
911
  }
912
- var lr = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(lr || {});
912
+ var hr = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(hr || {});
913
913
  class A {
914
914
  constructor(t, e, r, s) {
915
915
  this.id = t, this.baidu = e, this.google = r, this.googleCoordType = s;
@@ -934,16 +934,16 @@ class A {
934
934
  ct("google的内置地图没有对应的实例");
935
935
  }
936
936
  }
937
- class Ws {
937
+ class js {
938
938
  constructor(t, e) {
939
- c(this, "baiduLayerCached", new fe(() => {
939
+ c(this, "baiduLayerCached", new ye(() => {
940
940
  const t = new BMap.TileLayer({});
941
941
  return t.getTilesUrl = (e, r) => {
942
942
  const s = Math.pow(2, r - 1), n = e.x + s, a = s - 1 - e.y;
943
943
  return this.options.getTileUrl({ x: n, y: a }, r);
944
944
  }, t;
945
945
  }));
946
- c(this, "baiduMapTypeCached", new fe(() => {
946
+ c(this, "baiduMapTypeCached", new ye(() => {
947
947
  const t = new BMap.MapType(this.options.name, this.baiduLayerCached.get(), {
948
948
  maxZoom: this.options.maxZoom,
949
949
  minZoom: this.options.minZoom,
@@ -951,7 +951,7 @@ class Ws {
951
951
  });
952
952
  return t.__baidu_map_type__ = this, t;
953
953
  }));
954
- c(this, "googleCached", new fe(() => {
954
+ c(this, "googleCached", new ye(() => {
955
955
  const t = new google.maps.ImageMapType({
956
956
  getTileUrl: (e, r) => this.options.getTileUrl(e, r),
957
957
  tileSize: new google.maps.Size(256, 256),
@@ -986,10 +986,10 @@ class Ws {
986
986
  ct("这个方法不会被调用");
987
987
  }
988
988
  }
989
- class pi {
989
+ class gi {
990
990
  constructor() {
991
- c(this, "baiduCache", new fe(() => new BMap.TrafficLayer()));
992
- c(this, "googleCache", new fe(() => new google.maps.TrafficLayer()));
991
+ c(this, "baiduCache", new ye(() => new BMap.TrafficLayer()));
992
+ c(this, "googleCache", new ye(() => new google.maps.TrafficLayer()));
993
993
  }
994
994
  asBaiduLayer() {
995
995
  return this.baiduCache.get();
@@ -1006,13 +1006,13 @@ var $;
1006
1006
  ), () => (
1007
1007
  /* 地形 */
1008
1008
  google.maps.MapTypeId.TERRAIN
1009
- ), B.wgs84), i.BUILD_IN_MAP_TYPES = new di([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
1009
+ ), B.wgs84), i.BUILD_IN_MAP_TYPES = new ui([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
1010
1010
  })($ || ($ = {}));
1011
- var hr = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(hr || {});
1012
- const cr = [$.NORMAL, $.SATELLITE, $.HYBRID];
1011
+ var cr = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(cr || {});
1012
+ const dr = [$.NORMAL, $.SATELLITE, $.HYBRID];
1013
1013
  class pt extends dt {
1014
1014
  static create(t) {
1015
- const e = t.mapTypes ?? cr, r = {
1015
+ const e = t.mapTypes ?? dr, r = {
1016
1016
  default: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
1017
1017
  horizontal: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
1018
1018
  dropdown: BMAP_MAPTYPE_CONTROL_DROPDOWN
@@ -1024,7 +1024,7 @@ class pt extends dt {
1024
1024
  }
1025
1025
  }
1026
1026
  const ne = class extends ut {
1027
- constructor(t = "default", e = S.TOP_LEFT, r = cr) {
1027
+ constructor(t = "default", e = S.TOP_LEFT, r = dr) {
1028
1028
  super("mapType", e), this.type = t, this.mapTypes = r, ne.type2google || (ne.type2google = {
1029
1029
  default: google.maps.MapTypeControlStyle.DEFAULT,
1030
1030
  horizontal: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
@@ -1080,7 +1080,7 @@ class yt extends ut {
1080
1080
  super("zoom", t);
1081
1081
  }
1082
1082
  }
1083
- function gi(i) {
1083
+ function mi(i) {
1084
1084
  let t, e, r;
1085
1085
  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) => {
1086
1086
  var f;
@@ -1091,17 +1091,17 @@ function gi(i) {
1091
1091
  }));
1092
1092
  u[a] ? console.warn(s + " only loads once. Ignoring:", i) : u[a] = (T, ...g) => p.add(T) && _().then(() => u[a](T, ...g));
1093
1093
  }
1094
- let mi, fi;
1094
+ let fi, yi;
1095
1095
  const J = {
1096
1096
  /** Google的坐标0点 */
1097
1097
  get LATLNG_ZERO() {
1098
- return mi ?? (mi = new google.maps.LatLng({ lat: 0, lng: 0 }));
1098
+ return fi ?? (fi = new google.maps.LatLng({ lat: 0, lng: 0 }));
1099
1099
  },
1100
1100
  get BOUNDS_ZERO() {
1101
- return fi ?? (fi = new google.maps.LatLngBounds(this.LATLNG_ZERO, this.LATLNG_ZERO));
1101
+ return yi ?? (yi = new google.maps.LatLngBounds(this.LATLNG_ZERO, this.LATLNG_ZERO));
1102
1102
  }
1103
1103
  };
1104
- function dr(i, t = { country: "", province: "", city: "", district: "", street: "", streetNumber: "" }) {
1104
+ function ur(i, t = { country: "", province: "", city: "", district: "", street: "", streetNumber: "" }) {
1105
1105
  for (const e of i)
1106
1106
  for (const r of e.types)
1107
1107
  switch (r) {
@@ -1126,9 +1126,9 @@ function dr(i, t = { country: "", province: "", city: "", district: "", street:
1126
1126
  }
1127
1127
  return t;
1128
1128
  }
1129
- function ur(i, t) {
1129
+ function pr(i, t) {
1130
1130
  var r;
1131
- const e = i.address_components && dr(i.address_components);
1131
+ const e = i.address_components && ur(i.address_components);
1132
1132
  return {
1133
1133
  country: (e == null ? void 0 : e.country) ?? "",
1134
1134
  province: (e == null ? void 0 : e.province) ?? "",
@@ -1139,9 +1139,9 @@ function ur(i, t) {
1139
1139
  title: i.name ?? ""
1140
1140
  };
1141
1141
  }
1142
- class pr {
1142
+ class gr {
1143
1143
  }
1144
- class yi extends pr {
1144
+ class vi extends gr {
1145
1145
  constructor(e, r) {
1146
1146
  super();
1147
1147
  c(this, "inner");
@@ -1157,7 +1157,7 @@ class yi extends pr {
1157
1157
  this.inner.setBounds(e.toGoogle(this.map.coordType));
1158
1158
  }
1159
1159
  addResultListener(e) {
1160
- return sr(this.inner, "place_changed", () => {
1160
+ return nr(this.inner, "place_changed", () => {
1161
1161
  const r = this.inner.getPlace(), s = {
1162
1162
  title: r.name ?? "",
1163
1163
  province: "",
@@ -1167,11 +1167,11 @@ class yi extends pr {
1167
1167
  streetNumber: "",
1168
1168
  country: ""
1169
1169
  };
1170
- r.address_components && dr(r.address_components, s), e(s);
1170
+ r.address_components && ur(r.address_components, s), e(s);
1171
1171
  });
1172
1172
  }
1173
1173
  }
1174
- class vi extends pr {
1174
+ class _i extends gr {
1175
1175
  constructor(e, r) {
1176
1176
  super();
1177
1177
  c(this, "inner");
@@ -1193,14 +1193,14 @@ class vi extends pr {
1193
1193
  }
1194
1194
  addResultListener(e) {
1195
1195
  let r = 0;
1196
- const s = hi(this.inner, "confirm", (a) => {
1196
+ const s = ci(this.inner, "confirm", (a) => {
1197
1197
  const h = a.item.value;
1198
1198
  r = Date.now(), e(Object.assign({
1199
1199
  title: h.business,
1200
1200
  country: ""
1201
1201
  // Baidu的自动完成只支持中国
1202
1202
  }, h));
1203
- }), n = ci(this.input, "keyup", (a) => {
1203
+ }), n = di(this.input, "keyup", (a) => {
1204
1204
  a.key === "Enter" && Date.now() - r > 100 && e({
1205
1205
  title: this.input.value,
1206
1206
  country: "",
@@ -1216,16 +1216,20 @@ class vi extends pr {
1216
1216
  };
1217
1217
  }
1218
1218
  }
1219
- class gr {
1219
+ class mr {
1220
1220
  constructor(t) {
1221
1221
  this.options = t;
1222
1222
  }
1223
1223
  }
1224
1224
  function Re(i, t, e) {
1225
- const r = new URL(t, i), s = new URLSearchParams(Object.entries(e).filter(Fr));
1225
+ const r = new URL(t, i), s = new URLSearchParams(Object.entries(e).filter(Ur));
1226
1226
  return r.search = "?" + s.toString(), r;
1227
1227
  }
1228
- const Ze = class extends gr {
1228
+ function jt() {
1229
+ const i = window.location.hostname.split(".").filter((t) => !de.isInt(t));
1230
+ return i.length === 3 ? i.join(".") : [...i, "tg", "map", "urls"].slice(0, 3).join(".");
1231
+ }
1232
+ const Ze = class extends mr {
1229
1233
  /** @see https://developers.google.com/maps/documentation/urls/get-started#directions-action */
1230
1234
  directions(t, e, r) {
1231
1235
  return Re(Ze.BASE_URL, "dir/", {
@@ -1249,7 +1253,7 @@ const Ze = class extends gr {
1249
1253
  };
1250
1254
  let Be = Ze;
1251
1255
  c(Be, "BASE_URL", "https://www.google.com/maps/");
1252
- const We = class extends gr {
1256
+ const We = class extends mr {
1253
1257
  /** @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 */
1254
1258
  directions(t, e, r = "driving") {
1255
1259
  const s = V.getCoordType(e) ?? V.getCoordType(t) ?? B.bd09, n = V.toString(e, s);
@@ -1262,7 +1266,7 @@ const We = class extends gr {
1262
1266
  mode: r,
1263
1267
  output: "html",
1264
1268
  region: "中国",
1265
- src: window.location.hostname
1269
+ src: jt()
1266
1270
  });
1267
1271
  }
1268
1272
  /** @see https://lbsyun.baidu.com/faq/api?title=webapi/uri/web#%E5%9B%BE%E5%8C%BA%E5%8A%9F%E8%83%BD:~:text=%E4%B8%8D%E4%BF%9D%E8%AF%81%E6%9C%8D%E5%8A%A1%E3%80%82-,2.1.2%20%E5%9C%B0%E5%9D%80%E8%A7%A3%E6%9E%90,-%E8%B0%83%E7%94%A8%E8%AF%A5 */
@@ -1276,15 +1280,15 @@ const We = class extends gr {
1276
1280
  coord_type: t.coord === B.bd09 ? void 0 : t.coord
1277
1281
  },
1278
1282
  output: "html",
1279
- src: window.location.hostname
1283
+ src: jt()
1280
1284
  });
1281
1285
  }
1282
1286
  };
1283
1287
  let Ie = We;
1284
1288
  c(Ie, "BASE_URL", "https://api.map.baidu.com/");
1285
- let _i = class mr {
1289
+ let bi = class fr {
1286
1290
  constructor(t, e, r) {
1287
- this.extend(mr, 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;
1291
+ this.extend(fr, 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;
1288
1292
  var s = r || {};
1289
1293
  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();
1290
1294
  var n = this;
@@ -1703,7 +1707,7 @@ let _i = class mr {
1703
1707
  if (r && r.isMarkerInClusterBounds(t))
1704
1708
  r.addMarker(t);
1705
1709
  else {
1706
- var o = new bi(this);
1710
+ var o = new Ti(this);
1707
1711
  o.addMarker(t), this.clusters_.push(o);
1708
1712
  }
1709
1713
  }
@@ -1720,7 +1724,7 @@ let _i = class mr {
1720
1724
  ), e = this.getExtendedBounds(t), r = 0, s; s = this.markers_[r]; r++)
1721
1725
  !s.isAdded && this.isMarkerInBounds_(s, e) && this.addToClosestCluster_(s);
1722
1726
  }
1723
- }, bi = class {
1727
+ }, Ti = class {
1724
1728
  constructor(t) {
1725
1729
  this.markerClusterer_ = t, this.map_ = t.getMap(), this.gridSize_ = t.getGridSize(), this.minClusterSize_ = t.getMinClusterSize(), this.averageCenter_ = t.isAverageCenter(), this.center_ = null, this.markers_ = [], this.bounds_ = null, this.clusterIcon_ = new vt(
1726
1730
  this,
@@ -1989,11 +1993,11 @@ class vt {
1989
1993
  ), e.join("");
1990
1994
  }
1991
1995
  }
1992
- var fr = { exports: {} };
1996
+ var yr = { exports: {} };
1993
1997
  (function(i, t) {
1994
1998
  (function(e, r) {
1995
1999
  i.exports = r();
1996
- })(Xt, function() {
2000
+ })(Jt, function() {
1997
2001
  var e, r = e = r || { version: "1.3.8" }, s = {};
1998
2002
  r.guid = "$BAIDU$", s[r.guid] = s[r.guid] || {}, r.dom = r.dom || {}, r.dom.g = function(o) {
1999
2003
  return typeof o == "string" || o instanceof String ? document.getElementById(o) : o && o.nodeName && (o.nodeType == 1 || o.nodeType == 9) ? o : null;
@@ -2182,25 +2186,25 @@ var fr = { exports: {} };
2182
2186
  });
2183
2187
  }, h;
2184
2188
  });
2185
- })(fr);
2186
- var Ti = fr.exports;
2187
- const Ht = /* @__PURE__ */ lt(Ti);
2188
- var yr = function(i, t, e) {
2189
- t = Mi(t);
2189
+ })(yr);
2190
+ var Mi = yr.exports;
2191
+ const Ht = /* @__PURE__ */ lt(Mi);
2192
+ var vr = function(i, t, e) {
2193
+ t = Oi(t);
2190
2194
  var r = i.pointToPixel(t.getNorthEast()), s = i.pointToPixel(t.getSouthWest());
2191
2195
  r.x += e, r.y -= e, s.x -= e, s.y += e;
2192
2196
  var n = i.pixelToPoint(r), a = i.pixelToPoint(s);
2193
2197
  return new BMap.Bounds(a, n);
2194
- }, Mi = function(i) {
2198
+ }, Oi = function(i) {
2195
2199
  var t = Pe(i.getNorthEast().lng, -180, 180), e = Pe(i.getSouthWest().lng, -180, 180), r = Pe(i.getNorthEast().lat, -74, 74), s = Pe(i.getSouthWest().lat, -74, 74);
2196
2200
  return new BMap.Bounds(new BMap.Point(e, s), new BMap.Point(t, r));
2197
2201
  }, Pe = function(i, t, e) {
2198
2202
  return t && (i = Math.max(i, t)), e && (i = Math.min(i, e)), i;
2199
- }, vr = function(i) {
2203
+ }, _r = function(i) {
2200
2204
  return Object.prototype.toString.call(i) === "[object Array]";
2201
- }, _r = function(i, t) {
2205
+ }, br = function(i, t) {
2202
2206
  var e = -1;
2203
- if (vr(t)) {
2207
+ if (_r(t)) {
2204
2208
  if (t.indexOf)
2205
2209
  e = t.indexOf(i);
2206
2210
  else
@@ -2228,7 +2232,7 @@ var yr = function(i, t, e) {
2228
2232
  r._redraw();
2229
2233
  });
2230
2234
  var s = e.markers;
2231
- vr(s) && this.addMarkers(s);
2235
+ _r(s) && this.addMarkers(s);
2232
2236
  }
2233
2237
  };
2234
2238
  M.prototype.addMarkers = function(i) {
@@ -2239,7 +2243,7 @@ M.prototype.addMarkers = function(i) {
2239
2243
  }
2240
2244
  };
2241
2245
  M.prototype._pushMarkerTo = function(i) {
2242
- var t = _r(i, this._markers);
2246
+ var t = br(i, this._markers);
2243
2247
  t === -1 && (i.isInCluster = !1, this._markers.push(i));
2244
2248
  };
2245
2249
  M.prototype.addMarker = function(i) {
@@ -2248,7 +2252,7 @@ M.prototype.addMarker = function(i) {
2248
2252
  M.prototype._createClusters = function() {
2249
2253
  var i = this._map.getBounds();
2250
2254
  if (i.getCenter()) {
2251
- for (var t = yr(this._map, i, this._gridSize), e = 0, r; r = this._markers[e]; e++)
2255
+ for (var t = vr(this._map, i, this._gridSize), e = 0, r; r = this._markers[e]; e++)
2252
2256
  !r.isInCluster && t.containsPoint(r.getPosition()) && this._addToClosestCluster(r);
2253
2257
  for (var s = this._markers.length, e = 0; e < s; e++)
2254
2258
  this._clusters[e] && this._clusters[e].render();
@@ -2288,7 +2292,7 @@ M.prototype._removeMarkersFromMap = function() {
2288
2292
  }
2289
2293
  };
2290
2294
  M.prototype._removeMarker = function(i) {
2291
- var t = _r(i, this._markers);
2295
+ var t = br(i, this._markers);
2292
2296
  return t === -1 ? !1 : (this._map.removeOverlay(i), this._markers.splice(t, 1), !0);
2293
2297
  };
2294
2298
  M.prototype.removeMarker = function(i) {
@@ -2412,7 +2416,7 @@ N.prototype.isReal = function(i) {
2412
2416
  };
2413
2417
  N.prototype.updateGridBounds = function() {
2414
2418
  var i = new BMap.Bounds(this._center, this._center);
2415
- this._gridBounds = yr(this._map, i, this._markerClusterer.getGridSize());
2419
+ this._gridBounds = vr(this._map, i, this._markerClusterer.getGridSize());
2416
2420
  };
2417
2421
  N.prototype.updateClusterMarker = function() {
2418
2422
  if (this._map.getZoom() > this._markerClusterer.getMaxZoom()) {
@@ -2468,7 +2472,7 @@ var $e;
2468
2472
  }
2469
2473
  i.toGoogle = e;
2470
2474
  })($e || ($e = {}));
2471
- class br {
2475
+ class Tr {
2472
2476
  constructor(t) {
2473
2477
  this.map = t;
2474
2478
  }
@@ -2493,7 +2497,7 @@ class br {
2493
2497
  return this.inner.removeMarkers(t.map((e) => e.innerOverlay));
2494
2498
  }
2495
2499
  }
2496
- class Oi extends br {
2500
+ class Ci extends Tr {
2497
2501
  constructor(e, r) {
2498
2502
  var n;
2499
2503
  super(e);
@@ -2515,12 +2519,12 @@ class Oi extends br {
2515
2519
  this.inner._redraw();
2516
2520
  }
2517
2521
  }
2518
- class Ci extends br {
2522
+ class wi extends Tr {
2519
2523
  constructor(e, r) {
2520
2524
  var n, a;
2521
2525
  super(e);
2522
2526
  c(this, "inner");
2523
- this.inner = new _i(
2527
+ this.inner = new bi(
2524
2528
  e.innerMap,
2525
2529
  // google的构造器中的markers,不会触发重绘, 第一次绘制通过监听地图的'idle'事件触发, 可以直接设置
2526
2530
  (n = r.markers) == null ? void 0 : n.map((h) => h.innerOverlay),
@@ -2544,11 +2548,11 @@ class Ci extends br {
2544
2548
  this.inner.repaint();
2545
2549
  }
2546
2550
  }
2547
- class Tr {
2551
+ class Mr {
2548
2552
  constructor() {
2549
2553
  }
2550
2554
  }
2551
- class wi extends Tr {
2555
+ class Ei extends Mr {
2552
2556
  constructor(e, r) {
2553
2557
  super();
2554
2558
  c(this, "inner");
@@ -2582,7 +2586,7 @@ class wi extends Tr {
2582
2586
  switch (h) {
2583
2587
  case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:
2584
2588
  case google.maps.places.PlacesServiceStatus.OK: {
2585
- const o = (a ?? []).map((l) => ur(l, this.map));
2589
+ const o = (a ?? []).map((l) => pr(l, this.map));
2586
2590
  s(o);
2587
2591
  break;
2588
2592
  }
@@ -2594,7 +2598,7 @@ class wi extends Tr {
2594
2598
  });
2595
2599
  }
2596
2600
  }
2597
- class Ei extends Tr {
2601
+ class Li extends Mr {
2598
2602
  constructor(e, r) {
2599
2603
  super();
2600
2604
  c(this, "searchRequestMap", /* @__PURE__ */ new Map());
@@ -2660,7 +2664,7 @@ class Ei extends Tr {
2660
2664
  });
2661
2665
  }
2662
2666
  }
2663
- class Mr {
2667
+ class Or {
2664
2668
  constructor(t, e) {
2665
2669
  c(this, "onData");
2666
2670
  c(this, "onError");
@@ -2672,26 +2676,26 @@ class Mr {
2672
2676
  * @mustCallSuper 子类必须调用一次`super.setSearchListener`, 用来保存{@link onData}和{@link onError}
2673
2677
  * */
2674
2678
  setSearchListener(t, e) {
2675
- return this.onData && C("setSearchListener只能调用一次"), this.onData = t, this.onError = e, ve;
2679
+ return this.onData && C("setSearchListener只能调用一次"), this.onData = t, this.onError = e, _e;
2676
2680
  }
2677
2681
  }
2678
- class Li extends Mr {
2682
+ class Pi extends Or {
2679
2683
  constructor(e, r) {
2680
2684
  super(e, r.input);
2681
2685
  c(this, "searchBox");
2682
2686
  this.searchBox = new google.maps.places.SearchBox(r.input), this.searchBox.bindTo("bounds", e.innerMap);
2683
2687
  }
2684
2688
  setSearchListener(e, r) {
2685
- return super.setSearchListener(e, r), sr(this.searchBox, "places_changed", () => {
2689
+ return super.setSearchListener(e, r), nr(this.searchBox, "places_changed", () => {
2686
2690
  const s = this.searchBox.getPlaces();
2687
- e((s ?? []).map((n) => ur(n, this.map)));
2691
+ e((s ?? []).map((n) => pr(n, this.map)));
2688
2692
  });
2689
2693
  }
2690
2694
  search() {
2691
2695
  this.input.value && (google.maps.event.trigger(this.input, "focus", {}), google.maps.event.trigger(this.input, "keydown", { keyCode: 13 }));
2692
2696
  }
2693
2697
  }
2694
- class Pi extends Mr {
2698
+ class xi extends Or {
2695
2699
  constructor(e, r) {
2696
2700
  super(e, r.input);
2697
2701
  c(this, "autocomplete");
@@ -2710,7 +2714,7 @@ class Pi extends Mr {
2710
2714
  this.placesService.search(e).then(this.onData, this.onError);
2711
2715
  }
2712
2716
  }
2713
- var xi = /* @__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))(xi || {});
2717
+ var ki = /* @__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))(ki || {});
2714
2718
  class _t {
2715
2719
  constructor(t) {
2716
2720
  c(this, "latestInfoWindow");
@@ -2764,7 +2768,7 @@ class _t {
2764
2768
  * Copyright (c) 2014-2017, Jon Schlinkert.
2765
2769
  * Released under the MIT License.
2766
2770
  */
2767
- function ki(i) {
2771
+ function Bi(i) {
2768
2772
  return i != null && typeof i == "object" && Array.isArray(i) === !1;
2769
2773
  }
2770
2774
  /*!
@@ -2773,14 +2777,14 @@ function ki(i) {
2773
2777
  * Copyright (c) 2014-2017, Jon Schlinkert.
2774
2778
  * Released under the MIT License.
2775
2779
  */
2776
- function jt(i) {
2777
- return ki(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
2780
+ function Vt(i) {
2781
+ return Bi(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
2778
2782
  }
2779
- function Or(i) {
2783
+ function Cr(i) {
2780
2784
  var t, e;
2781
- return !(jt(i) === !1 || (t = i.constructor, typeof t != "function") || (e = t.prototype, jt(e) === !1) || e.hasOwnProperty("isPrototypeOf") === !1);
2785
+ return !(Vt(i) === !1 || (t = i.constructor, typeof t != "function") || (e = t.prototype, Vt(e) === !1) || e.hasOwnProperty("isPrototypeOf") === !1);
2782
2786
  }
2783
- var be;
2787
+ var Te;
2784
2788
  ((i) => {
2785
2789
  function t(h, o) {
2786
2790
  return h.reduce((l, d) => (l[o(d)] = d, l), {});
@@ -2795,27 +2799,27 @@ var be;
2795
2799
  }
2796
2800
  i.toJsonSafely = r;
2797
2801
  function s(h) {
2798
- Or(h) && Object.keys(h).forEach((o) => {
2802
+ Cr(h) && Object.keys(h).forEach((o) => {
2799
2803
  h[o] === void 0 ? delete h[o] : s(h[o]);
2800
2804
  });
2801
2805
  }
2802
2806
  i.deleteUndefinedPropertyOnPlainObjectDeeply = s;
2803
2807
  function n(h, ...o) {
2804
- const l = Vt(o), d = {};
2808
+ const l = Ft(o), d = {};
2805
2809
  for (const u in h)
2806
2810
  l(u) || (d[u] = h[u]);
2807
2811
  return d;
2808
2812
  }
2809
2813
  i.omit = n;
2810
2814
  function a(h, ...o) {
2811
- const l = Vt(o), d = {};
2815
+ const l = Ft(o), d = {};
2812
2816
  for (const u in h)
2813
2817
  l(u) && (d[u] = h[u]);
2814
2818
  return d;
2815
2819
  }
2816
2820
  i.pick = a;
2817
- })(be || (be = {}));
2818
- function Vt(i) {
2821
+ })(Te || (Te = {}));
2822
+ function Ft(i) {
2819
2823
  if (i.length <= 4)
2820
2824
  return i.includes.bind(i);
2821
2825
  {
@@ -2823,20 +2827,20 @@ function Vt(i) {
2823
2827
  return t.has.bind(t);
2824
2828
  }
2825
2829
  }
2826
- be.toJsonSafely;
2827
- const Bi = ["single", "multi"];
2830
+ Te.toJsonSafely;
2831
+ const Ii = ["single", "multi"];
2828
2832
  var j = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(j || {}), ot;
2829
2833
  ((i) => {
2830
2834
  function t(e) {
2831
- be.deleteUndefinedPropertyOnPlainObjectDeeply(e);
2835
+ Te.deleteUndefinedPropertyOnPlainObjectDeeply(e);
2832
2836
  const r = { center: y.ZERO, zoom: 5 };
2833
- return tr(r, e || {}, {
2834
- isMergeableObject: Or
2837
+ return rr(r, e || {}, {
2838
+ isMergeableObject: Cr
2835
2839
  });
2836
2840
  }
2837
2841
  i.create = t;
2838
2842
  })(ot || (ot = {}));
2839
- class Cr {
2843
+ class wr {
2840
2844
  constructor(t, e, r) {
2841
2845
  c(this, "_delegate");
2842
2846
  this.innerOverlay = t, this.coordType = e, this.map = r;
@@ -2854,7 +2858,7 @@ class Cr {
2854
2858
  this.map.removeOverlay(this);
2855
2859
  }
2856
2860
  }
2857
- class bt extends Cr {
2861
+ class bt extends wr {
2858
2862
  constructor(t, e, r) {
2859
2863
  super(t, e, r);
2860
2864
  }
@@ -2868,7 +2872,7 @@ class bt extends Cr {
2868
2872
  this.innerOverlay.setVisible(t);
2869
2873
  }
2870
2874
  }
2871
- class Ue extends Cr {
2875
+ class Ue extends wr {
2872
2876
  constructor(t, e, r) {
2873
2877
  super(t, e, r);
2874
2878
  }
@@ -2890,7 +2894,7 @@ class Ue extends Cr {
2890
2894
  return t !== void 0 && (t || this.setVisible(!1)), this;
2891
2895
  }
2892
2896
  }
2893
- const He = class extends Ue {
2897
+ const je = class extends Ue {
2894
2898
  constructor(t, e, r, s) {
2895
2899
  super(t, e, r), this.state = s;
2896
2900
  }
@@ -2904,7 +2908,7 @@ const He = class extends Ue {
2904
2908
  this.innerOverlay.setStrokeColor(t);
2905
2909
  }
2906
2910
  setStrokeOpacity(t) {
2907
- this.innerOverlay.setStrokeOpacity(t + He.OPACITY_DELTA);
2911
+ this.innerOverlay.setStrokeOpacity(t + je.OPACITY_DELTA);
2908
2912
  }
2909
2913
  setStrokeWeight(t) {
2910
2914
  this.innerOverlay.setStrokeWeight(t);
@@ -2913,10 +2917,10 @@ const He = class extends Ue {
2913
2917
  this.innerOverlay.setFillColor(t);
2914
2918
  }
2915
2919
  setFillOpacity(t) {
2916
- this.innerOverlay.setFillOpacity(t + He.OPACITY_DELTA);
2920
+ this.innerOverlay.setFillOpacity(t + je.OPACITY_DELTA);
2917
2921
  }
2918
2922
  };
2919
- let I = He;
2923
+ let I = je;
2920
2924
  /**
2921
2925
  * baidu地图的透明度属性有如下问题:
2922
2926
  * - 在透明度为0时, 无法隐藏掉颜色
@@ -3038,10 +3042,10 @@ class Mt extends Ye {
3038
3042
  return this.innerOverlay.getRadius();
3039
3043
  }
3040
3044
  }
3041
- function wr() {
3045
+ function Er() {
3042
3046
  BMap.OverlayV3 || (BMap.OverlayV3 = BMap.Overlay);
3043
3047
  }
3044
- const Ft = {
3048
+ const Ut = {
3045
3049
  /** {@link BMap.Point.equals} 无效, 故需要自己写一个 */
3046
3050
  equals(i, t) {
3047
3051
  return i.lat === t.lat && i.lng === t.lng;
@@ -3052,11 +3056,11 @@ var X;
3052
3056
  i.ZERO = { x: 0, y: 0 };
3053
3057
  })(X || (X = {}));
3054
3058
  let Qe;
3055
- function Ii(i, t, e, r, s, n) {
3056
- return Qe || (Qe = Si()), new Qe(i, t, e, r, s, n);
3059
+ function Si(i, t, e, r, s, n) {
3060
+ return Qe || (Qe = Ai()), new Qe(i, t, e, r, s, n);
3057
3061
  }
3058
- function Si() {
3059
- wr();
3062
+ function Ai() {
3063
+ Er();
3060
3064
  const i = new BMap.Point(0, 0);
3061
3065
  return class extends BMap.OverlayV3 {
3062
3066
  constructor(r, s = i, n = X.ZERO, a, h = 654, o = "") {
@@ -3165,7 +3169,7 @@ class Ct extends Ot {
3165
3169
  class wt extends Ot {
3166
3170
  constructor(e, r) {
3167
3171
  super(new re(e, r));
3168
- c(this, "eventHub", new or());
3172
+ c(this, "eventHub", new ar());
3169
3173
  c(this, "isOpened", !1);
3170
3174
  this.inner = e, this.map = r, e.addListener("closeclick", () => {
3171
3175
  this.isOpened = !1, this.eventHub.hasListener("close") && this.eventHub.notify({ type: "close", target: this });
@@ -3226,7 +3230,7 @@ class Et extends Ue {
3226
3230
  }
3227
3231
  static create(t) {
3228
3232
  var s;
3229
- const e = this.coordType, r = Ii(
3233
+ const e = this.coordType, r = Si(
3230
3234
  t.content,
3231
3235
  (s = t.position) == null ? void 0 : s.toBaidu(e),
3232
3236
  t.offset,
@@ -3300,25 +3304,29 @@ class Lt extends Ot {
3300
3304
  this.inner.setZIndex(t);
3301
3305
  }
3302
3306
  }
3303
- var Te;
3307
+ var de;
3304
3308
  ((i) => {
3305
- function t(s, n) {
3306
- if (s !== void 0)
3307
- return Object.values(n).includes(s) ? s : void 0;
3309
+ function t(n, a) {
3310
+ if (n !== void 0)
3311
+ return Object.values(a).includes(n) ? n : void 0;
3308
3312
  }
3309
3313
  i.toEnumOrNull = t;
3310
- function e(s) {
3311
- return s.split(`
3312
- `).map((n) => n.trim()).join(`
3314
+ function e(n) {
3315
+ return n.split(`
3316
+ `).map((a) => a.trim()).join(`
3313
3317
  `);
3314
3318
  }
3315
3319
  i.trimIndent = e;
3316
- function r(s) {
3317
- return s.replace(/([^A-Z]?)([A-Z])/g, (n, a, h) => a ? `${a}-${h.toLowerCase()}` : h.toLowerCase());
3320
+ function r(n) {
3321
+ return n.replace(/([^A-Z]?)([A-Z])/g, (a, h, o) => h ? `${h}-${o.toLowerCase()}` : o.toLowerCase());
3318
3322
  }
3319
3323
  i.pascal2kebab = r;
3320
- })(Te || (Te = {}));
3321
- const Ai = {
3324
+ function s(n) {
3325
+ return /^-?\d+$/.test(n);
3326
+ }
3327
+ i.isInt = s;
3328
+ })(de || (de = {}));
3329
+ const Ri = {
3322
3330
  /** @see https://nodejs.org/docs/v10.3.0/api/path.html#path_path_basename_path_ext */
3323
3331
  basename(i, t) {
3324
3332
  const e = i.endsWith("/") ? i.slice(0, -1) : i, r = e.lastIndexOf("/"), s = r >= 0 ? e.substring(r + 1) : e;
@@ -3358,7 +3366,7 @@ var Me = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overla
3358
3366
  }
3359
3367
  i.toBaidu = e;
3360
3368
  })(Oe || (Oe = {}));
3361
- class Ri {
3369
+ class $i {
3362
3370
  constructor(t, e) {
3363
3371
  c(this, "baidu");
3364
3372
  c(this, "google");
@@ -3379,7 +3387,7 @@ class Ri {
3379
3387
  asBaidu() {
3380
3388
  if (!this.baidu) {
3381
3389
  const t = this;
3382
- wr();
3390
+ Er();
3383
3391
  class e extends BMap.OverlayV3 {
3384
3392
  initialize(n) {
3385
3393
  var o;
@@ -3432,10 +3440,10 @@ class Ri {
3432
3440
  }
3433
3441
  }
3434
3442
  let et;
3435
- function $i(i, t, e, r, s) {
3436
- return et || (et = zi()), new et(i, t, e, r, s);
3443
+ function zi(i, t, e, r, s) {
3444
+ return et || (et = Di()), new et(i, t, e, r, s);
3437
3445
  }
3438
- function zi() {
3446
+ function Di() {
3439
3447
  return class extends google.maps.OverlayView {
3440
3448
  constructor(e, r, s, n = Me.overlayMouseTarget, a) {
3441
3449
  super();
@@ -3489,7 +3497,7 @@ function zi() {
3489
3497
  }
3490
3498
  };
3491
3499
  }
3492
- var de;
3500
+ var ue;
3493
3501
  ((i) => {
3494
3502
  function t(r) {
3495
3503
  return typeof r == "string" ? r : r.outerHTML;
@@ -3503,7 +3511,7 @@ var de;
3503
3511
  return r;
3504
3512
  }
3505
3513
  i.toElement = e;
3506
- })(de || (de = {}));
3514
+ })(ue || (ue = {}));
3507
3515
  class Pt extends Ue {
3508
3516
  constructor(e, r, s, n) {
3509
3517
  super(e, r, s);
@@ -3515,7 +3523,7 @@ class Pt extends Ue {
3515
3523
  }
3516
3524
  static create(e) {
3517
3525
  var a;
3518
- const r = this.coordType, s = new BMap.Label(de.toString(e.content), {
3526
+ const r = this.coordType, s = new BMap.Label(ue.toString(e.content), {
3519
3527
  position: (a = e.position) == null ? void 0 : a.toBaidu(r),
3520
3528
  offset: e.offset && new BMap.Size(e.offset.x, e.offset.y)
3521
3529
  });
@@ -3535,7 +3543,7 @@ class Pt extends Ue {
3535
3543
  characterData: !0,
3536
3544
  childList: !0,
3537
3545
  subtree: !0
3538
- })), r || this.innerOverlay.setContent(de.toString(e)), this.content = e);
3546
+ })), r || this.innerOverlay.setContent(ue.toString(e)), this.content = e);
3539
3547
  }
3540
3548
  setZIndex(e) {
3541
3549
  this.innerOverlay.setZIndex(e);
@@ -3590,7 +3598,7 @@ class Pt extends Ue {
3590
3598
  e.__icon__.scale,
3591
3599
  e.__icon__.strokeWeight
3592
3600
  ].map((_) => _ ?? "").join(",");
3593
- console.warn("BaiduLabelOverlay.attachIcon", e.__icon__, Te.trimIndent(
3601
+ console.warn("BaiduLabelOverlay.attachIcon", e.__icon__, de.trimIndent(
3594
3602
  `
3595
3603
  为了保证Label的位置正确, 请将SymbolIcon(${b})中baiduLabelOffset的值改写成:
3596
3604
  ${JSON.stringify({ x: l, y: d })}
@@ -3607,8 +3615,8 @@ class Pt extends Ue {
3607
3615
  class xt extends bt {
3608
3616
  static create(t) {
3609
3617
  var s;
3610
- const e = this.coordType, r = $i(
3611
- de.toElement(t.content),
3618
+ const e = this.coordType, r = zi(
3619
+ ue.toElement(t.content),
3612
3620
  (s = t.position) == null ? void 0 : s.toGoogle(e),
3613
3621
  t.offset,
3614
3622
  t.mapPane,
@@ -3620,7 +3628,7 @@ class xt extends bt {
3620
3628
  this.innerOverlay.setZIndex(t);
3621
3629
  }
3622
3630
  setContent(t) {
3623
- this.innerOverlay.setElement(de.toElement(t));
3631
+ this.innerOverlay.setElement(ue.toElement(t));
3624
3632
  }
3625
3633
  getPosition() {
3626
3634
  const t = this.innerOverlay.getPosition();
@@ -3697,7 +3705,7 @@ var Ne;
3697
3705
  }
3698
3706
  i.toBaidu = e;
3699
3707
  })(Ne || (Ne = {}));
3700
- const Fs = {
3708
+ const Us = {
3701
3709
  CIRCLE: { baidu: () => BMap_Symbol_SHAPE_CIRCLE, google: () => google.maps.SymbolPath.CIRCLE },
3702
3710
  BACKWARD_CLOSED_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW, google: () => google.maps.SymbolPath.BACKWARD_CLOSED_ARROW },
3703
3711
  BACKWARD_OPEN_ARROW: { baidu: () => BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW, google: () => google.maps.SymbolPath.BACKWARD_OPEN_ARROW },
@@ -4047,7 +4055,7 @@ class $t extends Bt {
4047
4055
  if (r.length === 4)
4048
4056
  if (a > r.length) {
4049
4057
  for (let o = 0; o < a; o++)
4050
- if (r[o] == null || !Ft.equals(s[o], r[o])) {
4058
+ if (r[o] == null || !Ut.equals(s[o], r[o])) {
4051
4059
  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];
4052
4060
  let _;
4053
4061
  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, _];
@@ -4055,7 +4063,7 @@ class $t extends Bt {
4055
4063
  }
4056
4064
  } else if (a === r.length) {
4057
4065
  for (let o = 0; o < a; o++)
4058
- if (!Ft.equals(s[o], r[o])) {
4066
+ if (!Ut.equals(s[o], r[o])) {
4059
4067
  n = [
4060
4068
  s[o],
4061
4069
  s[(o + 2) % 4]
@@ -4116,7 +4124,7 @@ class zt extends Ye {
4116
4124
  }
4117
4125
  }
4118
4126
  const ee = 1;
4119
- class Di extends _t {
4127
+ class Ni extends _t {
4120
4128
  constructor(e, r) {
4121
4129
  var s;
4122
4130
  super(e);
@@ -4282,22 +4290,22 @@ class Di extends _t {
4282
4290
  e.inner && (oe(e.inner instanceof BMap.Control, `control.inner(${e.inner})需要是BMap.Control`), this.map.removeControl(e.inner));
4283
4291
  }
4284
4292
  createMarkerClusterer(e) {
4285
- return new Oi(this, e);
4293
+ return new Ci(this, e);
4286
4294
  }
4287
4295
  createAutocomplete(e) {
4288
- return new vi(this, e);
4296
+ return new _i(this, e);
4289
4297
  }
4290
4298
  createSearchBox(e) {
4291
- return new Pi(this, e);
4299
+ return new xi(this, e);
4292
4300
  }
4293
4301
  createPlacesService(e) {
4294
- return new Ei(this, e);
4302
+ return new Li(this, e);
4295
4303
  }
4296
4304
  createMapUrls(e) {
4297
4305
  return new Ie(e);
4298
4306
  }
4299
4307
  }
4300
- class Ni extends _t {
4308
+ class Gi extends _t {
4301
4309
  constructor(e, r) {
4302
4310
  var n;
4303
4311
  super(e);
@@ -4443,29 +4451,29 @@ class Ni extends _t {
4443
4451
  }
4444
4452
  }
4445
4453
  createMarkerClusterer(e) {
4446
- return new Ci(this, e);
4454
+ return new wi(this, e);
4447
4455
  }
4448
4456
  createAutocomplete(e) {
4449
- return new yi(this, e);
4457
+ return new vi(this, e);
4450
4458
  }
4451
4459
  createSearchBox(e) {
4452
- return new Li(this, e);
4460
+ return new Pi(this, e);
4453
4461
  }
4454
4462
  createPlacesService(e) {
4455
- return new wi(this, e);
4463
+ return new Ei(this, e);
4456
4464
  }
4457
4465
  createMapUrls(e) {
4458
4466
  return new Be(e);
4459
4467
  }
4460
4468
  }
4461
- class Gi extends _t {
4469
+ class Zi extends _t {
4462
4470
  constructor(e, r) {
4463
4471
  var a;
4464
4472
  super(e);
4465
4473
  c(this, "map");
4466
4474
  c(this, "defaultLayers");
4467
4475
  this.mapOptions = r;
4468
- const s = ir().here;
4476
+ const s = sr().here;
4469
4477
  Ae.includes(s.version) || C(`不支持${s.version}, HereMap当前只支持如下版本: ${Ae}`);
4470
4478
  const n = new H.service.Platform({
4471
4479
  app_id: s.key.split(",")[0],
@@ -4616,44 +4624,44 @@ var G = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here
4616
4624
  const n = ot.create(s);
4617
4625
  switch (e) {
4618
4626
  case "google":
4619
- return new Ni(r, n);
4627
+ return new Gi(r, n);
4620
4628
  case "baidu":
4621
- return new Di(r, n);
4629
+ return new Ni(r, n);
4622
4630
  case "here":
4623
- return new Gi(r, n);
4631
+ return new Zi(r, n);
4624
4632
  }
4625
4633
  }
4626
4634
  i.createMap = t;
4627
4635
  })(at || (at = {}));
4628
- function Zi({ type: i, config: t }) {
4629
- const e = window, r = Wi(i);
4636
+ function Wi({ type: i, config: t }) {
4637
+ const e = window, r = ji(i);
4630
4638
  if (e[r])
4631
4639
  return Promise.resolve();
4632
4640
  switch (i !== G.here && !t.key && C(`请先配置${i}地图的key`), i) {
4633
4641
  case G.google:
4634
- return {}.VITE_FALSE ? (gi({
4642
+ return {}.VITE_FALSE ? (mi({
4635
4643
  key: t.key,
4636
4644
  v: "3.52"
4637
4645
  // v: config.version,
4638
- }), google.maps.importLibrary("core")) : Ut(`https://maps.googleapis.com/maps/api/js?key=${t.key}&language=${t.language}&v=${t.version}&libraries=${t.libraries.join(",")}`);
4646
+ }), google.maps.importLibrary("core")) : Yt(`https://maps.googleapis.com/maps/api/js?key=${t.key}&language=${t.language}&v=${t.version}&libraries=${t.libraries.join(",")}`);
4639
4647
  case G.baidu:
4640
- return Ut(`https://api.map.baidu.com/api?v=${t.version}&ak=${t.key}`);
4648
+ return Yt(`https://api.map.baidu.com/api?v=${t.version}&ak=${t.key}`);
4641
4649
  case G.here:
4642
- return ge(pe("core", t.version)).then(() => Promise.all([
4650
+ return me(ge("core", t.version)).then(() => Promise.all([
4643
4651
  // 其他大多数模块都可以同时载入
4644
- ge(pe("service", t.version)),
4645
- ge(pe("mapevents", t.version)),
4646
- ge(pe("clustering", t.version)),
4647
- ge(pe("ui", t.version))
4652
+ me(ge("service", t.version)),
4653
+ me(ge("mapevents", t.version)),
4654
+ me(ge("clustering", t.version)),
4655
+ me(ge("ui", t.version))
4648
4656
  ])).catch((s) => (delete e[r], Promise.reject(s)));
4649
4657
  default:
4650
4658
  rt(i);
4651
4659
  }
4652
4660
  }
4653
- function pe(i, t = Ae[0]) {
4661
+ function ge(i, t = Ae[0]) {
4654
4662
  return `https://js.api.here.com/v3/${t}/mapsjs-${i}.js`;
4655
4663
  }
4656
- function Wi(i) {
4664
+ function ji(i) {
4657
4665
  switch (i) {
4658
4666
  case G.google:
4659
4667
  return "google";
@@ -4664,7 +4672,7 @@ function Wi(i) {
4664
4672
  }
4665
4673
  }
4666
4674
  let Hi = 0;
4667
- function Ut(i, t = "callback") {
4675
+ function Yt(i, t = "callback") {
4668
4676
  return new Promise((e, r) => {
4669
4677
  const s = `__callback${Hi++}`;
4670
4678
  window[s] = e;
@@ -4672,7 +4680,7 @@ function Ut(i, t = "callback") {
4672
4680
  n.src = `${i}&${t}=${s}`, n.onerror = r, document.body.appendChild(n);
4673
4681
  });
4674
4682
  }
4675
- function ge(i) {
4683
+ function me(i) {
4676
4684
  return new Promise((t, e) => {
4677
4685
  const r = document.createElement("script");
4678
4686
  r.src = i, r.onload = t, r.onerror = e, document.body.appendChild(r);
@@ -4685,7 +4693,7 @@ function Z(i, t) {
4685
4693
  validator: (e) => Object.values(i).includes(e)
4686
4694
  };
4687
4695
  }
4688
- function ji(i, t) {
4696
+ function Vi(i, t) {
4689
4697
  return {
4690
4698
  type: String,
4691
4699
  default: t,
@@ -4704,7 +4712,7 @@ function m(i, t) {
4704
4712
  default: t
4705
4713
  };
4706
4714
  }
4707
- function Us(i) {
4715
+ function Ys(i) {
4708
4716
  const t = {};
4709
4717
  return Object.entries(i).forEach(([e, r]) => {
4710
4718
  const s = `__${e}`;
@@ -4721,23 +4729,23 @@ function Us(i) {
4721
4729
  };
4722
4730
  }), t;
4723
4731
  }
4724
- const me = {
4732
+ const fe = {
4725
4733
  enumerable: !0,
4726
4734
  configurable: !0,
4727
- get: ve,
4728
- set: ve
4735
+ get: _e,
4736
+ set: _e
4729
4737
  };
4730
- function Vi(i) {
4738
+ function Fi(i) {
4731
4739
  return Object.keys(i).forEach((t) => {
4732
4740
  const e = i[t];
4733
4741
  let r = !1;
4734
- typeof e == "function" ? (me.get = e, me.set = ve, r = !0) : typeof e == "object" && typeof e.get == "function" && (me.get = e.get, me.set = e.set, r = !0), r && (i[t] = Object.defineProperty(i, t, me));
4742
+ typeof e == "function" ? (fe.get = e, fe.set = _e, r = !0) : typeof e == "object" && typeof e.get == "function" && (fe.get = e.get, fe.set = e.set, r = !0), r && (i[t] = Object.defineProperty(i, t, fe));
4735
4743
  }), i;
4736
4744
  }
4737
- function Ys(i) {
4738
- return Vi(i);
4745
+ function qs(i) {
4746
+ return Fi(i);
4739
4747
  }
4740
- function Er() {
4748
+ function Lr() {
4741
4749
  return tt();
4742
4750
  }
4743
4751
  function xe(i, t) {
@@ -4746,12 +4754,12 @@ function xe(i, t) {
4746
4754
  for (const r of e)
4747
4755
  r.call(i);
4748
4756
  }
4749
- function qs(i, t) {
4757
+ function Ks(i, t) {
4750
4758
  for (const e of i)
4751
4759
  if (e.$options.name === t.name)
4752
4760
  return e;
4753
4761
  }
4754
- function Ks(i, t) {
4762
+ function Xs(i, t) {
4755
4763
  if (!i.default)
4756
4764
  return;
4757
4765
  const e = i.default();
@@ -4759,12 +4767,12 @@ function Ks(i, t) {
4759
4767
  if ((r == null ? void 0 : r.type).name === t.name)
4760
4768
  return r;
4761
4769
  }
4762
- function Fi(i, t) {
4770
+ function Ui(i, t) {
4763
4771
  const e = {}, r = {}, s = {};
4764
4772
  return Object.keys(i).forEach((n) => {
4765
- n.startsWith("on") ? e[Te.pascal2kebab(n.substring(2))] = i[n] : r[n] = i[n];
4773
+ n.startsWith("on") ? e[de.pascal2kebab(n.substring(2))] = i[n] : r[n] = i[n];
4766
4774
  }), t && Object.keys(t).forEach((n) => {
4767
- n.startsWith("on") && (s[Te.pascal2kebab(n.substring(2))] = t[n]);
4775
+ n.startsWith("on") && (s[de.pascal2kebab(n.substring(2))] = t[n]);
4768
4776
  }), {
4769
4777
  /** class/style/未声明的属性 等 */
4770
4778
  binds: r,
@@ -4775,12 +4783,12 @@ function Fi(i, t) {
4775
4783
  };
4776
4784
  }
4777
4785
  function q(i, t) {
4778
- return qt(() => Fi(i, t));
4786
+ return Kt(() => Ui(i, t));
4779
4787
  }
4780
4788
  function L() {
4781
4789
  return Function;
4782
4790
  }
4783
- const Xs = () => {
4791
+ const Js = () => {
4784
4792
  let i, t;
4785
4793
  function e(s) {
4786
4794
  console.log(s), i = s && s.type, t = Date.now();
@@ -4803,13 +4811,13 @@ const Xs = () => {
4803
4811
  }
4804
4812
  },
4805
4813
  render() {
4806
- return Er();
4814
+ return Lr();
4807
4815
  }
4808
- }), Ui = w({
4816
+ }), Yi = w({
4809
4817
  name: "tg-map",
4810
4818
  provide() {
4811
4819
  return {
4812
- [Dt]: qt(() => this.map)
4820
+ [Dt]: Kt(() => this.map)
4813
4821
  };
4814
4822
  },
4815
4823
  inheritAttrs: !1,
@@ -4846,12 +4854,12 @@ const Xs = () => {
4846
4854
  * 该属性不会响应式更新, 要让它立即生效, 请参考{@link file://./../views/map/InfoDemo.vue#L3}
4847
4855
  * @see MapOptions.infoWindowMode
4848
4856
  */
4849
- infoWindowMode: ji(Bi),
4857
+ infoWindowMode: Vi(Ii),
4850
4858
  gestureHandling: Z(j),
4851
4859
  minZoom: m(Number),
4852
4860
  maxZoom: m(Number),
4853
4861
  mapStyle: m(Object),
4854
- mapTypeId: Z(lr),
4862
+ mapTypeId: Z(hr),
4855
4863
  /** 地图类型对象, 优先级比mapTypeId高 */
4856
4864
  mapType: m(Object),
4857
4865
  hideLogo: m(Boolean),
@@ -4880,7 +4888,7 @@ const Xs = () => {
4880
4888
  },
4881
4889
  computed: {
4882
4890
  propsJson() {
4883
- return be.toJsonSafely(this.$props);
4891
+ return Te.toJsonSafely(this.$props);
4884
4892
  }
4885
4893
  },
4886
4894
  watch: {
@@ -4912,7 +4920,7 @@ const Xs = () => {
4912
4920
  async mounted() {
4913
4921
  const i = this.type;
4914
4922
  try {
4915
- await Zi({ type: i, config: ir()[i] });
4923
+ await Wi({ type: i, config: sr()[i] });
4916
4924
  } catch (s) {
4917
4925
  this.$emit("error", s);
4918
4926
  return;
@@ -4936,12 +4944,12 @@ const Xs = () => {
4936
4944
  buildInMapTypeId: this.mapTypeId
4937
4945
  }
4938
4946
  );
4939
- if (this.map = Ar(t), this.mapType && t.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), Y(
4947
+ if (this.map = Rr(t), this.mapType && t.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), Y(
4940
4948
  this.attrs.listeners,
4941
4949
  t,
4942
4950
  /* excludes: */
4943
4951
  ["load"]
4944
- ), this.$emit("load", t), Kt([
4952
+ ), this.$emit("load", t), Xt([
4945
4953
  () => this.zoom,
4946
4954
  () => this.center
4947
4955
  //
@@ -4975,11 +4983,11 @@ const K = (i, t) => {
4975
4983
  e[r] = s;
4976
4984
  return e;
4977
4985
  };
4978
- function Yi(i, t, e, r, s, n) {
4979
- return F(), U("div", ue({ class: "tg-map" }, i.attrs.binds), [
4980
- Rr("div", {
4986
+ function qi(i, t, e, r, s, n) {
4987
+ return F(), U("div", pe({ class: "tg-map" }, i.attrs.binds), [
4988
+ $r("div", {
4981
4989
  ref: "map",
4982
- class: je({
4990
+ class: He({
4983
4991
  "tg-map__map": !0,
4984
4992
  [`tg-map__map--hide-logo-${i.type}`]: i.hideLogo
4985
4993
  })
@@ -4989,8 +4997,8 @@ function Yi(i, t, e, r, s, n) {
4989
4997
  W(i.$slots, "overlay")
4990
4998
  ], 16);
4991
4999
  }
4992
- const Le = /* @__PURE__ */ K(Ui, [["render", Yi]]);
4993
- function qi(i) {
5000
+ const Le = /* @__PURE__ */ K(Yi, [["render", qi]]);
5001
+ function Ki(i) {
4994
5002
  if (i == null)
4995
5003
  return;
4996
5004
  let t;
@@ -5001,7 +5009,7 @@ function qi(i) {
5001
5009
  t = i;
5002
5010
  return `${t}px`;
5003
5011
  }
5004
- const Ki = w({
5012
+ const Xi = w({
5005
5013
  name: "tg-map-widget",
5006
5014
  props: {
5007
5015
  left: {
@@ -5027,18 +5035,18 @@ const Ki = w({
5027
5035
  }
5028
5036
  },
5029
5037
  methods: {
5030
- dimen: qi
5038
+ dimen: Ki
5031
5039
  }
5032
5040
  });
5033
- function Xi(i, t, e, r, s, n) {
5041
+ function Ji(i, t, e, r, s, n) {
5034
5042
  return F(), U("div", {
5035
- class: je(i.$options.name),
5036
- style: $r({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
5043
+ class: He(i.$options.name),
5044
+ style: zr({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
5037
5045
  }, [
5038
5046
  W(i.$slots, "default")
5039
5047
  ], 6);
5040
5048
  }
5041
- const Ji = /* @__PURE__ */ K(Ki, [["render", Xi]]), Qi = w({
5049
+ const Qi = /* @__PURE__ */ K(Xi, [["render", Ji]]), es = w({
5042
5050
  name: "tg-custom-control",
5043
5051
  mixins: [x],
5044
5052
  props: {
@@ -5055,8 +5063,8 @@ const Ji = /* @__PURE__ */ K(Ki, [["render", Xi]]), Qi = w({
5055
5063
  }
5056
5064
  },
5057
5065
  onCreate() {
5058
- Qt(this.$parent, Le) || console.warn("请将tg-custom-control放到tg-map中");
5059
- const { $el: i } = this, t = class extends ui {
5066
+ er(this.$parent, Le) || console.warn("请将tg-custom-control放到tg-map中");
5067
+ const { $el: i } = this, t = class extends pi {
5060
5068
  onCreateElement() {
5061
5069
  return i;
5062
5070
  }
@@ -5067,19 +5075,19 @@ const Ji = /* @__PURE__ */ K(Ki, [["render", Xi]]), Qi = w({
5067
5075
  this.$map.removeCustomControl(this.control);
5068
5076
  }
5069
5077
  });
5070
- function es(i, t, e, r, s, n) {
5078
+ function ts(i, t, e, r, s, n) {
5071
5079
  return F(), U("div", {
5072
- class: je(i.$options.name)
5080
+ class: He(i.$options.name)
5073
5081
  }, [
5074
5082
  W(i.$slots, "default")
5075
5083
  ], 2);
5076
5084
  }
5077
- const ts = /* @__PURE__ */ K(Qi, [["render", es]]), rs = w({
5085
+ const rs = /* @__PURE__ */ K(es, [["render", ts]]), is = w({
5078
5086
  name: "tg-map-type-control",
5079
5087
  mixins: [x],
5080
5088
  props: {
5081
5089
  position: Z(S, S.TOP_LEFT),
5082
- type: Z(hr),
5090
+ type: Z(cr),
5083
5091
  mapTypes: m(Array)
5084
5092
  },
5085
5093
  setup() {
@@ -5107,7 +5115,7 @@ const ts = /* @__PURE__ */ K(Qi, [["render", es]]), rs = w({
5107
5115
  onDestroy() {
5108
5116
  this.$map.removeControl(this.control);
5109
5117
  }
5110
- }), is = w({
5118
+ }), ss = w({
5111
5119
  name: "tg-scale-control",
5112
5120
  mixins: [x],
5113
5121
  props: {
@@ -5130,20 +5138,20 @@ const ts = /* @__PURE__ */ K(Qi, [["render", es]]), rs = w({
5130
5138
  this.$map.removeControl(this.control);
5131
5139
  }
5132
5140
  });
5133
- function Lr() {
5141
+ function Pr() {
5134
5142
  var e;
5135
- const i = (e = zr()) == null ? void 0 : e.type;
5143
+ const i = (e = Dr()) == null ? void 0 : e.type;
5136
5144
  let t = (i == null ? void 0 : i.name) ?? (i == null ? void 0 : i.__name);
5137
5145
  if (!t) {
5138
5146
  const r = i == null ? void 0 : i.__file;
5139
- r && (t = Ai.basename(r, ".vue"));
5147
+ r && (t = Ri.basename(r, ".vue"));
5140
5148
  }
5141
5149
  return t;
5142
5150
  }
5143
- function ss() {
5144
- const i = Dr(Dt);
5151
+ function ns() {
5152
+ const i = Nr(Dt);
5145
5153
  let t, e;
5146
- return i == null && C(`<${Lr() || "unknown"}>必须作为<tg-map>的子代组件`), {
5154
+ return i == null && C(`<${Pr() || "unknown"}>必须作为<tg-map>的子代组件`), {
5147
5155
  mapRef: i,
5148
5156
  /** 读取map对象, 只要放在<tg-map>里面的组件(除#overlay插槽外)都能够立即读取到map对象 */
5149
5157
  get map() {
@@ -5151,11 +5159,11 @@ function ss() {
5151
5159
  },
5152
5160
  /** 地图元素创建回调 */
5153
5161
  [we](r) {
5154
- Nr(r), t && C(`${we}只能调用一次`), t = r;
5162
+ Gr(r), t && C(`${we}只能调用一次`), t = r;
5155
5163
  },
5156
5164
  /** 地图元素销毁回调 */
5157
5165
  [Ee](r) {
5158
- Gr(r), e && C(`${Ee}只能调用一次`), e = r;
5166
+ Zr(r), e && C(`${Ee}只能调用一次`), e = r;
5159
5167
  },
5160
5168
  /** 重新创建地图元素 */
5161
5169
  recreate() {
@@ -5163,23 +5171,23 @@ function ss() {
5163
5171
  }
5164
5172
  };
5165
5173
  }
5166
- const ns = w({
5174
+ const os = w({
5167
5175
  name: "tg-zoom-control",
5168
5176
  props: {
5169
5177
  position: Z(S, S.RIGHT_BOTTOM)
5170
5178
  },
5171
5179
  setup(i) {
5172
5180
  let t = void 0;
5173
- const { map: e, onCreate: r, onDestroy: s } = ss();
5181
+ const { map: e, onCreate: r, onDestroy: s } = ns();
5174
5182
  return r(() => {
5175
5183
  t = e.createZoomControl(i), e.addControl(t);
5176
5184
  }), s(() => {
5177
5185
  e.removeControl(t);
5178
- }), Kt(() => i.position, (n) => {
5186
+ }), Xt(() => i.position, (n) => {
5179
5187
  t.setPosition(n);
5180
- }), Er;
5188
+ }), Lr;
5181
5189
  }
5182
- }), os = w({
5190
+ }), as = w({
5183
5191
  name: "tg-marker-clusterer",
5184
5192
  mixins: [x],
5185
5193
  // markers从this.$children中读取, 故需要省略(Omit)
@@ -5243,14 +5251,14 @@ const ns = w({
5243
5251
  }
5244
5252
  }
5245
5253
  });
5246
- function as(i, t, e, r, s, n) {
5254
+ function ls(i, t, e, r, s, n) {
5247
5255
  return F(), U("div", {
5248
- class: je(i.$options.name)
5256
+ class: He(i.$options.name)
5249
5257
  }, [
5250
5258
  W(i.$slots, "default")
5251
5259
  ], 2);
5252
5260
  }
5253
- const Pr = /* @__PURE__ */ K(os, [["render", as]]), ls = w({
5261
+ const xr = /* @__PURE__ */ K(as, [["render", ls]]), hs = w({
5254
5262
  name: "tg-traffic-layer",
5255
5263
  mixins: [x],
5256
5264
  // 请直接使用v-if来控制它的显隐
@@ -5263,12 +5271,12 @@ const Pr = /* @__PURE__ */ K(os, [["render", as]]), ls = w({
5263
5271
  },
5264
5272
  watch: {},
5265
5273
  onCreate() {
5266
- this.layer = new pi(), this.$map.addLayer(this.layer);
5274
+ this.layer = new gi(), this.$map.addLayer(this.layer);
5267
5275
  },
5268
5276
  onDestroy() {
5269
5277
  this.$map.removeLayer(this.layer);
5270
5278
  }
5271
- }), hs = w({
5279
+ }), cs = w({
5272
5280
  name: "tg-circle",
5273
5281
  mixins: [x],
5274
5282
  inheritAttrs: !1,
@@ -5348,7 +5356,7 @@ const Pr = /* @__PURE__ */ K(os, [["render", as]]), ls = w({
5348
5356
  this.$map.removeOverlay(this.overlay);
5349
5357
  }
5350
5358
  });
5351
- class cs extends Ri {
5359
+ class ds extends $i {
5352
5360
  constructor(t, e, r, s) {
5353
5361
  super(t, e), this.content = r, this.position = s;
5354
5362
  }
@@ -5363,7 +5371,7 @@ class cs extends Ri {
5363
5371
  this.position = t, this.draw();
5364
5372
  }
5365
5373
  }
5366
- const ds = w({
5374
+ const us = w({
5367
5375
  name: "tg-element-overlay",
5368
5376
  mixins: [x],
5369
5377
  props: {
@@ -5389,20 +5397,20 @@ const ds = w({
5389
5397
  }
5390
5398
  },
5391
5399
  onCreate() {
5392
- this.overlay = new cs(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
5400
+ this.overlay = new ds(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
5393
5401
  },
5394
5402
  onDestroy() {
5395
5403
  this.$map.removeElementOverlay(this.overlay);
5396
5404
  }
5397
5405
  });
5398
- function us(i, t, e, r, s, n) {
5399
- return F(), U("div", ue({
5406
+ function ps(i, t, e, r, s, n) {
5407
+ return F(), U("div", pe({
5400
5408
  class: i.$options.name
5401
5409
  }, i.$attrs), [
5402
5410
  W(i.$slots, "default")
5403
5411
  ], 16);
5404
5412
  }
5405
- const ps = /* @__PURE__ */ K(ds, [["render", us]]), gs = w({
5413
+ const gs = /* @__PURE__ */ K(us, [["render", ps]]), ms = w({
5406
5414
  name: "tg-marker",
5407
5415
  mixins: [x],
5408
5416
  inheritAttrs: !1,
@@ -5476,7 +5484,7 @@ const ps = /* @__PURE__ */ K(ds, [["render", us]]), gs = w({
5476
5484
  },
5477
5485
  methods: {
5478
5486
  $clusterer() {
5479
- return Qt(this.$parent, Pr);
5487
+ return er(this.$parent, xr);
5480
5488
  },
5481
5489
  onAddLabel(i) {
5482
5490
  this.label = i, this.marker && this.marker.setLabel(i.overlay);
@@ -5495,14 +5503,14 @@ const ps = /* @__PURE__ */ K(ds, [["render", us]]), gs = w({
5495
5503
  }
5496
5504
  }
5497
5505
  });
5498
- function ms(i, t, e, r, s, n) {
5499
- return F(), U("div", ue({
5506
+ function fs(i, t, e, r, s, n) {
5507
+ return F(), U("div", pe({
5500
5508
  class: i.$options.name
5501
5509
  }, i.attrs.binds), [
5502
5510
  W(i.$slots, "default")
5503
5511
  ], 16);
5504
5512
  }
5505
- const qe = /* @__PURE__ */ K(gs, [["render", ms]]), fs = w({
5513
+ const qe = /* @__PURE__ */ K(ms, [["render", fs]]), ys = w({
5506
5514
  name: "tg-info-box",
5507
5515
  mixins: [x],
5508
5516
  inheritAttrs: !1,
@@ -5575,14 +5583,14 @@ const qe = /* @__PURE__ */ K(gs, [["render", ms]]), fs = w({
5575
5583
  }
5576
5584
  }
5577
5585
  });
5578
- function ys(i, t, e, r, s, n) {
5579
- return F(), U("div", ue({
5586
+ function vs(i, t, e, r, s, n) {
5587
+ return F(), U("div", pe({
5580
5588
  class: i.$options.name
5581
5589
  }, i.attrs.binds), [
5582
5590
  W(i.$slots, "default")
5583
5591
  ], 16);
5584
5592
  }
5585
- const vs = /* @__PURE__ */ K(fs, [["render", ys]]), _s = w({
5593
+ const _s = /* @__PURE__ */ K(ys, [["render", vs]]), bs = w({
5586
5594
  name: "tg-info-window",
5587
5595
  mixins: [x],
5588
5596
  inheritAttrs: !1,
@@ -5646,16 +5654,16 @@ const vs = /* @__PURE__ */ K(fs, [["render", ys]]), _s = w({
5646
5654
  this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
5647
5655
  }
5648
5656
  });
5649
- function bs(i, t, e, r, s, n) {
5650
- return Zr((F(), U("div", ue({
5657
+ function Ts(i, t, e, r, s, n) {
5658
+ return Wr((F(), U("div", pe({
5651
5659
  class: i.$options.name
5652
5660
  }, i.attrs.binds), [
5653
5661
  W(i.$slots, "default")
5654
5662
  ], 16)), [
5655
- [Wr, i.show]
5663
+ [jr, i.show]
5656
5664
  ]);
5657
5665
  }
5658
- const Ts = /* @__PURE__ */ K(_s, [["render", bs]]), Ms = w({
5666
+ const Ms = /* @__PURE__ */ K(bs, [["render", Ts]]), Os = w({
5659
5667
  name: "tg-label",
5660
5668
  mixins: [x],
5661
5669
  inheritAttrs: !1,
@@ -5717,14 +5725,14 @@ const Ts = /* @__PURE__ */ K(_s, [["render", bs]]), Ms = w({
5717
5725
  this.$marker() ? this.$marker().onRemoveLabel(this) : this.$map.removeOverlay(this.overlay);
5718
5726
  }
5719
5727
  });
5720
- function Os(i, t, e, r, s, n) {
5721
- return F(), U("div", ue({
5728
+ function Cs(i, t, e, r, s, n) {
5729
+ return F(), U("div", pe({
5722
5730
  class: i.$options.name
5723
5731
  }, i.attrs.binds), [
5724
5732
  W(i.$slots, "default")
5725
5733
  ], 16);
5726
5734
  }
5727
- const Cs = /* @__PURE__ */ K(Ms, [["render", Os]]), ws = w({
5735
+ const ws = /* @__PURE__ */ K(Os, [["render", Cs]]), Es = w({
5728
5736
  name: "tg-polygon",
5729
5737
  mixins: [x],
5730
5738
  inheritAttrs: !1,
@@ -5793,7 +5801,7 @@ const Cs = /* @__PURE__ */ K(Ms, [["render", Os]]), ws = w({
5793
5801
  onDestroy() {
5794
5802
  this.$map.removeOverlay(this.overlay);
5795
5803
  }
5796
- }), Es = w({
5804
+ }), Ls = w({
5797
5805
  name: "tg-polyline",
5798
5806
  mixins: [x],
5799
5807
  inheritAttrs: !1,
@@ -5854,7 +5862,7 @@ const Cs = /* @__PURE__ */ K(Ms, [["render", Os]]), ws = w({
5854
5862
  onDestroy() {
5855
5863
  this.$map.removeOverlay(this.overlay);
5856
5864
  }
5857
- }), Ls = w({
5865
+ }), Ps = w({
5858
5866
  name: "tg-rectangle",
5859
5867
  mixins: [x],
5860
5868
  inheritAttrs: !1,
@@ -5920,14 +5928,14 @@ const Cs = /* @__PURE__ */ K(Ms, [["render", Os]]), ws = w({
5920
5928
  onDestroy() {
5921
5929
  this.$map.removeOverlay(this.overlay);
5922
5930
  }
5923
- }), Ps = ["beforeUpdate", "updated"], Js = {
5931
+ }), xs = ["beforeUpdate", "updated"], Qs = {
5924
5932
  install(i, t = {}) {
5925
5933
  if (t.enable !== !1) {
5926
5934
  const e = w({
5927
5935
  beforeCreate() {
5928
- const r = Lr() ?? "", n = (t.nameRegex || /^[A-Z]/).test(r) ? (a) => {
5929
- t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : Ps.includes(a) || console.debug("[lifecycle]", r, a);
5930
- } : ve;
5936
+ const r = Pr() ?? "", n = (t.nameRegex || /^[A-Z]/).test(r) ? (a) => {
5937
+ t.hookNames ? t.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : xs.includes(a) || console.debug("[lifecycle]", r, a);
5938
+ } : _e;
5931
5939
  n("beforeCreate"), this.__life_impl = n;
5932
5940
  },
5933
5941
  created() {
@@ -5966,44 +5974,44 @@ const Cs = /* @__PURE__ */ K(Ms, [["render", Os]]), ws = w({
5966
5974
  i.mixin(e);
5967
5975
  }
5968
5976
  }
5969
- }, xs = 6378137;
5970
- function ye(i) {
5977
+ }, ks = 6378137;
5978
+ function ve(i) {
5971
5979
  return i * Math.PI / 180;
5972
5980
  }
5973
- function Yt(i) {
5981
+ function qt(i) {
5974
5982
  return i * 180 / Math.PI;
5975
5983
  }
5976
- function ks(i, t) {
5984
+ function Bs(i, t) {
5977
5985
  if (i.lat === t.lat && i.lng === t.lng)
5978
5986
  return 0;
5979
- const e = ye((i.lat + t.lat) / 2), r = ye((i.lat - t.lat) / 2), s = ye((i.lng - t.lng) / 2);
5987
+ const e = ve((i.lat + t.lat) / 2), r = ve((i.lat - t.lat) / 2), s = ve((i.lng - t.lng) / 2);
5980
5988
  let n = Math.sin(r), a = Math.sin(s), h = Math.sin(e);
5981
- const o = xs, l = 1 / 298.257;
5989
+ const o = ks, l = 1 / 298.257;
5982
5990
  n = n * n, a = a * a, h = h * h;
5983
5991
  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;
5984
5992
  return _ * (1 + l * (T * h * (1 - n) - g * (1 - h) * n));
5985
5993
  }
5986
- function Bs(i, t, e) {
5987
- 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)));
5994
+ function Is(i, t, e) {
5995
+ const s = 63567523142e-4, n = 1 / 298.257223563, a = ve(t), h = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(ve(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)));
5988
5996
  let v = 0, O = 0, P = 0, E = e / (s * g), Q = 2 * Math.PI;
5989
5997
  for (; Math.abs(E - Q) > 1e-12; ) {
5990
5998
  v = Math.cos(2 * p + E), O = Math.sin(E), P = Math.cos(E);
5991
- const Br = f * O * (v + f / 4 * (P * (-1 + 2 * v * v) - f / 6 * v * (-3 + 4 * O * O) * (-3 + 4 * v * v)));
5992
- Q = E, E = e / (s * g) + Br;
5999
+ const Ir = f * O * (v + f / 4 * (P * (-1 + 2 * v * v) - f / 6 * v * (-3 + 4 * O * O) * (-3 + 4 * v * v)));
6000
+ Q = E, E = e / (s * g) + Ir;
5993
6001
  }
5994
6002
  const ie = u * O - d * P * o, Ke = Math.atan2(
5995
6003
  u * P + d * O * o,
5996
6004
  (1 - n) * Math.sqrt(b * b + ie * ie)
5997
- ), xr = Math.atan2(O * h, d * P - u * O * o), Xe = n / 16 * _ * (4 + n * (4 - 3 * _)), kr = xr - (1 - Xe) * n * b * (E + Xe * O * (v + Xe * P * (-1 + 2 * v * v)));
5998
- return { lng: i.lng + Yt(kr), lat: Yt(Ke) };
6005
+ ), kr = Math.atan2(O * h, d * P - u * O * o), Xe = n / 16 * _ * (4 + n * (4 - 3 * _)), Br = kr - (1 - Xe) * n * b * (E + Xe * O * (v + Xe * P * (-1 + 2 * v * v)));
6006
+ return { lng: i.lng + qt(Br), lat: qt(Ke) };
5999
6007
  }
6000
- const Qs = {
6001
- getDistance: ks,
6002
- getDestination: Bs
6003
- }, en = {
6008
+ const en = {
6009
+ getDistance: Bs,
6010
+ getDestination: Is
6011
+ }, tn = {
6004
6012
  install(i, t) {
6005
- if (li(t), {}.VITE_FALSE) {
6006
- const r = /* @__PURE__ */ Object.assign({ "./TgMap.vue": Le, "./TgMapWidget.vue": Ji, "./controls/TgCustomControl.vue": ts, "./controls/TgMapTypeControl.vue": rs, "./controls/TgScaleControl.vue": is, "./controls/TgZoomControl.vue": ns, "./extra/TgMarkerClusterer.vue": Pr, "./layers/TgTrafficLayer.vue": ls, "./overlays/TgCircle.vue": hs, "./overlays/TgElementOverlay.vue": ps, "./overlays/TgInfoBox.vue": vs, "./overlays/TgInfoWindow.vue": Ts, "./overlays/TgLabel.vue": Cs, "./overlays/TgMarker.vue": qe, "./overlays/TgPolygon.vue": ws, "./overlays/TgPolyline.vue": Es, "./overlays/TgRectangle.vue": Ls });
6013
+ if (hi(t), {}.VITE_FALSE) {
6014
+ const r = /* @__PURE__ */ Object.assign({ "./TgMap.vue": Le, "./TgMapWidget.vue": Qi, "./controls/TgCustomControl.vue": rs, "./controls/TgMapTypeControl.vue": is, "./controls/TgScaleControl.vue": ss, "./controls/TgZoomControl.vue": os, "./extra/TgMarkerClusterer.vue": xr, "./layers/TgTrafficLayer.vue": hs, "./overlays/TgCircle.vue": cs, "./overlays/TgElementOverlay.vue": gs, "./overlays/TgInfoBox.vue": _s, "./overlays/TgInfoWindow.vue": Ms, "./overlays/TgLabel.vue": ws, "./overlays/TgMarker.vue": qe, "./overlays/TgPolygon.vue": Es, "./overlays/TgPolyline.vue": Ls, "./overlays/TgRectangle.vue": Ps });
6007
6015
  Object.keys(r).forEach((s) => {
6008
6016
  const n = r[s];
6009
6017
  i.component(n.name ?? C(`Tg开头的组件必须设置name: ${s}`), n);
@@ -6014,11 +6022,11 @@ const Qs = {
6014
6022
  }
6015
6023
  };
6016
6024
  export {
6017
- ar as AbstractControl,
6025
+ lr as AbstractControl,
6018
6026
  _t as AbstractMap,
6019
6027
  he as Arrays,
6020
- pr as Autocomplete,
6021
- vi as BaiduAutocomplete,
6028
+ gr as Autocomplete,
6029
+ _i as BaiduAutocomplete,
6022
6030
  Tt as BaiduCircle,
6023
6031
  dt as BaiduControl,
6024
6032
  Et as BaiduInfoBoxOverlay,
@@ -6026,25 +6034,25 @@ export {
6026
6034
  pt as BaiduMapTypeControl,
6027
6035
  Ie as BaiduMapUrls,
6028
6036
  Ce as BaiduMarker,
6029
- Oi as BaiduMarkerClusterer,
6037
+ Ci as BaiduMarkerClusterer,
6030
6038
  Ue as BaiduOverlay,
6031
- Ei as BaiduPlacesService,
6039
+ Li as BaiduPlacesService,
6032
6040
  Bt as BaiduPolyShape,
6033
6041
  At as BaiduPolygon,
6034
6042
  It as BaiduPolyline,
6035
6043
  $t as BaiduRectangle,
6036
6044
  gt as BaiduScaleControl,
6037
- Pi as BaiduSearchBox,
6045
+ xi as BaiduSearchBox,
6038
6046
  ft as BaiduZoomControl,
6039
6047
  A as BuildInMapType,
6040
- lr as BuildInMapTypeId,
6041
- fe as CachedValue,
6048
+ hr as BuildInMapTypeId,
6049
+ ye as CachedValue,
6042
6050
  S as ControlPosition,
6043
6051
  z as ControlPositionConverter,
6044
6052
  B as CoordType,
6045
- ui as CustomControl,
6046
- di as FastFindValues,
6047
- yi as GoogleAutocomplete,
6053
+ pi as CustomControl,
6054
+ ui as FastFindValues,
6055
+ vi as GoogleAutocomplete,
6048
6056
  Mt as GoogleCircle,
6049
6057
  ut as GoogleControl,
6050
6058
  Lt as GoogleInfoBoxOverlay,
@@ -6052,22 +6060,22 @@ export {
6052
6060
  ke as GoogleMapTypeControl,
6053
6061
  Be as GoogleMapUrls,
6054
6062
  kt as GoogleMarker,
6055
- Ci as GoogleMarkerClusterer,
6063
+ wi as GoogleMarkerClusterer,
6056
6064
  bt as GoogleOverlay,
6057
- wi as GooglePlacesService,
6065
+ Ei as GooglePlacesService,
6058
6066
  Rt as GooglePolygon,
6059
6067
  St as GooglePolyline,
6060
6068
  zt as GoogleRectangle,
6061
6069
  mt as GoogleScaleControl,
6062
- Li as GoogleSearchBox,
6070
+ Pi as GoogleSearchBox,
6063
6071
  yt as GoogleZoomControl,
6064
6072
  De as Icon,
6065
- Ws as ImageMapType,
6073
+ js as ImageMapType,
6066
6074
  Ot as InfoWindow,
6067
6075
  Wt as KeyValue,
6068
6076
  y as LatLng,
6069
6077
  R as LatLngBounds,
6070
- Js as LifecycleLogPlugin,
6078
+ Qs as LifecycleLogPlugin,
6071
6079
  V as Location,
6072
6080
  we as MIXIN_HOOK_CREATE,
6073
6081
  Ee as MIXIN_HOOK_DESTROY,
@@ -6075,77 +6083,77 @@ export {
6075
6083
  ce as MVCArrays,
6076
6084
  x as MapMixin,
6077
6085
  $ as MapType,
6078
- hr as MapTypeControlType,
6079
- gr as MapUrls,
6080
- xi as MapZoom,
6081
- br as MarkerClusterer,
6082
- be as Objects,
6083
- Cr as Overlay,
6084
- Tr as PlacesService,
6086
+ cr as MapTypeControlType,
6087
+ mr as MapUrls,
6088
+ ki as MapZoom,
6089
+ Tr as MarkerClusterer,
6090
+ Te as Objects,
6091
+ wr as Overlay,
6092
+ Mr as PlacesService,
6085
6093
  X as Point,
6086
- Mr as SearchBox,
6087
- Qs as SphericalUtils,
6088
- Te as Strings,
6094
+ Or as SearchBox,
6095
+ en as SphericalUtils,
6096
+ de as Strings,
6089
6097
  Ne as SymbolIcon,
6090
- Fs as SymbolPath,
6091
- hs as TgCircle,
6092
- ts as TgCustomControl,
6093
- ps as TgElementOverlay,
6094
- vs as TgInfoBox,
6095
- Ts as TgInfoWindow,
6096
- Cs as TgLabel,
6098
+ Us as SymbolPath,
6099
+ cs as TgCircle,
6100
+ rs as TgCustomControl,
6101
+ gs as TgElementOverlay,
6102
+ _s as TgInfoBox,
6103
+ Ms as TgInfoWindow,
6104
+ ws as TgLabel,
6097
6105
  Le as TgMap,
6098
6106
  at as TgMapFactory,
6099
6107
  G as TgMapType,
6100
- rs as TgMapTypeControl,
6101
- Ji as TgMapWidget,
6108
+ is as TgMapTypeControl,
6109
+ Qi as TgMapWidget,
6102
6110
  qe as TgMarker,
6103
- Pr as TgMarkerClusterer,
6104
- ws as TgPolygon,
6105
- Es as TgPolyline,
6106
- Ls as TgRectangle,
6107
- is as TgScaleControl,
6108
- ls as TgTrafficLayer,
6109
- ns as TgZoomControl,
6110
- pi as TrafficLayer,
6111
+ xr as TgMarkerClusterer,
6112
+ Es as TgPolygon,
6113
+ Ls as TgPolyline,
6114
+ Ps as TgRectangle,
6115
+ ss as TgScaleControl,
6116
+ hs as TgTrafficLayer,
6117
+ os as TgZoomControl,
6118
+ gi as TrafficLayer,
6111
6119
  ze as UnionIcon,
6112
6120
  oe as assert,
6113
6121
  rt as assertNever,
6114
6122
  xe as callHook,
6115
- Us as computedSaveOnThis,
6116
- Er as createEmptyVNode,
6117
- Vi as createPropertyObject,
6118
- Ys as createPropertyObjectTyped,
6119
- Gs as debug,
6120
- en as default,
6123
+ Ys as computedSaveOnThis,
6124
+ Lr as createEmptyVNode,
6125
+ Fi as createPropertyObject,
6126
+ qs as createPropertyObjectTyped,
6127
+ Zs as debug,
6128
+ tn as default,
6121
6129
  L as eventProp,
6122
- Ks as extractVNodeFromSlotsByComponent,
6130
+ Xs as extractVNodeFromSlotsByComponent,
6123
6131
  ht as findAncestorComponentByType,
6124
- qs as findByComponentType,
6125
- Bs as getDestination,
6126
- ir as getTgMapConfig,
6132
+ Ks as findByComponentType,
6133
+ Is as getDestination,
6134
+ sr as getTgMapConfig,
6127
6135
  st as isComponentByType,
6128
- Zs as isDef,
6129
- Fr as isEntryValueDef,
6130
- $s as isInstanceOf,
6131
- Rs as lateinit,
6132
- ve as noop,
6136
+ Ws as isDef,
6137
+ Ur as isEntryValueDef,
6138
+ zs as isInstanceOf,
6139
+ $s as lateinit,
6140
+ _e as noop,
6133
6141
  m as optionalProp,
6134
- Ai as path,
6142
+ Ri as path,
6135
6143
  D as requiredProp,
6136
- zs as safeAs,
6137
- Qt as safeAsComponent,
6138
- li as setTgMapConfig,
6139
- Fi as splitAttrs,
6144
+ Ds as safeAs,
6145
+ er as safeAsComponent,
6146
+ hi as setTgMapConfig,
6147
+ Ui as splitAttrs,
6140
6148
  Z as stringEnumProp,
6141
- ji as stringUnionPropFromValues,
6149
+ Vi as stringUnionPropFromValues,
6142
6150
  C as throwError,
6143
6151
  ct as throwUnsupported,
6144
- Ns as todo,
6152
+ Gs as todo,
6145
6153
  it as typed,
6146
- Ds as unwrapStringEnumValue,
6147
- Xs as useEventLogMethods,
6154
+ Ns as unwrapStringEnumValue,
6155
+ Js as useEventLogMethods,
6148
6156
  q as useSplittedAttrs,
6149
- ss as useTgMapInner
6157
+ ns as useTgMapInner
6150
6158
  };
6151
6159
  //# sourceMappingURL=tg-map.js.map