text: /**
   * Copyright (c) 2014, 2016, Oracle and/or its affiliates.
   * The Universal Permissive License (UPL), Version 1.0
   */
  "use strict";
  define(['./DvtToolkit', './DvtPanZoomCanvas'], function(dvt) {
    // Internal use only.  All APIs and functionality are subject to change at any time.
  
  var l=void 0,p=!0,s=null,t=!1;function aa(){return function(a){return a}}function B(){return function(){}}function C(a){return function(b){this[a]=b}}function Q(a){return function(){return this[a]}}function R(a){return function(){return a}}var S;function ba(a,b){0==a.indexOf("dvt.")&&(a=a.substring(4));var c=a.split("."),d=eval("dvt");!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&b!==l?d[e]=b:d=d[e]?d[e]:d[e]={}}Math.floor(2147483648*Math.random()).toString(36);
  dvt.Hm=function(a,b,c){this.Init(a,b,c)};ba("dvt.AmxThematicMap",dvt.Hm);dvt.j.u(dvt.Hm,dvt.ca);dvt.Hm.iI=10;dvt.Hm.prototype.Init=function(a,b,c){dvt.Hm.q.Init.call(this,a);this.Fa=new dvt.md(a,b,c);this.V9=new dvt.ca(a);this.V9.k(this.Fa);this.k(this.V9);this.Bh=new lq};dvt.Hm.newInstance=function(a,b,c){return new dvt.Hm(a,b,c)};dvt.Hm.newInstance=dvt.Hm.newInstance;
  dvt.Hm.prototype.va=function(a,b,c){this.T=this.Bh.an(a);this.vb=b;this.Hb=c;b=new dvt.U(0,0,b,c);this.BJ(this,b);this.Fa.va(a,b.a,b.b)};dvt.Hm.prototype.render=dvt.Hm.prototype.va;
  dvt.Hm.prototype.BJ=function(a,b){this.Yc&&(a.removeChild(this.Yc),this.Yc=s);var c=new dvt.U(dvt.Hm.iI,dvt.Hm.iI,b.a-2*dvt.Hm.iI,b.b-2*dvt.Hm.iI),d=this.T,e=d.legend.rendered,f=d.legend.scrolling,h=dvt.Dc.Ca(d.legend);this.Cha(this.T,h);var k=h.sections;if(e&&!(k&&0==k.length)&&(e=d.legend.position,delete h.position,h.layout.gapRatio=mq(this),h.hideAndShowBehavior="none",h.rolloverBehavior="none",h.scrolling=d.legend.scrolling,k=dvt.nf.newInstance(this.Fa.g()),a.k(k),"auto"==e&&"asNeeded"!==f?e=
  "bottom":"auto"==e&&"asNeeded"==f&&(e="end"),f=dvt.o.$(a.g()),"start"==e?e=f?"right":"left":"end"==e&&(e=f?"left":"right"),h.orientation="left"==e||"right"==e?"vertical":"horizontal",f="top"==e||"bottom"==e,f=k.cs(h,f?c.a:d.layout.legendMaxSize*c.a,f?d.layout.legendMaxSize*c.b:c.b),0<f.a&&0<f.b))switch(k.va(h,f.a,f.b),this.Yc=k,d=Math.ceil(d.layout.legendGap*mq(this)),dvt.Tn.position(c,e,k,f.a,f.b,d),e){case "top":this.V9.ma(f.b+dvt.Hm.iI);case "bottom":b.b-=f.b+dvt.Hm.iI;break;case "left":this.V9.Z(f.a+
  dvt.Hm.iI);case "right":b.a-=f.a+dvt.Hm.iI}};function mq(a){if(a.T.layout.gapRatio!==s&&!isNaN(a.T.layout.gapRatio))return a.T.layout.gapRatio;var b=Math.min(a.vb/400,1);a=Math.min(a.Hb/300,1);return Math.min(b,a)}dvt.Hm.prototype.Cha=function(a,b){b.title=a.legend?a.legend.title:s;b.sections=[];if(a&&a.legend&&a.legend.sections)for(var c=0;c<a.legend.sections.length;c++){var d=a.legend.sections[c];d&&b.sections.push({title:d.title,items:d.items,sections:d.sections})}return b};
  dvt.md=function(a,b,c){this.Init(a,b,c)};ba("dvt.ThematicMap",dvt.md);dvt.j.u(dvt.md,dvt.fc);dvt.md.wYa=1;dvt.md.xYa=2;dvt.md.Yza=3;dvt.md.yYa=4;dvt.md.Zza=5;dvt.md.$za=6;dvt.md.Qga=7;dvt.md.tXa=5;dvt.md.llb="controlPanelResources";dvt.md.mlb="legendResources";dvt.md.nlb="panelDrawerResources";dvt.md.klb="resources";dvt.md.ZRa=6;
  dvt.md.prototype.Init=function(a,b,c){dvt.md.q.Init.call(this,a,b,c);nq(this);this.Vh=[];this.zF=[];this.Z5a=this.YC=this.Ie=this.Yc=s;this.Sha=t;this.xY=[];this.YY={};this.T8=t;this.Z6={};this.Dia={};this.Zs=[];this.Oha=new dvt.ca(this.g());this.jY=new dvt.ca(this.g());this.xF=new dvt.ca(this.g());this.WC=new dvt.ca(this.g());this.YS=this.nO=this.Xka=t;this.h8=dvt.md.ZRa;this.NF=p;this.mT={};this.V5=t;this.Je=s;this.dE(dvt.ha.fL);this.Bh=new lq;this.nc.jb(this,this);this.Dg=t};
  dvt.md.newInstance=function(a,b,c){return new dvt.md(a,b,c)};dvt.md.newInstance=dvt.md.newInstance;S=dvt.md.prototype;S.Mf=function(a){dvt.md.q.Mf.call(this,a);dvt.o.$i()||(this.T.animationOnDisplay="none",this.T.animationOnMapChange="none",this.T.animationOnDrill="none");(new oq(this)).parse(this.T)};S.Ua=Q("nc");function pq(a,b){for(var c=0;c<a.Vh.length;c++)if(a.Vh[c].Fk==b)return a.Vh[c]}S.DB=function(a){this.XE=parseFloat(a)};S.mb=Q("XE");
  S.dca=function(a){a=parseInt(a);var b=this.CM;if(a==dvt.md.wYa||a==dvt.md.Yza||a==dvt.md.Zza||a==dvt.md.Qga)b&=~dvt.ha.hu,this.YS=t;if(a==dvt.md.xYa||a==dvt.md.Yza||a==dvt.md.$za||a==dvt.md.Qga)b&=~dvt.ha.gL,this.nO=t;if(a==dvt.md.yYa||a==dvt.md.Zza||a==dvt.md.$za||a==dvt.md.Qga)b&=~dvt.ha.hL;this.dE(b)};S.Ssa=function(a){this.Eq=a;this.nc.Ssa(a)};
  S.AQ=function(){dvt.md.q.AQ.call(this);!this.Su&&this.C7a&&(this.Vh=[],this.xY=[],this.YY={},this.Z6={},this.Dia={},this.Zs=[],this.removeChild(this.Ie),this.Z5a=this.YC=this.Yc=this.Ie=s,this.dE(dvt.ha.fL),this.YS=this.nO=p,this.SS=this.ed,this.Oha=new dvt.ca(this.g()),this.jY=new dvt.ca(this.g()),this.xF=new dvt.ca(this.g()),this.WC=new dvt.ca(this.g()),this.Je=s,this.nc.bl(this),nq(this),this.V5=t,this.nc.je(),this.nc.jb(this,this))};
  function nq(a){a.nc=new qq(a.g(),a.dispatchEvent,a);a.nc.Gg(a);dvt.o.Ta()?a.eJ=s:(a.eJ=new rq(a,a.nc),a.nc.ss(a.eJ))}S.mTa=function(a){dvt.o.$(this.g())||(a=this.getWidth()-5-a.getWidth(),this.Ie.Z(a))};
  S.BJ=function(){if(this.YC){this.Ie&&(this.Ie.qa(),this.removeChild(this.Ie));var a="true"==this.YC.disclosed,b="fixed"==this.YC.display||dvt.o.Ot();if(!b||a){var c=this.YC.maxWidth,d=c.indexOf("%"),c=-1!=d?parseFloat(c.substring(0,d))/100*this.getWidth():parseFloat(c),d=this.getHeight()-2*dvt.md.tXa;this.Xd==dvt.e.vf?(this.Ie=new dvt.Y(this.g(),s,this,"pd"),this.Ie.Va(dvt.tr.ue,this.Wva,t,this),this.Ie.vz(c),this.Ie.f2(d),this.Ie.mib(b),dvt.o.$(this.g())?(this.Ie.bca(),this.Ie.Z(0)):this.Ie.Z(this.getWidth())):
  (this.Ie=new dvt.zc(this.g(),c,d,dvt.zc.UV,this.ac(),this.Yw(),a,b),this.Ie.Va(dvt.Cz.ue,this.Wva,t,this),this.Ie.Va(dvt.Om.PH,this.mTa,t,this),this.Ie.Zhb(this.YC.expandTooltip,this.YC.collapseTooltip));c=this.YC;this.Yc=dvt.nf.newInstance(this.g(),this.psa,this);this.k(this.Ie);this.k(this.Yc);d=this.Yc.cs(c,this.Ie.T0(),this.Ie.tU());this.Yc.va(c,d.a,d.b);var e;if(this.Xd==dvt.e.vf){this.Ie.jca(this.Yc.cB().b);this.removeChild(this.Yc);var c=new dvt.yb(this.g(),this.ac()[dvt.Y.uxa],0,0,dvt.Y.gh,
  dvt.Y.gh),d=new dvt.yb(this.g(),this.ac()[dvt.Y.vxa],0,0,dvt.Y.gh,dvt.Y.gh),f=new dvt.yb(this.g(),this.ac()[dvt.Y.txa],0,0,dvt.Y.gh,dvt.Y.gh),h=dvt.D.na(dvt.D.Ka,"LEGEND");this.Ie.VT(this.Yc,c,d,f,h,dvt.Y.QW);this.Ie.Av();a&&this.Ie.Nh(p,p)}else this.Ie.h$a(this.Yc),e=this.Ie.V(),a=dvt.o.$(this.g())?5:this.getWidth()-5-e.a-e.x,this.Ie.Ga(a,5),e.a+=5;if(this.DFa=b)e||(e=this.Ie.V()),this.Dla=e.a,this.ed.$t(this.getWidth()-this.Dla,this.getHeight(),p)}}};
  S.Nm=function(){dvt.md.q.Nm.call(this);var a=new dvt.ca(this.g()),b=new dvt.ca(this.g());this.ed=this.Ma;this.ed.k(a);this.ed.Ja.k(b);this.Ym(a,b);if(this.po){(this.He=this.ed.He)&&this.ed.k(this.He);this.tD();b=new dvt.U(0,0,this.getWidth(),this.getHeight());if(!this.Dg&&!this.SS)dvt.hc.isSupported(this.kBa)&&(this.Rb=dvt.hc.LD(this.g(),this.kBa,this.ed,b,this.XE));else{var c=s;this.Sha&&!this.Su?c=this.r0a:this.po&&this.po.Fk!=this.B6a&&(c=this.po.lv());dvt.hc.isSupported(c)&&(this.Rb=dvt.hc.VJ(this.g(),
  c,this.SS,this.ed,b,this.XE))&&this.k(this.SS)}this.Rb?(this.He&&this.k(this.He),this.nc.je(),this.nc.bl(this),this.V5=p,this.Rb.Tf(this.Rv,this),this.Rb.play()):this.Rv();this.C7a=a;this.po&&(this.B6a=this.po.Fk);this.g().NK([this]);this.Dg=p}};
  S.Ym=function(a,b){this.BJ();b.k(this.Oha);b.k(this.jY);this.NF?a.k(this.xF):b.k(this.xF);a.k(this.WC);var c=this.ed.Ja.lb();this.Boa=t;for(var d=0;d<this.Vh.length;d++){var e=this.Vh[d];if(!this.Boa&&e instanceof sq||!(e instanceof sq))e.va(c),!this.Boa&&e instanceof sq&&(this.Boa=p,this.po=e)}this.po&&(c=this.po.vS,this.vS!=c&&(this.vS=c,this.Wka=this.sFa=this.rFa=s),this.eJ&&(c=tq(this),0==c.length&&(c=uq(this)),(c=c[0])&&qq.q.kx.call(this.nc,c)),this.ed.HB(s),this.ed.wz(s),this.ed.JV(p),this.ed.xz(p),
  !this.Sha&&!this.Su&&this.Wka!=s?(this.ed.us(this.Wka),this.ed.zB(this.rFa,this.sFa)):this.ed.vs(s,this.po.NO()),vq(this),wq(this),this.ed.JV(this.nO),this.ed.xz(this.YS))};S.ujb=function(a,b,c){this.Dg=t;this.tD();xq(new oq(this),[a],pq(this,b),this.po.Fk,c);this.BJ();this.Dg=p;this.eJ&&(a=tq(this),0==a.length&&(a=uq(this)),(a=a[0])&&qq.q.kx.call(this.nc,a));this.g().NK([this]);wq(this)};dvt.md.prototype.updateLayer=dvt.md.prototype.ujb;
  function wq(a){var b;b=a.ed.Nw;var c=a.po.NO(),d=a.ed.gf();b=Math.min((d.a-2*b)/c.a,(d.b-2*b)/c.b);a.ed.HB(b);a.ed.wz(b*(a.nO?a.h8:1))}function yq(a){a.po.vS&&a.ed.vs(s,a.po.NO());vq(a);a.Xka&&zq(a)}S=dvt.md.prototype;S.ata=C("vna");function Aq(a,b){var c=new dvt.Qb;c.translate(b.Yd,b.Ud);a.NF&&a.xF.rb(c);a.WC.rb(c)}S.Wva=function(a){a=dvt.Wa.ul(dvt.fc.Pwa,a.dn()==dvt.Cz.WH);this.dispatchEvent(a)};
  function Bq(a,b,c){if(b=b.ea){var d=a.ed.Ja,e=b.Zf(d,d.lb);c&&(a.TCa=d.lb(),b.J(dvt.B.Li,a,a.x3a,a.Z8a,e));c=new dvt.Qb(1,0,0,1,e.Yd,e.Ud);a.NF&&b.J(dvt.B.Li,a.xF,a.xF.lb,a.xF.rb,c);b.J(dvt.B.Li,a.WC,a.WC.lb,a.WC.rb,c)}}
  S.ak=function(a){switch(a.dn()){case dvt.od.o4:if(this.YS){var b=a.CA;a=this.ed.Nw;var c=this.ed.gf();a=new dvt.U(a,a,c.a-2*a,c.b-2*a);var d=this.po.NO(),e=d.x*b,c=d.y*b,f=d.a*b,b=d.b*b,d=0;f>a.a?(this.DFa&&dvt.o.$(this.g())&&(d=this.Dla),this.ed.BV(a.x+a.a+d-(e+f)),this.ed.zV(a.x-e+d)):(this.DFa&&dvt.o.$(this.g())&&(d=2*this.Dla),e=(a.x+a.a+d)/2-(e+f/2),this.ed.BV(e),this.ed.zV(e));b>a.b?(this.ed.CV(a.y+a.b-(c+b)),this.ed.AV(a.y-c)):(a=(a.y+a.b)/2-(c+b/2),this.ed.CV(a),this.ed.AV(a))}break;case dvt.od.q4:case dvt.od.bX:Bq(this,
  a,p);break;case dvt.od.XH:b=a.CA;if(b!=s){c=this.ed.Ja.lb();a.ea=s;this.dispatchEvent(dvt.Wa.Rra(c.Yd,c.Ud,b));Aq(this,c);for(b=0;b<this.Vh.length;b++)this.Vh[b].ak(a,c)}break;case dvt.od.Yfa:Cq(this);break;case dvt.od.s4:this.dispatchEvent(dvt.Wa.Rra())}};
  S.XB=function(a){var b=a.dn();if(b==dvt.Ug.bX)Bq(this,a,t);else if(b==dvt.Ug.Ufa&&a.$Ga!=s){var c=this.ed.Ja.lb();a.ea=s;this.dispatchEvent(dvt.Wa.Rra(c.Yd,c.Ud,this.ed.Ef()));Aq(this,c);for(a=0;a<this.Vh.length;a++)this.Vh[a].XB(c)}this.Ie&&(this.Xd==dvt.e.vf?b===dvt.Ug.UH?this.Ie.bb(t):b===dvt.Ug.VH&&this.Ie.bb(p):(c=this.Yw(),a=this.Ie.Mb.Ad().Ca(),b===dvt.Ug.UH?(this.Yc.P(c[dvt.ha.Jta]),a.P(c[dvt.ha.Mda]),this.Ie.Mb.xa(a),this.Ie.nm&&this.Ie.nm.P(c[dvt.ha.Mda]),this.Ie.bb(t)):b===dvt.Ug.VH&&(this.Yc.P(1),
  a.P(c[dvt.ha.Bx]),this.Ie.Mb.xa(a),this.Ie.nm&&this.Ie.nm.P(c[dvt.ha.Bx]),this.Ie.bb(p))))};S.yH=function(){return"none"==this.Eq&&!this.nO&&(!this.YS||this.Xd==dvt.e.vf)?dvt.fc.oE:dvt.md.q.yH.call(this)};S.p3=function(){var a=this.yH();return a!=dvt.fc.oE?new Dq(this.g(),this,a==dvt.fc.mH?dvt.ha.OL:dvt.ha.TH):s};function vq(a){a.T8=p;for(var b=0;b<a.Vh.length;b++){var c=a.Vh[b].Fk;c in a.YY&&(a.mT[c]=a.YY[c][1],a.Lp=c,a.BC=a.YY[c][0],a.G$())}a.T8=t}
  S.Dsa=function(){this.tD();for(var a=[],b=[],c=this.Vh.length-1;-1<c;c--)this.Vh[c].Fk==this.po.Fk?this.Vh[c].reset(b):this.Vh[c].reset(a);for(c=0;c<a.length;c++)if(a[c]){var d=a[c].getParent();d&&d.removeChild(a[c])}for(c=0;c<b.length;c++)b[c]&&b[c].P(1);this.xY=[];a=new dvt.B(this.g(),0.3);this.ed.vs(a);a.play();this.Zs=[];this.He&&"none"!=this.Eq&&(Eq(this.He,t),Fq(this.He,t))};
  function zq(a){var b=a.jY.V(),c=a.xF.V();if(a.NF){var d=a.ed.Ja.lb();c.a/=d.xf;c.b/=d.Oi;c.x/=d.xf;c.y/=d.Oi}b=b.Hj(c);a.tD();var e;a.ed.fA||(e=a.ed.ND(),a.ed.wz(e*a.h8));var f;dvt.o.$i()&&(f=new dvt.B(a.g(),0.3));0<b.a&&0<b.b?a.ed.vs(f,b):a.ed.vs(f,a.po.NO());f&&f.play();e&&a.ed.wz(e)}S.RT=function(a){var b=new dvt.B(this.g(),0.3);this.ed.vs(b,a);b.play()};
  function Cq(a){if(a.BC){var b=pq(a,a.Lp).pl(a.BC);if(b&&(b=b.Zc)){for(var b=b.getSelection(),c=0;c<b.length;c++)b[c]=b[c].Pa();if(0<b.length){for(var d=b[0].V(),c=1;c<b.length;c++)d=d.Hj(b[c].V());a.RT(d)}}}}function Gq(a,b){var c=Hq.Pdb(a.yn,b);return pq(a,c)}function Iq(a,b){var c=Hq.gMa(a.yn,b);return pq(a,c)}function tq(a){var b=[];if(a.po)for(var c=0;c<a.Vh.length;c++){var d=a.Vh[c].Im,e;for(e in d)b=a.po.Fk==a.Vh[c].Fk?b.concat(Jq(d[e])):b.concat(Kq(d[e]))}return b}
  function uq(a){var b=[];if(a.po)for(var c=0;c<a.Vh.length;c++){var d=a.Vh[c].Im;if(a.po.Fk==a.Vh[c].Fk||!(a.Vh[c]instanceof sq))for(var e in d)b=b.concat(d[e].vn)}return b}S.Z8a=function(a){this.TCa=a;if(this.NF){for(var b=uq(this),c=0;c<b.length;c++)b[c].ak(a);b=this.WC.Gb();for(c=0;c<b;c++)for(var d=this.WC.Za(c),e=d.Gb(),f=0;f<e;f++){var h=d.Za(f);h instanceof Lq&&h.update(a)}}};S.x3a=Q("TCa");
  S.G$=function(){this.tD();var a=Iq(this,this.Lp),b=pq(this,this.Lp),c=[];if(a){this.Z6[this.Lp]=this.BC;for(var d=this.mT[this.Lp],e=[],f=0;f<d.length;f++){var h;a:{h=b.pl(this.BC).Be;for(var k=0;k<h.length;k++)if(h[k].Gn()===d[f]){h=h[k];break a}h=s}h.sB()||e.push(d[f])}!this.T8&&"single"==this.Eq&&(this.Zs.pop(),b.reset(c,d),a.reset(this.zF));d=[];for(f=0;f<e.length;f++){h=e[f];k=Mq(b,h);d.push(k[0]);for(var m=0;m<k.length;m++)this.Dia[k[m]]=h;a.opa(k,c);if(k=b.pl(this.BC)){for(var m=h,n=this.zF,
  q=0;q<k.Be.length;q++)if(k.Be[q].Gn()==m){k.Be[q].qV(p);k.Zs.push(m);n.push(k.Be[q].Pa());if(q=k.Be[q].Ae())n.push(q),(q=q.Up)&&n.push(q);break}for(q=0;q<k.vn.length;q++)if(k.vn[q].Gn()==m){n.push(k.vn[q].Pa());break}}this.Zs.push(h)}Nq(this,this.zF,c,t);Ar(this,a.Fk,p);this.Lp=a.Fk;this.mT[this.Lp]=d}};
  S.qpa=function(){this.tD();for(var a=pq(this,this.Lp),b=Gq(this,this.Lp),c=[],d=[],e=this.mT[this.Lp],f=0;f<e.length;f++){var h=this.Dia[e[f]];d.push(h);if(-1!=dvt.fa.nb(this.Zs,h)){a.t2(Mq(b,h),this.zF);for(var k=b.pl(this.Z6[b.Fk]),m=h,n=c,q=0;q<k.Be.length;q++)if(k.Be[q].Gn()==m){var r=dvt.fa.nb(k.Zs,m);k.Zs.splice(r,1);k.Be[q].qV(t);r=k.Be[q].Pa();k.Bq.k(r);n.push(r);if(q=k.Be[q].Ae())q.update(k.bT),n.push(q),n.push(q.Up);break}for(q=0;q<k.vn.length;q++)if(k.vn[q].Gn()==m){r=k.vn[q].Pa();k.FC.k(r);
  n.push(r);break}h=dvt.fa.nb(this.Zs,h);-1!=h&&this.Zs.splice(h,1)}}Nq(this,this.zF,c,p);this.Lp=b.Fk;this.BC=this.Z6[this.Lp];this.mT[this.Lp]=d;Ar(this,this.Lp)};S.tD=function(){this.Rb&&(this.Rb.stop(p),this.Rb=s)};
  function Nq(a,b,c,d){a.ed.Ja.lb();if("zoomToFit"==a.Lha&&!a.T8){var e=new dvt.B(a.g(),0.3);dvt.o.$i()||(e=s);d?a.ed.vs(e):Cq(a);e&&e.play()}a.tD();if(dvt.o.$i()&&("alphaFade"==a.Lha||"auto"==a.Lha))a.Rb=dvt.hc.VJ(a.g(),"alphaFade",b,c,s,0.5);a.Rb?(a.nc.je(),a.nc.bl(a),a.Rb.Tf(a.NUa,a),a.Rb.play()):Br(a)}
  S.dispatchEvent=function(a){var b=a.type;if("selection"==b)if(this.BC){this.Nna=a.selection;for(var b=this.mT,c=this.Lp,d=this.Nna,e=[],f=pq(this,this.Lp).pl(this.BC).Be,h=0;h<d.length;h++)for(var k=0;k<f.length;k++)if(f[k].getId()==d[h]){e.push(f[k].Gn());break}b[c]=e;Ar(this,this.Lp);a.clientId=this.BC;this.q6&&!(this.q6 instanceof dvt.La)&&(this.BKa=this.q6)}else Ar(this,s),this.BKa=s;else if(b==dvt.Ks.ue)a.Ej("clientId",this.YR),this.xY="multiple"==this.Eq?this.xY.concat(this.Nna):this.Nna,b=
  a.M2a,b==dvt.Ks.kSa&&this.qpa(),b==dvt.Ks.xda?this.G$():b==dvt.Ks.lVa&&this.Dsa(),a.Nh(this.xY);else if("adfShowPopup"==b||"adfHidePopup"==b)a.clientId=this.YR;dvt.md.q.dispatchEvent.call(this,a)};function Ar(a,b,c){if(a.He&&a.Eq&&"none"!=a.Eq){var d=Iq(a,b);b=Gq(a,b);d&&!c?Eq(a.He,p):Eq(a.He,t);b?Fq(a.He,p):Fq(a.He,t)}}S.qa=function(){dvt.md.q.qa.call(this);this.nc&&(this.nc.qa(),this.nc=s)};dvt.md.prototype.destroy=dvt.md.prototype.qa;S=dvt.md.prototype;
  S.Rv=function(){this.He&&this.ed.k(this.He);this.SS&&(this.removeChild(this.SS),this.SS=s);this.Rb=s;this.Xka&&zq(this);this.T.highlightedCategories&&0<this.T.highlightedCategories.length&&this.Le(this.T.highlightedCategories);this.V5&&(this.nc.Gg(this),this.V5=t)};S.NUa=function(){Br(this);this.Rb=s;this.nc.Gg(this)};
  function Br(a){if(0<a.zF.length){for(var b=0;b<a.zF.length;b++){var c=a.zF[b];if(c)if(c instanceof Lq)c.reset();else if(c.sB&&c.sB())c.P(0);else{var d=c.getParent();d&&d.removeChild(c)}}a.zF=[]}}S.ff=Q("Je");S.GV=C("Je");S.mi=function(){this.Wd||(this.Wd=new Cr(this));return this.Wd};dvt.md.prototype.getAutomation=dvt.md.prototype.mi;dvt.md.prototype.Jm=function(){return dvt.D.na(dvt.D.Ka,"THEMATIC_MAP")};dvt.md.prototype.psa=function(a){a.type==dvt.Om.PH&&this.Yc&&this.Yc.te(a)};
  dvt.md.prototype.Le=function(a){this.T.highlightedCategories=dvt.Dc.Ca(a);dvt.Tg.Le(a,tq(this).concat(uq(this)),"any"==this.T.highlightMatch)};dvt.md.prototype.highlight=dvt.md.prototype.Le;dvt.md.prototype.gx=function(a,b){var c=Dr(this,a);c&&c.gx(b)};dvt.md.prototype.processDefaultHoverEffect=dvt.md.prototype.gx;dvt.md.prototype.YG=function(a,b){var c=Dr(this,a);c&&c.YG(b)};dvt.md.prototype.processDefaultSelectionEffect=dvt.md.prototype.YG;dvt.md.prototype.AB=function(a,b){var c=Dr(this,a);c&&c.AB(b)};
  dvt.md.prototype.processDefaultFocusEffect=dvt.md.prototype.AB;function Dr(a,b){for(var c=0;c<a.Vh.length;c++){var d=a.Vh[c].Im,e;for(e in d)for(var f=d[e].vn,h=0;h<f.length;h++)if(f[h].getId()===b)return f[h]}return s}function lq(){this.Init({fusion:Er,alta:Fr})}dvt.j.u(lq,dvt.Ya);
  var Er={animationDuration:500,animationOnDisplay:"none",animationOnDrill:"none",animationOnMapChange:"none",controlPanelBehavior:"hidden",drilling:"none",highlightMatch:"all",hoverBehavior:"none",initialZooming:"none",markerZoomBehavior:"fixed",panning:"none",tooltipDisplay:"auto",touchResponse:"auto",visualEffects:"none",zooming:"none",styleDefaults:{skin:"alta",areaStyle:"background-color:#B8CDEC;border-color:#FFFFFF;",hoverBehaviorDelay:200,dataAreaDefaults:{borderColor:"#FFFFFF",drilledInnerColor:"#FFFFFF",
  drilledOuterColor:"#000000",hoverColor:"#FFFFFF",opacity:1,selectedInnerColor:"#FFFFFF",selectedOuterColor:"#000000"},dataMarkerDefaults:{borderColor:"#FFFFFF",borderStyle:"solid",borderWidth:0.5,color:"#000000",height:8,labelStyle:"font-family:Tahoma;font-size:13pt;color:#000000",opacity:0.4,scaleX:1,scaleY:1,shape:"circle",width:8},labelStyle:"font-family:Tahoma;font-size:11pt;"},legend:{position:"auto",rendered:p,layout:{gapRatio:1}},layout:{gapRatio:s,legendMaxSize:0.3,legendGap:10},resources:{images:{},
  translations:{}}},Fr={styleDefaults:{areaStyle:"background-color:#DDDDDD;border-color:#FFFFFF;",dataAreaDefaults:{drilledOuterColor:"#0572CE"},dataMarkerDefaults:{color:"rgb(51,51,51)",labelStyle:dvt.Ya.oq+"color:#333333",opacity:1},labelStyle:dvt.Ya.oq}},Gr={animationOnLayerChange:"none",labelDisplay:"auto",labelType:"short"},Hr={animationOnDataChange:"none",selectionMode:"none"};
  function Ir(a){for(var b=0;b<a.Vh.length;b++){var c=a.Vh[b].Im,d;for(d in c){var e=c[d].zf;if(e&&e.KI)return e}}return s}S=dvt.md.prototype;S.en=function(a,b,c){this.F2a=t;return(a=Ir(this))?a.en(c):t};S.vo=function(a,b){var c=Ir(this);return c?c.vo(a,b):s};S.Zy=function(a,b){var c=Ir(this);return c?c.Zy(a,b):s};S.Dt=function(a,b){var c=Ir(this);return c?c.Dt(a,b):s};S.eB=function(a,b){var c=Ir(this);return c?c.eB(a,b):s};S.lB=function(a,b){var c=Ir(this);return c?c.lB(a,b):s};
  S.rB=function(){var a=Ir(this);a&&a.rB()};S.Pw=function(){var a=Ir(this);a&&a.Pw();this.Ma.wPa()};S.Tr=function(a,b,c){var d=this.ed.Ef();a=(a-this.ed.Kt())/d;b=(b-this.ed.Lt())/d;a:{for(var d=a,e=b,f=0;f<this.Vh.length;f++)if(this.Vh[f].xcb){var h=this.Vh[f].To;if(h&&h.Vw(d,e)){d=h;break a}}d=s}return(this.To=d)?this.To.Tr(a,b,c):s};S.Vw=function(a,b){var c=this.ed.Ef();a=(a-this.ed.Kt())/c;b=(b-this.ed.Lt())/c;return this.To?this.To.Vw(a,b):s};function Jr(a,b){this.z5=a;this.Z0a=b}dvt.j.u(Jr,dvt.tH);
  Jr.prototype.Tr=function(a,b,c){if(a=Kr(this.z5,a,b))a!=this.IM&&(this.z5.Vz(a),this.IM=a);else return this.z5.Vz(s),s;return c[0]};Jr.prototype.Vw=function(a,b){var c=Kr(this.z5,a,b);if(c){var d=X.jfb(a,b,this.Z0a);return{Tnb:c.sBa,Fnb:d.x,Gnb:d.y}}return s};function Cr(a){this.Fa=a}ba("DvtThematicMapAutomation",Cr);dvt.j.u(Cr,dvt.Wd);
  Cr.prototype.Ko=function(a){var b=this.Fa.Ua().eb(a);if(b&&(b instanceof Lr||b instanceof Mr)){var c;a:{a=b.Pa();for(var d=this.Fa.Vh,e=0;e<d.length;e++){var f=d[e].Im;for(c in f)if(a instanceof dvt.pb)for(var h=f[c].Be,k=0;k<h.length;k++){if(h[k]===b){c=Nr(c)+":area["+k+"]";break a}}else if(a instanceof dvt.pa||a instanceof dvt.Kf){h=f[c].vn;for(k=0;k<h.length;k++)if(h[k]===b){c=Nr(c)+":marker["+k+"]";break a}}}c=s}return c}if(c=this.Fa.Ma.He)if((b=c.Ua().eb(a))&&b instanceof dvt.aa){a="disclosure zoomIn zoomOut zoomToFit drillDown drillUp reset".split(" ");
  for(d=0;d<a.length;d++)if(c.kv(a[d])===b)return"controlPanel#"+a[d]}return s};Cr.prototype.oi=function(a){if(a==dvt.Wd.iC)return this.wE(this.Fa);var b=a.indexOf(":"),c=a.indexOf("[");return 0<b&&0<c?(a=Or(this,a.substring(0,b),a.substring(b+1,c),parseInt(a.substring(c+1,a.length-1))))?a.Pa().ib():s:0===a.lastIndexOf("controlPanel")&&(b=a.indexOf("#"),0<b&&(a=a.substring(b+1),(b=this.Fa.Ma.He)&&a))?(a=b.kv(a))?a.ib():s:s};Cr.prototype.getDomElementForSubId=Cr.prototype.oi;
  Cr.prototype.getData=function(a,b,c){return(a=Or(this,a,b,c))?(b={},b.color=a.ql(),b.tooltip=a.ee(),c=a.Ae(),b.label=c?c.tf():s,b.selected=a.tb(),b):s};Cr.prototype.getData=Cr.prototype.getData;function Or(a,b,c,d){a=a.Fa.Vh;for(var e=0;e<a.length;e++){var f=a[e].Im,h;for(h in f)if(Nr(h)==b){if("area"==c)return f[h].YCa[d];if("marker"==c)return f[h].$Ca[d]}}return s}function Nr(a){var b=a.lastIndexOf(":");return 0<b?a.substring(b+1):a}function Pr(a,b){this.Init(a,b)}dvt.j.u(Pr,dvt.pb);S=Pr.prototype;
  S.Init=function(a,b){Pr.q.Init.call(this,a);this.JI=this.II=this.Q6=this.P6=s;this.ela=t;this.Zoom=1;this.Ai=b};S.sB=Q("ela");
  S.qV=function(a){this.ela!=a&&(this.ela=a,this.sB()?(this.II=this.am(),this.II.ga(s),this.II.bb(t),this.JI=this.am(),this.JI.ga(s),this.JI.bb(t),a=this.getParent(),a.k(this.JI),a.k(this.II),this.II.xa(Qr(this,this.P6,2)),this.JI.xa(Qr(this,this.Q6,4)),this.bb(t),this.hh=t):(this.hh&&(this.Hk(),this.Al.xa(Qr(this,this.Hx,1),2)),this.JI.getParent().removeChild(this.JI),this.II.getParent().removeChild(this.II),this.bb(p),this.P(1)))};
  S.rc=function(a){this.Sn!=a&&(a&&(this.hh?(this.eW(),this.tq=Qr(this,this.tq,2),this.Dp=Qr(this,this.Dp,6)):(this.Qx=Qr(this,this.Qx,1),this.wu=Qr(this,this.wu,4))),Pr.q.rc.call(this,a))};S.vd=function(){this.tb()?(this.eW(),this.tq=Qr(this,this.tq,2),this.Dp=Qr(this,this.Dp,6)):this.Hx=Qr(this,this.Hx,2);Pr.q.vd.call(this)};S.eW=function(){this.tq||(this.tq=this.Hx.Ca(),this.tq.Xa(2),this.Ai&&this.tq.Ee(p));this.Dp||(this.Dp=this.wu.Ca(),this.Dp.Xa(6),this.Ai&&this.Dp.Ee(p))};
  S.Sc=function(){this.tb()&&(this.Qx=Qr(this,this.Qx,1),this.wu=Qr(this,this.wu,4));Pr.q.Sc.call(this)};S.Xt=function(a,b){Pr.q.Xt.call(this,a,b);this.Ai&&(this.Hx&&this.Hx.Ee(p),this.EW&&this.EW.Ee(p));return this};S.Zt=function(a,b){Pr.q.Zt.call(this,a,b);this.Ai&&(this.Qx&&this.Qx.Ee(p),this.wu&&this.wu.Ee(p));return this};S.Cv=function(a,b){Pr.q.Cv.call(this,a,b);this.Ai&&(this.tq&&this.tq.Ee(p),this.Dp&&this.Dp.Ee(p));return this};
  function Rr(a,b,c){if(!a.Ai){var d=b.Ad();d&&(d=d.Ca(),d.Xa(c/a.Zoom),b.xa(d))}}function Qr(a,b,c){a.Ai||(b=b.Ca(),b.Xa(c/a.Zoom));return b}function Sr(a,b){a.Zoom=b.xf;a.sB()?(Rr(a,a.II,2),Rr(a,a.JI,4)):a.tb()?a.hh?(Rr(a,a.Al,2),Rr(a,a,6)):(Rr(a,a.Al,1),Rr(a,a,4)):a.hh?Rr(a,a.Al,2):Rr(a,a,1)}function Tr(a,b,c){this.Init(a,b,c)}dvt.j.u(Tr,dvt.ca);S=Tr.prototype;
  S.Init=function(a,b,c){Tr.q.Init.call(this,a);this.wF=b;b instanceof dvt.Ne?(this.vb=b.getWidth(),this.Hb=b.getHeight(),this.k(b)):(this.ib().appendChild(b),b=dvt.jg.ym(a,this),this.vb=b.a,this.Hb=b.b);this.iA=new dvt.ka(a,-5,-5,this.vb+10,this.Hb+10);this.iA.gc();a=new dvt.ua(c.selectedInnerColor,1,2);b=new dvt.ua("rgb(235, 236, 237)",1,4);var d=new dvt.ua(c.selectedInnerColor,1,2),e=new dvt.ua(c.selectedOuterColor,1,4),f=new dvt.ua(c.selectedInnerColor,1,2);c=new dvt.ua(c.selectedOuterColor,1,6);
  this.iA.Xt(a,b).Zt(d,e).Cv(f,c);this.Ib(this.iA,0)};S.Bd=function(a,b){dvt.o.Ta()?this.iA.Bd(a,b):Tr.q.Bd.call(this,a,b)};S.Sf=function(a){dvt.o.Ta()?this.iA.Sf(a):Tr.q.Sf.call(this,a)};S.getWidth=Q("vb");S.getHeight=Q("Hb");S.ai=function(a){this.iA.ai(a)};S.ob=function(){return this.iA.ob()};S.tb=function(){return this.iA.tb()};S.rc=function(a){this.iA.rc(a)};S.vd=function(){this.iA.vd()};S.Sc=function(){this.iA.Sc()};S.gU=function(a){this.wF instanceof dvt.Ne&&this.wF.gU(a)};var Hq;
  this?this.DvtBaseMapManager?Hq=this.DvtBaseMapManager:(this.DvtBaseMapManager=Hq={},Hq._UNPROCESSED_MAPS=[[],[],[]],Hq._UNPROCESSED_PARENT_UPDATES=[[]]):window.DvtBaseMapManager?Hq=window.DvtBaseMapManager:(Hq={},window.DvtBaseMapManager=Hq,Hq._UNPROCESSED_MAPS=[[],[],[]],Hq._UNPROCESSED_PARENT_UPDATES=[[]]);dvt.j.u(Hq,dvt.j,"DvtBaseMapManager");Hq.TL=0;Hq.Hl=1;Hq.qga=2;Hq.pga=3;Hq.O4=4;Hq.lC="__index";Hq.Il={};
  Hq.VLa=function(a,b){Hq.bv();var c=Hq.Il[a][b];return c&&(c=c[Hq.O4])?new dvt.U(c[0],c[1],c[2],c[3]):s};Hq.Bbb=function(a,b){Hq.bv();var c=Hq.Il[a][b];return c?c[Hq.pga]:s};Hq.Cbb=function(a,b){Hq.bv();var c=Hq.Il[a][b];return c?c[Hq.TL]:s};Hq.pdb=function(a,b,c){Hq.bv();a=Hq.Il[a][b];var d;a&&(d=a[Hq.TL]);return d&&d[c]?d[c][1]:s};Hq.Ubb=function(a,b){Hq.bv();var c=Hq.Il[a];if(c&&(c=c.cities))if(c=c[Hq.Hl][b])return new dvt.N(c[0],c[1]);return s};
  Hq.Vbb=function(a,b){Hq.bv();var c=Hq.Il[a];if(c&&(c=c.cities))if(c=c[Hq.TL][b])return c[1];return s};Hq.zbb=function(a,b,c){Hq.bv();var d=Hq.Il[a];if(d&&(d=d[b])){if((d=d[Hq.pga])&&d[c])return dvt.U.create(d[c][0]).sf();a=Hq.Il[a][b][Hq.Hl][c];if(!a)return s;a=dvt.M.d0(a);return dvt.M.V(a).sf()}return s};Hq.gMa=function(a,b){Hq.bv();var c=Hq.Il[a][b];return c?Hq.Il[a][Hq.lC][c.__index+1]:s};Hq.Pdb=function(a,b){Hq.bv();return Hq.Il[a][b]?Hq.Il[a][Hq.lC][Hq.Il[a][b].__index-1]:s};
  Hq.QLa=function(a,b){Hq.bv();return Hq.Il[a][b][Hq.Hl]};Hq.Qdb=function(a,b,c){Hq.bv();return Hq.Il[a][b][Hq.Hl][c]};Hq.Tbb=function(a,b){Hq.bv();var c=Hq.gMa(a,b);return c&&(c=Hq.Il[a][c][Hq.qga])?c:[]};Hq.qnb=function(a,b){Hq.bv();return Hq.Il[a][Hq.lC][b]};Hq.vsa=function(a,b,c,d,e,f,h,k){var m=Hq.Il[a];m||(m={},m[Hq.lC]=[],Hq.Il[a]=m);a=m[b];a||(a={},m[b]=a,h!=s&&(m[Hq.lC][h]=b));a[Hq.TL]=c;a[Hq.Hl]=d;a[Hq.qga]=e;a[Hq.pga]=f;a[Hq.O4]=k;a[Hq.lC]=h};ba("DvtBaseMapManager.registerBaseMapLayer",Hq.vsa);
  Hq.nPa=function(a,b,c){var d=Hq.Il[a];d||(d={},Hq.Il[a]=d);a=d[b];a||(a={},d[b]=a);(a=d[b])&&(a[Hq.TL]=c)};ba("DvtBaseMapManager.registerResourceBundle",Hq.nPa);Hq.iQa=function(a,b,c){if(a=Hq.Il[a])if(b=a[b])for(var d in c)b[Hq.TL][d]=c[d]};ba("DvtBaseMapManager.updateResourceBundle",Hq.iQa);
  Hq.bv=function(){var a,b,c=Hq._UNPROCESSED_MAPS;if(c){for(a=0;a<c[0].length;a++)b=c[0][a],Hq.vsa(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7]);for(a=0;a<c[1].length;a++)b=c[1][a],Hq.nPa(b[0],b[1],b[2]);for(a=0;a<c[2].length;a++)b=c[2][a],Hq.iQa(b[0],b[1],b[2]);Hq._UNPROCESSED_MAPS=[[],[],[]]}if(c=Hq._UNPROCESSED_PARENT_UPDATES){for(a=0;a<c[0].length;a++){b=c[0][a];var d=b[1],e=b[2],f=Hq.Il[b[0]],h;if(f){if(d=f[d]){d[Hq.qga]=b[3];h=d[Hq.O4];a=d[Hq.lC];d=f[Hq.lC];d.splice(a,0,e);f[e][Hq.lC]=a;for(a+=1;a<
  d.length;a++)(e=f[d[a]])&&e[Hq.lC]++}(d=f[b[2]])&&(d[Hq.O4]=h)}}Hq._UNPROCESSED_PARENT_UPDATES=[[]]}};Hq.bjb=function(a,b,c,d,e,f){if(0<f){b=1/(Math.min(d/b,e/c)*f);if(1>=b)return a;c=[];if(a)for(var h in a)d=a[h],isNaN(d)&&(d=dvt.M.d0(a[h])),c[h]=dvt.M.cjb(d,b);return c}return a};Hq.ldb=function(a,b){Hq.bv();var c=Hq.Il[a][b],d={};if(c){var c=c[Hq.TL],e;for(e in c)d[e]=c[e][1]}return d};ba("DvtBaseMapManager.getLayerIds",Hq.ldb);function Ur(a,b){this.Init(a,b)}dvt.j.u(Ur,dvt.j);
  Ur.prototype.Init=function(a,b){this.dj=a;this.rM=b};Ur.prototype.ze=Q("rM");Ur.prototype.Ue=function(){return[this.dj]};dvt.Ks=function(a){this.Init(dvt.Ks.ue);this.M2a=a};dvt.j.u(dvt.Ks,dvt.Ag);dvt.Ks.ue="drill";dvt.Ks.kSa=0;dvt.Ks.xda=1;dvt.Ks.lVa=2;dvt.Ks.prototype.Nh=C("Dq");dvt.or=function(a,b,c){this.Init(dvt.or.ue);this.r6=a;this.v_=b;this.xq=c};ba("dvt.MapActionEvent",dvt.or);dvt.j.u(dvt.or,dvt.Ag);dvt.or.ue="action";dvt.or.TYPE=dvt.or.ue;dvt.or.prototype.Xr=Q("r6");
  dvt.or.prototype.getClientId=dvt.or.prototype.Xr;dvt.or.prototype.Iqa=Q("v_");dvt.or.prototype.getRowKey=dvt.or.prototype.Iqa;dvt.or.prototype.Hg=Q("xq");dvt.or.prototype.getAction=dvt.or.prototype.Hg;function Lq(a,b,c,d,e,f){this.Init(a,b,c,d,e,f)}dvt.j.u(Lq,dvt.ba);S=Lq.prototype;
  S.Init=function(a,b,c,d,e,f){Lq.q.Init.call(this,a,b,0,0);this.Ai=f;this.zC=[];this.bb(t);this.$g();this.Kh();this.hl=s;this.zw=d;this.NN=e;if(c&&(this.zC.push(dvt.U.create(c[0])),1<c.length)){this.Bla=[];for(b=1;b<c.length;b++)d=c[b],this.zC.push(dvt.U.create(d[0])),d=new dvt.uu(a,d[1]),d.Cd(),e=new dvt.ua("#000000"),this.Ai&&e.Ee(p),d.xa(e),this.Bla.push(d)}};
  S.update=function(a){a=a.xf;for(var b=-1,c=dvt.Aa.yk(this),d=t,e=0;e<this.zC.length;e++){var f=this.zC[e].a*a;if(c.b<=this.zC[e].b*a)if(c.a<=f){b=e;break}else if(this.getParent()||(d=p,this.NN.k(this)),this.V().a<=f){b=e;break}}-1==b&&"on"==this.zw&&(b=this.zC.length-1);this.fja!=b?(-1==b?this.reset():(this.getParent()||this.NN.k(this),c=this.zC[b].sf(),this.Vt(c),this.Bla&&(this.NN.removeChild(this.Up),this.Up=s,0<b?(this.Up=this.Bla[b-1],this.NN.k(this.Up),d=this.Jd(),d.oa(dvt.e.kc,"#000000"),this.Cb(d),
  d=this.zC[b],e=this.Up.Ec(),f=e.length,d.x>e[f-2]?(this.rk(),this.Kh(),this.Vt(new dvt.N(d.x,c.y))):d.y>e[f-1]?(this.gp(),this.$g(),this.Vt(new dvt.N(c.x,d.y))):d.x+d.a<e[f-2]?(this.sk(),this.Kh(),this.Vt(new dvt.N(d.x+d.a,c.y))):d.y+d.b<e[f-1]&&(this.Ur(),this.$g(),this.Vt(new dvt.N(c.x,d.y+d.b)))):(this.$g(),this.Kh(),d=this.Jd(),d.oa(dvt.e.kc,this.TFa),this.Cb(d)))),this.fja=b):-1==b&&d&&this.NN.removeChild(this);-1!=this.fja&&(b=new dvt.Qb,b.translate(a*this.hl.x-this.hl.x,a*this.hl.y-this.hl.y),
  this.rb(b),this.Up&&(this.Up.rb(new dvt.Qb(a,0,0,a)),this.Ai||(b=this.Up.Ad().Ca(),b.Xa(1/a),this.Up.xa(b))))};S.Vt=function(a){this.hl=a;this.Ia(a.x);this.kb(a.y)};S.sf=Q("hl");S.Cb=function(a){Lq.q.Cb.call(this,a);this.TFa||(this.TFa=a.I(dvt.e.kc))};S.reset=function(){this.NN.removeChild(this);this.fja=-1;this.Up&&(this.NN.removeChild(this.Up),this.Up=s)};function Mr(a,b,c,d,e){this.Init(a,b,c,d,e)}dvt.j.u(Mr,dvt.j);S=Mr.prototype;
  S.Init=function(a,b,c,d,e){this.Ob=a;this.Ju=b;this.ja=c;this.dd=this.Wo=this.jl=t;this.ja.yP&&this.ja.yP(a.color);this.Jc=d;this.hl=e;this.En=1;this.W=b.Fa;this.Ob.categories||this.Jc&&(this.Ob.categories=[this.Jc.tf()]);c=a.location;this.mZ;c&&(b=b.d_,this.mZ=!(b instanceof sq)||b instanceof Vr?Hq.Vbb(this.W.yn,c):Hq.pdb(this.W.yn,b.Fk,c));"auto"==this.W.kDa&&this.mZ&&(this.Ob.shortDesc=a.shortDesc?this.mZ+": "+a.shortDesc:this.mZ);this.ja&&(a.destination?(this.ja.Sf("link"),this.Hla=dvt.F.iK("_blank",
  a.destination)):this.ja.Sf("img"));this.wq()};S.getId=function(){return this.Ob.id};S.Xr=function(){return this.Ob.clientId};S.Gn=function(){return this.Ob.location};S.sf=Q("hl");S.Vt=function(a){this.hl=a;this.m5()};S.Pa=Q("ja");S.Ae=Q("Jc");S.pl=Q("Ju");S.Hg=function(){return this.Ob.action};S.uc=function(a){this.ja.uc(a);this.Jc&&this.Jc.uc(a)};S.ee=function(){return this.Ob.shortDesc};S.gf=function(){return this.ja.getWidth?this.ja.getWidth()*this.ja.getHeight():0};S.ze=function(){return this.Ob.categories};
  S.vg=function(){if("none"!=this.W.kDa){var a=this.W.v()._tooltip;return a?this.W.g().Rf().Uw(a,this.$p()):this.ee()}return s};S.$p=function(){return{color:this.ql(),component:this.W.v()._widgetConstructor,data:this.Ob,id:this.getId(),label:this.Jc?this.Jc.tf():s,location:this.Gn(),locationName:this.mZ,tooltip:this.ee(),x:this.Ob.x,y:this.Ob.y}};S.iK=Q("Hla");S.ql=function(){return this.Ob.color?this.Ob.color:"#000000"};
  S.Id=function(){var a=[];this.ob()&&a.push(dvt.D.na(dvt.D.Ka,this.tb()?"STATE_SELECTED":"STATE_UNSELECTED"));return dvt.ja.uk(this.ee(),a)};S.Ue=function(){return[this.Pa()]};S.wq=function(){if(!dvt.o.Gi()){var a=this.Id();a&&this.ja.Bd("label",a)}};S.ai=function(a){var b=this.Ae();this.ja.ai&&(this.ja.ai(a),b&&a&&b.setCursor("pointer"));this.Ob.destination&&(this.ja.setCursor("pointer"),b&&b.setCursor("pointer"))};S.ob=function(){return this.ja.ob?this.ja.ob():t};S.tb=Q("jl");
  S.rc=function(a){if(this.ob()){var b=this.Ql();this.jl=a;this.Ju.v().selectionRenderer?Wr(this,this.Ju.v().selectionRenderer,this.Ql(),b):this.YG(a);this.wq()}};S.vd=function(){var a=this.Ql();this.Wo=p;this.Ju.v().hoverRenderer?Wr(this,this.Ju.v().hoverRenderer,this.Ql(),a):this.gx(p)};S.Sc=function(){var a=this.Ql();this.Wo=t;this.Ju.v().hoverRenderer?Wr(this,this.Ju.v().hoverRenderer,this.Ql(),a):this.gx(t)};S.GV=C("Je");S.ff=Q("Je");
  S.en=function(a){for(var b=this.Ju.Xr(),c=0;c<a.length&&a[c]!=b;c++);return b};S.vo=function(){return this.Ju.mI(this)};S.dB=function(){return this.Ju.lI()};S.pe=function(a){return a.type==dvt.ra.Fe?this:a.keyCode==dvt.G.xi&&a.ctrlKey?this:dvt.Db.EG(this,a,this.Bva())};S.Bva=function(){return uq(this.pl().Fa)};S.Ig=function(a){return this.ja.getParent()?this.ja instanceof Tr?this.ja.V(a?a:this.ja.g().xe):this.ja.V(a):new dvt.U(0,0,0,0)};S.Cm=function(){return this.ja.ib()};
  S.Uf=function(){var a=this.Ql();this.dd=p;this.Ju.v().focusRenderer?Wr(this,this.Ju.v().focusRenderer,this.Ql(),a):this.AB(p)};S.Od=function(){if(this.Qd()){var a=this.Ql();this.dd=t;this.Ju.v().focusRenderer?Wr(this,this.Ju.v().focusRenderer,this.Ql(),a):this.AB(t)}};S.Qd=Q("dd");S.ak=function(a){this.ja.getParent()&&(this.En=a.xf,this.m5())};
  S.Bba=function(){if(this.Jc){this.Jc.$g();var a=this.ja.mj()*this.En,b=this.ja.nj()*this.En,c=this.ja.getHeight(),d=this.ja instanceof dvt.pa?this.ja.Vd():"image",e=this.Ob.labelPosition;"top"==e?(b=b-c/2-4,this.Jc.Ur()):"bottom"==e?(b+=c/2,this.Jc.gp()):(b=d==dvt.pa.Au?b+c/6:d==dvt.pa.zu?b-c/6:b,this.Jc.Kh());this.Jc.Ia(a).kb(b)}};
  S.m5=function(){var a=this.ja.getWidth(),b=this.ja.getHeight();if(a!=s&&b!=s&&this.ja.getParent()){var c=0,d=this.hl.x,c=this.hl.y;this.ja.nK&&(c=this.ja.nK(),d=this.hl.x*Math.cos(c)-this.hl.y*Math.sin(c),c=this.hl.x*Math.sin(c)+this.hl.y*Math.cos(c));d=this.hl.x*this.En-d;c=this.hl.y*this.En-c;this.ja instanceof Tr&&(d+=this.hl.x-a/2,c+=this.hl.y-b/2);this.ja.Ga(d,c);dvt.o.mQa(this.ja);this.Bba()}};
  S.nh=function(a,b){var c=new dvt.Pd(this.W.g(),this.ja,this.pl().mb()),d=b.Pa();if(this.ja.ud){var e=d.ud(),f=this.ja.ud();f instanceof dvt.Yb&&!(f.yc()==e.yc()&&f.Na()==e.Na())&&(this.ja.ga(e),b.Ae()&&this.Jc&&(e=this.Jc.ud(),this.Jc.ga(b.Ae().ud().Ca()),c.ea.J(dvt.B.vq,this.Jc,this.Jc.ud,this.Jc.ga,e)),c.ea.J(dvt.B.vq,this.ja,this.ja.ud,this.ja.ga,f))}if(this.ja.Yy&&(f=b.Pa().Yy(),e=this.ja.Yy(),f.x!=e.x||f.y!=e.y||f.a!=e.a||f.b!=e.b))this.ja.cH(f),c.ea.J(dvt.B.Qz,this.ja,this.ja.Yy,this.ja.cH,
  e);f=d.nK();e=this.ja.nK();if(f!=e){var h=f-e;h>Math.PI?f-=2*Math.PI:h<-Math.PI&&(f+=2*Math.PI);this.ja.Co(f);c.ea.J(dvt.B.Q,this.ja,this.ja.nK,this.ja.Co,e)}var h=b.sf(),k=this.sf();if(h&&k&&(h.x!=k.x||h.y!=k.y||f!=e))this.Vt(new dvt.N(h.x,h.y)),c.ea.J(dvt.B.Pz,this,this.sf,this.Vt,new dvt.N(k.x,k.y));this.Jc&&b.Ae()?(f=b.Ae().Sa(),e=this.Jc.Sa(),f!=e&&(this.Jc.Ia(f),c.ea.J(dvt.B.Q,this.Jc,this.Jc.Sa,this.Jc.Ia,e)),f=b.Ae().$a(),e=this.Jc.$a(),f!=e&&(this.Jc.kb(f),c.ea.J(dvt.B.Q,this.Jc,this.Jc.$a,
  this.Jc.kb,e)),b.Ae().P(0)):b.Ae()&&b.Ae().P(0);d.P(0);a.add(c,1)};S.Xj=function(a){var b=[this.ja],c=this.Ae();c&&b.push(c);b=new dvt.Kj(this.W.g(),b,this.pl().mb());a.add(b,0)};S.Ui=function(a){var b=[this.ja];this.ja.P(0);var c=this.Ae();c&&(c.P(0),b.push(c));b=new dvt.Ah(this.W.g(),b,this.pl().mb());a.add(b,2)};S.YG=function(a){this.ja.rc&&this.ja.rc(a)};S.AB=function(a){this.gx(a)};S.gx=function(a){a?this.ja.vd&&this.ja.vd():this.ja.Sc&&!this.Qd()&&this.ja.Sc()};
  function Wr(a,b,c,d){if(a.ja instanceof Tr){var e=a.W.v()._contextHandler;e&&(c=e(a.ja.ib(),a.ja.wF,a.Ob,c,d),b=b(c),a=a.ja,a.wF!==b&&(a.wF&&(a.wF instanceof dvt.Ne?a.removeChild(a.wF):a.ib().removeChild(a.wF)),b instanceof dvt.Ne?a.k(b):a.ib().appendChild(b),a.wF=b))}}S.Ql=function(){return{hovered:this.Wo,selected:this.tb(),focused:this.Qd()}};function Lr(a,b,c,d){this.Init(a,b,c,d)}dvt.j.u(Lr,Mr);S=Lr.prototype;S.Init=function(a,b,c,d){Lr.q.Init.call(this,a,b,c,d)};
  S.rc=function(a){this.ob()&&(a&&!this.Wo&&this.Bq.k(this.ja),Lr.q.rc.call(this,a))};S.vd=function(){this.Bq.k(this.ja);Lr.q.vd.call(this)};S.Sc=function(){this.tb()?this.Bq.k(this.ja):this.Bq.Ib(this.ja,0);Lr.q.Sc.call(this)};S.sB=function(){return this.ja.sB()};S.qV=function(a){a?this.Bq.k(this.ja):this.Bq.Ib(this.ja,0);this.ja.qV(a)};S.ak=function(a){Lr.q.ak.call(this,a);this.ja.getParent()&&(Sr(this.ja,a),this.sB()||this.Bba(a))};S.Bba=function(a){this.Ae()&&this.Ae().update(a)};S.Bva=function(){return tq(this.pl().Fa)};
  S.nh=function(a,b){Lr.q.nh.call(this,a,b);this.pl().d_.Iy[this.Gn()]=t};S.m5=B();function Xr(a,b,c,d,e,f){this.Init(a,b,c,d,e,f)}dvt.j.u(Xr,dvt.ca);S=Xr.prototype;S.Init=function(a,b,c,d,e,f){Xr.q.Init.call(this,a);this.jl=this.nM=t;this.sBa=d;this.B0a=e;this.X=c;this.k(this.X);this.W=b;this.Ai=f;if(a=c.Ad())this.tBa=a.getWidth()};S.vg=function(){var a=this.W.v()._tooltip;return a?this.W.g().Rf().Uw(a,this.$p()):this.ml};S.GPa=C("ml");
  S.$p=function(){return{color:s,component:this.W.v()._widgetConstructor,data:s,id:s,label:s,location:this.sBa,locationName:this.B0a,tooltip:this.ml,x:s,y:s}};S.Ad=function(){return this.X instanceof dvt.ge?this.X.Ad():s};S.xa=function(a){this.X instanceof dvt.ge&&this.X.xa(a)};S.ga=function(a){this.X instanceof dvt.ge&&this.X.ga(a)};S.ud=function(){return this.X instanceof dvt.ge?this.X.ud():s};S.zG=function(){return this.X instanceof dvt.pb?this.X.zG():s};
  S.em=function(a){this.X instanceof dvt.pb&&this.X.em(a)};S.CP=function(a){this.X instanceof dvt.yb&&this.X.CP(a)};S.EO=function(){return this.X.am()};S.contains=function(a,b){var c=this.V();return a>=c.x&&a<=c.x+c.a&&b>=c.y&&b<=c.y+c.b};S.ak=function(a){if(!this.Ai&&this.X&&this.tBa){var b=this.X.Ad().Ca();b.Xa(this.tBa/a.xf);this.X.xa(b)}};function Yr(a,b,c){this.Init(a,b,c)}dvt.j.u(Yr,dvt.j);S=Yr.prototype;S.Init=function(a,b,c){this.Fa=a;this.Fk=b;this.Gda=c;this.Im={};this.Ms=new dvt.Qb};
  S.Ixa=B();S.nfa=B();
  S.hta=function(a,b){this.Rb&&this.Rb.stop(p);this.Ms=b;this.By=this.pl(a.Xr());this.Im[a.Xr()]=a;a.va(this.Ms);a.ak(new dvt.od(dvt.od.XH),this.Ms);if(this.By){var c=a.lv(),d=a.mb();if("auto"==c){var e=new dvt.Ap(this.Fa.g());e.Yp(this.By.vn.concat(this.By.Be),a.vn.concat(a.Be));this.Rb=e.lv()}else if(dvt.hc.isSupported(c)){this.FIa=p;for(var f=new dvt.U(0,0,this.Fa.getWidth(),this.Fa.getHeight()),h=Zr(this.By),e=0;e<h.length;e++){var k=new dvt.ka(this.Fa.g(),0,0,this.Fa.getWidth(),this.Fa.getHeight());
  k.ga(s);h[e].k(k)}for(var m=Zr(a),e=0;e<m.length;e++)k=new dvt.ka(this.Fa.g(),0,0,this.Fa.getWidth(),this.Fa.getHeight()),k.ga(s),m[e].k(k);f=dvt.hc.VJ(this.Fa.g(),c,h,m,f,d);h=new dvt.U(0,0,this.Fa.getWidth()/this.Ms.xf,this.Fa.getHeight()/this.Ms.xf);m=[this.By.Bq];for(e=0;e<m.length;e++)k=new dvt.ka(this.Fa.g(),0,0,this.Fa.getWidth()/this.Ms.xf,this.Fa.getHeight()/this.Ms.xf),k.ga(s),m[e].k(k);for(var n=[a.Bq],e=0;e<n.length;e++)k=new dvt.ka(this.Fa.g(),0,0,this.Fa.getWidth()/this.Ms.xf,this.Fa.getHeight()/
  this.Ms.xf),k.ga(s),n[e].k(k);e=dvt.hc.VJ(this.Fa.g(),c,m,n,h,d);this.Rb=new dvt.Eh(this.Fa.g(),[f,e])}else{c=[this.By.Bq,this.By.FC,this.By.lY];for(e=0;e<c.length;e++)c[e].getParent().removeChild(c[e])}this.Ixa();if(this.Rb){this.Gda.bl(this.hb);var q=this;this.Rb.Tf(function(){q.Rv(a)},this);this.Rb.play()}}else this.nfa(),yq(this.Fa)};S.pl=function(a){return this.Im?this.Im[a]:s};S.va=function(a){this.Ms=a;for(var b in this.Im)this.Im[b].va(a)};
  S.reset=function(a,b){for(var c in this.Im)this.Im[c].reset(a,b)};S.ak=function(a,b){this.Ms=b;for(var c in this.Im)this.Im[c].ak(a,b)};S.XB=function(a){this.Ms=a;for(var b in this.Im)this.Im[b].XB(a)};
  S.Rv=function(a){if(this.By)for(var b=[this.By.Bq,this.By.FC,this.By.lY],c=0;c<b.length;c++){var d=b[c].getParent();d&&d.removeChild(b[c])}if(this.FIa){this.FIa=t;b=Zr(a);for(c=0;c<b.length;c++)b[c].ix(b[c].Gb()-1);a=[a.Bq];for(c=0;c<a.length;c++)a[c].ix(a[c].Gb()-1)}this.nfa();yq(this.Fa);this.Rb=s;this.Gda.Gg(this.hb)};function sq(a,b,c,d,e){this.Init(a,b,c,d,e)}dvt.j.u(sq,Yr);S=sq.prototype;
  S.Init=function(a,b,c,d,e){sq.q.Init.call(this,a,b,e);this.zw=c;this.VFa=d;this.zX={};this.ys={};this.sx={};this.zS=this.Az=s;this.Dq=[];this.Iy={};this.Ky={};this.h9={};this.MP=new dvt.ca(this.Fa.g());this.LW=new dvt.ca(this.Fa.g());this.Fa.Oha.Ib(this.MP,0);this.Fa.WC.Ib(this.LW,0);this.To=new Jr(this,this.Fa.yn)};S.Jsa=C("Jha");S.lv=Q("Jha");S.DB=C("Iha");S.mb=Q("Iha");S.xcb=Q("To");function $r(a,b){a.Az=b;for(var c in a.Az)a.Iy[c]=p,a.Ky[c]=p}S.PMa=function(a){return!this.zS?s:this.zS[a]};
  function Mq(a,b){return a.Ro[b]?a.Ro[b].split(","):[]}S.iaa=Q("zw");S.NO=function(){if(!this.BS)if(this.vS)this.BS=dvt.M.V(dvt.M.d0(Hq.Qdb(this.Fa.yn,this.Fk,this.vS)));else if("world"!=this.Fa.yn&&"worldRegions"!=this.Fa.yn&&(this.BS=Hq.VLa(this.Fa.yn,this.Fk)),!this.BS){var a=this.MP.V().Hj(this.Fa.jY.V());0<a.a&&0<a.b&&(this.BS=a)}return this.BS};
  function as(a,b,c){var d=a.sx[b];if(d){(c||!a.ys[b])&&a.hQa(b);if(!a.ys[b]){c=a.Az&&a.Az[b]?a.Az[b][1]:s;var e=new Xr(a.Fa.g(),a.Fa,d,b,c,a.Fa.Ai);a.ys[b]=e;a.Gda.jb(d,e);e.GPa(c)}if(a.Ky[b]&&(c=a.zX[b],!c&&("off"!=a.zw&&a.Az)&&(c="short"==a.VFa?a.Az[b][0]:a.Az[b][1])))a.zS&&a.zS[b]?c=new Lq(a.Fa.g(),c,a.zS[b],a.zw,a.LW,a.Fa.Ai):(d=dvt.jg.ym(a.Fa.g(),d),c=new Lq(a.Fa.g(),c,[[d.x,d.y,d.a,d.b]],a.zw,a.LW,a.Fa.Ai)),a.zX[b]=c,a.yla&&c.Cb(a.yla)}}
  function bs(a,b,c){if(a.sx[b]){a.MP.k(a.ys[b]);var d=a.zX[b];d&&(a.Ky[b]?d.update(a.Ms):d.reset(),a.h9[b]=a.Ky[b]);c&&(c.push(a.ys[b]),d&&(c.push(d),c.push(d.Up)))}}S.hQa=function(a){if(!this.aIa||this.NBa){this.NBa=t;var b;this.aIa=(b="world"==this.Fa.yn||"worldRegions"==this.Fa.yn?Hq.VLa(this.Fa.yn,this.Fk):this.NO())?Hq.bjb(Hq.QLa(this.Fa.yn,this.Fk),b.a,b.b,this.Fa.getWidth(),this.Fa.getHeight(),this.Fa.nO?this.Fa.h8:1):Hq.QLa(this.Fa.yn,this.Fk)}b=this.aIa[a];this.sx[a]&&b?this.sx[a].em(b):delete this.sx[a]};
  S.hta=function(a,b,c){sq.q.hta.call(this,a,b,c);if(c==this.Fk)for(var d in this.sx)as(this,d,p),this.Iy[d]&&bs(this,d)};S.va=function(a){this.NBa=p;for(var b in this.sx)as(this,b,p),this.Iy[b]&&bs(this,b);sq.q.va.call(this,a)};S.Ixa=function(){for(var a in this.Iy)this.Iy[a]||(as(this,a,t),bs(this,a))};S.nfa=function(){for(var a in this.Iy)if(!this.Iy[a]){this.MP.removeChild(this.ys[a]);var b=this.zX[a];b&&(this.h9[a]=t,this.LW.removeChild(b),(b=b.Up)&&this.LW.removeChild(b))}};
  S.opa=function(a,b){for(var c=0;c<a.length;c++)as(this,a[c],t),this.Iy[a[c]]&&bs(this,a[c],b);for(var d in this.Im)this.Im[d].opa(a,b,this.Ms);this.Dq=this.Dq.concat(a)};S.t2=function(a,b){for(var c in this.Im)this.Im[c].t2(a,b);c=Iq(this.Fa,this.Fk);for(var d=0;d<a.length;d++){var e=a[d];if(this.ys[e]){var f=dvt.fa.nb(this.Dq,e);-1!==f&&(this.Dq.splice(f,1),b.push(this.ys[e]))}c&&c.t2(Mq(this,e),b)}};
  S.reset=function(a,b){sq.q.reset.call(this,a,b);"none"!=this.Fa.Eq&&(this.t2(this.Dq,a),this.Dq=[])};function Kr(a,b,c){for(var d in a.ys)if(a.ys[d].contains(b,c))return a.ys[d];return s}
  S.Vz=function(a){this.Uh&&(this.MP.removeChild(this.Uh),this.Uh=s);if(a&&(this.Uh=a.EO()))this.Uh.ga(new dvt.Yb(this.yY.I(dvt.e.Kb))),a=this.yY.I(dvt.e.Ji)?this.yY.I(dvt.e.Ji).substring(0,this.yY.I(dvt.e.Ji).indexOf("px")):1,this.Fa.Ai||(a/=this.Ms.xf),a=new dvt.ua(this.yY.I(dvt.e.qb),1,a),this.Fa.Ai&&a.Ee(p),this.Uh.xa(a),this.MP.k(this.Uh);return this.Uh};
  S.ak=function(a,b){sq.q.ak.call(this,a,b);if(!this.Fa.Ai)for(var c in this.ys)this.ys[c].ak(b);for(c in this.h9)if(this.h9[c]){var d=this.zX[c];d&&d.update(b)}};function Vr(a,b,c,d,e){this.Init(a,b,c,d,e)}dvt.j.u(Vr,sq);Vr.prototype.Init=function(a,b,c,d,e){Vr.q.Init.call(this,a,b,c,d,e)};Vr.prototype.hQa=B();Vr.prototype.NO=function(){return new dvt.U(0,0,this.T5a,this.S5a)};
  function cs(a){var b=a.Fa.getWidth(),c=a.Fa.getHeight();a=a.A0a;for(var d=0;d<a.length;d++){var e=a[d],f=e.source,h=e.width,e=e.height;if(f&&-1<f.search(".svg")||h>=b&&e>=c||d==a.length-1)return f}}Vr.prototype.ak=function(a,b){Vr.q.ak.call(this,a,b);if(this.ys.image){var c=cs(this);c!=this.C7&&(this.C7=c,this.ys.image.CP(this.C7))}};function ds(a,b,c,d,e){this.Init(a,b,c,d,e)}dvt.j.u(ds,dvt.j);S=ds.prototype;
  S.Init=function(a,b,c,d,e){this.Fa=a;this.r6=c;this.fg=e;this.Be=[];this.vn=[];this.YCa=[];this.$Ca=[];this.nc=d;this.zf=new dvt.Lg(a.g());this.nc.pV(this.zf);this.Bq=new dvt.ca(this.Fa.g());this.FC=new dvt.ca(this.Fa.g());this.lY=new dvt.ca(this.Fa.g());this.Fa.jY.Ib(this.Bq,0);this.Fa.xF.Ib(this.FC,0);this.Fa.WC.Ib(this.lY,0);this.d_=b;this.Dq=[];this.Zs=[]};S.v=Q("fg");function Zr(a){var b=[a.lY];a.Fa.NF&&b.push(a.FC);return b}
  function Jq(a){for(var b=[],c=0;c<a.Be.length;c++)a.Be[c].sB()||b.push(a.Be[c]);return b}function Kq(a){for(var b=[],c=0;c<a.Be.length;c++)for(var d=0;d<a.Dq.length;d++)a.Be[c].Gn()==a.Dq[d]&&(a.Be[c].sB()||b.push(a.Be[c]));return b}function es(a,b){a.$Ca.push(b);if(b){a.vn.push(b);a.nc.jb(b.Pa(),b);var c=b.Ae();c&&a.nc.jb(c,b)}}function fs(a,b){a.YCa.push(b);b&&(a.Be.push(b),a.nc.jb(b.Pa(),b),b.Bq=a.Bq)}S.Xr=Q("r6");S.Jsa=C("Jha");S.lv=Q("Jha");S.DB=C("Iha");S.mb=Q("Iha");
  S.JB=function(a){if(this.fv=a)this.Zc=new dvt.Tc(this.fv),this.nc.IB(this.r6,this.Zc)};S.ob=function(){return this.fv!=s};function gs(a,b){var c;c=a.Be[b];var d=c.Pa(),e=a.d_.sx[c.Gn()];e?(d.em(e.zG()),c=p):(c=a.Be.indexOf(c),-1!==c&&a.Be.splice(c,1),c=t);if(c){d=a.Be[b].Pa();a.Bq.k(d);if(c=a.Be[b].Ae())0<c.zC.length||(d=d.V(),c.zC.push(d)),c.update(a.bT);return p}return t}
  S.va=function(a){this.DBa=p;this.bT=a;a={};var b=this.vn.slice();b.sort(function(a,b){return a.gf()<b.gf()?1:a.gf()>b.gf()?-1:0});for(var c=0;c<b.length;c++){var d=b[c],e=d.Pa(),f=d.Ae();if(f){var h=new dvt.ca(e.g());this.FC.k(h);h.k(e);h.k(f);d.Bba()}else this.FC.k(e);(d=d.Gn())&&(a[d]=p)}for(c=0;c<this.Be.length;c++)a[this.Be[c].Gn()]&&(this.Be[c].Jc=s),gs(this,c)||c--;this.Rka&&this.cG()};
  S.opa=function(a,b,c){this.bT=c;for(var d=[],e=0;e<a.length;e++)for(var f=0;f<this.Be.length;f++)if(this.Be[f].Gn()==a[e]){d.push(this.Be[f].Gn());gs(this,f);var h=this.Be[f].Pa();b.push(h);Sr(h,c);if(f=this.Be[f].Ae())b.push(f),(f=f.Up)&&b.push(f);break}for(f=0;f<this.vn.length;f++)for(e=0;e<a.length;e++)c=this.vn[f].Gn(),h=this.vn[f].Pa(),c!=s?c==a[e]&&(this.FC.k(h),b.push(h)):(this.FC.k(h),b.push(h));this.Dq=this.Dq.concat(d)};
  S.t2=function(a,b){for(var c=0;c<a.length;c++)for(var d=0;d<this.Be.length;d++)if(this.Be[d].Gn()==a[c]){this.Be[d].sB()&&this.Be[d].qV(t);this.Be[d].tb()&&this.Zc.P1(this.Be[d]);var e=dvt.fa.nb(this.Dq,a[c]);if(-1<e&&(this.Dq.splice(e,1),b.push(this.Be[d].Pa()),d=this.Be[d].Ae()))b.push(d),b.push(d.Up);break}};
  S.reset=function(a,b){if(this.Zc)for(var c=this.Zc.getSelection(),d=0;d<c.length;d++)(!b||b&&-1==dvt.fa.nb(b,c[d].Gn()))&&this.Zc.P1(c[d]);if("none"!=this.Fa.Eq)for(c=0;c<this.Zs.length;c++){for(d=0;d<this.Be.length;d++)if(this.Be[d].Gn()==this.Zs[c]){this.Be[d].qV(t);var e=this.Be[d].Pa();this.Bq.k(e);a.push(e);if(d=this.Be[d].Ae())d.update(this.bT),a.push(d),a.push(d.Up);break}for(d=0;d<this.vn.length;d++)if(this.vn[d].Gn()==this.Zs[c]){e=this.vn[d].Pa();this.FC.k(e);a.push(e);break}}this.Zs=[]};
  S.ak=function(a,b){this.bT=b;var c=b.xf,d=a.dn();if(this.DBa&&d==dvt.od.XH){this.DBa=t;for(d=0;d<this.Be.length;d++){var e=this.Be[d].Pa(),f=e.B7a;if(f){var h=new dvt.mc;f.Jg(h);h.rb(new dvt.Qb(1/c,s,s,1/c));e.ga(h)}}}d=this.Be;for(c=0;c<d.length;c++)d[c].ak(b);if(this.Fa.NF){d=this.vn;for(c=0;c<d.length;c++)d[c].ak(b)}};S.XB=C("bT");S.cG=function(){this.Zc&&(this.Zc.Tt(this.Rka,this.vn.concat(this.Be)),this.Rka=s)};
  S.mI=function(a){if(this.Zc){a.tb()||(this.Zc.jq(a,t),this.nc.xG(a));a=[];for(var b=this.Zc.getSelection(),c=0;c<b.length;c++)a.push(b[c].getId());return a}return s};S.lI=function(){for(var a=[],b=this.Zc.getSelection(),c=0;c<b.length;c++)a.push(b[c].Pa());return a};function rq(a,b){this.Init(a,b)}dvt.j.u(rq,dvt.FL);S=rq.prototype;S.Init=function(a,b){rq.q.Init.call(this,a,b);this.Fa=a};S.YD=function(a){return this.aj(a)&&!a.ctrlKey};
  S.Ak=function(a){var b=a.keyCode;if(b==dvt.G.wx){var b=this.Ra.Ze(),c=uq(this.Fa);b instanceof Lr&&0<c.length&&(b=dvt.Db.EG(b,a,c));hs(this.Ra,b)}else b==dvt.G.Kz?(b=this.Ra.Ze(),c=tq(this.Fa),!(b instanceof Lr)&&0<c.length&&(b=dvt.Db.EG(b,a,c)),hs(this.Ra,b)):(b=rq.q.Ak.call(this,a),this.aj(a)&&!a.ctrlKey&&hs(this.Ra,b));return b};S.xv=function(a){return a.keyCode==dvt.G.xi&&a.ctrlKey};S.aj=function(a){var b=rq.q.aj.call(this,a);if(!b&&(a=a.keyCode,a==dvt.G.Kz||a==dvt.G.wx))b=p;return b};
  function qq(a,b,c){this.Init(a,b,c)}dvt.j.u(qq,dvt.K);S=qq.prototype;S.Init=function(a,b,c){qq.q.Init.call(this,a,b,c);this.hG={};this.Fa=c;this.wC=t};S.Yj=function(a){if(a&&a.pl)return this.hG[a.pl().Xr()]};S.IB=function(a,b){this.hG[a]=b};S.Ssa=C("Eq");S.P1=function(a,b){var c=this.hG[a];c&&c.P1(b)};S.aU=function(a){(a=this.hG[a])&&a.aU()};S.Nx=function(a){var b=this.eb(a.target);b&&(b.ff&&b.pl)&&(this.Fa.YR=b.pl().Xr());qq.q.Nx.call(this,a)};S.Wn=function(a){this.Fa.YR=s;qq.q.Wn.call(this,a)};
  S.qj=function(a){var b=this.eb(a.target);hs(this,b);if(!b||!b.ob||!b.ob())for(var c in this.hG)if(this.hG[c].jq(s,a.ctrlKey)){var d=dvt.Wa.F1([]);d.clientId=c;this.vc.call(this.hb,d)}qq.q.qj.call(this,a);this.u7(b,a.pageX,a.pageY)};S.u7=function(a,b,c){if(a instanceof Mr){var d=a.iK();d?d.call():a.Hg()!=s?is(this,a,b,c):a.ff()&&(this.Fa.YR=a.pl().Xr())}};
  function is(a,b,c,d){var e=new dvt.or(b.Xr(),b.getId(),b.Hg());e.Ej("clientId",b.pl().Xr());c!=s&&d!=s&&(b=a.Fa.g().eh(c,d),e.Ej("pointXY",{x:b.x,y:b.y}));a.je();a.vc.call(a.hb,e)}function hs(a,b){var c=s,d=s,e=s;b&&(b instanceof Mr?e=b.Pa():b instanceof Xr&&(e=b),b.pl&&(d=b.pl(),c=d.Xr(),d=d.d_.Fk));var f=a.Fa;f.Lp=d;f.BC=c;f.q6=e}S.FE=function(a){a=this.eb(a.target);this.Yj(a)&&(this.Eq&&"none"!=this.Eq)&&(a=new dvt.Ks(dvt.Ks.xda),this.vc.call(this.hb,a))};
  S.Gk=function(a){var b=p,c=a.keyCode,d=this.Ze(),e=d.Pa();c!=dvt.G.Sh&&this.wC?(e.gU(a),a.preventDefault()):(c==dvt.G.ZERO||c==dvt.G.X3)&&a.ctrlKey&&a.shiftKey?(this.Fa.Dsa(),a.preventDefault()):c==dvt.G.PQa?((d=this.Fa.Ie)&&(d instanceof dvt.zc?d.Lsa(!d.isCollapsed()):d instanceof dvt.Y&&d.Nh(!d.Sb())),a.preventDefault()):c==dvt.G.wi?d instanceof Mr&&((e=d.iK())?e.call():d.Hg()!=s?is(this,d):a.shiftKey?this.Fa.qpa():this.Fa.G$(),a.preventDefault()):c==dvt.G.xi&&a.ctrlKey?(hs(this,d),this.NH(d,p),
  a.preventDefault()):(c==dvt.G.ZERO||c==dvt.G.X3)&&a.ctrlKey?(a.altKey?(d=this.Fa,e||(e=d.BKa),e||(e=d.q6),d.RT(e.V())):Cq(this.Fa),a.preventDefault()):c==dvt.G.Sh&&e instanceof Tr?!a.shiftKey&&d.Qd()?(d.Od(),e.gU(a),a.preventDefault(),this.wC=p):(a.shiftKey&&this.wC?(this.HQ(a,d),a.preventDefault()):(this.wC&&d.Uf(),b=qq.q.Gk.call(this,a)),this.wC=t):b=qq.q.Gk.call(this,a);return b};
  S.JH=function(a){if(!this.Qn(a,dvt.Dd.kL)){var b=this.eb(a.target);hs(this,b);if(b instanceof dvt.md)for(var c in this.hG)if(this.hG[c].jq(s,a.ctrlKey)){for(var d=this.hG[c].getSelection(),e=[],f=0;f<d.length;f++)e.push(d[f].getId());d=dvt.Wa.F1(e);this.vc.call(this.hb,d)}qq.q.JH.call(this,a);this.u7(b,a.ts.pageX,a.ts.pageY)}};S.tea=function(a){a=this.eb(a.target);this.Fa.YR=a&&a.ff&&a.pl?a.pl().Xr():s};S.pwa=function(a){a=this.eb(a.target);this.Fa.YR=a&&a.ff&&a.pl?a.pl().Xr():s};
  S.DH=function(a){var b=this.eb(a.target);b&&(this.Yj(b)&&this.Eq&&"none"!=this.Eq)&&(this.NH(b,a.ctrlKey),a=new dvt.Ks(dvt.Ks.xda),this.vc.call(this.hb,a))};S.H3=function(a,b){var c=this.eb(a.target);hs(this,c);qq.q.H3.call(this,a,b)};S.Cp=function(a,b,c){a=this.Fa.v();"dim"==a.hoverBehavior&&(b=b.ze?b.ze():[],a.highlightedCategories=c?b.slice():s,c=dvt.Wa.WG(a.highlightedCategories,c),b=dvt.Qa.hs(a.styleDefaults.hoverBehaviorDelay),this.RH.Gf(c,tq(this.Fa).concat(uq(this.Fa)),b,"any"==a.highlightMatch))};
  S.Gz=function(){var a=this.Fa.v();return"none"!==a.panning||"none"!==a.zooming?dvt.K.OE:a.touchResponse===dvt.K.Tx?dvt.K.Tx:dvt.K.jX};S.eC=function(a){return a==dvt.Dd.kL?t:qq.q.eC.call(this,a)};function oq(a){this.Init(a)}dvt.j.u(oq,dvt.j);S=oq.prototype;S.Init=function(a){this.Fa=a;this.M7=t;this.hM=s;this.D5a=dvt.o.Ta();this.VCa={};this.WCa={}};
  S.parse=function(a){var b=a.animationDuration;"string"==typeof b?"ms"==b.slice(-2)?b=parseInt(b.slice(0,-2))/1E3:"s"==b.slice(-1)&&(b=parseFloat(b.slice(0,-1))):b/=1E3;this.Fa.DB(b);this.Fa.kBa="auto"==a.animationOnDisplay?"alphaFade":a.animationOnDisplay;this.Fa.r0a="auto"==a.animationOnMapChange?"alphaFade":a.animationOnMapChange;this.M7=a.source!=s;var b=this.Fa,c=this.M7?"$"+a.basemap:a.basemap;b.Sha=b.yn&&b.yn!=c;b.yn=c;this.Fa.dca(a.featuresOff);this.Fa.Zba(a.controlPanelBehavior);b=a.tooltipDisplay;
  "shortDesc"==b?b="shortDescOnly":"labelAndShortDesc"==b&&(b="auto");this.Fa.kDa=b;(b=a.popups)&&this.Fa.GV(this.Rp(b));this.Fa.Ssa(a.drilling);this.Fa.Lha=a.animationOnDrill;this.Fa.Xka="auto"==a.initialZooming;this.Fa.NF="fixed"==a.markerZoomBehavior;this.Fa.YS="auto"==a.panning;this.Fa.nO="auto"==a.zooming;this.Fa.rFa=a.panX;this.Fa.sFa=a.panY;this.Fa.Wka=a.zoom;isNaN(a.maxZoom)||(b=Math.max(a.maxZoom,1),this.Fa.h8=b);a._legend&&(this.Fa.YC=a._legend);b=a.styleDefaults;this.Fa.Zra(b);this.hM=new dvt.e(b.areaStyle);
  this.hM.Zh(b.labelStyle);this.z0a=new dvt.e(b.dropTargetStyle);this.Fa.P9=b;if(this.M7&&a.sourceXml)for(var b=(new dvt.VL(this.Fa.g())).parse(a.sourceXml).he(),d,e,c=0;c<b.length;c++)if(d=b[c],e=d.getName(),"layer"==e){e=d;d=e.he();e=e.L("id");for(var f=l,h=l,k=[],m=0;m<d.length;m++)if(f=d[m],h=f.getName(),"image"==h){h={};h.source=f.L("source");h.width=Number(f.L("width"));h.height=Number(f.L("height"));var n=f.L("bidi"),f=f.L("dir");h.dir="true"==n||"rtl"==f?"rtl":"ltr";k.push(h)}this.VCa[e]=k}else if("points"==
  e){d=d.he();k=e=l;m={};f={};for(h=0;h<d.length;h++)e=d[h],k=e.getName(),"point"==k&&(m[e.L("name")]=[Number(e.L("x")),Number(e.L("y"))],f[e.L("name")]=[s,e.L("longLabel")]);Hq.vsa(this.Fa.yn,"cities",f,m,s,s,1)}b=a.areaLayers;c=this.Fa.yn;for(d=0;d<b.length;d++)if(e=dvt.Dc.We(b[d],Gr),m=e.layer){e.areaStyle&&this.hM.Zh(e.areaStyle);e.labelStyle&&this.hM.Zh(e.labelStyle);if(this.M7){f=k=new Vr(this.Fa,m,e.labelDisplay,e.labelType,this.Fa.Ua());m=this.VCa[m];n=s;h=dvt.o.$(f.Fa.g());if(m&&0<m.length){var n=
  m[0].width,q=m[0].height;f.T5a=n;f.S5a=q;for(var r=[],u=0;u<m.length;u++)h&&"rtl"==m[u].dir?r.push(m[u]):!h&&"ltr"==m[u].dir&&r.push(m[u]);f.A0a=0<r.length?r:m;f.C7=cs(f);n=new dvt.yb(f.Fa.g(),f.C7,0,0,n,q)}n&&($r(f,{image:[s,s]}),f.sx={image:n})}else{k=new sq(this.Fa,m,e.labelDisplay,e.labelType,this.Fa.Ua());f=Hq.Cbb(c,m);h=k;u=f;n={};q=this.Fa.g();r=l;for(r in u){n[r]=new dvt.pb(q);if((u=this.hM.I(dvt.e.qb))&&"transparent"!=u)u=new dvt.ua(u),this.Fa.Ai&&u.Ee(p),n[r].xa(u);u=this.hM.I(dvt.e.Kb);
  "transparent"!=u?n[r].fb(u):n[r].ga(s)}h.sx=n;$r(k,f);f=Hq.Bbb(c,m);k.zS=f;m=Hq.Tbb(this.Fa.yn,m);k.Ro=m}k.yla=this.hM;k.yY=this.z0a;k.Jsa("auto"==e.animationOnLayerChange?"alphaFade":e.animationOnLayerChange);k.DB(this.Fa.mb());this.Fa.Vh.push(k);e.areaDataLayer&&xq(this,[e.areaDataLayer],k,s,p);e.pointDataLayers&&xq(this,e.pointDataLayers,k,s,t)}xq(this,a.pointDataLayers,s,s,t)};
  function xq(a,b,c,d,e){if(b)for(var f=0;f<b.length;f++){var h=dvt.Dc.We(b[f],Hr);if(h.markerDefs){var k=h.markerDefs,m;for(m in k)if(!a.WCa[m]){var n=(new dvt.VL(a.Fa.g())).parse(k[m]);a.WCa[m]=dvt.ck.uab(a.Fa.g(),n)}}h.legend&&(a.Fa.YC=h.legend);if(c){if(c instanceof sq&&e)for(k in e=c,k=l,e.Az)e.Iy[k]=p,e.Ky[k]=p}else c=new Yr(a.Fa,h.id,a.Fa.Ua()),a.Fa.Vh.push(c);k=new ds(a.Fa,c,h.id,a.Fa.Ua(),h);e=h.selectionMode;"single"==e?k.JB(dvt.Tc.Rz):"multiple"==e&&k.JB(dvt.Tc.Oz);k.Jsa(h.animationOnDataChange);
  k.DB(a.Fa.mb());var q=s;c instanceof sq&&(q=h.isolatedItem);var r=h.disclosedItems,n=[],u;e=c instanceof sq;var v;h.popups&&(v=a.Rp(h.popups));var y=a.Fa.v().hiddenCategories,x=h.areas;if(x)for(var z=0;z<x.length;z++)if(y&&dvt.fa.kz(y,x[z].categories))fs(k,s);else{var A=x[z].location;if(q)if(q!=x[z].id)continue;else u=A;r&&-1!=dvt.fa.nb(r,x[z].id)&&n.push(A);var D=a,G=c,K=k,A=x[z],I=A.location;if(G.sx[I]&&A.color){G.Iy[I]=t;I=new Pr(D.Fa.g(),D.Fa.Ai);A=dvt.Dc.We(A,D.Fa.P9.dataAreaDefaults);A.labelStyle||
  (A.labelStyle=D.Fa.P9.labelStyle);var L=new dvt.ua(A.hoverColor,1,2),M=new dvt.ua(A.selectedInnerColor,1,1),E=new dvt.ua(A.selectedOuterColor,1,4);I.Xt(L,s).Zt(M,E);L=new dvt.ua(A.drilledInnerColor,1,2);E=new dvt.ua(A.drilledOuterColor,1,4);M=I;M.P6=L;M.P6&&M.Ai&&M.P6.Ee(p);M.Q6=E;M.Q6&&M.Ai&&M.Q6.Ee(p);G.Ky[A.location]=t;js(D,A,I);D=D.vM(G,K,A,I,p);A=new Lr(A,K,I,D)}else A=s;v&&A.GV(v);A&&(A.ai(k.ob()),fs(k,A))}x=h.renderer;if((K=h.markers)&&!x){L=a.Fa;z=K;A=-Infinity;D=Infinity;for(G=0;G<z.length;G++)I=
  z[G].value,I==s||0>=I||(A=Math.max(A,I),D=Math.min(D,I));if(Infinity!==D){L=0.5*Math.min(L.getWidth(),L.getHeight());for(G=0;G<z.length;G++)I=z[G].value,z[G]._size=I==s||0>=I?0:dvt.Tn.$La(I,D,A,6,L)}for(z=0;z<K.length;z++)if(y&&dvt.fa.kz(y,K[z].categories))es(k,s);else{A=K[z].location;if(q)if(q!=K[z].id)continue;else u=A;A=a.wM(c,k,K[z],e);v&&A.GV(v);A&&(A.ai(k.ob()),es(k,A))}}if(y=h.images)for(z=0;z<y.length;z++){A=y[z].location;if(q)if(q!=y[z].id)continue;else u=A;A=a.Uia(c,k,y[z],e);v&&A.GV(v);
  A&&es(k,A)}if(x)for(z=0;z<K.length;z++){A=K[z].location;if(q)if(q!=K[z].id)continue;else u=A;r&&-1!=dvt.fa.nb(r,K[z].id)&&n.push(A);y=a.Fa.v()._contextHandler(a.Fa.ib(),s,K[z],{hovered:t,selected:t,focused:t},s);I=x(y);D=a;G=c;y=k;A=K[z];L=I;M=e;(I=ks(y,A))?(M&&(G.Ky[A.location]=t),D=new Tr(D.Fa.g(),L,D.Fa.P9.dataAreaDefaults),A=new Mr(A,y,D,s,I)):A=s;v&&A.GV(v);A&&(A.ai(k.ob()),es(k,A))}if(u)for(z in k.pmb=q,q=c,r=u,q.vS=r,q.BS=s,z=l,q.sx)z!=r&&(q.Iy[z]=t);if((h=h.selection)&&0<h.length)k.Rka=h;
  n&&0<n.length&&(a.Fa.YY[c.Fk]=[k.Xr(),n]);d?c.hta(k,a.Fa.Ma.Ja.lb(),d):c.Im[k.Xr()]=k}}
  S.wM=function(a,b,c,d){var e=c._size,f=ks(b,c);if(!f||0===e)return s;var h=this.Fa.P9.dataMarkerDefaults,k=new dvt.e(h.labelStyle);k.Zh(c.labelStyle);c=dvt.Dc.We(c,h);c.labelStyle=k.toString();if(e!=s)h=e;else{h=c.scaleX;h==s&&(h=1);e=c.scaleY;e==s&&(e=1);var m=c.width;m==s&&(m=this.Fa.v().styleDefaults.dataMarkerDefaults.width);k=c.height;k==s&&(k=this.Fa.v().styleDefaults.dataMarkerDefaults.height);h*=m;e*=k}k=c.borderRadius;c.source?h=new dvt.Kf(this.Fa.g(),f.x,f.y,h,e,k,c.source,c.sourceSelected,
  c.sourceHover,c.sourceHoverSelected):(m=c.shape?c.shape:this.Fa.v().styleDefaults.dataMarkerDefaults.shape,h=new dvt.pa(this.Fa.g(),m,this.Fa.Xd,f.x,f.y,h,e,k));(e=c.rotation)&&h.Co(e*Math.PI/180);d&&(a.Ky[c.location]=t);js(this,c,h);a=this.vM(a,b,c,h,d);return new Mr(c,b,h,a,f)};
  S.Uia=function(a,b,c,d){var e=ks(b,c);if(!e)return s;var f=new dvt.yb(this.Fa.g(),c.url),h=c.width,k=c.height;h!=s&&k!=s&&(f.Ia(e.x-h/2),f.kb(e.y-k/2),f.Xa(h),f.sb(k));d&&(a.Ky[c.location]=t);var m=new Mr(c,b,f,s,e);(!h||!k)&&dvt.mr.ar(this.Fa.g(),c.url,function(a){a&&(a.width&&a.height)&&(f.Xa(a.width),f.sb(a.height),f.Ia(e.x-a.width/2),f.kb(e.y-a.height/2),m.m5())});return m};
  S.vM=function(a,b,c,d,e){var f=c.location,h=c.label,k=h?"on":"off";e&&(k=a.iaa());d=d instanceof dvt.pb;if(!h&&e&&(d&&"off"!=k||!d&&"on"==k))h="long"==a.VFa?a.Az[f][1]:a.Az[f][0];if(h){var m=this.Fa.g(),m=d?new Lq(m,h,a.PMa?a.PMa(f):s,k,b.lY,this.Fa.Ai):new dvt.ba(m,h,0,0);b=new dvt.e;d&&b.We(new dvt.e(a.yla));c.labelStyle&&b.Zh(c.labelStyle);a=b.I(dvt.e.kc);b.oa(dvt.e.kc,s);m.Cb(b);if(m instanceof Lq&&(dvt.o.gP()||!a))a=dvt.H.bn(c.color);a&&m.fb(a)}return m};
  function js(a,b,c){var d=b.pattern,e=b.color,f=a.D5a||a.Fa.Xd==dvt.e.vf?"none":b.visualEffects;if(c instanceof dvt.pa){if("none"!=b.borderStyle){var h=b.borderWidth;"string"==typeof h&&(h="px"==h.slice(-2)?parseFloat(b.borderWidth.slice(0,-2)):parseFloat(b.borderWidth));var k=new dvt.ua(b.borderColor,1,h);a.Fa.NF||k.Ee(p);k.Nn(dvt.Rc.Ow(b.borderStyle));c.xa(k)}h=b.opacity;"none"!=f?c.ga(new dvt.S3.nLa(e,c,h)):d?c.ga(new dvt.mc(d,e,"#FFFFFF")):e&&c.fb(e,h)}else if(c instanceof dvt.pb){if(b=b.borderColor)k=
  new dvt.ua(b),a.Fa.Ai&&k.Ee(p),c.xa(k);d?(a=new dvt.mc(d,e,"#FFFFFF"),c.B7a=a):c.fb(e,h)}}function ks(a,b){var c=a.Fa,d=c.yn,e=b.location;return e?((c=Hq.zbb(d,a.d_.Fk,e))||(c=Hq.Ubb(d,e)),c):X.nhb(b.x,b.y,c.yn)}S.Rp=function(a){for(var b=[],c=0;c<a.length;c++)b.push(new dvt.Nc(a[c].popupId,a[c].triggerType,s,a[c].align));return b};var X={};dvt.j.u(X,dvt.j);X.pC=new dvt.U(0,0,800,500);X.ZL=6378206.4;X.bha=new dvt.U(500,200,200,200);X.aha=new dvt.U(163,-49,17,17);
  X.rza=new dvt.U(-17.379205428479874,-37.201510854305546,68.66391442808313,77.50071544582713);X.uza=new dvt.U(-0.8436866097568272,-0.7626456732012923,1.8336308036296942,1.5748427214611724);X.Eza=new dvt.U(113.29667079927977,-52.89550592498755,65.25257389065216,42.123114617504626);X.Tza=new dvt.U(-0.47944476148667076,-0.0014669405958800579,0.7364925893845453,0.6293972741802124);X.rAa=new dvt.U(-0.6154469465354344,-0.24589767758847714,1.2448236795108683,1.2631535127174947);
  X.BAa=new dvt.U(-80.60817722658722,-60.796273249672765,46.608687602908056,66.96595767361796);X.tza=new dvt.U(68.20516856593524,-52.89892708045518,111.65739821771903,116.55460214469134);X.Sza=new dvt.U(-24.543831069368586,-37.202500659225905,204.54283106936856,164.9634493690208);X.lAa=new dvt.U(-117.12451221229134,-54.95921623126266,82.33223251442891,87.67786623127876);X.FAa=new dvt.U(-0.6154656300926513,0.0507209798775865,1.0153104799231851,0.966537441082997);X.HAa=new dvt.U(-171.9,-62.6,349.8,150.8);
  X.KWa=new dvt.U(172,51,8,3);X.LWa=new dvt.U(-180,51,51,21);X.BYa=new dvt.U(-178.5,18.9,35,11);X.a_a=new dvt.U(-124.8,24.4,58,25.5);X.sza=new dvt.U(-187.5517578125,59.82610321044922,57.562225341796875,43.83738708496094);X.fAa=new dvt.U(-160.23606872558594,18.91549301147461,5.4374847412109375,3.3189010620117188);X.EAa=new dvt.U(-2386803.25,-1183550.5,4514111,2908402);X.Tga=new dvt.U(165,400,100,100);X.Ega=new dvt.U(-75,350,240,150);
  X.xr=[[1,0],[0.9986,0.0314],[0.9954,0.0629],[0.99,0.0943],[0.9822,0.1258],[0.973,0.1572],[0.96,0.1887],[0.9427,0.2201],[0.9216,0.2515],[0.8962,0.2826],[0.8679,0.3132],[0.835,0.3433],[0.7986,0.3726],[0.7597,0.4008],[0.6732,0.4532],[0.6213,0.4765],[0.5722,0.4951],[0.5322,0.5072]];
  X.nhb=function(a,b,c){var d;switch(c){case "africa":d=X.EF(X.rza,X.MY(a,b));break;case "asia":d=X.EF(X.uza,X.f7(40,95,20,60,a,b),X.fm(5));break;case "australia":d=X.s3a(a,b);break;case "europe":d=X.EF(X.Tza,X.f7(35,25,40,65,a,b),X.fm(10));break;case "northAmerica":d=X.EF(X.rAa,X.f7(23,-96,20,60,a,b));break;case "southAmerica":d=X.EF(X.BAa,new dvt.N(a,b),X.fm(5));break;case "apac":d=X.EF(X.tza,X.MY(a,b));break;case "emea":d=X.EF(X.Sza,X.MY(a,b));break;case "latinAmerica":d=X.EF(X.lAa,new dvt.N(a,b));
  break;case "usaAndCanada":d=X.EF(X.FAa,X.f7(23,-96,20,60,a,b));break;case "worldRegions":d=X.WEa(a,b);break;case "usa":d=X.C4a(a,b);break;case "world":d=X.WEa(a,b)}return d?new dvt.N(10*d.x,10*d.y):s};X.C4a=function(a,b){var c;X.KWa.tk(a,b)||X.LWa.tk(a,b)?(c=X.Qu(X.sza,X.Ega),c=X.xX(c,X.MY(a,b))):X.BYa.tk(a,b)?(c=X.Qu(X.fAa,X.Tga),c=X.xX(c,new dvt.N(a,b))):X.a_a.tk(a,b)&&(c=X.Qu(X.EAa,X.pC),c=X.xX(c,X.k4a(new dvt.N(-95,36),a,b)));return X.h7(c)};
  X.WEa=function(a,b){var c=X.Qu(X.HAa,X.pC),c=X.xX(c,X.s4a(a,b));return X.h7(c)};X.s3a=function(a,b){var c;c=X.aha.tk(a,b)?X.Qu(X.aha,X.bha):X.Qu(X.Eza,X.pC);c=X.xX(c,X.MY(a,b));return X.h7(c)};X.EF=function(a,b,c){a=X.Qu(a,X.pC);if(c){var d=new dvt.Qb;d.rotate(c);a=X.vCa(a,d)}b=a.Me(b);return X.h7(b)};X.h7=function(a){var b=X.pC;return!a||!b.tk(a.x,a.y)?s:a};
  X.f7=function(a,b,c,d,e,f){b=X.fm(b);a=X.fm(a);c=X.fm(c);d=X.fm(d);d=0.5*(Math.sin(c)+Math.sin(d));c=Math.pow(Math.cos(c),2)+2*d*Math.sin(c);a=c-2*d*Math.sin(a);a=Math.sqrt(a)/d;e=d*(X.fm(e)-b);f=c-2*d*Math.sin(X.fm(f));f=Math.sqrt(f)/d;return new dvt.N(f*Math.sin(e),a-f*Math.cos(e))};X.MY=function(a,b){var c=Math.log(Math.tan(0.25*Math.PI+0.5*X.fm(b)));return new dvt.N(a,X.MV(c))};
  X.k4a=function(a,b,c){b=X.fm(b);c=X.fm(c);var d=X.fm(a.x);a=X.fm(a.y);return new dvt.N(Math.cos(c)*Math.sin(b-d)*X.ZL,(Math.cos(a)*Math.sin(c)-Math.sin(a)*Math.cos(c)*Math.cos(b-d))*X.ZL)};X.s4a=function(a,b){var c=Math.floor(Math.abs(b)/5);c>=X.xr.length-1&&(c=X.xr.length-2);var d=(Math.abs(b)-5*c)/5,e=a*(X.xr[c][0]+d*(X.xr[c+1][0]-X.xr[c][0])),c=X.xr[c][1]+d*(X.xr[c+1][1]-X.xr[c][1]);0>b&&(c*=-1);return new dvt.N(e,180*c)};X.xX=function(a,b){return new dvt.N(b.x*a.xf+a.Yd,b.y*a.Oi+a.Ud)};
  X.vCa=function(a,b){var c=a.xf,d=a.Oi;return new dvt.Qb(b.xf*c,b.Kk*c,b.Qj*d,b.Oi*d,a.Yd+b.Yd*c,a.Ud+b.Ud*d)};X.Qu=function(a,b){var c=b.x,d=b.y,e=a.a,f=a.b,h=0,h=b.a/e,k=b.b/f,h=h<=k?h:k,c=c-a.x*h,d=d+a.y*h,c=c+(b.a-e*h)/2,d=d+(b.b-(b.b-f*h)/2);return new dvt.Qb(h,0,0,-h,c,d)};X.fm=function(a){return a*(Math.PI/180)};X.MV=function(a){return a*(180/Math.PI)};
  X.jfb=function(a,b,c){var d;a/=10;b/=10;switch(c){case "africa":d=X.FF(X.rza,new dvt.N(a,b));d=X.KY(d.x,d.y);break;case "asia":d=X.FF(X.uza,new dvt.N(a,b),X.fm(5));d=X.n7(40,95,20,60,d.x,d.y);break;case "australia":d=X.W3a(a,b);break;case "europe":d=X.FF(X.Tza,new dvt.N(a,b),X.fm(10));d=X.n7(35,25,40,65,d.x,d.y);break;case "northAmerica":d=X.FF(X.rAa,new dvt.N(a,b));d=X.n7(23,-96,20,60,d.x,d.y);break;case "southAmerica":d=X.FF(X.BAa,new dvt.N(a,b),X.fm(5));break;case "apac":d=X.FF(X.tza,new dvt.N(a,
  b));d=X.KY(d.x,d.y);break;case "emea":d=X.FF(X.Sza,new dvt.N(a,b));d=X.KY(d.x,d.y);break;case "latinAmerica":d=X.FF(X.lAa,new dvt.N(a,b));break;case "usaAndCanada":d=X.FF(X.FAa,new dvt.N(a,b));d=X.n7(23,-96,20,60,d.x,d.y);break;case "worldRegions":d=X.tEa(a,b);break;case "usa":d=X.Z3a(a,b);break;case "world":d=X.tEa(a,b)}return d?d:new dvt.N(a,b)};
  X.Z3a=function(a,b){var c;return X.Ega.tk(a,b)?(c=X.Qu(X.sza,X.Ega),c.SD(),c=c.Me(new dvt.N(a,b)),X.KY(c.x,c.y)):X.Tga.tk(a,b)?(c=X.Qu(X.fAa,X.Tga),c.SD(),c.Me(new dvt.N(a,b))):X.pC.tk(a,b)?(c=X.Qu(X.EAa,X.pC),c.SD(),c=c.Me(new dvt.N(a,b)),X.X3a(new dvt.N(-95,36),c.x,c.y)):new dvt.N(a,b)};X.tEa=function(a,b){var c=X.Qu(X.HAa,X.pC);c.SD();c=c.Me(new dvt.N(a,b));return X.Y3a(c.x,c.y)};
  X.W3a=function(a,b){var c;c=X.bha.tk(a,b)?X.Qu(X.aha,X.bha):X.Qu(X.Eza,X.pC);c.SD();c=c.Me(new dvt.N(a,b));return X.KY(c.x,c.y)};X.FF=function(a,b,c){a=X.Qu(a,X.pC);if(c){var d=new dvt.Qb;d.rotate(c);a=X.vCa(a,d)}a.SD();return a.Me(b)};
  X.n7=function(a,b,c,d,e,f){b=X.fm(b);a=X.fm(a);c=X.fm(c);d=X.fm(d);d=0.5*(Math.sin(c)+Math.sin(d));c=Math.pow(Math.cos(c),2)+2*d*Math.sin(c);a=c-2*d*Math.sin(a);a=Math.sqrt(a)/d;var h=Math.sqrt(e*e+(a-f)*(a-f));return new dvt.N(X.MV(b+Math.atan(e/(a-f))/d),X.MV(Math.asin((c-h*h*d*d)/(2*d))))};X.KY=function(a,b){return new dvt.N(a,X.MV(2*Math.atan(Math.exp(X.fm(b)))-0.5*Math.PI))};
  X.X3a=function(a,b,c){b/=X.ZL;c/=X.ZL;var d=X.fm(a.y),e=Math.sqrt(b*b+c*c),f=Math.asin(e);return new dvt.N(X.MV(X.fm(a.x)+Math.atan(b*Math.sin(f)/(e*Math.cos(d)*Math.cos(f)-c*Math.sin(d)*Math.sin(f)))),X.MV(Math.asin(Math.cos(f)*Math.sin(d)+c*Math.sin(f)*Math.cos(d)/e)))};
  X.Y3a=function(a,b){var c=Math.floor(Math.abs(b)/5);c>=X.xr.length-1&&(c=X.xr.length-2);var d=(Math.abs(b/180)-X.xr[c][1])/(X.xr[c+1][1]-X.xr[c][1]),e=5*d+5*c,c=a/(X.xr[c][0]+d*(X.xr[c+1][0]-X.xr[c][0]));0>b&&(e*=-1);return new dvt.N(c,e)};function Dq(a,b,c){this.Init(a,b,c)}dvt.j.u(Dq,dvt.ha);
  Dq.prototype.Init=function(a,b,c){Dq.q.Init.call(this,a,b,c);this.Eq=b.Eq;this.Br=b.ac();this.N2a=dvt.j.Lh(b,b.qpa);this.L2a=dvt.j.Lh(b,b.G$);this.G8a=dvt.j.Lh(b,b.Dsa);this.jw=this.kw=this.dG=s;this.tDa=this.sDa=t;this.Ea=b.Yw()};function Eq(a,b){a.sDa=b;a.jw&&a.jw.Fm(b)}function Fq(a,b){a.tDa=b;a.kw&&a.kw.Fm(b)}
  Dq.prototype.XW=function(a){if(this.Eq&&"none"!=this.Eq){var b=dvt.Qa.I(this.Ea,dvt.ha.iL,0);this.dG=dvt.O.Dab(this.g(),this.Br,this.Ea);this.dG.Ut(this.G8a,this);this.dG.Mn(dvt.D.na(dvt.D.Wg,"CONTROL_PANEL_RESET"));this.Ra.jb(this.dG,this.dG);a.k(this.dG);this.jw=dvt.O.oab(this.g(),this.Br,this.Ea);this.jw.Ut(this.L2a,this);this.jw.Mn(dvt.D.na(dvt.D.Wg,"CONTROL_PANEL_DRILLDOWN"));this.Ra.jb(this.jw,this.jw);this.jw.Z(b);this.jw.Fm(this.sDa);a.k(this.jw);this.kw=dvt.O.pab(this.g(),this.Br,this.Ea);
  this.kw.Ut(this.N2a,this);this.kw.Mn(dvt.D.na(dvt.D.Wg,"CONTROL_PANEL_DRILLUP"));this.Ra.jb(this.kw,this.kw);this.kw.Z(2*b);this.kw.Fm(this.tDa);a.k(this.kw)}};Dq.prototype.kv=function(a,b){var c=Dq.q.kv.call(this,a,b);!c&&this.Sb()&&("drillDown"==a&&this.jw&&this.jw.isEnabled()?c=this.jw:"drillUp"==a&&this.kw&&this.kw.isEnabled()?c=this.kw:"reset"==a&&(this.dG&&this.dG.isEnabled())&&(c=this.dG));return c};
  // To avoid changing the basemaps, which each call the basemap manager, we will
  // put the basemap manager onto the returned object. We'll only do this if it's
  // not defined, since in min/min-debug mode, the non-exported version is on the window.
  if(!dvt['DvtBaseMapManager'])
    dvt['DvtBaseMapManager'] = DvtBaseMapManager;
  
    return dvt;
  });
  