@heycar/heycars-map 0.3.4 → 0.3.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.
package/dist/index.cjs CHANGED
@@ -1,70 +1,71 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");const be="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+",Re="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+";var Ln=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Sn=typeof global=="object"&&global&&global.Object===Object&&global;const Nn=Sn;var wn=typeof self=="object"&&self&&self.Object===Object&&self,Dn=Nn||wn||Function("return this")();const st=Dn;var Cn=st.Symbol;const H=Cn;var ct=Object.prototype,xn=ct.hasOwnProperty,Pn=ct.toString,$=H?H.toStringTag:void 0;function bn(t){var e=xn.call(t,$),n=t[$];try{t[$]=void 0;var i=!0}catch{}var a=Pn.call(t);return i&&(e?t[$]=n:delete t[$]),a}var Rn=Object.prototype,Tn=Rn.toString;function En(t){return Tn.call(t)}var zn="[object Null]",Zn="[object Undefined]",Ze=H?H.toStringTag:void 0;function On(t){return t==null?t===void 0?Zn:zn:Ze&&Ze in Object(t)?bn(t):En(t)}function kn(t){return t!=null&&typeof t=="object"}var Gn="[object Symbol]";function ut(t){return typeof t=="symbol"||kn(t)&&On(t)==Gn}function Wn(t,e){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}var Un=Array.isArray;const Bn=Un;var Yn=1/0,Oe=H?H.prototype:void 0,ke=Oe?Oe.toString:void 0;function lt(t){if(typeof t=="string")return t;if(Bn(t))return Wn(t,lt)+"";if(ut(t))return ke?ke.call(t):"";var e=t+"";return e=="0"&&1/t==-Yn?"-0":e}var Vn=/\s/;function Hn(t){for(var e=t.length;e--&&Vn.test(t.charAt(e)););return e}var Qn=/^\s+/;function Jn(t){return t&&t.slice(0,Hn(t)+1).replace(Qn,"")}function De(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ge=0/0,Fn=/^[-+]0x[0-9a-f]+$/i,Xn=/^0b[01]+$/i,$n=/^0o[0-7]+$/i,_n=parseInt;function We(t){if(typeof t=="number")return t;if(ut(t))return Ge;if(De(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=De(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Jn(t);var n=Xn.test(t);return n||$n.test(t)?_n(t.slice(2),n?2:8):Fn.test(t)?Ge:+t}function dt(t){return t==null?"":lt(t)}function Kn(t,e,n,i){var a=-1,o=t==null?0:t.length;for(i&&o&&(n=t[++a]);++a<o;)n=e(n,t[a],a,t);return n}function qn(t){return function(e){return t==null?void 0:t[e]}}var ei={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ti=qn(ei);const ni=ti;var ii=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ai="\\u0300-\\u036f",oi="\\ufe20-\\ufe2f",ri="\\u20d0-\\u20ff",si=ai+oi+ri,ci="["+si+"]",ui=RegExp(ci,"g");function li(t){return t=dt(t),t&&t.replace(ii,ni).replace(ui,"")}var di=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function gi(t){return t.match(di)||[]}var Mi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ii(t){return Mi.test(t)}var gt="\\ud800-\\udfff",mi="\\u0300-\\u036f",fi="\\ufe20-\\ufe2f",vi="\\u20d0-\\u20ff",pi=mi+fi+vi,Mt="\\u2700-\\u27bf",It="a-z\\xdf-\\xf6\\xf8-\\xff",yi="\\xac\\xb1\\xd7\\xf7",hi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ji="\\u2000-\\u206f",Ai=" \\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",mt="A-Z\\xc0-\\xd6\\xd8-\\xde",Li="\\ufe0e\\ufe0f",ft=yi+hi+ji+Ai,vt="['’]",Ue="["+ft+"]",Si="["+pi+"]",pt="\\d+",Ni="["+Mt+"]",yt="["+It+"]",ht="[^"+gt+ft+pt+Mt+It+mt+"]",wi="\\ud83c[\\udffb-\\udfff]",Di="(?:"+Si+"|"+wi+")",Ci="[^"+gt+"]",jt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",B="["+mt+"]",xi="\\u200d",Be="(?:"+yt+"|"+ht+")",Pi="(?:"+B+"|"+ht+")",Ye="(?:"+vt+"(?:d|ll|m|re|s|t|ve))?",Ve="(?:"+vt+"(?:D|LL|M|RE|S|T|VE))?",Lt=Di+"?",St="["+Li+"]?",bi="(?:"+xi+"(?:"+[Ci,jt,At].join("|")+")"+St+Lt+")*",Ri="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ti="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ei=St+Lt+bi,zi="(?:"+[Ni,jt,At].join("|")+")"+Ei,Zi=RegExp([B+"?"+yt+"+"+Ye+"(?="+[Ue,B,"$"].join("|")+")",Pi+"+"+Ve+"(?="+[Ue,B+Be,"$"].join("|")+")",B+"?"+Be+"+"+Ye,B+"+"+Ve,Ti,Ri,pt,zi].join("|"),"g");function Oi(t){return t.match(Zi)||[]}function ki(t,e,n){return t=dt(t),e=n?void 0:e,e===void 0?Ii(t)?Oi(t):gi(t):t.match(e)||[]}var Gi="['’]",Wi=RegExp(Gi,"g");function Ui(t){return function(e){return Kn(ki(li(e).replace(Wi,"")),t,"")}}var Bi=function(){return st.Date.now()};const we=Bi;var Yi="Expected a function",Vi=Math.max,Hi=Math.min;function Qi(t,e,n){var i,a,o,r,c,l,d=0,g=!1,u=!1,M=!0;if(typeof t!="function")throw new TypeError(Yi);e=We(e)||0,De(n)&&(g=!!n.leading,u="maxWait"in n,o=u?Vi(We(n.maxWait)||0,e):o,M="trailing"in n?!!n.trailing:M);function I(L){var P=i,T=a;return i=a=void 0,d=L,r=t.apply(T,P),r}function m(L){return d=L,c=setTimeout(y,e),g?I(L):r}function v(L){var P=L-l,T=L-d,Z=e-P;return u?Hi(Z,o-T):Z}function p(L){var P=L-l,T=L-d;return l===void 0||P>=e||P<0||u&&T>=o}function y(){var L=we();if(p(L))return f(L);c=setTimeout(y,v(L))}function f(L){return c=void 0,M&&i?I(L):(i=a=void 0,r)}function N(){c!==void 0&&clearTimeout(c),d=0,i=l=a=c=void 0}function w(){return c===void 0?r:f(we())}function C(){var L=we(),P=p(L);if(i=arguments,a=this,l=L,P){if(c===void 0)return m(l);if(u)return clearTimeout(c),c=setTimeout(y,e),I(l)}return c===void 0&&(c=setTimeout(y,e)),r}return C.cancel=N,C.flush=w,C}var Ji=Ui(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});const Nt=Ji;s.util.warn;function h(t){return s.defineComponent({name:t.name,inheritAttrs:!1,setup(e,n){const{attrs:i,slots:a,emit:o}=n,r=i,c=o,l=(g,u)=>{const M=Nt(g);c(g,u),g!==M&&c(M,u)},d=new Proxy(a,{get(g,u,M){var I;return(I=Reflect.get(g,u,M))!=null?I:Reflect.get(r,u)}});return t(r,{...n,slots:d,emit:l})}})}function te(t){return{props:e=>s.defineComponent({name:t.name,inheritAttrs:!1,props:e,setup(n,i){const a=n,{slots:o,emit:r}=i,c=r,l=(g,u)=>{const M=Nt(g);c(g,u),g!==M&&c(M,u)},d=new Proxy(o,{get(g,u,M){var I;return(I=Reflect.get(g,u,M))!=null?I:Reflect.get(a,u)}});return t(a,{...i,slots:d,emit:l})}})}}const z=s.h,K="zh-CN";var Fi="n8tgem1",He="n8tgem0",Xi="n8tgem5",$i="n8tgem4",_i="n8tgem2",Ki="n8tgem3",qi="n8tgem7",ea="n8tgem6";const wt=h(function(e,{emit:n}){const i=()=>n("click");return()=>{const{type:a,title:o,description:r}=e;return a==="locator"?s.h("div",{class:He},[s.h("img",{class:qi,attrs:{src:be}})]):s.h("div",{class:He},[s.h("div",{class:Fi,on:{click:i}},[s.h("div",{class:_i},[s.h("div",{class:Ki},[o]),r&&s.h("div",{class:$i},[r])]),s.h("img",{class:Xi,attrs:{src:Re}})]),s.h("i",{class:ea})])}}),O="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElIiB3aWR0aD0iMjIyLjIlIiBoZWlnaHQ9IjIyMi4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iZmlsdGVyLTIiPgogICAgICAgICAgICA8ZmVNb3JwaG9sb2d5IHJhZGl1cz0iMSIgb3BlcmF0b3I9ImRpbGF0ZSI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4wMDAwMDAsIDMyMS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=",Dt=Symbol(),A=()=>{const t=s.inject(Dt);if(!t)throw new Error("MyError: useMapSupplier should be under MapProvider");return t},ta=t=>s.provide(Dt,t),Ct=Symbol("amap"),je=()=>s.inject(Ct),na=t=>s.provide(Ct,t),xt=Symbol("gmap"),Ae=()=>s.inject(xt),ia=t=>s.provide(xt,t),Pt=()=>{const{supplier:t}=A();return t==="gmap"?Ae():je()},W=t=>{const e=Pt();s.watch(()=>e.value,n=>{n&&Promise.resolve().then(t)})},bt=t=>{const{registerOverlay:e,overlayRef:n}=t;s.watch(()=>n.value,(i,a)=>{e&&(a&&e.remove(a),i&&e.add(i))})},Qe=t=>t!=null&&typeof t=="object"&&Number.isFinite(t.lat)&&Number.isFinite(t.lng);var aa=typeof WeakMap=="function",Je=Object.keys;function Ie(t,e){return t===e||t!==t&&e!==e}function Fe(t){return t.constructor===Object||t.constructor==null}function Xe(t){return!!t&&typeof t.then=="function"}function $e(t){return!!(t&&t.$$typeof)}function oa(){var t=[];return{delete:function(e){for(var n=0;n<t.length;++n)if(t[n][0]===e){t.splice(n,1);return}},get:function(e){for(var n=0;n<t.length;++n)if(t[n][0]===e)return t[n][1]},set:function(e,n){for(var i=0;i<t.length;++i)if(t[i][0]===e){t[i][1]=n;return}t.push([e,n])}}}var ra=function(t){return t?function(){return new WeakMap}:oa}(aa);function Rt(t){return function(n){var i=t||n;return function(o,r,c,l,d,g,u){u===void 0&&(u=ra());var M=!!o&&typeof o=="object",I=!!r&&typeof r=="object";if(M!==I)return!1;if(!M&&!I)return i(o,r,u);var m=u.get(o);if(m&&u.get(r))return m===r;u.set(o,r),u.set(r,o);var v=i(o,r,u);return u.delete(o),u.delete(r),v}}}function sa(t,e,n,i){var a=t.length;if(e.length!==a)return!1;for(;a-- >0;)if(!n(t[a],e[a],a,a,t,e,i))return!1;return!0}function ca(t,e,n,i){var a=t.size===e.size;if(a&&t.size){var o={},r=0;t.forEach(function(c,l){if(a){var d=!1,g=0;e.forEach(function(u,M){!d&&!o[g]&&(d=n(l,M,r,g,t,e,i)&&n(c,u,l,M,t,e,i),d&&(o[g]=!0)),g++}),r++,a=d}})}return a}var ua="_owner",la=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function _e(t,e,n,i){var a=Je(t),o=a.length;if(Je(e).length!==o)return!1;if(o)for(var r=void 0;o-- >0;){if(r=a[o],r===ua){var c=$e(t),l=$e(e);if((c||l)&&c!==l)return!1}if(!la(e,r)||!n(t[r],e[r],r,r,t,e,i))return!1}return!0}var da=function(){return/foo/g.flags==="g"?function(e,n){return e.source===n.source&&e.flags===n.flags}:function(e,n){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}}();function ga(t,e,n,i){var a=t.size===e.size;if(a&&t.size){var o={};t.forEach(function(r,c){if(a){var l=!1,d=0;e.forEach(function(g,u){!l&&!o[d]&&(l=n(r,g,c,u,t,e,i),l&&(o[d]=!0)),d++}),a=l}})}return a}var Ma=typeof Map=="function",Ia=typeof Set=="function",Ke=Object.prototype.valueOf;function ne(t){var e=typeof t=="function"?t(n):function(i,a,o,r,c,l,d){return n(i,a,d)};function n(i,a,o){if(i===a)return!0;if(i&&a&&typeof i=="object"&&typeof a=="object"){if(Fe(i)&&Fe(a))return _e(i,a,e,o);var r=Array.isArray(i),c=Array.isArray(a);return r||c?r===c&&sa(i,a,e,o):(r=i instanceof Date,c=a instanceof Date,r||c?r===c&&Ie(i.getTime(),a.getTime()):(r=i instanceof RegExp,c=a instanceof RegExp,r||c?r===c&&da(i,a):Xe(i)||Xe(a)?i===a:Ma&&(r=i instanceof Map,c=a instanceof Map,r||c)?r===c&&ca(i,a,e,o):Ia&&(r=i instanceof Set,c=a instanceof Set,r||c)?r===c&&ga(i,a,e,o):i.valueOf!==Ke||a.valueOf!==Ke?Ie(i.valueOf(),a.valueOf()):_e(i,a,e,o)))}return i!==i&&a!==a}return n}ne();ne(function(){return Ie});ne(Rt());ne(Rt(Ie));const x=([t,e])=>({lng:t,lat:e}),Le=t=>{const e=[],n=t.split("*");for(const[i,a]of n.entries())a&&e.push({value:a,type:i%2===0?"normal":"emphasize"});return e},Tt=t=>`${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`,Et=t=>t.slice(2).toLowerCase(),ma=t=>{switch(t){case"en":return"style_en";case"zh":return"style_zh_cn"}},D=t=>[t.lng,t.lat],zt=t=>(...e)=>{setTimeout(()=>t==null?void 0:t(...e))},qe=t=>{const{address_components:e}=t,n=e.find(a=>a.types[0]==="administrative_area_level_1"||a.types[0]==="administrative_area_level_2");if(n)return n.long_name;const i=e.findIndex(a=>a.types[0]==="country");if(i>0)return e[i-1].long_name},Zt=ne(t=>(e,n)=>Qe(e)||Qe(n)?new google.maps.LatLng(e).equals(new google.maps.LatLng(n)):t(e,n));function Ot(){let t;return function(n){return Zt(n,t)||(t=n),t}}function ie(t,e,n){const i=Ot();return s.watch(()=>i(t()),e,{immediate:!1,flush:"post",...n})}function J(t,e,n){const i=Ot();return s.watch(()=>i(t()),e,{immediate:!0,flush:"post",...n})}function fa(t){return`set${t.charAt(0).toUpperCase()}${t.slice(1)}`}function va(t,e,n,i){const a=n.map(({name:o})=>()=>e[o]);s.watch(a,(o,r)=>{const c=t.value;if(c)for(const[l,d]of o.entries()){const{name:g,defaultValue:u}=n[l],M=r[l];Zt(d,M)||c[fa(g)](d!=null?d:u)}},{immediate:!0,flush:"post",...i})}function Te(t,e,n,i){return va(t,e,n,{immediate:!1,...i})}function q(t,e,n,i){s.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Tt(c),d=Et(c),g=u=>n(l,u);o.on(d,g),r.push(()=>o==null?void 0:o.off(d,g))}a(()=>{for(const c of r)c()})})}function Q(t,e,n,i){s.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Tt(c),d=Et(c),g=M=>n(l,M),u=o.addListener(d,g);r.push(()=>google.maps.event.removeListener(u))}a(()=>{for(const c of r)c()})})}const k=h(function(e,{emit:n}){const{registerOverlay:i}=e,a=s.shallowRef(),o=je();return s.onMounted(()=>{a.value=new AMap.Marker({...e})}),s.onUnmounted(()=>{var r;(r=a.value)==null||r.setMap(null)}),bt({registerOverlay:i,overlayRef:a}),s.watchPostEffect(()=>{var c;const r=o==null?void 0:o.value;r&&((c=a.value)==null||c.setMap(r))}),Te(a,e,[{name:"anchor",defaultValue:""},{name:"offset",defaultValue:[0,0]},{name:"clickable",defaultValue:!1},{name:"position",defaultValue:[0,0]},{name:"angle",defaultValue:0},{name:"label",defaultValue:void 0},{name:"zIndex",defaultValue:0},{name:"icon",defaultValue:""},{name:"draggable",defaultValue:!1},{name:"cursor",defaultValue:""},{name:"content",defaultValue:""},{name:"title",defaultValue:""},{name:"extData",defaultValue:""}]),q(a,e,n,["onClick"]),()=>null}),G=h(function(e,{emit:n}){const{registerOverlay:i}=e,a=s.shallowRef(),o=Ae(),r=c=>n(c,{target:a.value});return bt({registerOverlay:i,overlayRef:a}),s.onMounted(()=>{const{registerOverlay:c,...l}=e;a.value=new google.maps.marker.AdvancedMarkerView({...l}),a.value.addListener}),s.onUnmounted(()=>{a.value&&(a.value.map=null)}),s.watchPostEffect(()=>{const c=o==null?void 0:o.value;!c||!a.value||(a.value.map=c)}),ie(()=>{const{content:c,registerOverlay:l,...d}=e;return d},c=>{a.value&&Object.assign(a.value,c)}),s.watch(()=>e.content,c=>{a.value&&(a.value.content=c)},{flush:"post"}),Q(a,e,r,["onClick"]),()=>null}),S=(t,e)=>{s.watchEffect(()=>{t.log&&console.log(`log ${e} props = `,{...t})})},pa=(t,e,n,i)=>{s.watchEffect(()=>{t.log&&console.log(`log ${e} ${i} = `,{...n})})},b=(t,e,n)=>{const{class:i,...a}=e!=null?e:{},o=document.createElement(t);return i&&(o.className=i),Object.assign(o,a),n&&(o.innerHTML=n),o};var kt="rgf09w0";const Gt=h(function(e){const n=s.computed(()=>`
2
- <img src="${be}" class="${kt}">
3
- `);return()=>s.h(k,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),Wt=h(function(e){const n=s.computed(()=>b("img",{class:kt,src:be}));return()=>s.h(G,{attrs:{position:x(e.position),content:n.value}})});h(function(e){const n=A();return()=>z(n.supplier==="gmap"?Wt:Gt,{attrs:e})});var Ut="_15rq2xn1",Bt="_15rq2xn0",Yt="_15rq2xn3",Vt="_15rq2xn2",Ht="_15rq2xn4",Qt="_15rq2xn6",Jt="_15rq2xn5";const ya=h(function(e){S(e,"AAddressBox");const n=s.computed(()=>{var i;return`
4
- <div class="${Bt}">
5
- <div class="${Ut}">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");s.util.warn;const be="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+",Te="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+";var xn=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;const bn=Pn;var Tn=typeof self=="object"&&self&&self.Object===Object&&self,Rn=bn||Tn||Function("return this")();const gt=Rn;var En=gt.Symbol;const H=En;var Mt=Object.prototype,zn=Mt.hasOwnProperty,Zn=Mt.toString,$=H?H.toStringTag:void 0;function On(t){var e=zn.call(t,$),n=t[$];try{t[$]=void 0;var i=!0}catch{}var a=Zn.call(t);return i&&(e?t[$]=n:delete t[$]),a}var Gn=Object.prototype,kn=Gn.toString;function Wn(t){return kn.call(t)}var Un="[object Null]",Bn="[object Undefined]",We=H?H.toStringTag:void 0;function Vn(t){return t==null?t===void 0?Bn:Un:We&&We in Object(t)?On(t):Wn(t)}function Yn(t){return t!=null&&typeof t=="object"}var Hn="[object Symbol]";function It(t){return typeof t=="symbol"||Yn(t)&&Vn(t)==Hn}function Qn(t,e){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}var Jn=Array.isArray;const Fn=Jn;var Xn=1/0,Ue=H?H.prototype:void 0,Be=Ue?Ue.toString:void 0;function mt(t){if(typeof t=="string")return t;if(Fn(t))return Qn(t,mt)+"";if(It(t))return Be?Be.call(t):"";var e=t+"";return e=="0"&&1/t==-Xn?"-0":e}var $n=/\s/;function _n(t){for(var e=t.length;e--&&$n.test(t.charAt(e)););return e}var Kn=/^\s+/;function qn(t){return t&&t.slice(0,_n(t)+1).replace(Kn,"")}function De(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ve=0/0,ei=/^[-+]0x[0-9a-f]+$/i,ti=/^0b[01]+$/i,ni=/^0o[0-7]+$/i,ii=parseInt;function Ye(t){if(typeof t=="number")return t;if(It(t))return Ve;if(De(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=De(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=qn(t);var n=ti.test(t);return n||ni.test(t)?ii(t.slice(2),n?2:8):ei.test(t)?Ve:+t}function ft(t){return t==null?"":mt(t)}function ai(t,e,n,i){var a=-1,o=t==null?0:t.length;for(i&&o&&(n=t[++a]);++a<o;)n=e(n,t[a],a,t);return n}function oi(t){return function(e){return t==null?void 0:t[e]}}var ri={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",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ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},si=oi(ri);const ci=si;var ui=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,li="\\u0300-\\u036f",di="\\ufe20-\\ufe2f",gi="\\u20d0-\\u20ff",Mi=li+di+gi,Ii="["+Mi+"]",mi=RegExp(Ii,"g");function fi(t){return t=ft(t),t&&t.replace(ui,ci).replace(mi,"")}var vi=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function pi(t){return t.match(vi)||[]}var yi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hi(t){return yi.test(t)}var vt="\\ud800-\\udfff",ji="\\u0300-\\u036f",Ai="\\ufe20-\\ufe2f",Li="\\u20d0-\\u20ff",Si=ji+Ai+Li,pt="\\u2700-\\u27bf",yt="a-z\\xdf-\\xf6\\xf8-\\xff",Ni="\\xac\\xb1\\xd7\\xf7",wi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Di="\\u2000-\\u206f",Ci=" \\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",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",xi="\\ufe0e\\ufe0f",jt=Ni+wi+Di+Ci,At="['’]",He="["+jt+"]",Pi="["+Si+"]",Lt="\\d+",bi="["+pt+"]",St="["+yt+"]",Nt="[^"+vt+jt+Lt+pt+yt+ht+"]",Ti="\\ud83c[\\udffb-\\udfff]",Ri="(?:"+Pi+"|"+Ti+")",Ei="[^"+vt+"]",wt="(?:\\ud83c[\\udde6-\\uddff]){2}",Dt="[\\ud800-\\udbff][\\udc00-\\udfff]",B="["+ht+"]",zi="\\u200d",Qe="(?:"+St+"|"+Nt+")",Zi="(?:"+B+"|"+Nt+")",Je="(?:"+At+"(?:d|ll|m|re|s|t|ve))?",Fe="(?:"+At+"(?:D|LL|M|RE|S|T|VE))?",Ct=Ri+"?",xt="["+xi+"]?",Oi="(?:"+zi+"(?:"+[Ei,wt,Dt].join("|")+")"+xt+Ct+")*",Gi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ki="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wi=xt+Ct+Oi,Ui="(?:"+[bi,wt,Dt].join("|")+")"+Wi,Bi=RegExp([B+"?"+St+"+"+Je+"(?="+[He,B,"$"].join("|")+")",Zi+"+"+Fe+"(?="+[He,B+Qe,"$"].join("|")+")",B+"?"+Qe+"+"+Je,B+"+"+Fe,ki,Gi,Lt,Ui].join("|"),"g");function Vi(t){return t.match(Bi)||[]}function Yi(t,e,n){return t=ft(t),e=n?void 0:e,e===void 0?hi(t)?Vi(t):pi(t):t.match(e)||[]}var Hi="['’]",Qi=RegExp(Hi,"g");function Ji(t){return function(e){return ai(Yi(fi(e).replace(Qi,"")),t,"")}}var Fi=function(){return gt.Date.now()};const we=Fi;var Xi="Expected a function",$i=Math.max,_i=Math.min;function Ki(t,e,n){var i,a,o,r,c,l,g=0,M=!1,u=!1,d=!0;if(typeof t!="function")throw new TypeError(Xi);e=Ye(e)||0,De(n)&&(M=!!n.leading,u="maxWait"in n,o=u?$i(Ye(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d);function I(w){var C=i,R=a;return i=a=void 0,g=w,r=t.apply(R,C),r}function m(w){return g=w,c=setTimeout(y,e),M?I(w):r}function f(w){var C=w-l,R=w-g,Z=e-C;return u?_i(Z,o-R):Z}function p(w){var C=w-l,R=w-g;return l===void 0||C>=e||C<0||u&&R>=o}function y(){var w=we();if(p(w))return v(w);c=setTimeout(y,f(w))}function v(w){return c=void 0,d&&i?I(w):(i=a=void 0,r)}function j(){c!==void 0&&clearTimeout(c),g=0,i=l=a=c=void 0}function N(){return c===void 0?r:v(we())}function P(){var w=we(),C=p(w);if(i=arguments,a=this,l=w,C){if(c===void 0)return m(l);if(u)return clearTimeout(c),c=setTimeout(y,e),I(l)}return c===void 0&&(c=setTimeout(y,e)),r}return P.cancel=j,P.flush=N,P}var qi=Ji(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});const Pt=qi;function h(t){return s.defineComponent({name:t.name,inheritAttrs:!1,setup(e,n){const{attrs:i,slots:a,emit:o}=n,r=i,c=o,l=(M,u)=>{const d=Pt(M);c(M,u),M!==d&&c(d,u)},g=new Proxy(a,{get(M,u,d){var I;return(I=Reflect.get(M,u,d))!=null?I:Reflect.get(r,u)}});return t(r,{...n,slots:g,emit:l})}})}function te(t){return{props:e=>s.defineComponent({name:t.name,inheritAttrs:!1,props:e,setup(n,i){const a=n,{slots:o,emit:r}=i,c=r,l=(M,u)=>{const d=Pt(M);c(M,u),M!==d&&c(d,u)},g=new Proxy(o,{get(M,u,d){var I;return(I=Reflect.get(M,u,d))!=null?I:Reflect.get(a,u)}});return t(a,{...i,slots:g,emit:l})}})}}const z=s.h,K="zh-CN";var ea="n8tgem1",Xe="n8tgem0",ta="n8tgem5",na="n8tgem4",ia="n8tgem2",aa="n8tgem3",oa="n8tgem7",ra="n8tgem6";const sa=h(function(e){const n=s.computed(()=>{var i;return(i=e.value)==null?void 0:i.split(`
2
+ `).flatMap((a,o)=>o===0?a:[s.h("br"),a])});return()=>s.h("div",[n.value])}),bt=h(function(e,{emit:n}){const i=()=>n("click");return()=>{const{type:a,title:o,description:r}=e;return a==="locator"?s.h("div",{class:Xe},[s.h("img",{class:oa,attrs:{src:be}})]):s.h("div",{class:Xe},[s.h("div",{class:ea,on:{click:i}},[s.h("div",{class:ia},[s.h(sa,{class:aa,attrs:{value:o}}),!!r&&s.h("div",{class:na},[r])]),s.h("img",{class:ta,attrs:{src:Te}})]),s.h("i",{class:ra})])}}),O="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElIiB3aWR0aD0iMjIyLjIlIiBoZWlnaHQ9IjIyMi4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iZmlsdGVyLTIiPgogICAgICAgICAgICA8ZmVNb3JwaG9sb2d5IHJhZGl1cz0iMSIgb3BlcmF0b3I9ImRpbGF0ZSIgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd1NwcmVhZE91dGVyMSI+PC9mZU1vcnBob2xvZ3k+CiAgICAgICAgICAgIDxmZU9mZnNldCBkeD0iMCIgZHk9IjAiIGluPSJzaGFkb3dTcHJlYWRPdXRlcjEiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIj48L2ZlT2Zmc2V0PgogICAgICAgICAgICA8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxLjUiIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91d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gICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=",Tt=Symbol(),A=()=>{const t=s.inject(Tt);if(!t)throw new Error("MyError: useMapSupplier should be under MapProvider");return t},ca=t=>s.provide(Tt,t),Rt=Symbol("amap"),ne=()=>s.inject(Rt),ua=t=>s.provide(Rt,t),Et=Symbol("gmap"),ie=()=>s.inject(Et),la=t=>s.provide(Et,t),zt=()=>{const{supplier:t}=A();return t==="gmap"?ie():ne()},W=t=>{const e=zt();s.watch(()=>e.value,n=>{n&&Promise.resolve().then(t)})},Zt=t=>{const{registerOverlay:e,overlayRef:n}=t;s.watch(()=>n.value,(i,a)=>{e&&(a&&e.remove(a),i&&e.add(i))})},$e=t=>t!=null&&typeof t=="object"&&Number.isFinite(t.lat)&&Number.isFinite(t.lng);var da=typeof WeakMap=="function",_e=Object.keys;function fe(t,e){return t===e||t!==t&&e!==e}function Ke(t){return t.constructor===Object||t.constructor==null}function qe(t){return!!t&&typeof t.then=="function"}function et(t){return!!(t&&t.$$typeof)}function ga(){var t=[];return{delete:function(e){for(var n=0;n<t.length;++n)if(t[n][0]===e){t.splice(n,1);return}},get:function(e){for(var n=0;n<t.length;++n)if(t[n][0]===e)return t[n][1]},set:function(e,n){for(var i=0;i<t.length;++i)if(t[i][0]===e){t[i][1]=n;return}t.push([e,n])}}}var Ma=function(t){return t?function(){return new WeakMap}:ga}(da);function Ot(t){return function(n){var i=t||n;return function(o,r,c,l,g,M,u){u===void 0&&(u=Ma());var d=!!o&&typeof o=="object",I=!!r&&typeof r=="object";if(d!==I)return!1;if(!d&&!I)return i(o,r,u);var m=u.get(o);if(m&&u.get(r))return m===r;u.set(o,r),u.set(r,o);var f=i(o,r,u);return u.delete(o),u.delete(r),f}}}function Ia(t,e,n,i){var a=t.length;if(e.length!==a)return!1;for(;a-- >0;)if(!n(t[a],e[a],a,a,t,e,i))return!1;return!0}function ma(t,e,n,i){var a=t.size===e.size;if(a&&t.size){var o={},r=0;t.forEach(function(c,l){if(a){var g=!1,M=0;e.forEach(function(u,d){!g&&!o[M]&&(g=n(l,d,r,M,t,e,i)&&n(c,u,l,d,t,e,i),g&&(o[M]=!0)),M++}),r++,a=g}})}return a}var fa="_owner",va=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function tt(t,e,n,i){var a=_e(t),o=a.length;if(_e(e).length!==o)return!1;if(o)for(var r=void 0;o-- >0;){if(r=a[o],r===fa){var c=et(t),l=et(e);if((c||l)&&c!==l)return!1}if(!va(e,r)||!n(t[r],e[r],r,r,t,e,i))return!1}return!0}var pa=function(){return/foo/g.flags==="g"?function(e,n){return e.source===n.source&&e.flags===n.flags}:function(e,n){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}}();function ya(t,e,n,i){var a=t.size===e.size;if(a&&t.size){var o={};t.forEach(function(r,c){if(a){var l=!1,g=0;e.forEach(function(M,u){!l&&!o[g]&&(l=n(r,M,c,u,t,e,i),l&&(o[g]=!0)),g++}),a=l}})}return a}var ha=typeof Map=="function",ja=typeof Set=="function",nt=Object.prototype.valueOf;function ae(t){var e=typeof t=="function"?t(n):function(i,a,o,r,c,l,g){return n(i,a,g)};function n(i,a,o){if(i===a)return!0;if(i&&a&&typeof i=="object"&&typeof a=="object"){if(Ke(i)&&Ke(a))return tt(i,a,e,o);var r=Array.isArray(i),c=Array.isArray(a);return r||c?r===c&&Ia(i,a,e,o):(r=i instanceof Date,c=a instanceof Date,r||c?r===c&&fe(i.getTime(),a.getTime()):(r=i instanceof RegExp,c=a instanceof RegExp,r||c?r===c&&pa(i,a):qe(i)||qe(a)?i===a:ha&&(r=i instanceof Map,c=a instanceof Map,r||c)?r===c&&ma(i,a,e,o):ja&&(r=i instanceof Set,c=a instanceof Set,r||c)?r===c&&ya(i,a,e,o):i.valueOf!==nt||a.valueOf!==nt?fe(i.valueOf(),a.valueOf()):tt(i,a,e,o)))}return i!==i&&a!==a}return n}ae();ae(function(){return fe});ae(Ot());ae(Ot(fe));const x=([t,e])=>({lng:t,lat:e}),Le=t=>{const e=[],n=t.split("*");for(const[i,a]of n.entries())a&&e.push({value:a,type:i%2===0?"normal":"emphasize"});return e},Gt=t=>`${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`,kt=t=>t.slice(2).toLowerCase(),Aa=t=>{switch(t){case"en":return"style_en";case"zh":return"style_zh_cn"}},D=t=>[t.lng,t.lat],Wt=t=>(...e)=>{setTimeout(()=>t==null?void 0:t(...e))},it=t=>{const{address_components:e}=t,n=e.find(a=>a.types[0]==="administrative_area_level_1"||a.types[0]==="administrative_area_level_2");if(n)return n.long_name;const i=e.findIndex(a=>a.types[0]==="country");if(i>0)return e[i-1].long_name},La=(t,e)=>t.lng===(e==null?void 0:e.lng)&&t.lat===(e==null?void 0:e.lat),Ut=(t,e)=>t[0]===(e==null?void 0:e[0])&&t[1]===(e==null?void 0:e[1]),Bt=ae(t=>(e,n)=>$e(e)||$e(n)?new google.maps.LatLng(e).equals(new google.maps.LatLng(n)):t(e,n));function Re(){let t;return function(n){return Bt(n,t)||(t=n),t}}function oe(t,e,n){const i=Re();return s.watch(()=>i(t()),e,{immediate:!1,flush:"post",...n})}function J(t,e,n){const i=Re();return s.watch(()=>i(t()),e,{immediate:!0,flush:"post",...n})}function Sa(t,e,n){const i=Re();return s.watch(()=>i(t()),e,{immediate:!0,...n})}function Na(t){return`set${t.charAt(0).toUpperCase()}${t.slice(1)}`}function wa(t,e,n,i){const a=n.map(({name:o})=>()=>e[o]);s.watch(a,(o,r)=>{const c=t.value;if(c)for(const[l,g]of o.entries()){const{name:M,defaultValue:u}=n[l],d=r[l];Bt(g,d)||c[Na(M)](g!=null?g:u)}},{immediate:!0,flush:"post",...i})}function Ee(t,e,n,i){return wa(t,e,n,{immediate:!1,...i})}function q(t,e,n,i){s.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Gt(c),g=kt(c),M=u=>n(l,u);o.on(g,M),r.push(()=>o==null?void 0:o.off(g,M))}a(()=>{for(const c of r)c()})})}function Q(t,e,n,i){s.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Gt(c),g=kt(c),M=d=>n(l,d),u=o.addListener(g,M);r.push(()=>google.maps.event.removeListener(u))}a(()=>{for(const c of r)c()})})}const G=h(function(e,{emit:n}){const{registerOverlay:i}=e,a=s.shallowRef(),o=ne();return s.onMounted(()=>{a.value=new AMap.Marker({...e})}),s.onUnmounted(()=>{var r;(r=a.value)==null||r.setMap(null)}),Zt({registerOverlay:i,overlayRef:a}),s.watchPostEffect(()=>{var c;const r=o==null?void 0:o.value;r&&((c=a.value)==null||c.setMap(r))}),Ee(a,e,[{name:"anchor",defaultValue:""},{name:"offset",defaultValue:[0,0]},{name:"clickable",defaultValue:!1},{name:"position",defaultValue:[0,0]},{name:"angle",defaultValue:0},{name:"label",defaultValue:void 0},{name:"zIndex",defaultValue:0},{name:"icon",defaultValue:""},{name:"draggable",defaultValue:!1},{name:"cursor",defaultValue:""},{name:"content",defaultValue:""},{name:"title",defaultValue:""},{name:"extData",defaultValue:""}]),q(a,e,n,["onClick"]),()=>null}),k=h(function(e,{emit:n}){const{registerOverlay:i}=e,a=s.shallowRef(),o=ie(),r=c=>n(c,{target:a.value});return Zt({registerOverlay:i,overlayRef:a}),s.onMounted(()=>{const{registerOverlay:c,...l}=e;a.value=new google.maps.marker.AdvancedMarkerView({...l}),a.value.addListener}),s.onUnmounted(()=>{a.value&&(a.value.map=null)}),s.watchPostEffect(()=>{const c=o==null?void 0:o.value;!c||!a.value||(a.value.map=c)}),oe(()=>{const{content:c,registerOverlay:l,...g}=e;return g},c=>{a.value&&Object.assign(a.value,c)}),s.watch(()=>e.content,c=>{a.value&&(a.value.content=c)},{flush:"post"}),Q(a,e,r,["onClick"]),()=>null}),S=(t,e)=>{s.watchEffect(()=>{t.log&&console.log(`log ${e} props = `,{...t})})},Da=(t,e,n,i)=>{s.watchEffect(()=>{t.log&&console.log(`log ${e} ${i} = `,{...n})})},b=(t,e,n)=>{const{class:i,...a}=e!=null?e:{},o=document.createElement(t);return i&&(o.className=i),Object.assign(o,a),n&&(o.innerHTML=n),o};var Vt="rgf09w0";const Yt=h(function(e){const n=s.computed(()=>`
3
+ <img src="${be}" class="${Vt}">
4
+ `);return()=>s.h(G,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),Ht=h(function(e){const n=s.computed(()=>b("img",{class:Vt,src:be}));return()=>s.h(k,{attrs:{position:x(e.position),content:n.value}})});h(function(e){const n=A();return()=>z(n.supplier==="gmap"?Ht:Yt,{attrs:e})});var Qt="_15rq2xn1",Jt="_15rq2xn0",Ft="_15rq2xn3",Xt="_15rq2xn2",$t="_15rq2xn4",_t="_15rq2xn6",Kt="_15rq2xn5";const Ca=h(function(e){S(e,"AAddressBox");const n=s.computed(()=>{var i;return`
5
+ <div class="${Jt}">
6
+ <div class="${Qt}">
6
7
  <div>
7
- <div class="${Vt}">${e.title}</div>
8
- <div class="${Yt}">${(i=e.description)!=null?i:""}</div>
8
+ <div class="${Xt}">${e.title}</div>
9
+ <div class="${Ft}">${(i=e.description)!=null?i:""}</div>
9
10
  </div>
10
- <img class="${Ht}" src="${Re}" >
11
+ <img class="${$t}" src="${Te}" >
11
12
  </div>
12
- <div class="${Jt}"></div>
13
- <img src="${O}" class="${Qt}">
13
+ <div class="${Kt}"></div>
14
+ <img src="${O}" class="${_t}">
14
15
  </div>
15
- `});return()=>e.type==="locator"?s.h(Gt,{attrs:{position:e.position}}):s.h(k,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),ha=h(function(e){S(e,"GAddressBox");const n=s.computed(()=>{var i;return b("div",{class:Bt},`
16
- <div class="${Ut}">
16
+ `});return()=>e.type==="locator"?s.h(Yt,{attrs:{position:e.position}}):s.h(G,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),xa=h(function(e){S(e,"GAddressBox");const n=s.computed(()=>{var i;return b("div",{class:Jt},`
17
+ <div class="${Qt}">
17
18
  <div>
18
- <div class="${Vt}">${e.title}</div>
19
- <div class="${Yt}">${(i=e.description)!=null?i:""}</div>
19
+ <div class="${Xt}">${e.title}</div>
20
+ <div class="${Ft}">${(i=e.description)!=null?i:""}</div>
20
21
  </div>
21
- <img class="${Ht}" src="${Re}" >
22
+ <img class="${$t}" src="${Te}" >
22
23
  </div>
23
- <div class="${Jt}"></div>
24
- <img src="${O}" class="${Qt}">
25
- `)});return()=>e.type==="locator"?s.h(Wt,{attrs:{position:e.position}}):s.h(G,{attrs:{position:x(e.position),content:n.value}})}),ja=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?ha:ya,{attrs:e})});var Ce={},Aa={get exports(){return Ce},set exports(t){Ce=t}};(function(t,e){(function(n,i){t.exports=i()})(Ln,function(){function n(u){var M=[];return u.AMapUI&&M.push(i(u.AMapUI)),u.Loca&&M.push(a(u.Loca)),Promise.all(M)}function i(u){return new Promise(function(M,I){var m=[];if(u.plugins)for(var v=0;v<u.plugins.length;v+=1)r.AMapUI.plugins.indexOf(u.plugins[v])==-1&&m.push(u.plugins[v]);if(c.AMapUI===o.failed)I("前次请求 AMapUI 失败");else if(c.AMapUI===o.notload){c.AMapUI=o.loading,r.AMapUI.version=u.version||r.AMapUI.version,v=r.AMapUI.version;var p=document.body||document.head,y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/ui/"+v+"/main.js",y.onerror=function(f){c.AMapUI=o.failed,I("请求 AMapUI 失败")},y.onload=function(){if(c.AMapUI=o.loaded,m.length)window.AMapUI.loadUI(m,function(){for(var f=0,N=m.length;f<N;f++){var w=m[f].split("/").slice(-1)[0];window.AMapUI[w]=arguments[f]}for(M();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()});else for(M();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()},p.appendChild(y)}else c.AMapUI===o.loaded?u.version&&u.version!==r.AMapUI.version?I("不允许多个版本 AMapUI 混用"):m.length?window.AMapUI.loadUI(m,function(){for(var f=0,N=m.length;f<N;f++){var w=m[f].split("/").slice(-1)[0];window.AMapUI[w]=arguments[f]}M()}):M():u.version&&u.version!==r.AMapUI.version?I("不允许多个版本 AMapUI 混用"):l.AMapUI.push(function(f){f?I(f):m.length?window.AMapUI.loadUI(m,function(){for(var N=0,w=m.length;N<w;N++){var C=m[N].split("/").slice(-1)[0];window.AMapUI[C]=arguments[N]}M()}):M()})})}function a(u){return new Promise(function(M,I){if(c.Loca===o.failed)I("前次请求 Loca 失败");else if(c.Loca===o.notload){c.Loca=o.loading,r.Loca.version=u.version||r.Loca.version;var m=r.Loca.version,v=r.AMap.version.startsWith("2"),p=m.startsWith("2");if(v&&!p||!v&&p)I("JSAPI 与 Loca 版本不对应!!");else{v=r.key,p=document.body||document.head;var y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/loca?v="+m+"&key="+v,y.onerror=function(f){c.Loca=o.failed,I("请求 AMapUI 失败")},y.onload=function(){for(c.Loca=o.loaded,M();l.Loca.length;)l.Loca.splice(0,1)[0]()},p.appendChild(y)}}else c.Loca===o.loaded?u.version&&u.version!==r.Loca.version?I("不允许多个版本 Loca 混用"):M():u.version&&u.version!==r.Loca.version?I("不允许多个版本 Loca 混用"):l.Loca.push(function(f){f?I(f):I()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var o;(function(u){u.notload="notload",u.loading="loading",u.loaded="loaded",u.failed="failed"})(o||(o={}));var r={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},c={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},l={AMap:[],AMapUI:[],Loca:[]},d=[],g=function(u){typeof u=="function"&&(c.AMap===o.loaded?u(window.AMap):d.push(u))};return{load:function(u){return new Promise(function(M,I){if(c.AMap==o.failed)I("");else if(c.AMap==o.notload){var m=u.key,v=u.version,p=u.plugins;m?(window.AMap&&location.host!=="lbs.amap.com"&&I("禁止多种API加载方式混用"),r.key=m,r.AMap.version=v||r.AMap.version,r.AMap.plugins=p||r.AMap.plugins,c.AMap=o.loading,v=document.body||document.head,window.___onAPILoaded=function(f){if(delete window.___onAPILoaded,f)c.AMap=o.failed,I(f);else for(c.AMap=o.loaded,n(u).then(function(){M(window.AMap)}).catch(I);d.length;)d.splice(0,1)[0]()},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(f){c.AMap=o.failed,I(f)},v.appendChild(p)):I("请填写key")}else if(c.AMap==o.loaded)if(u.key&&u.key!==r.key)I("多个不一致的 key");else if(u.version&&u.version!==r.AMap.version)I("不允许多个版本 JSAPI 混用");else{if(m=[],u.plugins)for(v=0;v<u.plugins.length;v+=1)r.AMap.plugins.indexOf(u.plugins[v])==-1&&m.push(u.plugins[v]);m.length?window.AMap.plugin(m,function(){n(u).then(function(){M(window.AMap)}).catch(I)}):n(u).then(function(){M(window.AMap)}).catch(I)}else if(u.key&&u.key!==r.key)I("多个不一致的 key");else if(u.version&&u.version!==r.AMap.version)I("不允许多个版本 JSAPI 混用");else{var y=[];if(u.plugins)for(v=0;v<u.plugins.length;v+=1)r.AMap.plugins.indexOf(u.plugins[v])==-1&&y.push(u.plugins[v]);g(function(){y.length?window.AMap.plugin(y,function(){n(u).then(function(){M(window.AMap)}).catch(I)}):n(u).then(function(){M(window.AMap)}).catch(I)})}})},reset:function(){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"}},c={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},l={AMap:[],AMapUI:[],Loca:[]}}}})})(Aa);var La=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(a=i;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(n).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=i;a--!==0;){var r=o[a];if(!t(e[r],n[r]))return!1}return!0}return e!==e&&n!==n};const et="__googleMapsScriptId";var Y;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(Y||(Y={}));class U{constructor({apiKey:e,authReferrerPolicy:n,channel:i,client:a,id:o=et,language:r,libraries:c=[],mapIds:l,nonce:d,region:g,retries:u=3,url:M="https://maps.googleapis.com/maps/api/js",version:I}){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||et,this.language=r,this.libraries=c,this.mapIds=l,this.nonce=d,this.region=g,this.retries=u,this.url=M,this.version=I,U.instance){if(!La(this.options,U.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(U.instance.options)}`);return U.instance}U.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Y.FAILURE:this.done?Y.SUCCESS:this.loading?Y.LOADING:Y.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;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}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,n)=>{this.loadCallback(i=>{i?n(i.error):e(window.google)})})}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const e=this.createUrl(),n=document.createElement("script");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)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=e,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){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();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}const Sa=["AMap.Geolocation","AMap.Geocoder","AMap.PlaceSearch","AMap.Driving","AMap.Walking"],Na=["marker","places","geometry"];var ee=(t=>(t.LOADING="LOADING",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t))(ee||{});const wa=t=>{const{onChange:e}=t;let n,i;const a=new Promise((c,l)=>{n=c,i=l}),o=s.shallowRef("LOADING"),r=s.computed(()=>{const{onChange:c,loading:l,fallback:d,apiKey:g,apiSecret:u,apiServiceHost:M,version:I,...m}=t;return{...m,key:g,version:I!=null?I:"2.0.5.16"}});return J(()=>r.value,c=>{const l=d=>{o.value=d,d==="SUCCESS"&&n(),d==="FAILURE"&&i(),e==null||e(o.value)};l("LOADING"),window._AMapSecurityConfig=t.apiServiceHost?{serviceHost:t.apiServiceHost}:{securityJsCode:t.apiSecret},Ce.load(c).then(()=>l("SUCCESS"),()=>l("FAILURE"))}),{statusRef:o,readyPromise:a}},Da=t=>{const{onChange:e}=t;let n,i;const a=new Promise((c,l)=>{n=c,i=l}),o=s.shallowRef("LOADING"),r=s.computed(()=>{const{onChange:c,fallback:l,loading:d,...g}=t;return g});return J(()=>r.value,c=>{const l=new U(c),d=g=>{o.value=g,g==="SUCCESS"&&n(),g==="FAILURE"&&i(),e==null||e(o.value)};d("LOADING"),l.load().then(()=>d("SUCCESS"),()=>d("FAILURE"))}),{statusRef:o,readyPromise:a}},Ca=t=>{const{gmapKey:e,amapKey:n,amapSecret:i,amapServiceHost:a,supplier:o,language:r,onChange:c}=t;return o==="gmap"?Da({apiKey:e,language:r,version:"beta",libraries:Na,onChange:c}):wa({apiKey:n,apiSecret:i,apiServiceHost:a,plugins:Sa,onChange:c})};var xa="_1d8ur7t0";const Pa=h(function(e,{slots:n,emit:i}){const{onDragStart:a,onDragEnd:o,mapRef:r,vectorMapForeign:c="style_zh_cn",...l}=e,d=s.computed(()=>({dragEnable:!!e.dragEnable,zoomEnable:!!e.zoomEnable,jogEnable:!!e.jogEnable,pitchEnable:!!e.pitchEnable,rotateEnable:!!e.rotateEnable,animateEnable:!!e.animateEnable,keyboardEnable:!!e.keyboardEnable})),g=s.shallowRef(),u=s.shallowRef();return na(u),s.watchPostEffect(()=>{if(u.value||!g.value)return;const M=new AMap.Map(g.value,{...l,vectorMapForeign:c,mapStyle:"amap://styles/95498a904992a4c0b866a3e4d7729682"});u.value=M,r==null||r(M)}),ie(()=>d.value,M=>{var I;(I=u.value)==null||I.setStatus(M)}),Te(u,e,[{name:"center",defaultValue:[0,0]},{name:"zooms",defaultValue:[0,0]},{name:"zoom",defaultValue:0},{name:"layers",defaultValue:[]},{name:"limitBounds",defaultValue:[]},{name:"rotation",defaultValue:0},{name:"defaultCursor",defaultValue:""},{name:"mapStyle",defaultValue:""},{name:"features",defaultValue:[]},{name:"pitch",defaultValue:0},{name:"mask",defaultValue:[]},{name:"labelRejectMask",defaultValue:!1}]),q(u,e,i,["onDragStart","onDragEnd"]),()=>{var M;return s.h("div",{ref:g,class:xa},(M=n.default)==null?void 0:M.call(n))}});let ge="user";const ba=()=>ge,Ft=()=>({executeMapApi:e=>{ge="api";try{e(),setTimeout(()=>{ge="user"},100)}catch(n){throw ge="user",n}}});var Ra="_7anfuo0";const Ta=h(function(e,{slots:n,emit:i}){const a=e.mapRef,o=s.computed(()=>{const{mapRef:u,onDragStart:M,onDragEnd:I,...m}=e;return m}),r=o.value,c=s.shallowRef(),l=s.shallowRef(),{executeMapApi:d}=Ft(),g=u=>i(u,{target:l.value});return ia(l),s.watchPostEffect(()=>{if(l.value||!c.value)return;let u;d(()=>{u=new google.maps.Map(c.value,{...r})}),l.value=u,a==null||a(u)}),ie(()=>o.value,u=>{d(()=>{var M;return(M=l.value)==null?void 0:M.setOptions({...u})})}),Q(l,e,g,["onDragStart","onDragEnd"]),()=>{var u;return s.h("div",{ref:c,class:Ra},(u=n.default)==null?void 0:u.call(n))}}),Ea=te(function(e,{slots:n}){const{statusRef:i,readyPromise:a}=Ca(e),o=new Proxy(e,{get(r,c,l){return c==="status"?i.value:c==="readyPromise"?a:Reflect.get(r,c,l)}});return ta(o),()=>{var r;return s.h("div",[(r=n.default)==null?void 0:r.call(n)])}}).props(["amapKey","amapSecret","amapServiceHost","gmapId","gmapKey","supplier","language"]),ae=te(function(e,{slots:n,emit:i}){S(e,"HeycarMap");const a=A(),o=({target:c})=>{const{lng:l,lat:d}=c.getCenter();i("dragEnd",[l(),d()])},r=({target:c})=>{const{lng:l,lat:d}=c.getCenter();i("dragEnd",[l,d])};return()=>{var v,p,y;const{supplier:c,gmapId:l,language:d="zh",status:g}=a,{mapRef:u,center:M,zoom:I}=e;if(g===ee.LOADING)return(v=n.loading)==null?void 0:v.call(n);if(g===ee.FAILURE)return(p=n.fallback)==null?void 0:p.call(n);const m=(y=n.default)==null?void 0:y.call(n);switch(c){case"gmap":return s.h(Ta,{attrs:{mapRef:u,mapId:l,center:M?x(M):void 0,zoom:I},on:{dragEnd:o}},[m]);default:return s.h(Pa,{attrs:{mapRef:u,vectorMapForeign:ma(d),center:M,zoom:I},on:{dragEnd:r}},[m])}}}).props(["center","fallback","loading","mapRef","zoom"]),_=h(function(e){const n=s.shallowRef(),i=je();return s.onMounted(()=>{n.value=new AMap.Polyline({...e})}),s.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),s.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),Te(n,e,[{name:"path",defaultValue:[[0,0]]},{name:"extData",defaultValue:void 0},{name:"draggable",defaultValue:!1}]),ie(()=>{const{path:a,extData:o,draggable:r,...c}=e;return c},a=>{var o;(o=n.value)==null||o.setOptions({...a})}),()=>null}),Me=h(function(e){const n=s.shallowRef(),i=Ae();return s.onMounted(()=>{n.value=new google.maps.Polyline({...e})}),s.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),s.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),ie(()=>({...e}),a=>{var o;(o=n.value)==null||o.setOptions({...a})}),()=>null}),za=h(function(e){return S(e,"ADrivingLine"),()=>{const n=window.innerWidth*.01,i=2.5*n,a=.35*n,o=.6*n,r=1*n,c=.75*n,l=e.done?"#96B2CA":"#487BF4",d=e.done?"#7693AF":"#4175F1",g=e.done?"#7693AF":"#6C95F5";return s.h("div",[s.h(_,{attrs:{path:e.path,strokeWeight:i+2*a+2*r,strokeOpacity:1,strokeColor:d,lineJoin:"round",lineCap:"round"}}),s.h(_,{attrs:{path:e.path,strokeWeight:i+2*a,strokeOpacity:1,strokeColor:g,lineJoin:"round",lineCap:"round",strokeStyle:"dashed",strokeDasharray:[c,c*.5]}}),s.h(_,{attrs:{path:e.path,strokeWeight:i,strokeOpacity:1,strokeColor:l,lineJoin:"round",lineCap:"round"}}),s.h(_,{attrs:{showDir:!0,path:e.path,strokeWeight:i+2*o,strokeOpacity:1,strokeColor:"transparent",lineJoin:"round",lineCap:"round"}})])}}),Za=h(function(e){S(e,"ADrivingLine");const n=s.computed(()=>e.path.map(x));return()=>{const i=window.innerWidth*.01,a=10*i,o=2.5*i,r=.35*i,c=.75*i,l=1*i,d=e.done?"#96B2CA":"#487BF4",g=e.done?"#7693AF":"#4175F1",u=e.done?"#7693AF":"#6C95F5";return s.h("div",[s.h(Me,{attrs:{path:n.value,strokeWeight:o+2*r+2*l,strokeOpacity:1,strokeColor:g}}),s.h(Me,{attrs:{path:n.value,icons:[{icon:{path:"M 0,-0.5 0,0.5",strokeWeight:o+2*r,strokeColor:u,fillColor:u,scale:1},repeat:`${o}px`,offset:`${o/2}px`}]}}),s.h(Me,{attrs:{path:n.value,strokeWeight:o,strokeOpacity:1,strokeColor:d,icons:[{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW,strokeColor:"white",strokeWeight:c,scale:3},repeat:`${a}px`}]}})])}}),oe=h(function(e){const n=A();return()=>e.path.length?z(n.supplier==="gmap"?Za:za,{attrs:e}):null}),Xt=t=>{const e=s.reactive({path:[],distance:0,duration:0}),n=new AMap.Driving({});return J(()=>({...t}),({from:i,to:a})=>{n.search(AMap.LngLat.from(i),AMap.LngLat.from(a),{waypoints:[]},(o,r)=>{switch(o){case"complete":{let c=[];const d=r.routes[0];for(const g of d.steps){const M=g.path.map(({lng:I,lat:m})=>[I,m]);c=c.concat(M)}e.path=c,e.distance=d.distance,e.duration=d.time;return}case"no_data":e.path=[],e.distance=0,e.duration=0;return;default:throw r}})}),e},$t=t=>{const e=s.reactive({path:[],distance:0,duration:0}),n=new google.maps.DirectionsService;return J(()=>({...t}),({from:i,to:a})=>{n.route({origin:{lng:i[0],lat:i[1]},destination:{lng:a[0],lat:a[1]},travelMode:google.maps.TravelMode.DRIVING},(o,r)=>{var c,l,d,g;switch(r){case google.maps.DirectionsStatus.OK:{let u=[],M=0,I=0;const m=o.routes[0],v=m.overview_path.map(p=>[p.lng(),p.lat()]);u=u.concat(v);for(const p of m.legs)M+=(l=(c=p.distance)==null?void 0:c.value)!=null?l:0,I+=(g=(d=p.duration)==null?void 0:d.value)!=null?g:0;e.path=u,e.distance=M,e.duration=I;return}case google.maps.DirectionsStatus.ZERO_RESULTS:case google.maps.DirectionsStatus.NOT_FOUND:e.path=[],e.distance=0,e.duration=0;return;default:throw new Error(r)}})}),e},Oa=t=>{const{supplier:e}=A();return e==="gmap"?$t(t):Xt(t)},ka=(t,e,n)=>{if(!n)return 0;const{x:i,y:a}=n.lngLatToContainer(t),{x:o,y:r}=n.lngLatToContainer(e),c=Math.atan2(a-r,o-i);return(Math.PI/2-c)/Math.PI*180},_t=t=>s.computed(()=>{const{map:e,path:n}=t,[i,a]=n;if(!(!i||!a||!e))return ka(i,a,e)}),Kt=t=>s.computed(()=>{const{path:e}=t,[n,i]=e;if(!(!n||!i))return google.maps.geometry.spherical.computeHeading(x(n),x(i))}),Ga=t=>{const{supplier:e}=A();return e==="gmap"?Kt(t):_t(t)},Wa=h(function(e,{slots:n}){S(e,"ADrivingRoute");const i=je(),{path:a,distance:o,duration:r}=s.toRefs(Xt(e)),c=_t(s.reactive({path:a,map:i}));return()=>{var l;return s.h("div",[(l=n.render)==null?void 0:l.call(n,s.reactive({path:a,angle:c,distance:o,duration:r}))])}}),Ua=h(function(e,{slots:n}){S(e,"GDrivingRoute");const i=Ae(),{path:a,distance:o,duration:r}=s.toRefs($t(e)),c=Kt(s.reactive({path:a,map:i}));return()=>{var l;return s.h("div",[(l=n.render)==null?void 0:l.call(n,s.reactive({path:a,angle:c,distance:o,duration:r}))])}}),re=h(function(e,{slots:n}){const{supplier:i}=A();return()=>z(i==="gmap"?Ua:Wa,{attrs:e,scopedSlots:n})}),Ba=20,Ya=t=>{const{mapRef:e,autoFitTimeout:n}=t,i=new Set;let a;const o=()=>{var m;const l=e.value;if(!l)return;const d=window.innerWidth/100,[g,u,M,I]=(m=t.padding)!=null?m:[0,0,0,0];console.log([...i]),l.setFitView([...i],!1,[g*d,M*d,I*d,u*d])},r={add:l=>{i.add(l)},remove:l=>{i.delete(l)},setFitView:o};return q(e,{},()=>{n&&(a&&clearTimeout(a),a=setTimeout(()=>{a=void 0,o()},n))},["onDragEnd"]),{registerFitVeiw:r,setFitView:o}};class Va extends Set{getBound(){const e=new google.maps.LatLngBounds;for(const n of this.values()){const i=n instanceof google.maps.Marker?n.getPosition():n.position;i&&e.extend(i)}return e}}const Ha=t=>{const{mapRef:e,autoFitTimeout:n}=t,{executeMapApi:i}=Ft(),a=new Va;let o;const r=()=>{var p;const g=e.value;if(!g)return;const u=window.innerWidth/100,[M,I,m,v]=(p=t.padding)!=null?p:[0,0,0,0];i(()=>g.fitBounds(a.getBound(),{top:M*u,right:I*u,bottom:m*u,left:v*u}))},c={add:g=>{a.add(g)},remove:g=>{a.delete(g)},setFitView:r},l=g=>{const u=ba();console.log("handleMoveEndOrZomEnd name, eventSource = ",g,u),!(!n||u!=="user")&&(o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,r()},n))},d=Qi(l,Ba);return Q(e,{},l,["onDragEnd"]),Q(e,{},d,["onZoom_changed"]),{registerFitVeiw:c,setFitView:r}},se=t=>{const{supplier:e}=A();return e==="gmap"?Ha(t):Ya(t)};h(function(e,{slots:n}){const i=Pt(),a=se({...e,mapRef:i});return()=>{var o;return s.h("div",[(o=n.render)==null?void 0:o.call(n,a)])}});const Qa=h(function(e,{slots:n}){const{registerOverlay:i}=e,{setFitView:a}=i;return W(a),()=>{var o;return s.h("div",[(o=n.default)==null?void 0:o.call(n)])}}),qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zLjg2My44OTMtMy44NjMgMS45OTQgMCAxLjEwMiAxLjczIDEuOTk1IDMuODYzIDEuOTk1eiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyNy4wMDZjMi4xMjggMC0uOS0zLjc0MyA1LjYyMS02LjY0M0MxOS44NDIgMTguNDUzIDIyIDE0Ljk1MyAyMiAxMC45NSAyMiA0LjkwMiAxNy4wNzUgMCAxMSAwUzAgNC45MDIgMCAxMC45NWMwIDMuOTE4IDIuMDY4IDcuMzU2IDUuMTc3IDkuMjlDMTEuNzUgMjMuMjg0IDkuMDYgMjcuMDA3IDExIDI3LjAw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4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";function Ja(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function nt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tt(Object(n),!0).forEach(function(i){Ja(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var Fa=(t,e,n)=>{for(var i of Object.keys(t)){var a;if(t[i]!==((a=e[i])!==null&&a!==void 0?a:n[i]))return!1}return!0},F=t=>e=>{var n=t.defaultClassName,i=nt(nt({},t.defaultVariants),e);for(var a in i){var o,r=(o=i[a])!==null&&o!==void 0?o:t.defaultVariants[a];if(r!=null){var c=r;typeof c=="boolean"&&(c=c===!0?"true":"false");var l=t.variantClassNames[a][c];l&&(n+=" "+l)}}for(var[d,g]of t.compoundVariants)Fa(d,i,t.defaultVariants)&&(n+=" "+g);return n},V=F({defaultClassName:"",variantClassNames:{type:{start:"_4a4ovk6",end:"_4a4ovk7"}},defaultVariants:{},compoundVariants:[]}),tn="_4a4ovk1",nn="_4a4ovk4",an="_4a4ovk5",on="_4a4ovk3",me="_4a4ovk0",rn="_4a4ovk2";const Xa=h(function(e){S(e,"AStartEndPoint");const n=s.computed(()=>{var o;const i=e.type==="start"?en:qt,a=e.description?Le(e.description).map(r=>r.type==="normal"?r.value:`<span class="${an}">${r.value}</span>`).join(""):"";return!e.description&&!e.title?`<img src="${i}" class="${V({type:e.type})}">`:e.description?`
26
- <div class="${me}">
27
- <div class="${tn}">
28
- <div class="${on}">${(o=e.title)!=null?o:""}</div>
29
- <div class="${nn}">${a}</div>
24
+ <div class="${Kt}"></div>
25
+ <img src="${O}" class="${_t}">
26
+ `)});return()=>e.type==="locator"?s.h(Ht,{attrs:{position:e.position}}):s.h(k,{attrs:{position:x(e.position),content:n.value}})}),Pa=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?xa:Ca,{attrs:e})});var Ce={},ba={get exports(){return Ce},set exports(t){Ce=t}};(function(t,e){(function(n,i){t.exports=i()})(xn,function(){function n(u){var d=[];return u.AMapUI&&d.push(i(u.AMapUI)),u.Loca&&d.push(a(u.Loca)),Promise.all(d)}function i(u){return new Promise(function(d,I){var m=[];if(u.plugins)for(var f=0;f<u.plugins.length;f+=1)r.AMapUI.plugins.indexOf(u.plugins[f])==-1&&m.push(u.plugins[f]);if(c.AMapUI===o.failed)I("前次请求 AMapUI 失败");else if(c.AMapUI===o.notload){c.AMapUI=o.loading,r.AMapUI.version=u.version||r.AMapUI.version,f=r.AMapUI.version;var p=document.body||document.head,y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/ui/"+f+"/main.js",y.onerror=function(v){c.AMapUI=o.failed,I("请求 AMapUI 失败")},y.onload=function(){if(c.AMapUI=o.loaded,m.length)window.AMapUI.loadUI(m,function(){for(var v=0,j=m.length;v<j;v++){var N=m[v].split("/").slice(-1)[0];window.AMapUI[N]=arguments[v]}for(d();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()});else for(d();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()},p.appendChild(y)}else c.AMapUI===o.loaded?u.version&&u.version!==r.AMapUI.version?I("不允许多个版本 AMapUI 混用"):m.length?window.AMapUI.loadUI(m,function(){for(var v=0,j=m.length;v<j;v++){var N=m[v].split("/").slice(-1)[0];window.AMapUI[N]=arguments[v]}d()}):d():u.version&&u.version!==r.AMapUI.version?I("不允许多个版本 AMapUI 混用"):l.AMapUI.push(function(v){v?I(v):m.length?window.AMapUI.loadUI(m,function(){for(var j=0,N=m.length;j<N;j++){var P=m[j].split("/").slice(-1)[0];window.AMapUI[P]=arguments[j]}d()}):d()})})}function a(u){return new Promise(function(d,I){if(c.Loca===o.failed)I("前次请求 Loca 失败");else if(c.Loca===o.notload){c.Loca=o.loading,r.Loca.version=u.version||r.Loca.version;var m=r.Loca.version,f=r.AMap.version.startsWith("2"),p=m.startsWith("2");if(f&&!p||!f&&p)I("JSAPI 与 Loca 版本不对应!!");else{f=r.key,p=document.body||document.head;var y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/loca?v="+m+"&key="+f,y.onerror=function(v){c.Loca=o.failed,I("请求 AMapUI 失败")},y.onload=function(){for(c.Loca=o.loaded,d();l.Loca.length;)l.Loca.splice(0,1)[0]()},p.appendChild(y)}}else c.Loca===o.loaded?u.version&&u.version!==r.Loca.version?I("不允许多个版本 Loca 混用"):d():u.version&&u.version!==r.Loca.version?I("不允许多个版本 Loca 混用"):l.Loca.push(function(v){v?I(v):I()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var o;(function(u){u.notload="notload",u.loading="loading",u.loaded="loaded",u.failed="failed"})(o||(o={}));var r={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},c={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},l={AMap:[],AMapUI:[],Loca:[]},g=[],M=function(u){typeof u=="function"&&(c.AMap===o.loaded?u(window.AMap):g.push(u))};return{load:function(u){return new Promise(function(d,I){if(c.AMap==o.failed)I("");else if(c.AMap==o.notload){var m=u.key,f=u.version,p=u.plugins;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,c.AMap=o.loading,f=document.body||document.head,window.___onAPILoaded=function(v){if(delete window.___onAPILoaded,v)c.AMap=o.failed,I(v);else for(c.AMap=o.loaded,n(u).then(function(){d(window.AMap)}).catch(I);g.length;)g.splice(0,1)[0]()},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){c.AMap=o.failed,I(v)},f.appendChild(p)):I("请填写key")}else if(c.AMap==o.loaded)if(u.key&&u.key!==r.key)I("多个不一致的 key");else if(u.version&&u.version!==r.AMap.version)I("不允许多个版本 JSAPI 混用");else{if(m=[],u.plugins)for(f=0;f<u.plugins.length;f+=1)r.AMap.plugins.indexOf(u.plugins[f])==-1&&m.push(u.plugins[f]);m.length?window.AMap.plugin(m,function(){n(u).then(function(){d(window.AMap)}).catch(I)}):n(u).then(function(){d(window.AMap)}).catch(I)}else if(u.key&&u.key!==r.key)I("多个不一致的 key");else if(u.version&&u.version!==r.AMap.version)I("不允许多个版本 JSAPI 混用");else{var y=[];if(u.plugins)for(f=0;f<u.plugins.length;f+=1)r.AMap.plugins.indexOf(u.plugins[f])==-1&&y.push(u.plugins[f]);M(function(){y.length?window.AMap.plugin(y,function(){n(u).then(function(){d(window.AMap)}).catch(I)}):n(u).then(function(){d(window.AMap)}).catch(I)})}})},reset:function(){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"}},c={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},l={AMap:[],AMapUI:[],Loca:[]}}}})})(ba);var Ta=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(a=i;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(n).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=i;a--!==0;){var r=o[a];if(!t(e[r],n[r]))return!1}return!0}return e!==e&&n!==n};const at="__googleMapsScriptId";var V;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(V||(V={}));class U{constructor({apiKey:e,authReferrerPolicy:n,channel:i,client:a,id:o=at,language:r,libraries:c=[],mapIds:l,nonce:g,region:M,retries:u=3,url:d="https://maps.googleapis.com/maps/api/js",version:I}){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||at,this.language=r,this.libraries=c,this.mapIds=l,this.nonce=g,this.region=M,this.retries=u,this.url=d,this.version=I,U.instance){if(!Ta(this.options,U.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(U.instance.options)}`);return U.instance}U.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?V.FAILURE:this.done?V.SUCCESS:this.loading?V.LOADING:V.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;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}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,n)=>{this.loadCallback(i=>{i?n(i.error):e(window.google)})})}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const e=this.createUrl(),n=document.createElement("script");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)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=e,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){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();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}const Ra=["AMap.Geolocation","AMap.Geocoder","AMap.PlaceSearch","AMap.Driving","AMap.Walking"],Ea=["marker","places","geometry"];var ee=(t=>(t.LOADING="LOADING",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t))(ee||{});const za=t=>{const{onChange:e}=t;let n,i;const a=new Promise((c,l)=>{n=c,i=l}),o=s.shallowRef("LOADING"),r=s.computed(()=>{const{onChange:c,loading:l,fallback:g,apiKey:M,apiSecret:u,apiServiceHost:d,version:I,...m}=t;return{...m,key:M,version:I!=null?I:"2.0.5.16"}});return J(()=>r.value,c=>{const l=g=>{o.value=g,g==="SUCCESS"&&n(),g==="FAILURE"&&i(),e==null||e(o.value)};l("LOADING"),window._AMapSecurityConfig=t.apiServiceHost?{serviceHost:t.apiServiceHost}:{securityJsCode:t.apiSecret},Ce.load(c).then(()=>l("SUCCESS"),()=>l("FAILURE"))}),{statusRef:o,readyPromise:a}},Za=t=>{const{onChange:e}=t;let n,i;const a=new Promise((c,l)=>{n=c,i=l}),o=s.shallowRef("LOADING"),r=s.computed(()=>{const{onChange:c,fallback:l,loading:g,...M}=t;return M});return J(()=>r.value,c=>{const l=new U(c),g=M=>{o.value=M,M==="SUCCESS"&&n(),M==="FAILURE"&&i(),e==null||e(o.value)};g("LOADING"),l.load().then(()=>g("SUCCESS"),()=>g("FAILURE"))}),{statusRef:o,readyPromise:a}},Oa=t=>{const{gmapKey:e,amapKey:n,amapSecret:i,amapServiceHost:a,supplier:o,language:r,onChange:c}=t;return o==="gmap"?Za({apiKey:e,language:r,version:"beta",libraries:Ea,onChange:c}):za({apiKey:n,apiSecret:i,apiServiceHost:a,plugins:Ra,onChange:c})};var Ga="_1d8ur7t0";const ka=h(function(e,{slots:n,emit:i}){const{onDragStart:a,onDragEnd:o,mapRef:r,vectorMapForeign:c="style_zh_cn",...l}=e,g=s.computed(()=>({dragEnable:!!e.dragEnable,zoomEnable:!!e.zoomEnable,jogEnable:!!e.jogEnable,pitchEnable:!!e.pitchEnable,rotateEnable:!!e.rotateEnable,animateEnable:!!e.animateEnable,keyboardEnable:!!e.keyboardEnable})),M=s.shallowRef(),u=s.shallowRef();return ua(u),s.watchPostEffect(()=>{if(u.value||!M.value)return;const d=new AMap.Map(M.value,{...l,vectorMapForeign:c,mapStyle:"amap://styles/95498a904992a4c0b866a3e4d7729682"});u.value=d,r==null||r(d)}),oe(()=>g.value,d=>{var I;(I=u.value)==null||I.setStatus(d)}),Ee(u,e,[{name:"center",defaultValue:[0,0]},{name:"zooms",defaultValue:[0,0]},{name:"zoom",defaultValue:0},{name:"layers",defaultValue:[]},{name:"limitBounds",defaultValue:[]},{name:"rotation",defaultValue:0},{name:"defaultCursor",defaultValue:""},{name:"mapStyle",defaultValue:""},{name:"features",defaultValue:[]},{name:"pitch",defaultValue:0},{name:"mask",defaultValue:[]},{name:"labelRejectMask",defaultValue:!1}]),q(u,e,i,["onDragStart","onDragEnd"]),()=>{var d;return s.h("div",{ref:M,class:Ga},(d=n.default)==null?void 0:d.call(n))}});let Ie="user";const Wa=()=>Ie,qt=()=>({executeMapApi:e=>{Ie="api";try{e(),setTimeout(()=>{Ie="user"},100)}catch(n){throw Ie="user",n}}});var Ua="_7anfuo0";const Ba=h(function(e,{slots:n,emit:i}){const a=e.mapRef,o=s.computed(()=>{const{mapRef:u,onDragStart:d,onDragEnd:I,...m}=e;return m}),r=o.value,c=s.shallowRef(),l=s.shallowRef(),{executeMapApi:g}=qt(),M=u=>i(u,{target:l.value});return la(l),s.watchPostEffect(()=>{if(l.value||!c.value)return;let u;g(()=>{u=new google.maps.Map(c.value,{...r})}),l.value=u,a==null||a(u)}),oe(()=>o.value,u=>{g(()=>{var d;return(d=l.value)==null?void 0:d.setOptions({...u})})}),Q(l,e,M,["onDragStart","onDragEnd"]),()=>{var u;return s.h("div",{ref:c,class:Ua},(u=n.default)==null?void 0:u.call(n))}}),Va=te(function(e,{slots:n}){const{statusRef:i,readyPromise:a}=Oa(e),o=new Proxy(e,{get(r,c,l){return c==="status"?i.value:c==="readyPromise"?a:Reflect.get(r,c,l)}});return ca(o),()=>{var r;return s.h("div",[(r=n.default)==null?void 0:r.call(n)])}}).props(["amapKey","amapSecret","amapServiceHost","gmapId","gmapKey","supplier","language"]),re=te(function(e,{slots:n,emit:i}){S(e,"HeycarMap");const a=A(),o=({target:c})=>{const{lng:l,lat:g}=c.getCenter();i("dragEnd",[l(),g()])},r=({target:c})=>{const{lng:l,lat:g}=c.getCenter();i("dragEnd",[l,g])};return()=>{var f,p,y;const{supplier:c,gmapId:l,language:g="zh",status:M}=a,{mapRef:u,center:d,zoom:I}=e;if(M===ee.LOADING)return(f=n.loading)==null?void 0:f.call(n);if(M===ee.FAILURE)return(p=n.fallback)==null?void 0:p.call(n);const m=(y=n.default)==null?void 0:y.call(n);switch(c){case"gmap":return s.h(Ba,{attrs:{mapRef:u,mapId:l,center:d?x(d):void 0,zoom:I},on:{dragEnd:o}},[m]);default:return s.h(ka,{attrs:{mapRef:u,vectorMapForeign:Aa(g),center:d,zoom:I},on:{dragEnd:r}},[m])}}}).props(["center","fallback","loading","mapRef","zoom"]),_=h(function(e){const n=s.shallowRef(),i=ne();return s.onMounted(()=>{n.value=new AMap.Polyline({...e})}),s.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),s.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),Ee(n,e,[{name:"path",defaultValue:[[0,0]]},{name:"extData",defaultValue:void 0},{name:"draggable",defaultValue:!1}]),oe(()=>{const{path:a,extData:o,draggable:r,...c}=e;return c},a=>{var o;(o=n.value)==null||o.setOptions({...a})}),()=>null}),me=h(function(e){const n=s.shallowRef(),i=ie();return s.onMounted(()=>{n.value=new google.maps.Polyline({...e})}),s.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),s.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),oe(()=>({...e}),a=>{var o;(o=n.value)==null||o.setOptions({...a})}),()=>null}),Ya=h(function(e){return S(e,"ADrivingLine"),()=>{const n=window.innerWidth*.01,i=2.5*n,a=.35*n,o=.6*n,r=1*n,c=.75*n,l=e.done?"#96B2CA":"#487BF4",g=e.done?"#7693AF":"#4175F1",M=e.done?"#7693AF":"#6C95F5";return s.h("div",[s.h(_,{attrs:{path:e.path,strokeWeight:i+2*a+2*r,strokeOpacity:1,strokeColor:g,lineJoin:"round",lineCap:"round"}}),s.h(_,{attrs:{path:e.path,strokeWeight:i+2*a,strokeOpacity:1,strokeColor:M,lineJoin:"round",lineCap:"round",strokeStyle:"dashed",strokeDasharray:[c,c*.5]}}),s.h(_,{attrs:{path:e.path,strokeWeight:i,strokeOpacity:1,strokeColor:l,lineJoin:"round",lineCap:"round"}}),s.h(_,{attrs:{showDir:!0,path:e.path,strokeWeight:i+2*o,strokeOpacity:1,strokeColor:"transparent",lineJoin:"round",lineCap:"round"}})])}}),Ha=h(function(e){S(e,"ADrivingLine");const n=s.computed(()=>e.path.map(x));return()=>{const i=window.innerWidth*.01,a=10*i,o=2.5*i,r=.35*i,c=.75*i,l=1*i,g=e.done?"#96B2CA":"#487BF4",M=e.done?"#7693AF":"#4175F1",u=e.done?"#7693AF":"#6C95F5";return s.h("div",[s.h(me,{attrs:{path:n.value,strokeWeight:o+2*r+2*l,strokeOpacity:1,strokeColor:M}}),s.h(me,{attrs:{path:n.value,icons:[{icon:{path:"M 0,-0.5 0,0.5",strokeWeight:o+2*r,strokeColor:u,fillColor:u,scale:1},repeat:`${o}px`,offset:`${o/2}px`}]}}),s.h(me,{attrs:{path:n.value,strokeWeight:o,strokeOpacity:1,strokeColor:g,icons:[{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW,strokeColor:"white",strokeWeight:c,scale:3},repeat:`${a}px`}]}})])}}),se=h(function(e){const n=A();return()=>e.path.length?z(n.supplier==="gmap"?Ha:Ya,{attrs:e}):null}),en=t=>{const e=s.reactive({path:[],distance:0,duration:0}),n=new AMap.Driving({});return J(()=>({...t}),({from:i,to:a})=>{n.search(AMap.LngLat.from(i),AMap.LngLat.from(a),{waypoints:[]},(o,r)=>{switch(o){case"complete":{let c=[];const g=r.routes[0];for(const M of g.steps){const d=M.path.map(({lng:I,lat:m})=>[I,m]);c=c.concat(d)}e.path=c,e.distance=g.distance,e.duration=g.time;return}case"no_data":e.path=[],e.distance=0,e.duration=0;return;default:throw r}})}),e},tn=t=>{const e=s.reactive({path:[],distance:0,duration:0}),n=new google.maps.DirectionsService;return J(()=>({...t}),({from:i,to:a})=>{n.route({origin:{lng:i[0],lat:i[1]},destination:{lng:a[0],lat:a[1]},travelMode:google.maps.TravelMode.DRIVING},(o,r)=>{var c,l,g,M;switch(r){case google.maps.DirectionsStatus.OK:{let u=[],d=0,I=0;const m=o.routes[0],f=m.overview_path.map(p=>[p.lng(),p.lat()]);u=u.concat(f);for(const p of m.legs)d+=(l=(c=p.distance)==null?void 0:c.value)!=null?l:0,I+=(M=(g=p.duration)==null?void 0:g.value)!=null?M:0;e.path=u,e.distance=d,e.duration=I;return}case google.maps.DirectionsStatus.ZERO_RESULTS:case google.maps.DirectionsStatus.NOT_FOUND:e.path=[],e.distance=0,e.duration=0;return;default:throw new Error(r)}})}),e},Qa=t=>{const{supplier:e}=A();return e==="gmap"?tn(t):en(t)},Ja=(t,e,n)=>{if(!n)return 0;const{x:i,y:a}=n.lngLatToContainer(t),{x:o,y:r}=n.lngLatToContainer(e),c=Math.atan2(a-r,o-i);return(Math.PI/2-c)/Math.PI*180},nn=t=>s.computed(()=>{const{map:e,path:n}=t,[i,a]=n;if(!(!i||!a||!e))return Ja(i,a,e)}),an=t=>s.computed(()=>{const{path:e}=t,[n,i]=e;if(!(!n||!i))return google.maps.geometry.spherical.computeHeading(x(n),x(i))}),Fa=t=>{const{supplier:e}=A();return e==="gmap"?an(t):nn(t)},Xa=h(function(e,{slots:n}){S(e,"ADrivingRoute");const i=ne(),{path:a,distance:o,duration:r}=s.toRefs(en(e)),c=nn(s.reactive({path:a,map:i}));return()=>{var l;return s.h("div",[(l=n.render)==null?void 0:l.call(n,s.reactive({path:a,angle:c,distance:o,duration:r}))])}}),$a=h(function(e,{slots:n}){S(e,"GDrivingRoute");const i=ie(),{path:a,distance:o,duration:r}=s.toRefs(tn(e)),c=an(s.reactive({path:a,map:i}));return()=>{var l;return s.h("div",[(l=n.render)==null?void 0:l.call(n,s.reactive({path:a,angle:c,distance:o,duration:r}))])}}),ce=h(function(e,{slots:n}){const{supplier:i}=A();return()=>z(i==="gmap"?$a:Xa,{attrs:e,scopedSlots:n})}),_a=20,Ka=t=>{const{mapRef:e,autoFitTimeout:n}=t,i=new Set;let a;const o=()=>{var m;const l=e.value;if(!l)return;const g=window.innerWidth/100,[M,u,d,I]=(m=t.padding)!=null?m:[0,0,0,0];l.setFitView([...i],!1,[M*g,d*g,I*g,u*g])},r={add:l=>{i.add(l)},remove:l=>{i.delete(l)},setFitView:o};return q(e,{},()=>{n&&(a&&clearTimeout(a),a=setTimeout(()=>{a=void 0,o()},n))},["onDragEnd"]),{registerFitVeiw:r,setFitView:o}};class qa extends Set{getBound(){const e=new google.maps.LatLngBounds;for(const n of this.values()){const i=n instanceof google.maps.Marker?n.getPosition():n.position;i&&e.extend(i)}return e}}const eo=t=>{const{mapRef:e,autoFitTimeout:n}=t,{executeMapApi:i}=qt(),a=new qa;let o;const r=()=>{var p;const M=e.value;if(!M)return;const u=window.innerWidth/100,[d,I,m,f]=(p=t.padding)!=null?p:[0,0,0,0];i(()=>M.fitBounds(a.getBound(),{top:d*u,right:I*u,bottom:m*u,left:f*u}))},c={add:M=>{a.add(M)},remove:M=>{a.delete(M)},setFitView:r},l=M=>{const u=Wa();console.log("handleMoveEndOrZomEnd name, eventSource = ",M,u),!(!n||u!=="user")&&(o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,r()},n))},g=Ki(l,_a);return Q(e,{},l,["onDragEnd"]),Q(e,{},g,["onZoom_changed"]),{registerFitVeiw:c,setFitView:r}},ue=t=>{const{supplier:e}=A();return e==="gmap"?eo(t):Ka(t)};h(function(e,{slots:n}){const i=zt(),a=ue({...e,mapRef:i});return()=>{var o;return s.h("div",[(o=n.render)==null?void 0:o.call(n,a)])}});const to=h(function(e,{slots:n}){const{registerOverlay:i}=e,{setFitView:a}=i;return W(a),()=>{var o;return s.h("div",[(o=n.default)==null?void 0:o.call(n)])}}),on="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zLjg2My44OTMtMy44NjMgMS45OTQgMCAxLjEwMiAxLjczIDEuOTk1IDMuODYzIDEuOTk1eiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyNy4wMDZjMi4xM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44MjMtMS45NSAwLTMuNTMyLjgxNi0zLjUzMiAxLjgyMyAwIDEuMDA3IDEuNTgxIDEuODIzIDMuNTMyIDEuODIzeiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyN2MyLjEyOCAwLS45LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";function no(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function rt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ot(Object(n),!0).forEach(function(i){no(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var io=(t,e,n)=>{for(var i of Object.keys(t)){var a;if(t[i]!==((a=e[i])!==null&&a!==void 0?a:n[i]))return!1}return!0},F=t=>e=>{var n=t.defaultClassName,i=rt(rt({},t.defaultVariants),e);for(var a in i){var o,r=(o=i[a])!==null&&o!==void 0?o:t.defaultVariants[a];if(r!=null){var c=r;typeof c=="boolean"&&(c=c===!0?"true":"false");var l=t.variantClassNames[a][c];l&&(n+=" "+l)}}for(var[g,M]of t.compoundVariants)io(g,i,t.defaultVariants)&&(n+=" "+M);return n},Y=F({defaultClassName:"",variantClassNames:{type:{start:"_4a4ovk6",end:"_4a4ovk7"}},defaultVariants:{},compoundVariants:[]}),sn="_4a4ovk1",cn="_4a4ovk4",un="_4a4ovk5",ln="_4a4ovk3",ve="_4a4ovk0",dn="_4a4ovk2";const ao=h(function(e){S(e,"AStartEndPoint");const n=s.computed(()=>{var o;const i=e.type==="start"?rn:on,a=e.description?Le(e.description).map(r=>r.type==="normal"?r.value:`<span class="${un}">${r.value}</span>`).join(""):"";return!e.description&&!e.title?`<img src="${i}" class="${Y({type:e.type})}">`:e.description?`
27
+ <div class="${ve}">
28
+ <div class="${sn}">
29
+ <div class="${ln}">${(o=e.title)!=null?o:""}</div>
30
+ <div class="${cn}">${a}</div>
30
31
  </div>
31
- <img src="${i}" class="${V({type:e.type})}">
32
+ <img src="${i}" class="${Y({type:e.type})}">
32
33
  </div>
33
34
  `:`
34
- <div class="${me}">
35
- <div class="${rn}">${e.title}</div>
36
- <img src="${i}" class="${V({type:e.type})}">
35
+ <div class="${ve}">
36
+ <div class="${dn}">${e.title}</div>
37
+ <img src="${i}" class="${Y({type:e.type})}">
37
38
  </div>
38
- `});return()=>s.h(k,{attrs:{registerOverlay:e.registerOverlay,position:e.position,content:n.value,anchor:"bottom-center"}})}),$a=h(function(e){S(e,"GStartEndPoint");const n=s.computed(()=>{var o;const i=e.type==="start"?en:qt,a=e.description?Le(e.description).map(r=>r.type==="normal"?r.value:`<span class="${an}">${r.value}</span>`).join(""):"";return!e.description&&!e.title?b("img",{class:V({type:e.type}),src:i}):e.description?b("div",{class:me},`
39
- <div class="${tn}">
40
- <div class="${on}">${(o=e.title)!=null?o:""}</div>
41
- <div class="${nn}">${a}</div>
39
+ `});return()=>s.h(G,{attrs:{registerOverlay:e.registerOverlay,position:e.position,content:n.value,anchor:"bottom-center"}})}),oo=h(function(e){S(e,"GStartEndPoint");const n=s.computed(()=>{var o;const i=e.type==="start"?rn:on,a=e.description?Le(e.description).map(r=>r.type==="normal"?r.value:`<span class="${un}">${r.value}</span>`).join(""):"";return!e.description&&!e.title?b("img",{class:Y({type:e.type}),src:i}):e.description?b("div",{class:ve},`
40
+ <div class="${sn}">
41
+ <div class="${ln}">${(o=e.title)!=null?o:""}</div>
42
+ <div class="${cn}">${a}</div>
42
43
  </div>
43
- <img src="${i}" class="${V({type:e.type})}">
44
- `):b("div",{class:me},`
45
- <div class="${rn}">${e.title}</div>
46
- <img src="${i}" class="${V({type:e.type})}">
47
- `)});return()=>s.h(G,{attrs:{registerOverlay:e.registerOverlay,position:x(e.position),content:n.value}})}),R=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?$a:Xa,{attrs:e})}),_a=te(t=>{const{registerOverlay:e,mapRef:n,renderDescription:i}=t;return()=>{const{from:a,to:o}=t,r=D(a),c=D(o);return s.h(ae,{attrs:{mapRef:n,center:r,zoom:13}},[s.h(R,{attrs:{type:"start",registerOverlay:e,position:r,title:a.name}}),s.h(re,{attrs:{to:c,from:r,render:({path:l,distance:d,duration:g})=>[s.h(oe,{attrs:{path:l}}),s.h(R,{attrs:{type:"end",registerOverlay:e,position:c,title:o.name,description:i({distance:d,duration:g})}})]}}),s.h(Qa,{attrs:{registerOverlay:e}})])}}).props(["fallback","from","loading","mapRef","registerOverlay","renderDescription","to"]),ce=t=>{var M,I;const{onChange:e,onLoad:n,onLoadDefault:i,onError:a,geoDefaultPosition:o}=t!=null?t:{};let r=!1;const c=s.ref(!1),l=s.ref(!1),d=s.ref(),g=s.ref({accuracy:0,altitude:0,altitudeAccuracy:0,heading:0,latitude:(M=o==null?void 0:o[1])!=null?M:0,longitude:(I=o==null?void 0:o[0])!=null?I:0,speed:0}),u=s.ref([g.value.longitude,g.value.latitude]);return s.watch(()=>!0,(m,v,p)=>{c.value=!0;const y=navigator.geolocation.watchPosition(f=>{const N=f.coords,w=[f.coords.longitude,f.coords.latitude];g.value=N,u.value=w,c.value&&(c.value=!1,l.value=!0,n==null||n({position:w,coordinate:N})),e==null||e({position:w,coordinate:N})},f=>{c.value=!1,d.value=f;const N=t==null?void 0:t.geoDefaultPosition;N&&!r&&(r=!0,i==null||i({position:N})),a==null||a(f),console.log("errorRef = ",d)},{timeout:3e3,maximumAge:0,enableHighAccuracy:!1});p(()=>navigator.geolocation.clearWatch(y))},{immediate:!0}),{geoError:d,geoPosition:u,geoCoordinate:g,geoLoading:c,geoReady:l}},Ka=()=>{const t=s.shallowRef();return{mapRef:t,panTo:i=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.panTo(i)},setMap:i=>{t.value=i}}},qa=()=>{const t=s.shallowRef();return{mapRef:t,panTo:i=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.panTo(x(i))},setMap:i=>{t.value=i}}},ue=()=>{const{supplier:t}=A();return t==="gmap"?qa():Ka()},eo=t=>{const{mapRef:e,onChange:n}=t,i=s.ref([0,0]),a=s.ref(!1),o=()=>{},r=(c,{target:l})=>{var u;console.log("on DragEnd ------"),a.value=!1;const{lng:d,lat:g}=l.getCenter();i.value=[d,g],(u=zt(n))==null||u([d,g])};return q(e,{},o,["onDragStart"]),q(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},to=t=>{const{mapRef:e,onChange:n}=t,i=s.ref([0,0]),a=s.ref(!1),o=()=>{},r=async()=>{var g,u;a.value=!1;const c=(g=e.value)==null?void 0:g.getCenter(),l=c==null?void 0:c.lng(),d=c==null?void 0:c.lat();i.value=[l,d],(u=zt(n))==null||u([l,d])};return Q(e,{},o,["onDragStart"]),Q(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},sn=t=>{const{supplier:e}=A();return e==="gmap"?to(t):eo(t)},X=()=>{const t=s.ref(0);return{idx:t,update:()=>{t.value+=1}}},cn=t=>{const{onChange:e,onChangeCity:n}=t,i=[...t.pointRef.value],a=s.ref(i),{readyPromise:o}=A(),r=s.reactive({lng:a.value[0],lat:a.value[1],name:""}),{idx:c,update:l}=X(),d=M=>{const I=new AMap.Geocoder({lang:K}),{lng:m,lat:v}=M;I.getAddress(new AMap.LngLat(m,v),(p,y)=>{if(p!=="complete")return;const{addressComponent:f}=y.regeocode,N=f.city?f.city:f.province,w=f.province;n==null||n({cityName:N,cityParentName:w})})},g=M=>{a.value=M,l()},u=M=>{r.lng=M.lng,r.lat=M.lat,r.name=M.name};return s.watch(()=>c.value,async()=>{await o;const M=new AMap.Geocoder({lang:K}),[I,m]=a.value;M.getAddress(new AMap.LngLat(I,m),(v,p)=>{switch(v){case"complete":{const{formattedAddress:y,addressComponent:f}=p.regeocode,N=f.city?f.city:f.province,w=f.province;r.name=y,r.lng=I,r.lat=m,e==null||e({lng:I,lat:m,name:y}),n==null||n({cityName:N,cityParentName:w});return}case"no_data":r.name="",e==null||e({lng:I,lat:m,name:""});return;case"error":throw p}})}),{place:r,updatePlace:g,setPlace:u,updateCity:d}},un=t=>{const{pointRef:e,onChange:n,onChangeCity:i}=t,{readyPromise:a}=A(),{idx:o,update:r}=X(),c=s.reactive({lng:e.value[0],lat:e.value[1],name:""}),l=g=>{c.lng=g.lng,c.lat=g.lat,c.name=g.name},d=async g=>{const u=new google.maps.Geocoder,{lng:M,lat:I}=g,{results:m}=await u.geocode({language:K,location:{lng:M,lat:I}}),v=qe(m[0]),p=m.slice(-2)[0].address_components[0].long_name;i==null||i({cityName:v,cityParentName:p})};return s.watch(()=>o.value,async()=>{await a;const g=new google.maps.Geocoder,[u,M]=e.value,{results:I}=await g.geocode({language:K,location:{lng:u,lat:M}}),m=I[0].formatted_address,v=qe(I[0]),p=I.slice(-2)[0].address_components[0].long_name;c.lng=u,c.lat=M,c.name=m,n==null||n({lng:u,lat:M,name:m}),i==null||i({cityName:v,cityParentName:p})}),{place:c,updatePlace:r,setPlace:l,updateCity:d}},no=t=>{const{supplier:e}=A();return e==="gmap"?un(t):cn(t)},io=(t,e)=>{let n=1/0,i=t;for(const a of e){const o=AMap.GeometryUtil.distance(D(t),D(a));o>=n||(i=a,n=o)}return{shortestPlace:i,shortestDistance:n}},ao=(t,e)=>{let n=1/0,i=t;for(const a of e){const o=google.maps.geometry.spherical.computeDistanceBetween(t,a);o>=n||(i=a,n=o)}return{shortestPlace:i,shortestDistance:n}},oo=t=>{const{pointRef:e,getRecomendPlace:n,getLimit:i,context:a,onChange:o,onChangePlace:r,onChangeCity:c}=t,l=s.ref(!0),d=s.ref([]),{idx:g,update:u}=X(),{readyPromise:M}=A(),{place:I,updatePlace:m,setPlace:v,updateCity:p}=cn({pointRef:e,onChange:r,onChangeCity:c}),y=s.reactive({...I});return s.watch(()=>g.value,async()=>{await M;const f=await n({...I},a);if(f===void 0){l.value=!1,d.value=[],Object.assign(y,{...I}),o==null||o({...I});return}const{shortestPlace:N,shortestDistance:w}=io(I,f),C=i(a),L=w>C?I:N;l.value=!0,d.value=f,Object.assign(y,{...L}),o==null||o({...L})}),{recomendPlace:y,placeCandidates:d,availableRef:l,updateRecomandPlace:u,updatePlace:m,setPlace:v,updateCity:p}},ro=t=>{const{pointRef:e,getRecomendPlace:n,getLimit:i,context:a,onChange:o,onChangePlace:r,onChangeCity:c}=t,l=s.ref(!0),d=s.ref([]),{idx:g,update:u}=X(),{readyPromise:M}=A(),{place:I,updatePlace:m,setPlace:v,updateCity:p}=un({pointRef:e,onChange:r,onChangeCity:c}),y=s.reactive({...I});return s.watch(()=>g.value,async()=>{await M;const f=await n({...I},a);if(f===void 0){l.value=!1,d.value=[],Object.assign(y,{...I}),o==null||o({...I});return}const{shortestPlace:N,shortestDistance:w}=ao(I,f),C=i(a),L=w>C?I:N;l.value=!0,d.value=f,Object.assign(y,{...L}),o==null||o({...L})}),{recomendPlace:y,placeCandidates:d,availableRef:l,updateRecomandPlace:u,updatePlace:m,setPlace:v,updateCity:p}},ln=t=>{const{supplier:e}=A();return e==="gmap"?ro(t):oo(t)},dn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249Ii41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb21wb3NpdGUgaW49InNoYWRvd0JsdXJPdXRlcjEiIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNzc0NTMwMTYgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzMCIgY3k9IjMwIiByPSIxMC41Ii8+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC40MDUgLjI2NCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";var gn=F({defaultClassName:"_1l6offo0",variantClassNames:{size:{small:"_1l6offo1",large:"_1l6offo2"}},defaultVariants:{},compoundVariants:[]});const so=h(function(e){S(e,"APassengerCircle");const n=s.computed(()=>{const{size:i="large"}=e;return`
48
- <img src="${i==="large"?dn:O}" class="${gn({size:i})}">
49
- `});return()=>s.h(k,{attrs:{position:e.position,content:n.value,anchor:"bottom-center",registerOverlay:e.registerOverlay}})}),co=h(function(e){S(e,"GPassengerCircle");const n=s.computed(()=>{const{size:i="large"}=e,a=i==="large"?dn:O;return b("img",{class:gn({size:i}),src:a})});return()=>s.h(G,{attrs:{position:x(e.position),content:n.value,registerOverlay:e.registerOverlay}})}),le=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?co:so,{attrs:e})});var xe=(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))(xe||{});var it=F({defaultClassName:"",variantClassNames:{textAlign:{left:"fhyw83",right:"fhyw84"}},defaultVariants:{},compoundVariants:[]}),at=F({defaultClassName:"fhyw85",variantClassNames:{textAlign:{left:"fhyw86",right:"fhyw87"}},defaultVariants:{},compoundVariants:[]}),Mn="fhyw8b",In=F({defaultClassName:"fhyw80",variantClassNames:{textAlign:{left:"fhyw81",right:"fhyw82"}},defaultVariants:{},compoundVariants:[]}),fe=F({defaultClassName:"fhyw88",variantClassNames:{hideIcon:{true:"fhyw89",false:"fhyw8a"}},defaultVariants:{},compoundVariants:[]});const uo=h(function(e,{emit:n}){S(e,"APlaceCircle");const i=s.computed(()=>{var c;return(c=e.textAlign)!=null?c:"right"}),a=s.computed(()=>{const{hideIcon:c=!1}=e;return`
50
- <div class="${In({textAlign:i.value})}">
51
- <img class="${fe({hideIcon:c})} ${it({textAlign:i.value})}" src="${O}">
52
- <div class="${Mn}">${e.label}</div>
44
+ <img src="${i}" class="${Y({type:e.type})}">
45
+ `):b("div",{class:ve},`
46
+ <div class="${dn}">${e.title}</div>
47
+ <img src="${i}" class="${Y({type:e.type})}">
48
+ `)});return()=>s.h(k,{attrs:{registerOverlay:e.registerOverlay,position:x(e.position),content:n.value}})}),T=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?oo:ao,{attrs:e})}),ro=te(t=>{const{registerOverlay:e,mapRef:n,renderDescription:i}=t;return()=>{const{from:a,to:o}=t,r=D(a),c=D(o);return s.h(re,{attrs:{mapRef:n,center:r,zoom:13}},[s.h(T,{attrs:{type:"start",registerOverlay:e,position:r,title:a.name}}),s.h(ce,{attrs:{to:c,from:r,render:({path:l,distance:g,duration:M})=>[s.h(se,{attrs:{path:l}}),s.h(T,{attrs:{type:"end",registerOverlay:e,position:c,title:o.name,description:i({distance:g,duration:M})}})]}}),s.h(to,{attrs:{registerOverlay:e}})])}}).props(["fallback","from","loading","mapRef","registerOverlay","renderDescription","to"]),so=5e3,le=t=>{var d,I;const{onChange:e,onLoad:n,onLoadDefault:i,onError:a,geoDefaultPosition:o}=t!=null?t:{};let r=!1;const c=s.ref(!1),l=s.ref(!1),g=s.ref(),M=s.ref({accuracy:0,altitude:0,altitudeAccuracy:0,heading:0,latitude:(d=o==null?void 0:o[1])!=null?d:0,longitude:(I=o==null?void 0:o[0])!=null?I:0,speed:0}),u=s.ref([M.value.longitude,M.value.latitude]);return s.watch(()=>!0,(m,f,p)=>{c.value=!0;const y=navigator.geolocation.watchPosition(v=>{const j=v.coords,N=[v.coords.longitude,v.coords.latitude];M.value=j,u.value=N,c.value&&(c.value=!1,l.value=!0,n==null||n({position:N,coordinate:j})),e==null||e({position:N,coordinate:j})},v=>{c.value=!1,g.value=v;const j=t==null?void 0:t.geoDefaultPosition;j&&!r&&(r=!0,i==null||i({position:j})),a==null||a(v),console.log("errorRef = ",g)},{timeout:so,maximumAge:0,enableHighAccuracy:!1});p(()=>navigator.geolocation.clearWatch(y))},{immediate:!0}),{geoError:g,geoPosition:u,geoCoordinate:M,geoLoading:c,geoReady:l}},co=()=>{const t=s.shallowRef();return{mapRef:t,panTo:i=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.panTo(i)},setMap:i=>{t.value=i}}},uo=()=>{const t=s.shallowRef();return{mapRef:t,panTo:i=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.panTo(x(i))},setMap:i=>{t.value=i}}},de=()=>{const{supplier:t}=A();return t==="gmap"?uo():co()},lo=t=>{const{mapRef:e,onChange:n}=t,i=s.ref([0,0]),a=s.ref(!1),o=()=>{},r=(c,{target:l})=>{var u;a.value=!1;const{lng:g,lat:M}=l.getCenter();i.value=[g,M],(u=Wt(n))==null||u([g,M])};return q(e,{},o,["onDragStart"]),q(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},go=t=>{const{mapRef:e,onChange:n}=t,i=s.ref([0,0]),a=s.ref(!1),o=()=>{},r=async()=>{var M,u;a.value=!1;const c=(M=e.value)==null?void 0:M.getCenter(),l=c==null?void 0:c.lng(),g=c==null?void 0:c.lat();i.value=[l,g],(u=Wt(n))==null||u([l,g])};return Q(e,{},o,["onDragStart"]),Q(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},gn=t=>{const{supplier:e}=A();return e==="gmap"?go(t):lo(t)},X=()=>{const t=s.ref(0);return{idx:t,update:()=>{t.value+=1}}},Mn=t=>{const{onChange:e,onChangeCity:n}=t,i=[...t.pointRef.value],a=s.ref(i),{readyPromise:o}=A(),r=s.reactive({lng:a.value[0],lat:a.value[1],name:""}),{idx:c,update:l}=X(),g=d=>{const I=new AMap.Geocoder({lang:K}),{lng:m,lat:f}=d;I.getAddress(new AMap.LngLat(m,f),(p,y)=>{if(p!=="complete")return;const{addressComponent:v}=y.regeocode,j=v.city?v.city:v.province,N=v.province;n==null||n({cityName:j,cityParentName:N})})},M=d=>{a.value=d,l()},u=d=>{r.lng=d.lng,r.lat=d.lat,r.name=d.name};return s.watch(()=>c.value,async()=>{await o;const d=new AMap.Geocoder({lang:K}),[I,m]=a.value;d.getAddress(new AMap.LngLat(I,m),(f,p)=>{switch(f){case"complete":{const{formattedAddress:y,addressComponent:v}=p.regeocode,j=v.city?v.city:v.province,N=v.province;r.name=y,r.lng=I,r.lat=m,e==null||e({lng:I,lat:m,name:y}),n==null||n({cityName:j,cityParentName:N});return}case"no_data":r.name="",e==null||e({lng:I,lat:m,name:""});return;case"error":throw p}})}),{place:r,updatePlace:M,setPlace:u,updateCity:g}},In=t=>{const{pointRef:e,onChange:n,onChangeCity:i}=t,{readyPromise:a}=A(),{idx:o,update:r}=X(),c=s.reactive({lng:e.value[0],lat:e.value[1],name:""}),l=M=>{c.lng=M.lng,c.lat=M.lat,c.name=M.name},g=async M=>{const u=new google.maps.Geocoder,{lng:d,lat:I}=M,{results:m}=await u.geocode({language:K,location:{lng:d,lat:I}}),f=it(m[0]),p=m.slice(-2)[0].address_components[0].long_name;i==null||i({cityName:f,cityParentName:p})};return s.watch(()=>o.value,async()=>{await a;const M=new google.maps.Geocoder,[u,d]=e.value,{results:I}=await M.geocode({language:K,location:{lng:u,lat:d}}),m=I[0].formatted_address,f=it(I[0]),p=I.slice(-2)[0].address_components[0].long_name;c.lng=u,c.lat=d,c.name=m,n==null||n({lng:u,lat:d,name:m}),i==null||i({cityName:f,cityParentName:p})}),{place:c,updatePlace:r,setPlace:l,updateCity:g}},Mo=t=>{const{supplier:e}=A();return e==="gmap"?In(t):Mn(t)},Io=(t,e)=>{let n=1/0,i=t;for(const a of e){const o=AMap.GeometryUtil.distance(D(t),D(a));o>=n||(i=a,n=o)}return{shortestPlace:i,shortestDistance:n}},mo=(t,e)=>{let n=1/0,i=t;for(const a of e){const o=google.maps.geometry.spherical.computeDistanceBetween(t,a);o>=n||(i=a,n=o)}return{shortestPlace:i,shortestDistance:n}},fo=t=>{const{pointRef:e,getRecomendPlace:n,getLimit:i,context:a,onChange:o,onChangePlace:r,onChangeCity:c}=t,l=s.ref(!0),g=s.ref([]),{idx:M,update:u}=X(),{readyPromise:d}=A(),{place:I,updatePlace:m,setPlace:f,updateCity:p}=Mn({pointRef:e,onChange:r,onChangeCity:c}),y=s.reactive({...I}),v=s.computed(()=>{const j=e.value;return g.value.some(N=>Ut(D(N),j))});return s.watch(()=>M.value,async()=>{await d;const j=await n({...I},a);if(j===void 0){l.value=!1,g.value=[],Object.assign(y,{...I}),o==null||o({...I});return}const{shortestPlace:N,shortestDistance:P}=Io(I,j),w=i(a),C=P>w?I:N;l.value=!0,g.value=j,Object.assign(y,{...C}),o==null||o({...C})}),{recomendPlace:y,placeCandidates:g,availableRef:l,isElectedRef:v,updateRecomandPlace:u,updatePlace:m,setPlace:f,updateCity:p}},vo=t=>{const{pointRef:e,getRecomendPlace:n,getLimit:i,context:a,onChange:o,onChangePlace:r,onChangeCity:c}=t,l=s.ref(!0),g=s.ref([]),{idx:M,update:u}=X(),{readyPromise:d}=A(),{place:I,updatePlace:m,setPlace:f,updateCity:p}=In({pointRef:e,onChange:r,onChangeCity:c}),y=s.reactive({...I}),v=s.computed(()=>{const j=e.value;return g.value.some(N=>Ut(D(N),j))});return s.watch(()=>M.value,async()=>{await d;const j=await n({...I},a);if(j===void 0){l.value=!1,g.value=[],Object.assign(y,{...I}),o==null||o({...I});return}const{shortestPlace:N,shortestDistance:P}=mo(I,j),w=i(a),C=P>w?I:N;l.value=!0,g.value=j,Object.assign(y,{...C}),o==null||o({...C})}),{recomendPlace:y,placeCandidates:g,availableRef:l,isElectedRef:v,updateRecomandPlace:u,updatePlace:m,setPlace:f,updateCity:p}},mn=t=>{const{supplier:e}=A();return e==="gmap"?vo(t):fo(t)},po=t=>{const{interval:e}=t;let n;const i={promise:Promise.resolve(),resolve:void 0};return{timerStart:()=>{var o;n&&clearTimeout(n),(o=i.resolve)==null||o.call(i),i.promise=new Promise(r=>{i.resolve=r,n=setTimeout(r,e)})},timerStop:i}},fn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249Ii41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb21wb3NpdGUgaW49InNoYWRvd0JsdXJPdXRlcjEiIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNzc0NTMwMTYgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzMCIgY3k9IjMwIiByPSIxMC41Ii8+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC40MDUgLjI2NCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";var vn=F({defaultClassName:"_1l6offo0",variantClassNames:{size:{small:"_1l6offo1",large:"_1l6offo2"}},defaultVariants:{},compoundVariants:[]});const yo=h(function(e){S(e,"APassengerCircle");const n=s.computed(()=>{const{size:i="large"}=e;return`
49
+ <img src="${i==="large"?fn:O}" class="${vn({size:i})}">
50
+ `});return()=>s.h(G,{attrs:{position:e.position,content:n.value,anchor:"bottom-center",registerOverlay:e.registerOverlay}})}),ho=h(function(e){S(e,"GPassengerCircle");const n=s.computed(()=>{const{size:i="large"}=e,a=i==="large"?fn:O;return b("img",{class:vn({size:i}),src:a})});return()=>s.h(k,{attrs:{position:x(e.position),content:n.value,registerOverlay:e.registerOverlay}})}),ge=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?ho:yo,{attrs:e})}),jo=()=>{const t=ne();return{apiMapLngLatToVw:n=>{var i;return(i=t==null?void 0:t.value)==null?void 0:i.lngLatToContainer(n).toArray()}}},Ao=()=>{const t=ie();return{apiMapLngLatToVw:n=>{var u,d,I,m,f;const[i,a]=n,o=(u=t==null?void 0:t.value)==null?void 0:u.getProjection(),r=o==null?void 0:o.fromLatLngToPoint({lng:i,lat:a}),c=(d=r==null?void 0:r.x)!=null?d:0,l=(I=r==null?void 0:r.y)!=null?I:0,M=2**((f=(m=t==null?void 0:t.value)==null?void 0:m.getZoom())!=null?f:0);return[c*M,l*M]}}},Lo=()=>{const{supplier:t}=A();return t==="gmap"?Ao():jo()},st=t=>t==="left"?"right":"left",So=t=>{const{widthLimit:e,heightLimit:n}=t,{apiMapLngLatToVw:i}=Lo(),a=(r,c)=>{const l=100/window.innerWidth,[g,M]=i(r),[u,d]=i(c);return[(u-g)*l,(d-M)*l]},o=s.ref(Array(t.places.length).fill("right"));return Sa(()=>t.places.map(D),r=>{const c=r.map((d,I)=>({point:d,index:I})).sort(({point:[,d]},{point:[,I]})=>d<I?1:d>I?-1:0),l=r.length,g=Array(l);let M="right",u=!1;for(let d=0;d<l;d++){const{index:I}=c[d];if(d===l-1){g[I]=u?st(M):"right";continue}if(d===0){const[y,v]=a(c[d].point,c[d+1].point);u=y>-e&&y<e&&v>-n&&v<n;const j=u&&y>0?"left":"right";g[I]=j,M=j;continue}const[m,f]=a(c[d].point,c[d+1].point),p=u?st(M):"right";g[I]=p,M=p,u=m>-e&&m<e&&f>-n&&f<n}o.value=g}),o};var xe=(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))(xe||{});var ct=F({defaultClassName:"",variantClassNames:{textAlign:{left:"fhyw83",right:"fhyw84"}},defaultVariants:{},compoundVariants:[]}),ut=F({defaultClassName:"fhyw85",variantClassNames:{textAlign:{left:"fhyw86",right:"fhyw87"}},defaultVariants:{},compoundVariants:[]}),pn="fhyw8b",yn=F({defaultClassName:"fhyw80",variantClassNames:{textAlign:{left:"fhyw81",right:"fhyw82"}},defaultVariants:{},compoundVariants:[]}),pe=F({defaultClassName:"fhyw88",variantClassNames:{hideIcon:{true:"fhyw89",false:"fhyw8a"}},defaultVariants:{},compoundVariants:[]});const No=h(function(e,{emit:n}){S(e,"APlaceCircle");const i=s.computed(()=>{var c;return(c=e.textAlign)!=null?c:"right"}),a=s.computed(()=>{const{hideIcon:c=!1}=e;return`
51
+ <div class="${yn({textAlign:i.value})}">
52
+ <img class="${pe({hideIcon:c})} ${ct({textAlign:i.value})}" src="${O}">
53
+ <div class="${pn}">${e.label}</div>
53
54
  </div>
54
- `}),o=s.computed(()=>{const{hideIcon:c=!1}=e;return`<img class="${fe({hideIcon:c})} ${it({textAlign:i.value})}" src="${O}">`}),r=c=>{console.log("on amap marker e = ",c),n("click",e.position)};return()=>s.h(k,{attrs:{position:e.position,content:e.label?a.value:o.value,anchor:i.value==="left"?xe.middleRight:xe.middleLeft},on:{click:r}})}),lo=h(function(e,{emit:n}){S(e,"GPlaceCircle");const i=s.computed(()=>{var c;return(c=e.textAlign)!=null?c:"right"}),a=s.computed(()=>{const{hideIcon:c=!1}=e;return b("div",{class:`${In({textAlign:i.value})} ${at({textAlign:i.value})}`},`
55
- <img class="${fe({hideIcon:c})}" src="${O}">
56
- <div class="${Mn}">${e.label}</div>
57
- `)}),o=s.computed(()=>{const{hideIcon:c=!1}=e;return b("img",{class:`${fe({hideIcon:c})} ${at({textAlign:i.value})}`,src:O})}),r=c=>{console.log("on gmap advanced marker view e = ",c),n("click",e.position)};return()=>s.h(G,{attrs:{position:x(e.position),content:e.label?a.value:o.value},on:{click:r}})}),E=h(function(e,{emit:n}){const i=A();return()=>z(i.supplier==="gmap"?lo:uo,{attrs:e,on:{click:a=>n("click",a)}})}),mn=h(function(e,{emit:n}){return S(e,"PickupPoints"),()=>s.h("div",[e.places.map(i=>s.h(E,{attrs:{position:D(i),label:i.name,textAlign:"left"},on:{click:()=>n("click",i)}}))])}),go=30,Mo=te((t,{emit:e})=>{var T,Z;S(t,"BusinessRecomendPlaceMap");const{geoDefaultPosition:n,getRecomendPlace:i,mapContext:a}=t,{mapRef:o,setMap:r}=ue(),{readyPromise:c}=A(),l=s.reactive({lng:(T=n==null?void 0:n[0])!=null?T:0,lat:(Z=n==null?void 0:n[1])!=null?Z:0,name:""}),d=s.computed(()=>[l.lng,l.lat]),g={source:"geo"},u=j=>{g.source="api",f(j)},M=j=>{g.source="api",N(j),w(j),C()},I=j=>{g.source="api",l.lng=j.lng,l.lat=j.lat,l.name=j.name},{geoPosition:m,geoError:v,geoLoading:p}=ce({geoDefaultPosition:n,onLoad:async j=>{await c,g.source="geo",f(j.position),e("loadGeoLocation",j)},onLoadDefault:async j=>{await c,g.source="geo",f(j.position),e("loadDefaultGeoLocation",j)},onChange:j=>e("changeGeoLocation",j),onError:j=>e("geoError",j)});a.setCenterPlaceByUserSpecified=M,a.panToGeoPositionByRecomend=()=>v.value?!1:(u(m.value),!0);const{isDragging:y}=sn({mapRef:o,onChange:j=>{g.source="drag",f(j),e("changeByDrag",j)}}),{updatePlace:f,setPlace:N,updateCity:w,updateRecomandPlace:C,placeCandidates:L,availableRef:P}=ln({pointRef:d,context:g,getRecomendPlace:i,getLimit:j=>{const de=j==null?void 0:j.source;switch(de){case"drag":case"api":return go;case"geo":case"default":return 1/0;default:throw new Error(`MyError: should not call getLimit on source: ${de}`)}},onChangePlace:j=>{g.source!=="recomend"&&C(),e("changePlace",j)},onChange:j=>{g.source="recomend",Object.assign(l,{...j}),e("changeRecomandPlace",j)},onChangeCity:j=>{e("changeCity",j)}});return s.watchEffect(()=>{a.onChangeCenterPlace({...l})}),s.watchEffect(()=>{a.onChangeRecomendPlaces([...L.value])}),()=>{const j=p.value?t.geoLoadingTitle:P.value?l.name:t.unavailableTitle,de=P.value?L.value.length>0?t.recomendDescription:t.noRecomendDescription:void 0;return s.h(ae,{attrs:{center:d.value,zoom:18,mapRef:r,log:t.log}},[s.h(le,{attrs:{position:m.value}}),s.h(mn,{attrs:{places:L.value,log:t.log},on:{click:I}}),s.h(wt,{attrs:{title:j,description:de,type:y.value?"locator":"box",log:t.log},on:{click:()=>e("clickLocator")}})])}}).props(["log","geoLoadingTitle","unavailableTitle","recomendDescription","noRecomendDescription","fallback","geoDefaultPosition","getRecomendPlace","loading","mapContext"]),Io=[116.2317,39.5427],ot=t=>t.lng!==void 0&&t.lat!==void 0,ve="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyLjkzMiAwIDExLjA5IDAgMTEuMDlWNS44NnMuMTQtMS44NDIgMi41Mi0zLjU4M2MwIDAgMS4wNjQtLjg0NiAyLjQwNi0uODQ2IDEuMzQxIDAgOS4xMy0uMDI2IDkuMTMtLjAyNmw5Ljg5Ny0uMTQ0IDQuMTE2LjE5MnM0LjQ4NCAwIDUuMjM2LjgzM2MuNzc4Ljg2Ljc4MiAxLjM3Ljc4MiAzLjc0djQuOTM0eiIgaWQ9InByZWZpeF9fYiIvPjxwYXRoIGQ9Ik0wIDEuNDkzUzUuNy4xOCA4LjcxOS4wNWMzLjAyLS4xMzEgMy40Ny4wMTcgNS4yODIuMjEuNTA3LjA1MSAzLjI2LjkxIDMuMjYuOTFsLTcuMzAzLjNMMCAxLjQ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5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";var pe="_65j3sr1",fn="_4a4ovk5",vn="_4a4ovk0",pn="_4a4ovk2";const mo=h(function(e){S(e,"ATaxiCar");const n=s.computed(()=>{var o;const i=e.title?Le(e.title).map(r=>r.type==="normal"?r.value:`<span class="${fn}">${r.value}</span>`).join(""):"",a=`transform:rotate(${(o=e.angle)!=null?o:0}deg)`;return e.title?`
58
- <div class="${vn}">
59
- <div class="${pn}">${i}</div>
60
- <img src="${ve}" class="${pe}" style="${a}">
55
+ `}),o=s.computed(()=>{const{hideIcon:c=!1}=e;return`<img class="${pe({hideIcon:c})} ${ct({textAlign:i.value})}" src="${O}">`}),r=c=>{console.log("on amap marker e = ",c),n("click",e.position)};return()=>s.h(G,{attrs:{position:e.position,content:e.label?a.value:o.value,anchor:i.value==="left"?xe.middleRight:xe.middleLeft},on:{click:r}})}),wo=h(function(e,{emit:n}){S(e,"GPlaceCircle");const i=s.computed(()=>{var c;return(c=e.textAlign)!=null?c:"right"}),a=s.computed(()=>{const{hideIcon:c=!1}=e;return b("div",{class:`${yn({textAlign:i.value})} ${ut({textAlign:i.value})}`},`
56
+ <img class="${pe({hideIcon:c})}" src="${O}">
57
+ <div class="${pn}">${e.label}</div>
58
+ `)}),o=s.computed(()=>{const{hideIcon:c=!1}=e;return b("img",{class:`${pe({hideIcon:c})} ${ut({textAlign:i.value})}`,src:O})}),r=c=>{console.log("on gmap advanced marker view e = ",c),n("click",e.position)};return()=>s.h(k,{attrs:{position:x(e.position),content:e.label?a.value:o.value},on:{click:r}})}),E=h(function(e,{emit:n}){const i=A();return()=>z(i.supplier==="gmap"?wo:No,{attrs:e,on:{click:a=>n("click",a)}})}),hn=h(function(e,{emit:n}){S(e,"PickupPoints");const{renderLabel:i}=e,a=So(s.reactive({places:s.toRef(e,"places"),heightLimit:9,widthLimit:32}));return()=>s.h("div",[e.places.map((o,r)=>{const c=a.value[r],l=i?i(o):o.name;return s.h(E,{attrs:{position:D(o),label:l,textAlign:c},on:{click:()=>n("click",o)}})})])}),Do=30,Co=500,xo=te((t,{emit:e})=>{var Oe,Ge;S(t,"BusinessRecomendPlaceMap");const{geoDefaultPosition:n,getRecomendPlace:i,mapContext:a}=t,{mapRef:o,setMap:r}=de(),{readyPromise:c}=A(),{timerStart:l,timerStop:g}=po({interval:Co}),M=s.reactive({lng:(Oe=n==null?void 0:n[0])!=null?Oe:0,lat:(Ge=n==null?void 0:n[1])!=null?Ge:0,name:""}),u=s.computed(()=>[M.lng,M.lat]),d={source:"geo"},I=L=>{d.source="api",N(L)},m=L=>{d.source="api",P(L),w(L),C()},f=L=>{d.source="api",M.lng=L.lng,M.lat=L.lat,M.name=L.name},{geoPosition:p,geoError:y,geoLoading:v}=le({geoDefaultPosition:n,onLoad:async L=>{await c,d.source="geo",N(L.position),e("loadGeoLocation",L)},onLoadDefault:async L=>{await c,d.source="geo",N(L.position),e("loadDefaultGeoLocation",L)},onChange:L=>e("changeGeoLocation",L),onError:L=>e("geoError",L)});a.setCenterPlaceByUserSpecified=m,a.panToGeoPositionByRecomend=()=>y.value?!1:(I(p.value),!0);const{isDragging:j}=gn({mapRef:o,onChange:L=>{d.source="drag",l(),N(L),e("changeByDrag",L)}}),{updatePlace:N,setPlace:P,updateCity:w,updateRecomandPlace:C,placeCandidates:R,availableRef:Z,isElectedRef:Cn}=mn({pointRef:u,context:d,getRecomendPlace:i,getLimit:L=>{const Me=L==null?void 0:L.source;switch(Me){case"drag":case"api":return Do;case"geo":case"default":return 1/0;default:throw new Error(`MyError: should not call getLimit on source: ${Me}`)}},onChangePlace:L=>{d.source!=="recomend"&&C(),e("changePlace",L)},onChange:async L=>{await g.promise,d.source="recomend",Object.assign(M,{...L}),e("changeRecomandPlace",L)},onChangeCity:L=>{e("changeCity",L)}});return s.watchEffect(()=>{a.onChangeCenterPlace({...M})}),s.watchEffect(()=>{a.onChangeRecomendPlaces([...R.value])}),()=>{const L=v.value?t.geoLoadingTitle:Z.value?M.name:t.unavailableTitle,Me=!Z.value||v.value?void 0:Cn.value?t.recomendDescription:t.noRecomendDescription;return s.h(re,{attrs:{center:u.value,zoom:18,mapRef:r,log:t.log}},[!y.value&&s.h(ge,{attrs:{position:p.value}}),s.h(hn,{attrs:{places:R.value,renderLabel:ke=>La(ke,M)?void 0:ke.name,log:t.log},on:{click:f}}),s.h(bt,{attrs:{title:L,description:Me,type:j.value?"locator":"box",log:t.log},on:{click:()=>e("clickLocator")}})])}}).props(["log","geoLoadingTitle","unavailableTitle","recomendDescription","noRecomendDescription","fallback","geoDefaultPosition","getRecomendPlace","loading","mapContext"]),Po=[116.2317,39.5427],lt=t=>t.lng!==void 0&&t.lat!==void 0,ye="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyLjkzMiAwIDExLjA5IDAgMTEuMDlWNS44NnMuMTQtMS44NDIgMi41Mi0zLjU4M2MwIDAgMS4wNjQtLjg0NiAyLjQwNi0uODQ2IDEuMzQxIDAgOS4xMy0uMDI2IDkuMTMtLjAyNmw5Ljg5Ny0uMTQ0IDQuMTE2LjE5MnM0LjQ4NCAwIDUuMjM2LjgzM2MuNzc4Ljg2Ljc4MiAxLjM3Ljc4MiAzLjc0djQuOTM0eiIgaWQ9InByZWZpeF9fYiIvPjxwYXRoIGQ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1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";var he="_65j3sr1",jn="_4a4ovk5",An="_4a4ovk0",Ln="_4a4ovk2";const bo=h(function(e){S(e,"ATaxiCar");const n=s.computed(()=>{var o;const i=e.title?Le(e.title).map(r=>r.type==="normal"?r.value:`<span class="${jn}">${r.value}</span>`).join(""):"",a=`transform:rotate(${(o=e.angle)!=null?o:0}deg)`;return e.title?`
59
+ <div class="${An}">
60
+ <div class="${Ln}">${i}</div>
61
+ <img src="${ye}" class="${he}" style="${a}">
61
62
  </div>
62
- `:`<img src="${ve}" class="${pe}" style="${a}">`});return()=>s.h(k,{attrs:{position:e.position,content:n.value,anchor:"bottom-center",registerOverlay:e.registerOverlay}})}),fo=h(function(e){S(e,"GTaxiCar");const n=s.computed(()=>{var o;const i=e.title?Le(e.title).map(r=>r.type==="normal"?r.value:`<span class="${fn}">${r.value}</span>`).join(""):"",a=`transform:rotate(${(o=e.angle)!=null?o:0}deg)`;return e.title?b("div",{class:vn},`
63
- <div class="${pn}">${i}</div>
64
- <img src="${ve}" class="${pe}" style="${a}">
65
- `):b("img",{class:pe,src:ve,style:a})});return()=>s.h(G,{attrs:{position:x(e.position),content:n.value,registerOverlay:e.registerOverlay}})}),Se=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?fo:mo,{attrs:e})}),vo=h(function(e){return S(e,"AWalkingLine"),()=>{const{path:n}=e;if(n.length===0)return null;const a=2*(window.innerWidth*.01);return s.h(_,{attrs:{path:n,strokeWeight:a,strokeOpacity:1,strokeColor:"#38A3FE",strokeStyle:"dashed",strokeDasharray:[a,a*1.5],lineJoin:"round",lineCap:"round"}})}}),po=h(function(e){S(e,"GWalkingLine");const n=s.computed(()=>e.path.map(x));return()=>{const i=n.value;if(i.length===0)return null;const o=2*(window.innerWidth*.01),r=o/4;return s.h(Me,{attrs:{path:i,strokeWeight:o,strokeOpacity:1,strokeColor:"transparent",icons:[{icon:{path:`
63
+ `:`<img src="${ye}" class="${he}" style="${a}">`});return()=>s.h(G,{attrs:{position:e.position,content:n.value,anchor:"bottom-center",registerOverlay:e.registerOverlay}})}),To=h(function(e){S(e,"GTaxiCar");const n=s.computed(()=>{var o;const i=e.title?Le(e.title).map(r=>r.type==="normal"?r.value:`<span class="${jn}">${r.value}</span>`).join(""):"",a=`transform:rotate(${(o=e.angle)!=null?o:0}deg)`;return e.title?b("div",{class:An},`
64
+ <div class="${Ln}">${i}</div>
65
+ <img src="${ye}" class="${he}" style="${a}">
66
+ `):b("img",{class:he,src:ye,style:a})});return()=>s.h(k,{attrs:{position:x(e.position),content:n.value,registerOverlay:e.registerOverlay}})}),Se=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?To:bo,{attrs:e})}),Ro=h(function(e){return S(e,"AWalkingLine"),()=>{const{path:n}=e;if(n.length===0)return null;const a=2*(window.innerWidth*.01);return s.h(_,{attrs:{path:n,strokeWeight:a,strokeOpacity:1,strokeColor:"#38A3FE",strokeStyle:"dashed",strokeDasharray:[a,a*1.5],lineJoin:"round",lineCap:"round"}})}}),Eo=h(function(e){S(e,"GWalkingLine");const n=s.computed(()=>e.path.map(x));return()=>{const i=n.value;if(i.length===0)return null;const o=2*(window.innerWidth*.01),r=o/4;return s.h(me,{attrs:{path:i,strokeWeight:o,strokeOpacity:1,strokeColor:"transparent",icons:[{icon:{path:`
66
67
  M ${r}, ${r}
67
68
  m -${r}, 0
68
69
  a ${r},${r} 0 1,0 ${2*r},0
69
70
  a ${r},${r} 0 1,0 -${2*r},0
70
- `,strokeColor:"#38A3FE",fillColor:"#38A3FE",fillOpacity:1,strokeOpacity:1,strokeWeight:o/2,scale:1},repeat:`${o*2}px`}]}})}}),Ee=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?po:vo,{attrs:e})}),yn=t=>{const e=s.shallowRef([]),n=new AMap.Walking({});return J(()=>({...t}),({from:i,to:a})=>{n.search(AMap.LngLat.from(i),AMap.LngLat.from(a),(o,r)=>{switch(o){case"complete":{let c=[];const l=r;if(!l.routes)return;const d=l.routes[0];console.log("firstRoute = ",d);for(const g of d.steps){const u=g.path.map(({lng:M,lat:I})=>[M,I]);c=c.concat(u)}e.value=c;return}case"no_data":e.value=[];return;default:throw r}})}),e},hn=t=>{const e=s.shallowRef([]),n=new google.maps.DirectionsService;return J(()=>({...t}),({from:i,to:a})=>{n.route({origin:{lng:i[0],lat:i[1]},destination:{lng:a[0],lat:a[1]},travelMode:google.maps.TravelMode.WALKING},(o,r)=>{switch(r){case google.maps.DirectionsStatus.OK:{let c=[];const d=o.routes[0].overview_path.map(g=>[g.lng(),g.lat()]);c=c.concat(d),e.value=c;return}case google.maps.DirectionsStatus.ZERO_RESULTS:case google.maps.DirectionsStatus.NOT_FOUND:e.value=[];return;default:throw new Error(r)}})}),e},yo=t=>{const{supplier:e}=A();return e==="gmap"?hn(t):yn(t)},ho=h(function(e,{slots:n}){S(e,"AWalkingRoute");const i=yn(e);return()=>{var a;return s.h("div",[(a=n.render)==null?void 0:a.call(n,s.reactive({path:i}))])}}),jo=h(function(e,{slots:n}){S(e,"GWalkingRoute");const i=hn(e);return()=>{var a;return s.h("div",[(a=n.render)==null?void 0:a.call(n,s.reactive({path:i}))])}}),ze=h(function(e,{slots:n}){const{supplier:i}=A();return()=>z(i==="gmap"?jo:ho,{attrs:e,scopedSlots:n})}),ye="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";var jn="rrvp0y3",he="rrvp0y2";const Ao=h(function(e){S(e,"AWaveCircle");const n=s.computed(()=>`<img src="${ye}" class="${he}">`),i=s.computed(()=>`<img src="${ye}" class="${he} ${jn}">`);return()=>s.h("div",[s.h(k,{attrs:{position:e.position,anchor:"bottom-center",content:n.value}}),s.h(k,{attrs:{position:e.position,anchor:"bottom-center",content:i.value}})])}),Lo=h(function(e){S(e,"GWaveCircle");const n=s.computed(()=>b("img",{class:he,src:ye})),i=s.computed(()=>b("img",{class:`${he} ${jn}`,src:ye}));return()=>{const a=x(e.position);return s.h("div",[s.h(G,{attrs:{position:a,content:n.value}}),s.h(G,{attrs:{position:a,content:i.value}})])}}),An=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?Lo:Ao,{attrs:e})}),So=["book-driverStartService","dispatched","driverStartService","inService","driverArrived"],rt=h((t,{emit:e})=>(S(t,"SectionDispatching"),W(()=>e("mapMounted")),()=>{const{from:n,title:i,registerOverlay:a}=t,o=D(n);return s.h("div",[s.h(R,{attrs:{type:"start",position:o,title:i,registerOverlay:a,log:t.log}}),s.h(An,{attrs:{position:o,log:t.log}}),s.h(E,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}})])})),No=h((t,{emit:e})=>(S(t,"SectionDriverStartService"),W(()=>e("mapMounted")),()=>{const{from:n,carPosition:i,passengerPosition:a,renderTitle:o,registerOverlay:r}=t,c=D(n);return s.h("div",[s.h(R,{attrs:{type:"start",position:c,registerOverlay:r,log:t.log}}),s.h(E,{attrs:{position:c,label:n.name,hideIcon:!0,log:t.log}}),s.h(re,{attrs:{from:i,to:c,log:t.log,render:({path:l,distance:d,duration:g})=>[s.h(oe,{attrs:{path:l,log:t.log}}),s.h(Se,{attrs:{position:i,title:o({distance:d,duration:g}),log:t.log}})]}}),s.h(ze,{attrs:{from:a,to:c,log:t.log,render:({path:l})=>s.h(Ee,{attrs:{path:l,log:t.log}})}}),s.h(le,{attrs:{position:a,registerOverlay:r,log:t.log}})])})),wo=h((t,{emit:e})=>(S(t,"SectionBookDispatched"),W(()=>e("mapMounted")),()=>{const{from:n,passengerPosition:i,title:a,registerOverlay:o}=t,r=D(n);return s.h("div",[s.h(R,{attrs:{type:"start",position:r,title:a,registerOverlay:o,log:t.log}}),s.h(E,{attrs:{position:r,label:n.name,hideIcon:!0,log:t.log}}),s.h(le,{attrs:{position:i,registerOverlay:o,log:t.log}})])})),Do=h((t,{emit:e})=>(S(t,"SectionDriverArrived"),W(()=>e("mapMounted")),()=>{const{from:n,carPosition:i,passengerPosition:a,title:o,registerOverlay:r}=t,c=D(n);return s.h("div",[s.h(Se,{attrs:{position:i,title:o,registerOverlay:r,log:t.log}}),s.h(R,{attrs:{type:"start",position:c,registerOverlay:r,log:t.log}}),s.h(E,{attrs:{position:c,label:n.name,hideIcon:!0,log:t.log}}),s.h(ze,{attrs:{from:a,to:c,log:t.log,render:({path:l})=>s.h(Ee,{attrs:{path:l}})}}),s.h(le,{attrs:{position:a,size:"small",registerOverlay:r,log:t.log}})])})),Co=h((t,{emit:e})=>(S(t,"SectionInService"),W(()=>e("mapMounted")),()=>{const{to:n,carPosition:i,renderTitle:a,registerOverlay:o}=t,r=D(n);return s.h("div",[s.h(R,{attrs:{type:"end",position:r,registerOverlay:o,log:t.log}}),s.h(E,{attrs:{position:i,label:"'WebSter Dental Plaza'",hideIcon:!0,log:t.log}}),s.h(re,{attrs:{from:i,to:r,log:t.log,render:({path:c,distance:l,duration:d})=>[s.h(oe,{attrs:{path:c,log:t.log}}),s.h(Se,{attrs:{position:i,title:a({distance:l,duration:d}),registerOverlay:o,log:t.log}})]}})])})),xo=h((t,{emit:e})=>(S(t,"SectionCanceled"),W(()=>e("mapMounted")),()=>{const{from:n,to:i,registerOverlay:a}=t,o=D(n),r=D(i);return s.h("div",[s.h(R,{attrs:{type:"start",position:o,registerOverlay:a,log:t.log}}),s.h(R,{attrs:{type:"end",position:r,registerOverlay:a,log:t.log}}),s.h(E,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}}),s.h(E,{attrs:{position:r,label:i.name,hideIcon:!0,log:t.log}})])})),Pe=h((t,{emit:e})=>(S(t,"SectionEndService"),W(()=>e("mapMounted")),()=>{const{from:n,to:i,registerOverlay:a}=t,o=D(n),r=D(i);return s.h("div",[s.h(R,{attrs:{type:"start",position:o,registerOverlay:a,log:t.log}}),s.h(R,{attrs:{type:"end",position:r,registerOverlay:a,log:t.log}}),s.h(E,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}}),s.h(E,{attrs:{position:r,label:i.name,hideIcon:!0,log:t.log}}),s.h(re,{attrs:{from:o,to:r,render:({path:c})=>s.h(oe,{attrs:{path:c,done:!0,log:t.log}}),log:t.log}})])})),Po=te(t=>{S(t,"BusinessTaxiServiceMap");const{from:e,interval:n,registerOverlay:i,mapRef:a,getDriverPosition:o,renderStartSerivceTitle:r,renderInServiceTitle:c}=t,{setFitView:l}=i,{geoPosition:d}=ce({geoDefaultPosition:D(e)}),g=s.ref(D(t.from));return s.watch(()=>t.driverStatus,(u,M,I)=>{if(!So.includes(u))return;const m=setInterval(()=>{o().then(v=>g.value=v)},n);I(()=>clearInterval(m))},{immediate:!0}),()=>{const{driverStatus:u,from:M,to:I,dispatchingTitle:m,bookDispatchingTitle:v,bookDispatchedTitle:p,driverArrivedTitle:y}=t,f=g.value;return s.h(ae,{attrs:{center:D(M),zoom:13,mapRef:a,log:t.log}},[u==="dispatching"?s.h(rt,{attrs:{from:M,title:m,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="book-dispatching"?s.h(rt,{attrs:{from:M,title:v,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="dispatched"||u==="driverStartService"||u==="book-driverStartService"?s.h(No,{attrs:{from:M,carPosition:f,passengerPosition:d.value,renderTitle:r,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="book-dispatched"?s.h(wo,{attrs:{from:M,passengerPosition:d.value,title:p,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="inService"?s.h(Co,{attrs:{to:I,carPosition:f,renderTitle:c,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="driverArrived"?s.h(Do,{attrs:{from:M,carPosition:f,passengerPosition:d.value,title:y,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="canceled"||u==="canceling"?s.h(xo,{attrs:{from:M,to:I,registerOverlay:i,log:t.log}}):u==="endService"||u==="completed"||u==="banlanceRefund"||u==="waitBanlanceRefund"||u==="rechargePayed"||u==="waitRechargePay"||u==="payed"||u==="waitpay"||u==="refund"||u==="confirmed"?s.h(Pe,{attrs:{from:M,to:I,registerOverlay:i,log:t.log},on:{mapMounted:l}}):s.h(Pe,{attrs:{from:M,to:I,registerOverlay:i,log:t.log},on:{mapMounted:l}})])}}).props(["log","bookDispatchedTitle","bookDispatchingTitle","dispatchingTitle","driverArrivedTitle","driverStatus","fallback","from","getDriverPosition","interval","loading","mapRef","renderInServiceTitle","renderStartSerivceTitle","to","registerOverlay"]),bo=h(t=>{S(t,"BusinessTaxiEndMap");const{mapRef:e,setMap:n}=ue(),{registerFitVeiw:i,setFitView:a}=se({mapRef:e,autoFitTimeout:5e3,padding:[25,20,15,15]});return()=>{const{from:o,to:r}=t,c=ot(o)&&ot(r),l=c?D(o):[...Io],d=c?13:3;return s.h(ae,{attrs:{center:l,zoom:d,mapRef:n,log:t.log}},[c&&s.h(Pe,{attrs:{from:o,to:r,registerOverlay:i,log:t.log},on:{mapMounted:a}})])}}),Ro=()=>{const t=A();return{apiMapDistance:(n,i)=>{if(t.status===ee.SUCCESS)return AMap.GeometryUtil.distance(n,i)}}},To=()=>{const t=A();return{apiMapDistance:(n,i)=>{if(t.status===ee.SUCCESS)return google.maps.geometry.spherical.computeDistanceBetween(x(n),x(i))}}},Ne=()=>{const{supplier:t}=A();return t==="gmap"?To():Ro()},Eo=t=>{const{city:e}=t,n=s.ref(e);pa(t,"useAmapAutoComplete",n,"cityRef");const{readyPromise:i}=A(),{apiMapDistance:a}=Ne(),{geoPosition:o}=ce(),r=s.ref(""),c=s.ref([]),{update:l,idx:d}=X(),g=M=>{n.value=M,l()},u=M=>{r.value=M,l()};return s.watch(()=>d.value,async()=>{if(!r.value)return;await i,new AMap.PlaceSearch({city:n.value.name}).search(r.value,(I,m)=>{const v=o.value;switch(I){case"complete":{c.value=m.poiList.pois.map(p=>{const{lat:y,lng:f}=p.location;return{lat:y,lng:f,name:p.name,description:p.address,distance:v?a(v,[f,y]):void 0}});return}case"no_data":c.value=[];return;default:throw m}})},{immediate:!0}),{setKeyword:u,setCity:g,autoCompletePlaces:c}},zo=t=>{const{city:e}=t,n=s.ref({...e}),{readyPromise:i}=A(),{apiMapDistance:a}=Ne(),{geoPosition:o}=ce(),r=s.ref(""),c=s.ref([]),{update:l,idx:d}=X(),g=I=>{n.value=I,l()},u=I=>{r.value=I,l()},M=document.createElement("div");return s.watch(()=>d.value,async()=>{if(!r.value)return;await i,new google.maps.places.PlacesService(M).textSearch({query:r.value,bounds:n.value.bound},(m,v)=>{const p=o.value;switch(v){case google.maps.places.PlacesServiceStatus.OK:c.value=m.map(({geometry:y,name:f,formatted_address:N})=>{var L,P,T,Z;const w=(P=(L=y==null?void 0:y.location)==null?void 0:L.lng())!=null?P:0,C=(Z=(T=y==null?void 0:y.location)==null?void 0:T.lat())!=null?Z:0;return{lng:w,lat:C,name:f!=null?f:"",description:N!=null?N:"",distance:p?a(p,[w,C]):void 0}});return;case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:case google.maps.places.PlacesServiceStatus.NOT_FOUND:c.value=[];return}})}),{setKeyword:u,setCity:g,autoCompletePlaces:c}},Zo=t=>{const{supplier:e}=A();return e==="gmap"?zo(t):Eo(t)},Oo=t=>{var a;const{cityNameRef:e,onChange:n}=t,i=s.reactive({name:(a=e.value)!=null?a:""});return s.watch(()=>e.value,o=>{const r=o!=null?o:"";i.name=r,n==null||n({name:r})}),i},ko=t=>{var o;const{cityNameRef:e,onChange:n}=t,{readyPromise:i}=A(),a=s.reactive({name:(o=e.value)!=null?o:"",bound:{east:0,north:0,south:0,west:0}});return s.watchEffect(async()=>{var u,M;const r=e.value;if(!r)return;await i;const c=new google.maps.Geocoder,{results:l}=await c.geocode({address:r,componentRestrictions:{administrativeArea:"administrative_area_level_1"},language:K});if(l.length!==1)throw new Error("MyError: multiple city found");const{geometry:d}=l[0],g=(M=(u=d.bounds)==null?void 0:u.toJSON())!=null?M:d.viewport.toJSON();a.name=r,a.bound=g,n==null||n({name:r,bound:g})}),a},Go=t=>{const{supplier:e}=A();return e==="gmap"?ko(t):Oo(t)},Wo=t=>{const{cityNameRef:e}=t,n=Go({cityNameRef:e,onChange:c=>o(c)}),{autoCompletePlaces:i,setKeyword:a,setCity:o}=Zo({city:n,log:t.log});return{autoCompletePlaces:i,setKeyword:a,setCity:o,handleKeywordInput:c=>{const l=c.target;a(l.value)}}},Uo=()=>{const{setMap:t,mapRef:e}=ue(),{registerFitVeiw:n,setFitView:i}=se({mapRef:e,padding:[25,20,15,15]});return{setMap:t,registerFitVeiw:n,setFitView:i}},Bo=()=>{const t=s.reactive({lng:0,lat:0,name:""}),e=s.ref([]),{apiMapDistance:n}=Ne(),i=r=>o.panToGeoPositionByRecomend(r),a=r=>o.setCenterPlaceByUserSpecified(r),o={panToGeoPositionByRecomend:()=>{throw new Error("MyError: panToGeoPositionByRecomend used before assigned")},setCenterPlaceByUserSpecified:()=>{throw new Error("MyError: setCenterPlaceByRecomand used before assigned")},onChangeCenterPlace:r=>{Object.assign(t,{...r})},onChangeRecomendPlaces:r=>{e.value=[...r]}};return{mapContext:o,centerPlace:t,placeCandidates:e,panToGeoPositionByRecomend:i,setCenterPlaceByUserSpecified:a,apiMapDistance:n}},Yo=()=>{const{mapRef:t,setMap:e}=ue(),{registerFitVeiw:n,setFitView:i}=se({mapRef:t,autoFitTimeout:5e3,padding:[25,20,15,15]});return{setMap:e,registerFitVeiw:n,setFitView:i}};exports.AbsoluteAddressBox=wt;exports.AddressBox=ja;exports.BusinessQuotingMap=_a;exports.BusinessRecomendPlaceMap=Mo;exports.BusinessTaxiEndMap=bo;exports.BusinessTaxiServiceMap=Po;exports.DrivingLine=oe;exports.DrivingRoute=re;exports.HeycarMap=ae;exports.MapProvider=Ea;exports.PassengerCircle=le;exports.PickupPoints=mn;exports.PlaceCircle=E;exports.StartEndPoint=R;exports.TaxiCar=Se;exports.WalkingLine=Ee;exports.WalkingRoute=ze;exports.WaveCircle=An;exports.useBusinessMapAutoComplete=Wo;exports.useBusinessQuotingMap=Uo;exports.useBusinessRecomendPlaceMap=Bo;exports.useBusinessTaxiServiceMap=Yo;exports.useDrivingRoute=Oa;exports.useGeoLocation=ce;exports.useHeycarMap=ue;exports.useMapAngle=Ga;exports.useMapDrag=sn;exports.useMapFitView=se;exports.useMapGeometry=Ne;exports.useMapPlace=no;exports.useMapRecomendPlace=ln;exports.useWalkingRoute=yo;
71
+ `,strokeColor:"#38A3FE",fillColor:"#38A3FE",fillOpacity:1,strokeOpacity:1,strokeWeight:o/2,scale:1},repeat:`${o*2}px`}]}})}}),ze=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?Eo:Ro,{attrs:e})}),Sn=t=>{const e=s.shallowRef([]),n=new AMap.Walking({});return J(()=>({...t}),({from:i,to:a})=>{n.search(AMap.LngLat.from(i),AMap.LngLat.from(a),(o,r)=>{switch(o){case"complete":{let c=[];const l=r;if(!l.routes)return;const g=l.routes[0];for(const M of g.steps){const u=M.path.map(({lng:d,lat:I})=>[d,I]);c=c.concat(u)}e.value=c;return}case"no_data":e.value=[];return;default:throw r}})}),e},Nn=t=>{const e=s.shallowRef([]),n=new google.maps.DirectionsService;return J(()=>({...t}),({from:i,to:a})=>{n.route({origin:{lng:i[0],lat:i[1]},destination:{lng:a[0],lat:a[1]},travelMode:google.maps.TravelMode.WALKING},(o,r)=>{switch(r){case google.maps.DirectionsStatus.OK:{let c=[];const g=o.routes[0].overview_path.map(M=>[M.lng(),M.lat()]);c=c.concat(g),e.value=c;return}case google.maps.DirectionsStatus.ZERO_RESULTS:case google.maps.DirectionsStatus.NOT_FOUND:e.value=[];return;default:throw new Error(r)}})}),e},zo=t=>{const{supplier:e}=A();return e==="gmap"?Nn(t):Sn(t)},Zo=h(function(e,{slots:n}){S(e,"AWalkingRoute");const i=Sn(e);return()=>{var a;return s.h("div",[(a=n.render)==null?void 0:a.call(n,s.reactive({path:i}))])}}),Oo=h(function(e,{slots:n}){S(e,"GWalkingRoute");const i=Nn(e);return()=>{var a;return s.h("div",[(a=n.render)==null?void 0:a.call(n,s.reactive({path:i}))])}}),Ze=h(function(e,{slots:n}){const{supplier:i}=A();return()=>z(i==="gmap"?Oo:Zo,{attrs:e,scopedSlots:n})}),je="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";var wn="rrvp0y3",Ae="rrvp0y2";const Go=h(function(e){S(e,"AWaveCircle");const n=s.computed(()=>`<img src="${je}" class="${Ae}">`),i=s.computed(()=>`<img src="${je}" class="${Ae} ${wn}">`);return()=>s.h("div",[s.h(G,{attrs:{position:e.position,anchor:"bottom-center",content:n.value}}),s.h(G,{attrs:{position:e.position,anchor:"bottom-center",content:i.value}})])}),ko=h(function(e){S(e,"GWaveCircle");const n=s.computed(()=>b("img",{class:Ae,src:je})),i=s.computed(()=>b("img",{class:`${Ae} ${wn}`,src:je}));return()=>{const a=x(e.position);return s.h("div",[s.h(k,{attrs:{position:a,content:n.value}}),s.h(k,{attrs:{position:a,content:i.value}})])}}),Dn=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?ko:Go,{attrs:e})}),Wo=["book-driverStartService","dispatched","driverStartService","inService","driverArrived"],dt=h((t,{emit:e})=>(S(t,"SectionDispatching"),W(()=>e("mapMounted")),()=>{const{from:n,title:i,registerOverlay:a}=t,o=D(n);return s.h("div",[s.h(T,{attrs:{type:"start",position:o,title:i,registerOverlay:a,log:t.log}}),s.h(Dn,{attrs:{position:o,log:t.log}}),s.h(E,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}})])})),Uo=h((t,{emit:e})=>(S(t,"SectionDriverStartService"),W(()=>e("mapMounted")),()=>{const{from:n,carPosition:i,passengerPosition:a,renderTitle:o,registerOverlay:r}=t,c=D(n);return s.h("div",[s.h(T,{attrs:{type:"start",position:c,registerOverlay:r,log:t.log}}),s.h(E,{attrs:{position:c,label:n.name,hideIcon:!0,log:t.log}}),s.h(ce,{attrs:{from:i,to:c,log:t.log,render:({path:l,distance:g,duration:M})=>[s.h(se,{attrs:{path:l,log:t.log}}),s.h(Se,{attrs:{position:i,title:o({distance:g,duration:M}),log:t.log}})]}}),s.h(Ze,{attrs:{from:a,to:c,log:t.log,render:({path:l})=>s.h(ze,{attrs:{path:l,log:t.log}})}}),s.h(ge,{attrs:{position:a,registerOverlay:r,log:t.log}})])})),Bo=h((t,{emit:e})=>(S(t,"SectionBookDispatched"),W(()=>e("mapMounted")),()=>{const{from:n,passengerPosition:i,title:a,registerOverlay:o}=t,r=D(n);return s.h("div",[s.h(T,{attrs:{type:"start",position:r,title:a,registerOverlay:o,log:t.log}}),s.h(E,{attrs:{position:r,label:n.name,hideIcon:!0,log:t.log}}),s.h(ge,{attrs:{position:i,registerOverlay:o,log:t.log}})])})),Vo=h((t,{emit:e})=>(S(t,"SectionDriverArrived"),W(()=>e("mapMounted")),()=>{const{from:n,carPosition:i,passengerPosition:a,title:o,registerOverlay:r}=t,c=D(n);return s.h("div",[s.h(Se,{attrs:{position:i,title:o,registerOverlay:r,log:t.log}}),s.h(T,{attrs:{type:"start",position:c,registerOverlay:r,log:t.log}}),s.h(E,{attrs:{position:c,label:n.name,hideIcon:!0,log:t.log}}),s.h(Ze,{attrs:{from:a,to:c,log:t.log,render:({path:l})=>s.h(ze,{attrs:{path:l}})}}),s.h(ge,{attrs:{position:a,size:"small",registerOverlay:r,log:t.log}})])})),Yo=h((t,{emit:e})=>(S(t,"SectionInService"),W(()=>e("mapMounted")),()=>{const{to:n,carPosition:i,renderTitle:a,registerOverlay:o}=t,r=D(n);return s.h("div",[s.h(T,{attrs:{type:"end",position:r,registerOverlay:o,log:t.log}}),s.h(E,{attrs:{position:i,label:"'WebSter Dental Plaza'",hideIcon:!0,log:t.log}}),s.h(ce,{attrs:{from:i,to:r,log:t.log,render:({path:c,distance:l,duration:g})=>[s.h(se,{attrs:{path:c,log:t.log}}),s.h(Se,{attrs:{position:i,title:a({distance:l,duration:g}),registerOverlay:o,log:t.log}})]}})])})),Ho=h((t,{emit:e})=>(S(t,"SectionCanceled"),W(()=>e("mapMounted")),()=>{const{from:n,to:i,registerOverlay:a}=t,o=D(n),r=D(i);return s.h("div",[s.h(T,{attrs:{type:"start",position:o,registerOverlay:a,log:t.log}}),s.h(T,{attrs:{type:"end",position:r,registerOverlay:a,log:t.log}}),s.h(E,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}}),s.h(E,{attrs:{position:r,label:i.name,hideIcon:!0,log:t.log}})])})),Pe=h((t,{emit:e})=>(S(t,"SectionEndService"),W(()=>e("mapMounted")),()=>{const{from:n,to:i,registerOverlay:a}=t,o=D(n),r=D(i);return s.h("div",[s.h(T,{attrs:{type:"start",position:o,registerOverlay:a,log:t.log}}),s.h(T,{attrs:{type:"end",position:r,registerOverlay:a,log:t.log}}),s.h(E,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}}),s.h(E,{attrs:{position:r,label:i.name,hideIcon:!0,log:t.log}}),s.h(ce,{attrs:{from:o,to:r,render:({path:c})=>s.h(se,{attrs:{path:c,done:!0,log:t.log}}),log:t.log}})])})),Qo=te(t=>{S(t,"BusinessTaxiServiceMap");const{from:e,interval:n,registerOverlay:i,mapRef:a,getDriverPosition:o,renderStartSerivceTitle:r,renderInServiceTitle:c}=t,{setFitView:l}=i,{geoPosition:g}=le({geoDefaultPosition:D(e)}),M=s.ref(D(t.from));return s.watch(()=>t.driverStatus,(u,d,I)=>{if(!Wo.includes(u))return;const m=setInterval(()=>{o().then(f=>M.value=f)},n);I(()=>clearInterval(m))},{immediate:!0}),()=>{const{driverStatus:u,from:d,to:I,dispatchingTitle:m,bookDispatchingTitle:f,bookDispatchedTitle:p,driverArrivedTitle:y}=t,v=M.value;return s.h(re,{attrs:{center:D(d),zoom:13,mapRef:a,log:t.log}},[u==="dispatching"?s.h(dt,{attrs:{from:d,title:m,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="book-dispatching"?s.h(dt,{attrs:{from:d,title:f,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="dispatched"||u==="driverStartService"||u==="book-driverStartService"?s.h(Uo,{attrs:{from:d,carPosition:v,passengerPosition:g.value,renderTitle:r,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="book-dispatched"?s.h(Bo,{attrs:{from:d,passengerPosition:g.value,title:p,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="inService"?s.h(Yo,{attrs:{to:I,carPosition:v,renderTitle:c,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="driverArrived"?s.h(Vo,{attrs:{from:d,carPosition:v,passengerPosition:g.value,title:y,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="canceled"||u==="canceling"?s.h(Ho,{attrs:{from:d,to:I,registerOverlay:i,log:t.log}}):u==="endService"||u==="completed"||u==="banlanceRefund"||u==="waitBanlanceRefund"||u==="rechargePayed"||u==="waitRechargePay"||u==="payed"||u==="waitpay"||u==="refund"||u==="confirmed"?s.h(Pe,{attrs:{from:d,to:I,registerOverlay:i,log:t.log},on:{mapMounted:l}}):s.h(Pe,{attrs:{from:d,to:I,registerOverlay:i,log:t.log},on:{mapMounted:l}})])}}).props(["log","bookDispatchedTitle","bookDispatchingTitle","dispatchingTitle","driverArrivedTitle","driverStatus","fallback","from","getDriverPosition","interval","loading","mapRef","renderInServiceTitle","renderStartSerivceTitle","to","registerOverlay"]),Jo=h(t=>{S(t,"BusinessTaxiEndMap");const{mapRef:e,setMap:n}=de(),{registerFitVeiw:i,setFitView:a}=ue({mapRef:e,autoFitTimeout:5e3,padding:[25,20,15,15]});return()=>{const{from:o,to:r}=t,c=lt(o)&&lt(r),l=c?D(o):[...Po],g=c?13:3;return s.h(re,{attrs:{center:l,zoom:g,mapRef:n,log:t.log}},[c&&s.h(Pe,{attrs:{from:o,to:r,registerOverlay:i,log:t.log},on:{mapMounted:a}})])}}),Fo=()=>{const t=A();return{apiMapDistance:(n,i)=>{if(t.status===ee.SUCCESS)return AMap.GeometryUtil.distance(n,i)}}},Xo=()=>{const t=A();return{apiMapDistance:(n,i)=>{if(t.status===ee.SUCCESS)return google.maps.geometry.spherical.computeDistanceBetween(x(n),x(i))}}},Ne=()=>{const{supplier:t}=A();return t==="gmap"?Xo():Fo()},$o=t=>{const{city:e}=t,n=s.ref(e);Da(t,"useAmapAutoComplete",n,"cityRef");const{readyPromise:i}=A(),{apiMapDistance:a}=Ne(),{geoPosition:o}=le(),r=s.ref(""),c=s.ref([]),{update:l,idx:g}=X(),M=d=>{n.value=d,l()},u=d=>{r.value=d,l()};return s.watch(()=>g.value,async()=>{if(!r.value)return;await i,new AMap.PlaceSearch({city:n.value.name}).search(r.value,(I,m)=>{const f=o.value;switch(I){case"complete":{c.value=m.poiList.pois.map(p=>{const{lat:y,lng:v}=p.location;return{lat:y,lng:v,name:p.name,description:p.address,distance:f?a(f,[v,y]):void 0}});return}case"no_data":c.value=[];return;default:throw m}})},{immediate:!0}),{setKeyword:u,setCity:M,autoCompletePlaces:c}},_o=t=>{const{city:e}=t,n=s.ref({...e}),{readyPromise:i}=A(),{apiMapDistance:a}=Ne(),{geoPosition:o}=le(),r=s.ref(""),c=s.ref([]),{update:l,idx:g}=X(),M=I=>{n.value=I,l()},u=I=>{r.value=I,l()},d=document.createElement("div");return s.watch(()=>g.value,async()=>{if(!r.value)return;await i,new google.maps.places.PlacesService(d).textSearch({query:r.value,bounds:n.value.bound},(m,f)=>{const p=o.value;switch(f){case google.maps.places.PlacesServiceStatus.OK:c.value=m.map(({geometry:y,name:v,formatted_address:j})=>{var w,C,R,Z;const N=(C=(w=y==null?void 0:y.location)==null?void 0:w.lng())!=null?C:0,P=(Z=(R=y==null?void 0:y.location)==null?void 0:R.lat())!=null?Z:0;return{lng:N,lat:P,name:v!=null?v:"",description:j!=null?j:"",distance:p?a(p,[N,P]):void 0}});return;case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:case google.maps.places.PlacesServiceStatus.NOT_FOUND:c.value=[];return}})}),{setKeyword:u,setCity:M,autoCompletePlaces:c}},Ko=t=>{const{supplier:e}=A();return e==="gmap"?_o(t):$o(t)},qo=t=>{var a;const{cityNameRef:e,onChange:n}=t,i=s.reactive({name:(a=e.value)!=null?a:""});return s.watch(()=>e.value,o=>{const r=o!=null?o:"";i.name=r,n==null||n({name:r})}),i},er=t=>{var o;const{cityNameRef:e,onChange:n}=t,{readyPromise:i}=A(),a=s.reactive({name:(o=e.value)!=null?o:"",bound:{east:0,north:0,south:0,west:0}});return s.watchEffect(async()=>{var u,d;const r=e.value;if(!r)return;await i;const c=new google.maps.Geocoder,{results:l}=await c.geocode({address:r,componentRestrictions:{administrativeArea:"administrative_area_level_1"},language:K});if(l.length!==1)throw new Error("MyError: multiple city found");const{geometry:g}=l[0],M=(d=(u=g.bounds)==null?void 0:u.toJSON())!=null?d:g.viewport.toJSON();a.name=r,a.bound=M,n==null||n({name:r,bound:M})}),a},tr=t=>{const{supplier:e}=A();return e==="gmap"?er(t):qo(t)},nr=t=>{const{cityNameRef:e}=t,n=tr({cityNameRef:e,onChange:c=>o(c)}),{autoCompletePlaces:i,setKeyword:a,setCity:o}=Ko({city:n,log:t.log});return{autoCompletePlaces:i,setKeyword:a,setCity:o,handleKeywordInput:c=>{const l=c.target;a(l.value)}}},ir=()=>{const{setMap:t,mapRef:e}=de(),{registerFitVeiw:n,setFitView:i}=ue({mapRef:e,padding:[25,20,15,15]});return{setMap:t,registerFitVeiw:n,setFitView:i}},ar=()=>{const t=s.reactive({lng:0,lat:0,name:""}),e=s.ref([]),{apiMapDistance:n}=Ne(),i=r=>o.panToGeoPositionByRecomend(r),a=r=>o.setCenterPlaceByUserSpecified(r),o={panToGeoPositionByRecomend:()=>{throw new Error("MyError: panToGeoPositionByRecomend used before assigned")},setCenterPlaceByUserSpecified:()=>{throw new Error("MyError: setCenterPlaceByRecomand used before assigned")},onChangeCenterPlace:r=>{Object.assign(t,{...r})},onChangeRecomendPlaces:r=>{e.value=[...r]}};return{mapContext:o,centerPlace:t,placeCandidates:e,panToGeoPositionByRecomend:i,setCenterPlaceByUserSpecified:a,apiMapDistance:n}},or=()=>{const{mapRef:t,setMap:e}=de(),{registerFitVeiw:n,setFitView:i}=ue({mapRef:t,autoFitTimeout:5e3,padding:[25,20,15,15]});return{setMap:e,registerFitVeiw:n,setFitView:i}};exports.AbsoluteAddressBox=bt;exports.AddressBox=Pa;exports.BusinessQuotingMap=ro;exports.BusinessRecomendPlaceMap=xo;exports.BusinessTaxiEndMap=Jo;exports.BusinessTaxiServiceMap=Qo;exports.DrivingLine=se;exports.DrivingRoute=ce;exports.HeycarMap=re;exports.MapProvider=Va;exports.PassengerCircle=ge;exports.PickupPoints=hn;exports.PlaceCircle=E;exports.StartEndPoint=T;exports.TaxiCar=Se;exports.WalkingLine=ze;exports.WalkingRoute=Ze;exports.WaveCircle=Dn;exports.useBusinessMapAutoComplete=nr;exports.useBusinessQuotingMap=ir;exports.useBusinessRecomendPlaceMap=ar;exports.useBusinessTaxiServiceMap=or;exports.useDrivingRoute=Qa;exports.useGeoLocation=le;exports.useHeycarMap=de;exports.useMapAngle=Fa;exports.useMapDrag=gn;exports.useMapFitView=ue;exports.useMapGeometry=Ne;exports.useMapPlace=Mo;exports.useMapRecomendPlace=mn;exports.useWalkingRoute=zo;