SafetyScreen-ui/public/static/map/modules/autocomplete_punr3o.js

1 line
20 KiB
JavaScript
Raw Normal View History

2024-11-06 09:03:49 +08:00
_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<e;c++)if(c in a&&a[c]===b)return c;return-1};z.mc.contains=function(a,b){return 0<=z.mc.indexOf(a,b)};z.Ob=z.Ob||{version:"1.3.9"}; z.Ob.rY=function(a){for(var a=a.split("-"),b=z.Ob,c=a.length,e=0;e<c;e++)b=b[a[e].charAt(0).toUpperCase()+a[e].slice(1)];return b};z.Ob.create=function(a,b){z.lang.wg(a)&&(a=z.Ob.rY(a));return new a(b)};z.event.YA=z.event.YA||[]; z.event.M=function(a,b,c){function e(b){c.call(a,b)}var b=b.replace(/^on/i,""),a=z.D.Oj(a),f=z.event.YA,g=z.event.E1,i=b,b=b.toLowerCase();g&&g[b]&&(g=g[b](a,b,e),i=g.type,e=g.n4);a&&a.addEventListener?a.addEventListener(i,e,t):a&&a.attachEvent&&a.attachEvent("on"+i,e);f[f.length]=[a,b,c,e,i];return a};z.M=z.event.M; z.event.ed=function(a,b,c){for(var a=z.D.Oj(a),b=b.replace(/^on/i,"").toLowerCase(),e=z.event.YA,f=e.length,g=!c,i,k;f--;)if(i=e[f],i[1]===b&&i[0]===a&&(g||i[2]===c))k=i[4],i=i[3],a.removeEventListener?a.removeEventListener(k,i,t):a.detachEvent&&a.detachEvent("on"+k,i),e.splice(f,1);return a};z.ed=z.event.ed; z.Ob.tG={id:"",Xb:function(a){var b;b="tangram-"+this.uu+"--"+(this.id?this.id:this.aa);return a?b+"-"+a:b},Us:function(a){var b=this.wK,c=this.T_;a&&(b+="-"+a,c+="-"+a);this.T_&&(b+=" "+c);return b},hi:function(){return z.$(this.dN)},zX:function(){return z.$(this.Xb())},uu:"",Zo:function(){return"window[\'$BAIDU$\']._instances[\'"+this.aa+"\']"},l3:function(a){for(var b=0,c=Array.prototype.slice.call(arguments,1),e=c.length;b<e;b++)"string"==typeof c[b]&&(c[b]="\'"+c[b]+"\'");return this.Zo()+"."+a+"("+ c.join(",")+");"},M:function(a,b,c){z.M(a,b,c);this.addEventListener("ondispose",function(){z.ed(a,b,c)})},YZ:function(a){if(!this.hi())return a=z.$(a),a||(a=document.createElement("div"),document.body.appendChild(a),a.style.position="absolute",a.className=this.Us("main")),a.id||(a.id=this.Xb("main")),this.dN=a.id,a.setAttribute("data-guid",this.aa),a},ci:function(){this.dispatchEvent("dispose");z.lang.Ca.prototype.ci.call(this)}}; z.Ob.xW=function(a){function b(){}function c(b,e){var o=this,b=b||{};f.call(o,!g?b:b.aa||"",q);z.object.extend(o,c.options);z.object.extend(o,b);o.wK=o.wK||"tangram-"+o.uu.toLowerCase();for(i in z.Ob.Zl)"undefined"!=typeof o[i]&&o[i]&&(z.object.extend(o,z.Ob.Zl[i]),z.lang.wt(o[i])?o.addEventListener("onload",function(){z.Ob.Zl[i].call(o[i].apply(o))}):z.Ob.Zl[i].call(o));a.apply(o,arguments);i=0;for(k=c.zz.length;i<k;i++)c.zz[i](o);b.parent&&o.G_&&o.G_(b.parent);!e&&b.m2&&o.va(b.element)}var e;e= e||{};var f=e.b0||z.lang.Ca,g=f==z.lang.Ca?1:0,i,k;b.prototype=f.prototype;e=c.prototype=new b;for(i in z.Ob.tG)e[i]=z.Ob.tG[i];c.extend=function(a){for(i in a)c.prototype[i]=a[i];return c};c.zz=[];c.Ye=function(a){"function"==typeof a&&c.zz.push(a)};c.options={};return c};z.D.KD=function(a,b){a=z.D.$(a);if(a===s)return a;if("style"==b)return a.style.cssText;b=z.D.RG[b]||b;return a.getAttribute(b)};z.KD=z.D.KD; z.Ob.get=function(a){var b;if(z.lang.wg(a))return z.lang.Nc(a);do{if(!a||9==a.nodeType)return s;if(b=z.D.KD(a,"data-guid"))return z.lang.Nc(b)}while((a=a.parentNode)!=document.body)}; z.Ob.Bi=z.Ob.xW(function(){var a=this;a.addEventListener("onload",function(){eventName=H()?"touchstart":"mousedown";a.M(document,eventName,a.PW);a.M(window,"blur",a.S0)});a.