-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathonion.js
54 lines (54 loc) · 25 KB
/
onion.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
google.maps.__gjsload__('onion', function(_){var qG,oBa,pBa,sG,qBa,rBa,EG,FG,GG,sBa,HG,tBa,uBa,vBa,wBa,xBa,yBa,ABa,BBa,EBa,JG,GBa,IBa,LBa,HBa,JBa,MBa,KBa,NBa,KG,MG,NG,PBa,OBa,OG,QG,RG,PG,SG,RBa,SBa,TBa,TG,UBa,UG,VBa,VG,WBa,WG,XG,XBa,YBa,YG,$Ba,ZBa,bCa,aH,dCa,eCa,cCa,fCa,gCa,jCa,kCa,lCa,iCa,bH,mCa,nCa,pCa,oCa,cH,hCa,qCa,sCa,rCa,dH;qG=function(a){_.F(this,a,6)};oBa=function(a){_.F(this,a,1)};pBa=function(){rG||(rG={M:"m",Y:["dd"]});return rG};sG=function(a){_.F(this,a,3)};qBa=function(a){_.F(this,a,16)};
rBa=function(a){var b=new _.hh;if(!tG){var c=tG={M:"mmss6emssss13m15bb"};if(!uG){var d=uG={M:"m"};vG||(vG={M:"ssmssm"},vG.Y=["dd",_.eo()]);d.Y=[vG]}d=uG;if(!wG){var e=wG={M:"mimmbmmm"};xG||(xG={M:"m",Y:["ii"]});var f=xG;var g=pBa(),h=pBa();if(!yG){var k=yG={M:"ebbSbbSeEmmibmsmeb"};zG||(zG={M:"bbM",Y:["i"]});var l=zG;AG||(AG={M:"Eim",Y:["ii"]});k.Y=[l,"ii4eEb",AG,"eieie"]}k=yG;BG||(BG={M:"M",Y:["ii"]});l=BG;CG||(CG={M:"2bb5bbbMbbb",Y:["e"]});e.Y=[f,g,h,k,l,CG]}e=wG;DG||(DG={M:"ssibeeism"},DG.Y=[_.bm()]);
c.Y=[d,"sss",e,DG]}c=tG;return b.g(a.sb(),c)};EG=function(a){_.F(this,a,40)};FG=function(a){_.F(this,a,9)};GG=function(a){return a.vc};sBa=function(a){return _.zv(a.ue,-19)};HG=function(a){return a.Cd};tBa=function(a){return a.bf};uBa=function(a){return a.Sb?_.$u("background-color",_.V(a.Dc,"",-2,-3)):_.V(a.Dc,"",-2,-3)};vBa=function(a){return!!_.V(a.Dc,!1,-2,-2)};
wBa=function(){return[["$t","t-DjbQQShy8a0","$a",[7,,,,,"transit-container"]],["display",function(a){return!_.zv(a.ue,-19)},"$a",[7,,,,,"transit-title",,1]],["var",function(a){return a.vc=_.V(a.ue,"",-2)},"$dc",[GG,!1],"$c",[,,GG]],["display",sBa,"$a",[7,,,,,"transit-title",,1]],["var",function(a){return a.Cd=_.V(a.ue,"",-19,-1)},"$dc",[HG,!1],"$c",[,,HG]],["display",function(a){return!!_.V(a.ue,!1,-19,-4)},"$a",[7,,,,,"transit-wheelchair-icon",,1]],["for",[function(a,b){return a.qf=b},function(a,
b){return a.su=b},function(a,b){return a.Wy=b},function(a){return _.V(a.ue,[],-19,-17)}],"display",sBa,"$a",[7,,,,,"transit-line-group"],"$a",[7,,,function(a){return 0!=a.su},,"transit-line-group-separator"]],["for",[function(a,b){return a.icon=b},function(a,b){return a.My=b},function(a,b){return a.Ny=b},function(a){return _.V(a.qf,[],-2)}],"$a",[8,2,,,function(a){return _.V(a.icon,"",-5,0,-1)},"src",,,1],"$a",[0,,,,"15","height",,1],"$a",[0,,,,"15","width",,1]],["var",function(a){return a.Um=0==
_.V(a.qf,0,-5)?15:1==_.V(a.qf,0,-5)?12:6},"var",function(a){return a.gx=_.xv(a.qf,-3)>a.Um},"$a",[7,,,,,"transit-line-group-content",,1]],["for",[function(a,b){return a.line=b},function(a,b){return a.xu=b},function(a,b){return a.Vy=b},function(a){return _.V(a.qf,[],-3)}],"display",function(a){return a.xu<a.Um},"$up",["t-WxTvepIiu_w",{qf:function(a){return a.qf},line:function(a){return a.line}}]],["display",function(a){return a.gx},"var",function(a){return a.uv=_.xv(a.qf,-3)-a.Um},"$a",[7,,,,,"transit-nlines-more-msg",
,1]],["var",function(a){return a.bf=String(a.uv)},"$dc",[tBa,!1],"$c",[,,tBa]],["$a",[7,,,,,"transit-line-group-vehicle-icons",,1]],["$a",[7,,,,,"transit-clear-lines",,1]]]};
xBa=function(){return[["$t","t-WxTvepIiu_w","display",function(a){return 0<_.xv(a.line,-6)},"var",function(a){return a.Qm=_.zv(a.qf,-5)?_.V(a.qf,0,-5):2},"$a",[7,,,,,"transit-div-line-name"]],["$a",[7,,,function(a){return 2==a.Qm},,"gm-transit-long"],"$a",[7,,,function(a){return 1==a.Qm},,"gm-transit-medium"],"$a",[7,,,function(a){return 0==a.Qm},,"gm-transit-short"]],["for",[function(a,b){return a.Dc=b},function(a,b){return a.Ey=b},function(a,b){return a.Fy=b},function(a){return _.V(a.line,[],-6)}],
"$up",["t-LWeJzkXvAA0",{Dc:function(a){return a.Dc}}]]]};
yBa=function(){return[["$t","t-LWeJzkXvAA0","$a",[0,,,,"listitem","role"]],["display",function(a){return _.zv(a.Dc,-3)&&_.zv(a.Dc,-3,-5,0,-1)},"$a",[7,,,,,"renderable-component-icon",,1],"$a",[0,,,,function(a){return _.V(a.Dc,"",-3,-4)},"alt",,,1],"$a",[8,2,,,function(a){return _.V(a.Dc,"",-3,-5,0,-1)},"src",,,1],"$a",[0,,,,"15","height",,1],"$a",[0,,,,"15","width",,1]],["display",function(a){return _.zv(a.Dc,-2)},"var",function(a){return a.Qy=5==_.V(a.Dc,0,-1)},"var",function(a){return a.Uu="#ffffff"==
_.V(a.Dc,"",-2,-3)},"var",function(a){return a.Om=_.zv(a.Dc,-2,-3)}],["display",function(a){return!_.zv(a.Dc,-2,-1)&&a.Om},"$a",[7,,,,,"renderable-component-color-box",,1],"$a",[5,5,,,uBa,"background-color",,,1]],["display",function(a){return _.zv(a.Dc,-2,-1)&&a.Om},"$a",[7,,,,,"renderable-component-text-box"],"$a",[7,,,vBa,,"renderable-component-bold"],"$a",[7,,,function(a){return a.Uu},,"renderable-component-text-box-white"],"$a",[5,5,,,uBa,"background-color",,,1],"$a",[5,5,,,function(a){return a.Sb?
_.$u("color",_.V(a.Dc,"",-2,-4)):_.V(a.Dc,"",-2,-4)},"color",,,1]],["var",function(a){return a.vc=_.V(a.Dc,"",-2,-1)},"$dc",[GG,!1],"$a",[7,,,,,"renderable-component-text-box-content"],"$c",[,,GG]],["display",function(a){return _.zv(a.Dc,-2,-1)&&!a.Om},"var",function(a){return a.Cd=_.V(a.Dc,"",-2,-1)},"$dc",[HG,!1],"$a",[7,,,,,"renderable-component-text"],"$a",[7,,,vBa,,"renderable-component-bold"],"$c",[,,HG]]]};
ABa=function(a,b){a=_.tq({ra:a.x,ta:a.y,Ba:b});if(!a)return null;var c=2147483648/(1<<b);a=new _.N(a.ra*c,a.ta*c);c=1073741824;b=Math.min(31,_.Ge(b,31));IG.length=Math.floor(b);for(var d=0;d<b;++d)IG[d]=zBa[(a.x&c?2:0)+(a.y&c?1:0)],c>>=1;return IG.join("")};BBa=function(a){return a.charAt(1)};EBa=function(a){var b=a.search(CBa);if(-1!=b){for(;124!=a.charCodeAt(b);++b);return a.slice(0,b).replace(DBa,BBa)}return a.replace(DBa,BBa)};
_.FBa=function(a,b){var c=0;b.forEach(function(d,e){(d.zIndex||0)<=(a.zIndex||0)&&(c=e+1)});b.insertAt(c,a)};JG=function(a,b){this.Qf=a;this.tiles=b};GBa=function(a,b,c,d,e){this.h=a;this.j=b;this.tc=c;this.l=d;this.g={};this.i=e||null;_.L.bind(b,"insert",this,this.Kv);_.L.bind(b,"remove",this,this.cw);_.L.bind(a,"insert_at",this,this.Jv);_.L.bind(a,"remove_at",this,this.bw);_.L.bind(a,"set_at",this,this.fw)};IBa=function(a,b){a.j.forEach(function(c){null!=c.id&&HBa(a,b,c)})};
LBa=function(a,b){a.j.forEach(function(c){JBa(a,c,b.toString())});b.data.forEach(function(c){c.tiles&&c.tiles.forEach(function(d){KBa(b,d,c)})})};
HBa=function(a,b,c){var d=a.g[c.id]=a.g[c.id]||{},e=b.toString();if(!d[e]&&!b.freeze){var f=new JG([b].concat(b.gj||[]),[c]),g=b.tl;_.Xa(b.gj||[],function(l){g=g||l.tl});var h=g?a.l:a.tc,k=h.load(f,function(l){delete d[e];var m=b.layerId;m=EBa(m);if(l=l&&l[c.g]&&l[c.g][m])l.Ch=b,l.tiles||(l.tiles=new _.bh),_.ch(l.tiles,c),_.ch(b.data,l),_.ch(c.data,l);l={coord:c.xb,zoom:c.zoom,hasData:!!l};a.i&&a.i(l,b)});k&&(d[e]=function(){h.cancel(k)})}};JBa=function(a,b,c){if(a=a.g[b.id])if(b=a[c])b(),delete a[c]};
MBa=function(a,b){var c=a.g[b.id],d;for(d in c)JBa(a,b,d);delete a.g[b.id]};KBa=function(a,b,c){b.data.remove(c);c.tiles.remove(b);c.tiles.eb()||(a.data.remove(c),delete c.Ch,delete c.tiles)};NBa=function(a,b,c,d,e,f,g){var h="ofeatureMapTiles_"+b;_.L.addListener(c,"insert_at",function(){a&&a[h]&&(a[h]={})});_.L.addListener(c,"remove_at",function(){a&&a[h]&&(c.getLength()||(a[h]={}))});new GBa(c,d,e,f,function(k,l){a&&a[h]&&(a[h][k.coord.x+"-"+k.coord.y+"-"+k.zoom]=k.hasData);g&&g(k,l)})};
KG=function(a){this.g=void 0===a?!1:a};_.LG=function(a,b,c){this.layerId=a;this.g=b;this.parameters=c||{}};MG=function(a){this.tiles=this.Ch=null;this.g=a};NG=function(a,b){this.h=a;this.i=new OBa;this.j=new PBa;this.g=b};PBa=function(){this.y=this.x=0};OBa=function(){this.xa=this.h=Infinity;this.Ca=this.g=-Infinity};OG=function(a){this.g=a};QG=function(a,b,c){this.g=a;this.j=b;this.l=PG(this,1);this.h=PG(this,3);this.i=c};RG=function(a,b){return a.g.charCodeAt(b)-63};
PG=function(a,b){return RG(a,b)<<6|RG(a,b+1)};SG=function(a,b){return RG(a,b)<<12|RG(a,b+1)<<6|RG(a,b+2)};
RBa=function(a,b){return function(c,d){function e(g){for(var h,k,l={},m=0,p=_.ze(g);m<p;++m){var q=g[m],r=q.layer;if(""!=r){r=EBa(r);var t=q.id;l[t]||(l[t]={});t=l[t];if(q){var v=q.features,w=q.base;delete q.base;var y=(1<<q.id.length)/8388608;h=q.id;var z=0;k=0;for(var J=1073741824,G=0,K=h.length;G<K;++G){var R=QBa[h.charAt(G)];if(2==R||3==R)z+=J;if(1==R||3==R)k+=J;J>>=1}h=z;if(v&&v.length){z=q.epoch;J={};z="number"===typeof z&&q.layer?(J[q.layer]=z,J):null;J=_.A(v);for(G=J.next();!G.done;G=J.next())if(G=
G.value.a)G[0]+=w[0],G[1]+=w[1],G[0]-=h,G[1]-=k,G[0]*=y,G[1]*=y;w=[new NG(v,z)];q.raster&&w.push(new QG(q.raster,v,z));q=new OG(w)}else q=null}else q=null;t[r]=q?new MG(q):null}}d(l)}var f=a[(0,_.dj)(c)%a.length];b?(c=(0,_.pi)((new _.nm(f)).setQuery(c,!0).toString()),_.fra(c,{Yc:e,ig:e,uo:!0})):_.pq(_.dj,f,_.pi,c,e,e)}};SBa=function(a,b){this.g=a;this.h=b};
TBa=function(a,b,c,d,e){var f,g;a.h&&a.g.forEach(function(k){if(k.Ky&&b[k.jf()]&&0!=k.clickable){k=k.jf();var l=b[k][0];l.bb&&(f=k,g=l)}});g||a.g.forEach(function(k){b[k.jf()]&&0!=k.clickable&&(f=k.jf(),g=b[f][0])});a=g&&g.id;if(!f||!a)return null;a=new _.N(0,0);var h=new _.pg(0,0);e=1<<e;g&&g.a?(a.x=(c.x+g.a[0])/e,a.y=(c.y+g.a[1])/e):(a.x=(c.x+d.x)/e,a.y=(c.y+d.y)/e);g&&g.io&&(h.width=g.io[0],h.height=g.io[1]);return{feature:g,layerId:f,anchorPoint:a,anchorOffset:h}};
TG=function(a,b,c,d,e,f){this.m=a;this.C=c;this.l=d;this.g=this.j=null;this.o=new _.nB(b.ad(),f,e)};UBa=function(a,b){var c={};a.forEach(function(d){var e=d.Ch;0!=e.clickable&&(e=e.jf(),d.get(b.x,b.y,c[e]=[]),c[e].length||delete c[e])});return c};UG=function(a){this.j=a;this.g={};_.L.addListener(a,"insert_at",(0,_.Na)(this.h,this));_.L.addListener(a,"remove_at",(0,_.Na)(this.i,this));_.L.addListener(a,"set_at",(0,_.Na)(this.l,this))};VBa=function(a,b){return a.g[b]&&a.g[b][0]};
VG=function(a,b,c,d,e,f,g){g=void 0===g?_.Kn:g;var h=_.oaa(c,function(l){return!(!l||!l.tl)}),k=new _.mq;_.nq(k,_.ke(b.h),_.le(b.h));_.Xa(c,function(l){l&&k.Za(l)});this.g=new WBa(a,new _.vq(_.Hk(b,!!h),null,!1,_.tq,null,{Ud:k.g,Gf:f},d?e||0:void 0),g)};WBa=function(a,b,c){this.h=a;this.g=b;this.rb=c;this.Hd=1};WG=function(a,b){this.g=a;this.h=b};XG=function(a){this.tc=a;this.g=null;this.h=0};XBa=function(a,b){this.g=a;this.Yc=b};
YBa=function(a,b){b.sort(function(f,g){return f.g.tiles[0].id<g.g.tiles[0].id?-1:1});for(var c=25/b[0].g.Qf.length;b.length;){var d=b.splice(0,c),e=_.Fe(d,function(f){return f.g.tiles[0]});a.tc.load(new JG(d[0].g.Qf,e),(0,_.Na)(a.i,a,d))}};
YG=function(a,b,c){a=new WG(RBa(a,c),function(){var d={};b.get("tilt")&&!b.g&&(d.kq="o",d.zt=""+(b.get("heading")||0));var e=b.get("style");e&&(d.style=e);"roadmap"===b.get("mapTypeId")&&(d.Mx=!0);if(e=b.get("apistyle"))d.wo=e;e=b.get("authUser");null!=e&&(d.Gf=e);if(e=b.get("mapIdPaintOptions"))d.ug=e;return d});a=new XG(a);a=new _.Vz(a);return a=_.cA(a)};
$Ba=function(a,b,c,d){function e(){var r=d?0:f.get("tilt"),t=d?0:a.get("heading"),v=a.get("authUser");return new VG(g,k,b.getArray(),r,t,v,l)}var f=a.__gm,g=f.O||(f.O=new _.bh),h=new KG(d);d||(h.bindTo("tilt",f),h.bindTo("heading",a));h.bindTo("authUser",a);var k=_.ai();NBa(a,"onion",b,g,YG(_.Hk(k),h,!1),YG(_.Hk(k,!0),h,!1));var l=void 0,m=e();h=m.yd();var p=_.Kg(h);_.pB(a,p,"overlayLayer",20,{fq:function(r){function t(){m=e();r.Zw(m)}b.addListener("insert_at",t);b.addListener("remove_at",t);b.addListener("set_at",
t)},Mv:function(){_.L.trigger(m,"oniontilesloaded")}});var q=new SBa(b,_.th[15]);f.h.then(function(r){var t=new TG(b,g,q,f,p,r.bc.Kd);f.j.register(t);ZBa(t,c,a);_.Xa(["mouseover","mouseout","mousemove"],function(v){_.L.addListener(t,v,function(w){var y=VBa(c,w.layerId);if(y){var z=a.get("projection").fromPointToLatLng(w.anchorPoint),J=null;w.feature.c&&(J=JSON.parse(w.feature.c));_.L.trigger(y,v,w.feature.id,z,w.anchorOffset,J,y.layerId)}})});r.hi.Mb(function(v){v&&l!=v.rb&&(l=v.rb,m=e(),p.set(m.yd()))})})};
_.ZG=function(a){var b=a.__gm;if(!b.L){var c=b.L=new _.ph,d=new UG(c);b.i.then(function(e){$Ba(a,c,d,e)})}return b.L};_.aCa=function(a,b){b=_.ZG(b);var c=-1;b.forEach(function(d,e){d==a&&(c=e)});return 0<=c?(b.removeAt(c),!0):!1};
ZBa=function(a,b,c){var d=null;_.L.addListener(a,"click",function(e){d=window.setTimeout(function(){var f=VBa(b,e.layerId);if(f){var g=c.get("projection").fromPointToLatLng(e.anchorPoint),h=f.Cp;h?h(new _.LG(f.layerId,e.feature.id,f.parameters),(0,_.Na)(_.L.trigger,_.L,f,"click",e.feature.id,g,e.anchorOffset)):(h=null,e.feature.c&&(h=JSON.parse(e.feature.c)),_.L.trigger(f,"click",e.feature.id,g,e.anchorOffset,null,h,f.layerId))}},300)});_.L.addListener(a,"dblclick",function(){window.clearTimeout(d);
d=null})};bCa=function(a,b,c){_.Tm.call(this,a,b);this.placeId=c||null};
aH=function(a){_.Hw.call(this,a,$G);_.Zv(a,$G)||(_.Yv(a,$G,{ue:0,nw:1},["div",,1,0,[""," ",["div",,1,1,[" ",["div",576,1,2,"Dutch Cheese Cakes"]," ",["div",,,6,[" ",["div",576,1,3,"29/43-45 E Canal Rd"]," "]]," "]],""," ",["div",,1,4," transit info "]," ",["div",,,7,[" ",["a",,1,5,[" ",["span",,,," View on Google Maps "]," "]]," "]]," "]],[],cCa()),_.Zv(a,"t-DjbQQShy8a0")||(_.Yv(a,"t-DjbQQShy8a0",{ue:0},["div",,1,0,[" ",["div",,1,1,[" ",["span",576,1,2,"Central Station"]," "]]," ",["div",,1,3,[" ",
["span",576,1,4,"Central Station"]," ",["div",,1,5]," "]]," ",["div",576,1,6,[" ",["div",,,12,[" ",["img",8,1,7]," "]]," ",["div",,1,8,[" ",["div",,1,9,"Blue Mountains Line"]," ",["div",,,13]," ",["div",,1,10,[""," and ",["span",576,1,11,"5"]," more. "]]," "]]," "]]," "]],[],wBa()),_.Zv(a,"t-WxTvepIiu_w")||(_.Yv(a,"t-WxTvepIiu_w",{qf:0,line:1},["div",,1,0,[" ",["div",576,1,1,[" ",["span",,1,2,"T1"]," "]]," "]],[],xBa()),_.Zv(a,"t-LWeJzkXvAA0")||_.Yv(a,"t-LWeJzkXvAA0",{Dc:0},["span",,1,0,[["img",
8,1,1],"",["span",,1,2,["",["div",,1,3],"",["span",576,1,4,[["span",576,1,5,"U1"]]],"",["span",576,1,6,"Northern"]]],""]],[],yBa()))))};dCa=function(a){return a.vc};eCa=function(a){return a.Cd};
cCa=function(){return[["$t","t-Wtla7339NDI","$a",[7,,,,,"poi-info-window"],"$a",[7,,,,,"gm-style"]],["display",function(a){return!_.zv(a.ue,-19)}],["var",function(a){return a.vc=_.V(a.ue,"",-2)},"$dc",[dCa,!1],"$a",[7,,,,,"title"],"$a",[7,,,,,"full-width"],"$c",[,,dCa]],["for",[function(a,b){return a.Ws=b},function(a,b){return a.wy=b},function(a,b){return a.xy=b},function(a){return _.V(a.ue,[],-3)}],"var",function(a){return a.Cd=a.Ws},"$dc",[eCa,!1],"$a",[7,,,,,"address-line"],"$a",[7,,,,,"full-width"],
"$c",[,,eCa]],["display",function(a){return _.zv(a.ue,-19)},"$up",["t-DjbQQShy8a0",{ue:function(a){return a.ue}}]],["$a",[8,1,,,function(a){return _.V(a.nw,"",-1)},"href",,,1],"$a",[0,,,,"_blank","target",,1]],["$a",[7,,,,,"address",,1]],["$a",[7,,,,,"view-link",,1]]]};fCa=function(a){_.F(this,a,1)};gCa=function(a,b){"0x"==b.substr(0,2)?(a.H[0]=b,_.be(a,3)):(a.H[3]=b,_.be(a,0))};
jCa=function(a,b,c){this.h=a;this.j=b;this.o=c;this.C=hCa;this.m=new _.Ow(aH,{Lh:_.Xq.ic()});this.l=this.i=this.g=null;iCa(this);bH(this,"rightclick","smnoplacerightclick");bH(this,"mouseover","smnoplacemouseover");bH(this,"mouseout","smnoplacemouseout")};kCa=function(a){a.g&&a.g.set("map",null)};lCa=function(a){a.g||(_.vra(a.h.getDiv()),a.g=new _.Rg({tj:!0,logAsInternal:!0}),a.g.addListener("map_changed",function(){a.g.get("map")||(a.i=null)}))};
iCa=function(a){var b=null;_.L.addListener(a.j,"click",function(c,d){b=window.setTimeout(function(){_.$k(a.h,"smcf");mCa(a,c,d)},300)});_.L.addListener(a.j,"dblclick",function(){window.clearTimeout(b);b=null})};bH=function(a,b,c){a.j&&_.L.addListener(a.j,b,function(d){(d=nCa(a,d))&&d.th&&cH(a.h)&&oCa(a,c,d.th,d.ib,d.th.id)})};
mCa=function(a,b,c){cH(a.h)||lCa(a);var d=nCa(a,b);if(d&&d.th){var e=d.th.id;e&&(cH(a.h)?oCa(a,"smnoplaceclick",d.th,d.ib,e):a.C(e,_.ue(_.qe),function(f){var g=b.anchorOffset,h=a.h.get("projection").fromPointToLatLng(d.ib),k=_.H(f,27);if(h&&c.domEvent){var l=new bCa(h,c.domEvent,k);_.L.trigger(a.h,"click",l)}l&&l.domEvent&&_.tk(l.domEvent)||(a.l=g||_.Fj,a.i=f,pCa(a))}))}};nCa=function(a,b){var c=!_.th[35];return a.o?a.o(b,c):b};
pCa=function(a){if(a.i){var b="",c=a.h.get("mapUrl");c&&(b=c,(c=_.H(new qG(a.i.H[0]),3))&&(b+="&cid="+c));c=new fCa;c.H[0]=b;var d=(new qG(a.i.H[0])).getLocation();a.m.update([a.i,c],function(){a.g.setPosition(new _.bf(_.ae(d,0),_.ae(d,1)));a.l&&a.g.setOptions({pixelOffset:a.l});a.g.get("map")||(a.g.setContent(a.m.Ea),a.g.open(a.h))})}};
oCa=function(a,b,c,d,e){d=a.h.get("projection").fromPointToLatLng(d);_.L.trigger(a.h,b,{featureId:e,latLng:d,queryString:c.query,aliasId:c.aliasId,tripIndex:c.tripIndex,adRef:c.adRef,featureIdFormat:c.featureIdFormat,incidentMetadata:c.incidentMetadata,hotelMetadata:c.hotelMetadata})};cH=function(a){return _.th[18]&&(a.get("disableSIW")||a.get("disableSIWAndPDR"))};
hCa=function(a,b,c){var d=new qBa,e=new sG(_.I(d,1));e.H[0]=_.ke(b);e.H[1]=_.le(b);d.H[5]=1;gCa(new qG(_.I(new oBa(_.I(d,0)),0)),a);a=_.Zd(b,15)?"http://maps.google.cn":_.Zq;d="pb="+rBa(d);_.pq(_.dj,a+"/maps/api/js/jsonp/ApplicationService.GetEntityDetails",_.pi,d,function(f){f=new FG(f);_.ck(f,1)&&c(new EG(f.H[1]))})};qCa=function(a){for(var b=""+a.getType(),c=0,d=_.je(a,1);c<d;++c)b+="|"+_.Ds(a,c).getKey()+":"+_.H(_.Ds(a,c),1);return encodeURIComponent(b)};
sCa=function(a,b,c){function d(){_.Vh(r)}this.g=a;this.i=b;this.j=c;var e=new _.bh,f=new _.Hn(e),g=a.__gm,h=new KG;h.bindTo("authUser",g);h.bindTo("tilt",g);h.bindTo("heading",a);h.bindTo("style",g);h.bindTo("apistyle",g);h.bindTo("mapTypeId",a);_.Un(h,"mapIdPaintOptions",g.ug);var k=_.Hk(_.ai()),l=!(new _.nm(k[0])).g;h=YG(k,h,l);var m=null,p=new _.Ln(f,m||void 0),q=_.Kg(p),r=new _.Rh(this.m,0,this);d();_.L.addListener(a,"clickableicons_changed",d);_.L.addListener(g,"apistyle_changed",d);_.L.addListener(g,
"authuser_changed",d);_.L.addListener(g,"basemaptype_changed",d);_.L.addListener(g,"style_changed",d);g.g.addListener(d);b.Yd().addListener(d);NBa(this.g,"smartmaps",c,e,h,null,function(w,y){w=c.getAt(c.getLength()-1);if(y==w)for(;1<c.getLength();)c.removeAt(0)});var t=new SBa(c,!1);this.h=this.l=null;var v=this;a.__gm.h.then(function(w){var y=v.l=new TG(c,e,t,g,q,w.bc.Kd);y.zIndex=0;a.__gm.j.register(y);v.h=new jCa(a,y,rCa);w.hi.Mb(function(z){z&&!z.rb.equals(m)&&(m=z.rb,p=new _.Ln(f,m),q.set(p),
d())})});_.pB(a,q,"mapPane",0)};
rCa=function(a,b){var c=a.anchorPoint;a=a.feature;var d="",e=!1;if(a.c){var f=JSON.parse(a.c);var g=f[31581606]&&f[31581606].entity&&f[31581606].entity.query||f[1]&&f[1].title||"";var h=document;d=_.kb(g,"&")?_.yla(g,h):g;h=f[15]&&f[15].alias_id;var k=f[16]&&f[16].trip_index;g=f[29974456]&&f[29974456].ad_ref;var l=f[31581606]&&f[31581606].entity&&f[31581606].entity.feature_id_format;var m=f[43538507];var p=f[1]&&f[1].hotel_data;e=f[1]&&f[1].is_transit_station;var q=f[17]&&f[17].omnimaps_data;f=f[28927125]&&
f[28927125].directions_request}return{ib:c,th:-1==a.id.indexOf("dti-")||b?{id:a.id,query:d,aliasId:h,anchor:a.a,adRef:g,tripIndex:k,featureIdFormat:l,incidentMetadata:m,hotelMetadata:p,Up:e,ez:q,Et:f}:null}};dH=function(){};_.eH=function(a){_.F(this,a,2)};var vG;_.D(qG,_.E);qG.prototype.getQuery=function(){return _.H(this,1)};qG.prototype.setQuery=function(a){this.H[1]=a};qG.prototype.getLocation=function(){return new _.ql(this.H[2])};var uG;_.D(oBa,_.E);var BG;var rG;var xG;var CG;var AG;var zG;var yG;var wG;_.D(sG,_.E);sG.prototype.wh=function(){return _.H(this,2)};var DG;var tG;_.D(qBa,_.E);_.D(EG,_.E);EG.prototype.getTitle=function(){return _.H(this,1)};EG.prototype.setTitle=function(a){this.H[1]=a};EG.prototype.m=function(){return _.je(this,16)};_.D(FG,_.E);FG.prototype.getStatus=function(){return _.$d(this,0,-1)};FG.prototype.fb=function(){return new _.Et(this.H[4])};FG.prototype.jd=function(a){this.H[4]=a.H};var zBa=["t","u","v","w"],IG=[];var DBa=/\*./g,CBa=/[^*](\*\*)*\|/;JG.prototype.toString=function(){var a=_.Fe(this.tiles,function(b){return b.pov?b.id+","+b.pov.toString():b.id}).join(";");return this.Qf.join(";")+"|"+a};_.n=GBa.prototype;_.n.Kv=function(a){a.g=ABa(a.xb,a.zoom);if(null!=a.g){a.id=a.g+(a.h||"");var b=this;b.h.forEach(function(c){HBa(b,c,a)})}};_.n.cw=function(a){MBa(this,a);a.data.forEach(function(b){KBa(b.Ch,a,b)})};_.n.Jv=function(a){IBa(this,this.h.getAt(a))};_.n.bw=function(a,b){LBa(this,b)};_.n.fw=function(a,b){LBa(this,b);IBa(this,this.h.getAt(a))};_.D(KG,_.M);_.LG.prototype.toString=function(){return this.layerId+"|"+this.g};MG.prototype.get=function(a,b,c){return this.g.get(a,b,c)};MG.prototype.ye=function(){return this.g.ye()};NG.prototype.get=function(a,b,c){c=c||[];var d=this.h,e=this.i,f=this.j;f.x=a;f.y=b;a=0;for(b=d.length;a<b;++a){var g=d[a],h=g.a,k=g.bb;if(h&&k)for(var l=0,m=k.length/4;l<m;++l){var p=4*l;e.h=h[0]+k[p];e.xa=h[1]+k[p+1];e.g=h[0]+k[p+2]+1;e.Ca=h[1]+k[p+3]+1;if(e.h<=f.x&&f.x<e.g&&e.xa<=f.y&&f.y<e.Ca){c.push(g);break}}}return c};NG.prototype.ye=function(){return this.g};OG.prototype.get=function(a,b,c){c=c||[];for(var d=0,e=this.g.length;d<e;d++)this.g[d].get(a,b,c);return c};OG.prototype.ye=function(){for(var a=null,b=_.A(this.g),c=b.next();!c.done;c=b.next())c=c.value.ye(),a?c&&_.ec(a,c):c&&(a=_.Is(c));return a};_.n=QG.prototype;_.n.oc=0;_.n.qh=0;_.n.Kf={};_.n.get=function(a,b,c){c=c||[];a=Math.round(a);b=Math.round(b);if(0>a||a>=this.l||0>b||b>=this.h)return c;var d=b==this.h-1?this.g.length:SG(this,5+3*(b+1));this.oc=SG(this,5+3*b);this.qh=0;for(this[8]();this.qh<=a&&this.oc<d;)this[RG(this,this.oc++)]();for(var e in this.Kf)c.push(this.j[this.Kf[e]]);return c};_.n.ye=function(){return this.i};QG.prototype[1]=function(){++this.qh};QG.prototype[2]=function(){this.qh+=RG(this,this.oc);++this.oc};
QG.prototype[3]=function(){this.qh+=PG(this,this.oc);this.oc+=2};QG.prototype[5]=function(){var a=RG(this,this.oc);this.Kf[a]=a;++this.oc};QG.prototype[6]=function(){var a=PG(this,this.oc);this.Kf[a]=a;this.oc+=2};QG.prototype[7]=function(){var a=SG(this,this.oc);this.Kf[a]=a;this.oc+=3};QG.prototype[8]=function(){for(var a in this.Kf)delete this.Kf[a]};QG.prototype[9]=function(){delete this.Kf[RG(this,this.oc)];++this.oc};QG.prototype[10]=function(){delete this.Kf[PG(this,this.oc)];this.oc+=2};
QG.prototype[11]=function(){delete this.Kf[SG(this,this.oc)];this.oc+=3};var QBa={t:0,u:1,v:2,w:3};var tCa=[new _.N(-5,0),new _.N(0,-5),new _.N(5,0),new _.N(0,5),new _.N(-5,-5),new _.N(-5,5),new _.N(5,-5),new _.N(5,5),new _.N(-10,0),new _.N(0,-10),new _.N(10,0),new _.N(0,10)],uCa=[new _.N(0,0)];TG.prototype.h=function(a){return"dragstart"!=a&&"drag"!=a&&"dragend"!=a};
TG.prototype.i=function(a,b){return(b?tCa:uCa).some(function(c){c=_.oB(this.o,a.ib,c);if(!c)return!1;var d=c.Qi.Ba,e=new _.N(256*c.mi.ra,256*c.mi.ta),f=new _.N(256*c.Qi.ra,256*c.Qi.ta),g=UBa(c.Jc.data,e),h=!1;this.m.forEach(function(k){g[k.jf()]&&(h=!0)});if(!h)return!1;c=TBa(this.C,g,f,e,d);if(!c)return!1;this.j=c;return!0},this)?this.j.feature:null};
TG.prototype.handleEvent=function(a,b){if("click"==a||"dblclick"==a||"rightclick"==a||"mouseover"==a||this.g&&"mousemove"==a){var c=this.j;if("mouseover"==a||"mousemove"==a)this.l.set("cursor","pointer"),this.g=c}else if("mouseout"==a)c=this.g,this.l.set("cursor",""),this.g=null;else return;"click"==a?_.L.trigger(this,a,c,b):_.L.trigger(this,a,c)};TG.prototype.zIndex=20;UG.prototype.h=function(a){a=this.j.getAt(a);var b=a.jf();this.g[b]||(this.g[b]=[]);this.g[b].push(a)};UG.prototype.i=function(a,b){a=b.jf();this.g[a]&&_.us(this.g[a],b)};UG.prototype.l=function(a,b){this.i(a,b);this.h(a)};_.B(VG,_.Ji);VG.prototype.yd=function(){return this.g};VG.prototype.maxZoom=25;WBa.prototype.Od=function(a,b){var c=this.h,d={xb:new _.N(a.ra,a.ta),zoom:a.Ba,data:new _.bh,h:_.La(this)};a=this.g.Od(a,{fd:function(){c.remove(d);b&&b.fd&&b.fd()}});d.Ea=a.hb();_.ch(c,d);return a};WG.prototype.cancel=function(){};
WG.prototype.load=function(a,b){var c=new _.mq;_.nq(c,_.ke(_.ue(_.qe)),_.le(_.ue(_.qe)));_.Iha(c,3);_.Xa(a.Qf||[],function(g){g.mapTypeId&&g.zp&&_.Jha(c,g.mapTypeId,g.zp,_.ae(_.te(),15))});_.Xa(a.Qf||[],function(g){_.ama(g.mapTypeId)||c.Za(g)});var d=this.h(),e=_.Ys(d.zt);var f="o"==d.kq?_.wq(e):_.wq();_.Xa(a.tiles||[],function(g){(g=f({ra:g.xb.x,ta:g.xb.y,Ba:g.zoom}))&&c.cg(g)});d.Mx&&_.Xa(a.Qf||[],function(g){g.rl&&_.oq(c,g.rl)});_.Xa(d.style||[],function(g){_.oq(c,g)});d.wo&&_.Gp(d.wo,_.fm(_.kq(c.g)));
"o"==d.kq&&_.Kha(c,e);d.ug&&_.Lha(c,d.ug);a="pb="+encodeURIComponent(_.jq(c.g)).replace(/%20/g,"+");null!=d.Gf&&(a+="&authuser="+d.Gf);this.g(a,b);return""};XG.prototype.load=function(a,b){this.g||(this.g={},_.Wk((0,_.Na)(this.j,this)));var c=a.tiles[0];c=c.zoom+","+c.pov+"|"+a.Qf.join(";");this.g[c]||(this.g[c]=[]);this.g[c].push(new XBa(a,b));return""+ ++this.h};XG.prototype.cancel=function(){};XG.prototype.j=function(){var a=this.g,b;for(b in a)YBa(this,a[b]);this.g=null};XG.prototype.i=function(a,b){for(var c=0;c<a.length;++c)a[c].Yc(b)};_.D(bCa,_.Tm);_.D(aH,_.Kw);aH.prototype.fill=function(a,b){_.Iw(this,0,_.yv(a));_.Iw(this,1,_.yv(b))};var $G="t-Wtla7339NDI";_.D(fCa,_.E);sCa.prototype.m=function(){var a=new _.el,b=this.j,c=this.g.__gm,d=c.get("baseMapType"),e=d&&d.Ni;if(e&&0!=this.g.getClickableIcons()){var f=c.get("zoom");if(f=this.i.vm(f?Math.round(f):f)){a.layerId=e.replace(/([mhr]@)\d+/,"$1"+f);a.mapTypeId=d.mapTypeId;a.zp=f;var g=a.gj=a.gj||[];c.g.get().forEach(function(h){g.push(h)});d=c.get("apistyle")||"";e=c.get("style")||[];a.parameters.salt=(0,_.dj)(d+"+"+_.Fe(e,qCa).join(",")+c.get("authUser"));c=b.getAt(b.getLength()-1);if(!c||c.toString()!=a.toString()){c&&
(c.freeze=!0);c=0;for(d=b.getLength();c<d;++c)if(e=b.getAt(c),e.toString()==a.toString()){b.removeAt(c);e.freeze=!1;a=e;break}b.push(a)}}}else b.clear(),this.h&&kCa(this.h),0==this.g.getClickableIcons()&&_.O(this.g,"smd")};dH.prototype.h=function(a,b){var c=new _.ph;new sCa(a,b,c)};dH.prototype.g=function(a,b){new jCa(a,b,null)};_.rf("onion",new dH);_.D(_.eH,_.E);_.eH.prototype.getKey=function(){return _.H(this,0)};});