text: if(!_.annotations){_.annotations=1;(function($){var KU=function(a,b,c,d,e){var f=e.left+e.width,h=e.top+e.height,k=(d-b)/(c-a),l,m,p=!1;if((0,window.isNaN)(k))if(a<e.left||a>f||b<e.top||b>h)p=!0;else{var q=l=a;var r=m=b}else if(k)if((0,window.isFinite)(k)){var t=b-a*k,u=k*e.left+t,v=k*f+t;u<e.top&&v<e.top||u>h&&v>h?p=!0:(l=(e.top-t)/k,k=(h-t)/k,u<e.top?(q=l,r=e.top):u>h?(q=k,r=h):(q=e.left,r=u),v<e.top?m=e.top:v>h?(l=k,m=h):(l=f,m=v))}else a<e.left||a>f?p=!0:(q=l=a,r=e.top,m=h);else b<e.top||b>h?p=!0:(q=e.left,l=f,r=m=b);if(p)return null;if(a>
  c||a==c&&b>d)a=q,q=l,l=a,a=r,r=m,m=a;return[q,r,l,m]},LU=function(a,b,c,d,e){if(e=KU(a,b,c,d,e)){if(c-=a){d=e[0]-a;var f=e[2]-a}else if(c=d-b)d=e[1]-b,f=e[3]-b;else return e;0>f*c?e=null:0>c*d&&(e[0]=a,e[1]=b)}return e},MU=function(a,b,c,d,e){if(e=KU(a,b,c,d,e)){var f;if(f=c-a){var h=e[0]-a;var k=e[2]-a;var l=e[0]-c;var m=e[2]-c}else if(f=d-b)h=e[1]-b,k=e[3]-b,l=e[1]-d,m=e[3]-d;else return e;0>k*f||0<l*f?e=null:(0>h*f&&(e[0]=a,e[1]=b),0<m*f&&(e[2]=c,e[3]=d))}return e},NU=function(a){function b(){return new $.xv(!0,
  !0,!0)}$.X.call(this);this.rb=a;this.va=this.D=null;this.state=$.Jk;this.Ia=0;this.la=this.Ie&1?"xAnchor":null;this.ta=this.Ie&2?"valueAnchor":null;this.Xb=7<=this.Ie;this.bf=!1;this.coords={};this.coords.xAnchor=window.NaN;this.coords.valueAnchor=window.NaN;this.coords.secondXAnchor=window.NaN;this.coords.secondValueAnchor=window.NaN;this.coords.thirdXAnchor=window.NaN;this.coords.thirdValueAnchor=window.NaN;this.G=null;this.ga=new $.J(0,0,0,0);this.Hc=!0;$.T(this.za,Bga);a={};$.T(a,this.Cg());this.ia=
  new $.Gv(this,a,$.Jk);$.Ep(this.ia,"markersFactoryConstructor",function(){return new $.xv(!0,!0)});this.ia.ca.markersAfterInitCallback=$.Mv;a={};$.T(a,this.Cg());this.Ba=new $.Gv(this,a,1);this.Ba.ca.labelsFactoryConstructor=$.Iv;this.Ba.ca.markersFactoryConstructor=b;a={};$.T(a,this.Cg());this.Ga=new $.Gv(this,a,2);this.Ga.ca.labelsFactoryConstructor=$.Iv;this.Ga.ca.markersFactoryConstructor=b},OU=function(a,b,c){a.P=b;a.$=c;a.u(128)},PU=function(a){a.kb();a.la&&(a.ca[a.la]=a.Qa().Rc((a.P-a.ga.left)/
  a.ga.width));a.ta&&(a.ca[a.ta]=a.Xa().Rc((a.ga.Na()-a.$)/a.ga.height));a.P=a.$=window.NaN;a.ra=!1;a.u(64)},QU=function(a,b,c,d,e){b&&(a.coords[b]=a.G[b]+d,a.ca[b]=a.Qa().Rc((a.coords[b]-a.ga.left)/a.ga.width));c&&(a.coords[c]=a.G[c]+e,a.ca[c]=a.Xa().Rc((a.ga.Na()-a.coords[c])/a.ga.height))},RU=function(a){a.kb();return!a.la&&!a.ta},SU=function(a,b){return a.ga.left+b*a.ga.width},TU=function(a,b){return a.ga.Na()-b*a.ga.height},VU=function(a,b){if(!a)return Cga;var c=b+"|"+a+"|true",d=UU[c];if(!d){switch(b){case 2:d=
  $.Bk;break;case 3:d=$.Ck;break;default:case 1:d=$.Dk}UU[c]=d=$.ra(Dga,a,d,3==b,!0)}return d},Dga=function(a,b,c,d,e,f,h){f=$.Hk(f);if(d&&f!=$.Jk){var k=e.sc(a,f,b);c&&!0===k&&(k=b(e.Bg()));if($.n(k)){if(!$.E(k))return k;if(c)return c=e.Qh(),b(k.call(c,c))}}a=e.sc(a,0,b);c&&!0===a&&(a=b(e.Bg()));$.E(a)&&(c=c?e.Qh():e.Ee(void 0,h),a=b(a.call(c,c)));k&&(c=e.Ee(a,h),a=b(k.call(c,c)));return a},Cga=function(){return"none"},WU=function(a){$.Dp.call(this);this.Ua=a;this.g=this.b=null;this.o=!1;this.f=[];
  this.Bt(!1)},XU=function(a,b){if(a.o!=b){a.o=b;$.V(a.Ua);for(var c=0;c<a.f.length;c++){var d=a.f[c],e=b;d.ta!=e&&(d.ta=e,!e&&d.g&&(d.g.cc("mouseout",d.pQ,!1,d),d.g.cc("mousedown",d.oQ,!1,d),$.xd($.Sj,"mouseup",d.yJ,!1,d),$.xd($.Sj,"mousemove",d.yJ,!1,d)),d.u(128,1))}a.Ua.ba(!0)}},ZU=function(a,b){if($.z(b)){var c=b;var d=void 0}else $.D(b)&&(c=b.type,d=b);c=$.cj(Ega,c,"line");c=new YU[c](a);c.hb("chart.defaultAnnotationSettings.base");c.hb("chart.defaultAnnotationSettings."+$.Sk(c.La()));c.yz();c.N(d);
  return c},dV=function(a){NU.call(this,a);this.b=null;this.f=VU("stroke",2);$.T(this.za,$U);$.T(this.za,aV);$.T(this.za,bV);$.T(this.za,cV)},eV=function(a){NU.call(this,a);this.b=null;this.o=VU("stroke",2);this.f=VU("fill",1);this.g=VU("hatchFill",3);$.T(this.za,$U);$.T(this.za,aV);$.T(this.za,bV);$.T(this.za,cV)},fV=function(a){NU.call(this,a);this.b=this.f=null;this.o=[];this.Ra=VU("stroke",2);this.bd=VU("trend",2);this.Ya=!1;$.T(this.za,$U);$.T(this.za,aV);$.T(this.za,bV);this.ia.ca.labelsAfterInitCallback=
  $.Lv},gV=function(a,b){var c=a.eA().Ff();c=1-(b-c.top)/c.height;return a.Xa().Rc(c)},hV=function(a,b){var c=a.eA().Ff();c=(b-c.left)/c.width;return a.Qa().Rc(c)},iV=function(a){fV.call(this,a)},jV=function(a){fV.call(this,a);this.ea=[];this.g=null;this.oc=VU("grid",2)},kV=function(a){fV.call(this,a)},lV=function(a){fV.call(this,a)},mV=function(a){NU.call(this,a);this.b=null;this.f=VU("stroke",2);$.T(this.za,aV)},nV=function(a){NU.call(this,a);this.b=null;this.f=VU("stroke",2);$.T(this.za,$U);$.T(this.za,
  aV);$.T(this.za,bV)},oV=function(a){NU.call(this,a);$.T(this.za,$U);$.T(this.za,aV);$.T(this.za,Fga);$.Xo(this.za,256,16,1,1);delete this.za.fontFamily;delete this.za.fontStyle;delete this.za.fontVariant;delete this.za.fontWeight;delete this.za.fontSize;delete this.za.fontColor;delete this.za.fontOpacity},pV=function(a){return"left-top"==a||"left-center"==a||"left-bottom"==a},qV=function(a){return"right-top"==a||"right-center"==a||"right-bottom"==a},rV=function(a){return"left-top"==a||"center-top"==
  a||"right-top"==a},sV=function(a){return"left-bottom"==a||"center-bottom"==a||"right-bottom"==a},tV=function(a){NU.call(this,a);this.b=null;this.f=VU("stroke",2);$.T(this.za,$U);$.T(this.za,aV);$.T(this.za,bV)},uV=function(a){NU.call(this,a);this.Hc=!1;this.b=null;this.o=VU("stroke",2);this.f=VU("fill",1);this.g=VU("hatchFill",3);$.T(this.za,$U);$.T(this.za,aV);$.T(this.za,Gga)},vV=function(a){NU.call(this,a);this.b=null;this.f=VU("stroke",2);$.T(this.za,$U);$.T(this.za,aV);$.T(this.za,bV)},wV=function(a){NU.call(this,
  a);this.b=null;this.o=VU("stroke",2);this.f=VU("fill",1);this.g=VU("hatchFill",3);$.T(this.za,$U);$.T(this.za,aV);$.T(this.za,bV)},xV=function(a){NU.call(this,a);this.b=null;this.o=VU("stroke",2);this.f=VU("fill",1);this.g=VU("hatchFill",3);$.T(this.za,$U);$.T(this.za,aV);$.T(this.za,bV);$.T(this.za,cV)},yV=function(a){NU.call(this,a);this.b=null;this.o=VU("stroke",2);this.f=VU("fill",1);this.g=VU("hatchFill",3);$.T(this.za,$U);$.T(this.za,aV);$.T(this.za,bV);$.T(this.za,cV)},zV=function(a){NU.call(this,
  a);this.b=null;this.f=VU("stroke",2);$.T(this.za,$U)},AV=function(a,b){$.X.call(this);this.b=a;a.f&&a.f.push(this);this.Ia=b;this.zf=[];this.g=this.f=null;this.ta=!1;this.G=this.D=window.NaN;this.o=this.Lj=null},BV=function(a,b){var c=$.Ei(a.O().Da());a.D=b.clientX-c.x;a.G=b.clientY-c.y},CV=function(a,b,c){var d=!c||b!=a.o;c?(a.zf.push(b),a.o=null,a.f&&b.O(a.f)):a.o=b;var e=b.D!=a;b.ra=!c;b.D=a;e&&b.u(64);b.lb(a);$.U(b,a.CU,a);d&&a.u(64,1)},DV=function(a,b){if($.n(b)){$.$c(a.zf);a.zf.length=0;if($.A(b))for(var c=
  0;c<b.length;c++)CV(a,ZU(a.b,b[c]),!0);return a}return(0,$.Va)(a.zf,function(a){return a.F()})},EV=function(a){this.g=a;this.b=null;this.o=window.NaN;$.mf.call(this,a.f.da());this.qa("start",this.Y$,!1,this);this.qa("end",this.W$,!1,this)},Ega={mia:"ray",Mr:"line",nha:"infinite-line",ija:"vertical-line",mha:"horizontal-line",H2:"rectangle",u1:"ellipse",Zia:"triangle",Yia:"trend-channel",sfa:"andrews-pitchfork",Yga:"fibonacci-fan",Xga:"fibonacci-arc",Zga:"fibonacci-retracement",$ga:"fibonacci-timezones",
  wt:"marker",qha:"label"},YU={},FV={};$.R(FV,0,"color",$.kp);$.R(FV,0,"allowEdit",$.Wo);$.R(FV,0,"hoverGap",function(a){return $.fn(a,window.NaN,!0)});var Bga=[["color",16,1],["allowEdit",1024,1],["hoverGap",256,1]],GV={};$.R(GV,0,"xAnchor",$.Vo);var $U=[["xAnchor",192,1]],HV={};$.R(HV,0,"valueAnchor",$.Vo);var aV=[["valueAnchor",192,1]],IV={};$.R(IV,0,"secondXAnchor",$.Vo);$.R(IV,0,"secondValueAnchor",$.Vo);var bV=[["secondXAnchor",192,1],["secondValueAnchor",192,1]],JV={};
  $.R(JV,0,"thirdXAnchor",$.Vo);$.R(JV,0,"thirdValueAnchor",$.Vo);var cV=[["thirdXAnchor",192,1],["thirdValueAnchor",192,1]],KV={};$.R(KV,0,"markerType",$.uj);$.R(KV,0,"anchor",$.hj);$.R(KV,0,"offsetX",$.Uo);$.R(KV,0,"offsetY",$.Uo);var Gga=[["markerType",256,1],["anchor",256,1],["offsetX",256,1],["offsetY",256,1]],LV=$.Po();delete LV.fontFamily;delete LV.fontStyle;delete LV.fontVariant;delete LV.fontWeight;delete LV.fontSize;delete LV.fontColor;delete LV.fontOpacity;
  $.Mo(LV,[[0,"text",$.So],[0,"anchor",$.hj],[0,"offsetX",$.Uo],[0,"offsetY",$.Uo],[0,"width",$.sp],[0,"height",$.sp]]);
  var Fga=[["text",256,1],["anchor",256,1],["offsetX",256,1],["offsetY",256,1],["width",256,1],["height",256,1]],MV=[["stroke",272,1]],Hga=[["grid",16,1]],Iga=[["size",256,1]],Jga=[["fontFamily",256,1],["fontStyle",256,1],["fontVariant",256,1],["fontWeight",256,1],["fontSize",256,1],["fontColor",16,1],["fontOpacity",16,1],["fontDecoration",256,1]],NV=$.Fa([["fill",16,1],["hatchFill",16,1]],MV),Kga=$.Fa(MV,[["trend",16,1]]),OV=[["labels",0,0]];$.H(NU,$.ns);$.$o(NU,["markers"],"normal");$.Zo(NU,FV);$.g=NU.prototype;$.g.Cg=function(){return[["markers",0,0]]};$.g.Ma=function(a){return $.n(a)?(this.ia.N(a),this):this.ia};$.g.fb=function(a){return $.n(a)?(this.Ba.N(a),this):this.Ba};$.g.selected=function(a){return $.n(a)?(this.Ga.N(a),this):this.Ga};$.g.sc=function(a,b){return(0==b?this.ia:1==b?this.Ba:this.Ga).i(a)};$.g.oa=$.ns.prototype.oa|2E3;$.g.ua=$.ns.prototype.ua;$.g.Ie=0;var UU={};$.g=NU.prototype;$.g.Nc=null;$.g.jb=null;$.g.La=function(){return this.type};
  $.g.ic=function(){return this.rb.ic()};$.g.eA=function(){return this.D&&this.D.Ia};$.g.Xa=function(a){if($.n(a)){var b=$.yr(this.Nc,a,null,15,null,this.iL,this);if(b||null===a)a=this.Nc==b,b||$.Fp(this.Nc,this.iL,this),(this.Nc=b)&&b.ba(a),a||this.u(64,1);return this}return(this.Nc?this.Nc:this.eA()&&this.eA().Xa())||null};
  $.g.Qa=function(a){if($.n(a)){var b=a&&$.E(a.La)&&a.La(),c=(b="stock-scatter-date-time"==b||"stock-ordinal-date-time"==b)?a:$.yr(this.jb,a,null,15,null,this.iL,this);if(c||null===a)a=this.jb==c,c||$.Fp(this.jb,this.iL,this),(this.jb=c)&&!b&&c.ba(a),a||this.u(64,1);return this}return this.jb||this.ic().Qa()};$.g.ES=function(){this.G=this.coords;this.coords=$.Cc(this.coords)};
  $.g.JR=function(a,b,c){switch(a){case -1:this.Ie&3&&(QU(this,this.Ie&1?"xAnchor":null,this.Ie&2?"valueAnchor":null,b,c),this.Ie&7&&(QU(this,"secondXAnchor","secondValueAnchor",b,c),this.Ie&15&&QU(this,"thirdXAnchor","thirdValueAnchor",b,c)));break;case 0:QU(this,this.Ie&1?"xAnchor":null,this.Ie&2?"valueAnchor":null,b,c);break;case 1:QU(this,"secondXAnchor","secondValueAnchor",b,c);break;case 2:QU(this,"thirdXAnchor","thirdValueAnchor",b,c)}this.u(768);this.W();return this};
  $.g.Qr=function(a){this.state=a;this.u(528)};
  $.g.kb=function(){if(this.J(64)){var a=this.Qa();var b=this.Xa();if(!a||!b)return!1;var c,d,e,f,h;var k=c=d=e=f=h=window.NaN;var l=0,m=0;this.Ie&1&&(k=SU(this,a.transform(this.ye("xAnchor"),.5)),(0,window.isNaN)(k)?m|=1:l|=1);this.Ie&2&&(c=TU(this,b.transform(this.ye("valueAnchor"),.5)),(0,window.isNaN)(c)?m|=2:l|=2);this.Ie&4&&(d=SU(this,a.transform(this.ye("secondXAnchor"),.5)),e=TU(this,b.transform(this.ye("secondValueAnchor"),.5)),(0,window.isNaN)(d)||(0,window.isNaN)(e)?m|=4:l|=4);this.Ie&8&&
  (f=SU(this,a.transform(this.ye("thirdXAnchor"),.5)),h=TU(this,b.transform(this.ye("thirdValueAnchor"),.5)),(0,window.isNaN)(f)||(0,window.isNaN)(h)?m|=8:l|=8);a=!1;var p=b=null;m&3?(b=this.Ie&1?"xAnchor":null,p=this.Ie&2?"valueAnchor":null,a=3<this.Ie,this.Ha=this.Ie&3):m&4?(b="secondXAnchor",p="secondValueAnchor",a=7<this.Ie,this.Ha=4):m&8?(b="thirdXAnchor",p="thirdValueAnchor",this.Ha=8):this.Ha=0;this.coords.xAnchor=k;this.coords.valueAnchor=c;this.coords.secondXAnchor=d;this.coords.secondValueAnchor=
  e;this.coords.thirdXAnchor=f;this.coords.thirdValueAnchor=h;this.Ia=l;this.la=b;this.ta=p;this.Xb=a;this.bf=this.Il();(0,window.isNaN)(this.P)||(0,window.isNaN)(this.$)||this.u(128);this.u(768);this.I(64)}this.J(128)&&((0,window.isNaN)(this.P)||(0,window.isNaN)(this.$)?this.K=this.Ia:(this.la&&(this.coords[this.la]=this.P),this.ta&&(this.coords[this.ta]=this.$),this.K=this.Ia|this.Ha),this.u(768),this.I(128));return this.bf||!(0,window.isNaN)(this.P)&&!(0,window.isNaN)(this.$)};
  $.g.Il=function(){var a=this.ga;if(2==this.Ie){var b=this.coords.valueAnchor;return b>=a.top&&b<=a.Na()}b=[];b.push(this.coords.xAnchor);b.push(this.coords.secondXAnchor);b.push(this.coords.thirdXAnchor);for(var c=!0,d=!0,e=0;e<b.length;e++)(0,window.isNaN)(b[e])||(c=c&&b[e]<a.left,d=d&&b[e]>a.Wa());return!c&&!d};
  $.g.W=function(){if(!this.Bc())return this;$.V(this);this.J(4)&&(this.ga=this.ob(),this.u(64),this.I(4));this.bg();var a=this.kb();this.aL();this.J(16)&&(this.Sg(this.state),this.I(16));if(this.J(256)){if(a)15==this.Ie&&15==this.K?this.AI(this.coords.xAnchor,this.coords.valueAnchor,this.coords.secondXAnchor,this.coords.secondValueAnchor,this.coords.thirdXAnchor,this.coords.thirdValueAnchor):7<=this.Ie&&7<=this.K?this.Qq(this.coords.xAnchor,this.coords.valueAnchor,this.coords.secondXAnchor,this.coords.secondValueAnchor):
  (3<=this.Ie&&3<=this.K||this.K==this.Ie)&&this.en(this.coords.xAnchor,this.coords.valueAnchor);else return this.remove(),this.u(2),this.ba(!1),this;this.I(256)}this.J(1024)&&(this.va.gd(!this.i("allowEdit")),this.I(1024));if(this.J(512)){if(this.Hc){a=this.Ma().Bb();var b=this.fb().Bb().enabled()||this.selected().Bb().enabled();$.V(a);!1!==a.enabled()||b?(a.O(this.va),a.clear(),a.ka(this.ga),a.ih=5,this.xI(this.state)):(a.clear(),a.O(null));a.W();a.ba(!1)}this.I(512)}this.J(8)&&(this.va.zIndex(this.zIndex()),
  this.I(8));this.J(2)&&(this.va.parent(this.O()),this.I(2));this.ba(!1);return this};$.g.aL=function(){};$.g.Bc=function(){var a=NU.B.Bc.call(this);!a||this.D&&this.Qa()&&this.Xa()||(this.remove(),this.u(2),a=!1);return a};$.g.remove=function(){this.va&&this.va.remove();var a=this.Ma().Bb();a.remove();a.u(2)};$.g.bg=function(){this.va||(this.va=$.Ti(),this.va.cursor("move"),this.va.tag=this)};$.g.en=function(){};$.g.Qq=function(a,b){this.en(a,b)};$.g.AI=function(a,b,c,d){this.Qq(a,b,c,d)};$.g.Sg=function(){};
  $.g.Ee=function(a){return{sourceColor:a||this.i("color")||"blue"}};$.g.Qh=function(){return{sourceHatchFill:this.Bg()}};$.g.Bg=function(){return $.Rb("diagonal-brick")};$.g.iL=function(a){$.W(a,2)&&this.u(64,1)};$.g.fo=function(a){$.W(a,1)&&this.u(512,1)};$.g.PS=$.ia;
  $.g.xI=function(a){var b=this.Ma().Bb();a=$.Hk(a);switch(a){case 1:a=this.fb().Bb();break;case 2:a=this.selected().Bb();break;default:a=null}if(a&&null!==a.enabled()?a.enabled():b.enabled())for(var c=this.gW(),d=0;d<c.length;d++){var e=c[d],f=b.Yp(d);f?f.rc(e):f=b.add(e,d);f.Xh();$.Av(f,a||b);f.Yc();f.W();this.PS(f,d)}else b.clear()};
  $.g.gW=function(){var a=[];if(1==this.Ie){var b=this.coords.xAnchor;(0,window.isNaN)(b)||a.push({x:b,y:this.ga.top+this.ga.height/2})}else 2==this.Ie?(b=this.coords.valueAnchor,(0,window.isNaN)(b)||a.push({x:this.ga.left+this.ga.width/2,y:b})):this.Ie&this.K&3&&(a.push({x:this.coords.xAnchor,y:this.coords.valueAnchor}),this.Ie&this.K&4&&(a.push({x:this.coords.secondXAnchor,y:this.coords.secondValueAnchor}),this.Ie&this.K&8&&a.push({x:this.coords.thirdXAnchor,y:this.coords.thirdValueAnchor})));return(0,$.Va)(a,
  function(a){return{value:a}})};$.g.select=function(){this.D.b.select(this)};$.g.Bd=function(){this.D.b.Bd()};$.g.Gg=function(a){return null!=this.ca[a]};$.g.yz=function(){"label"==$.Sk(this.La())&&this.ia.hb("defaultFontSettings");$.Pp(this,"normal",this.ia);this.ia.fa(!0,{});$.Pp(this,"hovered",this.Ba);this.Ba.fa(!0,{});$.Pp(this,"selected",this.Ga);this.Ga.fa(!0,{})};
  $.g.F=function(){var a=NU.B.F.call(this);a.type=this.La();$.lp(this,FV,a,"Annotation");a.normal=this.ia.F();a.hovered=this.Ba.F();a.selected=this.Ga.F();return a};$.g.Y=function(a,b){NU.B.Y.call(this,a,b);$.bp(this,FV,a);this.ia.fa(!!b,a);this.ia.fa(!!b,a.normal);this.Ba.fa(!!b,a.hovered);this.Ga.fa(!!b,a.selected)};$.g.R=function(){$.Zc(this.va);this.va=null;delete this.rb;this.Nc=this.jb=this.D=null;delete this.ca;delete this.pa;NU.B.R.call(this)};var PV=NU.prototype;PV.getType=PV.La;
  PV.getChart=PV.ic;PV.getPlot=PV.eA;PV.yScale=PV.Xa;PV.xScale=PV.Qa;PV.select=PV.select;PV.normal=PV.Ma;PV.hovered=PV.fb;PV.selected=PV.selected;$.H(WU,$.Dp);$.g=WU.prototype;$.g.ic=function(){return this.Ua};$.g.Vi=function(a){this.b!=a&&this.g!=a&&(this.sd(),a.Qr(1),this.Bt()&&a.W());this.g=a};$.g.sd=function(){this.g&&(this.g!=this.b&&(this.g.Qr($.Jk),this.Bt()&&this.g.W()),this.g=null)};$.g.select=function(a){if(this.b!=a){this.Bd();if(this.b)return this;this.Ua.dispatchEvent({type:"annotationSelect",annotation:a})&&(this.b=a,a.Qr(2),this.Bt()&&RU(a)?a.W():XU(this,!0))}return this};
  $.g.Bd=function(){this.b&&this.Ua.dispatchEvent({type:"annotationUnselect",annotation:this.b})&&(this.b.Qr(this.g==this.b?1:$.Jk),this.Bt()&&this.b.W(),this.b=null,XU(this,!1));return this};$.g.B4=function(){return this.b};$.g.Bt=function(a){return $.n(a)?(this.D=!!a,this):this.D};$.g.C4=function(){for(var a=0;a<this.f.length;a++)this.f[a].DU();return this};$.g.D4=function(a){var b=a.D;this.b==a&&(this.b=null,XU(this,!1));b?b.aN(a):$.Zc(a);return this};
  $.g.dd=function(a){return this.Bt()?(this.$M(),a=ZU(this,a),this.select(a),this.b||($.Zc(a),a=null),a):null};$.g.$M=function(){$.V(this.Ua);if(this.b&&!RU(this.b)){var a=this.b.D;a?a.aN(this.b):$.Zc(this.b);this.b=null}XU(this,!1);this.Ua.ba(!0)};$.g.R=function(){$.$c(this.f);this.f=null;WU.B.R.call(this)};var QV=WU.prototype;QV.startDrawing=QV.dd;QV.cancelDrawing=QV.$M;QV.getSelectedAnnotation=QV.B4;QV.removeAnnotation=QV.D4;QV.removeAllAnnotations=QV.C4;QV.select=QV.select;QV.unselect=QV.Bd;
  $.G("anychart.annotations.ChartController",WU);$.H(dV,NU);$.$o(dV,["stroke"],"normal");$.Zo(dV,GV);$.Zo(dV,HV);$.Zo(dV,IV);$.Zo(dV,JV);YU["andrews-pitchfork"]=dV;$.g=dV.prototype;$.g.type="andrews-pitchfork";$.g.Ie=15;$.g.Cg=function(){var a=dV.B.Cg.call(this);return $.Fa(a,MV)};$.g.bg=function(){dV.B.bg.call(this);this.b||(this.b=[this.va.path(),this.va.path()],this.b[0].zIndex(0),this.b[1].zIndex(3))};$.g.en=function(a,b){for(var c=0;c<this.b.length;c++){var d=this.b[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
  $.g.Qq=function(a,b,c,d){for(var e=0;e<this.b.length;e++){var f=this.b[e];f.clear();f.moveTo(a,b).lineTo(a,b);f.moveTo(c,d).lineTo(c,d)}};
  $.g.AI=function(a,b,c,d,e,f){var h=(c+e)/2-a,k=(d+f)/2-b;h||k||(h=10);a=LU(a,b,a+h,b+k,this.ga);b=LU(c,d,c+h,d+k,this.ga);h=LU(e,f,e+h,f+k,this.ga);c=MU(c,d,e,f,this.ga);for(d=0;d<this.b.length;d++)e=this.b[d],e.clear(),f=!1,b&&(e.moveTo(b[2],b[3]).lineTo(b[0],b[1]),f=!0),c?(f?e.lineTo(c[0],c[1]):e.moveTo(c[0],c[1]),e.lineTo(c[2],c[3]),f=!0):f=!1,h&&(f?e.lineTo(h[0],h[1]):e.moveTo(h[0],h[1]),e.lineTo(h[2],h[3])),a&&e.moveTo(a[0],a[1]).lineTo(a[2],a[3])};
  $.g.Sg=function(a){dV.B.Sg.call(this,a);this.b[0].fill(null).stroke(this.f(this,a));this.b[1].fill($.Ek).stroke($.Ek,2*this.hoverGap())};$.g.Il=function(){var a=dV.B.Il.call(this);if(!a){a=this.coords.xAnchor;var b=(this.coords.secondXAnchor+this.coords.thirdXAnchor)/2-a;a=!(0,window.isNaN)(b)&&!(a<this.ga.left&&0>=b||a>this.ga.Wa()&&0<=b)}return a};
  $.g.F=function(){var a=dV.B.F.call(this);$.lp(this,GV,a,"Annotation");$.lp(this,HV,a,"Annotation");$.lp(this,IV,a,"Annotation");$.lp(this,JV,a,"Annotation");return a};$.g.Y=function(a,b){$.bp(this,GV,a);$.bp(this,HV,a);$.bp(this,IV,a);$.bp(this,JV,a);dV.B.Y.call(this,a,b)};$.g.R=function(){dV.B.R.call(this);$.$c(this.b);delete this.f};$.H(eV,NU);$.$o(eV,["fill","hatchFill","stroke"],"normal");$.Zo(eV,GV);$.Zo(eV,HV);$.Zo(eV,IV);$.Zo(eV,JV);YU.ellipse=eV;$.g=eV.prototype;$.g.type="ellipse";$.g.Ie=7;$.g.Cg=function(){var a=eV.B.Cg.call(this);return $.Fa(a,NV)};$.g.bg=function(){eV.B.bg.call(this);this.b||(this.b=[this.va.path(),this.va.path(),this.va.path()],this.b[0].zIndex(0),this.b[1].zIndex(1),this.b[2].zIndex(3))};$.g.en=function(a,b){for(var c=0;c<this.b.length;c++){var d=this.b[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
  $.g.Qq=function(a,b,c,d){var e=(b+d)/2;c=(a-c)/2;b=(b-d)/2;for(d=0;d<this.b.length;d++){var f=this.b[d];f.clear();f.moveTo(a,e);f.arcTo(c,b,0,360)}};$.g.Sg=function(a){eV.B.Sg.call(this,a);this.b[0].stroke(this.o(this,a));this.b[0].fill(this.f(this,a));this.b[1].stroke(null).fill(this.g(this,a));this.b[2].fill($.Ek).stroke($.Ek,2*this.hoverGap())};$.g.F=function(){var a=eV.B.F.call(this);$.lp(this,GV,a,"Annotation");$.lp(this,HV,a,"Annotation");$.lp(this,IV,a,"Annotation");return a};
  $.g.Y=function(a,b){eV.B.Y.call(this,a,b);$.bp(this,GV,a);$.bp(this,HV,a);$.bp(this,IV,a)};$.g.R=function(){eV.B.R.call(this);$.$c(this.b);delete this.o;delete this.f;delete this.g};$.H(fV,NU);$.$o(fV,["stroke","trend","labels"],"normal");$.Zo(fV,GV);$.Zo(fV,HV);$.Zo(fV,IV);$.g=fV.prototype;$.g.oa=NU.prototype.oa|6144;$.g.Ie=7;$.g.VG=function(a){if($.n(a)){if($.A(a)){for(var b=this.o.length=0;b<a.length;b++){var c=$.O(a[b]);(0,window.isNaN)(c)||this.o.push(c)}this.u(6400,1)}return this}return $.Ia(this.o,0)};$.g.Cg=function(){var a=fV.B.Cg.call(this);return $.Fa(a,OV,Kga,OV)};$.g.Qr=function(a){fV.B.Qr.call(this,a);this.u(2048)};
  $.g.bg=function(){fV.B.bg.call(this);this.f||(this.f=[this.va.path(),this.va.path()],this.f[0].zIndex(2),this.f[1].zIndex(3))};
  $.g.aL=function(){if(this.J(4096)){this.b||(this.b=[]);var a;for(a=this.b.length;a<this.o.length;a++)this.b.push(this.va.path().zIndex(0));for(a=this.o.length;a<this.b.length;a++)$.Zc(this.b[a]);this.b.length=this.o.length;this.u(2304);this.I(4096)}this.J(256)&&this.u(2048);if(this.J(2048)){this.Ya=!1;a=this.Ma().labels();var b=this.fb().labels().enabled()||this.selected().labels().enabled();$.V(a);7!=this.K||!1===a.enabled()&&!b?(a.clear(),a.O(null)):(a.O(this.va),a.clear(),a.ka(this.ga),a.ih=4,
  this.Ya=!0,this.u(256));a.W();(b=a.vl())&&b.gd(!0);a.ba(!1);this.I(2048)}};$.g.en=function(a,b){for(var c=0;c<this.f.length;c++){var d=this.f[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
  $.g.Qq=function(a,b,c,d){for(var e=0;e<this.f.length;e++){var f=this.f[e];f.clear();f.moveTo(a,b).lineTo(c,d)}for(e=0;e<this.b.length;e++)this.b[e].clear();a=this.Ma().labels();var h;this.state&2?h=this.selected().labels():this.state&1?h=this.fb().labels():h=null;b=!this.Ya||h&&null!==h.enabled()?h.enabled():a.enabled();$.V(a);this.$O(a,h,b);b||a.clear();a.W();a.ba(!1)};$.g.$O=function(a,b,c){for(var d=0;d<this.o.length;d++){var e=this.b[d],f=e.stroke();this.cE(d,this.o[d],e,this.f[1],a,b,c,$.Cn(f))}};
  $.g.cE=function(){};$.g.Sg=function(a){fV.B.Sg.call(this,a);var b=this.bd(this,a);$.n(b)||(b=this.Ra(this,a));this.f[0].fill(null).stroke(b);this.f[1].fill($.Ek).stroke($.Ek,2*this.hoverGap());for(b=0;b<this.b.length;b++)this.b[b].fill(null).stroke(this.Ra(this,a,b))};$.g.Ee=function(a,b){var c=fV.B.Ee.call(this,a,b);$.n(b)&&(c.level=this.o[b]);return c};$.g.Td=function(a){$.W(a,1)&&this.u(2048,1)};
  $.g.Ec=function(a,b,c){this.Gd||(this.Gd=new $.ru);$.ct(this.Gd,{annotation:{value:this,type:""},level:{value:a,type:"number"},levelValue:{value:c?b:this.Xa().XB(b,2),type:c?"date-time":"number"},rawLevelValue:{value:b,type:c?"date-time":"number"}});return this.Gd};$.g.Pf=function(a,b,c,d,e,f){if(d&&e){var h=b.Od(a);h?(h.vf(d),h.rc(e)):h=b.add(d,e,a);h.Xh();$.Qs(h,c);f&&h.gk(f);h.W();if((a=b.vk(h))&&a.length){b=this.f[1];b.moveTo(a[0],a[1]);for(c=2;c<a.length;c+=2)b.lineTo(a[c],a[c+1]);b.close()}}else b.clear(a)};
  $.g.yz=function(a){fV.B.yz.call(this,a);this.VG(this.i("levels"))};$.g.F=function(){var a=fV.B.F.call(this);a.levels=this.VG();$.lp(this,GV,a,"Annotation");$.lp(this,HV,a,"Annotation");$.lp(this,IV,a,"Annotation");return a};$.g.Y=function(a,b){fV.B.Y.call(this,a,b);this.VG(a.levels);$.bp(this,GV,a);$.bp(this,HV,a);$.bp(this,IV,a)};$.g.R=function(){fV.B.R.call(this);$.$c(this.f);$.$c(this.b);this.b=this.f=null;delete this.Ra;delete this.bd};var RV=fV.prototype;RV.levels=RV.VG;$.H(iV,fV);YU["fibonacci-arc"]=iV;iV.prototype.type="fibonacci-arc";iV.prototype.cE=function(a,b,c,d,e,f,h){var k=this.coords.valueAnchor,l=this.coords.secondXAnchor,m=this.coords.secondValueAnchor,p=m+b*(k-m),q=$.Nl(l+b*(this.coords.xAnchor-l),p,l,m);p<m?(c.Wd(l,m,q,q,180,180),d.Wd(l,m,q,q,180,180)):(c.Wd(l,m,q,q,0,180),d.Wd(l,m,q,q,0,180));h&&(k<m?(d=m-q,c="center-bottom"):(d=m+q,c="center-top"),l={x:l,y:d},this.Pf(a,e,f,this.Ec(b,gV(this,d),!1),{value:l},c))};
  iV.prototype.Il=function(){var a=iV.B.Il.call(this);if(!a){var b=this.coords.xAnchor,c=this.coords.valueAnchor;a=this.coords.secondXAnchor;var d=this.coords.secondValueAnchor,e=Math.max.apply(Math,this.o);b=$.Nl(a+e*(b-a),d+e*(c-d),a,d);a=!(0,window.isNaN)(b)&&!(a+b<this.ga.left||a-b>this.ga.Wa())}return a};$.H(jV,fV);$.$o(jV,["grid"],"normal");YU["fibonacci-fan"]=jV;$.g=jV.prototype;$.g.type="fibonacci-fan";$.g.PL=function(a){if($.n(a)){if($.A(a)){for(var b=this.ea.length=0;b<a.length;b++){var c=$.O(a[b]);(0,window.isNaN)(c)||this.ea.push(c)}this.u(6400,1)}return this}return $.Ia(this.ea,0)};$.g.Cg=function(){var a=jV.B.Cg.call(this);return $.Fa(a,Hga)};
  $.g.$O=function(a,b,c){var d,e;for(d=0;d<this.g.length;d++)this.g[d].clear();jV.B.$O.call(this,a,b,c);d=0;for(e=this.o.length;d<this.ea.length;d++,e++){var f=this.b[e],h=f.stroke(),k=e,l=this.ea[d],m=f,p=this.f[1];f=a;var q=b,r=c,t=$.Cn(h),u=this.coords.xAnchor;h=this.coords.valueAnchor;var v=this.coords.secondXAnchor,x=this.coords.secondValueAnchor,w=u+(v-u)*l,y=this.g[k],B=y.stroke();v=w;u==v&&(v=u=$.xn(u,t));w=$.xn(w,$.Cn(B));t=LU(u,h,v,x,this.ga);u=MU(w,h,w,x,this.ga);t&&(m.moveTo(t[0],t[1]).lineTo(t[2],
  t[3]),p.moveTo(t[0],t[1]).lineTo(t[2],t[3]));u&&(y.moveTo(u[0],u[1]).lineTo(u[2],u[3]),p.moveTo(u[0],u[1]).lineTo(u[2],u[3]));r&&this.ga.left<=w&&w<=this.ga.Wa()&&(m={value:{x:w,y:h}},this.Pf(k,f,q,this.Ec(l,hV(this,w),!0),m,h<x?"center-bottom":"center-top"))}};
  $.g.cE=function(a,b,c,d,e,f,h,k){var l=this.coords.xAnchor,m=this.coords.valueAnchor,p=this.coords.secondXAnchor,q=this.coords.secondValueAnchor,r=m+(q-m)*b,t=this.g[a],u=t.stroke();q=r;m==q&&(q=m=$.xn(m,k));r=$.xn(r,$.Cn(u));k=LU(l,m,p,q,this.ga);m=MU(l,r,p,r,this.ga);k&&(c.moveTo(k[0],k[1]).lineTo(k[2],k[3]),d.moveTo(k[0],k[1]).lineTo(k[2],k[3]));m&&(t.moveTo(m[0],m[1]).lineTo(m[2],m[3]),d.moveTo(m[0],m[1]).lineTo(m[2],m[3]));h&&this.ga.left<=l&&l<=this.ga.Wa()&&(c={value:{x:l,y:r}},this.Pf(a,e,
  f,this.Ec(b,gV(this,r),!1),c,l<p?"right-center":"left-center"))};$.g.Il=function(){var a=jV.B.Il.call(this);if(!a){a=this.coords.xAnchor;var b=this.coords.secondXAnchor-a;a=!(0,window.isNaN)(b)&&!(a<this.ga.left&&0>=b||a>this.ga.Wa()&&0<=b)}return a};$.g.Sg=function(a){jV.B.Sg.call(this,a);for(var b=0;b<this.g.length;b++){var c=this.oc(this,a,b);$.n(c)||(c=this.Ra(this,a,b));this.g[b].fill(null).stroke(c)}};
  $.g.Ee=function(a,b){var c={sourceColor:a||this.i("color")||"blue"};if($.n(b)){c.isTimeLevel=b>=this.o.length;var d=c.isTimeLevel?this.ea[b-this.o.length]:this.o[b];c.levelRatio=d;c.isTimeLevel?c.timeLevel=d:c.level=d}return c};
  $.g.Ec=function(a,b,c){this.Gd||(this.Gd=new $.ru);a={annotation:{value:this,type:""},level:{value:a,type:"number"},levelRatio:{value:a,type:"number"},levelValue:{value:c?b:this.Xa().XB(b,2),type:c?"date-time":"number"},rawLevelValue:{value:b,type:c?"date-time":"number"}};a.isTimeLevel={value:c,type:""};$.ct(this.Gd,a);return this.Gd};
  $.g.aL=function(){if(this.J(4096)){this.b||(this.b=[]);this.g||(this.g=[]);var a,b=this.o.length+this.ea.length;for(a=this.b.length;a<b;a++)this.b.push(this.va.path().zIndex(0));for(a=b;a<this.b.length;a++)$.Zc(this.b[a]);this.b.length=b;for(a=this.g.length;a<b;a++)this.g.push(this.va.path().zIndex(0));for(a=b;a<this.g.length;a++)$.Zc(this.g[a]);this.g.length=b;this.u(2304);this.I(4096)}jV.B.aL.call(this)};$.g.yz=function(a){jV.B.yz.call(this,a);this.PL(this.i("timeLevels"))};
  $.g.F=function(){var a=jV.B.F.call(this);a.timeLevels=this.PL();return a};$.g.Y=function(a,b){jV.B.Y.call(this,a,b);this.PL(a.timeLevels)};$.g.R=function(){jV.B.R.call(this);$.$c(this.g);this.g=null;delete this.oc};var SV=jV.prototype;SV.timeLevels=SV.PL;$.H(kV,fV);YU["fibonacci-retracement"]=kV;kV.prototype.type="fibonacci-retracement";kV.prototype.cE=function(a,b,c,d,e,f,h,k){var l=this.coords.secondValueAnchor,m=Math.min(this.coords.xAnchor,this.coords.secondXAnchor);k=$.xn(l+(this.coords.valueAnchor-l)*b,k);if(l=LU(m,k,m+10,k,this.ga))c.moveTo(l[0],l[1]).lineTo(l[2],l[3]),d.moveTo(l[0],l[1]).lineTo(l[2],l[3]);h&&(c={value:{x:m,y:k}},this.Pf(a,e,f,this.Ec(b,gV(this,k),!1),c))};
  kV.prototype.Il=function(){var a=kV.B.Il.call(this);a||(a=Math.min(this.coords.xAnchor,this.coords.secondXAnchor),a=!(0,window.isNaN)(a)&&a<=this.ga.Wa());return a};$.H(lV,fV);YU["fibonacci-timezones"]=lV;lV.prototype.type="fibonacci-timezones";lV.prototype.cE=function(a,b,c,d,e,f,h,k){var l=this.coords.secondXAnchor;k=$.xn(l+Math.abs(this.coords.xAnchor-l)*b,k);if(this.ga.left<=k&&k<=this.ga.Wa()){l=this.ga.top;var m=this.ga.Na();c.moveTo(k,l).lineTo(k,m);d.moveTo(k,l).lineTo(k,m);h&&(c={value:{x:k,y:m}},this.Pf(a,e,f,this.Ec(b,hV(this,k),!0),c,"left-bottom"))}};
  lV.prototype.Il=function(){var a=lV.B.Il.call(this);a||(a=Math.min(this.coords.xAnchor,this.coords.secondXAnchor),a=!(0,window.isNaN)(a)&&a<=this.ga.Wa());return a};$.H(mV,NU);$.$o(mV,["stroke"],"normal");$.Zo(mV,HV);YU["horizontal-line"]=mV;$.g=mV.prototype;$.g.type="horizontal-line";$.g.Ie=2;$.g.Cg=function(){var a=mV.B.Cg.call(this);return $.Fa(a,MV)};$.g.bg=function(){mV.B.bg.call(this);this.b||(this.b=[this.va.path(),this.va.path()],this.b[0].zIndex(0),this.b[1].zIndex(3))};$.g.en=function(a,b){b=$.xn(b,$.Cn(this.b[0].stroke()));for(var c=0;c<this.b.length;c++){var d=this.b[c];d.clear();d.moveTo(this.ga.left,b).lineTo(this.ga.Wa(),b)}};
  $.g.Sg=function(a){mV.B.Sg.call(this,a);this.b[0].fill(null).stroke(this.f(this,a));this.b[1].fill($.Ek).stroke($.Ek,2*this.hoverGap())};$.g.F=function(){var a=mV.B.F.call(this);$.lp(this,HV,a,"Annotation");return a};$.g.Y=function(a,b){mV.B.Y.call(this,a,b);$.bp(this,HV,a)};$.g.R=function(){mV.B.R.call(this);$.$c(this.b);delete this.f};$.H(nV,NU);$.$o(nV,["stroke"],"normal");$.Zo(nV,GV);$.Zo(nV,HV);$.Zo(nV,IV);YU["infinite-line"]=nV;$.g=nV.prototype;$.g.type="infinite-line";$.g.Ie=7;$.g.Cg=function(){var a=nV.B.Cg.call(this);return $.Fa(a,MV)};$.g.bg=function(){nV.B.bg.call(this);this.b||(this.b=[this.va.path(),this.va.path()],this.b[0].zIndex(0),this.b[1].zIndex(3))};$.g.en=function(a,b){for(var c=0;c<this.b.length;c++){var d=this.b[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
  $.g.Qq=function(a,b,c,d){var e=$.Cn(this.b[0].stroke());a==c&&(a=c=$.xn(a,e));b==d&&(b=d=$.xn(b,e));a=KU(a,b,c,d,this.ga);for(b=0;b<this.b.length;b++)c=this.b[b],c.clear(),a&&c.moveTo(a[0],a[1]).lineTo(a[2],a[3])};$.g.Sg=function(a){nV.B.Sg.call(this,a);this.b[0].fill(null).stroke(this.f(this,a));this.b[1].fill($.Ek).stroke($.Ek,2*this.hoverGap())};$.g.Il=function(){return!0};
  $.g.F=function(){var a=nV.B.F.call(this);$.lp(this,GV,a,"Annotation");$.lp(this,HV,a,"Annotation");$.lp(this,IV,a,"Annotation");return a};$.g.Y=function(a,b){nV.B.Y.call(this,a,b);$.bp(this,GV,a);$.bp(this,HV,a);$.bp(this,IV,a)};$.g.R=function(){nV.B.R.call(this);$.$c(this.b);delete this.f};$.H(oV,NU);$.Zo(oV,GV);$.Zo(oV,HV);$.Zo(oV,LV);$.$o(oV,"fontFamily fontStyle fontVariant fontWeight fontSize fontColor fontOpacity fontDecoration".split(" "),"normal");YU.label=oV;$.g=oV.prototype;$.g.type="label";$.g.Ie=3;$.g.background=function(a){this.Ea||(this.Ea=new $.ps,$.U(this.Ea,this.hg,this),$.Pp(this,"background",this.Ea));return $.n(a)?(this.Ea.N(a),this):this.Ea};
  $.g.padding=function(a,b,c,d){this.Oa||(this.Oa=new $.xs,$.U(this.Oa,this.dm,this),$.Pp(this,"padding",this.Oa));return $.n(a)?(this.Oa.N.apply(this.Oa,arguments),this):this.Oa};$.g.dm=function(a){$.W(a,2)&&this.u(256,1)};$.g.hg=function(a){$.W(a,1)&&this.u(256,1)};$.g.Cg=function(){var a=oV.B.Cg.call(this);return $.Fa(a,Jga)};$.g.Qr=function(a){oV.B.Qr.call(this,a);this.u(256)};$.g.sc=function(a,b){var c=0==b?this.Ma():1==b?this.fb():this.selected(),d=this.Ma().i(a);return(b?c.i(a):d)||d};
  $.g.gW=function(){var a=[];a.push({x:this.coords.xAnchor,y:this.coords.valueAnchor},{x:this.Mk.left,y:this.Mk.top},{x:this.Mk.Wa(),y:this.Mk.top},{x:this.Mk.Wa(),y:this.Mk.Na()},{x:this.Mk.left,y:this.Mk.Na()});return(0,$.Va)(a,function(a){return{value:a}})};
  $.g.Il=function(){this.J(256)&&(this.hh(this.state),this.Zm(0,0));var a=this.ga,b=Math.abs(this.Mk.width),c=this.coords.xAnchor,d=this.i("anchor");pV(d)?(d=c,b=c+b):"center-top"==d||"center"==d||"center-bottom"==d?(d=c-b/2,b=c+b/2):(d=c-b,b=c);return!(b<a.left||d>a.Wa())};$.g.PS=function(a,b){if(1>b)oV.B.PS.call(this,a,b);else{var c=0>this.Mk.width*this.Mk.height,d=c?"nesw-resize":"nwse-resize";c=c?"nwse-resize":"nesw-resize";a.Le().cursor(b%2?d:c)}};$.g.ES=function(){oV.B.ES.call(this);this.b=this.Mk.clone()};
  $.g.JR=function(a,b,c){if(1>a)return oV.B.JR.call(this,a,b,c);var d=this.i("anchor");switch(a){case 1:this.ca.width=this.b.width-b;this.ca.height=this.b.height-c;pV(d)&&(this.coords.xAnchor=this.G.xAnchor+b);rV(d)&&(this.coords.valueAnchor=this.G.valueAnchor+c);break;case 2:this.ca.width=this.b.width+b;this.ca.height=this.b.height-c;qV(d)&&(this.coords.xAnchor=this.G.xAnchor+b);rV(d)&&(this.coords.valueAnchor=this.G.valueAnchor+c);break;case 3:this.ca.width=this.b.width+b;this.ca.height=this.b.height+
  c;qV(d)&&(this.coords.xAnchor=this.G.xAnchor+b);sV(d)&&(this.coords.valueAnchor=this.G.valueAnchor+c);break;case 4:this.ca.width=this.b.width-b,this.ca.height=this.b.height+c,pV(d)&&(this.coords.xAnchor=this.G.xAnchor+b),sV(d)&&(this.coords.valueAnchor=this.G.valueAnchor+c)}this.ca.xAnchor=this.Qa().Rc((this.coords.xAnchor-this.ga.left)/this.ga.width);this.ca.valueAnchor=this.Xa().Rc((this.ga.Na()-this.coords.valueAnchor)/this.ga.height);this.u(768);this.W();return this};
  $.g.hh=function(a){var b=this.i("text"),c=this.i("useHtml");$.n(b)&&(c?this.Mc.htmlText(b):this.Mc.text(b));this.Mc.fontFamily(this.sc("fontFamily",a,null));this.Mc.fontStyle(this.sc("fontStyle",a,null));this.Mc.fontVariant(this.sc("fontVariant",a,null));this.Mc.fontWeight(this.sc("fontWeight",a,null));this.Mc.fontSize(this.sc("fontSize",a,null));this.Mc.Nq(this.sc("fontDecoration",a,null));this.Mc.direction(this.i("textDirection"));this.Mc.ut(this.i("wordBreak"));this.Mc.wordWrap(this.i("wordWrap"));
  this.Mc.letterSpacing(this.i("letterSpacing"));this.Mc.lineHeight(this.i("lineHeight"));this.Mc.textIndent(this.i("textIndent"));this.Mc.vAlign(this.i("vAlign"));this.Mc.xl(this.i("hAlign"));this.Mc.textOverflow(this.i("textOverflow"));this.Mc.fm(this.i("selectable"));this.Mc.gd(this.i("disablePointerEvents"))};$.g.bg=function(){oV.B.bg.call(this);this.Mc||(this.Mc=this.va.text(),this.Mc.zIndex(2));this.zu||(this.zu=this.va.rect(),this.zu.fill($.Ek).zIndex(3));this.background().O(this.va).zIndex(0)};
  $.g.Zm=function(a,b){var c=this.ka();var d=this.i("width");var e=this.i("height");var f=0,h=0;if(c){var k=c.width;c=c.height;null!=d?(this.Kh=d=$.M(d,k),f=Math.abs(d),k=!1):(d=0,k=!0);null!=e?(this.Jh=e=$.M(e,c),h=Math.abs(e),c=!1):(e=0,c=!0)}else $.en(d)?(k=!0,d=0):(k=!1,this.Kh=d=$.O(d),f=Math.abs(d)),$.en(e)?(c=!0,e=0):(c=!1,this.Jh=e=$.O(e),h=Math.abs(e));var l=this.padding();this.Mc.width(null);this.Mc.height(null);k?(this.km=d+=this.Mc.eb().width,this.Kh=l.Bj(d)):this.km=l.wg(f);this.Mc.width(this.km);
  c?(this.jm=e+=this.Mc.eb().height,this.Jh=l.Ji(e)):this.jm=l.eh(h);this.Mc.height(this.jm);this.Jf=$.M(l.i("left"),this.Kh);this.Kf=$.M(l.i("top"),this.Jh);k=this.i("anchor");e={x:a,y:b};d=$.gn($.Ql(0,0,this.Kh,this.Jh),k);e.x-=d.x;e.y-=d.y;$.yn(e,k,this.i("offsetX")||0,this.i("offsetY")||0);this.Jf+=e.x-(0>this.Kh?f:0);this.Kf+=e.y-(0>this.Jh?h:0);this.Mk=new $.J(e.x,e.y,this.Kh,this.Jh)};
  $.g.en=function(a,b){this.hh(this.state);this.Zm(a,b);this.Mc.x(this.Jf);this.Mc.y(this.Kf);this.Mc.clip(this.Mk);this.zu.stroke($.Ek,2*this.hoverGap()).yf(this.Mk);$.V(this.background()).ka(this.Mk).W().ba(!1);this.u(512)};$.g.Sg=function(a){oV.B.Sg.call(this,a);this.Mc.color(this.sc("fontColor",a,null));this.Mc.opacity(this.sc("fontOpacity",a,null))};
  $.g.F=function(){var a=oV.B.F.call(this);$.lp(this,LV,a,"Annotation");$.lp(this,GV,a,"Annotation");$.lp(this,HV,a,"Annotation");a.background=this.background().F();a.padding=this.padding().F();return a};$.g.yz=function(a){oV.B.yz.call(this,a)};$.g.Y=function(a,b){oV.B.Y.call(this,a,b);this.background().fa(!!b,a.background);this.padding().fa(!!b,a.padding);b?$.ap(this.pa,LV,a):$.bp(this,LV,a);$.bp(this,GV,a);$.bp(this,HV,a)};$.g.R=function(){$.$c(this.Mc,this.zu,this.Ea,this.Oa);oV.B.R.call(this)};$.H(tV,NU);$.$o(tV,["stroke"],"normal");$.Zo(tV,GV);$.Zo(tV,HV);$.Zo(tV,IV);YU.line=tV;$.g=tV.prototype;$.g.type="line";$.g.Ie=7;$.g.Cg=function(){var a=tV.B.Cg.call(this);return $.Fa(a,MV)};$.g.bg=function(){tV.B.bg.call(this);this.b||(this.b=[this.va.path(),this.va.path()],this.b[0].zIndex(0),this.b[1].zIndex(3))};$.g.en=function(a,b){for(var c=0;c<this.b.length;c++){var d=this.b[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
  $.g.Qq=function(a,b,c,d){var e=$.Cn(this.b[0].stroke());a==c&&(a=c=$.xn(a,e));b==d&&(b=d=$.xn(b,e));a=MU(a,b,c,d,this.ga);for(b=0;b<this.b.length;b++)c=this.b[b],c.clear(),a&&c.moveTo(a[0],a[1]).lineTo(a[2],a[3])};$.g.Sg=function(a){tV.B.Sg.call(this,a);this.b[0].fill(null).stroke(this.f(this,a));this.b[1].fill($.Ek).stroke($.Ek,2*this.hoverGap())};$.g.F=function(){var a=tV.B.F.call(this);$.lp(this,GV,a,"Annotation");$.lp(this,HV,a,"Annotation");$.lp(this,IV,a,"Annotation");return a};
  $.g.Y=function(a,b){tV.B.Y.call(this,a,b);$.bp(this,GV,a);$.bp(this,HV,a);$.bp(this,IV,a)};$.g.R=function(){tV.B.R.call(this);$.$c(this.b);delete this.f};$.H(uV,NU);$.$o(uV,["stroke","fill","hatchFill","size"],"normal");$.Zo(uV,GV);$.Zo(uV,HV);$.Zo(uV,KV);YU.marker=uV;$.g=uV.prototype;$.g.type="marker";$.g.Ie=3;$.g.Cg=function(){return $.Fa(NV,Iga)};$.g.Qr=function(a){uV.B.Qr.call(this,a);this.u(256)};$.g.bg=function(){uV.B.bg.call(this);this.b||(this.b=[this.va.path(),this.va.path(),this.va.path()],this.b[0].zIndex(0),this.b[1].zIndex(1),this.b[2].zIndex(3))};
  $.g.en=function(a,b){var c;this.state&2?c=this.Ga.i("size"):this.state&1&&(c=this.Ba.i("size"));c=(0,window.isNaN)(c)?this.ia.i("size"):c;var d=$.ao(this.i("markerType")),e=this.i("anchor"),f={x:a,y:b};$.yn(f,e,this.i("offsetX"),this.i("offsetY"));var h=c/2;switch(e){case "left-top":case "center-top":case "right-top":f.y+=h;break;case "left-bottom":case "center-bottom":case "right-bottom":f.y-=h}switch(e){case "left-top":case "left-center":case "left-bottom":f.x+=h;break;case "right-top":case "right-center":case "right-bottom":f.x-=
  h}e=$.Cn(this.b[0].stroke());for(h=0;h<this.b.length;h++){var k=this.b[h];k.clear();d(k,f.x,f.y,c,e)}};$.g.Sg=function(a){uV.B.Sg.call(this,a);this.b[0].stroke(this.o(this,a));this.b[0].fill(this.f(this,a));this.b[1].stroke(null).fill(this.g(this,a));this.b[2].fill($.Ek).stroke($.Ek,2*this.hoverGap())};$.g.F=function(){var a=uV.B.F.call(this);$.lp(this,KV,a,"Annotation");$.lp(this,GV,a,"Annotation");$.lp(this,HV,a,"Annotation");return a};
  $.g.Y=function(a,b){uV.B.Y.call(this,a,b);$.bp(this,KV,a);$.bp(this,GV,a);$.bp(this,HV,a)};$.g.R=function(){uV.B.R.call(this);$.$c(this.b);delete this.o;delete this.f;delete this.g};$.H(vV,NU);$.$o(vV,["stroke"],"normal");$.Zo(vV,GV);$.Zo(vV,HV);$.Zo(vV,IV);YU.ray=vV;$.g=vV.prototype;$.g.type="ray";$.g.Ie=7;$.g.Cg=function(){var a=vV.B.Cg.call(this);return $.Fa(a,MV)};$.g.bg=function(){vV.B.bg.call(this);this.b||(this.b=[this.va.path(),this.va.path()],this.b[0].zIndex(0),this.b[1].zIndex(3))};$.g.en=function(a,b){for(var c=0;c<this.b.length;c++){var d=this.b[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
  $.g.Qq=function(a,b,c,d){var e=$.Cn(this.b[0].stroke());a==c&&(a=c=$.xn(a,e));b==d&&(b=d=$.xn(b,e));a=LU(a,b,c,d,this.ga);for(b=0;b<this.b.length;b++)c=this.b[b],c.clear(),a&&c.moveTo(a[0],a[1]).lineTo(a[2],a[3])};$.g.Sg=function(a){vV.B.Sg.call(this,a);this.b[0].fill(null).stroke(this.f(this,a));this.b[1].fill($.Ek).stroke($.Ek,2*this.hoverGap())};
  $.g.Il=function(){var a=vV.B.Il.call(this);if(!a){a=this.coords.xAnchor;var b=this.coords.secondXAnchor-a;a=!(0,window.isNaN)(b)&&!(a<this.ga.left&&0>=b||a>this.ga.Wa()&&0<=b)}return a};$.g.F=function(){var a=vV.B.F.call(this);$.lp(this,GV,a,"Annotation");$.lp(this,HV,a,"Annotation");$.lp(this,IV,a,"Annotation");return a};$.g.Y=function(a,b){vV.B.Y.call(this,a,b);$.bp(this,GV,a);$.bp(this,HV,a);$.bp(this,IV,a)};$.g.R=function(){vV.B.R.call(this);$.$c(this.b);delete this.f};$.H(wV,NU);$.$o(wV,["fill","hatchFill","stroke"],"normal");$.Zo(wV,GV);$.Zo(wV,HV);$.Zo(wV,IV);YU.rectangle=wV;$.g=wV.prototype;$.g.type="rectangle";$.g.Ie=7;$.g.Cg=function(){var a=wV.B.Cg.call(this);return $.Fa(a,NV)};$.g.bg=function(){wV.B.bg.call(this);this.b||(this.b=[this.va.path(),this.va.path(),this.va.path()],this.b[0].zIndex(0),this.b[1].zIndex(1),this.b[2].zIndex(3))};$.g.en=function(a,b){for(var c=0;c<this.b.length;c++){var d=this.b[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
  $.g.Qq=function(a,b,c,d){var e=$.Cn(this.b[0].stroke());a=$.xn(a,e);b=$.xn(b,e);c=$.xn(c,e);d=$.xn(d,e);for(e=0;e<this.b.length;e++){var f=this.b[e];f.clear();f.moveTo(a,b).lineTo(c,b).lineTo(c,d).lineTo(a,d).close()}};$.g.Sg=function(a){wV.B.Sg.call(this,a);this.b[0].stroke(this.o(this,a));this.b[0].fill(this.f(this,a));this.b[1].stroke(null).fill(this.g(this,a));this.b[2].fill($.Ek).stroke($.Ek,2*this.hoverGap())};
  $.g.F=function(){var a=wV.B.F.call(this);$.lp(this,GV,a,"Annotation");$.lp(this,HV,a,"Annotation");$.lp(this,IV,a,"Annotation");return a};$.g.Y=function(a,b){wV.B.Y.call(this,a,b);$.bp(this,GV,a);$.bp(this,HV,a);$.bp(this,IV,a)};$.g.R=function(){wV.B.R.call(this);$.$c(this.b);delete this.o;delete this.f;delete this.g};$.H(xV,NU);$.$o(xV,["fill","hatchFill","stroke"],"normal");$.Zo(xV,GV);$.Zo(xV,HV);$.Zo(xV,IV);$.Zo(xV,JV);YU["trend-channel"]=xV;$.g=xV.prototype;$.g.type="trend-channel";$.g.Ie=15;$.g.Cg=function(){var a=xV.B.Cg.call(this);return $.Fa(a,NV)};$.g.bg=function(){xV.B.bg.call(this);this.b||(this.b=[this.va.path(),this.va.path(),this.va.path(),this.va.path()],this.b[0].zIndex(2),this.b[1].zIndex(0),this.b[2].zIndex(1),this.b[3].zIndex(3))};
  $.g.en=function(a,b){for(var c=0;c<this.b.length;c++)this.b[c].clear();this.b[0].moveTo(a,b).lineTo(a,b);this.b[3].moveTo(a,b).lineTo(a,b)};$.g.Qq=function(a,b,c,d){a=LU(a,b,c,d,this.ga);for(b=0;b<this.b.length;b++)this.b[b].clear();a&&(this.b[0].moveTo(a[0],a[1]).lineTo(a[2],a[3]),this.b[3].moveTo(a[0],a[1]).lineTo(a[2],a[3]))};
  $.g.AI=function(a,b,c,d,e,f){var h=this.ga.left,k=this.ga.Wa();var l=this.ga.top;var m=this.ga.Na();if(c==a)d=d-b||1,a<h&&e<h||a>k&&e>k?c=f=d=l=null:(c=KU(a,b,a,b+d,this.ga),f=KU(e,f,e,f+d,this.ga),b=Math.max(Math.min(a,e),h),a=Math.min(Math.max(a,e),k),d=[b,l],l=[a,l,a,m,b,m,b,l]);else{d=(d-b)/(c-a);b-=d*a;var p=f-d*e;b>p&&(f=b,b=p,p=f);a=c>a?Math.min(a,e):Math.max(a,e);e=c;e>a&&a>k||e<a&&a<h?c=f=d=l=null:(e>a?(a=Math.max(a,h),e=k):(e=Math.min(a,k),a=h),c=d*a+b,f=d*a+p,h=d*e+b,k=d*e+p,f<l&&k<l||
  c>m&&h>m?c=f=d=l=null:(c=MU(a,c,e,h,this.ga),f=MU(a,f,e,k,this.ga),0>d?(k=Math.max(a,(m-b)/d),b=Math.min(e,(l-p)/d),c?(d=[c[0],c[1]],l=[c[2],c[3],b,c[3]]):(d=[a,l],l=[b,l]),f?l.push(b,f[3],f[0],f[1],k,f[1]):l.push(b,m,k,m)):0<d?(k=Math.max(a,(l-p)/d),b=Math.min(e,(m-b)/d),c?(d=[c[2],c[3]],l=[c[0],c[1],k,c[1]]):(d=[e,l],l=[k,l]),f?l.push(k,f[1],f[2],f[3],b,f[3]):l.push(k,m,b,m)):(l=c?c[1]:l,m=f?f[1]:m,d=[a,l],l=[e,l,e,m,a,m])))}for(m=0;m<this.b.length;m++)this.b[m].clear();m=this.b[0];c&&m.moveTo(c[0],
  c[1]).lineTo(c[2],c[3]);f&&m.moveTo(f[0],f[1]).lineTo(f[2],f[3]);if(d&&l)for(m=1;m<this.b.length;m++)c=this.b[m],c.moveTo(d[0],d[1]),c.lineTo.apply(c,l),c.close()};$.g.Sg=function(a){xV.B.Sg.call(this,a);this.b[0].fill(null).stroke(this.o(this,a));this.b[1].stroke(null).fill(this.f(this,a));this.b[2].stroke(null).fill(this.g(this,a));this.b[3].fill($.Ek).stroke($.Ek,2*this.hoverGap())};
  $.g.Il=function(){var a=xV.B.Il.call(this);if(!a&&15==this.Ia){var b=this.coords.xAnchor,c=this.coords.secondXAnchor,d=this.coords.thirdXAnchor;b!=c&&(a=c>b?Math.min(b,d):Math.max(b,d),a=!(a<this.ga.left&&c>a||a>this.ga.Wa()&&c<a))}return a};$.g.F=function(){var a=xV.B.F.call(this);$.lp(this,GV,a,"Annotation");$.lp(this,HV,a,"Annotation");$.lp(this,IV,a,"Annotation");$.lp(this,JV,a,"Annotation");return a};
  $.g.Y=function(a,b){xV.B.Y.call(this,a,b);$.bp(this,GV,a);$.bp(this,HV,a);$.bp(this,IV,a);$.bp(this,JV,a)};$.g.R=function(){xV.B.R.call(this);$.$c(this.b);delete this.o;delete this.f;delete this.g};$.H(yV,NU);$.$o(yV,["fill","hatchFill","stroke"],"normal");$.Zo(yV,GV);$.Zo(yV,HV);$.Zo(yV,IV);$.Zo(yV,JV);YU.triangle=yV;$.g=yV.prototype;$.g.type="triangle";$.g.Ie=15;$.g.Cg=function(){var a=yV.B.Cg.call(this);return $.Fa(a,NV)};$.g.bg=function(){yV.B.bg.call(this);this.b||(this.b=[this.va.path(),this.va.path(),this.va.path()],this.b[0].zIndex(0),this.b[1].zIndex(1),this.b[2].zIndex(3))};$.g.en=function(a,b){for(var c=0;c<this.b.length;c++){var d=this.b[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
  $.g.Qq=function(a,b,c,d){for(var e=0;e<this.b.length;e++){var f=this.b[e];f.clear();f.moveTo(a,b).lineTo(c,d)}};$.g.AI=function(a,b,c,d,e,f){for(var h=0;h<this.b.length;h++){var k=this.b[h];k.clear();k.moveTo(a,b).lineTo(c,d).lineTo(e,f).close()}};$.g.Sg=function(a){yV.B.Sg.call(this,a);this.b[0].stroke(this.o(this,a));this.b[0].fill(this.f(this,a));this.b[1].stroke(null).fill(this.g(this,a));this.b[2].fill($.Ek).stroke($.Ek,2*this.hoverGap())};
  $.g.F=function(){var a=yV.B.F.call(this);$.lp(this,GV,a,"Annotation");$.lp(this,HV,a,"Annotation");$.lp(this,IV,a,"Annotation");$.lp(this,JV,a,"Annotation");return a};$.g.Y=function(a,b){yV.B.Y.call(this,a,b);$.bp(this,GV,a);$.bp(this,HV,a);$.bp(this,IV,a);$.bp(this,JV,a)};$.g.R=function(){yV.B.R.call(this);$.$c(this.b);delete this.o;delete this.f;delete this.g};$.H(zV,NU);$.$o(zV,["stroke"],"normal");$.Zo(zV,GV);YU["vertical-line"]=zV;$.g=zV.prototype;$.g.type="vertical-line";$.g.Ie=1;$.g.Cg=function(){var a=zV.B.Cg.call(this);return $.Fa(a,MV)};$.g.bg=function(){zV.B.bg.call(this);this.b||(this.b=[this.va.path(),this.va.path()],this.b[0].zIndex(0),this.b[1].zIndex(3))};$.g.en=function(a){a=$.xn(a,$.Cn(this.b[0].stroke()));for(var b=0;b<this.b.length;b++){var c=this.b[b];c.clear();c.moveTo(a,this.ga.top).lineTo(a,this.ga.Na())}};
  $.g.Sg=function(a){zV.B.Sg.call(this,a);this.b[0].fill(null).stroke(this.f(this,a));this.b[1].fill($.Ek).stroke($.Ek,2*this.hoverGap())};$.g.F=function(){var a=zV.B.F.call(this);$.lp(this,GV,a,"Annotation");return a};$.g.Y=function(a,b){zV.B.Y.call(this,a,b);$.bp(this,GV,a)};$.g.R=function(){zV.B.R.call(this);$.$c(this.b);delete this.f};$.H(AV,$.X);$.g=AV.prototype;$.g.oa=$.X.prototype.oa|192;$.g.Ny=function(){for(var a=0;a<this.zf.length;a++)this.zf[a].u(64);this.o&&this.o.u(64);this.u(64)};
  $.g.W=function(){if(this.Bc()){$.V(this);this.f||(this.f=$.Ti(),this.f.Oe("mouseover",this.Ew,!1,this),this.f.Oe("touchstart",this.Ew,!1,this),this.f.qa("mouseover",this.P$,!1,this),this.f.qa("mouseout",this.O$,!1,this),this.g=$.Ri(0,0,0,0),this.g.cursor("crosshair"),this.g.fill($.Ek),this.g.stroke(null),this.g.qa("mouseover",this.Z$,!1,this),this.K=$.Ri(0,0,0,0),this.K.fill($.Ek),this.K.stroke(null),this.K.zIndex(1E3));this.J(4)&&(this.P=this.ka(),this.f.clip(this.P),this.g.yf(this.P),this.K.yf(this.P),
  this.u(64),this.I(4));if(this.J(64)){for(var a=0,b=this.zf.length;a<b;a++){var c=this.zf[a];$.V(c);c.ka(this.P);c.O(this.f);c.W();c.ba(!1)}this.o&&($.V(this.o),this.o.ka(this.P),this.o.O(this.f),this.o.W(),this.o.ba(!1));this.I(64)}this.J(2)&&(this.f.parent(this.O()),this.u(128),this.I(2));this.J(8)&&(a=this.zIndex(),this.f.zIndex(a),this.g.zIndex(a+100),this.I(8));this.J(128)&&(this.ta?this.g.parent(this.O()):this.g.remove(),this.I(128));this.ba(!1)}};
  $.g.Ew=function(a){this.Lj||(this.Lj=new EV(this),"touchstart"==a.type&&this.Lj.Bk(a.dk))};$.g.P$=function(a){a.stopPropagation();a.f();a.preventDefault();a=a.target;for(var b;$.K(a,$.vf);){b=a.tag;if($.K(b,NU)){this.b.Vi(b);return}a=a.parent()}this.b.sd()};$.g.O$=function(a){a.stopPropagation();a.f();a.preventDefault();this.b.sd()};
  $.g.Z$=function(a){var b=this.b.b,c=b.D;c&&c!=this||(RU(b)?XU(this.b,!1):(this.g.qa("mouseout",this.pQ,!1,this),this.g.qa("mousedown",this.oQ,!1,this),$.pd($.Sj,"mousemove",this.yJ,!1,this),a.stopPropagation(),a.f(),a.preventDefault(),BV(this,a),this.ra=!1,OU(b,this.D,this.G),b.eA()?b.W():CV(this,b,!1)))};
  $.g.pQ=function(a){this.g.cc("mouseout",this.pQ,!1,this);this.g.cc("mousedown",this.oQ,!1,this);a.stopPropagation();a.f();a.preventDefault();BV(this,a);this.ra=!0;if(!this.$){$.xd($.Sj,"mousemove",this.yJ,!1,this);a=this.b.b;a.P=window.NaN;a.$=window.NaN;a.u(128);if(a.ra){var b=null!=a.D;a.ra=!0;a.D=null;b&&a.u(64);a.lb(null);$.Fp(a,this.CU,this);this.o=null;this.u(64,1)}a.W()}};
  $.g.oQ=function(a){$.pd($.Sj,"mouseup",this.SX,!1,this);a.stopPropagation();a.f();a.preventDefault();BV(this,a);this.ea=this.D;this.la=this.G;this.$=!1;a=this.b.b;OU(a,this.D,this.G);a.W()};
  $.g.SX=function(a){$.xd($.Sj,"mouseup",this.SX,!1,this);a.stopPropagation();a.preventDefault();BV(this,a);this.la=this.ea=window.NaN;this.$=!1;a=this.b.b;a.ra&&CV(this,a,!0);PU(a);var b=!1;RU(a)?b=!0:this.ra||OU(a,this.D,this.G);a.W();b&&(XU(this.b,!1),this.b.ic().dispatchEvent({type:"annotationDrawingFinish",annotation:a}))};
  $.g.yJ=function(a){a.stopPropagation();a.preventDefault();BV(this,a);a=this.b.b;a.kb();!a.Xb||(0,window.isNaN)(this.ea)||(0,window.isNaN)(this.la)||this.$?(OU(a,this.D,this.G),a.W()):16<=(this.ea-this.D)*(this.ea-this.D)+(this.la-this.G)*(this.la-this.G)&&(this.$=!0,a.ra&&CV(this,a,!0),PU(a),OU(a,this.D,this.G),a.W())};$.g.remove=function(){this.f&&(this.f.remove(),this.g.remove())};$.g.select=function(a){this.b.select(a);return this};$.g.Bd=function(){this.b.Bd();return this};$.g.G4=function(){return this.b.b};
  $.g.f$=function(a){return this.zf[a]||null};$.g.g$=function(){return this.zf.length};$.g.aN=function(a){if(this.o==a)return this.o=null,$.Zc(a),this;var b=this.b;b.b==a&&(b.b=null,XU(b,!1));return this.PZ((0,$.ya)(this.zf,a))};$.g.PZ=function(a){var b=this.zf[a];b&&($.Ba(this.zf,a,1),$.Zc(b),this.u(64,1));return this};$.g.DU=function(){this.zf.length&&($.$c(this.zf),this.zf.length=0,this.u(64,1));return this};
  $.g.dd=function(a){return this.b.Bt()?($.V(this.b.ic()),a=ZU(this.b,a),CV(this,a,!0),this.b.select(a),this.b.b||($.Zc(a),a=null),this.b.ic().ba(!0),a):null};$.g.add=function(a){$.V(this.b.ic());a=ZU(this.b,a);CV(this,a,!0);this.b.ic().ba(!0);return a};$.g.E4=function(){this.b.$M()};$.g.Ada=function(a){var b=ZU(this.b,"ray");b.N(a);CV(this,b,!0);return b};$.g.line=function(a){var b=ZU(this.b,"line");b.N(a);CV(this,b,!0);return b};
  $.g.Gaa=function(a){var b=ZU(this.b,"infinite-line");b.N(a);CV(this,b,!0);return b};$.g.Xea=function(a){var b=ZU(this.b,"vertical-line");b.N(a);CV(this,b,!0);return b};$.g.Caa=function(a){var b=ZU(this.b,"horizontal-line");b.N(a);CV(this,b,!0);return b};$.g.Bda=function(a){var b=ZU(this.b,"rectangle");b.N(a);CV(this,b,!0);return b};$.g.ellipse=function(a){var b=ZU(this.b,"ellipse");b.N(a);CV(this,b,!0);return b};$.g.Oea=function(a){var b=ZU(this.b,"triangle");b.N(a);CV(this,b,!0);return b};
  $.g.Nea=function(a){var b=ZU(this.b,"trend-channel");b.N(a);CV(this,b,!0);return b};$.g.A4=function(a){var b=ZU(this.b,"andrews-pitchfork");b.N(a);CV(this,b,!0);return b};$.g.S9=function(a){var b=ZU(this.b,"fibonacci-fan");b.N(a);CV(this,b,!0);return b};$.g.R9=function(a){var b=ZU(this.b,"fibonacci-arc");b.N(a);CV(this,b,!0);return b};$.g.T9=function(a){var b=ZU(this.b,"fibonacci-retracement");b.N(a);CV(this,b,!0);return b};
  $.g.U9=function(a){var b=ZU(this.b,"fibonacci-timezones");b.N(a);CV(this,b,!0);return b};$.g.Vu=function(a){var b=ZU(this.b,"marker");b.N(a);CV(this,b,!0);return b};$.g.label=function(a){var b=ZU(this.b,"label");b.N(a);CV(this,b,!0);return b};$.g.CU=function(a){$.W(a,1)&&this.u(64,1)};$.g.F=function(){var a=AV.B.F.call(this);a.annotationsList=DV(this);return a};$.g.He=function(a,b){return $.A(b)?(DV(this,b),!0):!1};
  $.g.Y=function(a,b){AV.B.Y.call(this,a,b);var c=a.annotationsList;$.A(c)&&DV(this,c)};$.g.Nz=function(a){var b=this.xd?{}:{annotationsList:DV(this)},c={defaultAnnotationSettings:this.b.ic().GO()};b=$.kl(b,c)||{};return a?$.Nm(b):b};$.g.RL=function(a){var b=this.Nz(!1);return $.Sn(b,"annotations",a)};$.g.cX=function(a){var b;$.z(a)?b=$.Om(a):$.D(a)&&!$.E(a)&&(b=a);b=$.D(b)?b.annotationsList:b;DV(this,b);return this};$.g.d$=function(a){a=$.Pn(a);this.cX(a);return this};
  $.g.R=function(){AV.B.R.call(this);var a=this.b;a.f&&$.Ea(a.f,this);$.$c(this.zf,this.o)};$.H(EV,$.mf);$.g=EV.prototype;
  $.g.Bk=function(a){var b;if(b=!this.Bs)a:{b=$.ei(a.target,this.g.f.Da());for(var c,d=window.NaN;$.K(b,$.vf);){c=b.tag;if(!$.en(c))d=$.O(c);else if($.K(c,NU)){this.b=c;(0,window.isNaN)(d)&&(d=-1);this.o=d;b=!0;break a}b=b.parent()}this.b=null;this.o=window.NaN;b=!1}b&&(RU(this.b)?this.g.b.ic().dispatchEvent({type:"annotationChangeStart",annotation:this.b})?(EV.B.Bk.call(this,a),this.Bs&&a.stopPropagation()):(this.b=null,this.o=window.NaN,a.stopPropagation()):(this.g.b.select(this.b),this.b=null,this.o=
  window.NaN))};$.g.Kq=function(){this.b.ES();this.deltaY=this.deltaX=0};$.g.es=function(a,b){this.g.b.ic().dispatchEvent({type:"annotationChange",annotation:this.b})&&this.b.JR(this.o,a,b)};$.g.Y$=function(){this.g.b.select(this.b);var a=this.g;a.K.parent(a.f)};$.g.W$=function(){var a=this.b;this.b.u(64);this.b.W();this.b=null;this.o=window.NaN;this.g.K.remove();this.g.b.ic().dispatchEvent({type:"annotationChangeFinish",annotation:a})};var TV=AV.prototype;TV.add=TV.add;TV.startDrawing=TV.dd;
  TV.cancelDrawing=TV.E4;TV.getAnnotationAt=TV.f$;TV.getAnnotationsCount=TV.g$;TV.removeAnnotation=TV.aN;TV.removeAnnotationAt=TV.PZ;TV.removeAllAnnotations=TV.DU;TV.getSelectedAnnotation=TV.G4;TV.select=TV.select;TV.unselect=TV.Bd;TV.ray=TV.Ada;TV.line=TV.line;TV.infiniteLine=TV.Gaa;TV.verticalLine=TV.Xea;TV.horizontalLine=TV.Caa;TV.rectangle=TV.Bda;TV.ellipse=TV.ellipse;TV.triangle=TV.Oea;TV.trendChannel=TV.Nea;TV.andrewsPitchfork=TV.A4;TV.fibonacciFan=TV.S9;TV.fibonacciArc=TV.R9;
  TV.fibonacciRetracement=TV.T9;TV.fibonacciTimezones=TV.U9;TV.marker=TV.Vu;TV.label=TV.label;TV.fromJson=TV.cX;TV.toJson=TV.Nz;TV.fromXml=TV.d$;TV.toXml=TV.RL;$.G("anychart.annotations.PlotController",AV);}).call(this,$)}
  