window.BMAP_AUTHENTIC_KEY="fpzGqedB7e8CA8WB8jUgxlOx";(function(){function aa(t){throw t}var j=void 0,o=!0,p=null,q=!1;function s(){return function(){}}function ba(t){return function(i){this[t]=i}}function u(t){return function(){return this[t]}}function da(t){return function(){return t}}var ea,fa=[];function ha(t){return function(){return fa[t].apply(this,arguments)}}function ia(t,i){return fa[t]=i}var ja,v=ja=v||{version:"1.3.4"};v.Q="$BAIDU$";window[v.Q]=window[v.Q]||{};v.object=v.object||{};v.extend=v.object.extend=function(t,i){for(var e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t};v.C=v.C||{};v.C.N=function(t){return"string"==typeof t||t instanceof String?document.getElementById(t):t&&t.nodeName&&(1==t.nodeType||9==t.nodeType)?t:p};v.N=v.Xb=v.C.N;v.C.J=function(t){t=v.C.N(t);t.style.display="none";return t};v.J=v.C.J;v.lang=v.lang||{};v.lang.qf=function(t){return"[object String]"==Object.prototype.toString.call(t)};v.qf=v.lang.qf;v.C.Bi=function(t){return v.lang.qf(t)?document.getElementById(t):t};v.Bi=v.C.Bi;v.C.contains=function(t,i){var e=v.C.Bi,t=e(t),i=e(i);return t.contains?t!=i&&t.contains(i):!!(t.compareDocumentPosition(i)&16)};v.R=v.R||{};/msie (\d+\.\d)/i.test(navigator.userAgent)&&(v.R.aa=v.aa=document.documentMode||+RegExp.$1);var ka={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};8>v.R.aa?(ka["for"]="htmlFor",ka["class"]="className"):(ka.htmlFor="for",ka.className="class");v.C.VB=ka;v.C.JA=function(t,i,e){t=v.C.N(t);if("style"==i)t.style.cssText=e;else{i=v.C.VB[i]||i;t.setAttribute(i,e)}return t};v.JA=v.C.JA;v.C.KA=function(t,i){var t=v.C.N(t),e;for(e in i)v.C.JA(t,e,i[e]);return t};v.KA=v.C.KA;v.zj=v.zj||{};(function(){var t=RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)","g");v.zj.trim=function(i){return(""+i).replace(t,"")}})();v.trim=v.zj.trim;v.zj.Nk=function(t,i){var t=""+t,e=Array.prototype.slice.call(arguments,1),n=Object.prototype.toString;if(e.length){e=e.length==1?i!==p&&/\[object Array\]|\[object Object\]/.test(n.call(i))?i:e:e;return t.replace(/#\{(.+?)\}/g,function(t,i){var o=e[i];"[object Function]"==n.call(o)&&(o=o(i));return"undefined"==typeof o?"":o})}return t};v.Nk=v.zj.Nk;v.C.Rb=function(t,i){for(var t=v.C.N(t),e=t.className.split(/\s+/),n=i.split(/\s+/),o,a=n.length,s,h=0;h0&&i.getBoxObjectFor&&n(t,"position");var o={left:0,top:0},a;if(t==(e.aa&&!e.Yz?i.body:i.documentElement))return o;if(t.getBoundingClientRect){t=t.getBoundingClientRect();o.left=Math.floor(t.left)+Math.max(i.documentElement.scrollLeft,i.body.scrollLeft);o.top=Math.floor(t.top)+Math.max(i.documentElement.scrollTop,i.body.scrollTop);o.left=o.left-i.documentElement.clientLeft;o.top=o.top-i.documentElement.clientTop;t=i.body;i=parseInt(n(t,"borderLeftWidth"));n=parseInt(n(t,"borderTopWidth"));if(e.aa&&!e.Yz){o.left=o.left-(isNaN(i)?2:i);o.top=o.top-(isNaN(n)?2:n)}}else{a=t;do{o.left=o.left+a.offsetLeft;o.top=o.top+a.offsetTop;if(e.NG>0&&n(a,"position")=="fixed"){o.left=o.left+i.body.scrollLeft;o.top=o.top+i.body.scrollTop;break}a=a.offsetParent}while(a&&a!=t);if(e.opera>0||e.NG>0&&n(t,"position")=="absolute")o.top=o.top-i.body.offsetTop;for(a=t.offsetParent;a&&a!=i.body;){o.left=o.left-a.scrollLeft;if(!e.opera||a.tagName!="TR")o.top=o.top-a.scrollTop;a=a.offsetParent}}return o};/firefox\/(\d+\.\d)/i.test(navigator.userAgent)&&(v.R.Tf=+RegExp.$1);/BIDUBrowser/i.test(navigator.userAgent)&&(v.R.lV=o);var la=navigator.userAgent;/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(la)&&!/chrome/i.test(la)&&(v.R.bI=+(RegExp.$1||RegExp.$2));/chrome\/(\d+\.\d)/i.test(navigator.userAgent)&&(v.R.RE=+RegExp.$1);v.Ob=v.Ob||{};v.Ob.vb=function(t,i){var e,n,o=t.length;if("function"==typeof i)for(n=0;n-1};v.xF=function(){function t(t){document.addEventListener&&(this.element=t,this.AF=this.Zk?"touchstart":"mousedown",this.Vy=this.Zk?"touchmove":"mousemove",this.Uy=this.Zk?"touchend":"mouseup",this.hg=q,this.Wq=this.Vq=0,this.element.addEventListener(this.AF,this,q),ja.D(this.element,"mousedown",s()),this.handleEvent(p))}t.prototype={Zk:"ontouchstart"in window||"createTouch"in document,start:function(t){ma(t);this.hg=q;this.Vq=this.Zk?t.touches[0].clientX:t.clientX;this.Wq=this.Zk?t.touches[0].clientY:t.clientY;this.element.addEventListener(this.Vy,this,q);this.element.addEventListener(this.Uy,this,q)},move:function(t){na(t);var i=this.Zk?t.touches[0].clientY:t.clientY;if(10e&&(n=o,t=e);return{zoom:t,Wy:n}},Da:u("Ga"),Db:function(t,i){i=i||this.$();return this.Hd.Db(t,i,this.gc,this.yb(),this.Cb)},ib:function(t,i){i=i||this.$();return this.Hd.ib(t,i,this.gc,this.yb(),this.Cb)},$d:function(t,i){if(t){var e=this.Db(new I(t.lng,t.lat),i);e.x-=this.offsetX;e.y-=this.offsetY;return e}},LH:function(t,i){if(t){var e=new P(t.x,t.y);e.x+=this.offsetX;e.y+=this.offsetY;return this.ib(e,i)}},pointToPixelFor3D:function(t,i){var e=map.Cb;this.rb==Na&&e&&ab.ZE(t,this,i)},SW:function(t,i){var e=map.Cb;this.rb==Na&&e&&ab.YE(t,this,i)},TW:function(t,i){var e=this,n=map.Cb;e.rb==Na&&n&&ab.ZE(t,e,function(t){t.x-=e.offsetX;t.y-=e.offsetY;i&&i(t)})},QW:function(t,i){var e=map.Cb;this.rb==Na&&e&&(t.x+=this.offsetX,t.y+=this.offsetY,ab.YE(t,this,i))},Oe:function(t){if(!this.Uz())return new bb;var i=t||{},t=i.margins||[0,0,0,0],e=i.zoom||p,i=this.ib({x:t[3],y:this.height-t[2]},e),t=this.ib({x:this.width-t[1],y:t[0]},e);return new bb(i,t)},Uz:function(){return!!this.loaded},AL:function(t,i){for(var e=this.ma(),n=i.margins||[10,10,10,10],o=i.zoomFactor||0,a=n[1]+n[3],n=n[0]+n[2],s=e.Im(),h=e=e.Rk();h>=s;h--){var r=this.ma().ac(h);if(t.gB().lng/re&&(h=e);return h},dq:function(t,i){var e={center:this.Fa(),zoom:this.$()};if(!t||!t instanceof bb&&0==t.length||t instanceof bb&&t.ji())return e;var n=[];t instanceof bb?(n.push(t.Pe()),n.push(t.Yd())):n=t.slice(0);for(var i=i||{},o=[],a=0,s=n.length;ai&&(e.Fd=i)},setMinZoom:function(t){t>this.F.Fd&&(t=this.F.Fd);this.F.RI=t;this.iE()},setMaxZoom:function(t){tt.Fd&&this.od(t.Fd);var i=new N("onzoomspanchange");i.Vc=t.Vc;i.Fd=t.Fd;this.dispatchEvent(i)},nW:u("Ax"),getKey:function(){return oa},yn:function(t){window.MPC_Mgr&&window.MPC_Mgr.close();var i=this;i.F.Cm=q;if(t){if(t.styleId)this.fG(t.styleId);else{i=this;t.styleJson&&(t.styleStr=i.wT(t.styleJson));F()&&v.R.bI?setTimeout(function(){i.F.Dd=t;i.dispatchEvent(new N("onsetcustomstyles",t))},50):(this.F.Dd=t,this.dispatchEvent(new N("onsetcustomstyles",t)),this.AG(i.F.Dd.geotableId));this.zG(t.controls);var e={style:t.style};t.features&&0=this.F.lB&&this.ma()==La&&18>=this.$(),i=q;try{document.createElement("canvas").getContext("2d"),i=o}catch(t){i=q}return t&&i},getCurrentCity:function(){return{name:this.um,code:this.Nx}},getPanorama:u("H"),setPanorama:function(t){this.H=t;this.H.NA(this)},wT:function(t){for(var i={featureType:"t",elementType:"e",visibility:"v",color:"c",lightness:"l",saturation:"s",weight:"w",zoom:"z",hue:"h"},e={all:"all",geometry:"g","geometry.fill":"g.f","geometry.stroke":"g.s",labels:"l","labels.text.fill":"l.t.f","labels.text.stroke":"l.t.s","lables.text":"l.t","labels.icon":"l.i"},n=[],o=0,a;a=t[o];o++){var s=a.stylers;delete a.stylers;v.extend(a,s);var s=[],h;for(h in i)a[h]&&("elementType"==h?s.push(i[h]+":"+e[a[h]]):s.push(i[h]+":"+a[h]));2=t.ew?(Ua(t.k.qa)&&t.k.qa(t.k.sd(1)),Ua(t.k.finish)&&t.k.finish(),0t?2*t*t:-2*(t-2)*t-1},FV:function(t){return.5>t?4*Math.pow(t,3):4*Math.pow(t-1,3)+1},GV:function(t){return(1-Math.cos(Math.PI*t))/2}};tb["ease-in"]=tb.Jy;tb["ease-out"]=tb.uF;var D={sB:34,tB:21,uB:new M(21,32),hJ:new M(10,32),gJ:new M(24,36),fJ:new M(12,36),qB:new M(13,1),da:C.ca+"images/",rB:C.ca+"images/markers_new.png",dJ:24,eJ:73,Tx:{"北京":{yu:"bj",m:new I(116.403874,39.914889)},"上海":{yu:"sh",m:new I(121.487899,31.249162)},"深圳":{yu:"sz",m:new I(114.025974,22.546054)},"广州":{yu:"gz",m:new I(113.30765,23.120049)}},fontFamily:"arial,sans-serif"};v.R.Tf?(v.extend(D,{lF:"url("+D.da+"ruler.cur),crosshair",Gb:"-moz-grab",Rc:"-moz-grabbing"}),v.platform.OG&&(D.fontFamily="arial,simsun,sans-serif")):v.R.RE||v.R.bI?v.extend(D,{lF:"url("+D.da+"ruler.cur) 2 6,crosshair",Gb:"url("+D.da+"openhand.cur) 8 8,default",Rc:"url("+D.da+"closedhand.cur) 8 8,move"}):v.extend(D,{lF:"url("+D.da+"ruler.cur),crosshair",Gb:"url("+D.da+"openhand.cur),default",Rc:"url("+D.da+"closedhand.cur),move"});function wb(t,i){var e=t.style;e.left=i[0]+"px";e.top=i[1]+"px"}function xb(t){0>4,n=(n&15)<<4|a>>2,o=(a&3)<<6|s,i+=String.fromCharCode(e),64!=a&&(i+=String.fromCharCode(n)),64!=s&&(i+=String.fromCharCode(o));while(h';var i=t.firstChild;if(!i.style)return q;i.style.behavior="url(#default#VML)";i=i?"object"==typeof i.adj:o;t.parentNode.removeChild(t);return i}function Kb(){return!!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape","1.1")}function Lb(){return!!L("canvas").getContext}C.IR=function(){var t=o,i=o,e=o,n=o,a=0,s=0,h=0,r=0;return{EK:function(){a+=1;t&&(t=q,setTimeout(function(){Oa(5054,{pic:a});t=o;a=0},1e4))},CU:function(){s+=1;i&&(i=q,setTimeout(function(){Oa(5055,{move:s});i=o;s=0},1e4))},EU:function(){h+=1;e&&(e=q,setTimeout(function(){Oa(5056,{zoom:h});e=o;h=0},1e4))},DU:function(t){r+=t;n&&(n=q,setTimeout(function(){Oa(5057,{tile:r});n=o;r=0},5e3))}}}();var Xa;(function(){function t(t){this.gO=t;this.timing={};this.start=+new Date}function i(t,i){if(t.length===+t.length)for(var e=0,n=t.length;e=r&&d.send())},error:s()};Xa={Hl:{Pz:function(t){var i=navigator.wV||navigator.GW||navigator.CX||{type:0};h=Math.random()<=(t.GS||.01);r=t.max||5;c=t.FW||i.type;l={p:t.qS,mnt:c,b:50};window.localStorage&&(window.JSON&&window.addEventListener)&&(a=n.get(o),window.addEventListener("load",function(){d.send(a)},q))},Ap:function(i){return new t(i)}}}})();Xa.Hl.Pz({qS:18,GS:.1,max:1});C.Pn={HB:"#83a1ff",Rn:"#808080"};function fb(t,i){if(i){var e=(1e5*Math.random()).toFixed(0);C._rd["_cbk"+e]=function(t){i&&i(t);delete C._rd["_cbk"+e]};t+="&callback=BMap._rd._cbk"+e}var n=L("script",{type:"text/javascript"});n.charset="utf-8";n.src=t;n.addEventListener?n.addEventListener("load",function(t){t=t.target;t.parentNode.removeChild(t)},q):n.attachEvent&&n.attachEvent("onreadystatechange",function(){var t=window.event.srcElement;t&&("loaded"==t.readyState||"complete"==t.readyState)&&t.parentNode.removeChild(t)});setTimeout(function(){document.getElementsByTagName("head")[0].appendChild(n);n=p},1)}var Mb={map:"pvu1om",common:"wjyrdz",style:"pgq3iu",tile:"v1otxj",groundoverlay:"j3wbdg",pointcollection:"vfsfov",marker:"evvsik",symbol:"wxdhrg",canvablepath:"rtkcqo",vmlcontext:"oysd5s",markeranimation:"f0ufkl",poly:"0w5u20",draw:"sper0m",drawbysvg:"qydmwo",drawbyvml:"k2d3y0",drawbycanvas:"v3zcxu",infowindow:"5pqfh3",oppc:"jgp5tf",opmb:"0mgrjl",menu:"rafhul",control:"kb0hci",navictrl:"2nq1hv",geoctrl:"rwytiz",copyrightctrl:"y2yjnv",scommon:"ktcda3",local:"pvdvag",route:"ayw2lc",othersearch:"tow5kq",mapclick:"gh3mwu",buslinesearch:"qvczd0",hotspot:"lpihxg",autocomplete:"vxbf0t",coordtrans:"hbze4q",coordtransutils:"mqp0qo",clayer:"trmb5i",panorama:"i1wy2h",pservice:"zd2xyg",pcommon:"q04nsl",panoramaflash:"24ls3e",vector:"uvpyd4"};v.Xu=function(){function t(t){return n&&!!e[i+t+"_"+Mb[t]]}var i="BMap_",e=window.localStorage,n="localStorage"in window&&e!==p&&e!==j;return{xR:n,set:function(t,o){if(n){for(var a=i+t+"_",s=e.length,h;s--;)h=e.key(s),-1");this.Ea==q&&v.C.J(this.A);return this.A},ns:function(){this.Sb(this.k.anchor)},Sb:function(t){if(this.hV||!Ta(t)||isNaN(t)||t=t?t:0},Rm:function(){return this.k.type},ze:function(){var t=this;K.load("navictrl",function(){t.Df()})}});function Qb(t){R.call(this);t=t||{};this.k={anchor:t.anchor||Pb,na:t.offset||new M(10,30),kX:t.showAddressBar||q,IV:t.enableAutoLocation||q,cH:t.locationIcon||p};var i=this;this.Hv=1200;i.aU=[];this.yd=[];K.load("geoctrl",function(){(function t(){if(0!==i.yd.length){var e=i.yd.shift();i[e.method].apply(i,e.arguments);t()}})();i.XJ()});Oa(Ja)}v.lang.ga(Qb,R,"GeolocationControl");v.extend(Qb.prototype,{location:function(){this.yd.push({method:"location",arguments:arguments})},getAddressComponent:da(p)});function Rb(t){R.call(this);t=t||{};this.k={kg:q,anchor:t.anchor,na:t.offset};this.Bb=[];this.defaultAnchor=Pb;this.defaultOffset=new M(5,2);this.Sb(t.anchor);this.IE=q;this.ze()}v.lang.ga(Rb,R,"CopyrightControl");v.object.extend(Rb.prototype,{initialize:function(t){this.B=t;return this.A},Ns:function(t){if(t&&Ta(t.id)&&!isNaN(t.id)){var i={bounds:p,content:""},e;for(e in t)i[e]=t[e];if(t=this.Pk(t.id))for(var n in i)t[n]=i[n];else this.Bb.push(i)}},Pk:function(t){for(var i=0,e=this.Bb.length;i=t.SN)){for(var i=0,e=this.ka.length;it)&&this.ka[i].yi--;this.Od.splice(t,1)}},Uc:u("A"),show:function(){this.Fg!=o&&(this.Fg=o)},J:function(){this.Fg!=q&&(this.Fg=q)},SS:function(t){t&&(this.k.cursor=t)},getItem:function(t){return this.Fe[t]}});function Wb(t,i,e){if(t&&Ua(i)){v.lang.oa.call(this);this.k={width:100,id:""};e=e||{};this.k.width=1*e.width?e.width:100;this.k.id=e.id?e.id:"";this.Mh=t+"";this.Jv=i;this.B=p;this.lb="menuitem";this.A=this.wg=p;this.Ag=o;var n=this;K.load("menu",function(){n.ob()})}}v.lang.ga(Wb,v.lang.oa,"MenuItem");v.object.extend(Wb.prototype,{ea:function(t,i){this.B=t;this.wg=i},remove:function(){this.B=this.wg=p},Mq:function(t){t&&(this.Mh=t+"")},Uc:u("A"),enable:function(){this.Ag=o},disable:function(){this.Ag=q}});function bb(t,i){t&&!i&&(i=t);this.Sd=this.Rd=this.Wd=this.Vd=this.nk=this.Yj=p;t&&(this.nk=new I(t.lng,t.lat),this.Yj=new I(i.lng,i.lat),this.Wd=t.lng,this.Vd=t.lat,this.Sd=i.lng,this.Rd=i.lat)}v.object.extend(bb.prototype,{ji:function(){return!this.nk||!this.Yj},wb:function(t){return!(t instanceof bb)||this.ji()?q:this.Yd().wb(t.Yd())&&this.Pe().wb(t.Pe())},Yd:u("nk"),Pe:u("Yj"),QO:function(t){return!(t instanceof bb)||this.ji()||t.ji()?q:t.Wd>this.Wd&&t.Sdthis.Vd&&t.RdMath.max(this.Wd,this.Sd)||Math.max(t.Vd,t.Rd)Math.max(this.Vd,this.Rd))return p;var i=Math.max(this.Wd,t.Wd),e=Math.min(this.Sd,t.Sd),n=Math.max(this.Vd,t.Vd),t=Math.min(this.Rd,t.Rd);return new bb(new I(i,n),new I(e,t))},ft:function(t){return!(t instanceof I)||this.ji()?q:t.lng>=this.Wd&&t.lng<=this.Sd&&t.lat>=this.Vd&&t.lat<=this.Rd},extend:function(t){if(t instanceof I){var i=t.lng,t=t.lat;this.nk||(this.nk=new I(0,0));this.Yj||(this.Yj=new I(0,0));if(!this.Wd||this.Wd>i)this.nk.lng=this.Wd=i;if(!this.Sd||this.Sdt)this.nk.lat=this.Vd=t;if(!this.Rd||this.Rd=t.lng&&-180<=t.lng&&74>=t.lat&&-74<=t.lat};I.prototype.wb=function(t){return t&&this.lat==t.lat&&this.lng==t.lng};function Xb(){}Xb.prototype.eg=function(){aa("lngLatToPoint方法未实现")};Xb.prototype.jh=function(){aa("pointToLngLat方法未实现")};function Yb(){}var ab={ZE:function(t,i,e){K.load("coordtransutils",function(){ab.lO(t,i,e)},o)},YE:function(t,i,e){K.load("coordtransutils",function(){ab.kO(t,i,e)},o)}};function Q(){}Q.prototype=new Xb;v.extend(Q,{rJ:6370996.81,NB:[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],pr:[75,60,45,30,15,0],xJ:[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],KB:[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]],VV:function(t,i){if(!t||!i)return 0;var e,n,t=this.qb(t);if(!t)return 0;e=this.Aj(t.lng);n=this.Aj(t.lat);i=this.qb(i);return!i?0:this.oe(e,this.Aj(i.lng),n,this.Aj(i.lat))},Gm:function(t,i){if(!t||!i)return 0;t.lng=this.xz(t.lng,-180,180);t.lat=this.Cz(t.lat,-74,74);i.lng=this.xz(i.lng,-180,180);i.lat=this.Cz(i.lat,-74,74);return this.oe(this.Aj(t.lng),this.Aj(i.lng),this.Aj(t.lat),this.Aj(i.lat))},qb:function(t){if(t===p||t===j)return new I(0,0);var i,e;i=new I(Math.abs(t.lng),Math.abs(t.lat));for(var n=0;n=this.NB[n]){e=this.xJ[n];break}t=this.$E(t,e);return t=new I(t.lng.toFixed(6),t.lat.toFixed(6))},pb:function(t){if(t===p||t===j||180t.lng||90t.lat)return new I(0,0);var i,e;t.lng=this.xz(t.lng,-180,180);t.lat=this.Cz(t.lat,-74,74);i=new I(t.lng,t.lat);for(var n=0;n=this.pr[n]){e=this.KB[n];break}if(!e)for(n=this.pr.length-1;0<=n;n--)if(i.lat<=-this.pr[n]){e=this.KB[n];break}t=this.$E(t,e);return t=new I(t.lng.toFixed(2),t.lat.toFixed(2))},$E:function(t,i){if(t&&i){var e=i[0]+i[1]*Math.abs(t.lng),n=Math.abs(t.lat)/i[9],n=i[2]+i[3]*n+i[4]*n*n+i[5]*n*n*n+i[6]*n*n*n*n+i[7]*n*n*n*n*n+i[8]*n*n*n*n*n*n,e=e*(0>t.lng?-1:1),n=n*(0>t.lat?-1:1);return new I(e,n)}},oe:function(t,i,e,n){return this.rJ*Math.acos(Math.sin(e)*Math.sin(n)+Math.cos(e)*Math.cos(n)*Math.cos(i-t))},Aj:function(t){return Math.PI*t/180},qX:function(t){return 180*t/Math.PI},Cz:function(t,i,e){i!=p&&(t=Math.max(t,i));e!=p&&(t=Math.min(t,e));return t},xz:function(t,i,e){for(;t>e;)t-=e-i;for(;tv.R.aa||"BackCompat"==document.compatMode?t.addEventListener("zoomend",function(t){setTimeout(function(){i.draw(t)},20)}):t.addEventListener("zoomend",function(t){i.draw(t)});t.addEventListener("maptypechange",function(t){i.draw(t)});t.addEventListener("addoverlay",function(t){t=t.target;if(t instanceof cb)i.la[t.Q]||(i.la[t.Q]=t);else{for(var e=q,n=0,a=i.Nd.length;n=this.z.cc&&(this.z.cc=5);if(0>this.z.qd||1this.z.Sf||1t)||(this.z.qd=t)},HQ:function(){return this.z.qd},Lu:function(t){1t||(this.z.Sf=t)},gQ:function(){return this.z.Sf},Kq:function(t){"solid"!=t&&"dashed"!=t||(this.z.strokeStyle=t)},dG:function(){return this.z.strokeStyle},setFillColor:function(t){this.z.fillColor=t||""},fQ:function(){return this.z.fillColor},Oe:u("Gv"),remove:function(){this.map&&this.map.removeEventListener("onmousemove",this.Pr);cb.prototype.remove.call(this);this.fe.length=0},Me:function(){if(!(2>this.V.length)){this.z.Me=o;var t=this;K.load("poly",function(){t.sk()},o)}},oP:function(){this.z.Me=q;var t=this;K.load("poly",function(){t.Ri()},o)}});function bc(t){cb.call(this);this.K=this.map=p;this.z={width:0,height:0,na:new M(0,0),opacity:1,background:"transparent",fu:1,UG:"#000",GR:"solid",point:p};this.dI(t);this.point=this.z.point}v.lang.ga(bc,cb,"Division");v.extend(bc.prototype,{Jj:function(){var t=this.z,i=this.content,e=['
');e.push(i);e.push("
");this.K=zb(this.map.Qe().fA,e.join(""))},initialize:function(t){this.map=t;this.Jj();this.K&&v.D(this.K,F()?"touchstart":"mousedown",function(t){ma(t)});return this.K},draw:function(){var t=this.map.$d(this.z.point);this.z.na=new M(-Math.round(this.z.width/2)-Math.round(this.z.fu),-Math.round(this.z.height/2)-Math.round(this.z.fu));this.K.style.left=t.x+this.z.na.width+"px";this.K.style.top=t.y+this.z.na.height+"px"},T:function(){return this.z.point},OU:function(){return this.map.Db(this.T())},ha:function(t){this.z.point=t;this.draw()},TS:function(t,i){this.z.width=Math.round(t);this.z.height=Math.round(i);this.K&&(this.K.style.width=this.z.width+"px",this.K.style.height=this.z.height+"px",this.draw())}});function cc(t,i,e){t&&i&&(this.imageUrl=t,this.size=i,t=new M(Math.floor(i.width/2),Math.floor(i.height/2)),e=e||{},t=e.anchor||t,i=e.imageOffset||new M(0,0),this.imageSize=e.imageSize,this.anchor=t,this.imageOffset=i,this.infoWindowAnchor=e.infoWindowAnchor||this.anchor,this.printImageUrl=e.printImageUrl||"")}v.extend(cc.prototype,{aT:function(t){t&&(this.imageUrl=t)},lT:function(t){t&&(this.printImageUrl=t)},Zc:function(t){t&&(this.size=new M(t.width,t.height))},Sb:function(t){t&&(this.anchor=new M(t.width,t.height))},Fq:function(t){t&&(this.imageOffset=new M(t.width,t.height))},cT:function(t){t&&(this.infoWindowAnchor=new M(t.width,t.height))},ZS:function(t){t&&(this.imageSize=new M(t.width,t.height))},toString:da("Icon")});function dc(t,i){if(t){i=i||{};this.style={anchor:i.anchor||new M(0,0),fillColor:i.fillColor||"#000",Sf:i.fillOpacity||0,scale:i.scale||1,rotation:i.rotation||0,strokeColor:i.strokeColor||"#000",qd:i.strokeOpacity||1,cc:i.strokeWeight};this.lb="number"===typeof t?t:"UserDefined";this.wh=this.style.anchor;this.Oo=new M(0,0);this.anchor=p;this.ax=t;var e=this;K.load("symbol",function(){e.Ll()})}}v.extend(dc.prototype,{setPath:ba("ax"),setAnchor:function(t){this.wh=this.style.anchor=t},setRotation:function(t){this.style.rotation=t},setScale:function(t){this.style.scale=t},setStrokeWeight:function(t){this.style.cc=t},setStrokeColor:function(t){t=v.wp.by(t,this.style.qd);this.style.strokeColor=t},setStrokeOpacity:function(t){this.style.qd=t},setFillOpacity:function(t){this.style.Sf=t},setFillColor:function(t){this.style.fillColor=t}});function ec(t,i,e,n){t&&(this.fs={},this.EF=n?!!n:q,this.oc=[],this.AT=t instanceof dc?t:p,this.AD=i===j?o:!!(i.indexOf("%")+1),this.Fi=isNaN(parseFloat(i))?1:this.AD?parseFloat(i)/100:parseFloat(i),this.BD=!!(e.indexOf("%")+1),this.repeat=e!=j?this.BD?parseFloat(e)/100:parseFloat(e):0)}function fc(t,i){v.lang.oa.call(this);this.content=t;this.map=p;i=i||{};this.z={width:i.width||0,height:i.height||0,maxWidth:i.maxWidth||730,na:i.offset||new M(0,0),title:i.title||"",gA:i.maxContent||"",Qf:i.enableMaximize||q,Np:i.enableAutoPan===q?q:o,Ly:i.enableCloseOnClick===q?q:o,margin:i.margin||[10,10,40,10],Zx:i.collisions||[[10,10],[10,10],[10,10],[10,10]],fR:q,aS:i.onClosing||da(o),Oy:i.enableMessage===q?q:o,Qy:i.enableParano===o?o:q,message:i.message,Sy:i.enableSearchTool===o?o:q,Wt:i.headerContent||""};if(0!=this.z.width&&(220>this.z.width&&(this.z.width=220),730this.z.height&&(this.z.height=60),650this.z.maxWidth&&(this.z.maxWidth=220),730t)||(0!=t&&(220>t&&(t=220),730t)||(0!=t&&(60>t&&(t=60),650t)||(0!=t&&(220>t&&(t=220),730this.z.width&&(this.z.width=0);Fb(i.enableClicking)&&(this.z.je=i.enableClicking);this.point=this.z.position;var e=this;K.load("marker",function(){e.ob()})}v.lang.ga(gc,cb,"Label");v.extend(gc.prototype,{T:function(){return this.Yr?this.Yr.T():this.point},ha:function(t){t instanceof I&&!this.Lt()&&(this.point=this.z.position=new I(t.lng,t.lat))},yc:ba("content"),OA:function(t){0<=t&&1>=t&&(this.z.opacity=t)},Id:function(t){t instanceof M&&(this.z.na=new M(t.width,t.height))},Zf:function(){return this.z.na},$c:function(t){t=t||{};this.z.Dn=v.extend(this.z.Dn,t)},lh:function(t){return this.$c(t)},Wb:function(t){this.z.title=t||""},getTitle:function(){return this.z.title},gI:function(t){this.point=(this.Yr=t)?this.z.position=t.T():this.z.position=p},Lt:function(){return this.Yr||p},Zi:u("content")});function hc(t,i){if(0!==arguments.length){cb.apply(this,arguments);i=i||{};this.z={Pa:t,opacity:i.opacity||1,bl:i.bl||"",zm:i.zm||1,ym:i.ym||18};var e=this;K.load("groundoverlay",function(){e.ob()})}}v.lang.ga(hc,cb,"GroundOverlay");v.extend(hc.prototype,{setBounds:function(t){this.z.Pa=t},getBounds:function(){return this.z.Pa},setOpacity:function(t){this.z.opacity=t},getOpacity:function(){return this.z.opacity},setImageURL:function(t){this.z.bl=t},getImageURL:function(){return this.z.bl},setDispalyOnMinLevel:function(t){this.z.zm=t},getDispalyOnMinLevel:function(){return this.z.zm},setDispalyOnMaxLevel:function(t){this.z.ym=t},getDispalyOnMaxLevel:function(){return this.z.ym}});var ic=3,jc=4;function kc(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))}function lc(t,i){var e=this;kc()&&(t===j&&aa(Error("没有传入points数据")),"[object Array]"!==Object.prototype.toString.call(t)&&aa(Error("points数据不是数组")),i=i||{},cb.apply(e,arguments),e.ja={V:t},e.z={shape:i.shape||ic,size:i.size||jc,color:i.color||"#fa937e",$h:o},this.Zw=[],this.yd=[],K.load("pointcollection",function(){for(var t=0,i;i=e.Zw[t];t++)e[i.method].apply(e,i.arguments);for(t=0;i=e.yd[t];t++)e[i.method].apply(e,i.arguments)}))}v.lang.ga(lc,cb,"PointCollection");v.extend(lc.prototype,{initialize:function(t){this.Zw&&this.Zw.push({method:"initialize",arguments:arguments})},setPoints:function(t){this.yd&&this.yd.push({method:"setPoints",arguments:arguments})},setStyles:function(t){this.yd&&this.yd.push({method:"setStyles",arguments:arguments})},clear:function(){this.yd&&this.yd.push({method:"clear",arguments:arguments})},remove:function(){this.yd&&this.yd.push({method:"remove",arguments:arguments})}});var mc=new cc(D.da+"marker_red_sprite.png",new M(19,25),{anchor:new M(10,25),infoWindowAnchor:new M(10,0)}),nc=new cc(D.da+"marker_red_sprite.png",new M(20,11),{anchor:new M(6,11),imageOffset:new M(-19,-13)});function T(t,i){cb.call(this);i=i||{};this.point=t;this.ao=this.map=p;this.z={na:i.offset||new M(0,0),cg:i.icon||mc,vj:nc,title:i.title||"",label:p,FE:i.baseZIndex||0,je:o,FX:q,Zz:q,$h:i.enableMassClear===q?q:o,$b:q,VH:i.raiseOnDrag===o?o:q,$H:q,Rc:i.draggingCursor||D.Rc,rotation:i.rotation||0};i.icon&&!i.shadow&&(this.z.vj=p);i.enableDragging&&(this.z.$b=i.enableDragging);Fb(i.enableClicking)&&(this.z.je=i.enableClicking);var e=this;K.load("marker",function(){e.ob()})}T.ur=Zb.Xk(-90)+1e6;T.FB=T.ur+1e6;v.lang.ga(T,cb,"Marker");v.extend(T.prototype,{Lb:function(t){if(t instanceof cc||t instanceof dc)this.z.cg=t},Hm:function(){return this.z.cg},Ou:function(t){t instanceof cc&&(this.z.vj=t)},getShadow:function(){return this.z.vj},tl:function(t){this.z.label=t||p},tz:function(){return this.z.label},$b:function(){this.z.$b=o},ty:function(){this.z.$b=q},T:u("point"),ha:function(t){t instanceof I&&(this.point=new I(t.lng,t.lat))},mh:function(t,i){this.z.Zz=!!t;t&&(this.$B=i||0)},Wb:function(t){this.z.title=t+""},getTitle:function(){return this.z.title},Id:function(t){t instanceof M&&(this.z.na=t)},Zf:function(){return this.z.na},sl:ba("ao"),Bn:function(t){this.z.rotation=t},bG:function(){return this.z.rotation}});function oc(t,i){ac.call(this,i);i=i||{};this.z.Sf=i.fillOpacity?i.fillOpacity:.65;this.z.fillColor=""==i.fillColor?"":i.fillColor?i.fillColor:"#fff";this.Jd(t);var e=this;K.load("poly",function(){e.ob()})}v.lang.ga(oc,ac,"Polygon");v.extend(oc.prototype,{Jd:function(t,i){this.jm=ac.It(t).slice(0);var e=ac.It(t).slice(0);1s;s+=9){var h=Math.PI/180*s,r=Math.asin(Math.sin(o)*Math.cos(n)+Math.cos(o)*Math.sin(n)*Math.cos(h)),h=new I(((a-Math.atan2(Math.sin(h)*Math.sin(n)*Math.cos(o),Math.cos(n)-Math.sin(o)*Math.sin(r))+Math.PI)%(2*Math.PI)-Math.PI)*(180/Math.PI),r*(180/Math.PI));e.push(h)}n=e[0];e.push(new I(n.lng,n.lat));return e}});var sc={};function tc(t){this.map=t;this.fl=[];this.We=[];this.Af=[];this.yO=300;this.wA=0;this.sf={};this.Th={};this.ig=0;this.Tz=o;this.eF={};this.Xr=this.lo(1);this.ie=this.lo(2);this.Mo=this.lo(3);t.platform.appendChild(this.Xr);t.platform.appendChild(this.ie);t.platform.appendChild(this.Mo)}C.ae(function(t){var i=new tc(t);i.ea();t.Ib=i});v.extend(tc.prototype,{ea:function(){var t=this,i=t.map;i.addEventListener("loadcode",function(){t.gu()});i.addEventListener("addtilelayer",function(i){t.Mf(i)});i.addEventListener("removetilelayer",function(i){t.mg(i)});i.addEventListener("setmaptype",function(i){t.xf(i)});i.addEventListener("zoomstartcode",function(i){t.pc(i)});i.addEventListener("setcustomstyles",function(i){t.yn(i.target);t.vf(o)})},gu:function(){var t=this;if(v.R.aa)try{document.execCommand("BackgroundImageCache",q,o)}catch(t){}this.loaded||t.au();t.vf();this.loaded||(this.loaded=o,K.load("tile",function(){t.WJ()}))},au:function(){for(var t=this.map.ma().Jo,i=0;iw[0]||h<=w[0]||s>w[1]||d<=w[1]))&&this.Zt(y)}m=-l.offsetX+l.width/2;y=-l.offsetY+l.height/2;a.ub&&(a.ub.style.left=Math.ceil(g+m)-f[0]+"px",a.ub.style.top=Math.ceil(v+y)-f[1]+"px",a.ub.style.WebkitTransform="translate3d(0,0,0)");g=[];for(l.Ax=[];c0&&h.hE)h.jb.style.cssText=h.jb.style.cssText+(';filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+h.src+'",sizingMethod=scale);')}var e=t.wA-t.yO,n;for(n in i){if(e<=0)break;if(!t.sf[n]){i[n].il=p;var s=i[n].jb;if(s&&s.parentNode){s.parentNode.removeChild(s);Bc(s)}s=p;i[n].jb=p;delete i[n];t.wA--;e--}}Cc&&new sb({Sc:20,duration:200,qa:function(t){if(h.jb&&h.jb.style)h.jb.style.opacity=t*1},finish:function(){h.jb&&h.jb.style&&delete h.jb.style.opacity}});vc(h)}};this.jb.onerror=function(){vc(h);if(h.il){var t=h.il.map.ma();if(t.k.Ty){h.error=o;h.jb.src=t.k.Ty;h.jb&&!yb(h.jb)&&a.ub.appendChild(h.jb)}}};n=p}function xc(t,i){t.zr.push(i)}function Ac(t){t.jb.src=0=v.R.aa&&t.hE?D.da+"blank.gif":""!==t.src&&t.jb.src==t.src?t.src+"&t = "+Date.now():t.src}function vc(t){for(var i=0;ithis.k.predictDate.weekday||7this.k.predictDate.hour||23/g,"")};O.hS=function(t){return t.replace(/([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*),([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*)(,)/g,"$1,$2;")};O.iS=function(t,i){return t.replace(RegExp("(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){"+i+"}","ig"),"$1")};var Sc=2,Tc=3,Uc=0,Vc="bt",Wc="nav",Xc="walk",Yc="bl",Zc="bsl",$c=14,ad=15,bd=18,cd=20,dd=31;C.I=window.Instance=v.lang.gd;function ed(t,i,e){v.lang.oa.call(this);if(t){this.Ga="object"==typeof t?t:v.Xb(t);this.page=1;this.Wc=100;this.DE="pg";this.Te=4;this.KE=i;this.update=o;t={page:1,xe:100,Wc:100,Te:4,DE:"pg",update:o};e||(e=t);for(var n in e)"undefined"!=typeof e[n]&&(this[n]=e[n]);this.qa()}}v.extend(ed.prototype,{qa:function(){this.ea()},ea:function(){this.DO();this.Ga.innerHTML=this.ZO()},DO:function(){isNaN(parseInt(this.page))&&(this.page=1);isNaN(parseInt(this.Wc))&&(this.Wc=1);1>this.page&&(this.page=1);1>this.Wc&&(this.Wc=1);this.page>this.Wc&&(this.page=this.Wc);this.page=parseInt(this.page);this.Wc=parseInt(this.Wc)},eW:function(){location.search.match(RegExp("[?&]?"+this.DE+"=([^&]*)[&$]?","gi"));this.page=RegExp.$1},ZO:function(){var t=[],i=this.page-1,e=this.page+1;t.push('

');if(!(1>i)){if(this.page>=this.Te){var n;t.push('首页'.replace("{temp1}","BMap.I('"+this.Q+"').toPage(1);"))}t.push('上一页'.replace("{temp2}","BMap.I('"+this.Q+"').toPage("+i+");"))}if(this.pagethis.page+n?this.page+n:this.Wc;n=this.page-n-o}this.page>this.Wc-this.Te&&this.page>=this.Te&&(n=this.Wc-this.Te+1,i=this.Wc);for(o=n;o<=i;o++)0'+o+""):1<=o&&o<=this.Wc&&(n='['+o+"]",t.push(n.replace("{temp3}","BMap.I('"+this.Q+"').toPage("+o+");"))));e>this.Wc||t.push('下一页'.replace("{temp4}","BMap.I('"+this.Q+"').toPage("+e+");"));t.push("

");return t.join("")},toPage:function(t){t=t?t:1;"function"==typeof this.KE&&(this.KE(t),this.page=t);this.update&&this.qa()}});function Za(t,i){V.call(this,t,i);i=i||{};i.renderOptions=i.renderOptions||{};this.An(i.pageCapacity);"undefined"!=typeof i.renderOptions.selectFirstResult&&!i.renderOptions.selectFirstResult?this.uy():this.Ny();this.la=[];this.ye=[];this.Sa=-1;this.La=[];var e=this;K.load("local",function(){e.Nv()},o)}v.ga(Za,V,"LocalSearch");Za.Nn=10;Za.vU=1;Za.Gl=100;Za.DB=2e3;Za.MB=1e5;v.extend(Za.prototype,{search:function(t,i){this.La.push({method:"search",arguments:[t,i]})},rl:function(t,i,e){this.La.push({method:"searchInBounds",arguments:[t,i,e]})},vn:function(t,i,e,n){this.La.push({method:"searchNearby",arguments:[t,i,e,n]})},Xd:function(){delete this.ta;delete this.ge;delete this.U;delete this.S;this.Sa=-1;this.Za();this.k.W.Aa&&(this.k.W.Aa.innerHTML="")},Yk:s(),Ny:function(){this.k.W.Dq=o},uy:function(){this.k.W.Dq=q},An:function(t){this.k.mj="number"==typeof t&&!isNaN(t)?1>t?Za.Nn:t>Za.Gl?Za.Nn:t:Za.Nn},pe:function(){return this.k.mj},toString:da("LocalSearch")});var fd=Za.prototype;W(fd,{clearResults:fd.Xd,setPageCapacity:fd.An,getPageCapacity:fd.pe,gotoPage:fd.Yk,searchNearby:fd.vn,searchInBounds:fd.rl,search:fd.search,enableFirstResultSelection:fd.Ny,disableFirstResultSelection:fd.uy});function gd(t,i){V.call(this,t,i)}v.ga(gd,V,"BaseRoute");v.extend(gd.prototype,{Xd:s()});function hd(t,i){V.call(this,t,i);i=i||{};this.Iq(i.policy);this.An(i.pageCapacity);this.ud=Vc;this.qr=$c;this.rr=Qc;this.la=[];this.Sa=-1;this.La=[];var e=this;K.load("route",function(){e.Md()})}hd.Gl=100;hd.tJ=[0,1,0,0,0,0,0,0,2,0,0,0,1,1,1];v.ga(hd,gd,"TransitRoute");v.extend(hd.prototype,{Iq:function(t){this.k.Hc=0<=t&&4>=t?t:0},zw:function(t,i){this.La.push({method:"_internalSearch",arguments:[t,i]})},search:function(t,i){this.La.push({method:"search",arguments:[t,i]})},An:function(t){if("string"==typeof t&&(t=parseInt(t),isNaN(t))){ this.k.mj=hd.Gl;return}this.k.mj="number"!=typeof t?hd.Gl:1<=t&&t<=hd.Gl?Math.round(t):hd.Gl},toString:da("TransitRoute"),zN:function(t){return t.replace(/\(.*\)/,"")}});var id=hd.prototype;W(id,{_internalSearch:id.zw});function jd(t,i){V.call(this,t,i);this.la=[];this.Sa=-1;this.La=[];var e=this,n=this.k.W;1!=n.hq&&2!=n.hq&&(n.hq=1);this.cw=this.k.W.$b?o:q;K.load("route",function(){e.Md()});this.Qz&&this.Qz()}jd.GJ=" 环岛 无属性道路 主路 高速连接路 交叉点内路段 连接道路 停车场内部道路 服务区内部道路 桥 步行街 辅路 匝道 全封闭道路 未定义交通区域 POI连接路 隧道 步行道 公交专用道 提前右转道".split(" ");v.ga(jd,gd,"DWRoute");v.extend(jd.prototype,{search:function(t,i,e){this.La.push({method:"search",arguments:[t,i,e]})}});function kd(t,i){jd.call(this,t,i);i=i||{};this.k.cf=i.enableTraffic||q;this.Iq(i.policy);this.ud=Wc;this.qr=cd;this.rr=Tc}v.ga(kd,jd,"DrivingRoute");kd.prototype.Iq=function(t){this.k.Hc=0<=t&&2>=t?t:0};function ld(t,i){jd.call(this,t,i);this.ud=Xc;this.qr=dd;this.rr=Sc;this.cw=q}v.ga(ld,jd,"WalkingRoute");function md(t,i){v.lang.oa.call(this);this.Se=[];this.ml=[];this.k=i;this.Kb=t;this.map=this.k.W.map||p;this.Iu=this.k.Iu;this.eb=p;this.Vh=0;this.Wu="";this.fd=1;this.Ct="";this.mn=[0,0,0,0,0,0,0];this.cA=[];this.Bp=[1,1,1,1,1,1,1];this.EI=[1,1,1,1,1,1,1];this.Bq=[0,0,0,0,0,0,0];this.nn=[0,0,0,0,0,0,0];this.ya=[{o:"",Je:0,Al:0,x:0,y:0,Ub:-1},{o:"",Je:0,Al:0,x:0,y:0,Ub:-1},{o:"",Je:0,Al:0,x:0,y:0,Ub:-1},{o:"",Je:0,Al:0,x:0,y:0,Ub:-1},{o:"",Je:0,Al:0,x:0,y:0,Ub:-1},{o:"",Je:0,Al:0,x:0,y:0,Ub:-1},{o:"",Je:0,Al:0,x:0,y:0,Ub:-1}];this.Ug=-1;this.Zq=[];this.$q=[];K.load("route",s())}v.lang.ga(md,v.lang.oa,"RouteAddr");function nd(t){this.k={};v.extend(this.k,t);this.La=[];var i=this;K.load("othersearch",function(){i.Md()})}v.ga(nd,v.lang.oa,"Geocoder");v.extend(nd.prototype,{Tk:function(t,i,e){this.La.push({method:"getPoint",arguments:[t,i,e]})},Yp:function(t,i,e){this.La.push({method:"getLocation",arguments:[t,i,e]})},toString:da("Geocoder")});var od=nd.prototype;W(od,{getPoint:od.Tk,getLocation:od.Yp});function Geolocation(t){t=t||{};this.F={timeout:t.timeout||1e4,maximumAge:t.maximumAge||6e5};this.yd=[];var i=this;K.load("othersearch",function(){for(var t=0,e;e=i.yd[t];t++)i[e.method].apply(i,e.arguments)})}v.extend(Geolocation.prototype,{getCurrentPosition:function(t,i){this.yd.push({method:"getCurrentPosition",arguments:arguments})},getStatus:da(2)});function pd(t){t=t||{};t.W=t.renderOptions||{};this.k={W:{map:t.W.map||p}};this.La=[];var i=this;K.load("othersearch",function(){i.Md()})}v.ga(pd,v.lang.oa,"LocalCity");v.extend(pd.prototype,{get:function(t){this.La.push({method:"get",arguments:[t]})},toString:da("LocalCity")});function qd(){this.La=[];var t=this;K.load("othersearch",function(){t.Md()})}v.ga(qd,v.lang.oa,"Boundary");v.extend(qd.prototype,{get:function(t,i){this.La.push({method:"get",arguments:[t,i]})},toString:da("Boundary")});function rd(t,i){V.call(this,t,i);this.DJ=Yc;this.FJ=ad;this.CJ=Zc;this.EJ=bd;this.La=[];var e=this;K.load("buslinesearch",function(){e.Md()})}rd.Sr=D.da+"iw_plus.gif";rd.gM=D.da+"iw_minus.gif";rd.HN=D.da+"stop_icon.png";v.ga(rd,V);v.extend(rd.prototype,{getBusList:function(t){this.La.push({method:"getBusList",arguments:[t]})},getBusLine:function(t){this.La.push({method:"getBusLine",arguments:[t]})},setGetBusListCompleteCallback:function(t){this.k.BH=t||s()},setGetBusLineCompleteCallback:function(t){this.k.AH=t||s()},setBusListHtmlSetCallback:function(t){this.k.zH=t||s()},setBusLineHtmlSetCallback:function(t){this.k.yH=t||s()},setPolylinesSetCallback:function(t){this.k.mA=t||s()}});function sd(t){V.call(this,t);t=t||{};this.dd={input:t.input||p,Lx:t.baseDom||p,types:t.types||[],ru:t.onSearchComplete||s()};this.Oc.src=t.location||"全国";this.Ph="";this.lf=p;this.$C="";this.Dh();Oa(Ia);var i=this;K.load("autocomplete",function(){i.Md()})}v.ga(sd,V,"Autocomplete");v.extend(sd.prototype,{Dh:s(),show:s(),J:s(),RA:function(t){this.dd.types=t},ul:function(t){this.Oc.src=t},search:ba("Ph"),Mu:ba("$C")});var Qa;function Ma(t,i){this.A="string"==typeof t?v.N(t):t;this.k={enableScrollWheelZoom:o,panoramaRenderer:"flash",swfSrc:C.fc+"res/swf/APILoader.swf",visible:o,linksControl:o,navigationControl:o,indoorSceneSwitchControl:o,albumsControl:q,albumsControlOptions:{},copyrightControlOptions:{}};var i=i||{},e;for(e in i)this.k[e]=i[e];this.va={heading:p,pitch:p};this.Wl=[];this.gb=this.Ya=p;this.ap=this.Pj();this.la=[];this.pc=1;this.jf=this.yM=this.zi="";this.Td={};this.He=p;this.Hf=[];this.To=[];this.Xo=q;var n=this;"flashRender"===this.Pj()?K.load("panoramaflash",function(){n.Dh()},o):K.load("panorama",function(){n.ob()},o);this.WM(this.A);"api"==i.Ne?Oa(Da):Oa(Ea);this.addEventListener("id_changed",function(){Oa(Ca,{from:i.Ne})})}var td=4,ud=1;v.lang.ga(Ma,v.lang.oa,"Panorama");v.extend(Ma.prototype,{WM:function(t){var i,e;i=t.style;e=Sa(t).position;"absolute"!=e&&"relative"!=e&&(i.position="relative",i.zIndex=0);if("absolute"===e||"relative"===e)if(t=Sa(t).zIndex,!t||"auto"===t)i.zIndex=0},nQ:u("Wl"),xb:u("Ya"),OQ:u("ys"),lI:u("ys"),T:u("gb"),Ia:u("va"),$:u("pc"),Wf:u("zi"),gW:function(){return this.WU||[]},cW:u("yM"),St:u("jf"),wl:function(t){t!==this.jf&&(this.jf=t,this.dispatchEvent(new N("onscene_type_changed")))},zc:function(t,i){t!=this.Ya&&(this.Uj=this.Ya,this.Tr=this.gb,this.Ya=t,this.jf=i||"street",this.gb=p)},ha:function(t){t.wb(this.gb)||(this.Uj=this.Ya,this.Tr=this.gb,this.gb=t,this.Ya=p)},Kd:function(t){t&&(this.va=t,t=this.va.pitch,"cvsRender"==this.Pj()?(90t&&(t=-90)):"cssRender"==this.Pj()&&(45t&&(t=-45)),this.Xo=o,this.va.pitch=t)},od:function(t){t!=this.pc&&(t>td&&(t=td),ti&&(n=90);0>t&&0>i&&(n=180);0>t&&0=v.R.aa&&(e+="&color_dep=32");return e};Ub.prototype.nq=da(o);Dd.de=new Q;function Dd(){}v.extend(Dd,{rP:function(t,i,e){e=v.lang.gd(e);i={data:i};"position_changed"==t&&(i.data=Dd.de.jh(new P(i.data.mercatorX,i.data.mercatorY)));e.dispatchEvent(new N("on"+t),i)}});var Ed=Dd;W(Ed,{dispatchFlashEvent:Ed.rP});var Fd={vJ:50,sr:"http://pcsv0.map.bdimg.com",or:{width:220,height:60}};v.extend(Fd,{Wm:function(t,i,e,n){if(!i||!e||!e.lngLat||!e.panoInstance)n();else{this.bm===j&&(this.bm=new S(p,{Ne:"api"}));var o=this;this.bm.Rx(i,function(i){i?o.bm.bi(e.lngLat,Fd.vJ,function(i){if(i&&i.id){var a=i.id,s=i.nj,i=i.oj,h=S.de.eg(e.lngLat),r=o.OL(h,{x:s,y:i}),s=o.XF(a,r,0,Fd.or.width,Fd.or.height);t.content=o.PL(t.content,s,e.titleTip,e.beforeDomId);t.addEventListener("open",function(){ja.D(v.Xb("infoWndPano"),"click",function(){e.panoInstance.zc(a);e.panoInstance.show();e.panoInstance.Kd({heading:r,pitch:0})})})}n()}):n()})}},PL:function(t,i,e,n){var e=e||"",o;!n||!t.split(n)[0]?(n=t,t=""):(n=t.split(n)[0],o=n.lastIndexOf("<"),n=t.substring(0,o),t=t.substring(o));o=[];var a=Fd.or.width,s=Fd.or.height;o.push(n);o.push("
");o.push(""+e+"外景");o.push("
进入全景>>");o.push("
");o.push(t);return o.join("")},OL:function(t,i){var e=90-180*Math.atan2(t.y-i.y,t.x-i.x)/Math.PI;0>e&&(e+=360);return e},XF:function(t,i,e,n,o){var a={panoId:t,panoHeading:i||0,panoPitch:e||0,width:n,height:o};return(Fd.sr+"/?qt=pr3d&fovy=75&quality=80&panoid={panoId}&heading={panoHeading}&pitch={panoPitch}&width={width}&height={height}").replace(/\{(.*?)\}/g,function(t,i){return a[i]})}});C.Map=Ka;C.Hotspot=eb;C.MapType=Ic;C.Point=I;C.Pixel=P;C.Size=M;C.Bounds=bb;C.TileLayer=uc;C.Projection=Xb;C.MercatorProjection=Q;C.PerspectiveProjection=db;C.Copyright=function(t,i,e){this.id=t;this.Pa=i;this.content=e};C.Overlay=Zb;C.Label=gc;C.GroundOverlay=hc;C.PointCollection=lc;C.Marker=T;C.Icon=cc;C.IconSequence=ec;C.Symbol=dc;C.Polyline=pc;C.Polygon=oc;C.InfoWindow=fc;C.Circle=rc;C.Control=R;C.NavigationControl=gb;C.GeolocationControl=Qb;C.OverviewMapControl=ib;C.CopyrightControl=Rb;C.ScaleControl=hb;C.MapTypeControl=jb;C.PanoramaControl=Tb;C.TrafficLayer=Fc;C.CustomLayer=kb;C.ContextMenu=Vb;C.MenuItem=Wb;C.LocalSearch=Za;C.TransitRoute=hd;C.DrivingRoute=kd;C.WalkingRoute=ld;C.Autocomplete=sd;C.Geocoder=nd;C.LocalCity=pd;C.Geolocation=Geolocation;C.BusLineSearch=rd;C.Boundary=qd;C.VectorCloudLayer=Dc;C.VectorTrafficLayer=Ec;C.Panorama=Ma;C.PanoramaLabel=wd;C.PanoramaService=S;C.PanoramaCoverageLayer=Ub;C.PanoramaFlashInterface=Dd;function W(t,i){for(var e in i)t[e]=i[e]}W(window,{BMap:C,_jsload2:function(t,i){ja.Xu.xR&&ja.Xu.set(t,i);K.CO(t,i)},BMAP_API_VERSION:"2.0"});var Y=Ka.prototype;W(Y,{getBounds:Y.Oe,getCenter:Y.Fa,getMapType:Y.ma,getSize:Y.yb,setSize:Y.Zc,getViewport:Y.dq,getZoom:Y.$,centerAndZoom:Y.zd,panTo:Y.hh,panBy:Y.wf,setCenter:Y.Ue,setCurrentCity:Y.LA,setMapType:Y.xf,setViewport:Y.og,setZoom:Y.od,highResolutionEnabled:Y.gj,zoomTo:Y.Bf,zoomIn:Y.oB,zoomOut:Y.pB,addHotspot:Y.Os,removeHotspot:Y.vS,clearHotspots:Y.Ak,checkResize:Y.EO,addControl:Y.Ms,removeControl:Y.WH,getContainer:Y.Da,addContextMenu:Y.mm,removeContextMenu:Y.kn,addOverlay:Y.wa,removeOverlay:Y.sb,clearOverlays:Y.TE,openInfoWindow:Y.hc,closeInfoWindow:Y.tc,pointToOverlayPixel:Y.$d,overlayPixelToPoint:Y.LH,getInfoWindow:Y.Yf,getOverlays:Y.Az,getPanes:function(){return{floatPane:this.xd.$y,markerMouseTarget:this.xd.fA,floatShadow:this.xd.FF,labelPane:this.xd.aA,markerPane:this.xd.hH,markerShadow:this.xd.iH,mapPane:this.xd.rq}},addTileLayer:Y.Mf,removeTileLayer:Y.mg,pixelToPoint:Y.ib,pointToPixel:Y.Db,setFeatureStyle:Y.MA,selectBaseElement:Y.gX,setMapStyle:Y.yn,enable3DBuilding:Y.Bm,disable3DBuilding:Y.nP});var Gd=Ic.prototype;W(Gd,{getTileLayer:Gd.MQ,getMinZoom:Gd.Im,getMaxZoom:Gd.Rk,getProjection:Gd.Nm,getTextColor:Gd.bq,getTips:Gd.cq});W(window,{BMAP_NORMAL_MAP:La,BMAP_PERSPECTIVE_MAP:Na,BMAP_SATELLITE_MAP:Va,BMAP_HYBRID_MAP:Pa});var Hd=Q.prototype;W(Hd,{lngLatToPoint:Hd.eg,pointToLngLat:Hd.jh});var Id=db.prototype;W(Id,{lngLatToPoint:Id.eg,pointToLngLat:Id.jh});var Jd=bb.prototype;W(Jd,{equals:Jd.wb,containsPoint:Jd.ft,containsBounds:Jd.QO,intersects:Jd.Rz,extend:Jd.extend,getCenter:Jd.Fa,isEmpty:Jd.ji,getSouthWest:Jd.Yd,getNorthEast:Jd.Pe,toSpan:Jd.gB});var Kd=Zb.prototype;W(Kd,{isVisible:Kd.dg,show:Kd.show,hide:Kd.J});Zb.getZIndex=Zb.Xk;var Ld=cb.prototype;W(Ld,{openInfoWindow:Ld.hc,closeInfoWindow:Ld.tc,enableMassClear:Ld.$h,disableMassClear:Ld.pP,show:Ld.show,hide:Ld.J,getMap:Ld.Kt,addContextMenu:Ld.mm,removeContextMenu:Ld.kn});var Md=T.prototype;W(Md,{setIcon:Md.Lb,getIcon:Md.Hm,setPosition:Md.ha,getPosition:Md.T,setOffset:Md.Id,getOffset:Md.Zf,getLabel:Md.tz,setLabel:Md.tl,setTitle:Md.Wb,setTop:Md.mh,enableDragging:Md.$b,disableDragging:Md.ty,setZIndex:Md.Nq,getMap:Md.Kt,setAnimation:Md.sl,setShadow:Md.Ou,hide:Md.J,setRotation:Md.Bn,getRotation:Md.bG});W(window,{BMAP_ANIMATION_DROP:1,BMAP_ANIMATION_BOUNCE:2});var Nd=gc.prototype;W(Nd,{setStyle:Nd.$c,setStyles:Nd.lh,setContent:Nd.yc,setPosition:Nd.ha,getPosition:Nd.T,setOffset:Nd.Id,getOffset:Nd.Zf,setTitle:Nd.Wb,setZIndex:Nd.Nq,getMap:Nd.Kt,getContent:Nd.Zi});var Od=cc.prototype;W(Od,{setImageUrl:Od.aT,setSize:Od.Zc,setAnchor:Od.Sb,setImageOffset:Od.Fq,setImageSize:Od.ZS,setInfoWindowAnchor:Od.cT,setPrintImageUrl:Od.lT});var Pd=fc.prototype;W(Pd,{redraw:Pd.nd,setTitle:Pd.Wb,setContent:Pd.yc,getContent:Pd.Zi,getPosition:Pd.T,enableMaximize:Pd.Qf,disableMaximize:Pd.vt,isOpen:Pd.Ja,setMaxContent:Pd.Gq,maximize:Pd.ku,enableAutoPan:Pd.Np});var Qd=ac.prototype;W(Qd,{getPath:Qd.Cd,setPath:Qd.Jd,setPositionAt:Qd.vl,getStrokeColor:Qd.GQ,setStrokeWeight:Qd.Lq,getStrokeWeight:Qd.eG,setStrokeOpacity:Qd.Jq,getStrokeOpacity:Qd.HQ,setFillOpacity:Qd.Lu,getFillOpacity:Qd.gQ,setStrokeStyle:Qd.Kq,getStrokeStyle:Qd.dG,getFillColor:Qd.fQ,getBounds:Qd.Oe,enableEditing:Qd.Me,disableEditing:Qd.oP});var Rd=rc.prototype;W(Rd,{setCenter:Rd.Ue,getCenter:Rd.Fa,getRadius:Rd.ZF,setRadius:Rd.we});var Sd=oc.prototype;W(Sd,{getPath:Sd.Cd,setPath:Sd.Jd,setPositionAt:Sd.vl});var Td=eb.prototype;W(Td,{getPosition:Td.T,setPosition:Td.ha,getText:Td.Fz,setText:Td.Mq});I.prototype.equals=I.prototype.wb;P.prototype.equals=P.prototype.wb;M.prototype.equals=M.prototype.wb;W(window,{BMAP_ANCHOR_TOP_LEFT:Nb,BMAP_ANCHOR_TOP_RIGHT:Ob,BMAP_ANCHOR_BOTTOM_LEFT:Pb,BMAP_ANCHOR_BOTTOM_RIGHT:3});var Ud=R.prototype;W(Ud,{setAnchor:Ud.Sb,getAnchor:Ud.ez,setOffset:Ud.Id,getOffset:Ud.Zf,show:Ud.show,hide:Ud.J,isVisible:Ud.dg,toString:Ud.toString});var Vd=gb.prototype;W(Vd,{getType:Vd.Rm,setType:Vd.xl});W(window,{BMAP_NAVIGATION_CONTROL_LARGE:0,BMAP_NAVIGATION_CONTROL_SMALL:1,BMAP_NAVIGATION_CONTROL_PAN:2,BMAP_NAVIGATION_CONTROL_ZOOM:3});var Wd=ib.prototype;W(Wd,{changeView:Wd.Ad,setSize:Wd.Zc,getSize:Wd.yb});var Xd=hb.prototype;W(Xd,{getUnit:Xd.QQ,setUnit:Xd.SA});W(window,{BMAP_UNIT_METRIC:"metric",BMAP_UNIT_IMPERIAL:"us"});var Yd=Rb.prototype;W(Yd,{addCopyright:Yd.Ns,removeCopyright:Yd.yA,getCopyright:Yd.Pk,getCopyrightCollection:Yd.mz});W(window,{BMAP_MAPTYPE_CONTROL_HORIZONTAL:Sb,BMAP_MAPTYPE_CONTROL_DROPDOWN:1,BMAP_MAPTYPE_CONTROL_MAP:2});var Zd=uc.prototype;W(Zd,{getMapType:Zd.ma,getCopyright:Zd.Pk,isTransparentPng:Zd.nq});var $d=Vb.prototype;W($d,{addItem:$d.Ps,addSeparator:$d.Gx,removeSeparator:$d.AA});var ae=Wb.prototype;W(ae,{setText:ae.Mq});var be=V.prototype;W(be,{getStatus:be.Uk,setSearchCompleteCallback:be.QA,getPageCapacity:be.pe,setPageCapacity:be.An,setLocation:be.ul,disableFirstResultSelection:be.uy,enableFirstResultSelection:be.Ny,gotoPage:be.Yk,searchNearby:be.vn,searchInBounds:be.rl,search:be.search});W(window,{BMAP_STATUS_SUCCESS:0,BMAP_STATUS_CITY_LIST:1,BMAP_STATUS_UNKNOWN_LOCATION:2,BMAP_STATUS_UNKNOWN_ROUTE:3,BMAP_STATUS_INVALID_KEY:4,BMAP_STATUS_INVALID_REQUEST:5,BMAP_STATUS_PERMISSION_DENIED:6,BMAP_STATUS_SERVICE_UNAVAILABLE:7,BMAP_STATUS_TIMEOUT:8});W(window,{BMAP_POI_TYPE_NORMAL:0,BMAP_POI_TYPE_BUSSTOP:1,BMAP_POI_TYPE_BUSLINE:2,BMAP_POI_TYPE_SUBSTOP:3,BMAP_POI_TYPE_SUBLINE:4});W(window,{BMAP_TRANSIT_POLICY_LEAST_TIME:0,BMAP_TRANSIT_POLICY_LEAST_TRANSFER:2,BMAP_TRANSIT_POLICY_LEAST_WALKING:3,BMAP_TRANSIT_POLICY_AVOID_SUBWAYS:4,BMAP_LINE_TYPE_BUS:0,BMAP_LINE_TYPE_SUBWAY:1,BMAP_LINE_TYPE_FERRY:2});var ce=gd.prototype;W(ce,{clearResults:ce.Xd});id=hd.prototype;W(id,{setPolicy:id.Iq,toString:id.toString,setPageCapacity:id.An});W(window,{BMAP_DRIVING_POLICY_LEAST_TIME:0,BMAP_DRIVING_POLICY_LEAST_DISTANCE:1,BMAP_DRIVING_POLICY_AVOID_HIGHWAYS:2});W(window,{BMAP_HIGHLIGHT_STEP:1,BMAP_HIGHLIGHT_ROUTE:2});W(window,{BMAP_ROUTE_TYPE_DRIVING:Tc,BMAP_ROUTE_TYPE_WALKING:Sc});W(window,{BMAP_ROUTE_STATUS_NORMAL:Uc,BMAP_ROUTE_STATUS_EMPTY:1,BMAP_ROUTE_STATUS_ADDRESS:2});var de=kd.prototype;W(de,{setPolicy:de.Iq});var ee=sd.prototype;W(ee,{show:ee.show,hide:ee.J,setTypes:ee.RA,setLocation:ee.ul,search:ee.search,setInputValue:ee.Mu});W(kb.prototype,{});var fe=qd.prototype;W(fe,{get:fe.get});W(Ub.prototype,{});W($a.prototype,{});W(window,{BMAP_POINT_DENSITY_HIGH:200,BMAP_POINT_DENSITY_MEDIUM:Hc,BMAP_POINT_DENSITY_LOW:50});W(window,{BMAP_POINT_SHAPE_STAR:1,BMAP_POINT_SHAPE_WATERDROP:2,BMAP_POINT_SHAPE_CIRCLE:ic,BMAP_POINT_SHAPE_SQUARE:4,BMAP_POINT_SHAPE_RHOMBUS:5});W(window,{BMAP_POINT_SIZE_TINY:1,BMAP_POINT_SIZE_SMALLER:2,BMAP_POINT_SIZE_SMALL:3,BMAP_POINT_SIZE_NORMAL:jc,BMAP_POINT_SIZE_BIG:5,BMAP_POINT_SIZE_BIGGER:6,BMAP_POINT_SIZE_HUGE:7});W(window,{BMap_Symbol_SHAPE_CAMERA:11,BMap_Symbol_SHAPE_WARNING:12,BMap_Symbol_SHAPE_SMILE:13,BMap_Symbol_SHAPE_CLOCK:14,BMap_Symbol_SHAPE_POINT:9,BMap_Symbol_SHAPE_PLANE:10,BMap_Symbol_SHAPE_CIRCLE:1,BMap_Symbol_SHAPE_RECTANGLE:2,BMap_Symbol_SHAPE_RHOMBUS:3,BMap_Symbol_SHAPE_STAR:4,BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW:5,BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW:6,BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW:7,BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW:8});C.eO()})();