{"size": 4198, "ext": "js", "max_stars_repo_path": "public/js/overlay.js", "max_stars_repo_name": "shiyongwei/PhpStorm", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/overlay.js", "max_issues_repo_name": "shiyongwei/PhpStorm", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/overlay.js", "max_forks_repo_name": "shiyongwei/PhpStorm", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 466.4444444444, "max_line_length": 958, "alphanum_fraction": 0.6760362077}
google.maps.__gjsload__('overlay', function(_){var yu=_.oa("b"),zu=_.l(),Au=function(){var a=this.lg;if(this.getPanes()){if(this.getProjection()){if(!a.b&&this.onAdd)this.onAdd();a.b=!0;this.draw()}}else{if(a.b)if(this.onRemove)this.onRemove();else this.remove();a.b=!1}},Bu=function(a){a.lg=a.lg||new zu;return a.lg},Cu=function(a){_.yf.call(this);this.oa=(0,_.u)(Au,a)},Fu=function(a){if(a){var b=a.getMap(),c=a.__gmop;if(c){if(c.map==b)return;a.__gmop=null;c.ug()}if(b&&b instanceof _.Cd){var d=b.__gm;d.overlayLayer?a.__gmop=new Du(b,a,d.overlayLayer):
d.b.then(function(c){c=c.wa;var e=new Eu(b,c);c.qb(e);d.overlayLayer=e;Fu(a)})}}},Du=function(a,b,c){this.map=a;this.ma=b;this.Tm=c;this.Uf=!1;_.X(this.map,"Ox");_.vm("Ox","-p",this.ma);c.f.push(this);c.b&&Gu(this,c.b);c.j.Ac()},Gu=function(a,b){a.ma.get("projection")!=b&&(a.ma.bindTo("panes",a.map.__gm),a.ma.set("projection",b))},Hu=function(a,b){this.f=a;this.l=b;this.j=new _.Yb(0,0);this.m=new _.Yb(0,0);this.b=_.bc(0,0,0)},Iu=function(a){var b=a.l.dd();return a.l.Cb({clientX:b.left,clientY:b.top})},
Ju=function(a,b,c){if(!c||!b)return null;b=_.Tl(b,a.f.getProjection());b=_.wi(a.l.f,b,a.m);a=_.xi(_.yi(a.b,_.si(b,c)));return new _.H(a.V,a.X)},Ku=function(a,b,c,d){return c&&a.b?_.Ul(_.ri(c,_.cc(a.b,{V:b.x,X:b.y})),a.f.getProjection(),d):null},Eu=function(a,b){this.l=a;this.j=b;this.b=null;this.f=[]};_.y(yu,_.N);
yu.prototype.changed=function(a){"outProjection"!=a&&(a=!!(this.get("offset")&&this.get("projectionTopLeft")&&this.get("projection")&&_.F(this.get("zoom"))),a==!this.get("outProjection")&&this.set("outProjection",a?this.b:null))};_.y(Cu,_.yf);Du.prototype.draw=function(){this.Uf||(this.Uf=!0,this.ma.onAdd&&this.ma.onAdd());this.ma.draw&&this.ma.draw()};Du.prototype.ug=function(){_.wm("Ox","-p",this.ma);this.ma.unbindAll();this.ma.set("panes",null);this.ma.set("projection",null);_.Va(this.Tm.f,this);this.ma.onRemove?this.ma.onRemove():this.ma.remove();this.Uf=!1};_.m=Hu.prototype;_.m.fromLatLngToContainerPixel=function(a){var b=Iu(this);return Ju(this,a,b)};_.m.fromLatLngToDivPixel=function(a){return Ju(this,a,this.j)};
_.m.fromDivPixelToLatLng=function(a,b){return Ku(this,a,this.j,b)};_.m.fromContainerPixelToLatLng=function(a){var b=Iu(this);return Ku(this,a,b)};_.m.getWorldWidth=function(){return this.b?_.yi(this.b,new _.Yb(256,256)).V:256*Math.pow(2,this.f.getZoom()||0)};Eu.prototype.la=_.l();Eu.prototype.Qb=function(a,b,c,d){a=this.b=this.b||new Hu(this.l,this.j);a.b=c;a.j=b;a.m=d;b=_.Aa(this.f);for(c=b.next();!c.done;c=b.next())c=c.value,Gu(c,a),c.draw()};_.Vd("overlay",{wk:function(a){if(a){var b=a.getMap();if(b&&b instanceof _.Cd||a.__gmop)Fu(a);else{b=a.getMap();var c=Bu(a),d=c.mm;c.mm=b;d&&(c=Bu(a),(d=c.ba)&&d.unbindAll(),(d=c.ri)&&d.unbindAll(),a.unbindAll(),a.set("panes",null),a.set("projection",null),_.A(c.O,_.L.removeListener),c.O=null,c.Wb&&(c.Wb.oa(),c.Wb=null),_.wm("Ox","-p",a));if(b){c=Bu(a);d=c.Wb;d||(d=c.Wb=new Cu(a));_.A(c.O||[],_.L.removeListener);var e=c.ba=c.ba||new _.yk,f=b.__gm;e.bindTo("zoom",f);e.bindTo("offset",f);e.bindTo("center",
f,"projectionCenterQ");e.bindTo("projection",b);e.bindTo("projectionTopLeft",f);e=c.ri=c.ri||new yu(e);e.bindTo("zoom",f);e.bindTo("offset",f);e.bindTo("projection",b);e.bindTo("projectionTopLeft",f);a.bindTo("projection",e,"outProjection");a.bindTo("panes",f);e=(0,_.u)(d.S,d);c.O=[_.L.addListener(a,"panes_changed",e),_.L.addListener(f,"zoom_changed",e),_.L.addListener(f,"offset_changed",e),_.L.addListener(b,"projection_changed",e),_.L.addListener(f,"projectioncenterq_changed",e),_.L.forward(b,"forceredraw",
d)];d.S();b instanceof _.Cd&&(_.X(b,"Ox"),_.vm("Ox","-p",a))}}}},an:function(a){_.ln(a,{jb:function(a){return _.Dm(a.event)},Ja:function(a){return _.Am(a)},fc:function(a){return _.Bm(a)},Ta:function(a){return _.Bm(a)},Ka:function(a){return _.Cm(a)}}).Fc(!0)},$m:function(a){a.addEventListener("click",_.vc);a.addEventListener("contextmenu",_.vc);a.addEventListener("dblclick",_.vc);a.addEventListener("mousedown",_.vc);a.addEventListener("mousemove",_.vc);a.addEventListener("MSPointerDown",_.vc);a.addEventListener("pointerdown",
_.vc);a.addEventListener("touchstart",_.vc);a.addEventListener("wheel",_.vc)}});});
