@heycar/heycars-map 0.2.4 → 0.2.6

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.
Files changed (63) hide show
  1. package/README.md +1 -0
  2. package/dist/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +13 -0
  3. package/dist/business-components/BusinessQuotingMap/index.d.ts +1 -0
  4. package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +24 -0
  5. package/dist/business-components/BusinessTaxiServiceMap/index.d.ts +1 -0
  6. package/dist/business-components/FitView/FitView.d.ts +9 -0
  7. package/dist/business-components/FitView/index.d.ts +1 -0
  8. package/dist/business-components/PassengerCircle/PassengerCircle.d.ts +18309 -4
  9. package/dist/business-components/PickupPoints/PickupPoints.d.ts +2 -1
  10. package/dist/business-components/PlaceCircle/PlaceCircle.d.ts +5 -3
  11. package/dist/business-components/TaxiCar/TaxiCar.d.ts +18309 -4
  12. package/dist/business-components/WalkingRoute/WalkingRoute.d.ts +0 -1
  13. package/dist/components/AmapMarker/AmapMarker.d.ts +5 -2
  14. package/dist/components/Demo/DemoBusinessQuoting.d.ts +1 -0
  15. package/dist/components/Demo/DemoBusinessTaxiService.d.ts +2 -0
  16. package/dist/components/GmapAdvancedMarkerView/GmapAdvancedMarkerView.d.ts +5 -2
  17. package/dist/hooks/useGeoLocation.d.ts +4 -0
  18. package/dist/hooks/useMap.d.ts +4 -0
  19. package/dist/hooks/useMapAutoComplete.d.ts +3 -0
  20. package/dist/hooks/useMapFitView.d.ts +6 -2296
  21. package/dist/hooks/useMapPlace.d.ts +3 -0
  22. package/dist/hooks/useMapRecomendPlace.d.ts +6 -0
  23. package/dist/hooks/useOverlay.d.ts +1 -0
  24. package/dist/hooks-business/useBusinessMapAutoComplete.d.ts +1 -0
  25. package/dist/hooks-business/useBusinessMapRecomendPlace.d.ts +6 -1
  26. package/dist/hooks-business/{useBusinessMapFitView.d.ts → useBusinessQuotingMap.d.ts} +494 -742
  27. package/dist/hooks-business/useBusinessTaxiServiceMap.d.ts +2049 -0
  28. package/dist/index.cjs +56 -56
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.js +2389 -1921
  31. package/dist/types/interface.d.ts +2 -0
  32. package/dist/utils/compare.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/src/App.tsx +4 -2
  35. package/src/business-components/BusinessQuotingMap/BusinessQuotingMap.tsx +49 -0
  36. package/src/business-components/BusinessQuotingMap/index.ts +1 -0
  37. package/src/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.tsx +358 -0
  38. package/src/business-components/BusinessTaxiServiceMap/index.ts +1 -0
  39. package/src/business-components/FitView/FitView.tsx +14 -0
  40. package/src/business-components/FitView/index.ts +1 -0
  41. package/src/business-components/PassengerCircle/PassengerCircle.tsx +26 -8
  42. package/src/business-components/PickupPoints/PickupPoints.tsx +8 -2
  43. package/src/business-components/PlaceCircle/PlaceCircle.tsx +29 -5
  44. package/src/business-components/TaxiCar/TaxiCar.tsx +18 -6
  45. package/src/business-components/WalkingRoute/WalkingRoute.tsx +0 -1
  46. package/src/components/AmapMarker/AmapMarker.ts +10 -3
  47. package/src/components/Demo/DemoBusinessQuoting.tsx +39 -0
  48. package/src/components/Demo/DemoBusinessTaxiService.tsx +53 -0
  49. package/src/components/Demo/HeycarDemo.tsx +19 -10
  50. package/src/components/GmapAdvancedMarkerView/GmapAdvancedMarkerView.ts +15 -4
  51. package/src/hooks/useGeoLocation.ts +7 -3
  52. package/src/hooks/useMap.ts +15 -1
  53. package/src/hooks/useMapFitView.ts +8 -1
  54. package/src/hooks/useOverlay.ts +1 -0
  55. package/src/hooks/useWalkingRoute.ts +14 -9
  56. package/src/hooks-business/useBusinessMapRecomendPlace.ts +24 -0
  57. package/src/hooks-business/useBusinessQuotingMap.ts +11 -0
  58. package/src/hooks-business/useBusinessTaxiServiceMap.ts +12 -0
  59. package/src/index.ts +2 -1
  60. package/src/types/interface.ts +13 -0
  61. package/src/utils/compare.ts +4 -1
  62. package/todo.md +7 -0
  63. package/src/hooks-business/useBusinessMapFitView.ts +0 -6
package/dist/index.js CHANGED
@@ -1,114 +1,125 @@
1
- import ln, { inject as Ae, provide as Le, watch as b, defineComponent as $e, h as m, watchPostEffect as k, shallowRef as w, onMounted as Ie, onUnmounted as Me, computed as L, reactive as x, toRefs as _e, ref as D, watchEffect as dn } from "vue";
2
- ln.util.warn;
3
- const Ke = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+", T = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElIiB3aWR0aD0iMjIyLjIlIiBoZWlnaHQ9IjIyMi4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iZmlsdGVyLTIiPgogICAgICAgICAgICA8ZmVNb3JwaG9sb2d5IH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blvaIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIzMi4wMDAwMDAsIDMyMS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=", qe = Symbol(), j = () => {
4
- const t = Ae(qe);
1
+ import Sn, { inject as De, provide as Ce, watch as b, defineComponent as rt, h as M, watchPostEffect as B, shallowRef as P, onMounted as pe, onUnmounted as ve, computed as L, ref as D, reactive as x, toRefs as ot, watchEffect as hn } from "vue";
2
+ Sn.util.warn;
3
+ const st = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+", G = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGlu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1hdHJpeCIgaW49InNoYWRvd0JsdXJPdXRlcjEiPjwvZmVDb2xvck1hdHJpeD4KICAgICAgICA8L2ZpbHRlcj4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSIxLjAiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLpppbpobUt5Y2z5pe255So6L2mLeaLluWKqOWFieaghyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyOC4wMDAwMDAsIC0zMjIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSLmpK3lnIblvaIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIzMi4wMDAwMDAsIDMyMS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=", ct = Symbol(), A = () => {
4
+ const t = De(ct);
5
5
  if (!t)
6
6
  throw new Error("MyError: useMapSupplier should be under MapProvider");
7
7
  return t;
8
- }, gn = (t) => Le(qe, t), et = Symbol("amap"), Ne = () => Ae(et), In = (t) => Le(et, t), tt = Symbol("gmap"), Se = () => Ae(tt), Mn = (t) => Le(tt, t), nt = (t) => {
8
+ }, Dn = (t) => Ce(ct, t), ut = Symbol("amap"), ye = () => De(ut), Cn = (t) => Ce(ut, t), lt = Symbol("gmap"), je = () => De(lt), xn = (t) => Ce(lt, t), wn = () => {
9
+ const { supplier: t } = A();
10
+ return t === "gmap" ? je() : ye();
11
+ }, Q = (t) => {
12
+ const e = wn();
13
+ b(
14
+ () => e.value,
15
+ (n) => {
16
+ n && Promise.resolve().then(t);
17
+ }
18
+ );
19
+ }, dt = (t) => {
9
20
  const { registerOverlay: e, overlayRef: n } = t;
10
21
  b(
11
22
  () => n.value,
12
- (i, a) => {
13
- e && (a && e.remove(a), i && e.add(i));
23
+ (a, i) => {
24
+ e && (i && e.remove(i), a && e.add(a));
14
25
  }
15
26
  );
16
27
  };
17
- var fn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, mn = typeof global == "object" && global && global.Object === Object && global;
18
- const pn = mn;
19
- var vn = typeof self == "object" && self && self.Object === Object && self, yn = pn || vn || Function("return this")();
20
- const it = yn;
21
- var jn = it.Symbol;
22
- const V = jn;
23
- var at = Object.prototype, An = at.hasOwnProperty, Ln = at.toString, _ = V ? V.toStringTag : void 0;
24
- function Nn(t) {
25
- var e = An.call(t, _), n = t[_];
28
+ var bn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, Pn = typeof global == "object" && global && global.Object === Object && global;
29
+ const zn = Pn;
30
+ var Tn = typeof self == "object" && self && self.Object === Object && self, En = zn || Tn || Function("return this")();
31
+ const gt = En;
32
+ var Zn = gt.Symbol;
33
+ const _ = Zn;
34
+ var It = Object.prototype, Rn = It.hasOwnProperty, On = It.toString, ne = _ ? _.toStringTag : void 0;
35
+ function kn(t) {
36
+ var e = Rn.call(t, ne), n = t[ne];
26
37
  try {
27
- t[_] = void 0;
28
- var i = !0;
38
+ t[ne] = void 0;
39
+ var a = !0;
29
40
  } catch {
30
41
  }
31
- var a = Ln.call(t);
32
- return i && (e ? t[_] = n : delete t[_]), a;
42
+ var i = On.call(t);
43
+ return a && (e ? t[ne] = n : delete t[ne]), i;
33
44
  }
34
- var Sn = Object.prototype, Dn = Sn.toString;
35
- function hn(t) {
36
- return Dn.call(t);
45
+ var Gn = Object.prototype, Wn = Gn.toString;
46
+ function Un(t) {
47
+ return Wn.call(t);
37
48
  }
38
- var xn = "[object Null]", Cn = "[object Undefined]", we = V ? V.toStringTag : void 0;
39
- function wn(t) {
40
- return t == null ? t === void 0 ? Cn : xn : we && we in Object(t) ? Nn(t) : hn(t);
49
+ var Bn = "[object Null]", Yn = "[object Undefined]", Oe = _ ? _.toStringTag : void 0;
50
+ function Hn(t) {
51
+ return t == null ? t === void 0 ? Yn : Bn : Oe && Oe in Object(t) ? kn(t) : Un(t);
41
52
  }
42
- function bn(t) {
53
+ function Vn(t) {
43
54
  return t != null && typeof t == "object";
44
55
  }
45
- var Pn = "[object Symbol]";
46
- function ot(t) {
47
- return typeof t == "symbol" || bn(t) && wn(t) == Pn;
56
+ var Qn = "[object Symbol]";
57
+ function Mt(t) {
58
+ return typeof t == "symbol" || Vn(t) && Hn(t) == Qn;
48
59
  }
49
- function zn(t, e) {
50
- for (var n = -1, i = t == null ? 0 : t.length, a = Array(i); ++n < i; )
51
- a[n] = e(t[n], n, t);
52
- return a;
60
+ function Jn(t, e) {
61
+ for (var n = -1, a = t == null ? 0 : t.length, i = Array(a); ++n < a; )
62
+ i[n] = e(t[n], n, t);
63
+ return i;
53
64
  }
54
- var En = Array.isArray;
55
- const Zn = En;
56
- var Tn = 1 / 0, be = V ? V.prototype : void 0, Pe = be ? be.toString : void 0;
57
- function rt(t) {
65
+ var Xn = Array.isArray;
66
+ const Fn = Xn;
67
+ var $n = 1 / 0, ke = _ ? _.prototype : void 0, Ge = ke ? ke.toString : void 0;
68
+ function mt(t) {
58
69
  if (typeof t == "string")
59
70
  return t;
60
- if (Zn(t))
61
- return zn(t, rt) + "";
62
- if (ot(t))
63
- return Pe ? Pe.call(t) : "";
71
+ if (Fn(t))
72
+ return Jn(t, mt) + "";
73
+ if (Mt(t))
74
+ return Ge ? Ge.call(t) : "";
64
75
  var e = t + "";
65
- return e == "0" && 1 / t == -Tn ? "-0" : e;
76
+ return e == "0" && 1 / t == -$n ? "-0" : e;
66
77
  }
67
- var Rn = /\s/;
68
- function Gn(t) {
69
- for (var e = t.length; e-- && Rn.test(t.charAt(e)); )
78
+ var _n = /\s/;
79
+ function Kn(t) {
80
+ for (var e = t.length; e-- && _n.test(t.charAt(e)); )
70
81
  ;
71
82
  return e;
72
83
  }
73
- var kn = /^\s+/;
74
- function On(t) {
75
- return t && t.slice(0, Gn(t) + 1).replace(kn, "");
84
+ var qn = /^\s+/;
85
+ function ei(t) {
86
+ return t && t.slice(0, Kn(t) + 1).replace(qn, "");
76
87
  }
77
- function pe(t) {
88
+ function Ne(t) {
78
89
  var e = typeof t;
79
90
  return t != null && (e == "object" || e == "function");
80
91
  }
81
- var ze = 0 / 0, Wn = /^[-+]0x[0-9a-f]+$/i, Un = /^0b[01]+$/i, Bn = /^0o[0-7]+$/i, Yn = parseInt;
82
- function Ee(t) {
92
+ var We = 0 / 0, ti = /^[-+]0x[0-9a-f]+$/i, ni = /^0b[01]+$/i, ii = /^0o[0-7]+$/i, ai = parseInt;
93
+ function Ue(t) {
83
94
  if (typeof t == "number")
84
95
  return t;
85
- if (ot(t))
86
- return ze;
87
- if (pe(t)) {
96
+ if (Mt(t))
97
+ return We;
98
+ if (Ne(t)) {
88
99
  var e = typeof t.valueOf == "function" ? t.valueOf() : t;
89
- t = pe(e) ? e + "" : e;
100
+ t = Ne(e) ? e + "" : e;
90
101
  }
91
102
  if (typeof t != "string")
92
103
  return t === 0 ? t : +t;
93
- t = On(t);
94
- var n = Un.test(t);
95
- return n || Bn.test(t) ? Yn(t.slice(2), n ? 2 : 8) : Wn.test(t) ? ze : +t;
104
+ t = ei(t);
105
+ var n = ni.test(t);
106
+ return n || ii.test(t) ? ai(t.slice(2), n ? 2 : 8) : ti.test(t) ? We : +t;
96
107
  }
97
- function st(t) {
98
- return t == null ? "" : rt(t);
108
+ function ft(t) {
109
+ return t == null ? "" : mt(t);
99
110
  }
100
- function Hn(t, e, n, i) {
101
- var a = -1, o = t == null ? 0 : t.length;
102
- for (i && o && (n = t[++a]); ++a < o; )
103
- n = e(n, t[a], a, t);
111
+ function ri(t, e, n, a) {
112
+ var i = -1, r = t == null ? 0 : t.length;
113
+ for (a && r && (n = t[++i]); ++i < r; )
114
+ n = e(n, t[i], i, t);
104
115
  return n;
105
116
  }
106
- function Vn(t) {
117
+ function oi(t) {
107
118
  return function(e) {
108
119
  return t == null ? void 0 : t[e];
109
120
  };
110
121
  }
111
- var Qn = {
122
+ var si = {
112
123
  // Latin-1 Supplement block.
113
124
  À: "A",
114
125
  Á: "A",
@@ -301,152 +312,152 @@ var Qn = {
301
312
  œ: "oe",
302
313
  ʼn: "'n",
303
314
  ſ: "s"
304
- }, Jn = Vn(Qn);
305
- const Xn = Jn;
306
- var Fn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, $n = "\\u0300-\\u036f", _n = "\\ufe20-\\ufe2f", Kn = "\\u20d0-\\u20ff", qn = $n + _n + Kn, ei = "[" + qn + "]", ti = RegExp(ei, "g");
307
- function ni(t) {
308
- return t = st(t), t && t.replace(Fn, Xn).replace(ti, "");
315
+ }, ci = oi(si);
316
+ const ui = ci;
317
+ var li = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, di = "\\u0300-\\u036f", gi = "\\ufe20-\\ufe2f", Ii = "\\u20d0-\\u20ff", Mi = di + gi + Ii, mi = "[" + Mi + "]", fi = RegExp(mi, "g");
318
+ function pi(t) {
319
+ return t = ft(t), t && t.replace(li, ui).replace(fi, "");
309
320
  }
310
- var ii = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
311
- function ai(t) {
312
- return t.match(ii) || [];
321
+ var vi = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
322
+ function yi(t) {
323
+ return t.match(vi) || [];
313
324
  }
314
- var oi = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
315
- function ri(t) {
316
- return oi.test(t);
325
+ var ji = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
326
+ function Ai(t) {
327
+ return ji.test(t);
317
328
  }
318
- var ct = "\\ud800-\\udfff", si = "\\u0300-\\u036f", ci = "\\ufe20-\\ufe2f", ui = "\\u20d0-\\u20ff", li = si + ci + ui, ut = "\\u2700-\\u27bf", lt = "a-z\\xdf-\\xf6\\xf8-\\xff", di = "\\xac\\xb1\\xd7\\xf7", gi = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Ii = "\\u2000-\\u206f", Mi = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", dt = "A-Z\\xc0-\\xd6\\xd8-\\xde", fi = "\\ufe0e\\ufe0f", gt = di + gi + Ii + Mi, It = "['’]", Ze = "[" + gt + "]", mi = "[" + li + "]", Mt = "\\d+", pi = "[" + ut + "]", ft = "[" + lt + "]", mt = "[^" + ct + gt + Mt + ut + lt + dt + "]", vi = "\\ud83c[\\udffb-\\udfff]", yi = "(?:" + mi + "|" + vi + ")", ji = "[^" + ct + "]", pt = "(?:\\ud83c[\\udde6-\\uddff]){2}", vt = "[\\ud800-\\udbff][\\udc00-\\udfff]", B = "[" + dt + "]", Ai = "\\u200d", Te = "(?:" + ft + "|" + mt + ")", Li = "(?:" + B + "|" + mt + ")", Re = "(?:" + It + "(?:d|ll|m|re|s|t|ve))?", Ge = "(?:" + It + "(?:D|LL|M|RE|S|T|VE))?", yt = yi + "?", jt = "[" + fi + "]?", Ni = "(?:" + Ai + "(?:" + [ji, pt, vt].join("|") + ")" + jt + yt + ")*", Si = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Di = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", hi = jt + yt + Ni, xi = "(?:" + [pi, pt, vt].join("|") + ")" + hi, Ci = RegExp([
319
- B + "?" + ft + "+" + Re + "(?=" + [Ze, B, "$"].join("|") + ")",
320
- Li + "+" + Ge + "(?=" + [Ze, B + Te, "$"].join("|") + ")",
321
- B + "?" + Te + "+" + Re,
322
- B + "+" + Ge,
323
- Di,
324
- Si,
325
- Mt,
326
- xi
329
+ var pt = "\\ud800-\\udfff", Li = "\\u0300-\\u036f", Ni = "\\ufe20-\\ufe2f", Si = "\\u20d0-\\u20ff", hi = Li + Ni + Si, vt = "\\u2700-\\u27bf", yt = "a-z\\xdf-\\xf6\\xf8-\\xff", Di = "\\xac\\xb1\\xd7\\xf7", Ci = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", xi = "\\u2000-\\u206f", wi = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", jt = "A-Z\\xc0-\\xd6\\xd8-\\xde", bi = "\\ufe0e\\ufe0f", At = Di + Ci + xi + wi, Lt = "['’]", Be = "[" + At + "]", Pi = "[" + hi + "]", Nt = "\\d+", zi = "[" + vt + "]", St = "[" + yt + "]", ht = "[^" + pt + At + Nt + vt + yt + jt + "]", Ti = "\\ud83c[\\udffb-\\udfff]", Ei = "(?:" + Pi + "|" + Ti + ")", Zi = "[^" + pt + "]", Dt = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ct = "[\\ud800-\\udbff][\\udc00-\\udfff]", X = "[" + jt + "]", Ri = "\\u200d", Ye = "(?:" + St + "|" + ht + ")", Oi = "(?:" + X + "|" + ht + ")", He = "(?:" + Lt + "(?:d|ll|m|re|s|t|ve))?", Ve = "(?:" + Lt + "(?:D|LL|M|RE|S|T|VE))?", xt = Ei + "?", wt = "[" + bi + "]?", ki = "(?:" + Ri + "(?:" + [Zi, Dt, Ct].join("|") + ")" + wt + xt + ")*", Gi = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Wi = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Ui = wt + xt + ki, Bi = "(?:" + [zi, Dt, Ct].join("|") + ")" + Ui, Yi = RegExp([
330
+ X + "?" + St + "+" + He + "(?=" + [Be, X, "$"].join("|") + ")",
331
+ Oi + "+" + Ve + "(?=" + [Be, X + Ye, "$"].join("|") + ")",
332
+ X + "?" + Ye + "+" + He,
333
+ X + "+" + Ve,
334
+ Wi,
335
+ Gi,
336
+ Nt,
337
+ Bi
327
338
  ].join("|"), "g");
328
- function wi(t) {
329
- return t.match(Ci) || [];
339
+ function Hi(t) {
340
+ return t.match(Yi) || [];
330
341
  }
331
- function bi(t, e, n) {
332
- return t = st(t), e = n ? void 0 : e, e === void 0 ? ri(t) ? wi(t) : ai(t) : t.match(e) || [];
342
+ function Vi(t, e, n) {
343
+ return t = ft(t), e = n ? void 0 : e, e === void 0 ? Ai(t) ? Hi(t) : yi(t) : t.match(e) || [];
333
344
  }
334
- var Pi = "['’]", zi = RegExp(Pi, "g");
335
- function Ei(t) {
345
+ var Qi = "['’]", Ji = RegExp(Qi, "g");
346
+ function Xi(t) {
336
347
  return function(e) {
337
- return Hn(bi(ni(e).replace(zi, "")), t, "");
348
+ return ri(Vi(pi(e).replace(Ji, "")), t, "");
338
349
  };
339
350
  }
340
- var Zi = function() {
341
- return it.Date.now();
351
+ var Fi = function() {
352
+ return gt.Date.now();
342
353
  };
343
- const me = Zi;
344
- var Ti = "Expected a function", Ri = Math.max, Gi = Math.min;
345
- function ki(t, e, n) {
346
- var i, a, o, r, s, u, l = 0, d = !1, c = !1, g = !0;
354
+ const Le = Fi;
355
+ var $i = "Expected a function", _i = Math.max, Ki = Math.min;
356
+ function qi(t, e, n) {
357
+ var a, i, r, o, s, u, l = 0, d = !1, c = !1, g = !0;
347
358
  if (typeof t != "function")
348
- throw new TypeError(Ti);
349
- e = Ee(e) || 0, pe(n) && (d = !!n.leading, c = "maxWait" in n, o = c ? Ri(Ee(n.maxWait) || 0, e) : o, g = "trailing" in n ? !!n.trailing : g);
350
- function I(N) {
351
- var Z = i, W = a;
352
- return i = a = void 0, l = N, r = t.apply(W, Z), r;
359
+ throw new TypeError($i);
360
+ e = Ue(e) || 0, Ne(n) && (d = !!n.leading, c = "maxWait" in n, r = c ? _i(Ue(n.maxWait) || 0, e) : r, g = "trailing" in n ? !!n.trailing : g);
361
+ function I(S) {
362
+ var Z = a, H = i;
363
+ return a = i = void 0, l = S, o = t.apply(H, Z), o;
353
364
  }
354
- function M(N) {
355
- return l = N, s = setTimeout(A, e), d ? I(N) : r;
365
+ function m(S) {
366
+ return l = S, s = setTimeout(j, e), d ? I(S) : o;
356
367
  }
357
- function f(N) {
358
- var Z = N - u, W = N - l, $ = e - Z;
359
- return c ? Gi($, o - W) : $;
368
+ function p(S) {
369
+ var Z = S - u, H = S - l, O = e - Z;
370
+ return c ? Ki(O, r - H) : O;
360
371
  }
361
- function p(N) {
362
- var Z = N - u, W = N - l;
363
- return u === void 0 || Z >= e || Z < 0 || c && W >= o;
372
+ function f(S) {
373
+ var Z = S - u, H = S - l;
374
+ return u === void 0 || Z >= e || Z < 0 || c && H >= r;
364
375
  }
365
- function A() {
366
- var N = me();
367
- if (p(N))
368
- return v(N);
369
- s = setTimeout(A, f(N));
376
+ function j() {
377
+ var S = Le();
378
+ if (f(S))
379
+ return y(S);
380
+ s = setTimeout(j, p(S));
370
381
  }
371
- function v(N) {
372
- return s = void 0, g && i ? I(N) : (i = a = void 0, r);
382
+ function y(S) {
383
+ return s = void 0, g && a ? I(S) : (a = i = void 0, o);
373
384
  }
374
385
  function h() {
375
- s !== void 0 && clearTimeout(s), l = 0, i = u = a = s = void 0;
386
+ s !== void 0 && clearTimeout(s), l = 0, a = u = i = s = void 0;
376
387
  }
377
- function P() {
378
- return s === void 0 ? r : v(me());
388
+ function z() {
389
+ return s === void 0 ? o : y(Le());
379
390
  }
380
- function O() {
381
- var N = me(), Z = p(N);
382
- if (i = arguments, a = this, u = N, Z) {
391
+ function Y() {
392
+ var S = Le(), Z = f(S);
393
+ if (a = arguments, i = this, u = S, Z) {
383
394
  if (s === void 0)
384
- return M(u);
395
+ return m(u);
385
396
  if (c)
386
- return clearTimeout(s), s = setTimeout(A, e), I(u);
397
+ return clearTimeout(s), s = setTimeout(j, e), I(u);
387
398
  }
388
- return s === void 0 && (s = setTimeout(A, e)), r;
399
+ return s === void 0 && (s = setTimeout(j, e)), o;
389
400
  }
390
- return O.cancel = h, O.flush = P, O;
401
+ return Y.cancel = h, Y.flush = z, Y;
391
402
  }
392
- var Oi = Ei(function(t, e, n) {
403
+ var ea = Xi(function(t, e, n) {
393
404
  return t + (n ? "-" : "") + e.toLowerCase();
394
405
  });
395
- const At = Oi;
396
- function y(t) {
397
- return $e({
406
+ const bt = ea;
407
+ function v(t) {
408
+ return rt({
398
409
  name: t.name,
399
410
  inheritAttrs: !1,
400
411
  setup(e, n) {
401
- const { attrs: i, slots: a, emit: o } = n, r = i, s = o, u = (d, c) => {
402
- const g = At(d);
412
+ const { attrs: a, slots: i, emit: r } = n, o = a, s = r, u = (d, c) => {
413
+ const g = bt(d);
403
414
  s(d, c), d !== g && s(g, c);
404
- }, l = new Proxy(a, {
415
+ }, l = new Proxy(i, {
405
416
  get(d, c, g) {
406
417
  var I;
407
- return (I = Reflect.get(d, c, g)) != null ? I : Reflect.get(r, c);
418
+ return (I = Reflect.get(d, c, g)) != null ? I : Reflect.get(o, c);
408
419
  }
409
420
  });
410
- return t(r, { ...n, slots: l, emit: u });
421
+ return t(o, { ...n, slots: l, emit: u });
411
422
  }
412
423
  });
413
424
  }
414
- function Q(t) {
425
+ function J(t) {
415
426
  return {
416
- props: (e) => $e({
427
+ props: (e) => rt({
417
428
  name: t.name,
418
429
  inheritAttrs: !1,
419
430
  props: e,
420
- setup(n, i) {
421
- const a = n, { slots: o, emit: r } = i, s = r, u = (d, c) => {
422
- const g = At(d);
431
+ setup(n, a) {
432
+ const i = n, { slots: r, emit: o } = a, s = o, u = (d, c) => {
433
+ const g = bt(d);
423
434
  s(d, c), d !== g && s(g, c);
424
- }, l = new Proxy(o, {
435
+ }, l = new Proxy(r, {
425
436
  get(d, c, g) {
426
437
  var I;
427
- return (I = Reflect.get(d, c, g)) != null ? I : Reflect.get(a, c);
438
+ return (I = Reflect.get(d, c, g)) != null ? I : Reflect.get(i, c);
428
439
  }
429
440
  });
430
- return t(a, { ...i, slots: l, emit: u });
441
+ return t(i, { ...a, slots: l, emit: u });
431
442
  }
432
443
  })
433
444
  };
434
445
  }
435
- const E = m, De = "zh-CN", ke = (t) => t != null && typeof t == "object" && Number.isFinite(t.lat) && Number.isFinite(t.lng);
436
- var Wi = typeof WeakMap == "function", Oe = Object.keys;
437
- function oe(t, e) {
446
+ const E = M, xe = "zh-CN", Qe = (t) => t != null && typeof t == "object" && Number.isFinite(t.lat) && Number.isFinite(t.lng);
447
+ var ta = typeof WeakMap == "function", Je = Object.keys;
448
+ function le(t, e) {
438
449
  return t === e || t !== t && e !== e;
439
450
  }
440
- function We(t) {
451
+ function Xe(t) {
441
452
  return t.constructor === Object || t.constructor == null;
442
453
  }
443
- function Ue(t) {
454
+ function Fe(t) {
444
455
  return !!t && typeof t.then == "function";
445
456
  }
446
- function Be(t) {
457
+ function $e(t) {
447
458
  return !!(t && t.$$typeof);
448
459
  }
449
- function Ui() {
460
+ function na() {
450
461
  var t = [];
451
462
  return {
452
463
  delete: function(e) {
@@ -462,252 +473,252 @@ function Ui() {
462
473
  return t[n][1];
463
474
  },
464
475
  set: function(e, n) {
465
- for (var i = 0; i < t.length; ++i)
466
- if (t[i][0] === e) {
467
- t[i][1] = n;
476
+ for (var a = 0; a < t.length; ++a)
477
+ if (t[a][0] === e) {
478
+ t[a][1] = n;
468
479
  return;
469
480
  }
470
481
  t.push([e, n]);
471
482
  }
472
483
  };
473
484
  }
474
- var Bi = function(t) {
485
+ var ia = function(t) {
475
486
  return t ? function() {
476
487
  return /* @__PURE__ */ new WeakMap();
477
- } : Ui;
478
- }(Wi);
479
- function Lt(t) {
488
+ } : na;
489
+ }(ta);
490
+ function Pt(t) {
480
491
  return function(n) {
481
- var i = t || n;
482
- return function(o, r, s, u, l, d, c) {
483
- c === void 0 && (c = Bi());
484
- var g = !!o && typeof o == "object", I = !!r && typeof r == "object";
492
+ var a = t || n;
493
+ return function(r, o, s, u, l, d, c) {
494
+ c === void 0 && (c = ia());
495
+ var g = !!r && typeof r == "object", I = !!o && typeof o == "object";
485
496
  if (g !== I)
486
497
  return !1;
487
498
  if (!g && !I)
488
- return i(o, r, c);
489
- var M = c.get(o);
490
- if (M && c.get(r))
491
- return M === r;
492
- c.set(o, r), c.set(r, o);
493
- var f = i(o, r, c);
494
- return c.delete(o), c.delete(r), f;
499
+ return a(r, o, c);
500
+ var m = c.get(r);
501
+ if (m && c.get(o))
502
+ return m === o;
503
+ c.set(r, o), c.set(o, r);
504
+ var p = a(r, o, c);
505
+ return c.delete(r), c.delete(o), p;
495
506
  };
496
507
  };
497
508
  }
498
- function Yi(t, e, n, i) {
499
- var a = t.length;
500
- if (e.length !== a)
509
+ function aa(t, e, n, a) {
510
+ var i = t.length;
511
+ if (e.length !== i)
501
512
  return !1;
502
- for (; a-- > 0; )
503
- if (!n(t[a], e[a], a, a, t, e, i))
513
+ for (; i-- > 0; )
514
+ if (!n(t[i], e[i], i, i, t, e, a))
504
515
  return !1;
505
516
  return !0;
506
517
  }
507
- function Hi(t, e, n, i) {
508
- var a = t.size === e.size;
509
- if (a && t.size) {
510
- var o = {}, r = 0;
518
+ function ra(t, e, n, a) {
519
+ var i = t.size === e.size;
520
+ if (i && t.size) {
521
+ var r = {}, o = 0;
511
522
  t.forEach(function(s, u) {
512
- if (a) {
523
+ if (i) {
513
524
  var l = !1, d = 0;
514
525
  e.forEach(function(c, g) {
515
- !l && !o[d] && (l = n(u, g, r, d, t, e, i) && n(s, c, u, g, t, e, i), l && (o[d] = !0)), d++;
516
- }), r++, a = l;
526
+ !l && !r[d] && (l = n(u, g, o, d, t, e, a) && n(s, c, u, g, t, e, a), l && (r[d] = !0)), d++;
527
+ }), o++, i = l;
517
528
  }
518
529
  });
519
530
  }
520
- return a;
531
+ return i;
521
532
  }
522
- var Vi = "_owner", Qi = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
523
- function Ye(t, e, n, i) {
524
- var a = Oe(t), o = a.length;
525
- if (Oe(e).length !== o)
533
+ var oa = "_owner", sa = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
534
+ function _e(t, e, n, a) {
535
+ var i = Je(t), r = i.length;
536
+ if (Je(e).length !== r)
526
537
  return !1;
527
- if (o)
528
- for (var r = void 0; o-- > 0; ) {
529
- if (r = a[o], r === Vi) {
530
- var s = Be(t), u = Be(e);
538
+ if (r)
539
+ for (var o = void 0; r-- > 0; ) {
540
+ if (o = i[r], o === oa) {
541
+ var s = $e(t), u = $e(e);
531
542
  if ((s || u) && s !== u)
532
543
  return !1;
533
544
  }
534
- if (!Qi(e, r) || !n(t[r], e[r], r, r, t, e, i))
545
+ if (!sa(e, o) || !n(t[o], e[o], o, o, t, e, a))
535
546
  return !1;
536
547
  }
537
548
  return !0;
538
549
  }
539
- var Ji = function() {
550
+ var ca = function() {
540
551
  return /foo/g.flags === "g" ? function(e, n) {
541
552
  return e.source === n.source && e.flags === n.flags;
542
553
  } : function(e, n) {
543
554
  return e.source === n.source && e.global === n.global && e.ignoreCase === n.ignoreCase && e.multiline === n.multiline && e.unicode === n.unicode && e.sticky === n.sticky && e.lastIndex === n.lastIndex;
544
555
  };
545
556
  }();
546
- function Xi(t, e, n, i) {
547
- var a = t.size === e.size;
548
- if (a && t.size) {
549
- var o = {};
550
- t.forEach(function(r, s) {
551
- if (a) {
557
+ function ua(t, e, n, a) {
558
+ var i = t.size === e.size;
559
+ if (i && t.size) {
560
+ var r = {};
561
+ t.forEach(function(o, s) {
562
+ if (i) {
552
563
  var u = !1, l = 0;
553
564
  e.forEach(function(d, c) {
554
- !u && !o[l] && (u = n(r, d, s, c, t, e, i), u && (o[l] = !0)), l++;
555
- }), a = u;
565
+ !u && !r[l] && (u = n(o, d, s, c, t, e, a), u && (r[l] = !0)), l++;
566
+ }), i = u;
556
567
  }
557
568
  });
558
569
  }
559
- return a;
570
+ return i;
560
571
  }
561
- var Fi = typeof Map == "function", $i = typeof Set == "function", He = Object.prototype.valueOf;
562
- function te(t) {
572
+ var la = typeof Map == "function", da = typeof Set == "function", Ke = Object.prototype.valueOf;
573
+ function oe(t) {
563
574
  var e = (
564
575
  /* eslint-disable no-use-before-define */
565
- typeof t == "function" ? t(n) : function(i, a, o, r, s, u, l) {
566
- return n(i, a, l);
576
+ typeof t == "function" ? t(n) : function(a, i, r, o, s, u, l) {
577
+ return n(a, i, l);
567
578
  }
568
579
  );
569
- function n(i, a, o) {
570
- if (i === a)
580
+ function n(a, i, r) {
581
+ if (a === i)
571
582
  return !0;
572
- if (i && a && typeof i == "object" && typeof a == "object") {
573
- if (We(i) && We(a))
574
- return Ye(i, a, e, o);
575
- var r = Array.isArray(i), s = Array.isArray(a);
576
- return r || s ? r === s && Yi(i, a, e, o) : (r = i instanceof Date, s = a instanceof Date, r || s ? r === s && oe(i.getTime(), a.getTime()) : (r = i instanceof RegExp, s = a instanceof RegExp, r || s ? r === s && Ji(i, a) : Ue(i) || Ue(a) ? i === a : Fi && (r = i instanceof Map, s = a instanceof Map, r || s) ? r === s && Hi(i, a, e, o) : $i && (r = i instanceof Set, s = a instanceof Set, r || s) ? r === s && Xi(i, a, e, o) : i.valueOf !== He || a.valueOf !== He ? oe(i.valueOf(), a.valueOf()) : Ye(i, a, e, o)));
583
+ if (a && i && typeof a == "object" && typeof i == "object") {
584
+ if (Xe(a) && Xe(i))
585
+ return _e(a, i, e, r);
586
+ var o = Array.isArray(a), s = Array.isArray(i);
587
+ return o || s ? o === s && aa(a, i, e, r) : (o = a instanceof Date, s = i instanceof Date, o || s ? o === s && le(a.getTime(), i.getTime()) : (o = a instanceof RegExp, s = i instanceof RegExp, o || s ? o === s && ca(a, i) : Fe(a) || Fe(i) ? a === i : la && (o = a instanceof Map, s = i instanceof Map, o || s) ? o === s && ra(a, i, e, r) : da && (o = a instanceof Set, s = i instanceof Set, o || s) ? o === s && ua(a, i, e, r) : a.valueOf !== Ke || i.valueOf !== Ke ? le(a.valueOf(), i.valueOf()) : _e(a, i, e, r)));
577
588
  }
578
- return i !== i && a !== a;
589
+ return a !== a && i !== i;
579
590
  }
580
591
  return n;
581
592
  }
582
- te();
583
- te(function() {
584
- return oe;
593
+ oe();
594
+ oe(function() {
595
+ return le;
585
596
  });
586
- te(Lt());
587
- te(Lt(oe));
588
- const C = ([t, e]) => ({
597
+ oe(Pt());
598
+ oe(Pt(le));
599
+ const w = ([t, e]) => ({
589
600
  lng: t,
590
601
  lat: e
591
- }), fe = (t) => {
602
+ }), Ae = (t) => {
592
603
  const e = [], n = t.split("*");
593
- for (const [i, a] of n.entries())
594
- a && e.push({ value: a, type: i % 2 === 0 ? "normal" : "emphasize" });
604
+ for (const [a, i] of n.entries())
605
+ i && e.push({ value: i, type: a % 2 === 0 ? "normal" : "emphasize" });
595
606
  return e;
596
- }, Nt = (t) => `${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`, St = (t) => t.slice(2).toLowerCase(), _i = (t) => {
607
+ }, zt = (t) => `${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`, Tt = (t) => t.slice(2).toLowerCase(), ga = (t) => {
597
608
  switch (t) {
598
609
  case "en":
599
610
  return "style_en";
600
611
  case "zh":
601
612
  return "style_zh_cn";
602
613
  }
603
- }, ve = (t) => [t.lng, t.lat], Dt = (t) => (...e) => {
614
+ }, C = (t) => [t.lng, t.lat], Et = (t) => (...e) => {
604
615
  setTimeout(() => t == null ? void 0 : t(...e));
605
- }, Ki = (t) => {
616
+ }, Ia = (t) => {
606
617
  const { address_components: e } = t, n = e.find(
607
- (a) => a.types[0] === "administrative_area_level_1" || a.types[0] === "administrative_area_level_2"
618
+ (i) => i.types[0] === "administrative_area_level_1" || i.types[0] === "administrative_area_level_2"
608
619
  );
609
620
  if (n)
610
621
  return n.long_name;
611
- const i = e.findIndex((a) => a.types[0] === "country");
612
- if (i > 0)
613
- return e[i - 1].long_name;
614
- }, ht = te((t) => (e, n) => ke(e) || ke(n) ? new google.maps.LatLng(e).equals(new google.maps.LatLng(n)) : t(e, n));
615
- function xt() {
622
+ const a = e.findIndex((i) => i.types[0] === "country");
623
+ if (a > 0)
624
+ return e[a - 1].long_name;
625
+ }, Zt = oe((t) => (e, n) => Qe(e) || Qe(n) ? new google.maps.LatLng(e).equals(new google.maps.LatLng(n)) : t(e, n));
626
+ function Rt() {
616
627
  let t;
617
628
  return function(n) {
618
- return ht(n, t) || (t = n), t;
629
+ return Zt(n, t) || (t = n), t;
619
630
  };
620
631
  }
621
- function ne(t, e, n) {
622
- const i = xt();
623
- return b(() => i(t()), e, {
632
+ function se(t, e, n) {
633
+ const a = Rt();
634
+ return b(() => a(t()), e, {
624
635
  immediate: !1,
625
636
  flush: "post",
626
637
  ...n
627
638
  });
628
639
  }
629
- function J(t, e, n) {
630
- const i = xt();
631
- return b(() => i(t()), e, {
640
+ function q(t, e, n) {
641
+ const a = Rt();
642
+ return b(() => a(t()), e, {
632
643
  immediate: !0,
633
644
  flush: "post",
634
645
  ...n
635
646
  });
636
647
  }
637
- function qi(t) {
648
+ function Ma(t) {
638
649
  return `set${t.charAt(0).toUpperCase()}${t.slice(1)}`;
639
650
  }
640
- function ea(t, e, n, i) {
641
- const a = n.map(
642
- ({ name: o }) => () => e[o]
651
+ function ma(t, e, n, a) {
652
+ const i = n.map(
653
+ ({ name: r }) => () => e[r]
643
654
  );
644
655
  b(
645
- a,
646
- (o, r) => {
656
+ i,
657
+ (r, o) => {
647
658
  const s = t.value;
648
659
  if (s)
649
- for (const [u, l] of o.entries()) {
650
- const { name: d, defaultValue: c } = n[u], g = r[u];
651
- ht(l, g) || s[qi(d)](l != null ? l : c);
660
+ for (const [u, l] of r.entries()) {
661
+ const { name: d, defaultValue: c } = n[u], g = o[u];
662
+ Zt(l, g) || s[Ma(d)](l != null ? l : c);
652
663
  }
653
664
  },
654
665
  {
655
666
  immediate: !0,
656
667
  flush: "post",
657
- ...i
668
+ ...a
658
669
  }
659
670
  );
660
671
  }
661
- function he(t, e, n, i) {
662
- return ea(t, e, n, {
672
+ function we(t, e, n, a) {
673
+ return ma(t, e, n, {
663
674
  immediate: !1,
664
- ...i
675
+ ...a
665
676
  });
666
677
  }
667
- function re(t, e, n, i) {
668
- k((a) => {
669
- const o = t == null ? void 0 : t.value;
670
- if (!o)
678
+ function ae(t, e, n, a) {
679
+ B((i) => {
680
+ const r = t == null ? void 0 : t.value;
681
+ if (!r)
671
682
  return;
672
- const r = [];
673
- for (const s of i) {
674
- const u = Nt(s), l = St(s), d = (c) => n(u, c);
675
- o.on(l, d), r.push(() => o == null ? void 0 : o.off(l, d));
683
+ const o = [];
684
+ for (const s of a) {
685
+ const u = zt(s), l = Tt(s), d = (c) => n(u, c);
686
+ r.on(l, d), o.push(() => r == null ? void 0 : r.off(l, d));
676
687
  }
677
- a(() => {
678
- for (const s of r)
688
+ i(() => {
689
+ for (const s of o)
679
690
  s();
680
691
  });
681
692
  });
682
693
  }
683
- function q(t, e, n, i) {
684
- k((a) => {
685
- const o = t == null ? void 0 : t.value;
686
- if (!o)
694
+ function K(t, e, n, a) {
695
+ B((i) => {
696
+ const r = t == null ? void 0 : t.value;
697
+ if (!r)
687
698
  return;
688
- const r = [];
689
- for (const s of i) {
690
- const u = Nt(s), l = St(s), d = (g) => n(u, g), c = o.addListener(l, d);
691
- r.push(() => google.maps.event.removeListener(c));
699
+ const o = [];
700
+ for (const s of a) {
701
+ const u = zt(s), l = Tt(s), d = (g) => n(u, g), c = r.addListener(l, d);
702
+ o.push(() => google.maps.event.removeListener(c));
692
703
  }
693
- a(() => {
694
- for (const s of r)
704
+ i(() => {
705
+ for (const s of o)
695
706
  s();
696
707
  });
697
708
  });
698
709
  }
699
- const R = y(function(e) {
700
- const { registerOverlay: n } = e, i = w(), a = Ne();
701
- return Ie(() => {
710
+ const W = v(function(e, { emit: n }) {
711
+ const { registerOverlay: a } = e, i = P(), r = ye();
712
+ return pe(() => {
702
713
  i.value = new AMap.Marker({ ...e });
703
- }), Me(() => {
714
+ }), ve(() => {
704
715
  var o;
705
716
  (o = i.value) == null || o.setMap(null);
706
- }), nt({ registerOverlay: n, overlayRef: i }), k(() => {
707
- var r;
708
- const o = a == null ? void 0 : a.value;
709
- o && ((r = i.value) == null || r.setMap(o));
710
- }), he(i, e, [
717
+ }), dt({ registerOverlay: a, overlayRef: i }), B(() => {
718
+ var s;
719
+ const o = r == null ? void 0 : r.value;
720
+ o && ((s = i.value) == null || s.setMap(o));
721
+ }), we(i, e, [
711
722
  { name: "anchor", defaultValue: "" },
712
723
  { name: "offset", defaultValue: [0, 0] },
713
724
  { name: "clickable", defaultValue: !1 },
@@ -721,1508 +732,1983 @@ const R = y(function(e) {
721
732
  { name: "content", defaultValue: "" },
722
733
  { name: "title", defaultValue: "" },
723
734
  { name: "extData", defaultValue: "" }
724
- ]), () => null;
725
- }), G = y(function(e) {
726
- const { registerOverlay: n } = e, i = w(), a = Se();
727
- return nt({ registerOverlay: n, overlayRef: i }), Ie(() => {
728
- const { registerOverlay: o, ...r } = e;
729
- i.value = new google.maps.marker.AdvancedMarkerView({ ...r });
730
- }), Me(() => {
735
+ ]), ae(i, e, n, ["onClick"]), () => null;
736
+ }), U = v(function(e, { emit: n }) {
737
+ const { registerOverlay: a } = e, i = P(), r = je(), o = (s) => n(s, { target: i.value });
738
+ return dt({ registerOverlay: a, overlayRef: i }), pe(() => {
739
+ const { registerOverlay: s, ...u } = e;
740
+ i.value = new google.maps.marker.AdvancedMarkerView({ ...u }), i.value.addListener;
741
+ }), ve(() => {
731
742
  i.value && (i.value.map = null);
732
- }), k(() => {
733
- const o = a == null ? void 0 : a.value;
734
- !o || !i.value || (i.value.map = o);
735
- }), ne(
743
+ }), B(() => {
744
+ const s = r == null ? void 0 : r.value;
745
+ !s || !i.value || (i.value.map = s);
746
+ }), se(
736
747
  () => {
737
- const { content: o, registerOverlay: r, ...s } = e;
738
- return s;
748
+ const { content: s, registerOverlay: u, ...l } = e;
749
+ return l;
739
750
  },
740
- (o) => {
741
- i.value && Object.assign(i.value, o);
751
+ (s) => {
752
+ i.value && Object.assign(i.value, s);
742
753
  }
743
754
  ), b(
744
755
  () => e.content,
745
- (o) => {
746
- i.value && (i.value.content = o);
756
+ (s) => {
757
+ i.value && (i.value.content = s);
747
758
  },
748
759
  {
749
760
  flush: "post"
750
761
  }
751
- ), () => null;
752
- }), z = (t, e, n) => {
753
- const { class: i, ...a } = e != null ? e : {}, o = document.createElement(t);
754
- return i && (o.className = i), Object.assign(o, a), n && (o.innerHTML = n), o;
755
- }, Ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";
756
- var wt = "rgf09w0";
757
- const bt = y(function(e) {
762
+ ), K(i, e, o, ["onClick"]), () => null;
763
+ }), T = (t, e, n) => {
764
+ const { class: a, ...i } = e != null ? e : {}, r = document.createElement(t);
765
+ return a && (r.className = a), Object.assign(r, i), n && (r.innerHTML = n), r;
766
+ }, Ot = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";
767
+ var kt = "rgf09w0";
768
+ const Gt = v(function(e) {
758
769
  const n = L(() => `
759
- <img src="${Ct}" class="${wt}">
770
+ <img src="${Ot}" class="${kt}">
760
771
  `);
761
- return () => m(R, {
772
+ return () => M(W, {
762
773
  attrs: {
763
774
  position: e.position,
764
775
  content: n.value,
765
776
  anchor: "bottom-center"
766
777
  }
767
778
  });
768
- }), Pt = y(function(e) {
769
- const n = L(() => z("img", {
770
- class: wt,
771
- src: Ct
779
+ }), Wt = v(function(e) {
780
+ const n = L(() => T("img", {
781
+ class: kt,
782
+ src: Ot
772
783
  }));
773
- return () => m(G, {
784
+ return () => M(U, {
774
785
  attrs: {
775
- position: C(e.position),
786
+ position: w(e.position),
776
787
  content: n.value
777
788
  }
778
789
  });
779
790
  });
780
- y(function(e) {
781
- const n = j();
782
- return () => E(n.supplier === "gmap" ? Pt : bt, {
791
+ v(function(e) {
792
+ const n = A();
793
+ return () => E(n.supplier === "gmap" ? Wt : Gt, {
783
794
  attrs: e
784
795
  });
785
796
  });
786
- var zt = "_15rq2xn1", Et = "_15rq2xn0", Zt = "_15rq2xn3", Tt = "_15rq2xn2", Rt = "_15rq2xn4", Gt = "_15rq2xn6", kt = "_15rq2xn5";
787
- const ta = y(function(e) {
797
+ var Ut = "_15rq2xn1", Bt = "_15rq2xn0", Yt = "_15rq2xn3", Ht = "_15rq2xn2", Vt = "_15rq2xn4", Qt = "_15rq2xn6", Jt = "_15rq2xn5";
798
+ const fa = v(function(e) {
788
799
  const n = L(() => {
789
- var i;
800
+ var a;
790
801
  return `
791
- <div class="${Et}">
792
- <div class="${zt}">
802
+ <div class="${Bt}">
803
+ <div class="${Ut}">
793
804
  <div>
794
- <div class="${Tt}">${e.title}</div>
795
- <div class="${Zt}">${(i = e.description) != null ? i : ""}</div>
805
+ <div class="${Ht}">${e.title}</div>
806
+ <div class="${Yt}">${(a = e.description) != null ? a : ""}</div>
796
807
  </div>
797
- <img class="${Rt}" src="${Ke}" >
808
+ <img class="${Vt}" src="${st}" >
798
809
  </div>
799
- <div class="${kt}"></div>
800
- <img src="${T}" class="${Gt}">
810
+ <div class="${Jt}"></div>
811
+ <img src="${G}" class="${Qt}">
801
812
  </div>
802
813
  `;
803
814
  });
804
- return () => e.type === "locator" ? m(bt, {
815
+ return () => e.type === "locator" ? M(Gt, {
805
816
  attrs: {
806
817
  position: e.position
807
818
  }
808
- }) : m(R, {
819
+ }) : M(W, {
809
820
  attrs: {
810
821
  position: e.position,
811
822
  content: n.value,
812
823
  anchor: "bottom-center"
813
824
  }
814
825
  });
815
- }), na = y(function(e) {
826
+ }), pa = v(function(e) {
816
827
  const n = L(() => {
817
- var i;
818
- return z("div", {
819
- class: Et
828
+ var a;
829
+ return T("div", {
830
+ class: Bt
820
831
  }, `
821
- <div class="${zt}">
832
+ <div class="${Ut}">
822
833
  <div>
823
- <div class="${Tt}">${e.title}</div>
824
- <div class="${Zt}">${(i = e.description) != null ? i : ""}</div>
834
+ <div class="${Ht}">${e.title}</div>
835
+ <div class="${Yt}">${(a = e.description) != null ? a : ""}</div>
825
836
  </div>
826
- <img class="${Rt}" src="${Ke}" >
837
+ <img class="${Vt}" src="${st}" >
827
838
  </div>
828
- <div class="${kt}"></div>
829
- <img src="${T}" class="${Gt}">
839
+ <div class="${Jt}"></div>
840
+ <img src="${G}" class="${Qt}">
830
841
  `);
831
842
  });
832
- return () => e.type === "locator" ? m(Pt, {
843
+ return () => e.type === "locator" ? M(Wt, {
833
844
  attrs: {
834
845
  position: e.position
835
846
  }
836
- }) : m(G, {
847
+ }) : M(U, {
837
848
  attrs: {
838
- position: C(e.position),
849
+ position: w(e.position),
839
850
  content: n.value
840
851
  }
841
852
  });
842
- }), so = y(function(e) {
843
- const n = j();
844
- return () => E(n.supplier === "gmap" ? na : ta, {
853
+ }), br = v(function(e) {
854
+ const n = A();
855
+ return () => E(n.supplier === "gmap" ? pa : fa, {
845
856
  attrs: e
846
857
  });
847
- }), K = y(function(e) {
848
- const n = w(), i = Ne();
849
- return Ie(() => {
850
- n.value = new AMap.Polyline({ ...e });
851
- }), Me(() => {
852
- var a;
853
- (a = n.value) == null || a.setMap(null);
854
- }), k(() => {
855
- var o;
856
- const a = i == null ? void 0 : i.value;
857
- a && ((o = n.value) == null || o.setMap(a));
858
- }), he(n, e, [
859
- { name: "path", defaultValue: [[0, 0]] },
860
- { name: "extData", defaultValue: void 0 },
861
- { name: "draggable", defaultValue: !1 }
862
- ]), ne(
863
- () => {
864
- const { path: a, extData: o, draggable: r, ...s } = e;
865
- return s;
866
- },
867
- (a) => {
868
- var o;
869
- (o = n.value) == null || o.setOptions({ ...a });
870
- }
871
- ), () => null;
872
- }), ie = y(function(e) {
873
- const n = w(), i = Se();
874
- return Ie(() => {
875
- n.value = new google.maps.Polyline({ ...e });
876
- }), Me(() => {
877
- var a;
878
- (a = n.value) == null || a.setMap(null);
879
- }), k(() => {
880
- var o;
881
- const a = i == null ? void 0 : i.value;
882
- a && ((o = n.value) == null || o.setMap(a));
883
- }), ne(
884
- () => ({ ...e }),
885
- (a) => {
886
- var o;
887
- (o = n.value) == null || o.setOptions({ ...a });
858
+ });
859
+ var Se = {}, va = {
860
+ get exports() {
861
+ return Se;
862
+ },
863
+ set exports(t) {
864
+ Se = t;
865
+ }
866
+ };
867
+ (function(t, e) {
868
+ (function(n, a) {
869
+ t.exports = a();
870
+ })(bn, function() {
871
+ function n(c) {
872
+ var g = [];
873
+ return c.AMapUI && g.push(a(c.AMapUI)), c.Loca && g.push(i(c.Loca)), Promise.all(g);
888
874
  }
889
- ), () => null;
890
- }), ia = y(function(e) {
891
- return () => {
892
- const n = window.innerWidth * 0.01, i = 2.5 * n, a = 0.35 * n, o = 0.6 * n, r = 1 * n, s = 0.75 * n, u = e.done ? "#96B2CA" : "#487BF4", l = e.done ? "#7693AF" : "#4175F1", d = e.done ? "#7693AF" : "#6C95F5";
893
- return m("div", [m(K, {
894
- attrs: {
895
- path: e.path,
896
- strokeWeight: i + 2 * a + 2 * r,
897
- strokeOpacity: 1,
898
- strokeColor: l,
899
- lineJoin: "round",
900
- lineCap: "round"
901
- }
902
- }), m(K, {
903
- attrs: {
904
- path: e.path,
905
- strokeWeight: i + 2 * a,
906
- strokeOpacity: 1,
907
- strokeColor: d,
908
- lineJoin: "round",
909
- lineCap: "round",
910
- strokeStyle: "dashed",
911
- strokeDasharray: [s, s * 0.5]
912
- }
913
- }), m(K, {
914
- attrs: {
915
- path: e.path,
916
- strokeWeight: i,
917
- strokeOpacity: 1,
918
- strokeColor: u,
919
- lineJoin: "round",
920
- lineCap: "round"
921
- }
922
- }), m(K, {
923
- attrs: {
924
- showDir: !0,
925
- path: e.path,
926
- strokeWeight: i + 2 * o,
927
- strokeOpacity: 1,
928
- strokeColor: "transparent",
929
- lineJoin: "round",
930
- lineCap: "round"
931
- }
932
- })]);
933
- };
934
- }), aa = y(function(e) {
935
- const n = L(() => e.path.map(C));
936
- return () => {
937
- const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, s = 0.75 * i, u = 1 * i, l = e.done ? "#96B2CA" : "#487BF4", d = e.done ? "#7693AF" : "#4175F1", c = e.done ? "#7693AF" : "#6C95F5";
938
- return m("div", [m(ie, {
939
- attrs: {
940
- path: n.value,
941
- strokeWeight: o + 2 * r + 2 * u,
942
- strokeOpacity: 1,
943
- strokeColor: d
944
- }
945
- }), m(ie, {
946
- attrs: {
947
- path: n.value,
948
- icons: [{
949
- icon: {
950
- path: "M 0,-0.5 0,0.5",
951
- strokeWeight: o + 2 * r,
952
- strokeColor: c,
953
- fillColor: c,
954
- scale: 1
955
- },
956
- repeat: `${o}px`,
957
- offset: `${o / 2}px`
958
- }]
959
- }
960
- }), m(ie, {
961
- attrs: {
962
- path: n.value,
963
- strokeWeight: o,
964
- strokeOpacity: 1,
965
- strokeColor: l,
966
- icons: [{
967
- icon: {
968
- path: google.maps.SymbolPath.FORWARD_OPEN_ARROW,
969
- strokeColor: "white",
970
- strokeWeight: s,
971
- // todo: 3 maybe not responsive
972
- scale: 3
973
- },
974
- repeat: `${a}px`
975
- }]
976
- }
977
- })]);
978
- };
979
- }), co = y(function(e) {
980
- const n = j();
981
- return () => e.path.length ? E(n.supplier === "gmap" ? aa : ia, {
982
- attrs: e
983
- }) : null;
984
- }), Ot = (t) => {
985
- const e = x({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
986
- return J(
987
- () => ({ ...t }),
988
- ({ from: i, to: a }) => {
989
- n.search(
990
- AMap.LngLat.from(i),
991
- AMap.LngLat.from(a),
992
- { waypoints: [] },
993
- (o, r) => {
994
- switch (o) {
995
- case "complete": {
996
- let s = [];
997
- const l = r.routes[0];
998
- for (const d of l.steps) {
999
- const g = d.path.map(({ lng: I, lat: M }) => [I, M]);
1000
- s = s.concat(g);
1001
- }
1002
- e.path = s, e.distance = l.distance, e.duration = l.time;
1003
- return;
875
+ function a(c) {
876
+ return new Promise(function(g, I) {
877
+ var m = [];
878
+ if (c.plugins)
879
+ for (var p = 0; p < c.plugins.length; p += 1)
880
+ o.AMapUI.plugins.indexOf(c.plugins[p]) == -1 && m.push(c.plugins[p]);
881
+ if (s.AMapUI === r.failed)
882
+ I("前次请求 AMapUI 失败");
883
+ else if (s.AMapUI === r.notload) {
884
+ s.AMapUI = r.loading, o.AMapUI.version = c.version || o.AMapUI.version, p = o.AMapUI.version;
885
+ var f = document.body || document.head, j = document.createElement("script");
886
+ j.type = "text/javascript", j.src = "https://webapi.amap.com/ui/" + p + "/main.js", j.onerror = function(y) {
887
+ s.AMapUI = r.failed, I("请求 AMapUI 失败");
888
+ }, j.onload = function() {
889
+ if (s.AMapUI = r.loaded, m.length)
890
+ window.AMapUI.loadUI(m, function() {
891
+ for (var y = 0, h = m.length; y < h; y++) {
892
+ var z = m[y].split("/").slice(-1)[0];
893
+ window.AMapUI[z] = arguments[y];
894
+ }
895
+ for (g(); u.AMapUI.length; )
896
+ u.AMapUI.splice(0, 1)[0]();
897
+ });
898
+ else
899
+ for (g(); u.AMapUI.length; )
900
+ u.AMapUI.splice(0, 1)[0]();
901
+ }, f.appendChild(j);
902
+ } else
903
+ s.AMapUI === r.loaded ? c.version && c.version !== o.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : m.length ? window.AMapUI.loadUI(m, function() {
904
+ for (var y = 0, h = m.length; y < h; y++) {
905
+ var z = m[y].split("/").slice(-1)[0];
906
+ window.AMapUI[z] = arguments[y];
1004
907
  }
1005
- case "no_data":
1006
- e.path = [], e.distance = 0, e.duration = 0;
1007
- return;
1008
- default:
1009
- throw r;
908
+ g();
909
+ }) : g() : c.version && c.version !== o.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(y) {
910
+ y ? I(y) : m.length ? window.AMapUI.loadUI(m, function() {
911
+ for (var h = 0, z = m.length; h < z; h++) {
912
+ var Y = m[h].split("/").slice(-1)[0];
913
+ window.AMapUI[Y] = arguments[h];
914
+ }
915
+ g();
916
+ }) : g();
917
+ });
918
+ });
919
+ }
920
+ function i(c) {
921
+ return new Promise(function(g, I) {
922
+ if (s.Loca === r.failed)
923
+ I("前次请求 Loca 失败");
924
+ else if (s.Loca === r.notload) {
925
+ s.Loca = r.loading, o.Loca.version = c.version || o.Loca.version;
926
+ var m = o.Loca.version, p = o.AMap.version.startsWith("2"), f = m.startsWith("2");
927
+ if (p && !f || !p && f)
928
+ I("JSAPI 与 Loca 版本不对应!!");
929
+ else {
930
+ p = o.key, f = document.body || document.head;
931
+ var j = document.createElement("script");
932
+ j.type = "text/javascript", j.src = "https://webapi.amap.com/loca?v=" + m + "&key=" + p, j.onerror = function(y) {
933
+ s.Loca = r.failed, I("请求 AMapUI 失败");
934
+ }, j.onload = function() {
935
+ for (s.Loca = r.loaded, g(); u.Loca.length; )
936
+ u.Loca.splice(0, 1)[0]();
937
+ }, f.appendChild(j);
1010
938
  }
1011
- }
1012
- );
939
+ } else
940
+ s.Loca === r.loaded ? c.version && c.version !== o.Loca.version ? I("不允许多个版本 Loca 混用") : g() : c.version && c.version !== o.Loca.version ? I("不允许多个版本 Loca 混用") : u.Loca.push(function(y) {
941
+ y ? I(y) : I();
942
+ });
943
+ });
1013
944
  }
1014
- ), e;
1015
- }, Wt = (t) => {
1016
- const e = x({ path: [], distance: 0, duration: 0 }), n = new google.maps.DirectionsService();
1017
- return J(
1018
- () => ({ ...t }),
1019
- ({ from: i, to: a }) => {
1020
- n.route(
1021
- {
1022
- origin: { lng: i[0], lat: i[1] },
1023
- destination: { lng: a[0], lat: a[1] },
1024
- travelMode: google.maps.TravelMode.DRIVING
1025
- },
1026
- (o, r) => {
1027
- var s, u, l, d;
1028
- switch (r) {
1029
- case google.maps.DirectionsStatus.OK: {
1030
- let c = [], g = 0, I = 0;
1031
- const M = o.routes[0], f = M.overview_path.map((p) => [
1032
- p.lng(),
1033
- p.lat()
1034
- ]);
1035
- c = c.concat(f);
1036
- for (const p of M.legs)
1037
- g += (u = (s = p.distance) == null ? void 0 : s.value) != null ? u : 0, I += (d = (l = p.duration) == null ? void 0 : l.value) != null ? d : 0;
1038
- e.path = c, e.distance = g, e.duration = I;
1039
- return;
1040
- }
1041
- case google.maps.DirectionsStatus.ZERO_RESULTS:
1042
- case google.maps.DirectionsStatus.NOT_FOUND:
1043
- e.path = [], e.distance = 0, e.duration = 0;
1044
- return;
1045
- default:
1046
- throw new Error(r);
945
+ if (!window)
946
+ throw Error("AMap JSAPI can only be used in Browser.");
947
+ var r;
948
+ (function(c) {
949
+ c.notload = "notload", c.loading = "loading", c.loaded = "loaded", c.failed = "failed";
950
+ })(r || (r = {}));
951
+ var o = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, s = { AMap: r.notload, AMapUI: r.notload, Loca: r.notload }, u = { AMap: [], AMapUI: [], Loca: [] }, l = [], d = function(c) {
952
+ typeof c == "function" && (s.AMap === r.loaded ? c(window.AMap) : l.push(c));
953
+ };
954
+ return { load: function(c) {
955
+ return new Promise(function(g, I) {
956
+ if (s.AMap == r.failed)
957
+ I("");
958
+ else if (s.AMap == r.notload) {
959
+ var m = c.key, p = c.version, f = c.plugins;
960
+ m ? (window.AMap && location.host !== "lbs.amap.com" && I("禁止多种API加载方式混用"), o.key = m, o.AMap.version = p || o.AMap.version, o.AMap.plugins = f || o.AMap.plugins, s.AMap = r.loading, p = document.body || document.head, window.___onAPILoaded = function(y) {
961
+ if (delete window.___onAPILoaded, y)
962
+ s.AMap = r.failed, I(y);
963
+ else
964
+ for (s.AMap = r.loaded, n(c).then(function() {
965
+ g(window.AMap);
966
+ }).catch(I); l.length; )
967
+ l.splice(0, 1)[0]();
968
+ }, f = document.createElement("script"), f.type = "text/javascript", f.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + o.AMap.version + "&key=" + m + "&plugin=" + o.AMap.plugins.join(","), f.onerror = function(y) {
969
+ s.AMap = r.failed, I(y);
970
+ }, p.appendChild(f)) : I("请填写key");
971
+ } else if (s.AMap == r.loaded)
972
+ if (c.key && c.key !== o.key)
973
+ I("多个不一致的 key");
974
+ else if (c.version && c.version !== o.AMap.version)
975
+ I("不允许多个版本 JSAPI 混用");
976
+ else {
977
+ if (m = [], c.plugins)
978
+ for (p = 0; p < c.plugins.length; p += 1)
979
+ o.AMap.plugins.indexOf(c.plugins[p]) == -1 && m.push(c.plugins[p]);
980
+ m.length ? window.AMap.plugin(m, function() {
981
+ n(c).then(function() {
982
+ g(window.AMap);
983
+ }).catch(I);
984
+ }) : n(c).then(function() {
985
+ g(window.AMap);
986
+ }).catch(I);
1047
987
  }
988
+ else if (c.key && c.key !== o.key)
989
+ I("多个不一致的 key");
990
+ else if (c.version && c.version !== o.AMap.version)
991
+ I("不允许多个版本 JSAPI 混用");
992
+ else {
993
+ var j = [];
994
+ if (c.plugins)
995
+ for (p = 0; p < c.plugins.length; p += 1)
996
+ o.AMap.plugins.indexOf(c.plugins[p]) == -1 && j.push(c.plugins[p]);
997
+ d(function() {
998
+ j.length ? window.AMap.plugin(j, function() {
999
+ n(c).then(function() {
1000
+ g(window.AMap);
1001
+ }).catch(I);
1002
+ }) : n(c).then(function() {
1003
+ g(window.AMap);
1004
+ }).catch(I);
1005
+ });
1048
1006
  }
1049
- );
1050
- }
1051
- ), e;
1052
- }, uo = (t) => {
1053
- const { supplier: e } = j();
1054
- return e === "gmap" ? Wt(t) : Ot(t);
1055
- }, oa = (t, e, n) => {
1056
- if (!n)
1057
- return 0;
1058
- const { x: i, y: a } = n.lngLatToContainer(t), { x: o, y: r } = n.lngLatToContainer(e), s = Math.atan2(a - r, o - i);
1059
- return (Math.PI / 2 - s) / Math.PI * 180;
1060
- }, Ut = (t) => L(() => {
1061
- const { map: e, path: n } = t, [i, a] = n;
1062
- if (!(!i || !a || !e))
1063
- return oa(i, a, e);
1064
- }), Bt = (t) => L(() => {
1065
- const { path: e } = t, [n, i] = e;
1066
- if (!(!n || !i))
1067
- return google.maps.geometry.spherical.computeHeading(C(n), C(i));
1068
- }), lo = (t) => {
1069
- const { supplier: e } = j();
1070
- return e === "gmap" ? Bt(t) : Ut(t);
1071
- }, ra = y(function(e, {
1072
- slots: n
1073
- }) {
1074
- const i = Ne(), {
1075
- path: a,
1076
- distance: o,
1077
- duration: r
1078
- } = _e(Ot(e)), s = Ut(x({
1079
- path: a,
1080
- map: i
1081
- }));
1082
- return () => {
1083
- var u;
1084
- return m("div", [(u = n.render) == null ? void 0 : u.call(n, x({
1085
- path: a,
1086
- angle: s,
1087
- distance: o,
1088
- duration: r
1089
- }))]);
1090
- };
1091
- }), sa = y(function(e, {
1092
- slots: n
1093
- }) {
1094
- const i = Se(), {
1095
- path: a,
1096
- distance: o,
1097
- duration: r
1098
- } = _e(Wt(e)), s = Bt(x({
1099
- path: a,
1100
- map: i
1101
- }));
1102
- return () => {
1103
- var u;
1104
- return m("div", [(u = n.render) == null ? void 0 : u.call(n, x({
1105
- path: a,
1106
- angle: s,
1107
- distance: o,
1108
- duration: r
1109
- }))]);
1110
- };
1111
- }), go = y(function(e, {
1112
- slots: n
1113
- }) {
1114
- const {
1115
- supplier: i
1116
- } = j();
1117
- return () => E(i === "gmap" ? sa : ra, {
1118
- attrs: e,
1119
- scopedSlots: n
1007
+ });
1008
+ }, reset: function() {
1009
+ delete window.AMap, delete window.AMapUI, delete window.Loca, o = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, s = {
1010
+ AMap: r.notload,
1011
+ AMapUI: r.notload,
1012
+ Loca: r.notload
1013
+ }, u = { AMap: [], AMapUI: [], Loca: [] };
1014
+ } };
1120
1015
  });
1121
- }), Yt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249Ii41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb21wb3NpdGUgaW49InNoYWRvd0JsdXJPdXRlcjEiIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNzc0NTMwMTYgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzMCIgY3k9IjMwIiByPSIxMC41Ii8+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC40MDUgLjI2NCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";
1122
- function ca(t, e, n) {
1123
- return e in t ? Object.defineProperty(t, e, {
1124
- value: n,
1125
- enumerable: !0,
1126
- configurable: !0,
1127
- writable: !0
1128
- }) : t[e] = n, t;
1129
- }
1130
- function Ve(t, e) {
1131
- var n = Object.keys(t);
1132
- if (Object.getOwnPropertySymbols) {
1133
- var i = Object.getOwnPropertySymbols(t);
1134
- e && (i = i.filter(function(a) {
1135
- return Object.getOwnPropertyDescriptor(t, a).enumerable;
1136
- })), n.push.apply(n, i);
1016
+ })(va);
1017
+ var ya = function t(e, n) {
1018
+ if (e === n)
1019
+ return !0;
1020
+ if (e && n && typeof e == "object" && typeof n == "object") {
1021
+ if (e.constructor !== n.constructor)
1022
+ return !1;
1023
+ var a, i, r;
1024
+ if (Array.isArray(e)) {
1025
+ if (a = e.length, a != n.length)
1026
+ return !1;
1027
+ for (i = a; i-- !== 0; )
1028
+ if (!t(e[i], n[i]))
1029
+ return !1;
1030
+ return !0;
1031
+ }
1032
+ if (e.constructor === RegExp)
1033
+ return e.source === n.source && e.flags === n.flags;
1034
+ if (e.valueOf !== Object.prototype.valueOf)
1035
+ return e.valueOf() === n.valueOf();
1036
+ if (e.toString !== Object.prototype.toString)
1037
+ return e.toString() === n.toString();
1038
+ if (r = Object.keys(e), a = r.length, a !== Object.keys(n).length)
1039
+ return !1;
1040
+ for (i = a; i-- !== 0; )
1041
+ if (!Object.prototype.hasOwnProperty.call(n, r[i]))
1042
+ return !1;
1043
+ for (i = a; i-- !== 0; ) {
1044
+ var o = r[i];
1045
+ if (!t(e[o], n[o]))
1046
+ return !1;
1047
+ }
1048
+ return !0;
1137
1049
  }
1138
- return n;
1139
- }
1140
- function Qe(t) {
1141
- for (var e = 1; e < arguments.length; e++) {
1142
- var n = arguments[e] != null ? arguments[e] : {};
1143
- e % 2 ? Ve(Object(n), !0).forEach(function(i) {
1144
- ca(t, i, n[i]);
1145
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ve(Object(n)).forEach(function(i) {
1146
- Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
1050
+ return e !== e && n !== n;
1051
+ };
1052
+ const qe = "__googleMapsScriptId";
1053
+ var F;
1054
+ (function(t) {
1055
+ t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
1056
+ })(F || (F = {}));
1057
+ class V {
1058
+ /**
1059
+ * Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
1060
+ * using this library, instead the defaults are set by the Google Maps
1061
+ * JavaScript API server.
1062
+ *
1063
+ * ```
1064
+ * const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
1065
+ * ```
1066
+ */
1067
+ constructor({ apiKey: e, authReferrerPolicy: n, channel: a, client: i, id: r = qe, language: o, libraries: s = [], mapIds: u, nonce: l, region: d, retries: c = 3, url: g = "https://maps.googleapis.com/maps/api/js", version: I }) {
1068
+ if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = e, this.authReferrerPolicy = n, this.channel = a, this.client = i, this.id = r || qe, this.language = o, this.libraries = s, this.mapIds = u, this.nonce = l, this.region = d, this.retries = c, this.url = g, this.version = I, V.instance) {
1069
+ if (!ya(this.options, V.instance.options))
1070
+ throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(V.instance.options)}`);
1071
+ return V.instance;
1072
+ }
1073
+ V.instance = this;
1074
+ }
1075
+ get options() {
1076
+ return {
1077
+ version: this.version,
1078
+ apiKey: this.apiKey,
1079
+ channel: this.channel,
1080
+ client: this.client,
1081
+ id: this.id,
1082
+ libraries: this.libraries,
1083
+ language: this.language,
1084
+ region: this.region,
1085
+ mapIds: this.mapIds,
1086
+ nonce: this.nonce,
1087
+ url: this.url,
1088
+ authReferrerPolicy: this.authReferrerPolicy
1089
+ };
1090
+ }
1091
+ get status() {
1092
+ return this.errors.length ? F.FAILURE : this.done ? F.SUCCESS : this.loading ? F.LOADING : F.INITIALIZED;
1093
+ }
1094
+ get failed() {
1095
+ return this.done && !this.loading && this.errors.length >= this.retries + 1;
1096
+ }
1097
+ /**
1098
+ * CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]].
1099
+ *
1100
+ * @ignore
1101
+ */
1102
+ createUrl() {
1103
+ let e = this.url;
1104
+ return e += `?callback=${this.CALLBACK}`, this.apiKey && (e += `&key=${this.apiKey}`), this.channel && (e += `&channel=${this.channel}`), this.client && (e += `&client=${this.client}`), this.libraries.length > 0 && (e += `&libraries=${this.libraries.join(",")}`), this.language && (e += `&language=${this.language}`), this.region && (e += `&region=${this.region}`), this.version && (e += `&v=${this.version}`), this.mapIds && (e += `&map_ids=${this.mapIds.join(",")}`), this.authReferrerPolicy && (e += `&auth_referrer_policy=${this.authReferrerPolicy}`), e;
1105
+ }
1106
+ deleteScript() {
1107
+ const e = document.getElementById(this.id);
1108
+ e && e.remove();
1109
+ }
1110
+ /**
1111
+ * Load the Google Maps JavaScript API script and return a Promise.
1112
+ */
1113
+ load() {
1114
+ return this.loadPromise();
1115
+ }
1116
+ /**
1117
+ * Load the Google Maps JavaScript API script and return a Promise.
1118
+ *
1119
+ * @ignore
1120
+ */
1121
+ loadPromise() {
1122
+ return new Promise((e, n) => {
1123
+ this.loadCallback((a) => {
1124
+ a ? n(a.error) : e(window.google);
1125
+ });
1147
1126
  });
1148
1127
  }
1149
- return t;
1150
- }
1151
- var ua = (t, e, n) => {
1152
- for (var i of Object.keys(t)) {
1153
- var a;
1154
- if (t[i] !== ((a = e[i]) !== null && a !== void 0 ? a : n[i]))
1155
- return !1;
1128
+ /**
1129
+ * Load the Google Maps JavaScript API script with a callback.
1130
+ */
1131
+ loadCallback(e) {
1132
+ this.callbacks.push(e), this.execute();
1156
1133
  }
1157
- return !0;
1158
- }, X = (t) => (e) => {
1159
- var n = t.defaultClassName, i = Qe(Qe({}, t.defaultVariants), e);
1160
- for (var a in i) {
1161
- var o, r = (o = i[a]) !== null && o !== void 0 ? o : t.defaultVariants[a];
1162
- if (r != null) {
1163
- var s = r;
1164
- typeof s == "boolean" && (s = s === !0 ? "true" : "false");
1165
- var u = (
1166
- // @ts-expect-error
1167
- t.variantClassNames[a][s]
1168
- );
1169
- u && (n += " " + u);
1134
+ /**
1135
+ * Set the script on document.
1136
+ */
1137
+ setScript() {
1138
+ if (document.getElementById(this.id)) {
1139
+ this.callback();
1140
+ return;
1170
1141
  }
1142
+ const e = this.createUrl(), n = document.createElement("script");
1143
+ n.id = this.id, n.type = "text/javascript", n.src = e, n.onerror = this.loadErrorCallback.bind(this), n.defer = !0, n.async = !0, this.nonce && (n.nonce = this.nonce), document.head.appendChild(n);
1171
1144
  }
1172
- for (var [l, d] of t.compoundVariants)
1173
- ua(l, i, t.defaultVariants) && (n += " " + d);
1174
- return n;
1175
- }, Ht = X({ defaultClassName: "_1l6offo0", variantClassNames: { size: { small: "_1l6offo1", large: "_1l6offo2" } }, defaultVariants: {}, compoundVariants: [] });
1176
- const la = y(function(e) {
1177
- const n = L(() => {
1178
- const {
1179
- size: i = "large"
1180
- } = e;
1181
- return `
1182
- <img src="${i === "large" ? Yt : T}" class="${Ht({
1183
- size: i
1184
- })}">
1185
- `;
1186
- });
1187
- return () => m(R, {
1188
- attrs: {
1189
- position: e.position,
1190
- content: n.value,
1191
- anchor: "bottom-center"
1145
+ /**
1146
+ * Reset the loader state.
1147
+ */
1148
+ reset() {
1149
+ this.deleteScript(), this.done = !1, this.loading = !1, this.errors = [], this.onerrorEvent = null;
1150
+ }
1151
+ resetIfRetryingFailed() {
1152
+ this.failed && this.reset();
1153
+ }
1154
+ loadErrorCallback(e) {
1155
+ if (this.errors.push(e), this.errors.length <= this.retries) {
1156
+ const n = this.errors.length * Math.pow(2, this.errors.length);
1157
+ console.log(`Failed to load Google Maps script, retrying in ${n} ms.`), setTimeout(() => {
1158
+ this.deleteScript(), this.setScript();
1159
+ }, n);
1160
+ } else
1161
+ this.onerrorEvent = e, this.callback();
1162
+ }
1163
+ setCallback() {
1164
+ window.__googleMapsCallback = this.callback.bind(this);
1165
+ }
1166
+ callback() {
1167
+ this.done = !0, this.loading = !1, this.callbacks.forEach((e) => {
1168
+ e(this.onerrorEvent);
1169
+ }), this.callbacks = [];
1170
+ }
1171
+ execute() {
1172
+ if (this.resetIfRetryingFailed(), this.done)
1173
+ this.callback();
1174
+ else {
1175
+ if (window.google && window.google.maps && window.google.maps.version) {
1176
+ console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."), this.callback();
1177
+ return;
1178
+ }
1179
+ this.loading || (this.loading = !0, this.setCallback(), this.setScript());
1192
1180
  }
1181
+ }
1182
+ }
1183
+ const ja = [
1184
+ "AMap.Geolocation",
1185
+ "AMap.Geocoder",
1186
+ "AMap.PlaceSearch",
1187
+ "AMap.Driving",
1188
+ "AMap.Walking"
1189
+ ], Aa = ["marker", "places", "geometry"];
1190
+ var re = /* @__PURE__ */ ((t) => (t.LOADING = "LOADING", t.FAILURE = "FAILURE", t.SUCCESS = "SUCCESS", t))(re || {});
1191
+ const La = (t) => {
1192
+ const { onChange: e } = t;
1193
+ let n, a;
1194
+ const i = new Promise((s, u) => {
1195
+ n = s, a = u;
1196
+ }), r = P(
1197
+ "LOADING"
1198
+ /* LOADING */
1199
+ ), o = L(() => {
1200
+ const { onChange: s, loading: u, fallback: l, apiKey: d, apiSecret: c, apiServiceHost: g, version: I, ...m } = t;
1201
+ return { ...m, key: d, version: I != null ? I : "2.0.5.16" };
1193
1202
  });
1194
- }), da = y(function(e) {
1195
- const n = L(() => {
1196
- const {
1197
- size: i = "large"
1198
- } = e, a = i === "large" ? Yt : T;
1199
- return z("img", {
1200
- class: Ht({
1201
- size: i
1202
- }),
1203
- src: a
1204
- });
1205
- });
1206
- return () => m(G, {
1207
- attrs: {
1208
- position: C(e.position),
1209
- content: n.value
1203
+ return q(
1204
+ () => o.value,
1205
+ (s) => {
1206
+ const u = (l) => {
1207
+ r.value = l, l === "SUCCESS" && n(), l === "FAILURE" && a(), e == null || e(r.value);
1208
+ };
1209
+ u(
1210
+ "LOADING"
1211
+ /* LOADING */
1212
+ ), window._AMapSecurityConfig = t.apiServiceHost ? {
1213
+ serviceHost: t.apiServiceHost
1214
+ } : { securityJsCode: t.apiSecret }, Se.load(s).then(
1215
+ () => u(
1216
+ "SUCCESS"
1217
+ /* SUCCESS */
1218
+ ),
1219
+ () => u(
1220
+ "FAILURE"
1221
+ /* FAILURE */
1222
+ )
1223
+ );
1210
1224
  }
1225
+ ), { statusRef: r, readyPromise: i };
1226
+ }, Na = (t) => {
1227
+ const { onChange: e } = t;
1228
+ let n, a;
1229
+ const i = new Promise((s, u) => {
1230
+ n = s, a = u;
1231
+ }), r = P(
1232
+ "LOADING"
1233
+ /* LOADING */
1234
+ ), o = L(() => {
1235
+ const { onChange: s, fallback: u, loading: l, ...d } = t;
1236
+ return d;
1211
1237
  });
1212
- }), Io = y(function(e) {
1213
- const n = j();
1214
- return () => E(n.supplier === "gmap" ? da : la, {
1215
- attrs: e
1216
- });
1217
- });
1218
- var ye = /* @__PURE__ */ ((t) => (t.topLeft = "top-left", t.topCenter = "top-center", t.topRight = "top-right", t.middleLeft = "middle-left", t.center = "center", t.middleRight = "middle-right", t.bottomLeft = "bottom-left", t.bottomCenter = "bottom-center", t.bottomRight = "bottom-right", t))(ye || {});
1219
- var Je = X({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] }), Xe = X({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] }), Vt = "fhyw8b", Qt = X({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] }), se = X({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
1220
- const ga = Q(function(e) {
1221
- const n = L(() => {
1222
- var o;
1223
- return (o = e.textAlign) != null ? o : "right";
1224
- }), i = L(() => {
1225
- const {
1226
- hideIcon: o = !1
1227
- } = e;
1228
- return `
1229
- <div class="${Qt({
1230
- textAlign: n.value
1231
- })}">
1232
- <img class="${se({
1233
- hideIcon: o
1234
- })} ${Je({
1235
- textAlign: n.value
1236
- })}" src="${T}">
1237
- <div class="${Vt}">${e.label}</div>
1238
- </div>
1239
- `;
1240
- }), a = L(() => {
1241
- const {
1242
- hideIcon: o = !1
1243
- } = e;
1244
- return `<img class="${se({
1245
- hideIcon: o
1246
- })} ${Je({
1247
- textAlign: n.value
1248
- })}" src="${T}">`;
1249
- });
1250
- return () => m(R, {
1251
- attrs: {
1252
- position: e.position,
1253
- content: e.label ? i.value : a.value,
1254
- anchor: n.value === "left" ? ye.middleRight : ye.middleLeft
1238
+ return q(
1239
+ () => o.value,
1240
+ (s) => {
1241
+ const u = new V(s), l = (d) => {
1242
+ r.value = d, d === "SUCCESS" && n(), d === "FAILURE" && a(), e == null || e(r.value);
1243
+ };
1244
+ l(
1245
+ "LOADING"
1246
+ /* LOADING */
1247
+ ), u.load().then(
1248
+ () => l(
1249
+ "SUCCESS"
1250
+ /* SUCCESS */
1251
+ ),
1252
+ () => l(
1253
+ "FAILURE"
1254
+ /* FAILURE */
1255
+ )
1256
+ );
1255
1257
  }
1258
+ ), { statusRef: r, readyPromise: i };
1259
+ }, Sa = (t) => {
1260
+ const { gmapKey: e, amapKey: n, amapSecret: a, amapServiceHost: i, supplier: r, language: o, onChange: s } = t;
1261
+ return r === "gmap" ? Na({
1262
+ apiKey: e,
1263
+ language: o,
1264
+ version: "beta",
1265
+ libraries: Aa,
1266
+ onChange: s
1267
+ }) : La({
1268
+ apiKey: n,
1269
+ apiSecret: a,
1270
+ apiServiceHost: i,
1271
+ plugins: ja,
1272
+ onChange: s
1256
1273
  });
1257
- }).props(["hideIcon", "label", "position", "textAlign"]), Ia = Q(function(e) {
1258
- const n = L(() => {
1259
- var o;
1260
- return (o = e.textAlign) != null ? o : "right";
1261
- }), i = L(() => {
1262
- const {
1263
- hideIcon: o = !1
1264
- } = e;
1265
- return z("div", {
1266
- class: `${Qt({
1267
- textAlign: n.value
1268
- })} ${Xe({
1269
- textAlign: n.value
1270
- })}`
1271
- }, `
1272
- <img class="${se({
1273
- hideIcon: o
1274
- })}" src="${T}">
1275
- <div class="${Vt}">${e.label}</div>
1276
- `);
1277
- }), a = L(() => {
1278
- const {
1279
- hideIcon: o = !1
1280
- } = e;
1281
- return z("img", {
1282
- class: `${se({
1283
- hideIcon: o
1284
- })} ${Xe({
1285
- textAlign: n.value
1286
- })}`,
1287
- src: T
1288
- });
1289
- });
1290
- return () => m(G, {
1291
- attrs: {
1292
- position: C(e.position),
1293
- content: e.label ? i.value : a.value
1294
- }
1295
- });
1296
- }).props(["hideIcon", "label", "position", "textAlign"]), Ma = y(function(e) {
1297
- const n = j();
1298
- return () => E(n.supplier === "gmap" ? Ia : ga, {
1299
- attrs: e
1300
- });
1301
- }), Mo = y(function(e) {
1302
- return () => m("div", [e.places.map((n) => m(Ma, {
1303
- attrs: {
1304
- position: ve(n),
1305
- label: n.name,
1306
- textAlign: "left"
1307
- }
1308
- }))]);
1309
- }), Jt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zLjg2My44OTMtMy44NjMgMS45OTQgMCAxLjEwM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1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTIgMzAuMjE1YzEuOTUgMCAzLjUzMi0uODE2IDMuNTMyLTEuODIzIDAtMS4wMDctMS41ODEtMS44MjMtMy41MzItMS44MjMtMS45NSAwLTMuNTMyLjgxNi0zLjUzMiAxLjgyMyAwIDEuMDA3IDEuNTgxIDEuODIzIDMuNTMyIDEuODIzeiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyN2MyLjEyOCAwLS45LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
1310
- var H = X({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), Ft = "_4a4ovk1", $t = "_4a4ovk4", _t = "_4a4ovk5", Kt = "_4a4ovk3", ce = "_4a4ovk0", qt = "_4a4ovk2";
1311
- const fa = Q(function(e) {
1312
- const n = L(() => {
1313
- var o;
1314
- const i = e.type === "start" ? Xt : Jt, a = e.description ? fe(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${_t}">${r.value}</span>`).join("") : "";
1315
- return !e.description && !e.title ? `<img src="${i}" class="${H({
1316
- type: e.type
1317
- })}">` : e.description ? `
1318
- <div class="${ce}">
1319
- <div class="${Ft}">
1320
- <div class="${Kt}">${(o = e.title) != null ? o : ""}</div>
1321
- <div class="${$t}">${a}</div>
1322
- </div>
1323
- <img src="${i}" class="${H({
1324
- type: e.type
1325
- })}">
1326
- </div>
1327
- ` : `
1328
- <div class="${ce}">
1329
- <div class="${qt}">${e.title}</div>
1330
- <img src="${i}" class="${H({
1331
- type: e.type
1332
- })}">
1333
- </div>
1334
- `;
1335
- });
1336
- return () => m(R, {
1337
- attrs: {
1338
- registerOverlay: e.registerOverlay,
1339
- position: e.position,
1340
- content: n.value,
1341
- anchor: "bottom-center"
1274
+ };
1275
+ var ha = "_1d8ur7t0";
1276
+ const Da = v(function(e, { slots: n, emit: a }) {
1277
+ const {
1278
+ onDragStart: i,
1279
+ onDragEnd: r,
1280
+ mapRef: o,
1281
+ vectorMapForeign: s = "style_zh_cn",
1282
+ ...u
1283
+ } = e, l = L(() => ({
1284
+ dragEnable: !!e.dragEnable,
1285
+ zoomEnable: !!e.zoomEnable,
1286
+ jogEnable: !!e.jogEnable,
1287
+ pitchEnable: !!e.pitchEnable,
1288
+ rotateEnable: !!e.rotateEnable,
1289
+ animateEnable: !!e.animateEnable,
1290
+ keyboardEnable: !!e.keyboardEnable
1291
+ })), d = P(), c = P();
1292
+ return Cn(c), B(() => {
1293
+ if (c.value || !d.value)
1294
+ return;
1295
+ const g = new AMap.Map(d.value, {
1296
+ ...u,
1297
+ vectorMapForeign: s,
1298
+ mapStyle: "amap://styles/95498a904992a4c0b866a3e4d7729682"
1299
+ });
1300
+ c.value = g, o == null || o(g);
1301
+ }), se(
1302
+ () => l.value,
1303
+ (g) => {
1304
+ var I;
1305
+ (I = c.value) == null || I.setStatus(g);
1342
1306
  }
1343
- });
1344
- }).props(["type", "title", "registerOverlay", "position", "description"]), ma = Q(function(e) {
1345
- const n = L(() => {
1346
- var o;
1347
- const i = e.type === "start" ? Xt : Jt, a = e.description ? fe(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${_t}">${r.value}</span>`).join("") : "";
1348
- return !e.description && !e.title ? z("img", {
1349
- class: H({
1350
- type: e.type
1351
- }),
1352
- src: i
1353
- }) : e.description ? z("div", {
1354
- class: ce
1355
- }, `
1356
- <div class="${Ft}">
1357
- <div class="${Kt}">${(o = e.title) != null ? o : ""}</div>
1358
- <div class="${$t}">${a}</div>
1359
- </div>
1360
- <img src="${i}" class="${H({
1361
- type: e.type
1362
- })}">
1363
- `) : z("div", {
1364
- class: ce
1365
- }, `
1366
- <div class="${qt}">${e.title}</div>
1367
- <img src="${i}" class="${H({
1368
- type: e.type
1369
- })}">
1370
- `);
1371
- });
1372
- return () => m(G, {
1373
- attrs: {
1374
- registerOverlay: e.registerOverlay,
1375
- position: C(e.position),
1376
- content: n.value
1307
+ ), we(c, e, [
1308
+ { name: "center", defaultValue: [0, 0] },
1309
+ { name: "zooms", defaultValue: [0, 0] },
1310
+ { name: "zoom", defaultValue: 0 },
1311
+ { name: "layers", defaultValue: [] },
1312
+ { name: "limitBounds", defaultValue: [] },
1313
+ { name: "rotation", defaultValue: 0 },
1314
+ { name: "defaultCursor", defaultValue: "" },
1315
+ { name: "mapStyle", defaultValue: "" },
1316
+ { name: "features", defaultValue: [] },
1317
+ { name: "pitch", defaultValue: 0 },
1318
+ { name: "mask", defaultValue: [] },
1319
+ { name: "labelRejectMask", defaultValue: !1 }
1320
+ ]), ae(c, e, a, ["onDragStart", "onDragEnd"]), () => {
1321
+ var g;
1322
+ return M("div", { ref: d, class: ha }, (g = n.default) == null ? void 0 : g.call(n));
1323
+ };
1324
+ });
1325
+ let ce = "user";
1326
+ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
1327
+ ce = "api";
1328
+ try {
1329
+ e(), setTimeout(() => {
1330
+ ce = "user";
1331
+ }, 100);
1332
+ } catch (n) {
1333
+ throw ce = "user", n;
1334
+ }
1335
+ } }), xa = v(function(e, { slots: n, emit: a }) {
1336
+ const i = e.mapRef, r = L(() => {
1337
+ const { mapRef: c, onDragStart: g, onDragEnd: I, ...m } = e;
1338
+ return m;
1339
+ }), o = r.value, s = P(), u = P(), { executeMapApi: l } = Xt(), d = (c) => a(c, { target: u.value });
1340
+ return xn(u), B(() => {
1341
+ if (u.value || !s.value)
1342
+ return;
1343
+ let c;
1344
+ l(() => {
1345
+ c = new google.maps.Map(s.value, { ...o });
1346
+ }), u.value = c, i == null || i(c);
1347
+ }), se(
1348
+ () => r.value,
1349
+ (c) => {
1350
+ l(() => {
1351
+ var g;
1352
+ return (g = u.value) == null ? void 0 : g.setOptions({ ...c });
1353
+ });
1377
1354
  }
1378
- });
1379
- }).props(["type", "title", "registerOverlay", "position", "description"]), fo = y(function(e) {
1380
- const n = j();
1381
- return () => E(n.supplier === "gmap" ? ma : fa, {
1382
- attrs: e
1383
- });
1384
- }), ue = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyLjkzMiAwIDExLjA5IDAgMTEuMDlWNS44NnMuMTQtMS44NDIgMi41Mi0zLjU4M2MwIDAgMS4wNjQtLjg0NiAyLjQwNi0uODQ2IDEuMzQxIDAgOS4x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4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
1385
- var le = "_65j3sr1", en = "_4a4ovk5", tn = "_4a4ovk0", nn = "_4a4ovk2";
1386
- const pa = y(function(e) {
1387
- const n = L(() => {
1388
- var o;
1389
- const i = e.title ? fe(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${en}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
1390
- return e.title ? `
1391
- <div class="${tn}">
1392
- <div class="${nn}">${i}</div>
1393
- <img src="${ue}" class="${le}" style="${a}">
1394
- </div>
1395
- ` : `<img src="${ue}" class="${le}" style="${a}">`;
1396
- });
1397
- return () => m(R, {
1398
- attrs: {
1399
- position: e.position,
1400
- content: n.value,
1401
- anchor: "bottom-center"
1355
+ ), K(u, e, d, ["onDragStart", "onDragEnd"]), () => {
1356
+ var c;
1357
+ return M("div", { ref: s }, (c = n.default) == null ? void 0 : c.call(n));
1358
+ };
1359
+ }), Pr = J(function(e, {
1360
+ slots: n
1361
+ }) {
1362
+ const {
1363
+ statusRef: a,
1364
+ readyPromise: i
1365
+ } = Sa(e), r = new Proxy(e, {
1366
+ get(o, s, u) {
1367
+ return s === "status" ? a.value : s === "readyPromise" ? i : Reflect.get(o, s, u);
1402
1368
  }
1403
1369
  });
1404
- }), va = y(function(e) {
1405
- const n = L(() => {
1370
+ return Dn(r), () => {
1406
1371
  var o;
1407
- const i = e.title ? fe(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${en}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
1408
- return e.title ? z("div", {
1409
- class: tn
1410
- }, `
1411
- <div class="${nn}">${i}</div>
1412
- <img src="${ue}" class="${le}" style="${a}">
1413
- `) : z("img", {
1414
- class: le,
1415
- src: ue,
1416
- style: a
1417
- });
1418
- });
1419
- return () => m(G, {
1420
- attrs: {
1421
- position: C(e.position),
1422
- content: n.value
1423
- }
1424
- });
1425
- }), mo = y(function(e) {
1426
- const n = j();
1427
- return () => E(n.supplier === "gmap" ? va : pa, {
1428
- attrs: e
1429
- });
1430
- }), ya = y(function(e) {
1372
+ return M("div", [(o = n.default) == null ? void 0 : o.call(n)]);
1373
+ };
1374
+ }).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), wa = J(function(e, {
1375
+ slots: n,
1376
+ emit: a
1377
+ }) {
1378
+ const i = A(), r = ({
1379
+ target: s
1380
+ }) => {
1381
+ const {
1382
+ lng: u,
1383
+ lat: l
1384
+ } = s.getCenter();
1385
+ a("dragEnd", [u(), l()]);
1386
+ }, o = ({
1387
+ target: s
1388
+ }) => {
1389
+ const {
1390
+ lng: u,
1391
+ lat: l
1392
+ } = s.getCenter();
1393
+ a("dragEnd", [u, l]);
1394
+ };
1431
1395
  return () => {
1396
+ var p, f, j;
1432
1397
  const {
1433
- path: n
1398
+ supplier: s,
1399
+ gmapId: u,
1400
+ language: l = "zh",
1401
+ status: d
1402
+ } = i, {
1403
+ mapRef: c,
1404
+ center: g,
1405
+ zoom: I
1434
1406
  } = e;
1435
- if (n.length === 0)
1436
- return null;
1437
- const a = 2 * (window.innerWidth * 0.01);
1438
- return m(K, {
1407
+ if (d === re.LOADING)
1408
+ return (p = n.loading) == null ? void 0 : p.call(n);
1409
+ if (d === re.FAILURE)
1410
+ return (f = n.fallback) == null ? void 0 : f.call(n);
1411
+ const m = (j = n.default) == null ? void 0 : j.call(n);
1412
+ switch (s) {
1413
+ case "gmap":
1414
+ return M(xa, {
1415
+ attrs: {
1416
+ mapRef: c,
1417
+ mapId: u,
1418
+ center: g ? w(g) : void 0,
1419
+ zoom: I
1420
+ },
1421
+ on: {
1422
+ dragEnd: r
1423
+ }
1424
+ }, [m]);
1425
+ default:
1426
+ return M(Da, {
1427
+ attrs: {
1428
+ mapRef: c,
1429
+ vectorMapForeign: ga(l),
1430
+ center: g,
1431
+ zoom: I
1432
+ },
1433
+ on: {
1434
+ dragEnd: o
1435
+ }
1436
+ }, [m]);
1437
+ }
1438
+ };
1439
+ }).props(["center", "fallback", "loading", "mapRef", "zoom"]), Ft = (t) => {
1440
+ var d, c;
1441
+ const { onChange: e, onLoad: n, onLoadDefault: a, geoDefaultPosition: i } = t != null ? t : {}, r = D(!1), o = D(!1), s = D(), u = D({
1442
+ accuracy: 0,
1443
+ altitude: 0,
1444
+ altitudeAccuracy: 0,
1445
+ heading: 0,
1446
+ latitude: (d = i == null ? void 0 : i[1]) != null ? d : 0,
1447
+ longitude: (c = i == null ? void 0 : i[0]) != null ? c : 0,
1448
+ speed: 0
1449
+ }), l = D([u.value.longitude, u.value.latitude]);
1450
+ return b(
1451
+ () => !0,
1452
+ (g, I, m) => {
1453
+ r.value = !0;
1454
+ const p = navigator.geolocation.watchPosition(
1455
+ (f) => {
1456
+ const j = f.coords, y = [f.coords.longitude, f.coords.latitude];
1457
+ u.value = j, l.value = y, r.value && (r.value = !1, o.value = !0, n == null || n({ position: y, coordinate: j })), e == null || e({ position: y, coordinate: j });
1458
+ },
1459
+ (f) => {
1460
+ r.value = !1, s.value = f;
1461
+ const j = t == null ? void 0 : t.geoDefaultPosition;
1462
+ j && (a == null || a({ position: j })), console.log("errorRef = ", s);
1463
+ },
1464
+ // todo 要不要 timeout
1465
+ { timeout: 5e3, maximumAge: 0, enableHighAccuracy: !0 }
1466
+ );
1467
+ m(() => navigator.geolocation.clearWatch(p));
1468
+ },
1469
+ { immediate: !0 }
1470
+ ), {
1471
+ geoError: s,
1472
+ geoPosition: l,
1473
+ geoCoordinate: u,
1474
+ geoLoading: r,
1475
+ geoReady: o
1476
+ };
1477
+ }, ie = v(function(e) {
1478
+ const n = P(), a = ye();
1479
+ return pe(() => {
1480
+ n.value = new AMap.Polyline({ ...e });
1481
+ }), ve(() => {
1482
+ var i;
1483
+ (i = n.value) == null || i.setMap(null);
1484
+ }), B(() => {
1485
+ var r;
1486
+ const i = a == null ? void 0 : a.value;
1487
+ i && ((r = n.value) == null || r.setMap(i));
1488
+ }), we(n, e, [
1489
+ { name: "path", defaultValue: [[0, 0]] },
1490
+ { name: "extData", defaultValue: void 0 },
1491
+ { name: "draggable", defaultValue: !1 }
1492
+ ]), se(
1493
+ () => {
1494
+ const { path: i, extData: r, draggable: o, ...s } = e;
1495
+ return s;
1496
+ },
1497
+ (i) => {
1498
+ var r;
1499
+ (r = n.value) == null || r.setOptions({ ...i });
1500
+ }
1501
+ ), () => null;
1502
+ }), ue = v(function(e) {
1503
+ const n = P(), a = je();
1504
+ return pe(() => {
1505
+ n.value = new google.maps.Polyline({ ...e });
1506
+ }), ve(() => {
1507
+ var i;
1508
+ (i = n.value) == null || i.setMap(null);
1509
+ }), B(() => {
1510
+ var r;
1511
+ const i = a == null ? void 0 : a.value;
1512
+ i && ((r = n.value) == null || r.setMap(i));
1513
+ }), se(
1514
+ () => ({ ...e }),
1515
+ (i) => {
1516
+ var r;
1517
+ (r = n.value) == null || r.setOptions({ ...i });
1518
+ }
1519
+ ), () => null;
1520
+ }), ba = v(function(e) {
1521
+ return () => {
1522
+ const n = window.innerWidth * 0.01, a = 2.5 * n, i = 0.35 * n, r = 0.6 * n, o = 1 * n, s = 0.75 * n, u = e.done ? "#96B2CA" : "#487BF4", l = e.done ? "#7693AF" : "#4175F1", d = e.done ? "#7693AF" : "#6C95F5";
1523
+ return M("div", [M(ie, {
1439
1524
  attrs: {
1440
- path: n,
1441
- strokeWeight: a,
1525
+ path: e.path,
1526
+ strokeWeight: a + 2 * i + 2 * o,
1442
1527
  strokeOpacity: 1,
1443
- strokeColor: "#38A3FE",
1528
+ strokeColor: l,
1529
+ lineJoin: "round",
1530
+ lineCap: "round"
1531
+ }
1532
+ }), M(ie, {
1533
+ attrs: {
1534
+ path: e.path,
1535
+ strokeWeight: a + 2 * i,
1536
+ strokeOpacity: 1,
1537
+ strokeColor: d,
1538
+ lineJoin: "round",
1539
+ lineCap: "round",
1444
1540
  strokeStyle: "dashed",
1445
- strokeDasharray: [a, a * 1.5],
1541
+ strokeDasharray: [s, s * 0.5]
1542
+ }
1543
+ }), M(ie, {
1544
+ attrs: {
1545
+ path: e.path,
1546
+ strokeWeight: a,
1547
+ strokeOpacity: 1,
1548
+ strokeColor: u,
1446
1549
  lineJoin: "round",
1447
1550
  lineCap: "round"
1448
1551
  }
1449
- });
1552
+ }), M(ie, {
1553
+ attrs: {
1554
+ showDir: !0,
1555
+ path: e.path,
1556
+ strokeWeight: a + 2 * r,
1557
+ strokeOpacity: 1,
1558
+ strokeColor: "transparent",
1559
+ lineJoin: "round",
1560
+ lineCap: "round"
1561
+ }
1562
+ })]);
1450
1563
  };
1451
- }), ja = y(function(e) {
1452
- const n = L(() => e.path.map(C));
1564
+ }), Pa = v(function(e) {
1565
+ const n = L(() => e.path.map(w));
1453
1566
  return () => {
1454
- const i = n.value;
1455
- if (i.length === 0)
1456
- return null;
1457
- const o = 2 * (window.innerWidth * 0.01), r = o / 4;
1458
- return m(ie, {
1567
+ const a = window.innerWidth * 0.01, i = 10 * a, r = 2.5 * a, o = 0.35 * a, s = 0.75 * a, u = 1 * a, l = e.done ? "#96B2CA" : "#487BF4", d = e.done ? "#7693AF" : "#4175F1", c = e.done ? "#7693AF" : "#6C95F5";
1568
+ return M("div", [M(ue, {
1459
1569
  attrs: {
1460
- path: i,
1461
- strokeWeight: o,
1570
+ path: n.value,
1571
+ strokeWeight: r + 2 * o + 2 * u,
1462
1572
  strokeOpacity: 1,
1463
- strokeColor: "transparent",
1573
+ strokeColor: d
1574
+ }
1575
+ }), M(ue, {
1576
+ attrs: {
1577
+ path: n.value,
1464
1578
  icons: [{
1465
1579
  icon: {
1466
- path: `
1467
- M ${r}, ${r}
1468
- m -${r}, 0
1469
- a ${r},${r} 0 1,0 ${2 * r},0
1470
- a ${r},${r} 0 1,0 -${2 * r},0
1471
- `,
1472
- strokeColor: "#38A3FE",
1473
- fillColor: "#38A3FE",
1474
- fillOpacity: 1,
1475
- strokeOpacity: 1,
1476
- strokeWeight: o / 2,
1580
+ path: "M 0,-0.5 0,0.5",
1581
+ strokeWeight: r + 2 * o,
1582
+ strokeColor: c,
1583
+ fillColor: c,
1477
1584
  scale: 1
1478
1585
  },
1479
- repeat: `${o * 2}px`
1586
+ repeat: `${r}px`,
1587
+ offset: `${r / 2}px`
1480
1588
  }]
1481
1589
  }
1482
- });
1483
- };
1484
- }), po = y(function(e) {
1485
- const n = j();
1486
- return () => E(n.supplier === "gmap" ? ja : ya, {
1487
- attrs: e
1488
- });
1489
- }), an = (t) => {
1490
- const e = w([]), n = new AMap.Walking({});
1491
- return J(
1590
+ }), M(ue, {
1591
+ attrs: {
1592
+ path: n.value,
1593
+ strokeWeight: r,
1594
+ strokeOpacity: 1,
1595
+ strokeColor: l,
1596
+ icons: [{
1597
+ icon: {
1598
+ path: google.maps.SymbolPath.FORWARD_OPEN_ARROW,
1599
+ strokeColor: "white",
1600
+ strokeWeight: s,
1601
+ // todo: 3 maybe not responsive
1602
+ scale: 3
1603
+ },
1604
+ repeat: `${i}px`
1605
+ }]
1606
+ }
1607
+ })]);
1608
+ };
1609
+ }), be = v(function(e) {
1610
+ const n = A();
1611
+ return () => e.path.length ? E(n.supplier === "gmap" ? Pa : ba, {
1612
+ attrs: e
1613
+ }) : null;
1614
+ }), $t = (t) => {
1615
+ const e = x({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
1616
+ return q(
1492
1617
  () => ({ ...t }),
1493
- ({ from: i, to: a }) => {
1494
- n.search(AMap.LngLat.from(i), AMap.LngLat.from(a), (o, r) => {
1495
- switch (o) {
1496
- case "complete": {
1497
- let s = [];
1498
- const u = r;
1499
- for (const l of u.routes)
1618
+ ({ from: a, to: i }) => {
1619
+ n.search(
1620
+ AMap.LngLat.from(a),
1621
+ AMap.LngLat.from(i),
1622
+ { waypoints: [] },
1623
+ (r, o) => {
1624
+ switch (r) {
1625
+ case "complete": {
1626
+ let s = [];
1627
+ const l = o.routes[0];
1500
1628
  for (const d of l.steps) {
1501
- const c = d.path.map(({ lng: g, lat: I }) => [g, I]);
1502
- s = s.concat(c);
1629
+ const g = d.path.map(({ lng: I, lat: m }) => [I, m]);
1630
+ s = s.concat(g);
1503
1631
  }
1504
- e.value = s;
1505
- return;
1632
+ e.path = s, e.distance = l.distance, e.duration = l.time;
1633
+ return;
1634
+ }
1635
+ case "no_data":
1636
+ e.path = [], e.distance = 0, e.duration = 0;
1637
+ return;
1638
+ default:
1639
+ throw o;
1506
1640
  }
1507
- case "no_data":
1508
- e.value = [];
1509
- return;
1510
- default:
1511
- throw r;
1512
1641
  }
1513
- });
1642
+ );
1514
1643
  }
1515
1644
  ), e;
1516
- }, on = (t) => {
1517
- const e = w([]), n = new google.maps.DirectionsService();
1518
- return J(
1645
+ }, _t = (t) => {
1646
+ const e = x({ path: [], distance: 0, duration: 0 }), n = new google.maps.DirectionsService();
1647
+ return q(
1519
1648
  () => ({ ...t }),
1520
- ({ from: i, to: a }) => {
1649
+ ({ from: a, to: i }) => {
1521
1650
  n.route(
1522
1651
  {
1523
- origin: { lng: i[0], lat: i[1] },
1524
- destination: { lng: a[0], lat: a[1] },
1525
- travelMode: google.maps.TravelMode.WALKING
1652
+ origin: { lng: a[0], lat: a[1] },
1653
+ destination: { lng: i[0], lat: i[1] },
1654
+ travelMode: google.maps.TravelMode.DRIVING
1526
1655
  },
1527
- (o, r) => {
1528
- switch (r) {
1656
+ (r, o) => {
1657
+ var s, u, l, d;
1658
+ switch (o) {
1529
1659
  case google.maps.DirectionsStatus.OK: {
1530
- let s = [];
1531
- o == null || o.routes.map((u) => {
1532
- const l = u.overview_path.map((d) => [d.lng(), d.lat()]);
1533
- s = s.concat(l);
1534
- }), e.value = s;
1660
+ let c = [], g = 0, I = 0;
1661
+ const m = r.routes[0], p = m.overview_path.map((f) => [
1662
+ f.lng(),
1663
+ f.lat()
1664
+ ]);
1665
+ c = c.concat(p);
1666
+ for (const f of m.legs)
1667
+ g += (u = (s = f.distance) == null ? void 0 : s.value) != null ? u : 0, I += (d = (l = f.duration) == null ? void 0 : l.value) != null ? d : 0;
1668
+ e.path = c, e.distance = g, e.duration = I;
1535
1669
  return;
1536
1670
  }
1537
1671
  case google.maps.DirectionsStatus.ZERO_RESULTS:
1538
1672
  case google.maps.DirectionsStatus.NOT_FOUND:
1539
- e.value = [];
1673
+ e.path = [], e.distance = 0, e.duration = 0;
1540
1674
  return;
1541
1675
  default:
1542
- throw new Error(r);
1676
+ throw new Error(o);
1543
1677
  }
1544
1678
  }
1545
1679
  );
1546
1680
  }
1547
1681
  ), e;
1548
- }, vo = (t) => {
1549
- const { supplier: e } = j();
1550
- return e === "gmap" ? on(t) : an(t);
1551
- }, Aa = y(function(e, {
1682
+ }, zr = (t) => {
1683
+ const { supplier: e } = A();
1684
+ return e === "gmap" ? _t(t) : $t(t);
1685
+ }, za = (t, e, n) => {
1686
+ if (!n)
1687
+ return 0;
1688
+ const { x: a, y: i } = n.lngLatToContainer(t), { x: r, y: o } = n.lngLatToContainer(e), s = Math.atan2(i - o, r - a);
1689
+ return (Math.PI / 2 - s) / Math.PI * 180;
1690
+ }, Kt = (t) => L(() => {
1691
+ const { map: e, path: n } = t, [a, i] = n;
1692
+ if (!(!a || !i || !e))
1693
+ return za(a, i, e);
1694
+ }), qt = (t) => L(() => {
1695
+ const { path: e } = t, [n, a] = e;
1696
+ if (!(!n || !a))
1697
+ return google.maps.geometry.spherical.computeHeading(w(n), w(a));
1698
+ }), Tr = (t) => {
1699
+ const { supplier: e } = A();
1700
+ return e === "gmap" ? qt(t) : Kt(t);
1701
+ }, Ta = v(function(e, {
1552
1702
  slots: n
1553
1703
  }) {
1554
- const i = an(e);
1704
+ const a = ye(), {
1705
+ path: i,
1706
+ distance: r,
1707
+ duration: o
1708
+ } = ot($t(e)), s = Kt(x({
1709
+ path: i,
1710
+ map: a
1711
+ }));
1555
1712
  return () => {
1556
- var a;
1557
- return m("div", [(a = n.render) == null ? void 0 : a.call(n, x({
1558
- path: i
1713
+ var u;
1714
+ return M("div", [(u = n.render) == null ? void 0 : u.call(n, x({
1715
+ path: i,
1716
+ angle: s,
1717
+ distance: r,
1718
+ duration: o
1559
1719
  }))]);
1560
1720
  };
1561
- }), La = y(function(e, {
1721
+ }), Ea = v(function(e, {
1562
1722
  slots: n
1563
1723
  }) {
1564
- const i = on(e);
1724
+ const a = je(), {
1725
+ path: i,
1726
+ distance: r,
1727
+ duration: o
1728
+ } = ot(_t(e)), s = qt(x({
1729
+ path: i,
1730
+ map: a
1731
+ }));
1565
1732
  return () => {
1566
- var a;
1567
- return m("div", [(a = n.render) == null ? void 0 : a.call(n, x({
1568
- path: i
1733
+ var u;
1734
+ return M("div", [(u = n.render) == null ? void 0 : u.call(n, x({
1735
+ path: i,
1736
+ angle: s,
1737
+ distance: r,
1738
+ duration: o
1569
1739
  }))]);
1570
1740
  };
1571
- }), yo = y(function(e, {
1741
+ }), Pe = v(function(e, {
1572
1742
  slots: n
1573
1743
  }) {
1574
1744
  const {
1575
- supplier: i
1576
- } = j();
1577
- return () => E(i === "gmap" ? La : Aa, {
1745
+ supplier: a
1746
+ } = A();
1747
+ return () => E(a === "gmap" ? Ea : Ta, {
1578
1748
  attrs: e,
1579
1749
  scopedSlots: n
1580
1750
  });
1581
- }), de = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
1582
- var rn = "rrvp0y3", ge = "rrvp0y2";
1583
- const Na = y(function(e) {
1584
- const n = L(() => `<img src="${de}" class="${ge}">`), i = L(() => `<img src="${de}" class="${ge} ${rn}">`);
1585
- return () => m("div", [m(R, {
1751
+ }), en = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249Ii41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb21wb3NpdGUgaW49InNoYWRvd0JsdXJPdXRlcjEiIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNzc0NTMwMTYgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzMCIgY3k9IjMwIiByPSIxMC41Ii8+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC40MDUgLjI2NCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";
1752
+ function Za(t, e, n) {
1753
+ return e in t ? Object.defineProperty(t, e, {
1754
+ value: n,
1755
+ enumerable: !0,
1756
+ configurable: !0,
1757
+ writable: !0
1758
+ }) : t[e] = n, t;
1759
+ }
1760
+ function et(t, e) {
1761
+ var n = Object.keys(t);
1762
+ if (Object.getOwnPropertySymbols) {
1763
+ var a = Object.getOwnPropertySymbols(t);
1764
+ e && (a = a.filter(function(i) {
1765
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
1766
+ })), n.push.apply(n, a);
1767
+ }
1768
+ return n;
1769
+ }
1770
+ function tt(t) {
1771
+ for (var e = 1; e < arguments.length; e++) {
1772
+ var n = arguments[e] != null ? arguments[e] : {};
1773
+ e % 2 ? et(Object(n), !0).forEach(function(a) {
1774
+ Za(t, a, n[a]);
1775
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : et(Object(n)).forEach(function(a) {
1776
+ Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(n, a));
1777
+ });
1778
+ }
1779
+ return t;
1780
+ }
1781
+ var Ra = (t, e, n) => {
1782
+ for (var a of Object.keys(t)) {
1783
+ var i;
1784
+ if (t[a] !== ((i = e[a]) !== null && i !== void 0 ? i : n[a]))
1785
+ return !1;
1786
+ }
1787
+ return !0;
1788
+ }, ee = (t) => (e) => {
1789
+ var n = t.defaultClassName, a = tt(tt({}, t.defaultVariants), e);
1790
+ for (var i in a) {
1791
+ var r, o = (r = a[i]) !== null && r !== void 0 ? r : t.defaultVariants[i];
1792
+ if (o != null) {
1793
+ var s = o;
1794
+ typeof s == "boolean" && (s = s === !0 ? "true" : "false");
1795
+ var u = (
1796
+ // @ts-expect-error
1797
+ t.variantClassNames[i][s]
1798
+ );
1799
+ u && (n += " " + u);
1800
+ }
1801
+ }
1802
+ for (var [l, d] of t.compoundVariants)
1803
+ Ra(l, a, t.defaultVariants) && (n += " " + d);
1804
+ return n;
1805
+ }, tn = ee({ defaultClassName: "_1l6offo0", variantClassNames: { size: { small: "_1l6offo1", large: "_1l6offo2" } }, defaultVariants: {}, compoundVariants: [] });
1806
+ const Oa = v(function(e) {
1807
+ const n = L(() => {
1808
+ const {
1809
+ size: a = "large"
1810
+ } = e;
1811
+ return `
1812
+ <img src="${a === "large" ? en : G}" class="${tn({
1813
+ size: a
1814
+ })}">
1815
+ `;
1816
+ });
1817
+ return () => M(W, {
1586
1818
  attrs: {
1587
1819
  position: e.position,
1820
+ content: n.value,
1588
1821
  anchor: "bottom-center",
1822
+ registerOverlay: e.registerOverlay
1823
+ }
1824
+ });
1825
+ }), ka = v(function(e) {
1826
+ const n = L(() => {
1827
+ const {
1828
+ size: a = "large"
1829
+ } = e, i = a === "large" ? en : G;
1830
+ return T("img", {
1831
+ class: tn({
1832
+ size: a
1833
+ }),
1834
+ src: i
1835
+ });
1836
+ });
1837
+ return () => M(U, {
1838
+ attrs: {
1839
+ position: w(e.position),
1840
+ content: n.value,
1841
+ registerOverlay: e.registerOverlay
1842
+ }
1843
+ });
1844
+ }), ze = v(function(e) {
1845
+ const n = A();
1846
+ return () => E(n.supplier === "gmap" ? ka : Oa, {
1847
+ attrs: e
1848
+ });
1849
+ });
1850
+ var he = /* @__PURE__ */ ((t) => (t.topLeft = "top-left", t.topCenter = "top-center", t.topRight = "top-right", t.middleLeft = "middle-left", t.center = "center", t.middleRight = "middle-right", t.bottomLeft = "bottom-left", t.bottomCenter = "bottom-center", t.bottomRight = "bottom-right", t))(he || {});
1851
+ var nt = ee({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] }), it = ee({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] }), nn = "fhyw8b", an = ee({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] }), de = ee({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
1852
+ const Ga = J(function(e, {
1853
+ emit: n
1854
+ }) {
1855
+ const a = L(() => {
1856
+ var s;
1857
+ return (s = e.textAlign) != null ? s : "right";
1858
+ }), i = L(() => {
1859
+ const {
1860
+ hideIcon: s = !1
1861
+ } = e;
1862
+ return `
1863
+ <div class="${an({
1864
+ textAlign: a.value
1865
+ })}">
1866
+ <img class="${de({
1867
+ hideIcon: s
1868
+ })} ${nt({
1869
+ textAlign: a.value
1870
+ })}" src="${G}">
1871
+ <div class="${nn}">${e.label}</div>
1872
+ </div>
1873
+ `;
1874
+ }), r = L(() => {
1875
+ const {
1876
+ hideIcon: s = !1
1877
+ } = e;
1878
+ return `<img class="${de({
1879
+ hideIcon: s
1880
+ })} ${nt({
1881
+ textAlign: a.value
1882
+ })}" src="${G}">`;
1883
+ }), o = (s) => {
1884
+ console.log("on amap marker e = ", s), n("click", e.position);
1885
+ };
1886
+ return () => M(W, {
1887
+ attrs: {
1888
+ position: e.position,
1889
+ content: e.label ? i.value : r.value,
1890
+ anchor: a.value === "left" ? he.middleRight : he.middleLeft
1891
+ },
1892
+ on: {
1893
+ click: o
1894
+ }
1895
+ });
1896
+ }).props(["hideIcon", "label", "position", "textAlign"]), Wa = J(function(e, {
1897
+ emit: n
1898
+ }) {
1899
+ const a = L(() => {
1900
+ var s;
1901
+ return (s = e.textAlign) != null ? s : "right";
1902
+ }), i = L(() => {
1903
+ const {
1904
+ hideIcon: s = !1
1905
+ } = e;
1906
+ return T("div", {
1907
+ class: `${an({
1908
+ textAlign: a.value
1909
+ })} ${it({
1910
+ textAlign: a.value
1911
+ })}`
1912
+ }, `
1913
+ <img class="${de({
1914
+ hideIcon: s
1915
+ })}" src="${G}">
1916
+ <div class="${nn}">${e.label}</div>
1917
+ `);
1918
+ }), r = L(() => {
1919
+ const {
1920
+ hideIcon: s = !1
1921
+ } = e;
1922
+ return T("img", {
1923
+ class: `${de({
1924
+ hideIcon: s
1925
+ })} ${it({
1926
+ textAlign: a.value
1927
+ })}`,
1928
+ src: G
1929
+ });
1930
+ }), o = (s) => {
1931
+ console.log("on gmap advanced marker view e = ", s), n("click", e.position);
1932
+ };
1933
+ return () => M(U, {
1934
+ attrs: {
1935
+ position: w(e.position),
1936
+ content: e.label ? i.value : r.value
1937
+ },
1938
+ on: {
1939
+ click: o
1940
+ }
1941
+ });
1942
+ }).props(["hideIcon", "label", "position", "textAlign"]), R = v(function(e, {
1943
+ emit: n
1944
+ }) {
1945
+ const a = A();
1946
+ return () => E(a.supplier === "gmap" ? Wa : Ga, {
1947
+ attrs: e,
1948
+ on: {
1949
+ click: (i) => n("click", i)
1950
+ }
1951
+ });
1952
+ }), rn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zLjg2My44OTMtMy44NjMgMS45OTQgMCAxLjEwMiAxLjczIDEuOTk1IDMuODYzIDEuOTk1eiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyNy4wMDZjMi4xMjggMC0uOS0zLjc0MyA1LjYyMS02LjY0M0MxOS44NDIgMTguNDUzIDIyIDE0Ljk1MyAyMiAxMC45NSAyMiA0LjkwMiAxNy4wNzUgMCAxMSAwUzAgNC45MDIgMCAxMC45NWMwIDMuOTE4IDIuMDY4IDcuMzU2IDUuMTc3IDkuMjlDMT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LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
1953
+ var $ = ee({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), sn = "_4a4ovk1", cn = "_4a4ovk4", un = "_4a4ovk5", ln = "_4a4ovk3", ge = "_4a4ovk0", dn = "_4a4ovk2";
1954
+ const Ua = J(function(e) {
1955
+ const n = L(() => {
1956
+ var r;
1957
+ const a = e.type === "start" ? on : rn, i = e.description ? Ae(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${un}">${o.value}</span>`).join("") : "";
1958
+ return !e.description && !e.title ? `<img src="${a}" class="${$({
1959
+ type: e.type
1960
+ })}">` : e.description ? `
1961
+ <div class="${ge}">
1962
+ <div class="${sn}">
1963
+ <div class="${ln}">${(r = e.title) != null ? r : ""}</div>
1964
+ <div class="${cn}">${i}</div>
1965
+ </div>
1966
+ <img src="${a}" class="${$({
1967
+ type: e.type
1968
+ })}">
1969
+ </div>
1970
+ ` : `
1971
+ <div class="${ge}">
1972
+ <div class="${dn}">${e.title}</div>
1973
+ <img src="${a}" class="${$({
1974
+ type: e.type
1975
+ })}">
1976
+ </div>
1977
+ `;
1978
+ });
1979
+ return () => M(W, {
1980
+ attrs: {
1981
+ registerOverlay: e.registerOverlay,
1982
+ position: e.position,
1983
+ content: n.value,
1984
+ anchor: "bottom-center"
1985
+ }
1986
+ });
1987
+ }).props(["type", "title", "registerOverlay", "position", "description"]), Ba = J(function(e) {
1988
+ const n = L(() => {
1989
+ var r;
1990
+ const a = e.type === "start" ? on : rn, i = e.description ? Ae(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${un}">${o.value}</span>`).join("") : "";
1991
+ return !e.description && !e.title ? T("img", {
1992
+ class: $({
1993
+ type: e.type
1994
+ }),
1995
+ src: a
1996
+ }) : e.description ? T("div", {
1997
+ class: ge
1998
+ }, `
1999
+ <div class="${sn}">
2000
+ <div class="${ln}">${(r = e.title) != null ? r : ""}</div>
2001
+ <div class="${cn}">${i}</div>
2002
+ </div>
2003
+ <img src="${a}" class="${$({
2004
+ type: e.type
2005
+ })}">
2006
+ `) : T("div", {
2007
+ class: ge
2008
+ }, `
2009
+ <div class="${dn}">${e.title}</div>
2010
+ <img src="${a}" class="${$({
2011
+ type: e.type
2012
+ })}">
2013
+ `);
2014
+ });
2015
+ return () => M(U, {
2016
+ attrs: {
2017
+ registerOverlay: e.registerOverlay,
2018
+ position: w(e.position),
1589
2019
  content: n.value
1590
2020
  }
1591
- }), m(R, {
2021
+ });
2022
+ }).props(["type", "title", "registerOverlay", "position", "description"]), k = v(function(e) {
2023
+ const n = A();
2024
+ return () => E(n.supplier === "gmap" ? Ba : Ua, {
2025
+ attrs: e
2026
+ });
2027
+ }), Ie = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub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mwtLjAxMy4yNDFjMC0uMDA0LS4yMTggMS43NjQtLjY0NiAyLjYwNnpNNy40NDcgMjMuOTNhMjAuMTIgMjAuMTIgMCAwMC0uMjk0LTIuNDQydi0uMDY1YzEuNTM4LS4zMiAzLjE2Ny0uNjQ5IDQuODYyLS42NDkgMS42NzUgMCAzLjI5NC4zMjYgNC44MTYuNjM3YTIyLjY3MyAyMi42NzMgMCAwMC0uMzAzIDIuNTJjLS4xNDcgMi44ODQuMDIgMy4zMTQuMjMyIDUuMDQ4LjAwNi4wNTcuMDI2LjE1Mi4wNTYuMjc0LTEuNTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
2028
+ var Me = "_65j3sr1", gn = "_4a4ovk5", In = "_4a4ovk0", Mn = "_4a4ovk2";
2029
+ const Ya = v(function(e) {
2030
+ const n = L(() => {
2031
+ var r;
2032
+ const a = e.title ? Ae(e.title).map((o) => o.type === "normal" ? o.value : `<span class="${gn}">${o.value}</span>`).join("") : "", i = `transform:rotate(${(r = e.angle) != null ? r : 0}deg)`;
2033
+ return e.title ? `
2034
+ <div class="${In}">
2035
+ <div class="${Mn}">${a}</div>
2036
+ <img src="${Ie}" class="${Me}" style="${i}">
2037
+ </div>
2038
+ ` : `<img src="${Ie}" class="${Me}" style="${i}">`;
2039
+ });
2040
+ return () => M(W, {
1592
2041
  attrs: {
1593
2042
  position: e.position,
2043
+ content: n.value,
1594
2044
  anchor: "bottom-center",
1595
- content: i.value
2045
+ registerOverlay: e.registerOverlay
1596
2046
  }
1597
- })]);
1598
- }), Sa = y(function(e) {
1599
- const n = L(() => z("img", {
1600
- class: ge,
1601
- src: de
1602
- })), i = L(() => z("img", {
1603
- class: `${ge} ${rn}`,
1604
- src: de
1605
- }));
2047
+ });
2048
+ }), Ha = v(function(e) {
2049
+ const n = L(() => {
2050
+ var r;
2051
+ const a = e.title ? Ae(e.title).map((o) => o.type === "normal" ? o.value : `<span class="${gn}">${o.value}</span>`).join("") : "", i = `transform:rotate(${(r = e.angle) != null ? r : 0}deg)`;
2052
+ return e.title ? T("div", {
2053
+ class: In
2054
+ }, `
2055
+ <div class="${Mn}">${a}</div>
2056
+ <img src="${Ie}" class="${Me}" style="${i}">
2057
+ `) : T("img", {
2058
+ class: Me,
2059
+ src: Ie,
2060
+ style: i
2061
+ });
2062
+ });
2063
+ return () => M(U, {
2064
+ attrs: {
2065
+ position: w(e.position),
2066
+ content: n.value,
2067
+ registerOverlay: e.registerOverlay
2068
+ }
2069
+ });
2070
+ }), Te = v(function(e) {
2071
+ const n = A();
2072
+ return () => E(n.supplier === "gmap" ? Ha : Ya, {
2073
+ attrs: e
2074
+ });
2075
+ }), Va = v(function(e) {
1606
2076
  return () => {
1607
- const a = C(e.position);
1608
- return m("div", [m(G, {
2077
+ const {
2078
+ path: n
2079
+ } = e;
2080
+ if (n.length === 0)
2081
+ return null;
2082
+ const i = 2 * (window.innerWidth * 0.01);
2083
+ return M(ie, {
1609
2084
  attrs: {
1610
- position: a,
1611
- content: n.value
2085
+ path: n,
2086
+ strokeWeight: i,
2087
+ strokeOpacity: 1,
2088
+ strokeColor: "#38A3FE",
2089
+ strokeStyle: "dashed",
2090
+ strokeDasharray: [i, i * 1.5],
2091
+ lineJoin: "round",
2092
+ lineCap: "round"
1612
2093
  }
1613
- }), m(G, {
2094
+ });
2095
+ };
2096
+ }), Qa = v(function(e) {
2097
+ const n = L(() => e.path.map(w));
2098
+ return () => {
2099
+ const a = n.value;
2100
+ if (a.length === 0)
2101
+ return null;
2102
+ const r = 2 * (window.innerWidth * 0.01), o = r / 4;
2103
+ return M(ue, {
1614
2104
  attrs: {
1615
- position: a,
1616
- content: i.value
2105
+ path: a,
2106
+ strokeWeight: r,
2107
+ strokeOpacity: 1,
2108
+ strokeColor: "transparent",
2109
+ icons: [{
2110
+ icon: {
2111
+ path: `
2112
+ M ${o}, ${o}
2113
+ m -${o}, 0
2114
+ a ${o},${o} 0 1,0 ${2 * o},0
2115
+ a ${o},${o} 0 1,0 -${2 * o},0
2116
+ `,
2117
+ strokeColor: "#38A3FE",
2118
+ fillColor: "#38A3FE",
2119
+ fillOpacity: 1,
2120
+ strokeOpacity: 1,
2121
+ strokeWeight: r / 2,
2122
+ scale: 1
2123
+ },
2124
+ repeat: `${r * 2}px`
2125
+ }]
1617
2126
  }
1618
- })]);
2127
+ });
1619
2128
  };
1620
- }), jo = y(function(e) {
1621
- const n = j();
1622
- return () => E(n.supplier === "gmap" ? Sa : Na, {
2129
+ }), mn = v(function(e) {
2130
+ const n = A();
2131
+ return () => E(n.supplier === "gmap" ? Qa : Va, {
1623
2132
  attrs: e
1624
2133
  });
1625
- });
1626
- var je = {}, Da = {
1627
- get exports() {
1628
- return je;
1629
- },
1630
- set exports(t) {
1631
- je = t;
1632
- }
1633
- };
1634
- (function(t, e) {
1635
- (function(n, i) {
1636
- t.exports = i();
1637
- })(fn, function() {
1638
- function n(c) {
1639
- var g = [];
1640
- return c.AMapUI && g.push(i(c.AMapUI)), c.Loca && g.push(a(c.Loca)), Promise.all(g);
1641
- }
1642
- function i(c) {
1643
- return new Promise(function(g, I) {
1644
- var M = [];
1645
- if (c.plugins)
1646
- for (var f = 0; f < c.plugins.length; f += 1)
1647
- r.AMapUI.plugins.indexOf(c.plugins[f]) == -1 && M.push(c.plugins[f]);
1648
- if (s.AMapUI === o.failed)
1649
- I("前次请求 AMapUI 失败");
1650
- else if (s.AMapUI === o.notload) {
1651
- s.AMapUI = o.loading, r.AMapUI.version = c.version || r.AMapUI.version, f = r.AMapUI.version;
1652
- var p = document.body || document.head, A = document.createElement("script");
1653
- A.type = "text/javascript", A.src = "https://webapi.amap.com/ui/" + f + "/main.js", A.onerror = function(v) {
1654
- s.AMapUI = o.failed, I("请求 AMapUI 失败");
1655
- }, A.onload = function() {
1656
- if (s.AMapUI = o.loaded, M.length)
1657
- window.AMapUI.loadUI(M, function() {
1658
- for (var v = 0, h = M.length; v < h; v++) {
1659
- var P = M[v].split("/").slice(-1)[0];
1660
- window.AMapUI[P] = arguments[v];
1661
- }
1662
- for (g(); u.AMapUI.length; )
1663
- u.AMapUI.splice(0, 1)[0]();
1664
- });
1665
- else
1666
- for (g(); u.AMapUI.length; )
1667
- u.AMapUI.splice(0, 1)[0]();
1668
- }, p.appendChild(A);
1669
- } else
1670
- s.AMapUI === o.loaded ? c.version && c.version !== r.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : M.length ? window.AMapUI.loadUI(M, function() {
1671
- for (var v = 0, h = M.length; v < h; v++) {
1672
- var P = M[v].split("/").slice(-1)[0];
1673
- window.AMapUI[P] = arguments[v];
2134
+ }), fn = (t) => {
2135
+ const e = P([]), n = new AMap.Walking({});
2136
+ return q(
2137
+ () => ({ ...t }),
2138
+ ({ from: a, to: i }) => {
2139
+ n.search(AMap.LngLat.from(a), AMap.LngLat.from(i), (r, o) => {
2140
+ switch (r) {
2141
+ case "complete": {
2142
+ let s = [];
2143
+ const u = o;
2144
+ if (!u.routes)
2145
+ return;
2146
+ const l = u.routes[0];
2147
+ console.log("firstRoute = ", l);
2148
+ for (const d of l.steps) {
2149
+ const c = d.path.map(({ lng: g, lat: I }) => [g, I]);
2150
+ s = s.concat(c);
1674
2151
  }
1675
- g();
1676
- }) : g() : c.version && c.version !== r.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(v) {
1677
- v ? I(v) : M.length ? window.AMapUI.loadUI(M, function() {
1678
- for (var h = 0, P = M.length; h < P; h++) {
1679
- var O = M[h].split("/").slice(-1)[0];
1680
- window.AMapUI[O] = arguments[h];
1681
- }
1682
- g();
1683
- }) : g();
1684
- });
1685
- });
1686
- }
1687
- function a(c) {
1688
- return new Promise(function(g, I) {
1689
- if (s.Loca === o.failed)
1690
- I("前次请求 Loca 失败");
1691
- else if (s.Loca === o.notload) {
1692
- s.Loca = o.loading, r.Loca.version = c.version || r.Loca.version;
1693
- var M = r.Loca.version, f = r.AMap.version.startsWith("2"), p = M.startsWith("2");
1694
- if (f && !p || !f && p)
1695
- I("JSAPI 与 Loca 版本不对应!!");
1696
- else {
1697
- f = r.key, p = document.body || document.head;
1698
- var A = document.createElement("script");
1699
- A.type = "text/javascript", A.src = "https://webapi.amap.com/loca?v=" + M + "&key=" + f, A.onerror = function(v) {
1700
- s.Loca = o.failed, I("请求 AMapUI 失败");
1701
- }, A.onload = function() {
1702
- for (s.Loca = o.loaded, g(); u.Loca.length; )
1703
- u.Loca.splice(0, 1)[0]();
1704
- }, p.appendChild(A);
2152
+ e.value = s;
2153
+ return;
1705
2154
  }
1706
- } else
1707
- s.Loca === o.loaded ? c.version && c.version !== r.Loca.version ? I("不允许多个版本 Loca 混用") : g() : c.version && c.version !== r.Loca.version ? I("不允许多个版本 Loca 混用") : u.Loca.push(function(v) {
1708
- v ? I(v) : I();
1709
- });
2155
+ case "no_data":
2156
+ e.value = [];
2157
+ return;
2158
+ default:
2159
+ throw o;
2160
+ }
1710
2161
  });
1711
2162
  }
1712
- if (!window)
1713
- throw Error("AMap JSAPI can only be used in Browser.");
1714
- var o;
1715
- (function(c) {
1716
- c.notload = "notload", c.loading = "loading", c.loaded = "loaded", c.failed = "failed";
1717
- })(o || (o = {}));
1718
- var r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, s = { AMap: o.notload, AMapUI: o.notload, Loca: o.notload }, u = { AMap: [], AMapUI: [], Loca: [] }, l = [], d = function(c) {
1719
- typeof c == "function" && (s.AMap === o.loaded ? c(window.AMap) : l.push(c));
1720
- };
1721
- return { load: function(c) {
1722
- return new Promise(function(g, I) {
1723
- if (s.AMap == o.failed)
1724
- I("");
1725
- else if (s.AMap == o.notload) {
1726
- var M = c.key, f = c.version, p = c.plugins;
1727
- M ? (window.AMap && location.host !== "lbs.amap.com" && I("禁止多种API加载方式混用"), r.key = M, r.AMap.version = f || r.AMap.version, r.AMap.plugins = p || r.AMap.plugins, s.AMap = o.loading, f = document.body || document.head, window.___onAPILoaded = function(v) {
1728
- if (delete window.___onAPILoaded, v)
1729
- s.AMap = o.failed, I(v);
1730
- else
1731
- for (s.AMap = o.loaded, n(c).then(function() {
1732
- g(window.AMap);
1733
- }).catch(I); l.length; )
1734
- l.splice(0, 1)[0]();
1735
- }, p = document.createElement("script"), p.type = "text/javascript", p.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + r.AMap.version + "&key=" + M + "&plugin=" + r.AMap.plugins.join(","), p.onerror = function(v) {
1736
- s.AMap = o.failed, I(v);
1737
- }, f.appendChild(p)) : I("请填写key");
1738
- } else if (s.AMap == o.loaded)
1739
- if (c.key && c.key !== r.key)
1740
- I("多个不一致的 key");
1741
- else if (c.version && c.version !== r.AMap.version)
1742
- I("不允许多个版本 JSAPI 混用");
1743
- else {
1744
- if (M = [], c.plugins)
1745
- for (f = 0; f < c.plugins.length; f += 1)
1746
- r.AMap.plugins.indexOf(c.plugins[f]) == -1 && M.push(c.plugins[f]);
1747
- M.length ? window.AMap.plugin(M, function() {
1748
- n(c).then(function() {
1749
- g(window.AMap);
1750
- }).catch(I);
1751
- }) : n(c).then(function() {
1752
- g(window.AMap);
1753
- }).catch(I);
2163
+ ), e;
2164
+ }, pn = (t) => {
2165
+ const e = P([]), n = new google.maps.DirectionsService();
2166
+ return q(
2167
+ () => ({ ...t }),
2168
+ ({ from: a, to: i }) => {
2169
+ n.route(
2170
+ {
2171
+ origin: { lng: a[0], lat: a[1] },
2172
+ destination: { lng: i[0], lat: i[1] },
2173
+ travelMode: google.maps.TravelMode.WALKING
2174
+ },
2175
+ (r, o) => {
2176
+ switch (o) {
2177
+ case google.maps.DirectionsStatus.OK: {
2178
+ let s = [];
2179
+ const l = r.routes[0].overview_path.map((d) => [
2180
+ d.lng(),
2181
+ d.lat()
2182
+ ]);
2183
+ s = s.concat(l), e.value = s;
2184
+ return;
2185
+ }
2186
+ case google.maps.DirectionsStatus.ZERO_RESULTS:
2187
+ case google.maps.DirectionsStatus.NOT_FOUND:
2188
+ e.value = [];
2189
+ return;
2190
+ default:
2191
+ throw new Error(o);
1754
2192
  }
1755
- else if (c.key && c.key !== r.key)
1756
- I("多个不一致的 key");
1757
- else if (c.version && c.version !== r.AMap.version)
1758
- I("不允许多个版本 JSAPI 混用");
1759
- else {
1760
- var A = [];
1761
- if (c.plugins)
1762
- for (f = 0; f < c.plugins.length; f += 1)
1763
- r.AMap.plugins.indexOf(c.plugins[f]) == -1 && A.push(c.plugins[f]);
1764
- d(function() {
1765
- A.length ? window.AMap.plugin(A, function() {
1766
- n(c).then(function() {
1767
- g(window.AMap);
1768
- }).catch(I);
1769
- }) : n(c).then(function() {
1770
- g(window.AMap);
1771
- }).catch(I);
1772
- });
1773
2193
  }
1774
- });
1775
- }, reset: function() {
1776
- delete window.AMap, delete window.AMapUI, delete window.Loca, r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, s = {
1777
- AMap: o.notload,
1778
- AMapUI: o.notload,
1779
- Loca: o.notload
1780
- }, u = { AMap: [], AMapUI: [], Loca: [] };
1781
- } };
2194
+ );
2195
+ }
2196
+ ), e;
2197
+ }, Er = (t) => {
2198
+ const { supplier: e } = A();
2199
+ return e === "gmap" ? pn(t) : fn(t);
2200
+ }, Ja = v(function(e, {
2201
+ slots: n
2202
+ }) {
2203
+ const a = fn(e);
2204
+ return () => {
2205
+ var i;
2206
+ return M("div", [(i = n.render) == null ? void 0 : i.call(n, x({
2207
+ path: a
2208
+ }))]);
2209
+ };
2210
+ }), Xa = v(function(e, {
2211
+ slots: n
2212
+ }) {
2213
+ const a = pn(e);
2214
+ return () => {
2215
+ var i;
2216
+ return M("div", [(i = n.render) == null ? void 0 : i.call(n, x({
2217
+ path: a
2218
+ }))]);
2219
+ };
2220
+ }), vn = v(function(e, {
2221
+ slots: n
2222
+ }) {
2223
+ const {
2224
+ supplier: a
2225
+ } = A();
2226
+ return () => E(a === "gmap" ? Xa : Ja, {
2227
+ attrs: e,
2228
+ scopedSlots: n
1782
2229
  });
1783
- })(Da);
1784
- var ha = function t(e, n) {
1785
- if (e === n)
1786
- return !0;
1787
- if (e && n && typeof e == "object" && typeof n == "object") {
1788
- if (e.constructor !== n.constructor)
1789
- return !1;
1790
- var i, a, o;
1791
- if (Array.isArray(e)) {
1792
- if (i = e.length, i != n.length)
1793
- return !1;
1794
- for (a = i; a-- !== 0; )
1795
- if (!t(e[a], n[a]))
1796
- return !1;
1797
- return !0;
2230
+ }), me = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
2231
+ var yn = "rrvp0y3", fe = "rrvp0y2";
2232
+ const Fa = v(function(e) {
2233
+ const n = L(() => `<img src="${me}" class="${fe}">`), a = L(() => `<img src="${me}" class="${fe} ${yn}">`);
2234
+ return () => M("div", [M(W, {
2235
+ attrs: {
2236
+ position: e.position,
2237
+ anchor: "bottom-center",
2238
+ content: n.value
1798
2239
  }
1799
- if (e.constructor === RegExp)
1800
- return e.source === n.source && e.flags === n.flags;
1801
- if (e.valueOf !== Object.prototype.valueOf)
1802
- return e.valueOf() === n.valueOf();
1803
- if (e.toString !== Object.prototype.toString)
1804
- return e.toString() === n.toString();
1805
- if (o = Object.keys(e), i = o.length, i !== Object.keys(n).length)
1806
- return !1;
1807
- for (a = i; a-- !== 0; )
1808
- if (!Object.prototype.hasOwnProperty.call(n, o[a]))
1809
- return !1;
1810
- for (a = i; a-- !== 0; ) {
1811
- var r = o[a];
1812
- if (!t(e[r], n[r]))
1813
- return !1;
2240
+ }), M(W, {
2241
+ attrs: {
2242
+ position: e.position,
2243
+ anchor: "bottom-center",
2244
+ content: a.value
1814
2245
  }
1815
- return !0;
1816
- }
1817
- return e !== e && n !== n;
1818
- };
1819
- const Fe = "__googleMapsScriptId";
1820
- var Y;
1821
- (function(t) {
1822
- t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
1823
- })(Y || (Y = {}));
1824
- class U {
1825
- /**
1826
- * Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
1827
- * using this library, instead the defaults are set by the Google Maps
1828
- * JavaScript API server.
1829
- *
1830
- * ```
1831
- * const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
1832
- * ```
1833
- */
1834
- constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: o = Fe, language: r, libraries: s = [], mapIds: u, nonce: l, region: d, retries: c = 3, url: g = "https://maps.googleapis.com/maps/api/js", version: I }) {
1835
- if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = e, this.authReferrerPolicy = n, this.channel = i, this.client = a, this.id = o || Fe, this.language = r, this.libraries = s, this.mapIds = u, this.nonce = l, this.region = d, this.retries = c, this.url = g, this.version = I, U.instance) {
1836
- if (!ha(this.options, U.instance.options))
1837
- throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(U.instance.options)}`);
1838
- return U.instance;
2246
+ })]);
2247
+ }), $a = v(function(e) {
2248
+ const n = L(() => T("img", {
2249
+ class: fe,
2250
+ src: me
2251
+ })), a = L(() => T("img", {
2252
+ class: `${fe} ${yn}`,
2253
+ src: me
2254
+ }));
2255
+ return () => {
2256
+ const i = w(e.position);
2257
+ return M("div", [M(U, {
2258
+ attrs: {
2259
+ position: i,
2260
+ content: n.value
2261
+ }
2262
+ }), M(U, {
2263
+ attrs: {
2264
+ position: i,
2265
+ content: a.value
2266
+ }
2267
+ })]);
2268
+ };
2269
+ }), _a = v(function(e) {
2270
+ const n = A();
2271
+ return () => E(n.supplier === "gmap" ? $a : Fa, {
2272
+ attrs: e
2273
+ });
2274
+ }), Ka = ["book-driverStartService", "dispatched", "driverStartService", "inService", "driverArrived"], at = v((t, {
2275
+ emit: e
2276
+ }) => (Q(() => e("mapMounted")), () => {
2277
+ const {
2278
+ from: n,
2279
+ title: a,
2280
+ registerOverlay: i
2281
+ } = t, r = C(n);
2282
+ return M("div", [M(k, {
2283
+ attrs: {
2284
+ type: "start",
2285
+ position: r,
2286
+ title: a,
2287
+ registerOverlay: i
1839
2288
  }
1840
- U.instance = this;
1841
- }
1842
- get options() {
1843
- return {
1844
- version: this.version,
1845
- apiKey: this.apiKey,
1846
- channel: this.channel,
1847
- client: this.client,
1848
- id: this.id,
1849
- libraries: this.libraries,
1850
- language: this.language,
1851
- region: this.region,
1852
- mapIds: this.mapIds,
1853
- nonce: this.nonce,
1854
- url: this.url,
1855
- authReferrerPolicy: this.authReferrerPolicy
1856
- };
1857
- }
1858
- get status() {
1859
- return this.errors.length ? Y.FAILURE : this.done ? Y.SUCCESS : this.loading ? Y.LOADING : Y.INITIALIZED;
1860
- }
1861
- get failed() {
1862
- return this.done && !this.loading && this.errors.length >= this.retries + 1;
1863
- }
1864
- /**
1865
- * CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]].
1866
- *
1867
- * @ignore
1868
- */
1869
- createUrl() {
1870
- let e = this.url;
1871
- return e += `?callback=${this.CALLBACK}`, this.apiKey && (e += `&key=${this.apiKey}`), this.channel && (e += `&channel=${this.channel}`), this.client && (e += `&client=${this.client}`), this.libraries.length > 0 && (e += `&libraries=${this.libraries.join(",")}`), this.language && (e += `&language=${this.language}`), this.region && (e += `&region=${this.region}`), this.version && (e += `&v=${this.version}`), this.mapIds && (e += `&map_ids=${this.mapIds.join(",")}`), this.authReferrerPolicy && (e += `&auth_referrer_policy=${this.authReferrerPolicy}`), e;
1872
- }
1873
- deleteScript() {
1874
- const e = document.getElementById(this.id);
1875
- e && e.remove();
1876
- }
1877
- /**
1878
- * Load the Google Maps JavaScript API script and return a Promise.
1879
- */
1880
- load() {
1881
- return this.loadPromise();
1882
- }
1883
- /**
1884
- * Load the Google Maps JavaScript API script and return a Promise.
1885
- *
1886
- * @ignore
1887
- */
1888
- loadPromise() {
1889
- return new Promise((e, n) => {
1890
- this.loadCallback((i) => {
1891
- i ? n(i.error) : e(window.google);
1892
- });
1893
- });
1894
- }
1895
- /**
1896
- * Load the Google Maps JavaScript API script with a callback.
1897
- */
1898
- loadCallback(e) {
1899
- this.callbacks.push(e), this.execute();
1900
- }
1901
- /**
1902
- * Set the script on document.
1903
- */
1904
- setScript() {
1905
- if (document.getElementById(this.id)) {
1906
- this.callback();
1907
- return;
2289
+ }), M(_a, {
2290
+ attrs: {
2291
+ position: r
1908
2292
  }
1909
- const e = this.createUrl(), n = document.createElement("script");
1910
- n.id = this.id, n.type = "text/javascript", n.src = e, n.onerror = this.loadErrorCallback.bind(this), n.defer = !0, n.async = !0, this.nonce && (n.nonce = this.nonce), document.head.appendChild(n);
1911
- }
1912
- /**
1913
- * Reset the loader state.
1914
- */
1915
- reset() {
1916
- this.deleteScript(), this.done = !1, this.loading = !1, this.errors = [], this.onerrorEvent = null;
1917
- }
1918
- resetIfRetryingFailed() {
1919
- this.failed && this.reset();
1920
- }
1921
- loadErrorCallback(e) {
1922
- if (this.errors.push(e), this.errors.length <= this.retries) {
1923
- const n = this.errors.length * Math.pow(2, this.errors.length);
1924
- console.log(`Failed to load Google Maps script, retrying in ${n} ms.`), setTimeout(() => {
1925
- this.deleteScript(), this.setScript();
1926
- }, n);
1927
- } else
1928
- this.onerrorEvent = e, this.callback();
1929
- }
1930
- setCallback() {
1931
- window.__googleMapsCallback = this.callback.bind(this);
1932
- }
1933
- callback() {
1934
- this.done = !0, this.loading = !1, this.callbacks.forEach((e) => {
1935
- e(this.onerrorEvent);
1936
- }), this.callbacks = [];
1937
- }
1938
- execute() {
1939
- if (this.resetIfRetryingFailed(), this.done)
1940
- this.callback();
1941
- else {
1942
- if (window.google && window.google.maps && window.google.maps.version) {
1943
- console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."), this.callback();
1944
- return;
1945
- }
1946
- this.loading || (this.loading = !0, this.setCallback(), this.setScript());
2293
+ }), M(R, {
2294
+ attrs: {
2295
+ position: r,
2296
+ label: n.name,
2297
+ hideIcon: !0
1947
2298
  }
1948
- }
1949
- }
1950
- const xa = [
1951
- "AMap.Geolocation",
1952
- "AMap.Geocoder",
1953
- "AMap.PlaceSearch",
1954
- "AMap.Driving",
1955
- "AMap.Walking"
1956
- ], Ca = ["marker", "places", "geometry"];
1957
- var ee = /* @__PURE__ */ ((t) => (t.LOADING = "LOADING", t.FAILURE = "FAILURE", t.SUCCESS = "SUCCESS", t))(ee || {});
1958
- const wa = (t) => {
1959
- const { onChange: e } = t;
1960
- let n, i;
1961
- const a = new Promise((s, u) => {
1962
- n = s, i = u;
1963
- }), o = w(
1964
- "LOADING"
1965
- /* LOADING */
1966
- ), r = L(() => {
1967
- const { onChange: s, loading: u, fallback: l, apiKey: d, apiSecret: c, apiServiceHost: g, version: I, ...M } = t;
1968
- return { ...M, key: d, version: I != null ? I : "2.0.5.16" };
1969
- });
1970
- return J(
1971
- () => r.value,
1972
- (s) => {
1973
- const u = (l) => {
1974
- o.value = l, l === "SUCCESS" && n(), l === "FAILURE" && i(), e == null || e(o.value);
1975
- };
1976
- u(
1977
- "LOADING"
1978
- /* LOADING */
1979
- ), window._AMapSecurityConfig = t.apiServiceHost ? {
1980
- serviceHost: t.apiServiceHost
1981
- } : { securityJsCode: t.apiSecret }, je.load(s).then(
1982
- () => u(
1983
- "SUCCESS"
1984
- /* SUCCESS */
1985
- ),
1986
- () => u(
1987
- "FAILURE"
1988
- /* FAILURE */
1989
- )
1990
- );
2299
+ })]);
2300
+ })), qa = v((t, {
2301
+ emit: e
2302
+ }) => (Q(() => e("mapMounted")), () => {
2303
+ const {
2304
+ from: n,
2305
+ carPosition: a,
2306
+ passengerPosition: i,
2307
+ renderTitle: r,
2308
+ registerOverlay: o
2309
+ } = t, s = C(n);
2310
+ return M("div", [M(k, {
2311
+ attrs: {
2312
+ type: "start",
2313
+ position: s,
2314
+ registerOverlay: o
1991
2315
  }
1992
- ), { statusRef: o, readyPromise: a };
1993
- }, ba = (t) => {
1994
- const { onChange: e } = t;
1995
- let n, i;
1996
- const a = new Promise((s, u) => {
1997
- n = s, i = u;
1998
- }), o = w(
1999
- "LOADING"
2000
- /* LOADING */
2001
- ), r = L(() => {
2002
- const { onChange: s, fallback: u, loading: l, ...d } = t;
2003
- return d;
2004
- });
2005
- return J(
2006
- () => r.value,
2007
- (s) => {
2008
- const u = new U(s), l = (d) => {
2009
- o.value = d, d === "SUCCESS" && n(), d === "FAILURE" && i(), e == null || e(o.value);
2010
- };
2011
- l(
2012
- "LOADING"
2013
- /* LOADING */
2014
- ), u.load().then(
2015
- () => l(
2016
- "SUCCESS"
2017
- /* SUCCESS */
2018
- ),
2019
- () => l(
2020
- "FAILURE"
2021
- /* FAILURE */
2022
- )
2023
- );
2316
+ }), M(R, {
2317
+ attrs: {
2318
+ position: s,
2319
+ label: n.name,
2320
+ hideIcon: !0
2024
2321
  }
2025
- ), { statusRef: o, readyPromise: a };
2026
- }, Pa = (t) => {
2027
- const { gmapKey: e, amapKey: n, amapSecret: i, amapServiceHost: a, supplier: o, language: r, onChange: s } = t;
2028
- return o === "gmap" ? ba({
2029
- apiKey: e,
2030
- language: r,
2031
- version: "beta",
2032
- libraries: Ca,
2033
- onChange: s
2034
- }) : wa({
2035
- apiKey: n,
2036
- apiSecret: i,
2037
- apiServiceHost: a,
2038
- plugins: xa,
2039
- onChange: s
2040
- });
2041
- };
2042
- var za = "_1d8ur7t0";
2043
- const Ea = y(function(e, { slots: n, emit: i }) {
2322
+ }), M(Pe, {
2323
+ attrs: {
2324
+ from: a,
2325
+ to: s,
2326
+ render: ({
2327
+ path: u,
2328
+ distance: l,
2329
+ duration: d
2330
+ }) => [M(be, {
2331
+ attrs: {
2332
+ path: u
2333
+ }
2334
+ }), M(Te, {
2335
+ attrs: {
2336
+ position: a,
2337
+ title: r({
2338
+ distance: l,
2339
+ duration: d
2340
+ })
2341
+ }
2342
+ })]
2343
+ }
2344
+ }), M(vn, {
2345
+ attrs: {
2346
+ from: i,
2347
+ to: s,
2348
+ render: ({
2349
+ path: u
2350
+ }) => M(mn, {
2351
+ attrs: {
2352
+ path: u
2353
+ }
2354
+ })
2355
+ }
2356
+ }), M(ze, {
2357
+ attrs: {
2358
+ position: i,
2359
+ registerOverlay: o
2360
+ }
2361
+ })]);
2362
+ })), er = v((t, {
2363
+ emit: e
2364
+ }) => (Q(() => e("mapMounted")), () => {
2044
2365
  const {
2045
- onDragStart: a,
2046
- onDragEnd: o,
2047
- mapRef: r,
2048
- vectorMapForeign: s = "style_zh_cn",
2049
- ...u
2050
- } = e, l = L(() => ({
2051
- dragEnable: !!e.dragEnable,
2052
- zoomEnable: !!e.zoomEnable,
2053
- jogEnable: !!e.jogEnable,
2054
- pitchEnable: !!e.pitchEnable,
2055
- rotateEnable: !!e.rotateEnable,
2056
- animateEnable: !!e.animateEnable,
2057
- keyboardEnable: !!e.keyboardEnable
2058
- })), d = w(), c = w();
2059
- return In(c), k(() => {
2060
- if (c.value || !d.value)
2061
- return;
2062
- const g = new AMap.Map(d.value, {
2063
- ...u,
2064
- vectorMapForeign: s,
2065
- mapStyle: "amap://styles/95498a904992a4c0b866a3e4d7729682"
2066
- });
2067
- c.value = g, r == null || r(g);
2068
- }), ne(
2069
- () => l.value,
2070
- (g) => {
2071
- var I;
2072
- (I = c.value) == null || I.setStatus(g);
2366
+ from: n,
2367
+ passengerPosition: a,
2368
+ title: i,
2369
+ registerOverlay: r
2370
+ } = t, o = C(n);
2371
+ return M("div", [M(k, {
2372
+ attrs: {
2373
+ type: "start",
2374
+ position: o,
2375
+ title: i,
2376
+ registerOverlay: r
2377
+ }
2378
+ }), M(R, {
2379
+ attrs: {
2380
+ position: o,
2381
+ label: n.name,
2382
+ hideIcon: !0
2383
+ }
2384
+ }), M(ze, {
2385
+ attrs: {
2386
+ position: a,
2387
+ registerOverlay: r
2388
+ }
2389
+ })]);
2390
+ })), tr = v((t, {
2391
+ emit: e
2392
+ }) => (Q(() => e("mapMounted")), () => {
2393
+ const {
2394
+ from: n,
2395
+ carPosition: a,
2396
+ passengerPosition: i,
2397
+ title: r,
2398
+ registerOverlay: o
2399
+ } = t, s = C(n);
2400
+ return M("div", [M(Te, {
2401
+ attrs: {
2402
+ position: a,
2403
+ title: r,
2404
+ registerOverlay: o
2405
+ }
2406
+ }), M(k, {
2407
+ attrs: {
2408
+ type: "start",
2409
+ position: s,
2410
+ registerOverlay: o
2411
+ }
2412
+ }), M(R, {
2413
+ attrs: {
2414
+ position: s,
2415
+ label: n.name,
2416
+ hideIcon: !0
2417
+ }
2418
+ }), M(vn, {
2419
+ attrs: {
2420
+ from: i,
2421
+ to: s,
2422
+ render: ({
2423
+ path: u
2424
+ }) => M(mn, {
2425
+ attrs: {
2426
+ path: u
2427
+ }
2428
+ })
2073
2429
  }
2074
- ), he(c, e, [
2075
- { name: "center", defaultValue: [0, 0] },
2076
- { name: "zooms", defaultValue: [0, 0] },
2077
- { name: "zoom", defaultValue: 0 },
2078
- { name: "layers", defaultValue: [] },
2079
- { name: "limitBounds", defaultValue: [] },
2080
- { name: "rotation", defaultValue: 0 },
2081
- { name: "defaultCursor", defaultValue: "" },
2082
- { name: "mapStyle", defaultValue: "" },
2083
- { name: "features", defaultValue: [] },
2084
- { name: "pitch", defaultValue: 0 },
2085
- { name: "mask", defaultValue: [] },
2086
- { name: "labelRejectMask", defaultValue: !1 }
2087
- ]), re(c, e, i, ["onDragStart", "onDragEnd"]), () => {
2088
- var g;
2089
- return m("div", { ref: d, class: za }, (g = n.default) == null ? void 0 : g.call(n));
2090
- };
2091
- });
2092
- let ae = "user";
2093
- const Za = () => ae, sn = () => ({ executeMapApi: (e) => {
2094
- ae = "api";
2095
- try {
2096
- e(), setTimeout(() => {
2097
- ae = "user";
2098
- }, 100);
2099
- } catch (n) {
2100
- throw ae = "user", n;
2101
- }
2102
- } }), Ta = y(function(e, { slots: n, emit: i }) {
2103
- const a = e.mapRef, o = L(() => {
2104
- const { mapRef: c, onDragStart: g, onDragEnd: I, ...M } = e;
2105
- return M;
2106
- }), r = o.value, s = w(), u = w(), { executeMapApi: l } = sn(), d = (c) => i(c, { target: u.value });
2107
- return Mn(u), k(() => {
2108
- if (u.value || !s.value)
2109
- return;
2110
- let c;
2111
- l(() => {
2112
- c = new google.maps.Map(s.value, { ...r });
2113
- }), u.value = c, a == null || a(c);
2114
- }), ne(
2115
- () => o.value,
2116
- (c) => {
2117
- l(() => {
2118
- var g;
2119
- return (g = u.value) == null ? void 0 : g.setOptions({ ...c });
2120
- });
2430
+ }), M(ze, {
2431
+ attrs: {
2432
+ position: i,
2433
+ size: "small",
2434
+ registerOverlay: o
2121
2435
  }
2122
- ), q(u, e, d, ["onDragStart", "onDragEnd"]), () => {
2123
- var c;
2124
- return m("div", { ref: s }, (c = n.default) == null ? void 0 : c.call(n));
2125
- };
2126
- }), Ao = Q(function(e, {
2127
- slots: n
2128
- }) {
2436
+ })]);
2437
+ })), nr = v((t, {
2438
+ emit: e
2439
+ }) => (Q(() => e("mapMounted")), () => {
2129
2440
  const {
2130
- statusRef: i,
2131
- readyPromise: a
2132
- } = Pa(e), o = new Proxy(e, {
2133
- get(r, s, u) {
2134
- return s === "status" ? i.value : s === "readyPromise" ? a : Reflect.get(r, s, u);
2441
+ to: n,
2442
+ carPosition: a,
2443
+ renderTitle: i,
2444
+ registerOverlay: r
2445
+ } = t, o = C(n);
2446
+ return M("div", [M(k, {
2447
+ attrs: {
2448
+ type: "end",
2449
+ position: o,
2450
+ registerOverlay: r
2135
2451
  }
2136
- });
2137
- return gn(o), () => {
2138
- var r;
2139
- return m("div", [(r = n.default) == null ? void 0 : r.call(n)]);
2140
- };
2141
- }).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), Lo = Q(function(e, {
2142
- slots: n,
2143
- emit: i
2144
- }) {
2145
- const a = j(), o = ({
2146
- target: s
2147
- }) => {
2148
- const {
2149
- lng: u,
2150
- lat: l
2151
- } = s.getCenter();
2152
- i("dragEnd", [u(), l()]);
2153
- }, r = ({
2154
- target: s
2155
- }) => {
2452
+ }), M(R, {
2453
+ attrs: {
2454
+ position: a,
2455
+ label: "'WebSter Dental Plaza'",
2456
+ hideIcon: !0
2457
+ }
2458
+ }), M(Pe, {
2459
+ attrs: {
2460
+ from: a,
2461
+ to: o,
2462
+ render: ({
2463
+ path: s,
2464
+ distance: u,
2465
+ duration: l
2466
+ }) => [M(be, {
2467
+ attrs: {
2468
+ path: s
2469
+ }
2470
+ }), M(Te, {
2471
+ attrs: {
2472
+ position: a,
2473
+ title: i({
2474
+ distance: u,
2475
+ duration: l
2476
+ }),
2477
+ registerOverlay: r
2478
+ }
2479
+ })]
2480
+ }
2481
+ })]);
2482
+ })), ir = v((t, {
2483
+ emit: e
2484
+ }) => (Q(() => e("mapMounted")), () => {
2485
+ const {
2486
+ from: n,
2487
+ to: a,
2488
+ registerOverlay: i
2489
+ } = t, r = C(n), o = C(a);
2490
+ return M("div", [M(k, {
2491
+ attrs: {
2492
+ type: "start",
2493
+ position: r,
2494
+ registerOverlay: i
2495
+ }
2496
+ }), M(k, {
2497
+ attrs: {
2498
+ type: "end",
2499
+ position: o,
2500
+ registerOverlay: i
2501
+ }
2502
+ }), M(R, {
2503
+ attrs: {
2504
+ position: r,
2505
+ label: n.name,
2506
+ hideIcon: !0
2507
+ }
2508
+ }), M(R, {
2509
+ attrs: {
2510
+ position: o,
2511
+ label: a.name,
2512
+ hideIcon: !0
2513
+ }
2514
+ })]);
2515
+ })), ar = v((t, {
2516
+ emit: e
2517
+ }) => (Q(() => e("mapMounted")), () => {
2518
+ const {
2519
+ from: n,
2520
+ to: a,
2521
+ registerOverlay: i
2522
+ } = t, r = C(n), o = C(a);
2523
+ return M("div", [M(k, {
2524
+ attrs: {
2525
+ type: "start",
2526
+ position: r,
2527
+ registerOverlay: i
2528
+ }
2529
+ }), M(k, {
2530
+ attrs: {
2531
+ type: "end",
2532
+ position: o,
2533
+ registerOverlay: i
2534
+ }
2535
+ }), M(R, {
2536
+ attrs: {
2537
+ position: r,
2538
+ label: n.name,
2539
+ hideIcon: !0
2540
+ }
2541
+ }), M(R, {
2542
+ attrs: {
2543
+ position: o,
2544
+ label: a.name,
2545
+ hideIcon: !0
2546
+ }
2547
+ }), M(Pe, {
2548
+ attrs: {
2549
+ from: r,
2550
+ to: o,
2551
+ render: ({
2552
+ path: s
2553
+ }) => M(be, {
2554
+ attrs: {
2555
+ path: s,
2556
+ done: !0
2557
+ }
2558
+ })
2559
+ }
2560
+ })]);
2561
+ })), Zr = J((t, {
2562
+ emit: e
2563
+ }) => {
2564
+ const {
2565
+ from: n,
2566
+ interval: a,
2567
+ registerOverlay: i,
2568
+ mapRef: r,
2569
+ getDriverPosition: o,
2570
+ renderStartSerivceTitle: s,
2571
+ renderInServiceTitle: u
2572
+ } = t, {
2573
+ geoPosition: l
2574
+ } = Ft({
2575
+ geoDefaultPosition: C(n)
2576
+ }), d = D(C(t.from)), c = () => e("mapMounted");
2577
+ return b(() => t.driverStatus, (g, I, m) => {
2578
+ if (!Ka.includes(g))
2579
+ return;
2580
+ const p = setInterval(() => {
2581
+ o().then((f) => d.value = f);
2582
+ }, a);
2583
+ m(() => clearInterval(p));
2584
+ }, {
2585
+ immediate: !0
2586
+ }), () => {
2156
2587
  const {
2157
- lng: u,
2158
- lat: l
2159
- } = s.getCenter();
2160
- i("dragEnd", [u, l]);
2588
+ driverStatus: g,
2589
+ from: I,
2590
+ to: m,
2591
+ dispatchingTitle: p,
2592
+ bookDispatchingTitle: f,
2593
+ bookDispatchedTitle: j,
2594
+ driverArrivedTitle: y
2595
+ } = t, h = d.value;
2596
+ return M(wa, {
2597
+ attrs: {
2598
+ center: C(I),
2599
+ zoom: 13,
2600
+ mapRef: r
2601
+ }
2602
+ }, [g === "dispatching" ? M(at, {
2603
+ attrs: {
2604
+ from: I,
2605
+ title: p,
2606
+ registerOverlay: i
2607
+ },
2608
+ on: {
2609
+ mapMounted: c
2610
+ }
2611
+ }) : g === "book-dispatching" ? M(at, {
2612
+ attrs: {
2613
+ from: I,
2614
+ title: f,
2615
+ registerOverlay: i
2616
+ },
2617
+ on: {
2618
+ mapMounted: c
2619
+ }
2620
+ }) : g === "dispatched" || g === "driverStartService" || g === "book-driverStartService" ? M(qa, {
2621
+ attrs: {
2622
+ from: I,
2623
+ carPosition: h,
2624
+ passengerPosition: l.value,
2625
+ renderTitle: s,
2626
+ registerOverlay: i
2627
+ },
2628
+ on: {
2629
+ mapMounted: c
2630
+ }
2631
+ }) : g === "book-dispatched" ? M(er, {
2632
+ attrs: {
2633
+ from: I,
2634
+ passengerPosition: l.value,
2635
+ title: j,
2636
+ registerOverlay: i
2637
+ },
2638
+ on: {
2639
+ mapMounted: c
2640
+ }
2641
+ }) : g === "inService" ? M(nr, {
2642
+ attrs: {
2643
+ to: m,
2644
+ carPosition: h,
2645
+ renderTitle: u,
2646
+ registerOverlay: i
2647
+ },
2648
+ on: {
2649
+ mapMounted: c
2650
+ }
2651
+ }) : g === "driverArrived" ? M(tr, {
2652
+ attrs: {
2653
+ from: I,
2654
+ carPosition: h,
2655
+ passengerPosition: l.value,
2656
+ title: y,
2657
+ registerOverlay: i
2658
+ },
2659
+ on: {
2660
+ mapMounted: c
2661
+ }
2662
+ }) : g === "canceled" ? M(ir, {
2663
+ attrs: {
2664
+ from: I,
2665
+ to: m,
2666
+ registerOverlay: i
2667
+ }
2668
+ }) : g === "endService" ? M(ar, {
2669
+ attrs: {
2670
+ from: I,
2671
+ to: m,
2672
+ registerOverlay: i
2673
+ },
2674
+ on: {
2675
+ mapMounted: c
2676
+ }
2677
+ }) : null]);
2161
2678
  };
2162
- return () => {
2163
- var f, p, A;
2164
- const {
2165
- supplier: s,
2166
- gmapId: u,
2167
- language: l = "zh",
2168
- status: d
2169
- } = a, {
2170
- mapRef: c,
2171
- center: g,
2172
- zoom: I
2173
- } = e;
2174
- if (d === ee.LOADING)
2175
- return (f = n.loading) == null ? void 0 : f.call(n);
2176
- if (d === ee.FAILURE)
2177
- return (p = n.fallback) == null ? void 0 : p.call(n);
2178
- const M = (A = n.default) == null ? void 0 : A.call(n);
2179
- switch (s) {
2180
- case "gmap":
2181
- return m(Ta, {
2182
- attrs: {
2183
- mapRef: c,
2184
- mapId: u,
2185
- center: g ? C(g) : void 0,
2186
- zoom: I
2187
- },
2188
- on: {
2189
- dragEnd: o
2190
- }
2191
- }, [M]);
2192
- default:
2193
- return m(Ea, {
2194
- attrs: {
2195
- mapRef: c,
2196
- vectorMapForeign: _i(l),
2197
- center: g,
2198
- zoom: I
2199
- },
2200
- on: {
2201
- dragEnd: r
2202
- }
2203
- }, [M]);
2679
+ }).props(["bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]), Rr = v(function(e, {
2680
+ emit: n
2681
+ }) {
2682
+ return () => M("div", [e.places.map((a) => M(R, {
2683
+ attrs: {
2684
+ position: C(a),
2685
+ label: a.name,
2686
+ textAlign: "left"
2687
+ },
2688
+ on: {
2689
+ click: () => n("click", a)
2204
2690
  }
2205
- };
2206
- }).props(["center", "fallback", "loading", "mapRef", "zoom"]), F = () => {
2691
+ }))]);
2692
+ }), te = () => {
2207
2693
  const t = D(0);
2208
2694
  return { idx: t, update: () => {
2209
2695
  t.value += 1;
2210
2696
  } };
2211
- }, Ra = (t) => {
2212
- const { city: e } = t, n = D(e), { readyPromise: i } = j(), a = D(""), o = D([]), { update: r, idx: s } = F(), u = (d) => {
2213
- n.value = d, r();
2697
+ }, rr = (t) => {
2698
+ const { city: e } = t, n = D(e), { readyPromise: a } = A(), i = D(""), r = D([]), { update: o, idx: s } = te(), u = (d) => {
2699
+ n.value = d, o();
2214
2700
  }, l = (d) => {
2215
- a.value = d, r();
2701
+ i.value = d, o();
2216
2702
  };
2217
2703
  return b(
2218
2704
  () => s.value,
2219
2705
  async () => {
2220
- if (!a.value)
2706
+ if (!i.value)
2221
2707
  return;
2222
- await i, new AMap.PlaceSearch({ city: n.value.name }).search(a.value, (c, g) => {
2708
+ await a, new AMap.PlaceSearch({ city: n.value.name }).search(i.value, (c, g) => {
2223
2709
  switch (c) {
2224
2710
  case "complete": {
2225
- o.value = g.poiList.pois.map(
2711
+ r.value = g.poiList.pois.map(
2226
2712
  (I) => ({
2227
2713
  lat: I.location.lat,
2228
2714
  lng: I.location.lng,
@@ -2233,7 +2719,7 @@ const Za = () => ae, sn = () => ({ executeMapApi: (e) => {
2233
2719
  return;
2234
2720
  }
2235
2721
  case "no_data":
2236
- o.value = [];
2722
+ r.value = [];
2237
2723
  return;
2238
2724
  default:
2239
2725
  throw g;
@@ -2243,64 +2729,64 @@ const Za = () => ae, sn = () => ({ executeMapApi: (e) => {
2243
2729
  {
2244
2730
  immediate: !0
2245
2731
  }
2246
- ), { setKeyword: l, setCity: u, autoCompletePlaces: o };
2247
- }, Ga = (t) => {
2248
- const { city: e } = t, n = D({ ...e }), { readyPromise: i } = j(), a = D(""), o = D([]), { update: r, idx: s } = F(), u = (c) => {
2249
- n.value = c, r();
2732
+ ), { setKeyword: l, setCity: u, autoCompletePlaces: r };
2733
+ }, or = (t) => {
2734
+ const { city: e } = t, n = D({ ...e }), { readyPromise: a } = A(), i = D(""), r = D([]), { update: o, idx: s } = te(), u = (c) => {
2735
+ n.value = c, o();
2250
2736
  }, l = (c) => {
2251
- a.value = c, r();
2737
+ i.value = c, o();
2252
2738
  }, d = document.createElement("div");
2253
2739
  return b(
2254
2740
  () => s.value,
2255
2741
  async () => {
2256
- if (!a.value)
2742
+ if (!i.value)
2257
2743
  return;
2258
- await i, new google.maps.places.PlacesService(d).textSearch(
2744
+ await a, new google.maps.places.PlacesService(d).textSearch(
2259
2745
  {
2260
- query: a.value,
2746
+ query: i.value,
2261
2747
  bounds: n.value.bound
2262
2748
  },
2263
2749
  (g, I) => {
2264
2750
  switch (I) {
2265
2751
  case google.maps.places.PlacesServiceStatus.OK:
2266
- o.value = g.map(
2267
- ({ geometry: M, name: f, formatted_address: p }) => {
2268
- var A, v, h, P;
2752
+ r.value = g.map(
2753
+ ({ geometry: m, name: p, formatted_address: f }) => {
2754
+ var j, y, h, z;
2269
2755
  return {
2270
- lng: (v = (A = M == null ? void 0 : M.location) == null ? void 0 : A.lng()) != null ? v : 0,
2271
- lat: (P = (h = M == null ? void 0 : M.location) == null ? void 0 : h.lat()) != null ? P : 0,
2272
- name: f != null ? f : "",
2273
- description: p != null ? p : ""
2756
+ lng: (y = (j = m == null ? void 0 : m.location) == null ? void 0 : j.lng()) != null ? y : 0,
2757
+ lat: (z = (h = m == null ? void 0 : m.location) == null ? void 0 : h.lat()) != null ? z : 0,
2758
+ name: p != null ? p : "",
2759
+ description: f != null ? f : ""
2274
2760
  };
2275
2761
  }
2276
2762
  );
2277
2763
  return;
2278
2764
  case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:
2279
2765
  case google.maps.places.PlacesServiceStatus.NOT_FOUND:
2280
- o.value = [];
2766
+ r.value = [];
2281
2767
  return;
2282
2768
  }
2283
2769
  }
2284
2770
  );
2285
2771
  }
2286
- ), { setKeyword: l, setCity: u, autoCompletePlaces: o };
2287
- }, ka = (t) => {
2288
- const { supplier: e } = j();
2289
- return e === "gmap" ? Ga(t) : Ra(t);
2290
- }, Oa = (t) => {
2291
- var a;
2292
- const { cityNameRef: e, onChange: n } = t, i = x({ name: (a = e.value) != null ? a : "" });
2772
+ ), { setKeyword: l, setCity: u, autoCompletePlaces: r };
2773
+ }, sr = (t) => {
2774
+ const { supplier: e } = A();
2775
+ return e === "gmap" ? or(t) : rr(t);
2776
+ }, cr = (t) => {
2777
+ var i;
2778
+ const { cityNameRef: e, onChange: n } = t, a = x({ name: (i = e.value) != null ? i : "" });
2293
2779
  return b(
2294
2780
  () => e.value,
2295
- (o) => {
2296
- const r = o != null ? o : "";
2297
- i.name = r, n == null || n({ name: r });
2298
- }
2299
- ), i;
2300
- }, Wa = (t) => {
2301
- var o;
2302
- const { cityNameRef: e, onChange: n } = t, { readyPromise: i } = j(), a = x({
2303
- name: (o = e.value) != null ? o : "",
2781
+ (r) => {
2782
+ const o = r != null ? r : "";
2783
+ a.name = o, n == null || n({ name: o });
2784
+ }
2785
+ ), a;
2786
+ }, ur = (t) => {
2787
+ var r;
2788
+ const { cityNameRef: e, onChange: n } = t, { readyPromise: a } = A(), i = x({
2789
+ name: (r = e.value) != null ? r : "",
2304
2790
  bound: {
2305
2791
  east: 0,
2306
2792
  north: 0,
@@ -2308,387 +2794,369 @@ const Za = () => ae, sn = () => ({ executeMapApi: (e) => {
2308
2794
  west: 0
2309
2795
  }
2310
2796
  });
2311
- return dn(async () => {
2797
+ return hn(async () => {
2312
2798
  var c, g;
2313
- const r = e.value;
2314
- if (!r)
2799
+ const o = e.value;
2800
+ if (!o)
2315
2801
  return;
2316
- await i;
2802
+ await a;
2317
2803
  const s = new google.maps.Geocoder(), { results: u } = await s.geocode({
2318
- address: r,
2804
+ address: o,
2319
2805
  componentRestrictions: {
2320
2806
  administrativeArea: "administrative_area_level_1"
2321
2807
  },
2322
- language: De
2808
+ language: xe
2323
2809
  });
2324
2810
  if (u.length !== 1)
2325
2811
  throw new Error("MyError: multiple city found");
2326
2812
  const { geometry: l } = u[0], d = (g = (c = l.bounds) == null ? void 0 : c.toJSON()) != null ? g : l.viewport.toJSON();
2327
- a.name = r, a.bound = d, n == null || n({ name: r, bound: d });
2328
- }), a;
2329
- }, Ua = (t) => {
2330
- const { supplier: e } = j();
2331
- return e === "gmap" ? Wa(t) : Oa(t);
2332
- }, No = (t) => {
2333
- const { cityNameRef: e } = t, n = Ua({
2813
+ i.name = o, i.bound = d, n == null || n({ name: o, bound: d });
2814
+ }), i;
2815
+ }, lr = (t) => {
2816
+ const { supplier: e } = A();
2817
+ return e === "gmap" ? ur(t) : cr(t);
2818
+ }, Or = (t) => {
2819
+ const { cityNameRef: e } = t, n = lr({
2334
2820
  cityNameRef: e,
2335
- onChange: (s) => o(s)
2336
- }), { autoCompletePlaces: i, setKeyword: a, setCity: o } = ka({ city: n });
2337
- return { autoCompletePlaces: i, setKeyword: a, setCity: o, handleKeywordInput: (s) => {
2821
+ onChange: (s) => r(s)
2822
+ }), { autoCompletePlaces: a, setKeyword: i, setCity: r } = sr({ city: n });
2823
+ return { autoCompletePlaces: a, setKeyword: i, setCity: r, handleKeywordInput: (s) => {
2338
2824
  const u = s.target;
2339
- a(u.value);
2825
+ i(u.value);
2340
2826
  } };
2341
- }, Ba = 20, Ya = (t) => {
2342
- const { mapRef: e, autoFitTimeout: n } = t, i = /* @__PURE__ */ new Set();
2343
- let a;
2344
- const o = {
2345
- add: (u) => {
2346
- i.add(u);
2347
- },
2348
- remove: (u) => {
2349
- i.delete(u);
2350
- }
2351
- }, r = () => {
2352
- var M;
2353
- const u = e.value;
2354
- if (!u)
2355
- return;
2356
- const l = window.innerWidth / 100, [d, c, g, I] = (M = t.padding) != null ? M : [0, 0, 0, 0];
2357
- console.log([...i]), u.setFitView([...i], !1, [d * l, g * l, I * l, c * l]);
2358
- };
2359
- return re(
2360
- e,
2361
- {},
2362
- () => {
2363
- n && (a && clearTimeout(a), a = setTimeout(() => {
2364
- a = void 0, r();
2365
- }, n));
2366
- },
2367
- ["onDragEnd"]
2368
- ), { registerFitVeiw: o, setFitView: r };
2369
- };
2370
- class Ha extends Set {
2371
- getBound() {
2372
- const e = new google.maps.LatLngBounds();
2373
- for (const n of this.values()) {
2374
- const i = n instanceof google.maps.Marker ? n.getPosition() : n.position;
2375
- i && e.extend(i);
2376
- }
2377
- return e;
2378
- }
2379
- }
2380
- const Va = (t) => {
2381
- const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: i } = sn(), a = new Ha();
2382
- let o;
2383
- const r = {
2384
- add: (d) => {
2385
- a.add(d);
2386
- },
2387
- remove: (d) => {
2388
- a.delete(d);
2389
- }
2390
- }, s = () => {
2391
- var p;
2392
- const d = e.value;
2393
- if (!d)
2394
- return;
2395
- const c = window.innerWidth / 100, [g, I, M, f] = (p = t.padding) != null ? p : [0, 0, 0, 0];
2396
- i(
2397
- () => d.fitBounds(a.getBound(), {
2398
- top: g * c,
2399
- right: I * c,
2400
- bottom: M * c,
2401
- left: f * c
2402
- })
2403
- );
2404
- }, u = (d) => {
2405
- const c = Za();
2406
- console.log("handleMoveEndOrZomEnd name, eventSource = ", d, c), !(!n || c !== "user") && (o && clearTimeout(o), o = setTimeout(() => {
2407
- o = void 0, s();
2408
- }, n));
2409
- }, l = ki(u, Ba);
2410
- return q(e, {}, u, [
2411
- "onDragEnd"
2412
- ]), q(e, {}, l, [
2413
- "onZoom_changed"
2414
- ]), { registerFitVeiw: r, setFitView: s };
2415
- }, Qa = (t) => {
2416
- const { supplier: e } = j();
2417
- return e === "gmap" ? Va(t) : Ya(t);
2418
- }, So = (t) => Qa({ ...t, padding: [25, 20, 15, 15] }), Ja = (t) => {
2419
- const { onChange: e, onLoad: n } = t != null ? t : {}, i = D(!1), a = D(!1), o = D(), r = D({
2420
- accuracy: 0,
2421
- altitude: 0,
2422
- altitudeAccuracy: 0,
2423
- heading: 0,
2424
- latitude: 0,
2425
- longitude: 0,
2426
- speed: 0
2427
- }), s = D([r.value.longitude, r.value.latitude]);
2428
- return b(
2429
- () => !0,
2430
- (u, l, d) => {
2431
- i.value = !0;
2432
- const c = navigator.geolocation.watchPosition(
2433
- (g) => {
2434
- const I = g.coords, M = [g.coords.longitude, g.coords.latitude];
2435
- r.value = I, s.value = M, i.value && (i.value = !1, a.value = !0, n == null || n({ position: M, coordinate: I })), e == null || e({ position: M, coordinate: I });
2436
- },
2437
- (g) => {
2438
- i.value = !1, o.value = g, console.log("errorRef = ", o);
2439
- },
2440
- // todo 要不要 timeout
2441
- { timeout: 5e3, maximumAge: 0, enableHighAccuracy: !0 }
2442
- );
2443
- d(() => navigator.geolocation.clearWatch(c));
2444
- },
2445
- { immediate: !0 }
2446
- ), {
2447
- geoError: o,
2448
- geoPosition: s,
2449
- geoCoordinate: r,
2450
- geoLoading: i,
2451
- geoReady: a
2452
- };
2453
- }, Xa = (t) => {
2454
- const { mapRef: e, onChange: n } = t, i = D([0, 0]), a = D(!1), o = () => {
2455
- Promise.resolve().then(() => a.value = !0);
2456
- }, r = (s, { target: u }) => {
2827
+ }, dr = (t) => {
2828
+ const { mapRef: e, onChange: n } = t, a = D([0, 0]), i = D(!1), r = () => {
2829
+ Promise.resolve().then(() => i.value = !0);
2830
+ }, o = (s, { target: u }) => {
2457
2831
  var c;
2458
- a.value = !1;
2832
+ i.value = !1;
2459
2833
  const { lng: l, lat: d } = u.getCenter();
2460
- i.value = [l, d], (c = Dt(n)) == null || c([l, d]);
2834
+ a.value = [l, d], (c = Et(n)) == null || c([l, d]);
2461
2835
  };
2462
- return re(e, {}, o, [
2836
+ return ae(e, {}, r, [
2463
2837
  "onDragStart"
2464
- ]), re(e, {}, r, [
2838
+ ]), ae(e, {}, o, [
2465
2839
  "onDragEnd"
2466
- ]), { centerRef: i, isDragging: a };
2467
- }, Fa = (t) => {
2468
- const { mapRef: e, onChange: n } = t, i = D([0, 0]), a = D(!1), o = () => {
2469
- Promise.resolve().then(() => a.value = !0);
2470
- }, r = async () => {
2840
+ ]), { centerRef: a, isDragging: i };
2841
+ }, gr = (t) => {
2842
+ const { mapRef: e, onChange: n } = t, a = D([0, 0]), i = D(!1), r = () => {
2843
+ Promise.resolve().then(() => i.value = !0);
2844
+ }, o = async () => {
2471
2845
  var d, c;
2472
- a.value = !1;
2846
+ i.value = !1;
2473
2847
  const s = (d = e.value) == null ? void 0 : d.getCenter(), u = s == null ? void 0 : s.lng(), l = s == null ? void 0 : s.lat();
2474
- i.value = [u, l], (c = Dt(n)) == null || c([u, l]);
2848
+ a.value = [u, l], (c = Et(n)) == null || c([u, l]);
2475
2849
  };
2476
- return q(e, {}, o, [
2850
+ return K(e, {}, r, [
2477
2851
  "onDragStart"
2478
- ]), q(e, {}, r, [
2852
+ ]), K(e, {}, o, [
2479
2853
  "onDragEnd"
2480
- ]), { centerRef: i, isDragging: a };
2481
- }, $a = (t) => {
2482
- const { supplier: e } = j();
2483
- return e === "gmap" ? Fa(t) : Xa(t);
2484
- }, cn = (t) => {
2485
- const { pointRef: e, onChange: n } = t, { readyPromise: i } = j(), { idx: a, update: o } = F(), r = x({
2854
+ ]), { centerRef: a, isDragging: i };
2855
+ }, Ir = (t) => {
2856
+ const { supplier: e } = A();
2857
+ return e === "gmap" ? gr(t) : dr(t);
2858
+ }, jn = (t) => {
2859
+ const { pointRef: e, onChange: n } = t, { readyPromise: a } = A(), { idx: i, update: r } = te(), o = x({
2486
2860
  lng: e.value[0],
2487
2861
  lat: e.value[1],
2488
2862
  name: "",
2489
2863
  cityName: void 0
2490
2864
  });
2491
2865
  return b(
2492
- () => a.value,
2866
+ () => i.value,
2493
2867
  async () => {
2494
- await i;
2495
- const s = new AMap.Geocoder({ lang: De }), [u, l] = e.value;
2868
+ await a;
2869
+ const s = new AMap.Geocoder({ lang: xe }), [u, l] = e.value;
2496
2870
  s.getAddress(new AMap.LngLat(u, l), (d, c) => {
2497
2871
  switch (d) {
2498
2872
  case "complete": {
2499
- const { formattedAddress: g, addressComponent: I } = c.regeocode, M = I.city ? I.city : I.province;
2500
- r.name = g, r.lng = u, r.lat = l, r.cityName = M, n == null || n({ lng: u, lat: l, name: g, cityName: M });
2873
+ const { formattedAddress: g, addressComponent: I } = c.regeocode, m = I.city ? I.city : I.province;
2874
+ o.name = g, o.lng = u, o.lat = l, o.cityName = m, n == null || n({ lng: u, lat: l, name: g, cityName: m });
2501
2875
  return;
2502
2876
  }
2503
2877
  case "no_data":
2504
- r.name = "", n == null || n({ lng: u, lat: l, name: "" });
2878
+ o.name = "", n == null || n({ lng: u, lat: l, name: "" });
2505
2879
  return;
2506
2880
  case "error":
2507
2881
  throw c;
2508
2882
  }
2509
2883
  });
2510
2884
  }
2511
- ), { place: r, updatePlace: o };
2512
- }, un = (t) => {
2513
- const { pointRef: e, onChange: n } = t, { readyPromise: i } = j(), { idx: a, update: o } = F(), r = x({ lng: e.value[0], lat: e.value[1], name: "" });
2885
+ ), { place: o, updatePlace: r };
2886
+ }, An = (t) => {
2887
+ const { pointRef: e, onChange: n } = t, { readyPromise: a } = A(), { idx: i, update: r } = te(), o = x({ lng: e.value[0], lat: e.value[1], name: "" });
2514
2888
  return b(
2515
- () => a.value,
2889
+ () => i.value,
2516
2890
  async () => {
2517
- await i;
2518
- const s = new google.maps.Geocoder(), [u, l] = e.value, { results: d } = await s.geocode({ language: De, location: { lng: u, lat: l } }), c = d[0].formatted_address, g = Ki(d[0]);
2519
- r.name = c, r.lng = u, r.lat = l, n == null || n({ lng: u, lat: l, name: c, cityName: g });
2520
- }
2521
- ), { place: r, updatePlace: o };
2522
- }, Do = (t) => {
2523
- const { supplier: e } = j();
2524
- return e === "gmap" ? un(t) : cn(t);
2525
- }, _a = (t, e) => {
2526
- let n = 1 / 0, i = t;
2527
- for (const a of e) {
2528
- const o = AMap.GeometryUtil.distance(ve(t), ve(a));
2529
- o >= n || (i = a, n = o);
2891
+ await a;
2892
+ const s = new google.maps.Geocoder(), [u, l] = e.value, { results: d } = await s.geocode({ language: xe, location: { lng: u, lat: l } }), c = d[0].formatted_address, g = Ia(d[0]);
2893
+ o.name = c, o.lng = u, o.lat = l, n == null || n({ lng: u, lat: l, name: c, cityName: g });
2894
+ }
2895
+ ), { place: o, updatePlace: r };
2896
+ }, kr = (t) => {
2897
+ const { supplier: e } = A();
2898
+ return e === "gmap" ? An(t) : jn(t);
2899
+ }, Mr = (t, e) => {
2900
+ let n = 1 / 0, a = t;
2901
+ for (const i of e) {
2902
+ const r = AMap.GeometryUtil.distance(C(t), C(i));
2903
+ r >= n || (a = i, n = r);
2530
2904
  }
2531
- return { shortestPlace: i, shortestDistance: n };
2532
- }, Ka = (t, e) => {
2533
- let n = 1 / 0, i = t;
2534
- for (const a of e) {
2535
- const o = google.maps.geometry.spherical.computeDistanceBetween(t, a);
2536
- o >= n || (i = a, n = o);
2905
+ return { shortestPlace: a, shortestDistance: n };
2906
+ }, mr = (t, e) => {
2907
+ let n = 1 / 0, a = t;
2908
+ for (const i of e) {
2909
+ const r = google.maps.geometry.spherical.computeDistanceBetween(t, i);
2910
+ r >= n || (a = i, n = r);
2537
2911
  }
2538
- return { shortestPlace: i, shortestDistance: n };
2539
- }, qa = (t) => {
2540
- const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r } = t, s = D([]), { idx: u, update: l } = F(), { readyPromise: d } = j(), { place: c, updatePlace: g } = cn({ pointRef: e, onChange: r }), I = x({ ...c });
2912
+ return { shortestPlace: a, shortestDistance: n };
2913
+ }, fr = (t) => {
2914
+ const { pointRef: e, getRecomendPlace: n, getLimit: a, context: i, onChange: r, onChangePlace: o } = t, s = D([]), { idx: u, update: l } = te(), { readyPromise: d } = A(), { place: c, updatePlace: g } = jn({ pointRef: e, onChange: o }), I = x({ ...c });
2541
2915
  return b(
2542
2916
  () => u.value,
2543
2917
  async () => {
2544
2918
  await d;
2545
- const M = await n({ ...c }, a), { shortestPlace: f, shortestDistance: p } = _a(c, M), A = i(a), v = p > A ? c : f;
2546
- s.value = M, Object.assign(I, { ...v }), o == null || o({ ...v });
2919
+ const m = await n({ ...c }, i), { shortestPlace: p, shortestDistance: f } = Mr(c, m), j = a(i), y = f > j ? c : p;
2920
+ s.value = m, Object.assign(I, { ...y }), r == null || r({ ...y });
2547
2921
  }
2548
2922
  ), { recomendPlace: I, placeCandidates: s, updateRecomandPlace: l, updatePlace: g };
2549
- }, eo = (t) => {
2550
- const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r } = t, s = D([]), { idx: u, update: l } = F(), { readyPromise: d } = j(), { place: c, updatePlace: g } = un({ pointRef: e, onChange: r }), I = x({ ...c });
2923
+ }, pr = (t) => {
2924
+ const { pointRef: e, getRecomendPlace: n, getLimit: a, context: i, onChange: r, onChangePlace: o } = t, s = D([]), { idx: u, update: l } = te(), { readyPromise: d } = A(), { place: c, updatePlace: g } = An({ pointRef: e, onChange: o }), I = x({ ...c });
2551
2925
  return b(
2552
2926
  () => u.value,
2553
2927
  async () => {
2554
2928
  await d;
2555
- const M = await n({ ...c }, a), { shortestPlace: f, shortestDistance: p } = Ka(c, M), A = i(a), v = p > A ? c : f;
2556
- s.value = M, Object.assign(I, { ...v }), o == null || o({ ...v });
2929
+ const m = await n({ ...c }, i), { shortestPlace: p, shortestDistance: f } = mr(c, m), j = a(i), y = f > j ? c : p;
2930
+ s.value = m, Object.assign(I, { ...y }), r == null || r({ ...y });
2557
2931
  }
2558
2932
  ), { recomendPlace: I, placeCandidates: s, updateRecomandPlace: l, updatePlace: g };
2559
- }, to = (t) => {
2560
- const { supplier: e } = j();
2561
- return e === "gmap" ? eo(t) : qa(t);
2562
- }, ho = (t) => {
2563
- var $, xe;
2933
+ }, vr = (t) => {
2934
+ const { supplier: e } = A();
2935
+ return e === "gmap" ? pr(t) : fr(t);
2936
+ }, Gr = (t) => {
2937
+ var Ee, Ze;
2564
2938
  const {
2565
2939
  mapRef: e,
2566
- getRecomendPlace: n,
2940
+ geoDefaultPosition: n,
2941
+ getRecomendPlace: a,
2567
2942
  defaultCenterPoint: i,
2568
- recomendPlaceDragLimit: a,
2943
+ recomendPlaceDragLimit: r,
2569
2944
  recomendPlaceGeoLimit: o,
2570
- onLoadGeoLocation: r,
2571
- onChangeByDrag: s,
2572
- onChangeGeoLocation: u,
2573
- onChangePlace: l,
2574
- onChangeRecomandPlace: d
2575
- } = t, { readyPromise: c } = j(), g = x({
2576
- lng: ($ = i == null ? void 0 : i[0]) != null ? $ : 0,
2577
- lat: (xe = i == null ? void 0 : i[1]) != null ? xe : 0,
2945
+ onLoadGeoLocation: s,
2946
+ onLoadDefaultGeoLocation: u,
2947
+ onChangeByDrag: l,
2948
+ onChangeGeoLocation: d,
2949
+ onChangePlace: c,
2950
+ onChangeRecomandPlace: g
2951
+ } = t, { readyPromise: I } = A(), m = x({
2952
+ lng: (Ee = i == null ? void 0 : i[0]) != null ? Ee : 0,
2953
+ lat: (Ze = i == null ? void 0 : i[1]) != null ? Ze : 0,
2578
2954
  name: "",
2579
2955
  cityName: void 0
2580
- }), I = L(() => [g.lng, g.lat]), M = { source: "geo" }, f = (S) => {
2581
- M.source = "api", g.lng = S[0], g.lat = S[1], N();
2956
+ }), p = L(() => [m.lng, m.lat]), f = { source: "geo" }, j = (N) => {
2957
+ f.source = "api", m.lng = N[0], m.lat = N[1], O();
2958
+ }, y = (N) => {
2959
+ f.source = "api", m.lng = N.lng, m.lat = N.lat, m.name = N.name;
2582
2960
  };
2583
- i && c.then(() => {
2584
- M.source = "default", N();
2961
+ i && I.then(() => {
2962
+ f.source = "default", O();
2585
2963
  });
2586
- const { geoLoading: p, geoError: A, geoPosition: v, geoCoordinate: h, geoReady: P } = Ja({
2587
- onLoad: async (S) => {
2588
- i || (await c, M.source = "geo", g.lng = S.position[0], g.lat = S.position[1], N()), r == null || r(S);
2964
+ const { geoLoading: h, geoError: z, geoPosition: Y, geoCoordinate: S, geoReady: Z } = Ft({
2965
+ geoDefaultPosition: n,
2966
+ onLoad: async (N) => {
2967
+ i || (await I, f.source = "geo", m.lng = N.position[0], m.lat = N.position[1], O()), s == null || s(N);
2968
+ },
2969
+ onLoadDefault: async (N) => {
2970
+ i || (await I, f.source = "geo", m.lng = N.position[0], m.lat = N.position[1], O()), u == null || u(N);
2589
2971
  },
2590
- onChange: u
2591
- }), { isDragging: O } = $a({
2972
+ onChange: d
2973
+ }), { isDragging: H } = Ir({
2592
2974
  mapRef: e,
2593
- onChange: (S) => {
2594
- M.source = "drag", g.lng = S[0], g.lat = S[1], N(), s == null || s(S);
2595
- }
2596
- }), { updatePlace: N, updateRecomandPlace: Z, placeCandidates: W } = to({
2597
- pointRef: I,
2598
- context: M,
2599
- getRecomendPlace: n,
2600
- getLimit: (S) => {
2601
- const Ce = S == null ? void 0 : S.source;
2602
- switch (Ce) {
2975
+ onChange: (N) => {
2976
+ f.source = "drag", m.lng = N[0], m.lat = N[1], O(), l == null || l(N);
2977
+ }
2978
+ }), { updatePlace: O, updateRecomandPlace: Ln, placeCandidates: Nn } = vr({
2979
+ pointRef: p,
2980
+ context: f,
2981
+ getRecomendPlace: a,
2982
+ getLimit: (N) => {
2983
+ const Re = N == null ? void 0 : N.source;
2984
+ switch (Re) {
2603
2985
  case "drag":
2604
2986
  case "api":
2605
- return a;
2987
+ return r;
2606
2988
  case "geo":
2607
2989
  case "default":
2608
2990
  return o;
2609
2991
  default:
2610
- throw new Error(`MyError: should not call getLimit on source: ${Ce}`);
2992
+ throw new Error(`MyError: should not call getLimit on source: ${Re}`);
2611
2993
  }
2612
2994
  },
2613
- onChangePlace: (S) => {
2614
- Object.assign(g, { ...S }), M.source !== "recomend" && Z(), l == null || l(S);
2995
+ onChangePlace: (N) => {
2996
+ Object.assign(m, { ...N }), f.source !== "recomend" && Ln(), c == null || c(N);
2615
2997
  },
2616
- onChange: (S) => {
2617
- M.source = "recomend", Object.assign(g, { ...S }), N(), d == null || d(S);
2998
+ onChange: (N) => {
2999
+ f.source = "recomend", Object.assign(m, { ...N }), O(), g == null || g(N);
2618
3000
  }
2619
3001
  });
2620
3002
  return {
2621
- isDragging: O,
2622
- geoLoading: p,
2623
- geoError: A,
2624
- geoPosition: v,
2625
- geoCoordinate: h,
2626
- geoReady: P,
2627
- centerPlace: g,
2628
- centerPoint: I,
2629
- placeCandidates: W,
2630
- setCenterPlaceByRecomand: f
3003
+ isDragging: H,
3004
+ geoLoading: h,
3005
+ geoError: z,
3006
+ geoPosition: Y,
3007
+ geoCoordinate: S,
3008
+ geoReady: Z,
3009
+ centerPlace: m,
3010
+ centerPoint: p,
3011
+ placeCandidates: Nn,
3012
+ setCenterPlaceByRecomand: j,
3013
+ setCenterByPlace: y
2631
3014
  };
2632
- }, no = () => {
2633
- const t = w();
2634
- return { mapRef: t, panTo: (i) => {
2635
- var a;
2636
- return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(i);
2637
- }, setMap: (i) => {
2638
- t.value = i;
3015
+ }, yr = () => {
3016
+ const t = P();
3017
+ return { mapRef: t, panTo: (a) => {
3018
+ var i;
3019
+ return (i = t == null ? void 0 : t.value) == null ? void 0 : i.panTo(a);
3020
+ }, setMap: (a) => {
3021
+ t.value = a;
2639
3022
  } };
2640
- }, io = () => {
2641
- const t = w();
2642
- return { mapRef: t, panTo: (i) => {
2643
- var a;
2644
- return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(C(i));
2645
- }, setMap: (i) => {
2646
- t.value = i;
3023
+ }, jr = () => {
3024
+ const t = P();
3025
+ return { mapRef: t, panTo: (a) => {
3026
+ var i;
3027
+ return (i = t == null ? void 0 : t.value) == null ? void 0 : i.panTo(w(a));
3028
+ }, setMap: (a) => {
3029
+ t.value = a;
2647
3030
  } };
2648
- }, xo = () => {
2649
- const { supplier: t } = j();
2650
- return t === "gmap" ? io() : no();
2651
- }, ao = () => {
2652
- const { status: t } = j();
2653
- return { apiMapDistance: (n, i) => {
2654
- if (t === ee.SUCCESS)
2655
- return AMap.GeometryUtil.distance(n, i);
3031
+ }, Ar = () => {
3032
+ const { supplier: t } = A();
3033
+ return t === "gmap" ? jr() : yr();
3034
+ }, Lr = 20, Nr = (t) => {
3035
+ const { mapRef: e, autoFitTimeout: n } = t, a = /* @__PURE__ */ new Set();
3036
+ let i;
3037
+ const r = {
3038
+ add: (u) => {
3039
+ a.add(u);
3040
+ },
3041
+ remove: (u) => {
3042
+ a.delete(u);
3043
+ }
3044
+ }, o = () => {
3045
+ var m;
3046
+ const u = e.value;
3047
+ if (!u)
3048
+ return;
3049
+ const l = window.innerWidth / 100, [d, c, g, I] = (m = t.padding) != null ? m : [0, 0, 0, 0];
3050
+ console.log([...a]), u.setFitView([...a], !1, [d * l, g * l, I * l, c * l]);
3051
+ };
3052
+ return ae(
3053
+ e,
3054
+ {},
3055
+ () => {
3056
+ n && (i && clearTimeout(i), i = setTimeout(() => {
3057
+ i = void 0, o();
3058
+ }, n));
3059
+ },
3060
+ ["onDragEnd"]
3061
+ ), { registerFitVeiw: r, setFitView: o };
3062
+ };
3063
+ class Sr extends Set {
3064
+ getBound() {
3065
+ const e = new google.maps.LatLngBounds();
3066
+ for (const n of this.values()) {
3067
+ const a = n instanceof google.maps.Marker ? n.getPosition() : n.position;
3068
+ a && e.extend(a);
3069
+ }
3070
+ return e;
3071
+ }
3072
+ }
3073
+ const hr = (t) => {
3074
+ const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: a } = Xt(), i = new Sr();
3075
+ let r;
3076
+ const o = {
3077
+ add: (d) => {
3078
+ i.add(d);
3079
+ },
3080
+ remove: (d) => {
3081
+ i.delete(d);
3082
+ }
3083
+ }, s = () => {
3084
+ var f;
3085
+ const d = e.value;
3086
+ if (!d)
3087
+ return;
3088
+ const c = window.innerWidth / 100, [g, I, m, p] = (f = t.padding) != null ? f : [0, 0, 0, 0];
3089
+ a(
3090
+ () => d.fitBounds(i.getBound(), {
3091
+ top: g * c,
3092
+ right: I * c,
3093
+ bottom: m * c,
3094
+ left: p * c
3095
+ })
3096
+ );
3097
+ }, u = (d) => {
3098
+ const c = Ca();
3099
+ console.log("handleMoveEndOrZomEnd name, eventSource = ", d, c), !(!n || c !== "user") && (r && clearTimeout(r), r = setTimeout(() => {
3100
+ r = void 0, s();
3101
+ }, n));
3102
+ }, l = qi(u, Lr);
3103
+ return K(e, {}, u, [
3104
+ "onDragEnd"
3105
+ ]), K(e, {}, l, [
3106
+ "onZoom_changed"
3107
+ ]), { registerFitVeiw: o, setFitView: s };
3108
+ }, Dr = (t) => {
3109
+ const { supplier: e } = A();
3110
+ return e === "gmap" ? hr(t) : Nr(t);
3111
+ }, Wr = () => {
3112
+ const { mapRef: t, setMap: e } = Ar(), { registerFitVeiw: n, setFitView: a } = Dr({
3113
+ mapRef: t,
3114
+ autoFitTimeout: 5e3,
3115
+ padding: [25, 20, 15, 15]
3116
+ });
3117
+ return { setMap: e, registerFitVeiw: n, setFitView: a };
3118
+ }, Cr = () => {
3119
+ const { status: t } = A();
3120
+ return { apiMapDistance: (n, a) => {
3121
+ if (t === re.SUCCESS)
3122
+ return AMap.GeometryUtil.distance(n, a);
2656
3123
  } };
2657
- }, oo = () => {
2658
- const { status: t } = j();
2659
- return { apiMapDistance: (n, i) => {
2660
- if (t === ee.SUCCESS)
2661
- return google.maps.geometry.spherical.computeDistanceBetween(C(n), C(i));
3124
+ }, xr = () => {
3125
+ const { status: t } = A();
3126
+ return { apiMapDistance: (n, a) => {
3127
+ if (t === re.SUCCESS)
3128
+ return google.maps.geometry.spherical.computeDistanceBetween(w(n), w(a));
2662
3129
  } };
2663
- }, Co = () => {
2664
- const { supplier: t } = j();
2665
- return t === "gmap" ? oo() : ao();
3130
+ }, Ur = () => {
3131
+ const { supplier: t } = A();
3132
+ return t === "gmap" ? xr() : Cr();
2666
3133
  };
2667
3134
  export {
2668
- so as AddressBox,
2669
- co as DrivingLine,
2670
- go as DrivingRoute,
2671
- Lo as HeycarMap,
2672
- Ao as MapProvider,
2673
- Io as PassengerCircle,
2674
- Mo as PickupPoints,
2675
- Ma as PlaceCircle,
2676
- fo as StartEndPoint,
2677
- mo as TaxiCar,
2678
- po as WalkingLine,
2679
- yo as WalkingRoute,
2680
- jo as WaveCircle,
2681
- No as useBusinessMapAutoComplete,
2682
- So as useBusinessMapFitView,
2683
- ho as useBusinessMapRecomendPlace,
2684
- uo as useDrivingRoute,
2685
- Ja as useGeoLocation,
2686
- xo as useHeycarMap,
2687
- lo as useMapAngle,
2688
- $a as useMapDrag,
2689
- Qa as useMapFitView,
2690
- Co as useMapGeometry,
2691
- Do as useMapPlace,
2692
- to as useMapRecomendPlace,
2693
- vo as useWalkingRoute
3135
+ br as AddressBox,
3136
+ Zr as BusinessTaxiServiceMap,
3137
+ be as DrivingLine,
3138
+ Pe as DrivingRoute,
3139
+ wa as HeycarMap,
3140
+ Pr as MapProvider,
3141
+ ze as PassengerCircle,
3142
+ Rr as PickupPoints,
3143
+ R as PlaceCircle,
3144
+ k as StartEndPoint,
3145
+ Te as TaxiCar,
3146
+ mn as WalkingLine,
3147
+ vn as WalkingRoute,
3148
+ _a as WaveCircle,
3149
+ Or as useBusinessMapAutoComplete,
3150
+ Gr as useBusinessMapRecomendPlace,
3151
+ Wr as useBusinessTaxiServiceMap,
3152
+ zr as useDrivingRoute,
3153
+ Ft as useGeoLocation,
3154
+ Ar as useHeycarMap,
3155
+ Tr as useMapAngle,
3156
+ Ir as useMapDrag,
3157
+ Dr as useMapFitView,
3158
+ Ur as useMapGeometry,
3159
+ kr as useMapPlace,
3160
+ vr as useMapRecomendPlace,
3161
+ Er as useWalkingRoute
2694
3162
  };