tg-map-vue3 3.1.8 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tg-map.js CHANGED
@@ -1,35 +1,35 @@
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)}.tg-map{height:100vh;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}.element-overlay{position:absolute}.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 rr = Object.defineProperty;
3
- var ir = (i, e, t) => e in i ? rr(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
4
- var d = (i, e, t) => (ir(i, typeof e != "symbol" ? e + "" : e, t), t);
5
- import { createCommentVNode as Ne, computed as Pt, defineComponent as C, markRaw as sr, openBlock as D, createElementBlock as j, mergeProps as le, createElementVNode as nr, normalizeClass as Le, renderSlot as z, normalizeStyle as or, getCurrentInstance as ar, inject as lr, onMounted as hr, onBeforeUnmount as cr, watch as dr, withDirectives as pr, vShow as ur } from "vue";
2
+ var ar = Object.defineProperty;
3
+ var lr = (i, e, t) => e in i ? ar(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
4
+ var c = (i, e, t) => (lr(i, typeof e != "symbol" ? e + "" : e, t), t);
5
+ import { createCommentVNode as Re, computed as kt, defineComponent as x, markRaw as hr, openBlock as Z, createElementBlock as j, mergeProps as le, createElementVNode as cr, normalizeClass as Ie, renderSlot as z, normalizeStyle as dr, getCurrentInstance as pr, inject as ur, onMounted as gr, onBeforeUnmount as mr, watch as fr, withDirectives as yr, vShow as vr } from "vue";
6
6
  function Y(i, e, t) {
7
7
  Object.keys(i).forEach((r) => {
8
8
  r.startsWith("update:") || t != null && t.includes(r) || e.addEventListener(r, i[r]);
9
9
  });
10
10
  }
11
- let gr = 1;
12
- function mr() {
13
- return gr++;
11
+ let _r = 1;
12
+ function Mr() {
13
+ return _r++;
14
14
  }
15
- function Te(i, e) {
16
- return e.__id__ || (e.__id__ = mr()), `${i}::${e.__id__}`;
15
+ function Oe(i, e) {
16
+ return e.__id__ || (e.__id__ = Mr()), `${i}::${e.__id__}`;
17
17
  }
18
- var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, W = {}, fr = {
18
+ var It = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, V = {}, br = {
19
19
  get exports() {
20
- return W;
20
+ return V;
21
21
  },
22
22
  set exports(i) {
23
- W = i;
23
+ V = i;
24
24
  }
25
25
  };
26
26
  (function(i) {
27
27
  (function(e, t) {
28
28
  i.exports ? i.exports = t() : e.coordtransform = t();
29
- })(kt, function() {
29
+ })(It, function() {
30
30
  var e = 52.35987755982988, t = 3.141592653589793, r = 6378245, s = 0.006693421622965943;
31
- function n(g, m, v, O) {
32
- this.west = Math.min(g, v), this.north = Math.max(m, O), this.east = Math.max(g, v), this.south = Math.min(m, O);
31
+ function n(g, m, v, w) {
32
+ this.west = Math.min(g, v), this.north = Math.max(m, w), this.east = Math.max(g, v), this.south = Math.min(m, w);
33
33
  }
34
34
  n.prototype.contain = function(g, m) {
35
35
  return this.west <= g && this.east >= g && this.north >= m && this.south <= m;
@@ -41,7 +41,7 @@ var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
41
41
  new n(82.9684, 29.5297, 97.0352, 26.7186),
42
42
  new n(97.0253, 29.5297, 124.367395, 20.414096),
43
43
  new n(107.975793, 20.414096, 111.744104, 17.871542)
44
- ], c = [
44
+ ], d = [
45
45
  new n(119.921265, 25.398623, 122.497559, 21.785006),
46
46
  new n(101.8652, 22.284, 106.665, 20.0988),
47
47
  new n(106.4525, 21.5422, 108.051, 20.4878),
@@ -53,37 +53,37 @@ var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
53
53
  function o(g, m) {
54
54
  for (var v = 0; v < a.length; v++)
55
55
  if (a[v].contain(g, m)) {
56
- for (var O = 0; O < c.length; O++)
57
- if (c[O].contain(g, m))
56
+ for (var w = 0; w < d.length; w++)
57
+ if (d[w].contain(g, m))
58
58
  return !1;
59
59
  return !0;
60
60
  }
61
61
  return !1;
62
62
  }
63
63
  function l(g, m) {
64
- var v = g - 65e-4, O = m - 6e-3, E = Math.sqrt(v * v + O * O) - 2e-5 * Math.sin(O * e), w = Math.atan2(O, v) - 3e-6 * Math.cos(v * e), K = E * Math.cos(w), te = E * Math.sin(w);
65
- return [K, te];
64
+ var v = g - 65e-4, w = m - 6e-3, E = Math.sqrt(v * v + w * w) - 2e-5 * Math.sin(w * e), O = Math.atan2(w, v) - 3e-6 * Math.cos(v * e), K = E * Math.cos(O), re = E * Math.sin(O);
65
+ return [K, re];
66
66
  }
67
67
  function h(g, m) {
68
- var v = Math.sqrt(g * g + m * m) + 2e-5 * Math.sin(m * e), O = Math.atan2(m, g) + 3e-6 * Math.cos(g * e), E = v * Math.cos(O) + 65e-4, w = v * Math.sin(O) + 6e-3;
69
- return [E, w];
68
+ var v = Math.sqrt(g * g + m * m) + 2e-5 * Math.sin(m * e), w = Math.atan2(m, g) + 3e-6 * Math.cos(g * e), E = v * Math.cos(w) + 65e-4, O = v * Math.sin(w) + 6e-3;
69
+ return [E, O];
70
70
  }
71
- function u(g, m) {
71
+ function p(g, m) {
72
72
  return o(g, m) ? M(g, m) : [g, m];
73
73
  }
74
- function p(g, m) {
74
+ function u(g, m) {
75
75
  if (!o(g, m))
76
76
  return [g, m];
77
77
  var v = M(g, m);
78
78
  return [g * 2 - v[0], m * 2 - v[1]];
79
79
  }
80
80
  function M(g, m) {
81
- var v = b(g - 105, m - 35), O = _(g - 105, m - 35), E = m / 180 * t, w = Math.sin(E);
82
- w = 1 - s * w * w;
83
- var K = Math.sqrt(w);
84
- v = v * 180 / (r * (1 - s) / (w * K) * t), O = O * 180 / (r / K * Math.cos(E) * t);
85
- var te = m + v, Be = g + O;
86
- return [Be, te];
81
+ var v = b(g - 105, m - 35), w = _(g - 105, m - 35), E = m / 180 * t, O = Math.sin(E);
82
+ O = 1 - s * O * O;
83
+ var K = Math.sqrt(O);
84
+ v = v * 180 / (r * (1 - s) / (O * K) * t), w = w * 180 / (r / K * Math.cos(E) * t);
85
+ var re = m + v, Se = g + w;
86
+ return [Se, re];
87
87
  }
88
88
  function b(g, m) {
89
89
  var v = -100 + 2 * g + 3 * m + 0.2 * m * m + 0.1 * g * m + 0.2 * Math.sqrt(Math.abs(g));
@@ -97,54 +97,54 @@ var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
97
97
  // 向前兼容
98
98
  bd09togcj02: l,
99
99
  gcj02tobd09: h,
100
- wgs84togcj02: u,
101
- gcj02towgs84: p,
100
+ wgs84togcj02: p,
101
+ gcj02towgs84: u,
102
102
  // 小驼峰命名风格
103
103
  bd09ToGcj02: l,
104
104
  gcj02ToBd09: h,
105
- wgs84ToGcj02: u,
106
- gcj02ToWgs84: p,
105
+ wgs84ToGcj02: p,
106
+ gcj02ToWgs84: u,
107
107
  bd09ToWgs84: function(g, m) {
108
108
  if (!o(g, m))
109
109
  return [g, m];
110
110
  var v = l(g, m);
111
- return p(v[0], v[1]);
111
+ return u(v[0], v[1]);
112
112
  },
113
113
  wgs84ToBd09: function(g, m) {
114
114
  if (!o(g, m))
115
115
  return [g, m];
116
- var v = u(g, m);
116
+ var v = p(g, m);
117
117
  return h(v[0], v[1]);
118
118
  }
119
119
  };
120
120
  });
121
- })(fr);
122
- function ie(i, e) {
121
+ })(br);
122
+ function pe(i, e) {
123
123
  if (!i)
124
124
  throw new Error(`AssertionError: ${e}`);
125
125
  }
126
- function Re(i) {
126
+ function De(i) {
127
127
  throw new Error(`Unexpected object: ${i}`);
128
128
  }
129
- function x(i) {
129
+ function C(i) {
130
130
  throw new Error(i);
131
131
  }
132
- function Lt(i) {
132
+ function Bt(i) {
133
133
  throw new Error(`Unsupported: ${i}`);
134
134
  }
135
- function ji(i) {
135
+ function Ki(i) {
136
136
  throw new Error(`todo: ${i}`);
137
137
  }
138
- function Vi(i) {
138
+ function Xi(i) {
139
139
  return i;
140
140
  }
141
- function Oe(...i) {
141
+ function ge(...i) {
142
142
  }
143
- function Wi(i) {
143
+ function Ji(i) {
144
144
  return i != null;
145
145
  }
146
- var J = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(J || {});
147
- const Ae = "wgs84", A = class {
146
+ var Q = /* @__PURE__ */ ((i) => (i.wgs84 = "wgs84", i.gcj02 = "gcj02", i.bd09 = "bd09", i))(Q || {});
147
+ const $e = "wgs84", A = class {
148
148
  constructor(e, t, r) {
149
149
  this.lat = e, this.lng = t, this.coord = r;
150
150
  }
@@ -160,12 +160,12 @@ const Ae = "wgs84", A = class {
160
160
  return new A(e.lat, e.lng, t);
161
161
  }
162
162
  static fromLiteral(e) {
163
- return new A(e.lat, e.lng, e.coord || Ae);
163
+ return new A(e.lat, e.lng, e.coord || $e);
164
164
  }
165
- static fromLngLat(e, t, r = Ae) {
165
+ static fromLngLat(e, t, r = $e) {
166
166
  return new A(t, e, r);
167
167
  }
168
- static create(e, t, r = Ae) {
168
+ static create(e, t, r = $e) {
169
169
  return new A(e, t, r);
170
170
  }
171
171
  to(e) {
@@ -197,11 +197,11 @@ const Ae = "wgs84", A = class {
197
197
  convert(e) {
198
198
  switch (this.coord) {
199
199
  case "bd09":
200
- return e === "gcj02" ? W.bd09ToGcj02(this.lng, this.lat) : W.bd09ToWgs84(this.lng, this.lat);
200
+ return e === "gcj02" ? V.bd09ToGcj02(this.lng, this.lat) : V.bd09ToWgs84(this.lng, this.lat);
201
201
  case "gcj02":
202
- return e === "wgs84" ? W.gcj02ToWgs84(this.lng, this.lat) : W.gcj02ToBd09(this.lng, this.lat);
202
+ return e === "wgs84" ? V.gcj02ToWgs84(this.lng, this.lat) : V.gcj02ToBd09(this.lng, this.lat);
203
203
  case "wgs84":
204
- return e === "bd09" ? W.wgs84ToBd09(this.lng, this.lat) : W.wgs84ToGcj02(this.lng, this.lat);
204
+ return e === "bd09" ? V.wgs84ToBd09(this.lng, this.lat) : V.wgs84ToGcj02(this.lng, this.lat);
205
205
  }
206
206
  throw new Error(`不支持的坐标转换: ${this.coord}=>${e}`);
207
207
  }
@@ -213,16 +213,16 @@ const Ae = "wgs84", A = class {
213
213
  }
214
214
  };
215
215
  let y = A;
216
- d(y, "ZERO", A.create(0, 0));
217
- const X = class {
216
+ c(y, "ZERO", A.create(0, 0));
217
+ const J = class {
218
218
  /**
219
219
  * 不推荐直接创建LatLngBounds, sw和ne的大小关系可能没法保证, 推荐用LatLngBounds.Builder或者LatLngBounds.from等静态方法来创建
220
220
  * @param sw 西南, lat/lng更小
221
221
  * @param ne 东北, lat/lng更大
222
222
  */
223
223
  constructor(e, t) {
224
- d(this, "coord");
225
- this.sw = e, this.ne = t, ie(e.coord === t.coord, "sw和ne的coord应该相同"), ie(Number.isFinite(e.lat) && Number.isFinite(e.lng) && Number.isFinite(t.lat) && Number.isFinite(t.lng), `sw(${e})和ne(${t})不能包含NaN或Infinite`), ie(e.lat <= t.lat, `sw.lat(${e.lat})应该比ne.lat(${t.lat})小`), this.coord = e.coord;
224
+ c(this, "coord");
225
+ this.sw = e, this.ne = t, pe(e.coord === t.coord, "sw和ne的coord应该相同"), pe(Number.isFinite(e.lat) && Number.isFinite(e.lng) && Number.isFinite(t.lat) && Number.isFinite(t.lng), `sw(${e})和ne(${t})不能包含NaN或Infinite`), pe(e.lat <= t.lat, `sw.lat(${e.lat})应该比ne.lat(${t.lat})小`), this.coord = e.coord;
226
226
  }
227
227
  static isBetweenLng(e, t, r) {
228
228
  return e <= t ? e <= r && r <= t : e <= r || r <= t;
@@ -230,22 +230,22 @@ const X = class {
230
230
  static fromArray(e) {
231
231
  if (e.length === 0)
232
232
  return;
233
- const t = new X.Builder(e[0]);
233
+ const t = new J.Builder(e[0]);
234
234
  for (let r = 1; r < e.length; r++)
235
235
  t.include(e[r]);
236
236
  return t.build();
237
237
  }
238
238
  static from(...e) {
239
- return this.fromArray(e) ?? x("positions中没有点");
239
+ return this.fromArray(e) ?? C("positions中没有点");
240
240
  }
241
241
  static fromGoogle(e, t) {
242
- return new X(
242
+ return new J(
243
243
  y.fromGoogle(e.getSouthWest(), t),
244
244
  y.fromGoogle(e.getNorthEast(), t)
245
245
  );
246
246
  }
247
247
  static fromBaidu(e, t) {
248
- return new X(
248
+ return new J(
249
249
  y.fromBaidu(e.getSouthWest(), t),
250
250
  y.fromBaidu(e.getNorthEast(), t)
251
251
  );
@@ -258,7 +258,7 @@ const X = class {
258
258
  }
259
259
  contains(e) {
260
260
  const { lat: t, lng: r } = e.to(this.coord);
261
- return this.sw.lat <= t && t <= this.ne.lat && X.isBetweenLng(this.sw.lng, this.ne.lng, r);
261
+ return this.sw.lat <= t && t <= this.ne.lat && J.isBetweenLng(this.sw.lng, this.ne.lng, r);
262
262
  }
263
263
  getCenter() {
264
264
  const e = (this.sw.lat + this.ne.lat) / 2, t = (this.sw.lng + this.ne.lng + (this.sw.lng < this.ne.lng ? 0 : 360)) / 2;
@@ -280,16 +280,16 @@ const X = class {
280
280
  return [this.sw.toBaidu(e), this.ne.toBaidu(e)];
281
281
  }
282
282
  };
283
- let F = X;
284
- d(F, "EMPTY", new X(y.ZERO, y.ZERO));
283
+ let F = J;
284
+ c(F, "EMPTY", new J(y.ZERO, y.ZERO));
285
285
  ((i) => {
286
286
  class e {
287
287
  constructor(r) {
288
- d(this, "coord");
289
- d(this, "minLat");
290
- d(this, "minLng");
291
- d(this, "maxLat");
292
- d(this, "maxLng");
288
+ c(this, "coord");
289
+ c(this, "minLat");
290
+ c(this, "minLng");
291
+ c(this, "maxLat");
292
+ c(this, "maxLng");
293
293
  this.coord = r.coord, this.minLat = this.maxLat = r.lat, this.minLng = this.maxLng = r.lng;
294
294
  }
295
295
  build() {
@@ -310,67 +310,67 @@ d(F, "EMPTY", new X(y.ZERO, y.ZERO));
310
310
  }
311
311
  i.Builder = e;
312
312
  })(F || (F = {}));
313
- var yr = function(e) {
314
- return vr(e) && !_r(e);
313
+ var Tr = function(e) {
314
+ return wr(e) && !Or(e);
315
315
  };
316
- function vr(i) {
316
+ function wr(i) {
317
317
  return !!i && typeof i == "object";
318
318
  }
319
- function _r(i) {
319
+ function Or(i) {
320
320
  var e = Object.prototype.toString.call(i);
321
- return e === "[object RegExp]" || e === "[object Date]" || Tr(i);
321
+ return e === "[object RegExp]" || e === "[object Date]" || Er(i);
322
322
  }
323
- var Mr = typeof Symbol == "function" && Symbol.for, br = Mr ? Symbol.for("react.element") : 60103;
324
- function Tr(i) {
325
- return i.$$typeof === br;
323
+ var Cr = typeof Symbol == "function" && Symbol.for, xr = Cr ? Symbol.for("react.element") : 60103;
324
+ function Er(i) {
325
+ return i.$$typeof === xr;
326
326
  }
327
- function Or(i) {
327
+ function Lr(i) {
328
328
  return Array.isArray(i) ? [] : {};
329
329
  }
330
- function ue(i, e) {
331
- return e.clone !== !1 && e.isMergeableObject(i) ? ne(Or(i), i, e) : i;
330
+ function me(i, e) {
331
+ return e.clone !== !1 && e.isMergeableObject(i) ? ne(Lr(i), i, e) : i;
332
332
  }
333
- function wr(i, e, t) {
333
+ function Pr(i, e, t) {
334
334
  return i.concat(e).map(function(r) {
335
- return ue(r, t);
335
+ return me(r, t);
336
336
  });
337
337
  }
338
- function Cr(i, e) {
338
+ function kr(i, e) {
339
339
  if (!e.customMerge)
340
340
  return ne;
341
341
  var t = e.customMerge(i);
342
342
  return typeof t == "function" ? t : ne;
343
343
  }
344
- function xr(i) {
344
+ function Ir(i) {
345
345
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(i).filter(function(e) {
346
346
  return Object.propertyIsEnumerable.call(i, e);
347
347
  }) : [];
348
348
  }
349
- function Mt(i) {
350
- return Object.keys(i).concat(xr(i));
349
+ function bt(i) {
350
+ return Object.keys(i).concat(Ir(i));
351
351
  }
352
- function It(i, e) {
352
+ function St(i, e) {
353
353
  try {
354
354
  return e in i;
355
355
  } catch {
356
356
  return !1;
357
357
  }
358
358
  }
359
- function Er(i, e) {
360
- return It(i, e) && !(Object.hasOwnProperty.call(i, e) && Object.propertyIsEnumerable.call(i, e));
359
+ function Br(i, e) {
360
+ return St(i, e) && !(Object.hasOwnProperty.call(i, e) && Object.propertyIsEnumerable.call(i, e));
361
361
  }
362
- function Pr(i, e, t) {
362
+ function Sr(i, e, t) {
363
363
  var r = {};
364
- return t.isMergeableObject(i) && Mt(i).forEach(function(s) {
365
- r[s] = ue(i[s], t);
366
- }), Mt(e).forEach(function(s) {
367
- Er(i, s) || (It(i, s) && t.isMergeableObject(e[s]) ? r[s] = Cr(s, t)(i[s], e[s], t) : r[s] = ue(e[s], t));
364
+ return t.isMergeableObject(i) && bt(i).forEach(function(s) {
365
+ r[s] = me(i[s], t);
366
+ }), bt(e).forEach(function(s) {
367
+ Br(i, s) || (St(i, s) && t.isMergeableObject(e[s]) ? r[s] = kr(s, t)(i[s], e[s], t) : r[s] = me(e[s], t));
368
368
  }), r;
369
369
  }
370
370
  function ne(i, e, t) {
371
- t = t || {}, t.arrayMerge = t.arrayMerge || wr, t.isMergeableObject = t.isMergeableObject || yr, t.cloneUnlessOtherwiseSpecified = ue;
371
+ t = t || {}, t.arrayMerge = t.arrayMerge || Pr, t.isMergeableObject = t.isMergeableObject || Tr, t.cloneUnlessOtherwiseSpecified = me;
372
372
  var r = Array.isArray(e), s = Array.isArray(i), n = r === s;
373
- return n ? r ? t.arrayMerge(i, e, t) : Pr(i, e, t) : ue(e, t);
373
+ return n ? r ? t.arrayMerge(i, e, t) : Sr(i, e, t) : me(e, t);
374
374
  }
375
375
  ne.all = function(e, t) {
376
376
  if (!Array.isArray(e))
@@ -379,8 +379,8 @@ ne.all = function(e, t) {
379
379
  return ne(r, s, t);
380
380
  }, {});
381
381
  };
382
- var kr = ne, Bt = kr;
383
- const we = ["3.0"], Lr = {
382
+ var Ar = ne, At = Ar;
383
+ const Ce = ["3.0"], $r = {
384
384
  baidu: {
385
385
  version: "3.0",
386
386
  // 在build时会被静态替换, 导致使用者不能无法设置它
@@ -395,25 +395,25 @@ const we = ["3.0"], Lr = {
395
395
  libraries: ["places"]
396
396
  },
397
397
  here: {
398
- version: we[0],
398
+ version: Ce[0],
399
399
  key: {}.VITE_APP_DEV_KEY_HERE
400
400
  }
401
401
  };
402
- let St;
403
- function At() {
404
- return St || x("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
402
+ let $t;
403
+ function zt() {
404
+ return $t || C("请先安装: Vue<PartialTgMapConfig>.use(TgMap, {})");
405
405
  }
406
- function Ir(i) {
407
- i != null && (St = Bt(Lr, i));
406
+ function zr(i) {
407
+ i != null && ($t = At($r, i));
408
408
  }
409
- var Ze;
409
+ var Ge;
410
410
  ((i) => {
411
411
  function e(t) {
412
412
  return t.scrollWidth > t.clientWidth || t.scrollHeight > t.clientHeight;
413
413
  }
414
414
  i.isScrollable = e;
415
- })(Ze || (Ze = {}));
416
- var Ce;
415
+ })(Ge || (Ge = {}));
416
+ var xe;
417
417
  ((i) => {
418
418
  function e(r, s) {
419
419
  const n = r.indexOf(s);
@@ -427,8 +427,8 @@ var Ce;
427
427
  return n;
428
428
  }
429
429
  i.findByType = t;
430
- })(Ce || (Ce = {}));
431
- var xe;
430
+ })(xe || (xe = {}));
431
+ var Ee;
432
432
  ((i) => {
433
433
  function e(r, s) {
434
434
  const n = r.getLength();
@@ -444,50 +444,56 @@ var xe;
444
444
  return r.removeAt(n);
445
445
  }
446
446
  i.remove = t;
447
- })(xe || (xe = {}));
448
- function Hi() {
447
+ })(Ee || (Ee = {}));
448
+ function Qi() {
449
449
  }
450
- function Ge(i) {
450
+ function Ze(i) {
451
451
  return i;
452
452
  }
453
- function Fi(i, e) {
453
+ function es(i, e) {
454
454
  return i instanceof e;
455
455
  }
456
- function Ui(i, e) {
456
+ function ts(i, e) {
457
457
  if (i instanceof e)
458
458
  return i;
459
459
  }
460
- function ve(i, e) {
460
+ function Me(i, e) {
461
461
  if ((i == null ? void 0 : i.$options.name) === e.name)
462
462
  return i;
463
463
  }
464
- function Yi(i) {
464
+ function rs(i) {
465
465
  return i;
466
466
  }
467
- function Br(i, e, t) {
467
+ function Nt(i, e, t) {
468
468
  return i.addListener(e, t).remove;
469
469
  }
470
- function Sr(i, e, t) {
470
+ function Nr(i, e, t) {
471
471
  return i.addEventListener(e, t), () => i.removeEventListener(e, t);
472
472
  }
473
- class $t {
473
+ function Rr(i, e, t, r) {
474
+ return i.addEventListener(e, t, r), () => i.removeEventListener(e, t, r);
475
+ }
476
+ function Tt(i, e, t) {
477
+ return i.addEventListener(e, t), () => i.removeEventListener(e, t);
478
+ }
479
+ class Rt {
474
480
  constructor(e, t) {
475
- d(this, "eventMap", /* @__PURE__ */ new Map());
476
- d(this, "target", void 0);
481
+ c(this, "eventMap", /* @__PURE__ */ new Map());
482
+ c(this, "target", void 0);
477
483
  this.inner = e, this.coordTypeSupplier = t, this.addEventListener = this.addEventListener.bind(this), this.removeEventListener = this.removeEventListener.bind(this);
478
484
  }
479
485
  setTarget(e) {
480
486
  return this.target = e, this;
481
487
  }
482
488
  }
483
- const _t = class extends $t {
489
+ const Mt = class extends Rt {
484
490
  addEventListener(e, t) {
485
- const r = Te(e, t);
491
+ const r = Oe(e, t);
486
492
  if (this.eventMap.get(r)) {
487
493
  console.warn("listener已经添加过了", r, t);
488
494
  return;
489
495
  }
490
- const s = this.inner.addListener(_t.EVENT_TYPE_MAP[e] || e, (n) => {
496
+ const s = this.inner.addListener(Mt.EVENT_TYPE_MAP[e] || e, (n) => {
491
497
  const a = {
492
498
  type: e,
493
499
  target: this.target,
@@ -498,13 +504,13 @@ const _t = class extends $t {
498
504
  this.eventMap.set(r, s);
499
505
  }
500
506
  removeEventListener(e, t) {
501
- const r = Te(e, t), s = this.eventMap.get(r);
507
+ const r = Oe(e, t), s = this.eventMap.get(r);
502
508
  s ? (s.remove(), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, t);
503
509
  }
504
510
  };
505
- let Q = _t;
511
+ let ee = Mt;
506
512
  // 事件类型映射: tg => google
507
- d(Q, "EVENT_TYPE_MAP", {
513
+ c(ee, "EVENT_TYPE_MAP", {
508
514
  "center-changed": "center_changed",
509
515
  "zoom-changed": "zoom_changed",
510
516
  "map-type-changed": "maptypeid_changed",
@@ -515,9 +521,9 @@ d(Q, "EVENT_TYPE_MAP", {
515
521
  "map-mouseup": "mouseup",
516
522
  "map-dblclick": "dblclick"
517
523
  });
518
- const ke = class extends $t {
524
+ const ke = class extends Rt {
519
525
  addEventListener(e, t) {
520
- const r = Te(e, t);
526
+ const r = Oe(e, t);
521
527
  if (this.eventMap.get(r)) {
522
528
  console.warn("listener已经添加过了", r, t);
523
529
  return;
@@ -533,22 +539,22 @@ const ke = class extends $t {
533
539
  this.inner.addEventListener(ke.EVENT_TYPE_MAP[e] || e, s), this.eventMap.set(r, s);
534
540
  }
535
541
  removeEventListener(e, t) {
536
- const r = Te(e, t), s = this.eventMap.get(r);
542
+ const r = Oe(e, t), s = this.eventMap.get(r);
537
543
  s ? (this.inner.removeEventListener(ke.EVENT_TYPE_MAP[e] || e, s), this.eventMap.delete(r)) : console.warn("移除失败, 不存在该listener", r, t);
538
544
  }
539
545
  };
540
546
  let se = ke;
541
547
  // cSpell:words clickclose
542
548
  // 事件类型映射, tg => baidu
543
- d(se, "EVENT_TYPE_MAP", {
549
+ c(se, "EVENT_TYPE_MAP", {
544
550
  drag: "dragging",
545
551
  closeclick: "clickclose",
546
552
  "zoom-changed": "zoomend",
547
553
  "map-type-changed": "maptypechange"
548
554
  });
549
- class Ar {
555
+ class Dr {
550
556
  constructor() {
551
- d(this, "typeMap", /* @__PURE__ */ new Map());
557
+ c(this, "typeMap", /* @__PURE__ */ new Map());
552
558
  }
553
559
  addEventListener(e, t) {
554
560
  let r = this.typeMap.get(e);
@@ -556,7 +562,7 @@ class Ar {
556
562
  }
557
563
  removeEventListener(e, t) {
558
564
  const r = this.typeMap.get(e);
559
- r && Ce.remove(r, t);
565
+ r && xe.remove(r, t);
560
566
  }
561
567
  hasListener(e) {
562
568
  const t = this.typeMap.get(e);
@@ -567,27 +573,27 @@ class Ar {
567
573
  t && t.forEach((r) => r.call(e.target, e));
568
574
  }
569
575
  }
570
- class bt {
576
+ class wt {
571
577
  /**
572
578
  * `keys`和`values`数组中可以有相同的值, 若存在相同值, 则index越小的优先级越高
573
579
  */
574
580
  constructor(e, t) {
575
- d(this, "keyToValue", /* @__PURE__ */ new Map());
576
- d(this, "valueToKey", /* @__PURE__ */ new Map());
577
- ie(e.length === t.length);
581
+ c(this, "keyToValue", /* @__PURE__ */ new Map());
582
+ c(this, "valueToKey", /* @__PURE__ */ new Map());
583
+ pe(e.length === t.length);
578
584
  for (let r = e.length - 1; r >= 0; r--)
579
585
  this.keyToValue.set(e[r], t[r]), this.valueToKey.set(t[r], e[r]);
580
586
  }
581
587
  toKey(e) {
582
- return this.valueToKey.get(e) ?? x();
588
+ return this.valueToKey.get(e) ?? C();
583
589
  }
584
590
  toValue(e) {
585
- return this.keyToValue.get(e) ?? x();
591
+ return this.keyToValue.get(e) ?? C();
586
592
  }
587
593
  }
588
- class $r {
594
+ class Gr {
589
595
  constructor(e, t = 10) {
590
- d(this, "map", /* @__PURE__ */ new Map());
596
+ c(this, "map", /* @__PURE__ */ new Map());
591
597
  this.values = e, this.maxSize4Debug = t;
592
598
  }
593
599
  /** 获取保存key-value映射的Map */
@@ -611,19 +617,19 @@ class $r {
611
617
  return this.getValueMap(e).get(t);
612
618
  }
613
619
  get(e, t) {
614
- return this.getOrNull(e, t) ?? x(`key(${t})不存在与valueMap(${this.getValueMap(e)})中`);
620
+ return this.getOrNull(e, t) ?? C(`key(${t})不存在与valueMap(${this.getValueMap(e)})中`);
615
621
  }
616
622
  }
617
- class Tt {
623
+ class Ot {
618
624
  constructor(e) {
619
- d(this, "value");
625
+ c(this, "value");
620
626
  this.creator = e;
621
627
  }
622
628
  get() {
623
629
  return this.value === void 0 && (this.value = this.creator()), this.value;
624
630
  }
625
631
  }
626
- var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-center", i.TOP_RIGHT = "top-right", i.BOTTOM_LEFT = "bottom-left", i.BOTTOM_CENTER = "bottom-center", i.BOTTOM_RIGHT = "bottom-right", i.LEFT_TOP = "left-top", i.LEFT_CENTER = "left-center", i.LEFT_BOTTOM = "left-bottom", i.RIGHT_TOP = "right-top", i.RIGHT_CENTER = "right-center", i.RIGHT_BOTTOM = "right-bottom", i))(k || {}), B;
632
+ var P = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-center", i.TOP_RIGHT = "top-right", i.BOTTOM_LEFT = "bottom-left", i.BOTTOM_CENTER = "bottom-center", i.BOTTOM_RIGHT = "bottom-right", i.LEFT_TOP = "left-top", i.LEFT_CENTER = "left-center", i.LEFT_BOTTOM = "left-bottom", i.RIGHT_TOP = "right-top", i.RIGHT_CENTER = "right-center", i.RIGHT_BOTTOM = "right-bottom", i))(P || {}), B;
627
633
  ((i) => {
628
634
  let e, t;
629
635
  const r = [
@@ -642,7 +648,7 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
642
648
  /* RIGHT_BOTTOM */
643
649
  ];
644
650
  function s() {
645
- return e || (e = new bt(r, [
651
+ return e || (e = new wt(r, [
646
652
  /* | @tg/map |名字相同| baidu | */
647
653
  /* TOP_LEFT = */
648
654
  BMAP_ANCHOR_TOP_LEFT,
@@ -672,7 +678,7 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
672
678
  }
673
679
  i.getBaidu = s;
674
680
  function n() {
675
- return t || (t = new bt(r, [
681
+ return t || (t = new wt(r, [
676
682
  google.maps.ControlPosition.TOP_LEFT,
677
683
  google.maps.ControlPosition.TOP_CENTER,
678
684
  google.maps.ControlPosition.TOP_RIGHT,
@@ -689,16 +695,16 @@ var k = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "top-left", i.TOP_CENTER = "top-ce
689
695
  }
690
696
  i.getGoogle = n;
691
697
  })(B || (B = {}));
692
- class zr {
698
+ class Zr {
693
699
  constructor(e) {
694
700
  /** 实际添加到地图中的control对象 */
695
- d(this, "inner");
701
+ c(this, "inner");
696
702
  this.position = e;
697
703
  }
698
704
  }
699
- class zt {
705
+ class Dt {
700
706
  }
701
- class He extends zt {
707
+ class Fe extends Dt {
702
708
  constructor(e, t) {
703
709
  super(), this.inner = e, this.position = t;
704
710
  }
@@ -721,11 +727,11 @@ class He extends zt {
721
727
  e.innerMap.removeControl(this.inner);
722
728
  }
723
729
  }
724
- class Fe extends zt {
730
+ class Ue extends Dt {
725
731
  constructor(t, r) {
726
732
  super();
727
- d(this, "visible", !1);
728
- d(this, "map");
733
+ c(this, "visible", !1);
734
+ c(this, "map");
729
735
  this._type = t, this.position = r;
730
736
  }
731
737
  isVisible() {
@@ -758,8 +764,8 @@ class Fe extends zt {
758
764
  });
759
765
  }
760
766
  }
761
- var Nt = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(Nt || {});
762
- class L {
767
+ var Gt = /* @__PURE__ */ ((i) => (i.normal = "normal", i.satellite = "satellite", i.hybrid = "hybrid", i))(Gt || {});
768
+ class k {
763
769
  constructor(e, t, r, s) {
764
770
  this.id = e, this.baidu = t, this.google = r, this.googleCoordType = s;
765
771
  }
@@ -767,7 +773,7 @@ class L {
767
773
  return this.id;
768
774
  }
769
775
  getBaiduCoordType() {
770
- return J.bd09;
776
+ return Q.bd09;
771
777
  }
772
778
  asBaiduMapType() {
773
779
  return this.baidu();
@@ -780,13 +786,13 @@ class L {
780
786
  return this.google();
781
787
  }
782
788
  asGoogleMapType() {
783
- Lt("google的内置地图没有对应的实例");
789
+ Bt("google的内置地图没有对应的实例");
784
790
  }
785
791
  }
786
- class Nr {
792
+ class jr {
787
793
  constructor() {
788
- d(this, "baiduCache", new Tt(() => new BMap.TrafficLayer()));
789
- d(this, "googleCache", new Tt(() => new google.maps.TrafficLayer()));
794
+ c(this, "baiduCache", new Ot(() => new BMap.TrafficLayer()));
795
+ c(this, "googleCache", new Ot(() => new google.maps.TrafficLayer()));
790
796
  }
791
797
  asBaiduLayer() {
792
798
  return this.baiduCache.get();
@@ -797,19 +803,19 @@ class Nr {
797
803
  }
798
804
  var I;
799
805
  ((i) => {
800
- i.NORMAL = new L("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, J.gcj02), i.SATELLITE = new L("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, J.wgs84), i.HYBRID = new L("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, J.gcj02), i.TERRAIN = new L("terrain", () => (
806
+ i.NORMAL = new k("normal", () => BMAP_NORMAL_MAP, () => google.maps.MapTypeId.ROADMAP, Q.gcj02), i.SATELLITE = new k("satellite", () => BMAP_SATELLITE_MAP, () => google.maps.MapTypeId.SATELLITE, Q.wgs84), i.HYBRID = new k("hybrid", () => BMAP_HYBRID_MAP, () => google.maps.MapTypeId.HYBRID, Q.gcj02), i.TERRAIN = new k("terrain", () => (
801
807
  /* 三维 */
802
808
  BMAP_PERSPECTIVE_MAP
803
809
  ), () => (
804
810
  /* 地形 */
805
811
  google.maps.MapTypeId.TERRAIN
806
- ), J.wgs84), i.BUILD_IN_MAP_TYPES = new $r([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
812
+ ), Q.wgs84), i.BUILD_IN_MAP_TYPES = new Gr([i.NORMAL, i.SATELLITE, i.HYBRID, i.TERRAIN]);
807
813
  })(I || (I = {}));
808
- var Rt = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(Rt || {});
809
- const Zt = [I.NORMAL, I.SATELLITE, I.HYBRID];
810
- class Ue extends He {
814
+ var Zt = /* @__PURE__ */ ((i) => (i.DEFAULT = "default", i.HORIZONTAL = "horizontal", i.DROPDOWN = "dropdown", i))(Zt || {});
815
+ const jt = [I.NORMAL, I.SATELLITE, I.HYBRID];
816
+ class Ye extends Fe {
811
817
  static create(e) {
812
- const t = e.mapTypes ?? Zt, r = {
818
+ const t = e.mapTypes ?? jt, r = {
813
819
  default: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
814
820
  horizontal: BMAP_MAPTYPE_CONTROL_HORIZONTAL,
815
821
  dropdown: BMAP_MAPTYPE_CONTROL_DROPDOWN
@@ -817,85 +823,85 @@ class Ue extends He {
817
823
  type: e.type && r[e.type],
818
824
  mapTypes: t.map((n) => n.asBaiduMapType())
819
825
  });
820
- return e.position && s.setAnchor(B.getBaidu().toValue(e.position)), new Ue(s, e.position);
826
+ return e.position && s.setAnchor(B.getBaidu().toValue(e.position)), new Ye(s, e.position);
821
827
  }
822
828
  }
823
- const re = class extends Fe {
824
- constructor(e = "default", t = k.TOP_LEFT, r = Zt) {
825
- super("mapType", t), this.type = e, this.mapTypes = r, re.type2google || (re.type2google = {
829
+ const ie = class extends Ue {
830
+ constructor(e = "default", t = P.TOP_LEFT, r = jt) {
831
+ super("mapType", t), this.type = e, this.mapTypes = r, ie.type2google || (ie.type2google = {
826
832
  default: google.maps.MapTypeControlStyle.DEFAULT,
827
833
  horizontal: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
828
834
  dropdown: google.maps.MapTypeControlStyle.DROPDOWN_MENU
829
835
  });
830
836
  }
831
837
  static create(e) {
832
- return new re(e.type, e.position, e.mapTypes);
838
+ return new ie(e.type, e.position, e.mapTypes);
833
839
  }
834
840
  onCreateOptions() {
835
841
  const e = super.onCreateOptions();
836
- return e.style = re.type2google[this.type], e.mapTypeIds = this.mapTypes.map((t) => t instanceof L ? t.getGoogleMapTypeId() : t.id), e;
842
+ return e.style = ie.type2google[this.type], e.mapTypeIds = this.mapTypes.map((t) => t instanceof k ? t.getGoogleMapTypeId() : t.id), e;
837
843
  }
838
844
  addTo(e) {
839
845
  super.addTo(e), this.mapTypes.forEach((t) => {
840
- t instanceof L || e.innerMap.mapTypes.set(t.id, t.asGoogleMapType());
846
+ t instanceof k || e.innerMap.mapTypes.set(t.id, t.asGoogleMapType());
841
847
  });
842
848
  }
843
849
  };
844
- let be = re;
845
- d(be, "type2google");
846
- class Ye extends He {
850
+ let we = ie;
851
+ c(we, "type2google");
852
+ class qe extends Fe {
847
853
  static create(e) {
848
854
  const t = new BMap.ScaleControl({
849
855
  anchor: e.position && B.getBaidu().toValue(e.position)
850
856
  });
851
- return new Ye(t, e.position);
857
+ return new qe(t, e.position);
852
858
  }
853
859
  }
854
- class qe extends Fe {
860
+ class Ke extends Ue {
855
861
  static create(e) {
856
- return new qe(e.position);
862
+ return new Ke(e.position);
857
863
  }
858
- constructor(e = k.BOTTOM_RIGHT) {
864
+ constructor(e = P.BOTTOM_RIGHT) {
859
865
  super("scale", e);
860
866
  }
861
867
  }
862
- class Ke extends He {
868
+ class Xe extends Fe {
863
869
  static create(e) {
864
870
  const t = new BMap.NavigationControl({
865
871
  type: BMAP_NAVIGATION_CONTROL_ZOOM,
866
872
  // enableGeolocation: true,
867
873
  anchor: e.position && B.getBaidu().toValue(e.position)
868
874
  });
869
- return new Ke(t, e.position);
875
+ return new Xe(t, e.position);
870
876
  }
871
877
  }
872
- class Xe extends Fe {
878
+ class Je extends Ue {
873
879
  static create(e) {
874
- return new Xe(e.position);
880
+ return new Je(e.position);
875
881
  }
876
- constructor(e = k.RIGHT_BOTTOM) {
882
+ constructor(e = P.RIGHT_BOTTOM) {
877
883
  super("zoom", e);
878
884
  }
879
885
  }
880
- function Rr(i) {
886
+ function Wr(i) {
881
887
  let e, t, r;
882
- const s = "The Google Maps JavaScript API", n = "google", a = "importLibrary", c = "__ib__", o = document, l = window, h = l[n] || (l[n] = {}), u = h.maps || (h.maps = {}), p = /* @__PURE__ */ new Set(), M = new URLSearchParams(), b = () => e || (e = new Promise(async (_, g) => {
888
+ const s = "The Google Maps JavaScript API", n = "google", a = "importLibrary", d = "__ib__", o = document, l = window, h = l[n] || (l[n] = {}), p = h.maps || (h.maps = {}), u = /* @__PURE__ */ new Set(), M = new URLSearchParams(), b = () => e || (e = new Promise(async (_, g) => {
883
889
  var m;
884
- await (t = o.createElement("script")), M.set("libraries", [...p] + "");
890
+ await (t = o.createElement("script")), M.set("libraries", [...u] + "");
885
891
  for (r in i)
886
892
  M.set(r.replace(/[A-Z]/g, (v) => "_" + v[0].toLowerCase()), i[r]);
887
- M.set("callback", n + ".maps." + c), t.src = `https://maps.${n}apis.com/maps/api/js?` + M, u[c] = _, t.onerror = () => e = g(Error(s + " could not load.")), t.nonce = ((m = o.querySelector("script[nonce]")) == null ? void 0 : m.nonce) || "", o.head.append(t);
893
+ M.set("callback", n + ".maps." + d), t.src = `https://maps.${n}apis.com/maps/api/js?` + M, p[d] = _, t.onerror = () => e = g(Error(s + " could not load.")), t.nonce = ((m = o.querySelector("script[nonce]")) == null ? void 0 : m.nonce) || "", o.head.append(t);
888
894
  }));
889
- u[a] ? console.warn(s + " only loads once. Ignoring:", i) : u[a] = (_, ...g) => p.add(_) && b().then(() => u[a](_, ...g));
895
+ p[a] ? console.warn(s + " only loads once. Ignoring:", i) : p[a] = (_, ...g) => u.add(_) && b().then(() => p[a](_, ...g));
890
896
  }
891
- let Ot;
892
- const ee = {
897
+ let Ct;
898
+ const te = {
893
899
  /** Google的坐标0点 */
894
900
  get LATLNG_ZERO() {
895
- return Ot ?? (Ot = new google.maps.LatLng({ lat: 0, lng: 0 }));
901
+ return Ct ?? (Ct = new google.maps.LatLng({ lat: 0, lng: 0 }));
896
902
  }
897
903
  };
898
- function Gt(i, e = { country: "", province: "", city: "", district: "", street: "", streetNumber: "" }) {
904
+ function Wt(i, e = { country: "", province: "", city: "", district: "", street: "", streetNumber: "" }) {
899
905
  for (const t of i)
900
906
  for (const r of t.types)
901
907
  switch (r) {
@@ -920,16 +926,26 @@ function Gt(i, e = { country: "", province: "", city: "", district: "", street:
920
926
  }
921
927
  return e;
922
928
  }
923
- class Dt {
924
- constructor(e) {
925
- this.map = e;
926
- }
929
+ function Vt(i, e) {
930
+ var r;
931
+ const t = i.address_components && Wt(i.address_components);
932
+ return {
933
+ country: (t == null ? void 0 : t.country) ?? "",
934
+ province: (t == null ? void 0 : t.province) ?? "",
935
+ city: (t == null ? void 0 : t.city) ?? "",
936
+ id: i.place_id ?? "",
937
+ address: i.formatted_address ?? "",
938
+ position: y.fromGoogle(((r = i.geometry) == null ? void 0 : r.location) ?? te.LATLNG_ZERO, e.coordType),
939
+ title: i.name ?? ""
940
+ };
927
941
  }
928
- class Zr extends Dt {
942
+ class Ht {
943
+ }
944
+ class Vr extends Ht {
929
945
  constructor(t, r) {
930
- super(t);
931
- d(this, "inner");
932
- this.inner = new google.maps.places.Autocomplete(r.input, {
946
+ super();
947
+ c(this, "inner");
948
+ this.map = t, this.inner = new google.maps.places.Autocomplete(r.input, {
933
949
  fields: [
934
950
  "address_components",
935
951
  // 'formatted_address',
@@ -937,8 +953,11 @@ class Zr extends Dt {
937
953
  ]
938
954
  }), r.bindToMap && this.inner.bindTo("bounds", t.innerMap);
939
955
  }
956
+ setBounds(t) {
957
+ this.inner.setBounds(t.toGoogle(this.map.coordType));
958
+ }
940
959
  addResultListener(t) {
941
- return Br(this.inner, "place_changed", () => {
960
+ return Nt(this.inner, "place_changed", () => {
942
961
  const r = this.inner.getPlace(), s = {
943
962
  title: r.name ?? "",
944
963
  province: "",
@@ -948,42 +967,67 @@ class Zr extends Dt {
948
967
  streetNumber: "",
949
968
  country: ""
950
969
  };
951
- ie(r.address_components != null, "要求服务器一定返回该字段"), Gt(r.address_components, s), t(s);
970
+ r.address_components && Wt(r.address_components, s), t(s);
952
971
  });
953
972
  }
954
973
  }
955
- class Gr extends Dt {
974
+ class Hr extends Ht {
956
975
  constructor(t, r) {
957
- super(t);
958
- d(this, "inner");
959
- this.inner = new BMap.Autocomplete({
976
+ super();
977
+ c(this, "inner");
978
+ c(this, "input");
979
+ // TODO: 要不要添加个移除监听的方法?
980
+ c(this, "removeableArray", []);
981
+ if (this.map = t, this.input = r.input, this.inner = new BMap.Autocomplete({
960
982
  input: r.input,
961
983
  location: r.bindToMap ? t.innerMap : void 0
962
- });
984
+ }), r.bindToMap) {
985
+ const s = () => {
986
+ this.inner.setLocation(this.map.innerMap);
987
+ };
988
+ this.removeableArray.push(Tt(this.map, "center-changed", s)), this.removeableArray.push(Tt(this.map, "zoom-changed", s));
989
+ }
990
+ }
991
+ setBounds(t) {
992
+ this.inner.setLocation(t.getCenter().toBaidu(this.map.coordType));
963
993
  }
964
994
  addResultListener(t) {
965
- return Sr(this.inner, "confirm", (r) => {
966
- const s = r.item.value;
967
- t(Object.assign({
968
- title: s.business,
995
+ let r = 0;
996
+ const s = Nr(this.inner, "confirm", (a) => {
997
+ const d = a.item.value;
998
+ r = Date.now(), t(Object.assign({
999
+ title: d.business,
969
1000
  country: ""
970
1001
  // Baidu的自动完成只支持中国
971
- }, s));
1002
+ }, d));
1003
+ }), n = Rr(this.input, "keyup", (a) => {
1004
+ a.key === "Enter" && Date.now() - r > 100 && t({
1005
+ title: this.input.value,
1006
+ country: "",
1007
+ city: "",
1008
+ district: "",
1009
+ province: "",
1010
+ street: "",
1011
+ streetNumber: ""
1012
+ });
972
1013
  });
1014
+ return () => {
1015
+ n(), s();
1016
+ };
973
1017
  }
974
1018
  }
975
- let Dr = class jt {
1019
+ let Fr = class Ft {
976
1020
  constructor(e, t, r) {
977
- this.extend(jt, google.maps.OverlayView), this.map_ = e, 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;
1021
+ this.extend(Ft, google.maps.OverlayView), this.map_ = e, 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;
978
1022
  var s = r || {};
979
1023
  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(e), this.prevZoom_ = this.map_.getZoom();
980
1024
  var n = this;
981
1025
  google.maps.event.addListener(this.map_, "zoom_changed", function() {
982
- var a = n.map_.getZoom(), c = n.map_.minZoom || 0, o = Math.min(
1026
+ var a = n.map_.getZoom(), d = n.map_.minZoom || 0, o = Math.min(
983
1027
  n.map_.maxZoom || 100,
984
1028
  n.map_.mapTypes[n.map_.getMapTypeId()].maxZoom
985
1029
  );
986
- a = Math.min(Math.max(a, c), o), n.prevZoom_ != a && (n.prevZoom_ = a, n.resetViewport());
1030
+ a = Math.min(Math.max(a, d), o), n.prevZoom_ != a && (n.prevZoom_ = a, n.resetViewport());
987
1031
  }), google.maps.event.addListener(this.map_, "idle", function() {
988
1032
  n.redraw();
989
1033
  }), t && (t.length || Object.keys(t).length) && this.addMarkers(t, !1);
@@ -1226,8 +1270,8 @@ let Dr = class jt {
1226
1270
  */
1227
1271
  removeMarkers(e, t) {
1228
1272
  for (var r = e === this.getMarkers() ? e.slice() : e, s = !1, n = 0, a; a = r[n]; n++) {
1229
- var c = this.removeMarker_(a);
1230
- s = s || c;
1273
+ var d = this.removeMarker_(a);
1274
+ s = s || d;
1231
1275
  }
1232
1276
  if (!t && s)
1233
1277
  return this.resetViewport(), this.redraw(), !0;
@@ -1314,8 +1358,8 @@ let Dr = class jt {
1314
1358
  n.x += this.gridSize_, n.y -= this.gridSize_;
1315
1359
  var a = t.fromLatLngToDivPixel(s);
1316
1360
  a.x -= this.gridSize_, a.y += this.gridSize_;
1317
- var c = t.fromDivPixelToLatLng(n), o = t.fromDivPixelToLatLng(a);
1318
- return e.extend(c), e.extend(o), e;
1361
+ var d = t.fromDivPixelToLatLng(n), o = t.fromDivPixelToLatLng(a);
1362
+ return e.extend(d), e.extend(o), e;
1319
1363
  }
1320
1364
  /**
1321
1365
  * Determins if a marker is contained in a bounds.
@@ -1373,7 +1417,7 @@ let Dr = class jt {
1373
1417
  distanceBetweenPoints_(e, t) {
1374
1418
  if (!e || !t)
1375
1419
  return 0;
1376
- var r = 6371, s = (t.lat() - e.lat()) * Math.PI / 180, n = (t.lng() - e.lng()) * Math.PI / 180, a = Math.sin(s / 2) * Math.sin(s / 2) + Math.cos(e.lat() * Math.PI / 180) * Math.cos(t.lat() * Math.PI / 180) * Math.sin(n / 2) * Math.sin(n / 2), c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)), o = r * c;
1420
+ var r = 6371, s = (t.lat() - e.lat()) * Math.PI / 180, n = (t.lng() - e.lng()) * Math.PI / 180, a = Math.sin(s / 2) * Math.sin(s / 2) + Math.cos(e.lat() * Math.PI / 180) * Math.cos(t.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;
1377
1421
  return o;
1378
1422
  }
1379
1423
  /**
@@ -1386,14 +1430,14 @@ let Dr = class jt {
1386
1430
  for (var t = 4e4, r = null, s = 0, n; n = this.clusters_[s]; s++) {
1387
1431
  var a = n.getCenter();
1388
1432
  if (a) {
1389
- var c = this.distanceBetweenPoints_(a, e.getPosition());
1390
- c < t && (t = c, r = n);
1433
+ var d = this.distanceBetweenPoints_(a, e.getPosition());
1434
+ d < t && (t = d, r = n);
1391
1435
  }
1392
1436
  }
1393
1437
  if (r && r.isMarkerInClusterBounds(e))
1394
1438
  r.addMarker(e);
1395
1439
  else {
1396
- var o = new jr(this);
1440
+ var o = new Ur(this);
1397
1441
  o.addMarker(e), this.clusters_.push(o);
1398
1442
  }
1399
1443
  }
@@ -1410,9 +1454,9 @@ let Dr = class jt {
1410
1454
  ), t = this.getExtendedBounds(e), r = 0, s; s = this.markers_[r]; r++)
1411
1455
  !s.isAdded && this.isMarkerInBounds_(s, t) && this.addToClosestCluster_(s);
1412
1456
  }
1413
- }, jr = class {
1457
+ }, Ur = class {
1414
1458
  constructor(e) {
1415
- this.markerClusterer_ = e, this.map_ = e.getMap(), this.gridSize_ = e.getGridSize(), this.minClusterSize_ = e.getMinClusterSize(), this.averageCenter_ = e.isAverageCenter(), this.center_ = null, this.markers_ = [], this.bounds_ = null, this.clusterIcon_ = new Je(
1459
+ this.markerClusterer_ = e, this.map_ = e.getMap(), this.gridSize_ = e.getGridSize(), this.minClusterSize_ = e.getMinClusterSize(), this.averageCenter_ = e.isAverageCenter(), this.center_ = null, this.markers_ = [], this.bounds_ = null, this.clusterIcon_ = new Qe(
1416
1460
  this,
1417
1461
  e.getStyles(),
1418
1462
  e.getGridSize()
@@ -1546,9 +1590,9 @@ let Dr = class jt {
1546
1590
  this.clusterIcon_.setCenter(this.center_), this.clusterIcon_.setSums(a), this.clusterIcon_.show();
1547
1591
  }
1548
1592
  };
1549
- class Je {
1593
+ class Qe {
1550
1594
  constructor(e, t, r) {
1551
- e.getMarkerClusterer().extend(Je, google.maps.OverlayView), this.styles_ = t, this.padding_ = r || 0, this.cluster_ = e, this.center_ = null, this.map_ = e.getMap(), this.div_ = null, this.sums_ = null, this.visible_ = !1, this.setMap(this.map_);
1595
+ e.getMarkerClusterer().extend(Qe, google.maps.OverlayView), this.styles_ = t, this.padding_ = r || 0, this.cluster_ = e, this.center_ = null, this.map_ = e.getMap(), this.div_ = null, this.sums_ = null, this.visible_ = !1, this.setMap(this.map_);
1552
1596
  }
1553
1597
  /**
1554
1598
  * Triggers the clusterclick event and zoom's if the option is set.
@@ -1679,18 +1723,18 @@ class Je {
1679
1723
  ), t.join("");
1680
1724
  }
1681
1725
  }
1682
- var De = {}, Vr = {
1726
+ var je = {}, Yr = {
1683
1727
  get exports() {
1684
- return De;
1728
+ return je;
1685
1729
  },
1686
1730
  set exports(i) {
1687
- De = i;
1731
+ je = i;
1688
1732
  }
1689
1733
  };
1690
1734
  (function(i, e) {
1691
1735
  (function(t, r) {
1692
1736
  i.exports = r();
1693
- })(kt, function() {
1737
+ })(It, function() {
1694
1738
  var t, r = t = r || { version: "1.3.8" }, s = {};
1695
1739
  r.guid = "$BAIDU$", s[r.guid] = s[r.guid] || {}, r.dom = r.dom || {}, r.dom.g = function(o) {
1696
1740
  return typeof o == "string" || o instanceof String ? document.getElementById(o) : o && o.nodeName && (o.nodeType == 1 || o.nodeType == 9) ? o : null;
@@ -1702,10 +1746,10 @@ var De = {}, Vr = {
1702
1746
  return r.lang.isString(o) ? document.getElementById(o) : o;
1703
1747
  }, 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) {
1704
1748
  o = r.dom._g(o);
1705
- var h = r.dom.getDocument(o), u;
1706
- return h.defaultView && h.defaultView.getComputedStyle && (u = h.defaultView.getComputedStyle(o, null), u) ? u[l] || u.getPropertyValue(l) : "";
1749
+ var h = r.dom.getDocument(o), p;
1750
+ return h.defaultView && h.defaultView.getComputedStyle && (p = h.defaultView.getComputedStyle(o, null), p) ? p[l] || p.getPropertyValue(l) : "";
1707
1751
  }, r.dom._styleFixer = r.dom._styleFixer || {}, r.dom._styleFilter = r.dom._styleFilter || [], r.dom._styleFilter.filter = function(o, l, h) {
1708
- for (var u = 0, p = r.dom._styleFilter, M; M = p[u]; u++)
1752
+ for (var p = 0, u = r.dom._styleFilter, M; M = u[p]; p++)
1709
1753
  (M = M[h]) && (l = M(o, l));
1710
1754
  return l;
1711
1755
  }, r.string = r.string || {}, r.string.toCamelCase = function(o) {
@@ -1715,42 +1759,42 @@ var De = {}, Vr = {
1715
1759
  }, r.dom.getStyle = function(o, l) {
1716
1760
  var h = r.dom;
1717
1761
  o = h.g(o), l = r.string.toCamelCase(l);
1718
- var u = o.style[l] || (o.currentStyle ? o.currentStyle[l] : "") || h.getComputedStyle(o, l);
1719
- if (!u) {
1720
- var p = h._styleFixer[l];
1721
- p && (u = p.get ? p.get(o) : r.dom.getStyle(o, p));
1762
+ var p = o.style[l] || (o.currentStyle ? o.currentStyle[l] : "") || h.getComputedStyle(o, l);
1763
+ if (!p) {
1764
+ var u = h._styleFixer[l];
1765
+ u && (p = u.get ? u.get(o) : r.dom.getStyle(o, u));
1722
1766
  }
1723
- return (p = h._styleFilter) && (u = p.filter(l, u, "get")), u;
1767
+ return (u = h._styleFilter) && (p = u.filter(l, p, "get")), p;
1724
1768
  }, 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) {
1725
1769
  o = r.dom.g(o);
1726
- var l = r.dom.getDocument(o), h = r.browser, u = r.dom.getStyle;
1727
- h.isGecko > 0 && l.getBoxObjectFor && u(o, "position") == "absolute" && (o.style.top === "" || o.style.left);
1728
- var p = { left: 0, top: 0 }, M = h.ie && !h.isStrict ? l.body : l.documentElement, b, _;
1770
+ var l = r.dom.getDocument(o), h = r.browser, p = r.dom.getStyle;
1771
+ h.isGecko > 0 && l.getBoxObjectFor && p(o, "position") == "absolute" && (o.style.top === "" || o.style.left);
1772
+ var u = { left: 0, top: 0 }, M = h.ie && !h.isStrict ? l.body : l.documentElement, b, _;
1729
1773
  if (o == M)
1730
- return p;
1774
+ return u;
1731
1775
  if (o.getBoundingClientRect) {
1732
- _ = o.getBoundingClientRect(), p.left = Math.floor(_.left) + Math.max(l.documentElement.scrollLeft, l.body.scrollLeft), p.top = Math.floor(_.top) + Math.max(l.documentElement.scrollTop, l.body.scrollTop), p.left -= l.documentElement.clientLeft, p.top -= l.documentElement.clientTop;
1733
- var g = l.body, m = parseInt(u(g, "borderLeftWidth")), v = parseInt(u(g, "borderTopWidth"));
1734
- h.ie && !h.isStrict && (p.left -= isNaN(m) ? 2 : m, p.top -= isNaN(v) ? 2 : v);
1776
+ _ = o.getBoundingClientRect(), u.left = Math.floor(_.left) + Math.max(l.documentElement.scrollLeft, l.body.scrollLeft), u.top = Math.floor(_.top) + Math.max(l.documentElement.scrollTop, l.body.scrollTop), u.left -= l.documentElement.clientLeft, u.top -= l.documentElement.clientTop;
1777
+ var g = l.body, m = parseInt(p(g, "borderLeftWidth")), v = parseInt(p(g, "borderTopWidth"));
1778
+ h.ie && !h.isStrict && (u.left -= isNaN(m) ? 2 : m, u.top -= isNaN(v) ? 2 : v);
1735
1779
  } else {
1736
1780
  b = o;
1737
1781
  do {
1738
- if (p.left += b.offsetLeft, p.top += b.offsetTop, h.isWebkit > 0 && u(b, "position") == "fixed") {
1739
- p.left += l.body.scrollLeft, p.top += l.body.scrollTop;
1782
+ if (u.left += b.offsetLeft, u.top += b.offsetTop, h.isWebkit > 0 && p(b, "position") == "fixed") {
1783
+ u.left += l.body.scrollLeft, u.top += l.body.scrollTop;
1740
1784
  break;
1741
1785
  }
1742
1786
  b = b.offsetParent;
1743
1787
  } while (b && b != o);
1744
- for ((h.opera > 0 || h.isWebkit > 0 && u(o, "position") == "absolute") && (p.top -= l.body.offsetTop), b = o.offsetParent; b && b != l.body; )
1745
- p.left -= b.scrollLeft, (!h.opera || b.tagName != "TR") && (p.top -= b.scrollTop), b = b.offsetParent;
1788
+ for ((h.opera > 0 || h.isWebkit > 0 && p(o, "position") == "absolute") && (u.top -= l.body.offsetTop), b = o.offsetParent; b && b != l.body; )
1789
+ u.left -= b.scrollLeft, (!h.opera || b.tagName != "TR") && (u.top -= b.scrollTop), b = b.offsetParent;
1746
1790
  }
1747
- return p;
1791
+ return u;
1748
1792
  }, r.event = r.event || {}, r.event._listeners = r.event._listeners || [], r.event.on = function(o, l, h) {
1749
1793
  l = l.replace(/^on/i, ""), o = r.dom._g(o);
1750
- var u = function(g) {
1794
+ var p = function(g) {
1751
1795
  h.call(o, g);
1752
- }, p = r.event._listeners, M = r.event._eventFilter, b, _ = l;
1753
- return l = l.toLowerCase(), M && M[l] && (b = M[l](o, l, u), _ = b.type, u = b.listener), o.addEventListener ? o.addEventListener(_, u, !1) : o.attachEvent && o.attachEvent("on" + _, u), p[p.length] = [o, l, h, u, _], o;
1796
+ }, u = r.event._listeners, M = r.event._eventFilter, b, _ = l;
1797
+ return l = l.toLowerCase(), M && M[l] && (b = M[l](o, l, p), _ = b.type, p = b.listener), o.addEventListener ? o.addEventListener(_, p, !1) : o.attachEvent && o.attachEvent("on" + _, p), u[u.length] = [o, l, h, p, _], o;
1754
1798
  }, r.on = r.event.on, function() {
1755
1799
  var o = s[r.guid];
1756
1800
  r.lang.guid = function() {
@@ -1772,13 +1816,13 @@ var De = {}, Vr = {
1772
1816
  }, r.lang.Class.prototype.addEventListener = function(o, l, h) {
1773
1817
  if (r.lang.isFunction(l)) {
1774
1818
  !this.__listeners && (this.__listeners = {});
1775
- var u = this.__listeners, p;
1819
+ var p = this.__listeners, u;
1776
1820
  if (typeof h == "string" && h) {
1777
1821
  if (/[^\w\-]/.test(h))
1778
1822
  throw "nonstandard key:" + h;
1779
- l.hashCode = h, p = h;
1823
+ l.hashCode = h, u = h;
1780
1824
  }
1781
- 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;
1825
+ o.indexOf("on") != 0 && (o = "on" + o), typeof p[o] != "object" && (p[o] = {}), u = u || r.lang.guid(), l.hashCode = u, p[o][u] = l;
1782
1826
  }
1783
1827
  }, r.lang.Class.prototype.removeEventListener = function(o, l) {
1784
1828
  if (!(typeof l < "u" && (r.lang.isFunction(l) && !(l = l.hashCode) || !r.lang.isString(l)))) {
@@ -1788,115 +1832,115 @@ var De = {}, Vr = {
1788
1832
  if (typeof l < "u")
1789
1833
  h[o][l] && delete h[o][l];
1790
1834
  else
1791
- for (var u in h[o])
1792
- delete h[o][u];
1835
+ for (var p in h[o])
1836
+ delete h[o][p];
1793
1837
  }
1794
1838
  }, r.lang.Class.prototype.dispatchEvent = function(o, l) {
1795
1839
  r.lang.isString(o) && (o = new r.lang.Event(o)), !this.__listeners && (this.__listeners = {}), l = l || {};
1796
1840
  for (var h in l)
1797
1841
  o[h] = l[h];
1798
- var h, u = this.__listeners, p = o.type;
1799
- 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")
1800
- for (h in u[p])
1801
- u[p][h].apply(this, arguments);
1842
+ var h, p = this.__listeners, u = o.type;
1843
+ if (o.target = o.target || this, o.currentTarget = this, u.indexOf("on") != 0 && (u = "on" + u), r.lang.isFunction(this[u]) && this[u].apply(this, arguments), typeof p[u] == "object")
1844
+ for (h in p[u])
1845
+ p[u][h].apply(this, arguments);
1802
1846
  return o.returnValue;
1803
1847
  }, r.lang.inherits = function(o, l, h) {
1804
- var u, p, M = o.prototype, b = new Function();
1805
- b.prototype = l.prototype, p = o.prototype = new b();
1806
- for (u in M)
1807
- p[u] = M[u];
1808
- o.prototype.constructor = o, o.superClass = l.prototype, typeof h == "string" && (p._className = h);
1848
+ var p, u, M = o.prototype, b = new Function();
1849
+ b.prototype = l.prototype, u = o.prototype = new b();
1850
+ for (p in M)
1851
+ u[p] = M[p];
1852
+ o.prototype.constructor = o, o.superClass = l.prototype, typeof h == "string" && (u._className = h);
1809
1853
  }, r.inherits = r.lang.inherits;
1810
- var n = "http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m", a = "png", c = function(o, l, h) {
1854
+ var n = "http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m", a = "png", d = function(o, l, h) {
1811
1855
  try {
1812
1856
  BMap;
1813
1857
  } catch {
1814
1858
  throw Error("Baidu Map JS API is not ready yet!");
1815
1859
  }
1816
- t.lang.inherits(c, BMap.Overlay, "TextIconOverlay"), this._position = o, this._text = l, this._options = h || {}, this._styles = this._options.styles || [], this._zIndex = this._options.zIndex, !this._styles.length && this._setupDefaultStyles();
1860
+ t.lang.inherits(d, BMap.Overlay, "TextIconOverlay"), this._position = o, this._text = l, this._options = h || {}, this._styles = this._options.styles || [], this._zIndex = this._options.zIndex, !this._styles.length && this._setupDefaultStyles();
1817
1861
  };
1818
- return c.prototype._setupDefaultStyles = function() {
1862
+ return d.prototype._setupDefaultStyles = function() {
1819
1863
  for (var o = [53, 56, 66, 78, 90], l = 0, h; h = o[l]; l++)
1820
1864
  this._styles.push({
1821
1865
  url: n + l + "." + a,
1822
1866
  size: new BMap.Size(h, h)
1823
1867
  });
1824
- }, c.prototype.initialize = function(o) {
1868
+ }, d.prototype.initialize = function(o) {
1825
1869
  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;
1826
- }, c.prototype.draw = function() {
1870
+ }, d.prototype.draw = function() {
1827
1871
  this._map && this._updatePosition();
1828
- }, c.prototype.getText = function() {
1872
+ }, d.prototype.getText = function() {
1829
1873
  return this._text;
1830
- }, c.prototype.setText = function(o) {
1874
+ }, d.prototype.setText = function(o) {
1831
1875
  o && (!this._text || this._text.toString() != o.toString()) && (this._text = o, this._updateText(), this._updateCss(), this._updatePosition());
1832
- }, c.prototype.getPosition = function() {
1876
+ }, d.prototype.getPosition = function() {
1833
1877
  return this._position;
1834
- }, c.prototype.setPosition = function(o) {
1878
+ }, d.prototype.setPosition = function(o) {
1835
1879
  o && (!this._position || !this._position.equals(o)) && (this._position = o, this._updatePosition());
1836
- }, c.prototype.getStyleByText = function(o, l) {
1837
- var h = parseInt(o), u = parseInt(h / 10);
1838
- return u = Math.max(0, u), u = Math.min(u, l.length - 1), l[u];
1839
- }, c.prototype._updateCss = function() {
1880
+ }, d.prototype.getStyleByText = function(o, l) {
1881
+ var h = parseInt(o), p = parseInt(h / 10);
1882
+ return p = Math.max(0, p), p = Math.min(p, l.length - 1), l[p];
1883
+ }, d.prototype._updateCss = function() {
1840
1884
  if (this._domElement) {
1841
1885
  var o = this.getStyleByText(this._text, this._styles);
1842
1886
  this._domElement.style.cssText = this._buildCssText(o);
1843
1887
  }
1844
- }, c.prototype._updateText = function() {
1888
+ }, d.prototype._updateText = function() {
1845
1889
  this._domElement && (this._domElement.innerHTML = this._text);
1846
- }, c.prototype._updatePosition = function() {
1890
+ }, d.prototype._updatePosition = function() {
1847
1891
  if (this._domElement && this._position) {
1848
1892
  var o = this._domElement.style, l = this._map.pointToOverlayPixel(this._position);
1849
1893
  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";
1850
1894
  }
1851
- }, c.prototype._buildCssText = function(o) {
1852
- var l = o.url, h = o.size, u = o.anchor, p = o.offset, M = o.textColor || "black", b = o.textSize || 10, _ = [];
1895
+ }, d.prototype._buildCssText = function(o) {
1896
+ var l = o.url, h = o.size, p = o.anchor, u = o.offset, M = o.textColor || "black", b = o.textSize || 10, _ = [];
1853
1897
  if (this._zIndex && _.push("z-index:" + this._zIndex + ";"), t.browser.ie < 7)
1854
1898
  _.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="' + l + '");');
1855
1899
  else {
1856
1900
  _.push("background-image:url(" + l + ");");
1857
1901
  var g = "0 0";
1858
- p instanceof BMap.Size && (g = p.width + "px " + p.height + "px"), _.push("background-position:" + g + ";");
1902
+ u instanceof BMap.Size && (g = u.width + "px " + u.height + "px"), _.push("background-position:" + g + ";");
1859
1903
  }
1860
- return h instanceof BMap.Size && (u instanceof BMap.Size ? (u.height > 0 && u.height < h.height && _.push("height:" + (h.height - u.height) + "px; padding-top:" + u.height + "px;"), u.width > 0 && u.width < h.width && _.push("width:" + (h.width - u.width) + "px; padding-left:" + u.width + "px;")) : (_.push("height:" + h.height + "px; line-height:" + h.height + "px;"), _.push("width:" + h.width + "px; text-align:center;"))), _.push("cursor:pointer; color:" + M + "; position:absolute; font-size:" + b + "px; font-family:Arial,sans-serif; font-weight:bold"), _.join("");
1861
- }, c.prototype._bind = function() {
1904
+ return h instanceof BMap.Size && (p instanceof BMap.Size ? (p.height > 0 && p.height < h.height && _.push("height:" + (h.height - p.height) + "px; padding-top:" + p.height + "px;"), p.width > 0 && p.width < h.width && _.push("width:" + (h.width - p.width) + "px; padding-left:" + p.width + "px;")) : (_.push("height:" + h.height + "px; line-height:" + h.height + "px;"), _.push("width:" + h.width + "px; text-align:center;"))), _.push("cursor:pointer; color:" + M + "; position:absolute; font-size:" + b + "px; font-family:Arial,sans-serif; font-weight:bold"), _.join("");
1905
+ }, d.prototype._bind = function() {
1862
1906
  if (!this._domElement)
1863
1907
  return;
1864
1908
  var o = this, l = this._map, h = t.lang.Event;
1865
- function u(p, M) {
1866
- var b = p.srcElement || p.target, _ = p.clientX || p.pageX, g = p.clientY || p.pageY;
1867
- if (p && M && _ && g && b) {
1909
+ function p(u, M) {
1910
+ var b = u.srcElement || u.target, _ = u.clientX || u.pageX, g = u.clientY || u.pageY;
1911
+ if (u && M && _ && g && b) {
1868
1912
  var m = t.dom.getPosition(l.getContainer());
1869
1913
  M.pixel = new BMap.Pixel(_ - m.left, g - m.top), M.point = l.pixelToPoint(M.pixel);
1870
1914
  }
1871
1915
  return M;
1872
1916
  }
1873
- t.event.on(this._domElement, "mouseover", function(p) {
1874
- o.dispatchEvent(u(p, new h("onmouseover")));
1875
- }), t.event.on(this._domElement, "mouseout", function(p) {
1876
- o.dispatchEvent(u(p, new h("onmouseout")));
1877
- }), t.event.on(this._domElement, "click", function(p) {
1878
- o.dispatchEvent(u(p, new h("onclick")));
1917
+ t.event.on(this._domElement, "mouseover", function(u) {
1918
+ o.dispatchEvent(p(u, new h("onmouseover")));
1919
+ }), t.event.on(this._domElement, "mouseout", function(u) {
1920
+ o.dispatchEvent(p(u, new h("onmouseout")));
1921
+ }), t.event.on(this._domElement, "click", function(u) {
1922
+ o.dispatchEvent(p(u, new h("onclick")));
1879
1923
  });
1880
- }, c;
1924
+ }, d;
1881
1925
  });
1882
- })(Vr);
1883
- const wt = De;
1884
- var Vt = function(i, e, t) {
1885
- e = Wr(e);
1926
+ })(Yr);
1927
+ const xt = je;
1928
+ var Ut = function(i, e, t) {
1929
+ e = qr(e);
1886
1930
  var r = i.pointToPixel(e.getNorthEast()), s = i.pointToPixel(e.getSouthWest());
1887
1931
  r.x += t, r.y -= t, s.x -= t, s.y += t;
1888
1932
  var n = i.pixelToPoint(r), a = i.pixelToPoint(s);
1889
1933
  return new BMap.Bounds(a, n);
1890
- }, Wr = function(i) {
1891
- var e = _e(i.getNorthEast().lng, -180, 180), t = _e(i.getSouthWest().lng, -180, 180), r = _e(i.getNorthEast().lat, -74, 74), s = _e(i.getSouthWest().lat, -74, 74);
1934
+ }, qr = function(i) {
1935
+ var e = be(i.getNorthEast().lng, -180, 180), t = be(i.getSouthWest().lng, -180, 180), r = be(i.getNorthEast().lat, -74, 74), s = be(i.getSouthWest().lat, -74, 74);
1892
1936
  return new BMap.Bounds(new BMap.Point(t, s), new BMap.Point(e, r));
1893
- }, _e = function(i, e, t) {
1937
+ }, be = function(i, e, t) {
1894
1938
  return e && (i = Math.max(i, e)), t && (i = Math.min(i, t)), i;
1895
- }, Wt = function(i) {
1939
+ }, Yt = function(i) {
1896
1940
  return Object.prototype.toString.call(i) === "[object Array]";
1897
- }, Ht = function(i, e) {
1941
+ }, qt = function(i, e) {
1898
1942
  var t = -1;
1899
- if (Wt(e)) {
1943
+ if (Yt(e)) {
1900
1944
  if (e.indexOf)
1901
1945
  t = e.indexOf(i);
1902
1946
  else
@@ -1924,7 +1968,7 @@ var Vt = function(i, e, t) {
1924
1968
  r._redraw();
1925
1969
  });
1926
1970
  var s = t.markers;
1927
- Wt(s) && this.addMarkers(s);
1971
+ Yt(s) && this.addMarkers(s);
1928
1972
  }
1929
1973
  };
1930
1974
  T.prototype.addMarkers = function(i) {
@@ -1935,7 +1979,7 @@ T.prototype.addMarkers = function(i) {
1935
1979
  }
1936
1980
  };
1937
1981
  T.prototype._pushMarkerTo = function(i) {
1938
- var e = Ht(i, this._markers);
1982
+ var e = qt(i, this._markers);
1939
1983
  e === -1 && (i.isInCluster = !1, this._markers.push(i));
1940
1984
  };
1941
1985
  T.prototype.addMarker = function(i) {
@@ -1944,7 +1988,7 @@ T.prototype.addMarker = function(i) {
1944
1988
  T.prototype._createClusters = function() {
1945
1989
  var i = this._map.getBounds();
1946
1990
  if (i.getCenter()) {
1947
- for (var e = Vt(this._map, i, this._gridSize), t = 0, r; r = this._markers[t]; t++)
1991
+ for (var e = Ut(this._map, i, this._gridSize), t = 0, r; r = this._markers[t]; t++)
1948
1992
  !r.isInCluster && e.containsPoint(r.getPosition()) && this._addToClosestCluster(r);
1949
1993
  for (var s = this._markers.length, t = 0; t < s; t++)
1950
1994
  this._clusters[t] && this._clusters[t].render();
@@ -1984,7 +2028,7 @@ T.prototype._removeMarkersFromMap = function() {
1984
2028
  }
1985
2029
  };
1986
2030
  T.prototype._removeMarker = function(i) {
1987
- var e = Ht(i, this._markers);
2031
+ var e = qt(i, this._markers);
1988
2032
  return e === -1 ? !1 : (this._map.removeOverlay(i), this._markers.splice(e, 1), !0);
1989
2033
  };
1990
2034
  T.prototype.removeMarker = function(i) {
@@ -2060,7 +2104,7 @@ T.prototype.setStylesIndexCalculator = function(i) {
2060
2104
  };
2061
2105
  function S(i) {
2062
2106
  var e = this;
2063
- this._markerClusterer = i, this._map = i.getMap(), this._minClusterSize = i.getMinClusterSize(), this._isAverageCenter = i.isAverageCenter(), this._center = null, this._markers = [], this._gridBounds = null, this._isReal = !1, this._clusterMarker = new wt(this._center, this._markers.length, {
2107
+ this._markerClusterer = i, this._map = i.getMap(), this._minClusterSize = i.getMinClusterSize(), this._isAverageCenter = i.isAverageCenter(), this._center = null, this._markers = [], this._gridBounds = null, this._isReal = !1, this._clusterMarker = new xt(this._center, this._markers.length, {
2064
2108
  styles: this._markerClusterer.getStyles(),
2065
2109
  zIndex: i._zIndex
2066
2110
  }), this._clusterMarker.getStyleByText = function(t, r) {
@@ -2068,7 +2112,7 @@ function S(i) {
2068
2112
  var s = e._markerClusterer._stylesIndexCalculator(e._markers, r.length);
2069
2113
  return r[s];
2070
2114
  }
2071
- return wt.prototype.getStyleByText.call(this, t, r);
2115
+ return xt.prototype.getStyleByText.call(this, t, r);
2072
2116
  }, this._clusterMarker.addEventListener && this._clusterMarker.addEventListener("click", function(t) {
2073
2117
  e._map.setViewport(e.getBounds());
2074
2118
  });
@@ -2108,7 +2152,7 @@ S.prototype.isReal = function(i) {
2108
2152
  };
2109
2153
  S.prototype.updateGridBounds = function() {
2110
2154
  var i = new BMap.Bounds(this._center, this._center);
2111
- this._gridBounds = Vt(this._map, i, this._markerClusterer.getGridSize());
2155
+ this._gridBounds = Ut(this._map, i, this._markerClusterer.getGridSize());
2112
2156
  };
2113
2157
  S.prototype.updateClusterMarker = function() {
2114
2158
  if (this._map.getZoom() > this._markerClusterer.getMaxZoom()) {
@@ -2138,7 +2182,7 @@ S.prototype.getBounds = function() {
2138
2182
  S.prototype.getCenter = function() {
2139
2183
  return this._center;
2140
2184
  };
2141
- var Ee;
2185
+ var Le;
2142
2186
  ((i) => {
2143
2187
  function e(r) {
2144
2188
  return {
@@ -2163,10 +2207,10 @@ var Ee;
2163
2207
  };
2164
2208
  }
2165
2209
  i.toGoogle = t;
2166
- })(Ee || (Ee = {}));
2167
- class Ft {
2210
+ })(Le || (Le = {}));
2211
+ class Kt {
2168
2212
  constructor(e) {
2169
- d(this, "inner");
2213
+ c(this, "inner");
2170
2214
  this.map = e;
2171
2215
  }
2172
2216
  /** baidu/google 拥有相同的函数名 */
@@ -2190,7 +2234,7 @@ class Ft {
2190
2234
  return this.inner.removeMarkers(e.map((t) => t.innerOverlay));
2191
2235
  }
2192
2236
  }
2193
- class Hr extends Ft {
2237
+ class Kr extends Kt {
2194
2238
  constructor(e, t) {
2195
2239
  var s;
2196
2240
  super(e), this.inner = new T(e.innerMap, {
@@ -2200,7 +2244,7 @@ class Hr extends Ft {
2200
2244
  maxZoom: t.maxZoom,
2201
2245
  minClusterSize: t.minClusterSize,
2202
2246
  isAverageCenter: t.averageCenter,
2203
- styles: (s = t.styles) == null ? void 0 : s.map((n) => Ee.toBaidu(n)),
2247
+ styles: (s = t.styles) == null ? void 0 : s.map((n) => Le.toBaidu(n)),
2204
2248
  zIndex: t.zIndex
2205
2249
  });
2206
2250
  const r = t.stylesIndexCalculator;
@@ -2210,10 +2254,10 @@ class Hr extends Ft {
2210
2254
  this.inner._redraw();
2211
2255
  }
2212
2256
  }
2213
- class Fr extends Ft {
2257
+ class Xr extends Kt {
2214
2258
  constructor(e, t) {
2215
2259
  var s, n;
2216
- super(e), this.inner = new Dr(
2260
+ super(e), this.inner = new Fr(
2217
2261
  e.innerMap,
2218
2262
  // google的构造器中的markers,不会触发重绘, 第一次绘制通过监听地图的'idle'事件触发, 可以直接设置
2219
2263
  (s = t.markers) == null ? void 0 : s.map((a) => a.innerOverlay),
@@ -2222,34 +2266,36 @@ class Fr extends Ft {
2222
2266
  maxZoom: t.maxZoom,
2223
2267
  minimumClusterSize: t.minClusterSize,
2224
2268
  averageCenter: t.averageCenter,
2225
- styles: (n = t.styles) == null ? void 0 : n.map((a) => Ee.toGoogle(a)),
2269
+ styles: (n = t.styles) == null ? void 0 : n.map((a) => Le.toGoogle(a)),
2226
2270
  zIndex: t.zIndex
2227
2271
  }
2228
2272
  );
2229
2273
  const r = t.stylesIndexCalculator;
2230
- r && this.inner.setCalculator((a, c) => ({
2274
+ r && this.inner.setCalculator((a, d) => ({
2231
2275
  text: a.length,
2232
2276
  // google内部, 取index时, 会`-1`...故我们这里`+1`, 抵消掉它
2233
- index: r(a.length, c) + 1
2277
+ index: r(a.length, d) + 1
2234
2278
  }));
2235
2279
  }
2236
2280
  recreate() {
2237
2281
  this.inner.repaint();
2238
2282
  }
2239
2283
  }
2240
- class Ut {
2241
- constructor(e) {
2242
- this.map = e;
2284
+ class Xt {
2285
+ constructor() {
2243
2286
  }
2244
2287
  }
2245
- class Ur extends Ut {
2288
+ class Jr extends Xt {
2246
2289
  constructor(t, r) {
2247
- super(t);
2248
- d(this, "inner");
2249
- this.inner = new google.maps.places.PlacesService(t.innerMap);
2290
+ super();
2291
+ c(this, "inner");
2292
+ this.map = t, this.inner = new google.maps.places.PlacesService(t.innerMap);
2250
2293
  }
2251
- search(t) {
2252
- return this.searchImpl(t);
2294
+ search(t, r) {
2295
+ return this.searchImpl(
2296
+ t,
2297
+ r instanceof y ? r.toGoogle(this.map.coordType) : r ?? this.map.innerMap.getCenter()
2298
+ );
2253
2299
  }
2254
2300
  searchInBounds(t, r) {
2255
2301
  return this.searchImpl(t, r.toGoogle(this.map.coordType));
@@ -2266,101 +2312,147 @@ class Ur extends Ut {
2266
2312
  "geometry",
2267
2313
  "name",
2268
2314
  "place_id"
2269
- // 'address_components', // 查询请求不支持该字段...
2315
+ // 'address_components', // TODO: 2023/04/28 ipcjs 查询请求不支持该字段...
2270
2316
  ],
2271
2317
  locationBias: r
2272
- }, (a, c) => {
2273
- switch (c) {
2318
+ }, (a, d) => {
2319
+ switch (d) {
2274
2320
  case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:
2275
2321
  case google.maps.places.PlacesServiceStatus.OK: {
2276
- const o = (a ?? []).map((l) => {
2277
- var p;
2278
- const h = l.address_components ? Gt(l.address_components) : null;
2279
- return {
2280
- country: (h == null ? void 0 : h.country) ?? "",
2281
- province: (h == null ? void 0 : h.province) ?? "",
2282
- city: (h == null ? void 0 : h.city) ?? "",
2283
- id: l.place_id ?? "",
2284
- address: l.formatted_address ?? "",
2285
- position: y.fromGoogle(((p = l.geometry) == null ? void 0 : p.location) ?? ee.LATLNG_ZERO, this.map.coordType),
2286
- title: l.name ?? ""
2287
- };
2288
- });
2322
+ const o = (a ?? []).map((l) => Vt(l, this.map));
2289
2323
  s(o);
2290
2324
  break;
2291
2325
  }
2292
2326
  default:
2293
- n(new Error(`status: ${c}`));
2327
+ n(new Error(`status: ${d}`));
2294
2328
  break;
2295
2329
  }
2296
2330
  });
2297
2331
  });
2298
2332
  }
2299
2333
  }
2300
- class Yr extends Ut {
2334
+ class Qr extends Xt {
2301
2335
  constructor(t, r) {
2302
- super(t);
2303
- d(this, "searchRequestMap", /* @__PURE__ */ new Map());
2304
- d(this, "currentSearch");
2336
+ super();
2337
+ c(this, "searchRequestMap", /* @__PURE__ */ new Map());
2338
+ c(this, "currentSearch");
2339
+ this.map = t;
2305
2340
  }
2306
2341
  get inner() {
2307
2342
  return this.currentSearch;
2308
2343
  }
2309
- search(t) {
2310
- return this.newSearch((r) => {
2311
- r.search(t);
2312
- });
2344
+ search(t, r) {
2345
+ return this.newSearch(
2346
+ r instanceof y ? r.toBaidu(this.map.coordType) : r ?? this.map.innerMap.getCenter(),
2347
+ (s) => {
2348
+ s.search(t);
2349
+ }
2350
+ );
2313
2351
  }
2314
2352
  searchInBounds(t, r) {
2315
- return this.newSearch((s) => {
2353
+ return this.newSearch(void 0, (s) => {
2316
2354
  s.searchInBounds(t, r.toBaidu(this.map.coordType));
2317
2355
  });
2318
2356
  }
2319
2357
  searchNearBy(t, r, s) {
2320
- return this.newSearch((n) => {
2358
+ return this.newSearch(void 0, (n) => {
2321
2359
  n.searchNearby(t, r.toBaidu(this.map.coordType), s);
2322
2360
  });
2323
2361
  }
2324
- newSearch(t) {
2325
- return new Promise((r, s) => {
2326
- const n = new BMap.LocalSearch(this.map.innerMap, {
2327
- onSearchComplete: (a) => {
2328
- Array.isArray(a) && Lt("当前只支持一次搜索一条数据");
2329
- const c = n.getStatus();
2330
- switch (c) {
2362
+ newSearch(t, r) {
2363
+ return new Promise((s, n) => {
2364
+ const a = new BMap.LocalSearch(t ?? this.map.innerMap, {
2365
+ onSearchComplete: (d) => {
2366
+ Array.isArray(d) && Bt("当前只支持一次搜索一条数据");
2367
+ const o = a.getStatus();
2368
+ switch (o) {
2331
2369
  case BMAP_STATUS_SUCCESS: {
2332
- const o = [];
2333
- for (let l = 0; l < a.getCurrentNumPois(); l++) {
2334
- const h = a.getPoi(l);
2335
- o.push({
2336
- id: h.uid,
2337
- city: h.city,
2370
+ const l = [];
2371
+ for (let h = 0; h < d.getCurrentNumPois(); h++) {
2372
+ const p = d.getPoi(h);
2373
+ l.push({
2374
+ id: p.uid,
2375
+ city: p.city,
2338
2376
  country: "",
2339
2377
  // 百度地图只支持中国
2340
- position: y.fromBaidu(h.point, this.map.coordType),
2341
- province: h.province,
2342
- title: h.title,
2343
- address: h.address
2378
+ position: y.fromBaidu(p.point, this.map.coordType),
2379
+ province: p.province,
2380
+ title: p.title,
2381
+ address: p.address
2344
2382
  });
2345
2383
  }
2346
- r(o);
2384
+ s(l);
2347
2385
  break;
2348
2386
  }
2387
+ case BMAP_STATUS_UNKNOWN_LOCATION:
2388
+ s([]);
2389
+ break;
2349
2390
  default:
2350
- s(new Error(`status: ${c}`));
2391
+ n(new Error(`status: ${o}`));
2351
2392
  break;
2352
2393
  }
2353
2394
  }
2354
2395
  });
2355
- t(n);
2396
+ r(a);
2356
2397
  });
2357
2398
  }
2358
2399
  }
2359
- class Qe {
2400
+ class Jt {
2401
+ constructor(e, t) {
2402
+ c(this, "onData");
2403
+ c(this, "onError");
2404
+ this.map = e, this.input = t;
2405
+ }
2406
+ /**
2407
+ * 设置搜索结果监听
2408
+ *
2409
+ * @mustCallSuper 子类必须调用一次`super.setSearchListener`, 用来保存{@link onData}和{@link onError}
2410
+ * */
2411
+ setSearchListener(e, t) {
2412
+ return this.onData && C("setSearchListener只能调用一次"), this.onData = e, this.onError = t, ge;
2413
+ }
2414
+ }
2415
+ class ei extends Jt {
2416
+ constructor(t, r) {
2417
+ super(t, r.input);
2418
+ c(this, "searchBox");
2419
+ this.searchBox = new google.maps.places.SearchBox(r.input), this.searchBox.bindTo("bounds", t.innerMap);
2420
+ }
2421
+ setSearchListener(t, r) {
2422
+ return super.setSearchListener(t, r), Nt(this.searchBox, "places_changed", () => {
2423
+ const s = this.searchBox.getPlaces();
2424
+ t((s ?? []).map((n) => Vt(n, this.map)));
2425
+ });
2426
+ }
2427
+ search() {
2428
+ this.input.value && (google.maps.event.trigger(this.input, "focus", {}), google.maps.event.trigger(this.input, "keydown", { keyCode: 13 }));
2429
+ }
2430
+ }
2431
+ class ti extends Jt {
2432
+ constructor(t, r) {
2433
+ super(t, r.input);
2434
+ c(this, "autocomplete");
2435
+ c(this, "placeService");
2436
+ this.autocomplete = t.createAutocomplete({ input: r.input, bindToMap: !0 }), this.placeService = t.createPlaceService({});
2437
+ }
2438
+ setSearchListener(t, r) {
2439
+ return super.setSearchListener(t, r), this.autocomplete.addResultListener((s) => {
2440
+ this.searchImpl(s.country + s.province + s.city + s.district + s.street + s.streetNumber + s.title);
2441
+ });
2442
+ }
2443
+ search() {
2444
+ this.input.value && this.searchImpl(this.input.value);
2445
+ }
2446
+ searchImpl(t) {
2447
+ this.placeService.search(t).then(this.onData, this.onError);
2448
+ }
2449
+ }
2450
+ var ri = /* @__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))(ri || {});
2451
+ class et {
2360
2452
  constructor(e) {
2361
- d(this, "latestInfoWindow");
2453
+ c(this, "latestInfoWindow");
2362
2454
  /** 使用{@link setEventTargetDelegate}初始化 */
2363
- d(this, "delegate", void 0);
2455
+ c(this, "delegate", void 0);
2364
2456
  this.element = e, process.env.NODE_ENV !== "production" && setTimeout(() => {
2365
2457
  this.delegate || console.warn(`${this.constructor.name}继承了AbstractMap, 但未调用setEventTargetDelegate(delegate)`);
2366
2458
  });
@@ -2408,7 +2500,7 @@ class Qe {
2408
2500
  * Copyright (c) 2014-2017, Jon Schlinkert.
2409
2501
  * Released under the MIT License.
2410
2502
  */
2411
- function qr(i) {
2503
+ function ii(i) {
2412
2504
  return i != null && typeof i == "object" && Array.isArray(i) === !1;
2413
2505
  }
2414
2506
  /*!
@@ -2417,60 +2509,60 @@ function qr(i) {
2417
2509
  * Copyright (c) 2014-2017, Jon Schlinkert.
2418
2510
  * Released under the MIT License.
2419
2511
  */
2420
- function Ct(i) {
2421
- return qr(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
2512
+ function Et(i) {
2513
+ return ii(i) === !0 && Object.prototype.toString.call(i) === "[object Object]";
2422
2514
  }
2423
- function Yt(i) {
2515
+ function Qt(i) {
2424
2516
  var e, t;
2425
- return !(Ct(i) === !1 || (e = i.constructor, typeof e != "function") || (t = e.prototype, Ct(t) === !1) || t.hasOwnProperty("isPrototypeOf") === !1);
2517
+ return !(Et(i) === !1 || (e = i.constructor, typeof e != "function") || (t = e.prototype, Et(t) === !1) || t.hasOwnProperty("isPrototypeOf") === !1);
2426
2518
  }
2427
- var ge;
2519
+ var fe;
2428
2520
  ((i) => {
2429
2521
  function e(n, a) {
2430
- return n.reduce((c, o) => (c[a(o)] = o, c), {});
2522
+ return n.reduce((d, o) => (d[a(o)] = o, d), {});
2431
2523
  }
2432
2524
  i.fromArray = e;
2433
2525
  function t(n) {
2434
- return n.reduce((a, c) => (a[c[0]] = c[1], a), {});
2526
+ return n.reduce((a, d) => (a[d[0]] = d[1], a), {});
2435
2527
  }
2436
2528
  i.fromEntries = t;
2437
2529
  function r(n) {
2438
- return JSON.stringify(n, (a, c) => typeof c == "object" && Object.getPrototypeOf(c) !== Object.prototype ? c.toString !== Object.prototype.toString ? c.toString() : `[object ${Object.getPrototypeOf(c).constructor.name}]` : c);
2530
+ return JSON.stringify(n, (a, d) => typeof d == "object" && Object.getPrototypeOf(d) !== Object.prototype ? d.toString !== Object.prototype.toString ? d.toString() : `[object ${Object.getPrototypeOf(d).constructor.name}]` : d);
2439
2531
  }
2440
2532
  i.toJsonSafely = r;
2441
2533
  function s(n) {
2442
- Yt(n) && Object.keys(n).forEach((a) => {
2534
+ Qt(n) && Object.keys(n).forEach((a) => {
2443
2535
  n[a] === void 0 ? delete n[a] : s(n[a]);
2444
2536
  });
2445
2537
  }
2446
2538
  i.deleteUndefinedPropertyOnPlainObjectDeeply = s;
2447
- })(ge || (ge = {}));
2448
- ge.toJsonSafely;
2449
- const Kr = ["single", "multi"];
2450
- var Z = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(Z || {}), je;
2539
+ })(fe || (fe = {}));
2540
+ fe.toJsonSafely;
2541
+ const si = ["single", "multi"];
2542
+ var D = /* @__PURE__ */ ((i) => (i.auto = "auto", i.none = "none", i.greedy = "greedy", i.cooperative = "cooperative", i))(D || {}), We;
2451
2543
  ((i) => {
2452
2544
  function e(t) {
2453
- ge.deleteUndefinedPropertyOnPlainObjectDeeply(t);
2545
+ fe.deleteUndefinedPropertyOnPlainObjectDeeply(t);
2454
2546
  const r = { center: y.ZERO, zoom: 5 };
2455
- return Bt(r, t || {}, {
2456
- isMergeableObject: Yt
2547
+ return At(r, t || {}, {
2548
+ isMergeableObject: Qt
2457
2549
  });
2458
2550
  }
2459
2551
  i.create = e;
2460
- })(je || (je = {}));
2461
- class qt {
2552
+ })(We || (We = {}));
2553
+ class er {
2462
2554
  constructor(e, t, r, s) {
2463
- d(this, "addEventListener");
2464
- d(this, "removeEventListener");
2555
+ c(this, "addEventListener");
2556
+ c(this, "removeEventListener");
2465
2557
  this.innerOverlay = e, this.coordType = t, this.map = r, this.delegate = s, this.delegate.setTarget(this), this.addEventListener = this.delegate.addEventListener, this.removeEventListener = this.delegate.removeEventListener;
2466
2558
  }
2467
2559
  remove() {
2468
2560
  this.map.removeOverlay(this);
2469
2561
  }
2470
2562
  }
2471
- class et extends qt {
2563
+ class tt extends er {
2472
2564
  constructor(e, t, r) {
2473
- super(e, t, r, new Q(e, r));
2565
+ super(e, t, r, new ee(e, r));
2474
2566
  }
2475
2567
  isVisible() {
2476
2568
  return this.innerOverlay.getVisible();
@@ -2479,7 +2571,7 @@ class et extends qt {
2479
2571
  this.innerOverlay.setVisible(e);
2480
2572
  }
2481
2573
  }
2482
- class Ie extends qt {
2574
+ class Be extends er {
2483
2575
  constructor(e, t, r) {
2484
2576
  super(e, t, r, new se(e, r));
2485
2577
  }
@@ -2498,7 +2590,7 @@ class Ie extends qt {
2498
2590
  return e !== void 0 && (e || this.setVisible(!1)), this;
2499
2591
  }
2500
2592
  }
2501
- class tt extends Ie {
2593
+ class rt extends Be {
2502
2594
  constructor(e, t, r, s) {
2503
2595
  super(e, t, r), this.state = s;
2504
2596
  }
@@ -2524,7 +2616,7 @@ class tt extends Ie {
2524
2616
  this.innerOverlay.setFillOpacity(e);
2525
2617
  }
2526
2618
  }
2527
- class rt extends et {
2619
+ class it extends tt {
2528
2620
  isEditable() {
2529
2621
  return this.innerOverlay.getEditable();
2530
2622
  }
@@ -2547,7 +2639,7 @@ class rt extends et {
2547
2639
  this.innerOverlay.setOptions({ fillOpacity: e });
2548
2640
  }
2549
2641
  }
2550
- class it extends tt {
2642
+ class st extends rt {
2551
2643
  static create(e) {
2552
2644
  const t = this.coordType, r = new BMap.Circle(e.center.toBaidu(t), e.radius, {
2553
2645
  enableClicking: e.clickable,
@@ -2558,7 +2650,7 @@ class it extends tt {
2558
2650
  fillColor: e.fillColor,
2559
2651
  fillOpacity: e.fillOpacity
2560
2652
  });
2561
- return new it(r, t, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
2653
+ return new st(r, t, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
2562
2654
  }
2563
2655
  setCenter(e) {
2564
2656
  this.coordType = this.map.coordType, this.innerOverlay.setCenter(e.toBaidu(this.coordType));
@@ -2573,7 +2665,7 @@ class it extends tt {
2573
2665
  return this.innerOverlay.getRadius();
2574
2666
  }
2575
2667
  }
2576
- class st extends rt {
2668
+ class nt extends it {
2577
2669
  static create(e) {
2578
2670
  const t = this.coordType, r = new google.maps.Circle({
2579
2671
  center: e.center.toGoogle(t),
@@ -2587,13 +2679,13 @@ class st extends rt {
2587
2679
  fillOpacity: e.fillOpacity,
2588
2680
  visible: e.visible
2589
2681
  });
2590
- return new st(r, t, this);
2682
+ return new nt(r, t, this);
2591
2683
  }
2592
2684
  setCenter(e) {
2593
2685
  this.coordType = this.map.coordType, this.innerOverlay.setCenter(e.toGoogle(this.coordType));
2594
2686
  }
2595
2687
  getCenter() {
2596
- return y.fromGoogle(this.innerOverlay.getCenter() ?? ee.LATLNG_ZERO, this.coordType);
2688
+ return y.fromGoogle(this.innerOverlay.getCenter() ?? te.LATLNG_ZERO, this.coordType);
2597
2689
  }
2598
2690
  setRadius(e) {
2599
2691
  this.innerOverlay.setRadius(e);
@@ -2602,36 +2694,36 @@ class st extends rt {
2602
2694
  return this.innerOverlay.getRadius();
2603
2695
  }
2604
2696
  }
2605
- function Kt() {
2697
+ function tr() {
2606
2698
  BMap.OverlayV3 || (BMap.OverlayV3 = BMap.Overlay);
2607
2699
  }
2608
2700
  var U;
2609
2701
  ((i) => {
2610
2702
  i.ZERO = { x: 0, y: 0 };
2611
2703
  })(U || (U = {}));
2612
- let $e;
2613
- function Xr(i, e, t, r, s, n) {
2614
- return $e || ($e = Jr()), new $e(i, e, t, r, s, n);
2704
+ let ze;
2705
+ function ni(i, e, t, r, s, n) {
2706
+ return ze || (ze = oi()), new ze(i, e, t, r, s, n);
2615
2707
  }
2616
- function Jr() {
2617
- Kt();
2708
+ function oi() {
2709
+ tr();
2618
2710
  const i = new BMap.Point(0, 0);
2619
2711
  return class extends BMap.OverlayV3 {
2620
- constructor(r, s = i, n = U.ZERO, a, c = 654, o = "") {
2712
+ constructor(r, s = i, n = U.ZERO, a, d = 654, o = "") {
2621
2713
  super();
2622
2714
  // 类表达式不能有私有成员, 故改成public
2623
- d(this, "container");
2624
- d(this, "border");
2625
- d(this, "inner");
2626
- d(this, "map");
2627
- d(this, "marker");
2715
+ c(this, "container");
2716
+ c(this, "border");
2717
+ c(this, "inner");
2718
+ c(this, "map");
2719
+ c(this, "marker");
2628
2720
  this.content = r, this.position = s, this.offset = n;
2629
2721
  const l = "baidu-info-box-container";
2630
2722
  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";
2631
2723
  const h = document.createElement("img");
2632
2724
  h.className = l + "__close", h.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", h.addEventListener("click", () => {
2633
2725
  this.close(), this.dispatchEvent({ type: "onclickclose" });
2634
- }), this.inner.appendChild(r), this.border.appendChild(this.inner), this.border.appendChild(h), this.container.appendChild(this.border), a && this.setZIndex(a), this.setMaxWidth(c), this.onMarkerPositionChanged = this.onMarkerPositionChanged.bind(this);
2726
+ }), this.inner.appendChild(r), this.border.appendChild(this.inner), this.border.appendChild(h), this.container.appendChild(this.border), a && this.setZIndex(a), this.setMaxWidth(d), this.onMarkerPositionChanged = this.onMarkerPositionChanged.bind(this);
2635
2727
  }
2636
2728
  /** @override */
2637
2729
  initialize(r) {
@@ -2682,7 +2774,7 @@ function Jr() {
2682
2774
  }
2683
2775
  };
2684
2776
  }
2685
- class nt {
2777
+ class ot {
2686
2778
  constructor(e) {
2687
2779
  this.delegate = e, this.delegate.setTarget(this);
2688
2780
  }
@@ -2693,7 +2785,7 @@ class nt {
2693
2785
  this.delegate.removeEventListener(e, t);
2694
2786
  }
2695
2787
  }
2696
- class ot extends nt {
2788
+ class at extends ot {
2697
2789
  constructor(e, t, r) {
2698
2790
  super(new se(e, t)), this.inner = e, this.map = t, this.state = r;
2699
2791
  }
@@ -2703,7 +2795,7 @@ class ot extends nt {
2703
2795
  offset: e.offset && new BMap.Size(e.offset.x, e.offset.y),
2704
2796
  enableAutoPan: !e.disableAutoPan
2705
2797
  });
2706
- return new ot(r, this, { position: t });
2798
+ return new at(r, this, { position: t });
2707
2799
  }
2708
2800
  isOpen() {
2709
2801
  return this.inner.isOpen();
@@ -2722,11 +2814,11 @@ class ot extends nt {
2722
2814
  this.state.position = e, this.inner.isOpen() && this.open();
2723
2815
  }
2724
2816
  }
2725
- class at extends nt {
2817
+ class lt extends ot {
2726
2818
  constructor(t, r) {
2727
- super(new Q(t, r));
2728
- d(this, "eventHub", new Ar());
2729
- d(this, "isOpened", !1);
2819
+ super(new ee(t, r));
2820
+ c(this, "eventHub", new Dr());
2821
+ c(this, "isOpened", !1);
2730
2822
  this.inner = t, this.map = r, t.addListener("closeclick", () => {
2731
2823
  this.isOpened = !1, this.eventHub.hasListener("close") && this.eventHub.notify({ type: "close", target: this });
2732
2824
  }), t.addListener("map_changed", () => {
@@ -2742,7 +2834,7 @@ class at extends nt {
2742
2834
  position: r.toGoogle(this.coordType),
2743
2835
  disableAutoPan: t.disableAutoPan
2744
2836
  });
2745
- return new at(s, this);
2837
+ return new lt(s, this);
2746
2838
  }
2747
2839
  isOpen() {
2748
2840
  return this.isOpened;
@@ -2774,19 +2866,19 @@ class at extends nt {
2774
2866
  this.isOpened && (this.isOpened = !1, this.inner.close(), this.eventHub.notify({ type: "close", target: this }));
2775
2867
  }
2776
2868
  getPosition() {
2777
- return y.fromGoogle(this.inner.getPosition() ?? ee.LATLNG_ZERO, this.map.coordType);
2869
+ return y.fromGoogle(this.inner.getPosition() ?? te.LATLNG_ZERO, this.map.coordType);
2778
2870
  }
2779
2871
  setPosition(t) {
2780
2872
  this.inner.setPosition(t.toGoogle(this.map.coordType));
2781
2873
  }
2782
2874
  }
2783
- class lt extends Ie {
2875
+ class ht extends Be {
2784
2876
  constructor(e, t, r) {
2785
2877
  super(e, t, r), this.baiduMap = r;
2786
2878
  }
2787
2879
  static create(e) {
2788
2880
  var s;
2789
- const t = this.coordType, r = Xr(
2881
+ const t = this.coordType, r = ni(
2790
2882
  e.content,
2791
2883
  (s = e.position) == null ? void 0 : s.toBaidu(t),
2792
2884
  e.offset,
@@ -2794,7 +2886,7 @@ class lt extends Ie {
2794
2886
  e.maxWidth,
2795
2887
  e.borderClass
2796
2888
  );
2797
- return new lt(r, t, this);
2889
+ return new ht(r, t, this);
2798
2890
  }
2799
2891
  open(e) {
2800
2892
  this.innerOverlay.open(this.baiduMap.innerMap, e == null ? void 0 : e.innerOverlay);
@@ -2815,9 +2907,9 @@ class lt extends Ie {
2815
2907
  this.innerOverlay.setZIndex(e);
2816
2908
  }
2817
2909
  }
2818
- class ht extends nt {
2910
+ class ct extends ot {
2819
2911
  constructor(e, t, r) {
2820
- super(new Q(e, r)), this.inner = e, this.coordType = t, this.map = r;
2912
+ super(new ee(e, r)), this.inner = e, this.coordType = t, this.map = r;
2821
2913
  }
2822
2914
  static create(e) {
2823
2915
  var n;
@@ -2829,10 +2921,10 @@ class ht extends nt {
2829
2921
  maxWidth: e.maxWidth
2830
2922
  }), s = e.borderClass;
2831
2923
  return s && r.addListener("domready", () => {
2832
- var c;
2833
- const a = (c = e.content.parentElement) == null ? void 0 : c.parentElement;
2924
+ var d;
2925
+ const a = (d = e.content.parentElement) == null ? void 0 : d.parentElement;
2834
2926
  a && a.className.includes("gm-style-iw-c") && !a.className.includes(s) && (a.className += ` ${s}`);
2835
- }), new ht(r, t, this);
2927
+ }), new ct(r, t, this);
2836
2928
  }
2837
2929
  open(e) {
2838
2930
  this.inner.open(this.map.innerMap, e == null ? void 0 : e.innerOverlay);
@@ -2841,7 +2933,7 @@ class ht extends nt {
2841
2933
  this.inner.close();
2842
2934
  }
2843
2935
  getPosition() {
2844
- return y.fromGoogle(this.inner.getPosition() ?? ee.LATLNG_ZERO, this.coordType);
2936
+ return y.fromGoogle(this.inner.getPosition() ?? te.LATLNG_ZERO, this.coordType);
2845
2937
  }
2846
2938
  setPosition(e) {
2847
2939
  this.coordType = this.map.coordType, this.inner.setPosition(e.toGoogle(this.coordType));
@@ -2860,15 +2952,15 @@ class ht extends nt {
2860
2952
  this.inner.setZIndex(e);
2861
2953
  }
2862
2954
  }
2863
- let ze;
2864
- function Qr(i, e, t, r) {
2865
- return ze || (ze = ei()), new ze(i, e, t, r);
2955
+ let Ne;
2956
+ function ai(i, e, t, r) {
2957
+ return Ne || (Ne = li()), new Ne(i, e, t, r);
2866
2958
  }
2867
- function ei() {
2959
+ function li() {
2868
2960
  return class extends google.maps.OverlayView {
2869
2961
  constructor(t, r, s, n) {
2870
2962
  super();
2871
- d(this, "container");
2963
+ c(this, "container");
2872
2964
  this.position = r, this.offset = s, this.zIndex = n, this.container = document.createElement("div"), this.container.className = "label-container", this.container.style.position = "absolute", n && this.setZIndex(n), this.container.addEventListener("click", () => {
2873
2965
  google.maps.event.trigger(this, "click");
2874
2966
  }), this.setElement(t);
@@ -2882,7 +2974,7 @@ function ei() {
2882
2974
  }
2883
2975
  /** @override */
2884
2976
  onAdd() {
2885
- const t = this.getPanes() ?? x("onAdd回调中一定能够获取panes");
2977
+ const t = this.getPanes() ?? C("onAdd回调中一定能够获取panes");
2886
2978
  this.zIndex ? t.overlayMouseTarget.appendChild(this.container) : t.overlayLayer.appendChild(this.container);
2887
2979
  }
2888
2980
  /** @override */
@@ -2936,12 +3028,12 @@ var oe;
2936
3028
  }
2937
3029
  i.toElement = t;
2938
3030
  })(oe || (oe = {}));
2939
- class ct extends Ie {
3031
+ class dt extends Be {
2940
3032
  constructor(t, r, s, n) {
2941
3033
  super(t, r, s);
2942
- d(this, "icon");
2943
- d(this, "content", void 0);
2944
- d(this, "contentObserver");
3034
+ c(this, "icon");
3035
+ c(this, "content", void 0);
3036
+ c(this, "contentObserver");
2945
3037
  this.setContentInternal(n, !0);
2946
3038
  }
2947
3039
  static create(t) {
@@ -2955,7 +3047,7 @@ class ct extends Ie {
2955
3047
  padding: "0px",
2956
3048
  backgroundColor: "unset"
2957
3049
  });
2958
- const n = new ct(s, r, this, t.content);
3050
+ const n = new dt(s, r, this, t.content);
2959
3051
  return s.__label__ = n, n;
2960
3052
  }
2961
3053
  setContentInternal(t, r = !1) {
@@ -2999,16 +3091,16 @@ class ct extends Ie {
2999
3091
  this.icon && (s -= this.icon.anchor.width, n -= this.icon.anchor.height), t && (s += t.anchor.width, n += t.anchor.height), this.innerOverlay.setOffset(new BMap.Size(s, n)), this.icon = t;
3000
3092
  }
3001
3093
  }
3002
- class dt extends et {
3094
+ class pt extends tt {
3003
3095
  static create(e) {
3004
3096
  var s;
3005
- const t = this.coordType, r = Qr(
3097
+ const t = this.coordType, r = ai(
3006
3098
  oe.toElement(e.content),
3007
3099
  (s = e.position) == null ? void 0 : s.toGoogle(t),
3008
3100
  e.offset,
3009
3101
  e.zIndex
3010
3102
  );
3011
- return new dt(r, t, this);
3103
+ return new pt(r, t, this);
3012
3104
  }
3013
3105
  setZIndex(e) {
3014
3106
  this.innerOverlay.setZIndex(e);
@@ -3053,7 +3145,7 @@ var ae;
3053
3145
  }
3054
3146
  i.toBaidu = t;
3055
3147
  })(ae || (ae = {}));
3056
- class me extends Ie {
3148
+ class ye extends Be {
3057
3149
  constructor(e, t, r, s) {
3058
3150
  super(e, t, r), this.state = s;
3059
3151
  }
@@ -3068,8 +3160,8 @@ class me extends Ie {
3068
3160
  draggingCursor: e.cursor
3069
3161
  }, n = new BMap.Marker(e.position.toBaidu(t), s);
3070
3162
  e.zIndex !== void 0 && n.setZIndex(e.zIndex);
3071
- const a = e.clickable === void 0 ? !0 : e.clickable, c = !!e.draggable;
3072
- return new me(n, t, this, { clickable: a, draggable: c, zIndex: e.zIndex }).visibleOptionInternal(e.visible);
3163
+ const a = e.clickable === void 0 ? !0 : e.clickable, d = !!e.draggable;
3164
+ return new ye(n, t, this, { clickable: a, draggable: d, zIndex: e.zIndex }).visibleOptionInternal(e.visible);
3073
3165
  }
3074
3166
  getPosition() {
3075
3167
  return y.fromBaidu(this.innerOverlay.getPosition(), this.coordType);
@@ -3120,13 +3212,13 @@ class me extends Ie {
3120
3212
  return (e = this.innerOverlay.getLabel()) == null ? void 0 : e.__label__;
3121
3213
  }
3122
3214
  }
3123
- class pt extends et {
3215
+ class ut extends tt {
3124
3216
  constructor() {
3125
3217
  super(...arguments);
3126
- d(this, "label");
3127
- d(this, "labelPositionListener");
3128
- d(this, "labelVisibleListener");
3129
- d(this, "labelMapChangedListener");
3218
+ c(this, "label");
3219
+ c(this, "labelPositionListener");
3220
+ c(this, "labelVisibleListener");
3221
+ c(this, "labelMapChangedListener");
3130
3222
  }
3131
3223
  static create(t) {
3132
3224
  const r = this.coordType, s = t.icon, n = {
@@ -3143,7 +3235,7 @@ class pt extends et {
3143
3235
  // InfoWindow相对marker的position的偏移量, 若不指定, 则偏移到marker的icon的上部中央
3144
3236
  anchorPoint: new google.maps.Point(0, 0)
3145
3237
  };
3146
- return new pt(new google.maps.Marker(n), r, this);
3238
+ return new ut(new google.maps.Marker(n), r, this);
3147
3239
  }
3148
3240
  getPosition() {
3149
3241
  return y.fromGoogle(this.innerOverlay.getPosition(), this.coordType);
@@ -3196,7 +3288,7 @@ class pt extends et {
3196
3288
  this.label = void 0, this.labelPositionListener = void 0, this.labelVisibleListener = void 0, this.labelMapChangedListener = void 0;
3197
3289
  }
3198
3290
  }
3199
- class ut extends tt {
3291
+ class gt extends rt {
3200
3292
  static create(e) {
3201
3293
  const t = this.coordType;
3202
3294
  e.paths.length > 1 && console.warn("baidu不支持多path, 只会显示paths[0]");
@@ -3209,7 +3301,7 @@ class ut extends tt {
3209
3301
  fillColor: e.fillColor,
3210
3302
  fillOpacity: e.fillOpacity
3211
3303
  });
3212
- return new ut(s, t, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
3304
+ return new gt(s, t, this, { editable: !!e.editable }).visibleOptionInternal(e.visible);
3213
3305
  }
3214
3306
  getPaths() {
3215
3307
  return [this.innerOverlay.getPath().map((e) => y.fromBaidu(e, this.coordType))];
@@ -3218,7 +3310,7 @@ class ut extends tt {
3218
3310
  e.length > 1 && console.warn("baidu不支持多path, 只会显示paths[0]"), this.coordType = this.map.coordType, this.innerOverlay.setPath((e[0] || []).map((t) => t.toBaidu(this.coordType)));
3219
3311
  }
3220
3312
  }
3221
- class gt extends rt {
3313
+ class mt extends it {
3222
3314
  static create(e) {
3223
3315
  const t = this.coordType, r = new google.maps.Polygon({
3224
3316
  paths: e.paths.map((s) => s.map((n) => n.toGoogle(t))),
@@ -3231,7 +3323,7 @@ class gt extends rt {
3231
3323
  fillOpacity: e.fillOpacity,
3232
3324
  visible: e.visible
3233
3325
  });
3234
- return new gt(r, t, this);
3326
+ return new mt(r, t, this);
3235
3327
  }
3236
3328
  getPaths() {
3237
3329
  const e = this.innerOverlay.getPaths(), t = [];
@@ -3246,7 +3338,7 @@ class gt extends rt {
3246
3338
  this.coordType = this.map.coordType, this.innerOverlay.setPaths(e.map((t) => t.map((r) => r.toGoogle(this.coordType))));
3247
3339
  }
3248
3340
  }
3249
- class mt extends tt {
3341
+ class ft extends rt {
3250
3342
  static create(e) {
3251
3343
  const t = this.coordType, r = new BMap.Polyline(e.path.map((s) => s.toBaidu(t)), {
3252
3344
  enableClicking: e.clickable,
@@ -3255,7 +3347,7 @@ class mt extends tt {
3255
3347
  strokeOpacity: e.strokeOpacity,
3256
3348
  strokeWeight: e.strokeWeight
3257
3349
  });
3258
- return new mt(r, t, this, { editable: e.editable === !0 }).visibleOptionInternal(e.visible);
3350
+ return new ft(r, t, this, { editable: e.editable === !0 }).visibleOptionInternal(e.visible);
3259
3351
  }
3260
3352
  getPath() {
3261
3353
  return this.innerOverlay.getPath().map((e) => y.fromBaidu(e, this.coordType));
@@ -3264,7 +3356,7 @@ class mt extends tt {
3264
3356
  this.coordType = this.map.coordType, this.innerOverlay.setPath(e.map((t) => t.toBaidu(this.coordType)));
3265
3357
  }
3266
3358
  }
3267
- class ft extends rt {
3359
+ class yt extends it {
3268
3360
  static create(e) {
3269
3361
  const t = this.coordType, r = new google.maps.Polyline({
3270
3362
  path: e.path.map((s) => s.toGoogle(t)),
@@ -3275,7 +3367,7 @@ class ft extends rt {
3275
3367
  strokeWeight: e.strokeWeight,
3276
3368
  visible: e.visible
3277
3369
  });
3278
- return new ft(r, t, this);
3370
+ return new yt(r, t, this);
3279
3371
  }
3280
3372
  getPath() {
3281
3373
  const e = [];
@@ -3287,30 +3379,31 @@ class ft extends rt {
3287
3379
  this.coordType = this.map.coordType, this.innerOverlay.setPath(e.map((t) => t.toGoogle(this.coordType)));
3288
3380
  }
3289
3381
  }
3290
- class ti extends Qe {
3382
+ const X = 1;
3383
+ class hi extends et {
3291
3384
  constructor(t, r) {
3292
3385
  var s;
3293
3386
  super(t);
3294
- d(this, "buildInMapTypeId2BIMT");
3295
- d(this, "baiduMapType2BIMT");
3296
- d(this, "map");
3297
- d(this, "createLabel", ct.create);
3298
- d(this, "createCircle", it.create);
3299
- d(this, "createPolygon", ut.create);
3300
- d(this, "createPolyline", mt.create);
3301
- d(this, "createInfoWindow", ot.create);
3302
- d(this, "createInfoBox", lt.create);
3303
- d(this, "createMarker", me.create);
3304
- d(this, "createMapTypeControl", Ue.create);
3305
- d(this, "createZoomControl", Ke.create);
3306
- d(this, "createScaleControl", Ye.create);
3307
- this.buildInMapTypeId2BIMT = I.BUILD_IN_MAP_TYPES.getValueMap(L.prototype.getId), this.baiduMapType2BIMT = I.BUILD_IN_MAP_TYPES.getValueMap(L.prototype.asBaiduMapType), this.map = new BMap.Map(t, {
3308
- minZoom: r.minZoom,
3309
- maxZoom: r.maxZoom,
3387
+ c(this, "buildInMapTypeId2BIMT");
3388
+ c(this, "baiduMapType2BIMT");
3389
+ c(this, "map");
3390
+ c(this, "createLabel", dt.create);
3391
+ c(this, "createCircle", st.create);
3392
+ c(this, "createPolygon", gt.create);
3393
+ c(this, "createPolyline", ft.create);
3394
+ c(this, "createInfoWindow", at.create);
3395
+ c(this, "createInfoBox", ht.create);
3396
+ c(this, "createMarker", ye.create);
3397
+ c(this, "createMapTypeControl", Ye.create);
3398
+ c(this, "createZoomControl", Xe.create);
3399
+ c(this, "createScaleControl", qe.create);
3400
+ this.buildInMapTypeId2BIMT = I.BUILD_IN_MAP_TYPES.getValueMap(k.prototype.getId), this.baiduMapType2BIMT = I.BUILD_IN_MAP_TYPES.getValueMap(k.prototype.asBaiduMapType), this.map = new BMap.Map(t, {
3401
+ minZoom: r.minZoom && r.minZoom + X,
3402
+ maxZoom: r.maxZoom && r.maxZoom + X,
3310
3403
  mapType: r.buildInMapTypeId && ((s = this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId)) == null ? void 0 : s.asBaiduMapType()),
3311
3404
  enableMapClick: !1
3312
3405
  // 关闭底图点击功能
3313
- }), this.map.centerAndZoom(r.center.toBaidu(this.coordType), r.zoom), this.setGestureHandling(r.gestureHandling), r.infoWindowMode === "multi" && console.warn("baidu不支持多个InfoWindow, 可能会出现未知问题"), r.mapStyle && this.map.setMapStyleV2(r.mapStyle.toBaidu()), this.setEventTargetDelegate(new se(this.map, this)), this.map.addEventListener("addoverlay", (n) => {
3406
+ }), this.map.centerAndZoom(r.center.toBaidu(this.coordType), r.zoom + X), this.setGestureHandling(r.gestureHandling), r.infoWindowMode === "multi" && console.warn("baidu不支持多个InfoWindow, 可能会出现未知问题"), r.mapStyle && this.map.setMapStyleV2(r.mapStyle.toBaidu()), this.setEventTargetDelegate(new se(this.map, this)), this.map.addEventListener("addoverlay", (n) => {
3314
3407
  const a = n.target.__info_box__;
3315
3408
  a && (console.debug("add:info-box", a), this.map.addOverlay(a));
3316
3409
  }), this.map.addEventListener("removeoverlay", (n) => {
@@ -3321,15 +3414,15 @@ class ti extends Qe {
3321
3414
  setDefaultCursor(t) {
3322
3415
  this.innerMap.setDefaultCursor(t);
3323
3416
  }
3324
- setGestureHandling(t = Z.auto) {
3325
- switch (t === Z.auto && (t = this.element.parentElement && Ze.isScrollable(this.element.parentElement) ? Z.cooperative : Z.greedy), t) {
3326
- case Z.cooperative:
3417
+ setGestureHandling(t = D.auto) {
3418
+ switch (t === D.auto && (t = this.element.parentElement && Ge.isScrollable(this.element.parentElement) ? D.cooperative : D.greedy), t) {
3419
+ case D.cooperative:
3327
3420
  this.map.disableScrollWheelZoom(), this.map.enableDragging(), this.map.enableDoubleClickZoom();
3328
3421
  break;
3329
- case Z.greedy:
3422
+ case D.greedy:
3330
3423
  this.map.enableScrollWheelZoom(), this.map.enableDragging(), this.map.enableDoubleClickZoom();
3331
3424
  break;
3332
- case Z.none:
3425
+ case D.none:
3333
3426
  this.map.disableDragging(), this.map.disableScrollWheelZoom(), this.map.disableDoubleClickZoom();
3334
3427
  break;
3335
3428
  }
@@ -3372,11 +3465,17 @@ class ti extends Qe {
3372
3465
  setCenter(t) {
3373
3466
  this.map.setCenter(t.toBaidu(this.coordType));
3374
3467
  }
3468
+ getZoom() {
3469
+ return super.getZoom() - X;
3470
+ }
3471
+ setZoom(t) {
3472
+ return super.setZoom(t + X);
3473
+ }
3375
3474
  setMinZoom(t) {
3376
- this.map.setMinZoom(t);
3475
+ this.map.setMinZoom(t + X);
3377
3476
  }
3378
3477
  setMaxZoom(t) {
3379
- this.map.setMaxZoom(t);
3478
+ this.map.setMaxZoom(t + X);
3380
3479
  }
3381
3480
  setMapStyle(t) {
3382
3481
  this.map.setMapStyleV2(t.toBaidu());
@@ -3384,14 +3483,14 @@ class ti extends Qe {
3384
3483
  setBuildInMapTypeId(t) {
3385
3484
  var s;
3386
3485
  const r = (s = this.buildInMapTypeId2BIMT.get(t)) == null ? void 0 : s.asBaiduMapType();
3387
- this.map.setMapType(r ?? x("理论上来说不可能为空"));
3486
+ this.map.setMapType(r ?? C("理论上来说不可能为空"));
3388
3487
  }
3389
3488
  setMapType(t) {
3390
3489
  this.map.setMapType(t.asBaiduMapType());
3391
3490
  }
3392
3491
  getMapType() {
3393
3492
  const t = this.map.getMapType(), r = this.baiduMapType2BIMT.get(t);
3394
- return r || (t.__baidu_map_type__ ?? x("实现asBaiduMapType()时, 忘了给实例设置__baidu_map_type__?"));
3493
+ return r || (t.__baidu_map_type__ ?? C("实现asBaiduMapType()时, 忘了给实例设置__baidu_map_type__?"));
3395
3494
  }
3396
3495
  addLayer(t) {
3397
3496
  this.map.addTileLayer(t.asBaiduLayer());
@@ -3431,8 +3530,8 @@ class ti extends Qe {
3431
3530
  const r = class extends BMap.Control {
3432
3531
  constructor() {
3433
3532
  super(...arguments);
3434
- d(this, "defaultAnchor", B.getBaidu().toValue(t.position));
3435
- d(this, "defaultOffset", new BMap.Size(0, 0));
3533
+ c(this, "defaultAnchor", B.getBaidu().toValue(t.position));
3534
+ c(this, "defaultOffset", new BMap.Size(0, 0));
3436
3535
  }
3437
3536
  initialize(n) {
3438
3537
  const a = t.onCreateElement();
@@ -3443,36 +3542,39 @@ class ti extends Qe {
3443
3542
  }
3444
3543
  }
3445
3544
  removeCustomControl(t) {
3446
- t.inner && (ie(t.inner instanceof BMap.Control, `control.inner(${t.inner})需要是BMap.Control`), this.map.removeControl(t.inner));
3545
+ t.inner && (pe(t.inner instanceof BMap.Control, `control.inner(${t.inner})需要是BMap.Control`), this.map.removeControl(t.inner));
3447
3546
  }
3448
3547
  createMarkerClusterer(t) {
3449
- return new Hr(this, t);
3548
+ return new Kr(this, t);
3450
3549
  }
3451
3550
  createAutocomplete(t) {
3452
- return new Gr(this, t);
3551
+ return new Hr(this, t);
3552
+ }
3553
+ createSearchBox(t) {
3554
+ return new ti(this, t);
3453
3555
  }
3454
3556
  createPlaceService(t) {
3455
- return new Yr(this, t);
3557
+ return new Qr(this, t);
3456
3558
  }
3457
3559
  }
3458
- class ri extends Qe {
3560
+ class ci extends et {
3459
3561
  constructor(t, r) {
3460
3562
  var n;
3461
3563
  super(t);
3462
- d(this, "buildInMapTypeId2BIMT");
3463
- d(this, "googleMapTypeId2BIMT");
3464
- d(this, "map");
3465
- d(this, "createLabel", dt.create);
3466
- d(this, "createCircle", st.create);
3467
- d(this, "createPolygon", gt.create);
3468
- d(this, "createPolyline", ft.create);
3469
- d(this, "createInfoWindow", at.create);
3470
- d(this, "createInfoBox", ht.create);
3471
- d(this, "createMarker", pt.create);
3472
- d(this, "createMapTypeControl", be.create);
3473
- d(this, "createZoomControl", Xe.create);
3474
- d(this, "createScaleControl", qe.create);
3475
- this.mapOptions = r, this.buildInMapTypeId2BIMT = I.BUILD_IN_MAP_TYPES.getValueMap(L.prototype.getId), this.googleMapTypeId2BIMT = I.BUILD_IN_MAP_TYPES.getValueMap(L.prototype.getGoogleMapTypeId);
3564
+ c(this, "buildInMapTypeId2BIMT");
3565
+ c(this, "googleMapTypeId2BIMT");
3566
+ c(this, "map");
3567
+ c(this, "createLabel", pt.create);
3568
+ c(this, "createCircle", nt.create);
3569
+ c(this, "createPolygon", mt.create);
3570
+ c(this, "createPolyline", yt.create);
3571
+ c(this, "createInfoWindow", lt.create);
3572
+ c(this, "createInfoBox", ct.create);
3573
+ c(this, "createMarker", ut.create);
3574
+ c(this, "createMapTypeControl", we.create);
3575
+ c(this, "createZoomControl", Je.create);
3576
+ c(this, "createScaleControl", Ke.create);
3577
+ this.mapOptions = r, this.buildInMapTypeId2BIMT = I.BUILD_IN_MAP_TYPES.getValueMap(k.prototype.getId), this.googleMapTypeId2BIMT = I.BUILD_IN_MAP_TYPES.getValueMap(k.prototype.getGoogleMapTypeId);
3476
3578
  const s = r.buildInMapTypeId && this.buildInMapTypeId2BIMT.get(r.buildInMapTypeId);
3477
3579
  this.map = new google.maps.Map(t, {
3478
3580
  center: r.center.toGoogle((s ?? I.NORMAL).getGoogleCoordType()),
@@ -3484,7 +3586,7 @@ class ri extends Qe {
3484
3586
  maxZoom: r.maxZoom,
3485
3587
  styles: (n = r.mapStyle) == null ? void 0 : n.toGoogle(),
3486
3588
  mapTypeId: s == null ? void 0 : s.getGoogleMapTypeId()
3487
- }), this.setEventTargetDelegate(new Q(this.map, this));
3589
+ }), this.setEventTargetDelegate(new ee(this.map, this));
3488
3590
  }
3489
3591
  setDefaultCursor(t) {
3490
3592
  this.innerMap.setOptions({ draggableCursor: t });
@@ -3504,20 +3606,20 @@ class ri extends Qe {
3504
3606
  const r = this.innerMap.getProjection(), s = this.innerMap.getBounds();
3505
3607
  if (r == null || s == null)
3506
3608
  return y.ZERO;
3507
- const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), c = this.innerMap.getZoom();
3508
- if (n == null || a == null || c == null)
3609
+ const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), d = this.innerMap.getZoom();
3610
+ if (n == null || a == null || d == null)
3509
3611
  return y.ZERO;
3510
- const o = Math.pow(2, c), l = new google.maps.Point(t.x / o + n.x, t.y / o + a.y);
3511
- return y.fromGoogle(r.fromPointToLatLng(l) ?? ee.LATLNG_ZERO, this.coordType);
3612
+ const o = Math.pow(2, d), l = new google.maps.Point(t.x / o + n.x, t.y / o + a.y);
3613
+ return y.fromGoogle(r.fromPointToLatLng(l) ?? te.LATLNG_ZERO, this.coordType);
3512
3614
  }
3513
3615
  fromLatLngToContainerPoint(t) {
3514
3616
  const r = this.innerMap.getProjection(), s = this.innerMap.getBounds();
3515
3617
  if (r == null || s == null)
3516
3618
  return U.ZERO;
3517
- const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), c = this.innerMap.getZoom();
3518
- if (n == null || a == null || c == null)
3619
+ const n = r.fromLatLngToPoint(s.getSouthWest()), a = r.fromLatLngToPoint(s.getNorthEast()), d = this.innerMap.getZoom();
3620
+ if (n == null || a == null || d == null)
3519
3621
  return U.ZERO;
3520
- const o = Math.pow(2, c), l = r.fromLatLngToPoint(t.toGoogle(this.coordType));
3622
+ const o = Math.pow(2, d), l = r.fromLatLngToPoint(t.toGoogle(this.coordType));
3521
3623
  return l == null ? U.ZERO : { x: (l.x - n.x) * o, y: (l.y - a.y) * o };
3522
3624
  }
3523
3625
  setDraggable(t) {
@@ -3527,7 +3629,7 @@ class ri extends Qe {
3527
3629
  this.map.setOptions({ disableDoubleClickZoom: t });
3528
3630
  }
3529
3631
  getCenter() {
3530
- return y.fromGoogle(this.map.getCenter() ?? ee.LATLNG_ZERO, this.coordType);
3632
+ return y.fromGoogle(this.map.getCenter() ?? te.LATLNG_ZERO, this.coordType);
3531
3633
  }
3532
3634
  setCenter(t) {
3533
3635
  this.map.setCenter(t.toGoogle(this.coordType));
@@ -3544,20 +3646,20 @@ class ri extends Qe {
3544
3646
  setBuildInMapTypeId(t) {
3545
3647
  var s;
3546
3648
  const r = (s = this.buildInMapTypeId2BIMT.get(t)) == null ? void 0 : s.getGoogleMapTypeId();
3547
- this.map.setMapTypeId(r ?? x("理论上来说不可能为空"));
3649
+ this.map.setMapTypeId(r ?? C("理论上来说不可能为空"));
3548
3650
  }
3549
3651
  setMapType(t) {
3550
- t instanceof L ? this.map.setMapTypeId(t.getGoogleMapTypeId()) : (this.map.mapTypes.set(t.id, t.asGoogleMapType()), this.map.setMapTypeId(t.id));
3652
+ t instanceof k ? this.map.setMapTypeId(t.getGoogleMapTypeId()) : (this.map.mapTypes.set(t.id, t.asGoogleMapType()), this.map.setMapTypeId(t.id));
3551
3653
  }
3552
3654
  getMapType() {
3553
3655
  const t = this.map.getMapTypeId() ?? google.maps.MapTypeId.ROADMAP, r = this.googleMapTypeId2BIMT.get(t);
3554
- return r || (this.map.mapTypes.get(t).__google_map_type__ ?? x(`实现${t}的asGoogleMapType()时, 忘了给实例设置__google_map_type__?`));
3656
+ return r || (this.map.mapTypes.get(t).__google_map_type__ ?? C(`实现${t}的asGoogleMapType()时, 忘了给实例设置__google_map_type__?`));
3555
3657
  }
3556
3658
  addOverlayMapType(t) {
3557
3659
  this.map.overlayMapTypes.push(t.asGoogleMapType());
3558
3660
  }
3559
3661
  removeOverlayMapType(t) {
3560
- xe.remove(this.map.overlayMapTypes, t.asGoogleMapType());
3662
+ Ee.remove(this.map.overlayMapTypes, t.asGoogleMapType());
3561
3663
  }
3562
3664
  addLayer(t) {
3563
3665
  t.asGoogleLayer().setMap(this.map);
@@ -3596,28 +3698,31 @@ class ri extends Qe {
3596
3698
  removeCustomControl(t) {
3597
3699
  if (t.inner) {
3598
3700
  const r = this.map.controls[B.getGoogle().toValue(t.position)];
3599
- xe.remove(r, t.inner);
3701
+ Ee.remove(r, t.inner);
3600
3702
  }
3601
3703
  }
3602
3704
  createMarkerClusterer(t) {
3603
- return new Fr(this, t);
3705
+ return new Xr(this, t);
3604
3706
  }
3605
3707
  createAutocomplete(t) {
3606
- return new Zr(this, t);
3708
+ return new Vr(this, t);
3709
+ }
3710
+ createSearchBox(t) {
3711
+ return new ei(this, t);
3607
3712
  }
3608
3713
  createPlaceService(t) {
3609
- return new Ur(this, t);
3714
+ return new Jr(this, t);
3610
3715
  }
3611
3716
  }
3612
- class ii extends Qe {
3717
+ class di extends et {
3613
3718
  constructor(t, r) {
3614
3719
  var a;
3615
3720
  super(t);
3616
- d(this, "map");
3617
- d(this, "defaultLayers");
3721
+ c(this, "map");
3722
+ c(this, "defaultLayers");
3618
3723
  this.mapOptions = r;
3619
- const s = At().here;
3620
- we.includes(s.version) || x(`不支持${s.version}, HereMap当前只支持如下版本: ${we}`);
3724
+ const s = zt().here;
3725
+ Ce.includes(s.version) || C(`不支持${s.version}, HereMap当前只支持如下版本: ${Ce}`);
3621
3726
  const n = new H.service.Platform({
3622
3727
  app_id: s.key.split(",")[0],
3623
3728
  app_code: s.key.split(",")[1]
@@ -3634,7 +3739,7 @@ class ii extends Qe {
3634
3739
  return this.map;
3635
3740
  }
3636
3741
  get coordType() {
3637
- return J.wgs84;
3742
+ return Q.wgs84;
3638
3743
  }
3639
3744
  getCenter() {
3640
3745
  return y.fromHere(this.map.getCenter(), this.coordType);
@@ -3748,6 +3853,9 @@ class ii extends Qe {
3748
3853
  createAutocomplete(t) {
3749
3854
  throw new Error("Method not implemented.");
3750
3855
  }
3856
+ createSearchBox(t) {
3857
+ throw new Error("Method not implemented.");
3858
+ }
3751
3859
  createPlaceService(t) {
3752
3860
  throw new Error("Method not implemented.");
3753
3861
  }
@@ -3755,31 +3863,31 @@ class ii extends Qe {
3755
3863
  var $ = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))($ || {}), Ve;
3756
3864
  ((i) => {
3757
3865
  function e(t, r, s) {
3758
- const n = je.create(s);
3866
+ const n = We.create(s);
3759
3867
  switch (t) {
3760
3868
  case "google":
3761
- return new ri(r, n);
3869
+ return new ci(r, n);
3762
3870
  case "baidu":
3763
- return new ti(r, n);
3871
+ return new hi(r, n);
3764
3872
  case "here":
3765
- return new ii(r, n);
3873
+ return new di(r, n);
3766
3874
  }
3767
3875
  }
3768
3876
  i.createMap = e;
3769
3877
  })(Ve || (Ve = {}));
3770
- function si({ type: i, config: e }) {
3771
- const t = window, r = ni(i);
3878
+ function pi({ type: i, config: e }) {
3879
+ const t = window, r = ui(i);
3772
3880
  if (t[r])
3773
3881
  return Promise.resolve();
3774
- switch (i !== $.here && !e.key && x(`请先配置${i}地图的key`), i) {
3882
+ switch (i !== $.here && !e.key && C(`请先配置${i}地图的key`), i) {
3775
3883
  case $.google:
3776
- return {}.VITE_FALSE ? (Rr({
3884
+ return {}.VITE_FALSE ? (Wr({
3777
3885
  key: e.key,
3778
3886
  v: "3.52"
3779
3887
  // v: config.version,
3780
- }), google.maps.importLibrary("core")) : xt(`https://maps.googleapis.com/maps/api/js?key=${e.key}&language=${e.language}&v=${e.version}&libraries=${e.libraries.join(",")}`);
3888
+ }), google.maps.importLibrary("core")) : Lt(`https://maps.googleapis.com/maps/api/js?key=${e.key}&language=${e.language}&v=${e.version}&libraries=${e.libraries.join(",")}`);
3781
3889
  case $.baidu:
3782
- return xt(`https://api.map.baidu.com/api?v=${e.version}&ak=${e.key}`);
3890
+ return Lt(`https://api.map.baidu.com/api?v=${e.version}&ak=${e.key}`);
3783
3891
  case $.here:
3784
3892
  return ce(he("core", e.version)).then(() => Promise.all([
3785
3893
  // 其他大多数模块都可以同时载入
@@ -3789,13 +3897,13 @@ function si({ type: i, config: e }) {
3789
3897
  ce(he("ui", e.version))
3790
3898
  ])).catch((s) => (delete t[r], Promise.reject(s)));
3791
3899
  default:
3792
- Re(i);
3900
+ De(i);
3793
3901
  }
3794
3902
  }
3795
- function he(i, e = we[0]) {
3903
+ function he(i, e = Ce[0]) {
3796
3904
  return `https://js.api.here.com/v3/${e}/mapsjs-${i}.js`;
3797
3905
  }
3798
- function ni(i) {
3906
+ function ui(i) {
3799
3907
  switch (i) {
3800
3908
  case $.google:
3801
3909
  return "google";
@@ -3805,10 +3913,10 @@ function ni(i) {
3805
3913
  return "H";
3806
3914
  }
3807
3915
  }
3808
- let oi = 0;
3809
- function xt(i, e = "callback") {
3916
+ let gi = 0;
3917
+ function Lt(i, e = "callback") {
3810
3918
  return new Promise((t, r) => {
3811
- const s = `__callback${oi++}`;
3919
+ const s = `__callback${gi++}`;
3812
3920
  window[s] = t;
3813
3921
  const n = document.createElement("script");
3814
3922
  n.src = `${i}&${e}=${s}`, n.onerror = r, document.body.appendChild(n);
@@ -3834,11 +3942,11 @@ var Pe;
3834
3942
  }
3835
3943
  i.trimIndent = t;
3836
3944
  function r(s) {
3837
- return s.replace(/([^A-Z]?)([A-Z])/g, (n, a, c) => a ? `${a}-${c.toLowerCase()}` : c.toLowerCase());
3945
+ return s.replace(/([^A-Z]?)([A-Z])/g, (n, a, d) => a ? `${a}-${d.toLowerCase()}` : d.toLowerCase());
3838
3946
  }
3839
3947
  i.pascal2kebab = r;
3840
3948
  })(Pe || (Pe = {}));
3841
- const ai = {
3949
+ const mi = {
3842
3950
  /** @see https://nodejs.org/docs/v10.3.0/api/path.html#path_path_basename_path_ext */
3843
3951
  basename(i, e) {
3844
3952
  const t = i.endsWith("/") ? i.slice(0, -1) : i, r = t.lastIndexOf("/"), s = r >= 0 ? t.substring(r + 1) : t;
@@ -3852,7 +3960,7 @@ function G(i, e) {
3852
3960
  validator: (t) => Object.values(i).includes(t)
3853
3961
  };
3854
3962
  }
3855
- function li(i, e) {
3963
+ function fi(i, e) {
3856
3964
  return {
3857
3965
  type: String,
3858
3966
  default: e,
@@ -3871,7 +3979,7 @@ function f(i, e) {
3871
3979
  default: e
3872
3980
  };
3873
3981
  }
3874
- function Ji(i) {
3982
+ function os(i) {
3875
3983
  const e = {};
3876
3984
  return Object.entries(i).forEach(([t, r]) => {
3877
3985
  const s = `__${t}`;
@@ -3891,34 +3999,34 @@ function Ji(i) {
3891
3999
  const de = {
3892
4000
  enumerable: !0,
3893
4001
  configurable: !0,
3894
- get: Oe,
3895
- set: Oe
4002
+ get: ge,
4003
+ set: ge
3896
4004
  };
3897
- function hi(i) {
4005
+ function yi(i) {
3898
4006
  return Object.keys(i).forEach((e) => {
3899
4007
  const t = i[e];
3900
4008
  let r = !1;
3901
- typeof t == "function" ? (de.get = t, de.set = Oe, r = !0) : typeof t == "object" && typeof t.get == "function" && (de.get = t.get, de.set = t.set, r = !0), r && (i[e] = Object.defineProperty(i, e, de));
4009
+ typeof t == "function" ? (de.get = t, de.set = ge, r = !0) : typeof t == "object" && typeof t.get == "function" && (de.get = t.get, de.set = t.set, r = !0), r && (i[e] = Object.defineProperty(i, e, de));
3902
4010
  }), i;
3903
4011
  }
3904
- function Qi(i) {
3905
- return hi(i);
4012
+ function as(i) {
4013
+ return yi(i);
3906
4014
  }
3907
- function Xt() {
3908
- return Ne();
4015
+ function rr() {
4016
+ return Re();
3909
4017
  }
3910
- function Me(i, e) {
4018
+ function Te(i, e) {
3911
4019
  const t = i.$options[e];
3912
4020
  if (t)
3913
4021
  for (const r of t)
3914
4022
  r.call(i);
3915
4023
  }
3916
- function es(i, e) {
4024
+ function ls(i, e) {
3917
4025
  for (const t of i)
3918
4026
  if (t.$options.name === e.name)
3919
4027
  return t;
3920
4028
  }
3921
- function ts(i, e) {
4029
+ function hs(i, e) {
3922
4030
  if (!i.default)
3923
4031
  return;
3924
4032
  const t = i.default();
@@ -3926,7 +4034,7 @@ function ts(i, e) {
3926
4034
  if ((r == null ? void 0 : r.type).name === e.name)
3927
4035
  return r;
3928
4036
  }
3929
- function ci(i, e) {
4037
+ function vi(i, e) {
3930
4038
  const t = {}, r = {}, s = {};
3931
4039
  return Object.keys(i).forEach((n) => {
3932
4040
  n.startsWith("on") ? t[Pe.pascal2kebab(n.substring(2))] = i[n] : r[n] = i[n];
@@ -3942,12 +4050,12 @@ function ci(i, e) {
3942
4050
  };
3943
4051
  }
3944
4052
  function q(i, e) {
3945
- return Pt(() => ci(i, e));
4053
+ return kt(() => vi(i, e));
3946
4054
  }
3947
4055
  function R() {
3948
4056
  return Function;
3949
4057
  }
3950
- const rs = {
4058
+ const cs = {
3951
4059
  /**
3952
4060
  * @event 一般来说传{@link Tg.Event}对象, 但传其他对象也不会报错
3953
4061
  */
@@ -3958,27 +4066,27 @@ const rs = {
3958
4066
  eventLogLess(i) {
3959
4067
  ((i && i.type) !== this.$_prev_type || Date.now() - (this.$_prev_time ?? 0) > 1e3) && this.eventLog(i);
3960
4068
  }
3961
- }, yt = "$map", fe = "onCreate", ye = "onDestroy", P = C({
3962
- inject: [yt],
4069
+ }, vt = "$map", ve = "onCreate", _e = "onDestroy", L = x({
4070
+ inject: [vt],
3963
4071
  mounted() {
3964
- Me(this, fe);
4072
+ Te(this, ve);
3965
4073
  },
3966
4074
  beforeUnmount() {
3967
- Me(this, ye);
4075
+ Te(this, _e);
3968
4076
  },
3969
4077
  methods: {
3970
4078
  recreate() {
3971
- Me(this, ye), Me(this, fe);
4079
+ Te(this, _e), Te(this, ve);
3972
4080
  }
3973
4081
  },
3974
4082
  render() {
3975
- return Xt();
4083
+ return rr();
3976
4084
  }
3977
- }), di = C({
4085
+ }), _i = x({
3978
4086
  name: "tg-map",
3979
4087
  provide() {
3980
4088
  return {
3981
- [yt]: Pt(() => this.map)
4089
+ [vt]: kt(() => this.map)
3982
4090
  };
3983
4091
  },
3984
4092
  inheritAttrs: !1,
@@ -4011,12 +4119,12 @@ const rs = {
4011
4119
  */
4012
4120
  lastCenter: f(y),
4013
4121
  zoom: N(Number),
4014
- infoWindowMode: li(Kr),
4015
- gestureHandling: G(Z),
4122
+ infoWindowMode: fi(si),
4123
+ gestureHandling: G(D),
4016
4124
  minZoom: f(Number),
4017
4125
  maxZoom: f(Number),
4018
4126
  mapStyle: f(Object),
4019
- mapTypeId: G(Nt),
4127
+ mapTypeId: G(Gt),
4020
4128
  /** 地图类型对象, 优先级比mapTypeId高 */
4021
4129
  mapType: f(Object),
4022
4130
  hideLogo: f(Boolean),
@@ -4039,13 +4147,13 @@ const rs = {
4039
4147
  },
4040
4148
  data() {
4041
4149
  return {
4042
- map: Ge(),
4150
+ map: Ze(),
4043
4151
  isDestroyed: !1
4044
4152
  };
4045
4153
  },
4046
4154
  computed: {
4047
4155
  propsJson() {
4048
- return ge.toJsonSafely(this.$props);
4156
+ return fe.toJsonSafely(this.$props);
4049
4157
  }
4050
4158
  },
4051
4159
  watch: {
@@ -4084,7 +4192,7 @@ const rs = {
4084
4192
  async mounted() {
4085
4193
  const i = this.type;
4086
4194
  try {
4087
- await si({ type: i, config: At()[i] });
4195
+ await pi({ type: i, config: zt()[i] });
4088
4196
  } catch (s) {
4089
4197
  this.$emit("error", s);
4090
4198
  return;
@@ -4108,7 +4216,7 @@ const rs = {
4108
4216
  buildInMapTypeId: this.mapTypeId
4109
4217
  }
4110
4218
  );
4111
- if (this.map = sr(e), this.mapType && e.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), Y(
4219
+ if (this.map = hr(e), this.mapType && e.setMapType(this.mapType), "ready" in this.attrs.listeners && console.error("地图载入完成的事件已经从ready改为了load, 请手动修改"), Y(
4112
4220
  this.attrs.listeners,
4113
4221
  e,
4114
4222
  /* excludes: */
@@ -4135,28 +4243,28 @@ const rs = {
4135
4243
  },
4136
4244
  methods: {}
4137
4245
  });
4138
- const V = (i, e) => {
4246
+ const W = (i, e) => {
4139
4247
  const t = i.__vccOpts || i;
4140
4248
  for (const [r, s] of e)
4141
4249
  t[r] = s;
4142
4250
  return t;
4143
4251
  };
4144
- function pi(i, e, t, r, s, n) {
4145
- return D(), j("div", le({ class: "tg-map" }, i.attrs.binds), [
4146
- nr("div", {
4252
+ function Mi(i, e, t, r, s, n) {
4253
+ return Z(), j("div", le({ class: "tg-map" }, i.attrs.binds), [
4254
+ cr("div", {
4147
4255
  ref: "map",
4148
- class: Le({
4256
+ class: Ie({
4149
4257
  "tg-map__map": !0,
4150
4258
  [`tg-map__map--hide-logo-${i.type}`]: i.hideLogo
4151
4259
  })
4152
4260
  }, null, 2),
4153
- Ne("", !0),
4154
- i.map ? z(i.$slots, "default", { key: 1 }) : Ne("", !0),
4261
+ Re("", !0),
4262
+ i.map ? z(i.$slots, "default", { key: 1 }) : Re("", !0),
4155
4263
  z(i.$slots, "overlay")
4156
4264
  ], 16);
4157
4265
  }
4158
- const ui = /* @__PURE__ */ V(di, [["render", pi]]);
4159
- function gi(i) {
4266
+ const bi = /* @__PURE__ */ W(_i, [["render", Mi]]);
4267
+ function Ti(i) {
4160
4268
  if (i == null)
4161
4269
  return;
4162
4270
  let e;
@@ -4167,7 +4275,7 @@ function gi(i) {
4167
4275
  e = i;
4168
4276
  return `${e}px`;
4169
4277
  }
4170
- const mi = C({
4278
+ const wi = x({
4171
4279
  name: "tg-map-widget",
4172
4280
  props: {
4173
4281
  left: {
@@ -4193,22 +4301,22 @@ const mi = C({
4193
4301
  }
4194
4302
  },
4195
4303
  methods: {
4196
- dimen: gi
4304
+ dimen: Ti
4197
4305
  }
4198
4306
  });
4199
- function fi(i, e, t, r, s, n) {
4200
- return D(), j("div", {
4201
- class: Le(i.$options.name),
4202
- style: or({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
4307
+ function Oi(i, e, t, r, s, n) {
4308
+ return Z(), j("div", {
4309
+ class: Ie(i.$options.name),
4310
+ style: dr({ left: i.dimen(i.left), top: i.dimen(i.topValue), right: i.dimen(i.right), bottom: i.dimen(i.bottom) })
4203
4311
  }, [
4204
4312
  z(i.$slots, "default")
4205
4313
  ], 6);
4206
4314
  }
4207
- const is = /* @__PURE__ */ V(mi, [["render", fi]]), yi = C({
4315
+ const ds = /* @__PURE__ */ W(wi, [["render", Oi]]), Ci = x({
4208
4316
  name: "tg-custom-control",
4209
- mixins: [P],
4317
+ mixins: [L],
4210
4318
  props: {
4211
- position: G(k, k.RIGHT_BOTTOM)
4319
+ position: G(P, P.RIGHT_BOTTOM)
4212
4320
  },
4213
4321
  setup() {
4214
4322
  return {
@@ -4221,8 +4329,8 @@ const is = /* @__PURE__ */ V(mi, [["render", fi]]), yi = C({
4221
4329
  }
4222
4330
  },
4223
4331
  onCreate() {
4224
- ve(this.$parent, ui) || console.warn("请将tg-custom-control放到tg-map中");
4225
- const { $el: i } = this, e = class extends zr {
4332
+ Me(this.$parent, bi) || console.warn("请将tg-custom-control放到tg-map中");
4333
+ const { $el: i } = this, e = class extends Zr {
4226
4334
  onCreateElement() {
4227
4335
  return i;
4228
4336
  }
@@ -4233,19 +4341,19 @@ const is = /* @__PURE__ */ V(mi, [["render", fi]]), yi = C({
4233
4341
  this.$map.removeCustomControl(this.control);
4234
4342
  }
4235
4343
  });
4236
- function vi(i, e, t, r, s, n) {
4237
- return D(), j("div", {
4238
- class: Le(i.$options.name)
4344
+ function xi(i, e, t, r, s, n) {
4345
+ return Z(), j("div", {
4346
+ class: Ie(i.$options.name)
4239
4347
  }, [
4240
4348
  z(i.$slots, "default")
4241
4349
  ], 2);
4242
4350
  }
4243
- const ss = /* @__PURE__ */ V(yi, [["render", vi]]), ns = C({
4351
+ const ps = /* @__PURE__ */ W(Ci, [["render", xi]]), us = x({
4244
4352
  name: "tg-map-type-control",
4245
- mixins: [P],
4353
+ mixins: [L],
4246
4354
  props: {
4247
- position: G(k, k.TOP_LEFT),
4248
- type: G(Rt),
4355
+ position: G(P, P.TOP_LEFT),
4356
+ type: G(Zt),
4249
4357
  mapTypes: f(Array)
4250
4358
  },
4251
4359
  setup() {
@@ -4273,11 +4381,11 @@ const ss = /* @__PURE__ */ V(yi, [["render", vi]]), ns = C({
4273
4381
  onDestroy() {
4274
4382
  this.$map.removeControl(this.control);
4275
4383
  }
4276
- }), os = C({
4384
+ }), gs = x({
4277
4385
  name: "tg-scale-control",
4278
- mixins: [P],
4386
+ mixins: [L],
4279
4387
  props: {
4280
- position: G(k, k.BOTTOM_RIGHT)
4388
+ position: G(P, P.BOTTOM_RIGHT)
4281
4389
  },
4282
4390
  setup() {
4283
4391
  return {
@@ -4296,32 +4404,32 @@ const ss = /* @__PURE__ */ V(yi, [["render", vi]]), ns = C({
4296
4404
  this.$map.removeControl(this.control);
4297
4405
  }
4298
4406
  });
4299
- function Jt() {
4407
+ function ir() {
4300
4408
  var t;
4301
- const i = (t = ar()) == null ? void 0 : t.type;
4409
+ const i = (t = pr()) == null ? void 0 : t.type;
4302
4410
  let e = (i == null ? void 0 : i.name) ?? (i == null ? void 0 : i.__name);
4303
4411
  if (!e) {
4304
4412
  const r = i == null ? void 0 : i.__file;
4305
- r && (e = ai.basename(r, ".vue"));
4413
+ r && (e = mi.basename(r, ".vue"));
4306
4414
  }
4307
4415
  return e;
4308
4416
  }
4309
- function _i() {
4310
- const i = lr(yt);
4417
+ function Ei() {
4418
+ const i = ur(vt);
4311
4419
  let e, t;
4312
- return i == null && x(`<${Jt() || "unknown"}>必须作为<tg-map>的子代组件`), {
4420
+ return i == null && C(`<${ir() || "unknown"}>必须作为<tg-map>的子代组件`), {
4313
4421
  mapRef: i,
4314
4422
  /** 读取map对象, 只要放在<tg-map>里面的组件(除#overlay插槽外)都能够立即读取到map对象 */
4315
4423
  get map() {
4316
- return i.value ?? x("map尚未初始化");
4424
+ return i.value ?? C("map尚未初始化");
4317
4425
  },
4318
4426
  /** 地图元素创建回调 */
4319
- [fe](r) {
4320
- hr(r), e && x(`${fe}只能调用一次`), e = r;
4427
+ [ve](r) {
4428
+ gr(r), e && C(`${ve}只能调用一次`), e = r;
4321
4429
  },
4322
4430
  /** 地图元素销毁回调 */
4323
- [ye](r) {
4324
- cr(r), t && x(`${ye}只能调用一次`), t = r;
4431
+ [_e](r) {
4432
+ mr(r), t && C(`${_e}只能调用一次`), t = r;
4325
4433
  },
4326
4434
  /** 重新创建地图元素 */
4327
4435
  recreate() {
@@ -4329,25 +4437,25 @@ function _i() {
4329
4437
  }
4330
4438
  };
4331
4439
  }
4332
- const as = C({
4440
+ const ms = x({
4333
4441
  name: "tg-zoom-control",
4334
4442
  props: {
4335
- position: G(k, k.RIGHT_BOTTOM)
4443
+ position: G(P, P.RIGHT_BOTTOM)
4336
4444
  },
4337
4445
  setup(i) {
4338
4446
  let e = void 0;
4339
- const { map: t, onCreate: r, onDestroy: s } = _i();
4447
+ const { map: t, onCreate: r, onDestroy: s } = Ei();
4340
4448
  return r(() => {
4341
4449
  e = t.createZoomControl(i), t.addControl(e);
4342
4450
  }), s(() => {
4343
4451
  t.removeControl(e);
4344
- }), dr(() => i.position, (n) => {
4452
+ }), fr(() => i.position, (n) => {
4345
4453
  e.setPosition(n);
4346
- }), Xt;
4454
+ }), rr;
4347
4455
  }
4348
- }), Mi = C({
4456
+ }), Li = x({
4349
4457
  name: "tg-marker-clusterer",
4350
- mixins: [P],
4458
+ mixins: [L],
4351
4459
  // markers从this.$children中读取, 故需要省略(Omit)
4352
4460
  props: {
4353
4461
  gridSize: f(Number),
@@ -4405,20 +4513,20 @@ const as = C({
4405
4513
  this.markers.push(i), this.isInitiated() && this.clusterer.addMarker(i);
4406
4514
  },
4407
4515
  onRemoveMarker(i) {
4408
- this.isInitiated() && this.clusterer.removeMarker(i), Ce.remove(this.markers, i);
4516
+ this.isInitiated() && this.clusterer.removeMarker(i), xe.remove(this.markers, i);
4409
4517
  }
4410
4518
  }
4411
4519
  });
4412
- function bi(i, e, t, r, s, n) {
4413
- return D(), j("div", {
4414
- class: Le(i.$options.name)
4520
+ function Pi(i, e, t, r, s, n) {
4521
+ return Z(), j("div", {
4522
+ class: Ie(i.$options.name)
4415
4523
  }, [
4416
4524
  z(i.$slots, "default")
4417
4525
  ], 2);
4418
4526
  }
4419
- const Ti = /* @__PURE__ */ V(Mi, [["render", bi]]), ls = C({
4527
+ const ki = /* @__PURE__ */ W(Li, [["render", Pi]]), fs = x({
4420
4528
  name: "tg-traffic-layer",
4421
- mixins: [P],
4529
+ mixins: [L],
4422
4530
  // 请直接使用v-if来控制它的显隐
4423
4531
  // 没有属性时, 写`{}`类型推断会有问题, 故注释掉
4424
4532
  // props: {} satisfies Props<{}>,
@@ -4429,14 +4537,14 @@ const Ti = /* @__PURE__ */ V(Mi, [["render", bi]]), ls = C({
4429
4537
  },
4430
4538
  watch: {},
4431
4539
  onCreate() {
4432
- this.layer = new Nr(), this.$map.addLayer(this.layer);
4540
+ this.layer = new jr(), this.$map.addLayer(this.layer);
4433
4541
  },
4434
4542
  onDestroy() {
4435
4543
  this.$map.removeLayer(this.layer);
4436
4544
  }
4437
- }), hs = C({
4545
+ }), ys = x({
4438
4546
  name: "tg-circle",
4439
- mixins: [P],
4547
+ mixins: [L],
4440
4548
  inheritAttrs: !1,
4441
4549
  props: {
4442
4550
  center: N(y),
@@ -4495,14 +4603,14 @@ const Ti = /* @__PURE__ */ V(Mi, [["render", bi]]), ls = C({
4495
4603
  this.$map.removeOverlay(this.overlay);
4496
4604
  }
4497
4605
  });
4498
- var We = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overlayMouseTarget = "overlayMouseTarget", i.float = "float", i))(We || {});
4499
- class Oi {
4606
+ var He = /* @__PURE__ */ ((i) => (i.map = "map", i.overlay = "overlay", i.overlayMouseTarget = "overlayMouseTarget", i.float = "float", i))(He || {});
4607
+ class Ii {
4500
4608
  constructor(e, t) {
4501
- d(this, "baidu");
4502
- d(this, "google");
4503
- d(this, "projection");
4504
- d(this, "element", void 0);
4505
- d(this, "mapPane");
4609
+ c(this, "baidu");
4610
+ c(this, "google");
4611
+ c(this, "projection");
4612
+ c(this, "element", void 0);
4613
+ c(this, "mapPane");
4506
4614
  this.map = e, this.mapPane = t.mapPane;
4507
4615
  }
4508
4616
  create() {
@@ -4517,26 +4625,26 @@ class Oi {
4517
4625
  asBaidu() {
4518
4626
  if (!this.baidu) {
4519
4627
  const e = this;
4520
- Kt();
4628
+ tr();
4521
4629
  class t extends BMap.OverlayV3 {
4522
4630
  initialize(n) {
4523
- const a = e.create(), c = n.getPanes();
4631
+ const a = e.create(), d = n.getPanes();
4524
4632
  let o;
4525
4633
  switch (e.mapPane) {
4526
4634
  case "float":
4527
- o = c.floatPane;
4635
+ o = d.floatPane;
4528
4636
  break;
4529
4637
  case "overlayMouseTarget":
4530
- o = c.markerMouseTarget;
4638
+ o = d.markerMouseTarget;
4531
4639
  break;
4532
4640
  case "overlay":
4533
- o = c.markerPane;
4641
+ o = d.markerPane;
4534
4642
  break;
4535
4643
  case "map":
4536
- o = c.mapPane;
4644
+ o = d.mapPane;
4537
4645
  break;
4538
4646
  default:
4539
- Re(e.mapPane);
4647
+ De(e.mapPane);
4540
4648
  break;
4541
4649
  }
4542
4650
  return o == null || o.appendChild(a), a;
@@ -4563,7 +4671,7 @@ class Oi {
4563
4671
  const e = this;
4564
4672
  class t extends google.maps.OverlayView {
4565
4673
  onAdd() {
4566
- const s = e.create(), n = this.getPanes() ?? x("onAdd回调中一定会有panes");
4674
+ const s = e.create(), n = this.getPanes() ?? C("onAdd回调中一定会有panes");
4567
4675
  let a;
4568
4676
  switch (e.mapPane) {
4569
4677
  case "float":
@@ -4579,7 +4687,7 @@ class Oi {
4579
4687
  a = n.mapPane;
4580
4688
  break;
4581
4689
  default:
4582
- Re(e.mapPane);
4690
+ De(e.mapPane);
4583
4691
  break;
4584
4692
  }
4585
4693
  a.appendChild(s);
@@ -4597,14 +4705,14 @@ class Oi {
4597
4705
  return e.google.getProjection().fromLatLngToDivPixel(r.toGoogle(e.map.coordType)) ?? U.ZERO;
4598
4706
  },
4599
4707
  fromOverlayPointToLatLng(r) {
4600
- return y.fromGoogle(e.google.getProjection().fromDivPixelToLatLng(new google.maps.Point(r.x, r.y)) ?? ee.LATLNG_ZERO, e.map.coordType);
4708
+ return y.fromGoogle(e.google.getProjection().fromDivPixelToLatLng(new google.maps.Point(r.x, r.y)) ?? te.LATLNG_ZERO, e.map.coordType);
4601
4709
  }
4602
4710
  };
4603
4711
  }
4604
4712
  return this.google;
4605
4713
  }
4606
4714
  }
4607
- class wi extends Oi {
4715
+ class Bi extends Ii {
4608
4716
  constructor(e, t, r, s) {
4609
4717
  super(e, t), this.content = r, this.position = s;
4610
4718
  }
@@ -4619,11 +4727,11 @@ class wi extends Oi {
4619
4727
  this.position = e, this.draw();
4620
4728
  }
4621
4729
  }
4622
- const Ci = C({
4730
+ const Si = x({
4623
4731
  name: "tg-element-overlay",
4624
- mixins: [P],
4732
+ mixins: [L],
4625
4733
  props: {
4626
- mapPane: G(We, We.overlayMouseTarget),
4734
+ mapPane: G(He, He.overlayMouseTarget),
4627
4735
  position: N(y)
4628
4736
  },
4629
4737
  setup() {
@@ -4645,22 +4753,22 @@ const Ci = C({
4645
4753
  }
4646
4754
  },
4647
4755
  onCreate() {
4648
- this.overlay = new wi(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
4756
+ this.overlay = new Bi(this.$map, this, this.content(), this.position), this.$map.addElementOverlay(this.overlay);
4649
4757
  },
4650
4758
  onDestroy() {
4651
4759
  this.$map.removeElementOverlay(this.overlay);
4652
4760
  }
4653
4761
  });
4654
- function xi(i, e, t, r, s, n) {
4655
- return D(), j("div", le({
4762
+ function Ai(i, e, t, r, s, n) {
4763
+ return Z(), j("div", le({
4656
4764
  class: i.$options.name
4657
4765
  }, i.$attrs), [
4658
4766
  z(i.$slots, "default")
4659
4767
  ], 16);
4660
4768
  }
4661
- const cs = /* @__PURE__ */ V(Ci, [["render", xi]]), Ei = C({
4769
+ const vs = /* @__PURE__ */ W(Si, [["render", Ai]]), $i = x({
4662
4770
  name: "tg-marker",
4663
- mixins: [P],
4771
+ mixins: [L],
4664
4772
  inheritAttrs: !1,
4665
4773
  props: {
4666
4774
  position: N(y),
@@ -4677,8 +4785,8 @@ const cs = /* @__PURE__ */ V(Ci, [["render", xi]]), Ei = C({
4677
4785
  return {
4678
4786
  attrs: q(e),
4679
4787
  marker: void 0,
4680
- label: Ge(),
4681
- info: Ge()
4788
+ label: Ze(),
4789
+ info: Ze()
4682
4790
  };
4683
4791
  },
4684
4792
  watch: {
@@ -4692,7 +4800,7 @@ const cs = /* @__PURE__ */ V(Ci, [["render", xi]]), Ei = C({
4692
4800
  i ? this.marker.setIcon(i) : this.recreate();
4693
4801
  },
4694
4802
  clickable(i) {
4695
- this.marker instanceof me ? this.recreate() : this.marker.setClickable(i);
4803
+ this.marker instanceof ye ? this.recreate() : this.marker.setClickable(i);
4696
4804
  },
4697
4805
  draggable(i) {
4698
4806
  this.marker.setDraggable(i);
@@ -4704,7 +4812,7 @@ const cs = /* @__PURE__ */ V(Ci, [["render", xi]]), Ei = C({
4704
4812
  this.recreate();
4705
4813
  },
4706
4814
  zIndex(i) {
4707
- this.marker instanceof me ? this.recreate() : this.marker.setZIndex(i);
4815
+ this.marker instanceof ye ? this.recreate() : this.marker.setZIndex(i);
4708
4816
  },
4709
4817
  visible(i) {
4710
4818
  this.marker.setVisible(i);
@@ -4718,7 +4826,7 @@ const cs = /* @__PURE__ */ V(Ci, [["render", xi]]), Ei = C({
4718
4826
  },
4719
4827
  methods: {
4720
4828
  $clusterer() {
4721
- return ve(this.$parent, Ti);
4829
+ return Me(this.$parent, ki);
4722
4830
  },
4723
4831
  onAddLabel(i) {
4724
4832
  this.label = i, this.marker && this.marker.setLabel(i.overlay);
@@ -4737,16 +4845,16 @@ const cs = /* @__PURE__ */ V(Ci, [["render", xi]]), Ei = C({
4737
4845
  }
4738
4846
  }
4739
4847
  });
4740
- function Pi(i, e, t, r, s, n) {
4741
- return D(), j("div", le({
4848
+ function zi(i, e, t, r, s, n) {
4849
+ return Z(), j("div", le({
4742
4850
  class: i.$options.name
4743
4851
  }, i.attrs.binds), [
4744
4852
  z(i.$slots, "default")
4745
4853
  ], 16);
4746
4854
  }
4747
- const vt = /* @__PURE__ */ V(Ei, [["render", Pi]]), ki = C({
4855
+ const _t = /* @__PURE__ */ W($i, [["render", zi]]), Ni = x({
4748
4856
  name: "tg-info-box",
4749
- mixins: [P],
4857
+ mixins: [L],
4750
4858
  inheritAttrs: !1,
4751
4859
  props: {
4752
4860
  show: N(Boolean),
@@ -4807,7 +4915,7 @@ const vt = /* @__PURE__ */ V(Ei, [["render", Pi]]), ki = C({
4807
4915
  return this.$el;
4808
4916
  },
4809
4917
  $marker() {
4810
- return ve(this.$parent, vt);
4918
+ return Me(this.$parent, _t);
4811
4919
  },
4812
4920
  open(i) {
4813
4921
  this.overlay.open(i);
@@ -4817,16 +4925,16 @@ const vt = /* @__PURE__ */ V(Ei, [["render", Pi]]), ki = C({
4817
4925
  }
4818
4926
  }
4819
4927
  });
4820
- function Li(i, e, t, r, s, n) {
4821
- return D(), j("div", le({
4928
+ function Ri(i, e, t, r, s, n) {
4929
+ return Z(), j("div", le({
4822
4930
  class: i.$options.name
4823
4931
  }, i.attrs.binds), [
4824
4932
  z(i.$slots, "default")
4825
4933
  ], 16);
4826
4934
  }
4827
- const ds = /* @__PURE__ */ V(ki, [["render", Li]]), Ii = C({
4935
+ const _s = /* @__PURE__ */ W(Ni, [["render", Ri]]), Di = x({
4828
4936
  name: "tg-info-window",
4829
- mixins: [P],
4937
+ mixins: [L],
4830
4938
  inheritAttrs: !1,
4831
4939
  props: {
4832
4940
  show: N(Boolean),
@@ -4863,7 +4971,7 @@ const ds = /* @__PURE__ */ V(ki, [["render", Li]]), Ii = C({
4863
4971
  return this.$el;
4864
4972
  },
4865
4973
  $marker() {
4866
- return ve(this.$parent, vt);
4974
+ return Me(this.$parent, _t);
4867
4975
  },
4868
4976
  getOptions() {
4869
4977
  return {
@@ -4886,18 +4994,18 @@ const ds = /* @__PURE__ */ V(ki, [["render", Li]]), Ii = C({
4886
4994
  this.$marker() ? this.$marker().onRemoveInfo(this) : this.overlay.close();
4887
4995
  }
4888
4996
  });
4889
- function Bi(i, e, t, r, s, n) {
4890
- return pr((D(), j("div", le({
4997
+ function Gi(i, e, t, r, s, n) {
4998
+ return yr((Z(), j("div", le({
4891
4999
  class: i.$options.name
4892
5000
  }, i.attrs.binds), [
4893
5001
  z(i.$slots, "default")
4894
5002
  ], 16)), [
4895
- [ur, i.show]
5003
+ [vr, i.show]
4896
5004
  ]);
4897
5005
  }
4898
- const ps = /* @__PURE__ */ V(Ii, [["render", Bi]]), Si = C({
5006
+ const Ms = /* @__PURE__ */ W(Di, [["render", Gi]]), Zi = x({
4899
5007
  name: "tg-label",
4900
- mixins: [P],
5008
+ mixins: [L],
4901
5009
  inheritAttrs: !1,
4902
5010
  props: {
4903
5011
  position: f(y),
@@ -4933,7 +5041,7 @@ const ps = /* @__PURE__ */ V(Ii, [["render", Bi]]), Si = C({
4933
5041
  return (i = this.$marker()) == null ? void 0 : i.marker;
4934
5042
  },
4935
5043
  $marker() {
4936
- return ve(this.$parent, vt);
5044
+ return Me(this.$parent, _t);
4937
5045
  },
4938
5046
  getOptions() {
4939
5047
  return {
@@ -4951,16 +5059,16 @@ const ps = /* @__PURE__ */ V(Ii, [["render", Bi]]), Si = C({
4951
5059
  this.$marker() ? this.$marker().onRemoveLabel(this) : this.$map.removeOverlay(this.overlay);
4952
5060
  }
4953
5061
  });
4954
- function Ai(i, e, t, r, s, n) {
4955
- return D(), j("div", le({
5062
+ function ji(i, e, t, r, s, n) {
5063
+ return Z(), j("div", le({
4956
5064
  class: i.$options.name
4957
5065
  }, i.attrs.binds), [
4958
5066
  z(i.$slots, "default")
4959
5067
  ], 16);
4960
5068
  }
4961
- const us = /* @__PURE__ */ V(Si, [["render", Ai]]), gs = C({
5069
+ const bs = /* @__PURE__ */ W(Zi, [["render", ji]]), Ts = x({
4962
5070
  name: "tg-polygon",
4963
- mixins: [P],
5071
+ mixins: [L],
4964
5072
  inheritAttrs: !1,
4965
5073
  props: {
4966
5074
  paths: N(Array),
@@ -5017,9 +5125,9 @@ const us = /* @__PURE__ */ V(Si, [["render", Ai]]), gs = C({
5017
5125
  onDestroy() {
5018
5126
  this.$map.removeOverlay(this.polygon);
5019
5127
  }
5020
- }), ms = C({
5128
+ }), ws = x({
5021
5129
  name: "tg-polyline",
5022
- mixins: [P],
5130
+ mixins: [L],
5023
5131
  inheritAttrs: !1,
5024
5132
  props: {
5025
5133
  path: N(Array),
@@ -5068,14 +5176,14 @@ const us = /* @__PURE__ */ V(Si, [["render", Ai]]), gs = C({
5068
5176
  onDestroy() {
5069
5177
  this.$map.removeOverlay(this.polyline);
5070
5178
  }
5071
- }), $i = ["beforeUpdate", "updated"], fs = {
5179
+ }), Wi = ["beforeUpdate", "updated"], Os = {
5072
5180
  install(i, e = {}) {
5073
5181
  if (e.enable !== !1) {
5074
- const t = C({
5182
+ const t = x({
5075
5183
  beforeCreate() {
5076
- const r = Jt() ?? "", n = (e.nameRegex || /^[A-Z]/).test(r) ? (a) => {
5077
- e.hookNames ? e.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : $i.includes(a) || console.debug("[lifecycle]", r, a);
5078
- } : Oe;
5184
+ const r = ir() ?? "", n = (e.nameRegex || /^[A-Z]/).test(r) ? (a) => {
5185
+ e.hookNames ? e.hookNames.includes(a) && console.debug("[lifecycle]", r, a) : Wi.includes(a) || console.debug("[lifecycle]", r, a);
5186
+ } : ge;
5079
5187
  n("beforeCreate"), this.__life_impl = n;
5080
5188
  },
5081
5189
  created() {
@@ -5114,155 +5222,159 @@ const us = /* @__PURE__ */ V(Si, [["render", Ai]]), gs = C({
5114
5222
  i.mixin(t);
5115
5223
  }
5116
5224
  }
5117
- }, zi = 6378137;
5118
- function pe(i) {
5225
+ }, Vi = 6378137;
5226
+ function ue(i) {
5119
5227
  return i * Math.PI / 180;
5120
5228
  }
5121
- function Et(i) {
5229
+ function Pt(i) {
5122
5230
  return i * 180 / Math.PI;
5123
5231
  }
5124
- function Ni(i, e) {
5232
+ function Hi(i, e) {
5125
5233
  if (i.lat === e.lat && i.lng === e.lng)
5126
5234
  return 0;
5127
- const t = pe((i.lat + e.lat) / 2), r = pe((i.lat - e.lat) / 2), s = pe((i.lng - e.lng) / 2);
5128
- let n = Math.sin(r), a = Math.sin(s), c = Math.sin(t);
5129
- const o = zi, l = 1 / 298.257;
5130
- n = n * n, a = a * a, c = c * c;
5131
- const h = n * (1 - a) + (1 - c) * a, u = (1 - n) * (1 - a) + c * a, p = Math.atan(Math.sqrt(h / u)), M = Math.sqrt(h * u) / p, b = 2 * p * o, _ = (3 * M - 1) / 2 / u, g = (3 * M + 1) / 2 / h;
5132
- return b * (1 + l * (_ * c * (1 - n) - g * (1 - c) * n));
5133
- }
5134
- function Ri(i, e, t) {
5135
- const s = 63567523142e-4, n = 1 / 298.257223563, a = pe(e), c = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(pe(i.lat)), h = 1 / Math.sqrt(1 + l * l), u = l * h, p = Math.atan2(l, o), M = h * c, b = 1 - M * M, _ = b * (6378137 * 6378137 - s * s) / (s * s), g = 1 + _ / 16384 * (4096 + _ * (-768 + _ * (320 - 175 * _))), m = _ / 1024 * (256 + _ * (-128 + _ * (74 - 47 * _)));
5136
- let v = 0, O = 0, E = 0, w = t / (s * g), K = 2 * Math.PI;
5137
- for (; Math.abs(w - K) > 1e-12; ) {
5138
- v = Math.cos(2 * p + w), O = Math.sin(w), E = Math.cos(w);
5139
- const tr = m * O * (v + m / 4 * (E * (-1 + 2 * v * v) - m / 6 * v * (-3 + 4 * O * O) * (-3 + 4 * v * v)));
5140
- K = w, w = t / (s * g) + tr;
5141
- }
5142
- const te = u * O - h * E * o, Be = Math.atan2(
5143
- u * E + h * O * o,
5144
- (1 - n) * Math.sqrt(M * M + te * te)
5145
- ), Qt = Math.atan2(O * c, h * E - u * O * o), Se = n / 16 * b * (4 + n * (4 - 3 * b)), er = Qt - (1 - Se) * n * M * (w + Se * O * (v + Se * E * (-1 + 2 * v * v)));
5146
- return { lng: i.lng + Et(er), lat: Et(Be) };
5147
- }
5148
- const ys = {
5149
- getDistance: Ni,
5150
- getDestination: Ri
5151
- }, vs = {
5235
+ const t = ue((i.lat + e.lat) / 2), r = ue((i.lat - e.lat) / 2), s = ue((i.lng - e.lng) / 2);
5236
+ let n = Math.sin(r), a = Math.sin(s), d = Math.sin(t);
5237
+ const o = Vi, l = 1 / 298.257;
5238
+ n = n * n, a = a * a, d = d * d;
5239
+ const h = n * (1 - a) + (1 - d) * a, p = (1 - n) * (1 - a) + d * a, u = Math.atan(Math.sqrt(h / p)), M = Math.sqrt(h * p) / u, b = 2 * u * o, _ = (3 * M - 1) / 2 / p, g = (3 * M + 1) / 2 / h;
5240
+ return b * (1 + l * (_ * d * (1 - n) - g * (1 - d) * n));
5241
+ }
5242
+ function Fi(i, e, t) {
5243
+ const s = 63567523142e-4, n = 1 / 298.257223563, a = ue(e), d = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(ue(i.lat)), h = 1 / Math.sqrt(1 + l * l), p = l * h, u = Math.atan2(l, o), M = h * d, b = 1 - M * M, _ = b * (6378137 * 6378137 - s * s) / (s * s), g = 1 + _ / 16384 * (4096 + _ * (-768 + _ * (320 - 175 * _))), m = _ / 1024 * (256 + _ * (-128 + _ * (74 - 47 * _)));
5244
+ let v = 0, w = 0, E = 0, O = t / (s * g), K = 2 * Math.PI;
5245
+ for (; Math.abs(O - K) > 1e-12; ) {
5246
+ v = Math.cos(2 * u + O), w = Math.sin(O), E = Math.cos(O);
5247
+ const or = m * w * (v + m / 4 * (E * (-1 + 2 * v * v) - m / 6 * v * (-3 + 4 * w * w) * (-3 + 4 * v * v)));
5248
+ K = O, O = t / (s * g) + or;
5249
+ }
5250
+ const re = p * w - h * E * o, Se = Math.atan2(
5251
+ p * E + h * w * o,
5252
+ (1 - n) * Math.sqrt(M * M + re * re)
5253
+ ), sr = Math.atan2(w * d, h * E - p * w * o), Ae = n / 16 * b * (4 + n * (4 - 3 * b)), nr = sr - (1 - Ae) * n * M * (O + Ae * w * (v + Ae * E * (-1 + 2 * v * v)));
5254
+ return { lng: i.lng + Pt(nr), lat: Pt(Se) };
5255
+ }
5256
+ const Cs = {
5257
+ getDistance: Hi,
5258
+ getDestination: Fi
5259
+ }, xs = {
5152
5260
  install(i, e) {
5153
- Ir(e), i.config.unwrapInjectedRef = !0;
5261
+ zr(e), i.config.unwrapInjectedRef = !0;
5154
5262
  const t = i.config.optionMergeStrategies;
5155
- t[fe] = t[ye] = (r, s) => r ? [...new Set([].concat(r, s))] : Array.isArray(s) ? s : [s];
5263
+ t[ve] = t[_e] = (r, s) => r ? [...new Set([].concat(r, s))] : Array.isArray(s) ? s : [s];
5156
5264
  }
5157
5265
  };
5158
5266
  export {
5159
- zt as AbstractControl,
5160
- Qe as AbstractMap,
5161
- Ce as Arrays,
5162
- Dt as Autocomplete,
5163
- Gr as BaiduAutocomplete,
5164
- it as BaiduCircle,
5165
- He as BaiduControl,
5166
- lt as BaiduInfoBoxOverlay,
5167
- ot as BaiduInfoWindow,
5168
- Ue as BaiduMapTypeControl,
5169
- me as BaiduMarker,
5170
- Hr as BaiduMarkerClusterer,
5171
- Ie as BaiduOverlay,
5172
- Yr as BaiduPlacesService,
5173
- ut as BaiduPolygon,
5174
- mt as BaiduPolyline,
5175
- Ye as BaiduScaleControl,
5176
- Ke as BaiduZoomControl,
5177
- Tt as CachedValue,
5178
- k as ControlPosition,
5267
+ Dt as AbstractControl,
5268
+ et as AbstractMap,
5269
+ xe as Arrays,
5270
+ Ht as Autocomplete,
5271
+ Hr as BaiduAutocomplete,
5272
+ st as BaiduCircle,
5273
+ Fe as BaiduControl,
5274
+ ht as BaiduInfoBoxOverlay,
5275
+ at as BaiduInfoWindow,
5276
+ Ye as BaiduMapTypeControl,
5277
+ ye as BaiduMarker,
5278
+ Kr as BaiduMarkerClusterer,
5279
+ Be as BaiduOverlay,
5280
+ Qr as BaiduPlacesService,
5281
+ gt as BaiduPolygon,
5282
+ ft as BaiduPolyline,
5283
+ qe as BaiduScaleControl,
5284
+ ti as BaiduSearchBox,
5285
+ Xe as BaiduZoomControl,
5286
+ Ot as CachedValue,
5287
+ P as ControlPosition,
5179
5288
  B as ControlPositionConverter,
5180
- J as CoordType,
5181
- zr as CustomControl,
5182
- $r as FastFindValues,
5183
- Zr as GoogleAutocomplete,
5184
- st as GoogleCircle,
5185
- Fe as GoogleControl,
5186
- ht as GoogleInfoBoxOverlay,
5187
- at as GoogleInfoWindow,
5188
- be as GoogleMapTypeControl,
5189
- pt as GoogleMarker,
5190
- Fr as GoogleMarkerClusterer,
5191
- et as GoogleOverlay,
5192
- Ur as GooglePlacesService,
5193
- gt as GooglePolygon,
5194
- ft as GooglePolyline,
5195
- qe as GoogleScaleControl,
5196
- Xe as GoogleZoomControl,
5289
+ Q as CoordType,
5290
+ Zr as CustomControl,
5291
+ Gr as FastFindValues,
5292
+ Vr as GoogleAutocomplete,
5293
+ nt as GoogleCircle,
5294
+ Ue as GoogleControl,
5295
+ ct as GoogleInfoBoxOverlay,
5296
+ lt as GoogleInfoWindow,
5297
+ we as GoogleMapTypeControl,
5298
+ ut as GoogleMarker,
5299
+ Xr as GoogleMarkerClusterer,
5300
+ tt as GoogleOverlay,
5301
+ Jr as GooglePlacesService,
5302
+ mt as GooglePolygon,
5303
+ yt as GooglePolyline,
5304
+ Ke as GoogleScaleControl,
5305
+ ei as GoogleSearchBox,
5306
+ Je as GoogleZoomControl,
5197
5307
  ae as Icon,
5198
- nt as InfoWindow,
5199
- bt as KeyValue,
5308
+ ot as InfoWindow,
5309
+ wt as KeyValue,
5200
5310
  y as LatLng,
5201
5311
  F as LatLngBounds,
5202
- fs as LifecycleLogPlugin,
5203
- fe as MIXIN_HOOK_CREATE,
5204
- ye as MIXIN_HOOK_DESTROY,
5205
- yt as MIXIN_MAP_NAME,
5206
- xe as MVCArrays,
5207
- P as MapMixin,
5208
- Rt as MapTypeControlType,
5209
- Ft as MarkerClusterer,
5210
- ge as Objects,
5211
- qt as Overlay,
5212
- Ut as PlacesService,
5312
+ Os as LifecycleLogPlugin,
5313
+ ve as MIXIN_HOOK_CREATE,
5314
+ _e as MIXIN_HOOK_DESTROY,
5315
+ vt as MIXIN_MAP_NAME,
5316
+ Ee as MVCArrays,
5317
+ L as MapMixin,
5318
+ Zt as MapTypeControlType,
5319
+ ri as MapZoom,
5320
+ Kt as MarkerClusterer,
5321
+ fe as Objects,
5322
+ er as Overlay,
5323
+ Xt as PlacesService,
5213
5324
  U as Point,
5214
- ys as SphericalUtils,
5325
+ Jt as SearchBox,
5326
+ Cs as SphericalUtils,
5215
5327
  Pe as Strings,
5216
- hs as TgCircle,
5217
- ss as TgCustomControl,
5218
- cs as TgElementOverlay,
5219
- ds as TgInfoBox,
5220
- ps as TgInfoWindow,
5221
- us as TgLabel,
5222
- ui as TgMap,
5328
+ ys as TgCircle,
5329
+ ps as TgCustomControl,
5330
+ vs as TgElementOverlay,
5331
+ _s as TgInfoBox,
5332
+ Ms as TgInfoWindow,
5333
+ bs as TgLabel,
5334
+ bi as TgMap,
5223
5335
  Ve as TgMapFactory,
5224
5336
  $ as TgMapType,
5225
- ns as TgMapTypeControl,
5226
- is as TgMapWidget,
5227
- vt as TgMarker,
5228
- Ti as TgMarkerClusterer,
5229
- gs as TgPolygon,
5230
- ms as TgPolyline,
5231
- os as TgScaleControl,
5232
- ls as TgTrafficLayer,
5233
- as as TgZoomControl,
5234
- Me as callHook,
5235
- Ji as computedSaveOnThis,
5236
- Xt as createEmptyVNode,
5237
- hi as createPropertyObject,
5238
- Qi as createPropertyObjectTyped,
5239
- Vi as debug,
5240
- vs as default,
5241
- rs as eventLogMethods,
5337
+ us as TgMapTypeControl,
5338
+ ds as TgMapWidget,
5339
+ _t as TgMarker,
5340
+ ki as TgMarkerClusterer,
5341
+ Ts as TgPolygon,
5342
+ ws as TgPolyline,
5343
+ gs as TgScaleControl,
5344
+ fs as TgTrafficLayer,
5345
+ ms as TgZoomControl,
5346
+ Te as callHook,
5347
+ os as computedSaveOnThis,
5348
+ rr as createEmptyVNode,
5349
+ yi as createPropertyObject,
5350
+ as as createPropertyObjectTyped,
5351
+ Xi as debug,
5352
+ xs as default,
5353
+ cs as eventLogMethods,
5242
5354
  R as eventProp,
5243
- ts as extractVNodeFromSlotsByComponent,
5244
- es as findByComponentType,
5245
- Ri as getDestination,
5246
- At as getTgMapConfig,
5247
- Wi as isDef,
5248
- Fi as isInstanceOf,
5249
- Hi as lateinit,
5250
- Oe as noop,
5355
+ hs as extractVNodeFromSlotsByComponent,
5356
+ ls as findByComponentType,
5357
+ Fi as getDestination,
5358
+ zt as getTgMapConfig,
5359
+ Ji as isDef,
5360
+ es as isInstanceOf,
5361
+ Qi as lateinit,
5362
+ ge as noop,
5251
5363
  f as optionalProp,
5252
- ai as path,
5364
+ mi as path,
5253
5365
  N as requiredProp,
5254
- Ui as safeAs,
5255
- ve as safeAsComponent,
5256
- Ir as setTgMapConfig,
5257
- ci as splitAttrs,
5366
+ ts as safeAs,
5367
+ Me as safeAsComponent,
5368
+ zr as setTgMapConfig,
5369
+ vi as splitAttrs,
5258
5370
  G as stringEnumProp,
5259
- li as stringUnionPropFromValues,
5260
- x as throwError,
5261
- Lt as throwUnsupported,
5262
- ji as todo,
5263
- Ge as typed,
5264
- Yi as unwrapStringEnumValue,
5371
+ fi as stringUnionPropFromValues,
5372
+ C as throwError,
5373
+ Bt as throwUnsupported,
5374
+ Ki as todo,
5375
+ Ze as typed,
5376
+ rs as unwrapStringEnumValue,
5265
5377
  q as useSplittedAttrs,
5266
- _i as useTgMap
5378
+ Ei as useTgMap
5267
5379
  };
5268
5380
  //# sourceMappingURL=tg-map.js.map