_jsload2&&_jsload2('autocomplete', 'z.lang.Ca.prototype.ci=ha(0,function(){delete window[z.aa]._instances[this.aa];for(var a in this)z.lang.wt(this[a])||delete this[a]});z.D.getComputedStyle=function(a,b){var a=z.D.Oj(a),c=z.D.QD(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,s))?c[b]||c.getPropertyValue(b):""};z.D.remove=function(a){var a=z.D.Oj(a),b=a.parentNode;b&&b.removeChild(a)};z.lang.isArray=function(a){return"[object Array]"==Object.prototype.toString.call(a)}; z.event=z.event||{};z.event.stopPropagation=function(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=q};z.event.preventDefault=function(a){a.preventDefault?a.preventDefault():a.returnValue=t};z.event.stop=function(a){var b=z.event;b.stopPropagation(a);b.preventDefault(a)};z.mc.indexOf=function(a,b,c){var e=a.length,c=c|0;for(0>c&&(c=Math.max(0,e+c));c",G5:"
#{2}
", s0:\'
\\u5173\\u95ed
\',r0:\'#{0}
\',u0:\'#{1}\',iY:function(){return z.Wo(this.t0, this.Xb(),this.Us(),this.aa)},va:function(a,b){var c,a=z.$(a);this.gC=b;!this.hi()&&a&&(this.d0=a.id?a.id:a.id=this.Xb("input"),c=this.YZ(),c.style.display="none",c.innerHTML=this.iY(),this.dispatchEvent("onload"))},SA:function(){var a=this.hi();return a&&"none"!=a.style.display},wj:function(a){var b=this.km,a={data:{item:(b&&"number"==typeof a&&"undefined"!=typeof b[a]?b[a].value:a)==a?{value:a,content:a}:b[a],index:a}};this.dispatchEvent("onbeforepick",a)&&this.dispatchEvent("onpick",a)},show:function(a, b,c){var a=0,e=b.length;this.tk=[];this.Zc=-1;if(0==e&&!c)this.U();else{for(this.km=[];ae.width&&(e.width=0)),b.height))e.height=parseFloat(b.height)-c(a,"paddingTop")-c(a,"paddingBottom")-c(a,"borderTopWidth")-c(a,"borderBottomWidth"),0>e.height&&(e.height=0);return z.D.ti(a,e)}; (function(){var a=z.Ob.Zl.HK=u();a.hz=t;a.dq;a.xG;a.yG;a.CP=function(){if(this.dq)this.DP(),z.Md(this.dq,"display","block");else{var a=this.nW||{},c=this.xG=a.Wa||this.hi(),e=a.opacity||"0",a=a.color||"",f=this.dq=document.createElement("iframe"),g=this.yG=document.createElement("div");0n+m?-p-(e.width||0):0;i.top+=i.topo+k?-v-(e.height||0):0;break;case "fix":i.left=Math.max(0-parseFloat(z.D.oj(b,"marginLeft"))||0,Math.min(i.left,z.page.jE()-p-x.left));i.top=Math.max(0-parseFloat(z.D.oj(b,"marginTop"))||0,Math.min(i.top,z.page.iE()- v-x.top));break;case "verge":var y=-1m-x.left?E-p:y;i.top+=i.top+A+v-o>k-x.top?C-v:A}z.D.sa(b,i);!g&&(k!=z.page.iE()||m!=z.page.jE())&&this._positionByCoordinate(b,e,{},q);g||this.dispatchEvent("onpositionupdate")}; b.gQ=function(a,b,f){("undefined"==typeof b||!b)&&z.event.M(z.D.uY(a),"resize",z.nm.bind.apply(this,["_positionByCoordinate",this].concat([].slice.call(f))));this._positionByCoordinate.apply(this,f)}})(); z.Ob.Bi.extend({PZ:q,lX:q,vY:function(){var a=this;return function(){a.Fw(q)}},Fw:function(a){var b=this.ym(),c=this.gC,e=this.hi();if(this.SA()||!a)c&&(b=c),a=z.D.ga(b),b={top:a.top+b.offsetHeight-1,left:a.left,width:b.offsetWidth},b="function"==typeof this.view?this.view(b):b,this.sa([b.left,b.top],s,{BZ:q}),z.D.E_(e,b.width)}}); z.Ob.Bi.Ye(function(a){a.T0=a.vY();a.addEventListener("onload",function(){a.Fw();a.lX&&(a.mX=setInterval(function(){var b=a.hi(),c=a.ym();0!=b.offsetWidth&&(c&&c.offsetWidth!=b.offsetWidth)&&(a.Fw(),b.style.display="block")},100));a.M(window,"resize",a.T0)});a.addEventListener("onshow",function(){a.Fw()});a.addEventListener("ondispose",function(){clearInterval(a.mX)})}); z.Ob.Bi.Ye(function(a){function b(){setTimeout(function(){var b=a.ym();f=b===s?"":b.value},20)}var c,e="",f,g,i=t,k=t;a.addEventListener("onload",function(){c=this.ym();b();a.M(window,"onload",b);a.e0=a.mY();a.M(c,"keydown",a.e0);c.setAttribute("autocomplete","off");a.$V=setInterval(function(){if(!k){z.$(c)==s&&a.ci();var b=c.value;b==e&&""!=b&&b!=f&&b!=g?0==a.vF&&(a.vF=setTimeout(function(){a.dispatchEvent("onneeddata",b)},100)):(clearTimeout(a.vF),a.vF=0,""==b&&""!=e&&(g="",a.U()),e=b,b!=g&&(a.ix= b),f!=c.value&&(f=""))}},10);a.M(c,"beforedeactivate",a.EV)});a.addEventListener("onitemclick",function(){k=t;a.ix=e=a.dE()});a.addEventListener("onpick",function(a){i&&c.blur();c.value=g=a.data.item.value;i&&c.focus()});a.addEventListener("onmousedownitem",function(){k=i=q;setTimeout(function(){i=k=t},500)});a.addEventListener("ondispose",function(){clearInterval(a.$V)})}); z.Ob.Bi.extend({EV:function(){return function(){mousedownView&&(window.event.cancelBubble=q,window.event.returnValue=t)}},mY:function(){var a=this;return function(b){var c=t,b=b||window.event;switch(b.keyCode){case 9:case 27:a.U();break;case 13:z.event.stop(b);a.confirm(-1==a.Zc?a.ym().value:a.tk[a.Zc],"keyboard");break;case 38:c=q;case 40:z.event.stop(b);b=c;if(a.SA()){var c=a.tk,e=a.Zc;if(0!=c.length){if(b)switch(e){case -1:e=c.length-1;a.wj(c[e]);a.jt(c[e]);break;case 0:e=-1;a.wj(a.ix);a.rC(); break;default:e--,a.wj(c[e]),a.jt(c[e])}else switch(e){case -1:e=0;a.wj(c[e]);a.jt(c[e]);break;case c.length-1:e=-1;a.wj(a.ix);a.rC();break;default:e++,a.wj(c[e]),a.jt(c[e])}a.Zc=e}}else a.dispatchEvent("onneeddata",a.dE());break;default:a.Zc=-1}}},ix:""});ia.K5=q;var ei=t,fi=B.Wc+"res/20/bmap_autocomplete.css",gi={ALL:"0",CITY:"1"}; z.extend(Zd.prototype,{Sd:function(){this.Mi()},Mi:function(){this.ml=-1;this.Ia=s;this.lw=[];this.mH=0;this.ha=this.ov();this.ub.input&&(this.NS(),this.lU(),this.Ly(this.lI));var a=s;this.Wi&&(a={method:"search"},a.arguments=[this.Wi]);this.cI();this.KH(a)},lU:function(){var a=this,b=new z.Ob.Bi({getData:function(b){a.iJ(b)},onhide:function(){a.ml=-1;""===a.pg.dE()&&(a.Wi="",a.ha=a.ov())},onhighlight:function(b){if(a.Ia){var e={},f={},f={index:b.data.index,value:a.Ia.Lm[b.data.index].value},e={index:a.ml, value:0<=a.ml?a.Ia.Lm[a.ml].value:{}},g=new P("onhighlight");g.fromitem=g.d3=e;g.toitem=g.D5=f;a.dispatchEvent(g);a.ml=b.data.index}},onbeforepick:function(b){if(a.Ia&&"number"===typeof b.data.index){var e=a.Ia.Lm[b.data.index].value;b.data.item.content=b.data.item.value=e.province+e.city+e.district+e.street+e.business}},onconfirm:function(b){if(a.Ia){Ra(5012);var e={};"number"===typeof b.data.index&&(e={index:b.data.index,value:a.Ia.Lm[b.data.index].value},b=new P("onconfirm"),b.item=b.item=e,a.dispatchEvent(b))}}}); b.va(z.$(this.ub.input),z.$(this.ub.gC));this.pg=b},show:function(){this.pg&&(this.pg.hi().style.display="block")},U:function(){this.pg&&this.pg.U();this.ml=-1},ci:function(){this.pg&&this.pg.ci();z.lang.Ca.prototype.ci.call(this)},KF:function(a){this.ub.types=a||[];this.cI()},fn:function(a){this.Ad.src=a;this.KH()},search:function(a){this.iJ(a)},Ly:function(a){this.pg&&this.pg.wj(a)},iJ:function(a){var b=this,c=(1E5*Math.random()).toFixed(0);B._rd["_cbk"+c]=function(a){z.$(b.ub.input)!==s&&b.mS(a); delete B._rd["_cbk"+c]};var e=B.url.proto+B.url.domain.baidumap+"/su?wd="+encodeURIComponent(a)+"&callback=BMap._rd._cbk"+c+"&cid="+b.mH+"&type="+b.lw+"&t="+(new Date).getTime()+"&from=jsapi";b.Wi=a;b.ml=-1;b.ha=this.ov();Ra(5010,{tp:b.lw,wd:encodeURIComponent(a)});B.alog("cus.fire","count","z_sug");oa(e)},mS:function(a){a&&a.q&&(this.Wi=a.q);this.LU(this.$R(a));this.ha=this.ov(this.Ia);this.ub.py(this.ha)},$R:function(a){var b=[],c=a.s,e={};e.vb=a.q||"";e.count=a.s.length||0;e.status=0>a.e?7:0;e.Lm= [];var f=0,g=c.length;for(H()&&6a.data.length&&b.U()}},wS:function(a,b){switch(b.toString()){case "1":return this.xS(a);default:return this.yS(a)}},yS:function(a){var a=a.split("$"),b=this.Wi,c=RegExp(b,"g"),e=""+b+"",f={province:"",city:a[0],district:a[1],street:a[2],streetNumber:"",business:a[3]},g="";7<=a.length&& (f.city=a[5]||f.city,f.district=a[6]||f.city);for(var i=3;0<=i;i--)if(g=a[i]+g,-1\'+k+"");break}if(!k)for(i=3;0<=i;i--)k+=a[i];return{value:{value:f},lM:g}},xS:function(a){var b=a.split("$"),c=this.Wi,a={province:b[0],city:b[1],district:"",street:"",streetNumber:"",business:""},b=(b[0]+b[1]).replace(RegExp(c,"g"),""+c+"");return{value:{value:a},lM:b}},cI:function(){var a= this.ub.types,b=[];if(z.wg(a))b.push(gi[a.toUpperCase()]);else if(z.lang.isArray(a))for(var c=0,e=a.length;c