text: /**
   * Copyright (c) 2014, 2016, Oracle and/or its affiliates.
   * The Universal Permissive License (UPL), Version 1.0
   */
  "use strict";
  define(['./DvtToolkit', './DvtAxis'], function(dvt) {
    // Internal use only.  All APIs and functionality are subject to change at any time.
  
  var q;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||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}Math.floor(2147483648*Math.random()).toString(36);
  (function(a){function b(a){this.Init(a.u(),a.dispatchEvent,a);this.Ig=a}function c(a){this.Init();this.Ig=a}function d(){this.Init({skyros:d.lh,alta:d.pf})}function e(a){this.Init(a)}function f(){this.Init({skyros:f.lh,alta:{}})}function h(a,b,c,d,e,f){this.Init(a,b,c,d,e,f)}function k(a,b,c,d,e,f){this.Init(a,b,c,d,e,f)}function l(){this.Init({skyros:l.lh,alta:l.pf})}function n(){this.Init({skyros:n.lh,alta:{}})}function m(a,b){this.Init(a,b)}function r(a){this.Init(a.u(),a.dispatchEvent,a);this.Ig=
  a;this.ss=!1}function p(){}function w(a){this.Ig=a}function x(){}a.v.F(x,a.Je);x.ivb=0;x.hvb=100;x.prototype.Init=function(b,c,d,e){x.C.Init.call(this,b,c,d);this.Xla=e;this.Xla||(this.I=this.yS(),this.I.Qf(this),a.B.Va()||this.I.bs(this.YC(this.I)),this.setId("gauge1000"+Math.floor(1E9*Math.random())),this.ZO=new a.Rect(b,0,0),this.ZO.Wb(),this.A(this.ZO));this.Vla=this.rK=!1;this.y1=null};x.prototype.xf=function(b){this.W=b;a.B.uj()||(this.W.animationOnDisplay="none",this.W.animationOnDataChange=
  "none")};x.prototype.ta=function(b,c,d){b?this.xf(b):this.W||this.xf(null);this.W.thresholds&&(this.W.thresholds=this.W.thresholds.sort(x.Ogb));isNaN(c)||isNaN(d)||(this.Vla=0!=this.xb&&this.xb!=c||0!=this.Kb&&this.Kb!=d?!0:!1,this.xb=c,this.Kb=d);d=this.rG;this.rG=[];c=new a.ma(this.u());this.Hb(c,0);this.Fn(c,this.xb,this.Kb);this.kgb(c,null!=b,d,this.xb,this.Kb);this.ZO&&(this.ZO.Xa(this.xb),this.ZO.qb(this.Kb),this.ab().mb(this.ZO,this.HT(),!0));this.lr();this.Xla||this.W.readOnly||(c.bg("slider"),
  c.Gd("valuemin",this.W.min),c.Gd("valuemax",this.W.max),b=u.Ko(this.W.value,this),c.Gd("valuenow",b),d=u.Fea(this),a.B.Va()&&(this.Ea.Gd("live","assertive"),b!=d&&(d=b+a.H.va(a.H.Ia,"ARIA_LABEL_DESC_DELIMITER")+d)),b!=d&&c.Gd("label",d),this.Nz=null!=this.Nz?this.Nz+1:0,b=this.getId()+"_"+this.Nz,c.setId(b),this.u().OI(c));this.W._selectingCursor&&this.setCursor("pointer");this.lc||this.ys()};x.prototype.HT=function(){var b=this.W.tooltip,c=b?b.renderer:null,b=z.fc(this);if(c){var d={component:this.W._widgetConstructor,
  label:u.Ko(this.W.value,this),color:b};return new a.lJ(this.u().Bf(),c,b,d)}c=u.Fea(this);return new a.vi(null,c,b)};x.prototype.Fn=function(){};x.prototype.kgb=function(b,c,d,e,f){this.jr();var k=!1,h=this.rK||this.Vla?"none":this.D().animationOnDataChange,A=this.rK||this.Vla?"none":this.D().animationOnDisplay,m=a.Ta.Ur(this.D().animationDuration)/1E3;if(A||h)e=new a.Z(0,0,e,f),f=this.u(),this.Ea||"none"===A||null==this.rG[0]?this.Ea&&"none"!=h&&c&&null!=this.rG[0]&&((this.lc=a.pc.eM(f,h,this.Ea,
  b,e,m))?k=!0:this.lc=this.HYa(d,this.rG,m)):(this.lc=a.pc.UE(f,A,b,e,m),this.lc||(this.lc=this.Rga(this.rG,A,m))),!k&&this.Ea&&(this.removeChild(this.Ea),this.Ea.ya()),this.lc&&(this.lc.play(),this.lc.lg(this.aw,this)),k&&(this.Ej=this.Ea),this.Ea=b};x.prototype.Rga=function(){return null};x.prototype.HYa=function(b,c,d){for(var e=[],f=0;f<b.length;f++){var k=c[f],h=b[f].sf(),A=k.sf();k.ff(h);h=new a.gd(this.u(),k,d);h.ka.N(a.G.yf,k,k.sf,k.ff,A);e.push(h)}return new a.jh(this.u(),e)};x.prototype.vJ=
  function(){return null};x.prototype.wWa=function(){this.ta();this.nka(this.Ea)};x.prototype.nka=function(b,c){c=u.Ko(c?c:this.W.value,this);b.Gd("valuenow",c);a.B.Va()&&b.Gd("label",c)};x.prototype.aw=function(){this.Ej&&(this.removeChild(this.Ej),this.Ej.ya(),this.Ej=null);this.wn||this.ys();this.lc=null;this.wn=!1};x.prototype.I8=function(a,b){this.rK=!0;this.y1=this.W.value;this.LT(a,b)};x.prototype.LT=function(b,c){null!=this.y1&&(this.W.value=u.Zca(this.W,this.vJ(b,c)),this.wWa(),this.dispatchEvent(a.Za.MM(this.y1,
  this.W.value,!1)))};x.prototype.jla=function(b,c){this.LT(b,c);if(a.B.Va()){var d=u.Ko(this.W.value,this),e=u.Fea(this);d!=e&&(e=d+a.H.va(a.H.Ia,"ARIA_LABEL_DESC_DELIMITER")+e,this.Ea.Gd("label",e))}this.dispatchEvent(a.Za.MM(this.y1,this.W.value,!0));this.rK=!1;this.y1=null};x.prototype.Q6a=function(){if(!this.W.readOnly){var b=this.W.value;this.W.value=null!=this.W.step?u.Zca(this.W,this.W.value+this.W.step):Math.min(Math.max(this.W.value+(this.W.max-this.W.min)/100,this.W.min),this.W.max);this.ta();
  this.dispatchEvent(a.Za.MM(b,this.W.value,!0))}};x.prototype.K6a=function(){if(!this.W.readOnly){var b=this.W.value;this.W.value=null!=this.W.step?u.Zca(this.W,this.W.value-this.W.step):Math.min(Math.max(this.W.value-(this.W.max-this.W.min)/100,this.W.min),this.W.max);this.ta();this.dispatchEvent(a.Za.MM(b,this.W.value,!0))}};x.prototype.yS=function(){return new r(this)};x.Ogb=function(a,b){return null!=a.max&&null!=b.max?a.max-b.max:a.max?-Infinity:Infinity};x.prototype.oh=function(){return new w(this)};
  x.prototype.YC=function(a){return new m(a,this)};x.prototype.em=function(){return a.H.Cf(this.D(),"componentName",a.H.Ia,"GAUGE")};x.prototype.lr=function(){if(!this.Xla){var b=u.Fea(this);this.g7()?this.W.readOnly?(this.u().bg("img"),this.u().V4(a.H.va(a.H.Ia,"COLON_SEP_LIST",[a.H.va(a.H.Ia,"DATA_VISUALIZATION"),a.oa.Fk(a.Nd.II(this.em()),b?[b]:null)]))):(this.u().bg("application"),this.u().V4(a.H.va(a.H.Ia,"COLON_SEP_LIST",[a.H.va(a.H.Ia,"DATA_VISUALIZATION"),a.Nd.II(this.em())]))):this.W.readOnly&&
  (this.bg("img"),this.Gd("label",a.oa.Fk(a.Nd.II(this.em()),b?[b]:null)))}};a.v.F(w,a.Rd);w.prototype.ph=function(b){if(b==a.Rd.qD)return this.RF(this.Ig);if(0==b.indexOf("item")){var c=b.indexOf("["),d=b.indexOf("]");if(0<c&&0<d&&(b=this.Ig.iGa(b.substring(c+1,d))))return b.Wa()}return null};w.prototype.zn=function(a){for(var b=this.Ig.D(),c=0;c<b.max;c++)if(this.Ig.iGa(c)==a)return"item["+c+"]";return null};w.prototype.getValue=function(){return this.Ig.D().value};w.prototype.nmb=function(){return u.Ko(this.getValue(),
  this.Ig)};a.H.jC(a.H.$Za,{});a.v.F(p,a.eb);p.pf={skin:a.j.pf,color:"#393737",metricLabel:{style:new a.j(a.eb.Pm)},_statusMessageStyle:new a.j(a.eb.Pm),title:{style:new a.j(a.eb.Pm)},_thresholdColors:["#ed6647","#fad55c","#68c182"]};p.lh={skin:a.j.Hg,min:0,max:100,center:{},color:"#313842",borderColor:null,visualEffects:"auto",emptyText:null,animationOnDataChange:"none",animationOnDisplay:"none",animationDuration:500,readOnly:"true",metricLabel:{rendered:"auto",scaling:"auto",style:new a.j(a.eb.Mt),
  textType:"number"},_statusMessageStyle:new a.j(a.eb.Mt),title:{style:new a.j(a.eb.Mt),position:"auto"},_thresholdColors:["#D62800","#FFCF21","#84AE31"],__layout:{outerGap:1,labelGap:5}};p.prototype.Init=function(b){b={skyros:a.ac.Wd(b.skyros,p.lh),alta:a.ac.Wd(b.alta,p.pf)};p.C.Init.call(this,b)};p.tA=function(b){return b.D().skin==a.j.Hg};var v={};a.v.F(v,a.v);v.wC=function(a){var b=a.D();return b&&null!=b.value&&v.NUa(a)};v.NUa=function(a){a=a.D();return Number(a.min)<Number(a.max)};v.AR=function(a,
  b){var c=a.D(),d=null!=b?b:c.value,c=c.thresholds;if(!c)return-1;for(var e=0;e<c.length;e++)if(d<=c[e].max)return e;return c.length-1};v.oX=function(a,b){var c=a.D().thresholds;return c&&0<=b&&b<c.length?c[b]:null};v.kwb=function(a,b){var c=a.D().referenceLines;return c&&0<=b&&b<c.length?c[b]:null};a.v.F(r,a.I);r.prototype.mo=function(a){if(!1===this.Ig.D().readOnly){this.ss=!0;this.qe();var b=this.QF(a.pageX,a.pageY);this.Ig.I8(b.x,b.y);a.preventDefault()}else r.C.mo.call(this,a)};r.prototype.Uo=
  function(a){this.ss?(this.ss=!1,a=this.QF(a.pageX,a.pageY),this.Ig.jla(a.x,a.y)):r.C.Uo.call(this,a)};r.prototype.Oy=function(a){if(this.ss){var b=this.QF(a.pageX,a.pageY);this.Ig.LT(b.x,b.y)}!this.mia()&&this.ss||r.C.Oy.call(this,a)};r.prototype.mia=function(){return!1};r.prototype.FZ=function(b){if(a.TouchEvent.Yi===b.type&&!1===this.Ig.D().readOnly){this.ss=!0;var c=this.QF(b.touches[0].pageX,b.touches[0].pageY);this.Ig.I8(c.x,c.y);b.preventDefault()}else a.TouchEvent.Yo===b.type&&this.ss?(c=this.QF(b.touches[0].pageX,
  b.touches[0].pageY),this.Ig.LT(c.x,c.y),b.preventDefault()):a.TouchEvent.Rm===b.type&&this.ss&&(this.ss=!1,c=this.QF(b.changedTouches[0].pageX,b.changedTouches[0].pageY),this.Ig.jla(c.x,c.y),b.preventDefault());this.ss&&!this.mia()||r.C.FZ.call(this,b)};r.prototype.ll=function(b){if(!this.Cb)return!1;this.Cb.ik(b);var c=b.keyCode;if(c==a.KeyboardEvent.kh||c==a.KeyboardEvent.Kf||c==a.KeyboardEvent.Tf||c==a.KeyboardEvent.wf||c==a.KeyboardEvent.Mh)c=this.Ig.u().sC(),this.VN(b,c.x,c.y,this.Ig.HT(),this.Ig);
  return!1};r.prototype.CJ=function(a){r.C.CJ.call(this,a);this.qe()};r.prototype.QF=function(a,b){var c=this.u().eh(a,b);return this.Ig.Md(c)};r.prototype.sD=function(){};a.v.F(m,a.Cb);m.prototype.Init=function(a,b){m.C.Init.call(this,a);this.Ig=b};m.prototype.ik=function(b){var c=b.keyCode,d=a.B.da(this.Ig.u());if(c==a.KeyboardEvent.kh||c==(d?a.KeyboardEvent.Kf:a.KeyboardEvent.wf))this.Ig.Q6a(),a.I.sc(b);else if(c==a.KeyboardEvent.Tf||c==(d?a.KeyboardEvent.wf:a.KeyboardEvent.Kf))this.Ig.K6a(),a.I.sc(b)};
  var z={};a.v.F(z,a.v);z.zvb=["#ed6647","#fad55c","#68c182"];z.yvb=["#D62800","#FFCF21","#84AE31"];z.Y2a={startAngle:202.5,angleExtent:225,anchorX:100,anchorY:103,metricLabelBounds:{x:80,y:86,width:40,height:34},indicatorLength:.85,tickLabelHeight:20,tickLabelWidth:30,radius:60,majorTickCount:6};z.Z2a={startAngle:202.5,angleExtent:225,anchorX:100,anchorY:103,metricLabelBounds:{x:83,y:86,width:34,height:34},indicatorLength:.85,tickLabelHeight:20,tickLabelWidth:30,radius:60,majorTickCount:6};z.a3a={startAngle:202.5,
  angleExtent:225,anchorX:100,anchorY:103,metricLabelBounds:{x:83,y:86,width:34,height:34},indicatorLength:.85,tickLabelHeight:20,tickLabelWidth:30,radius:60,majorTickCount:6};z.g3a={startAngle:220.5,angleExtent:261.1,anchorX:100,anchorY:100,metricLabelBounds:{x:82,y:133,width:36,height:34},indicatorLength:.85,tickLabelHeight:20,tickLabelWidth:30,radius:61,majorTickCount:6};z.h3a={startAngle:195.5,angleExtent:210.8,anchorX:100,anchorY:100,metricLabelBounds:{x:84,y:135,width:32,height:35},indicatorLength:.98,
  tickLabelHeight:20,tickLabelWidth:30,radius:63,majorTickCount:6};z.j3a={startAngle:207.6,angleExtent:235,anchorX:100,anchorY:95.8,metricLabelBounds:{x:83,y:125,width:34,height:40},indicatorLength:1.05,tickLabelHeight:20,tickLabelWidth:30,radius:64,majorTickCount:6};z.e5a={startAngle:220.5,angleExtent:261.1,anchorX:100,anchorY:100,metricLabelBounds:{x:80,y:82,width:40,height:40},indicatorLength:.82,tickLabelHeight:20,tickLabelWidth:30,radius:58,majorTickCount:6};z.f5a={startAngle:201,angleExtent:222,
  anchorX:100.2,anchorY:89,metricLabelBounds:{x:80,y:70,width:41,height:39},indicatorLength:1.23,tickLabelHeight:20,tickLabelWidth:30,radius:56,majorTickCount:6};z.h5a={startAngle:211,angleExtent:242,anchorX:100,anchorY:91.445,metricLabelBounds:{x:78,y:75,width:44,height:38},indicatorLength:1.1,tickLabelHeight:20,tickLabelWidth:30,radius:58,majorTickCount:6};z.H3a={startAngle:220.5,angleExtent:261.5,metricLabelBounds:{x:80,y:82,width:40,height:40},indicatorLength:.85,tickLabelHeight:20,tickLabelWidth:30,
  radius:60,majorTickCount:6};z.I3a={startAngle:201,angleExtent:222,anchorX:100.2,anchorY:89,metricLabelBounds:{x:80,y:73,width:40,height:36},indicatorLength:1.23,tickLabelHeight:20,tickLabelWidth:30,radius:56,majorTickCount:6};z.K3a={startAngle:201,angleExtent:222,anchorX:100.2,anchorY:99.5,metricLabelBounds:{x:80,y:83,width:41,height:36},indicatorLength:1.1,tickLabelHeight:20,tickLabelWidth:30,radius:58,majorTickCount:6};z.i3a={anchorX:42,anchorY:510};z.$2a={anchorX:187,anchorY:388};z.g5a={anchorX:227,
  anchorY:425};z.J3a={anchorX:227,anchorY:425};z.fc=function(b){var c=b.D(),d=v.AR(b),e=v.oX(b,d);return!e||b instanceof a.Xo&&!(b instanceof a.Xo&&"onIndicator"==c.thresholdDisplay)?c.color:z.l4(b,e,d)};z.Xn=function(b){var c=b.D(),d=v.AR(b);return(d=v.oX(b,d))&&d.borderColor&&(!(b instanceof a.Xo)||b instanceof a.Xo&&"onIndicator"==c.thresholdDisplay)?d.borderColor:c.borderColor};z.ZTa=function(b){var c=b.D(),d=v.AR(b),e=v.oX(b,d);return!e||b instanceof a.Xo&&!(b instanceof a.Xo&&"onIndicator"!=c.thresholdDisplay)?
  c.plotArea.color:z.l4(b,e,d)};z.YTa=function(b){var c=b.D(),d=c.plotArea.borderColor;return b instanceof a.Xo&&"circular"!=c.orientation&&null==d?"skyros"==c.skin?"#C6C6C6":"#D6DFE6":d};z.l4=function(a,b,c){if(b.color)return b.color;a=a.D();return a._thresholdColors[c%a._thresholdColors.length]};z.jlb=function(a){return"rectangleAlta"===a?z.a3a:"domeAlta"===a?z.Z2a:"circleAntique"===a?z.g3a:"rectangleAntique"===a?z.j3a:"domeAntique"===a?z.h3a:"circleLight"===a?z.e5a:"rectangleLight"===a?z.h5a:"domeLight"===
  a?z.f5a:"circleDark"===a?z.H3a:"rectangleDark"===a?z.K3a:"domeDark"===a?z.I3a:z.Y2a};z.klb=function(a){return"needleAntique"===a?z.i3a:"needleLight"===a?z.g5a:"needleDark"===a?z.J3a:z.$2a};z.uX=function(a){return!!a.title.text};var u={};a.v.F(u,a.v);u.yp=function(b,c,d){var e=b.D(),f=e.emptyText;f||(f=a.H.Cf(e,"labelNoData",a.H.Ia,"NO_DATA",null));v.NUa(b)||(f=a.H.Cf(e,"labelInvalidData",a.H.Ia,"INVALID_DATA",null));e=e._statusMessageStyle;e.M("font-size")||e.ea("font-size","13px");if(b instanceof
  a.Xo){var k=e.M("color");e.ea("color",k?k:"#333333")}a.Ca.yp(c,f,new a.Z(d.x,d.y,d.a,d.b),b.ab(),e)};u.Ko=function(a,b){var c=b.D();return c.metricLabel.text?c.metricLabel.text:u.sJa(a,b,c.metricLabel.converter,c.metricLabel.scaling,c.metricLabel.autoPrecision?c.metricLabel.autoPrecision:"on","percent"==c.metricLabel.textType)};u.Bta=function(a,b){var c=b.D(),d=null,e="percent"==c.tickLabel.textType;"on"==c.tickLabel.rendered&&c.tickLabel.converter&&(d=c.tickLabel.converter);var f=null;"on"==c.tickLabel.rendered&&
  c.tickLabel.scaling&&(f=c.tickLabel.scaling);return u.sJa(a,b,d,f,c.tickLabel.autoPrecision?c.tickLabel.autoPrecision:"on",e)};u.sJa=function(b,c,d,e,f,k){var h=c.D(),A=h.min,m=h.max,l=m-A,n=null;isNaN(l)||(n=l/(1E3>l?100:1E3));k&&(b=u.B3(h,h.min,b,!0));c=new a.Pj(c.u(),A,m,n,e,f);b=d&&d.getAsString?c.format(b,d):d&&d.format?c.format(b,d):k?Math.round(100*b):c.format(b);return k?String(b)+"%":b};u.B3=function(a,b,c,d){a=(c-b)/(a.max-a.min);return a=d?a:Math.min(Math.max(0,a),1)};u.Fea=function(b){var c=
  b.D(),d=v.AR(b),d=v.oX(b,d);b=u.Ko(c.value,b);return d&&null!=d.shortDesc?d.shortDesc:null!=c.shortDesc?c.shortDesc:c.title.text?a.H.va(a.H.Ia,"COLON_SEP_LIST",[c.title.text,b]):b};u.zfa=function(b,c,d,e,f,k,h){var A=b.D(),m=!1;if("on"==A.metricLabel.rendered||h&&"off"!=A.metricLabel.rendered){h=u.Ko(A.value,b);var m=u.Ko(A.min,b),l=u.Ko(A.max,b);b=new a.ca(b.u(),h,d.x+d.a/2,d.y+d.b/2);b.Bb(A.metricLabel.style);A=(A=A.metricLabel.style.M("font-size"))?parseInt(A):null;A||(A=u.dda([h,m,l],b,d),b.xg(h),
  b.fh(A));"top"==k?(b.jb(d.y),b.op()):"middle"==k?a.Ca.EW(b,d.y+d.b/2):"bottom"==k&&(b.jb(d.y+d.b),b.Rq());"center"==f?b.Xf():"left"==f?(b.Fa(d.x),b.Rh()):"right"==f&&(b.Fa(d.x+d.a),b.Sh());null!=e&&b.fb(e);m=a.Ca.kd(b,d.a,d.b,c)}return m};u.xxa=function(b,c,d,e,f){var k=b.D(),h=!1;if(z.uX(k)){var h=k.title.text,A=k.title.style,k=new a.$b(b.u(),h),m=A.clone();k.Bb(A);var l=A.M("font-size"),l=l?parseInt(l):null;l||(h=new a.ca(b.u(),h,0,0),h.Bb(A),l=h.qC(d),m.fh("font-size",l.toString()));null!=e&&m.ea("color",
  e);k.Bb(m);h=a.Ca.kd(k,d.a,d.b,b);b=a.Ca.tR(k);"top"==f?k.jb(d.y):"bottom"==f?k.jb(d.y+d.b-b):k.jb(d.y+d.b/2-b/2);k.Fa(d.x+d.a/2);k.Xf();c.A(k)}return h};u.dda=function(a,b,c){for(var d=0,e=null,f=0,k=0;k<a.length;k++)b.xg(a[k]),f=b.Pc().a,f>d&&(e=a[k],d=f);b.xg(e);return b.qC(c)};u.Zca=function(a,b){var c=Number(a.step);if(c&&0<c){var d=(b-a.min)/c;return.5<d?Math.max(Math.min(a.max,Math.round(d)*c+a.min),a.min):a.min}return b};a.RA=function(){};a.v.F(a.RA,x);a.RA.newInstance=function(b,c,d,e){var f=
  new a.RA;f.Init(b,c,d,e);return f};a.RA.prototype.Init=function(b,c,d,e){a.RA.C.Init.call(this,b,c,d,e);this.Xg=new n};a.RA.prototype.xf=function(b){a.RA.C.xf.call(this,this.Xg.fn(b));"auto"==this.W.animationOnDisplay&&(this.W.animationOnDisplay="zoom");"auto"==this.W.animationOnDataChange&&(this.W.animationOnDataChange="alphaFade");this.W.readOnly=!0};a.RA.prototype.Fn=function(a,b,c){D.ta(this,a,b,c)};a.v.F(n,p);n.lh={type:"circle"};var D={};a.v.F(D,a.v);D.h6a="M-42,36.6Q-50,36.6,-46.54,28.6L-4,-43.07Q0,-50,4,-43.07L46.54,28.6Q50,36.6,42,36.6Z";
  D.b6a=[-50,36.6,0,-50,50,36.6];D.i6a=[-50,36.6,0,-50,50,36.6];D.g6a=[-13.05,-12.94,-50,-11.13,-21.06,11.9,-30.74,47.6,.1,27.18,31.06,47.44,21.17,11.79,50,-11.39,13.05,-13.01,-.06,-47.59];D.Wka=[-50,-11.22,-16.69,-17.94,0,-47.55,16.69,-17.94,50,-11.22,26.69,13.8,30.9,47.56,0,33.42,-30.9,47.56,-26.69,13.8];D.e6a="M0,45L21,45Q24.414,44.414,25,41L25,10L42,10Q48.5,9.1,45,4L2,-38Q0,-39,-2,-38L-45,4Q-48.5,9.1,-42,10L-25,10L-25,41Q-24.414,44.414,-21,45Z";D.$5a=[25,48,25,8,47.5,8,0,-39,-47.5,8,-25,8,-25,48];
  D.f6a=[25,48,25,8,47.5,8,0,-39,-47.5,8,-25,8,-25,48];D.a6a="M -0.06059525142297417 -50.86842065108466 C -11.4496388584463 -50.86842065108466 -20.708163169810554 -39.024253028220556 -20.708163169810554 -24.413724255650386 C -20.708163169810554 -9.803195483080515 -11.4496388584463 2.040972139783591 -0.06059525142297417 2.040972139783591 C 11.328499974520241 2.040972139783591 20.586972666964613 -9.803195483080515 20.586972666964613 -24.413724255650386 C 20.586972666964613 -39.024253028220556 11.328499974520241 -50.86842065108466 -0.06059525142297417 -50.86842065108466 z M -23.93434565705865 -2.959610715450779 C -30.908061721494278 3.3998402034127153 -42.00096758564793 18.817121073473572 -38.77478509839983 33.65756051481475 C -20.651382358034887 47.30044101688934 14.372054723529814 49.13162219665128 39.298831093003386 32.85101489300273 C 40.26410489318826 16.477493533721187 32.34060070450674 4.7883891459240715 23.167918656763206 -2.959610715450779 C 11.553661702670112 21.074158341552575 -11.029615708066558 16.237465556670102 -23.93434565705865 -2.959610715450779 z ";
  D.ta=function(b,c,d,e){if(v.wC(b)){var f=b.D(),k=f.__layout.outerGap,h=f&&(0<=f.size||1>f.size)?Math.sqrt(f.size):1;e=new a.Z(k+(d-2*k)*(1-h)/2,k+(e-2*k)*(1-h)/2,(d-2*k)*h,(e-2*k)*h);D.f2(b,c,e);D.sra(b,c,e);k=!1;d=a.O.Tl(z.fc(b));z.uX(f)&&(k="middle",h=D.fKa(b,e),"on"==f.metricLabel.rendered&&(h.y+=.6*h.b,h.b*=.4,k="top"),k=a.B.GM()||null==f.title.style.M("color")?u.xxa(b,c,h,d,k):u.xxa(b,c,h,null,k));"on"==f.metricLabel.rendered&&(e=D.fKa(b,e),h="middle",k&&(e.b*=.55,h="bottom"),a.B.GM()||null==
  f.metricLabel.style.M("color")?u.zfa(b,c,e,d,"center",h):u.zfa(b,c,e,null,"center",h))}else u.yp(b,c,new a.Z(0,0,d,e))};D.f2=function(b,c,d){var e=b.u(),f=b.D(),k=f.type,h=z.fc(b),A=z.Xn(b),m=d.x+d.a/2,l=d.y+d.b/2,n=Math.min(d.a,d.b)/2,C=p.tA(b);D.Bc||(D.Bc=new a.Cache(50));var v=Math.min(d.a/100,d.b/100);"square"==k?m=new a.Rect(e,m-n,l-n,2*n,2*n):"rectangle"==k?m=new a.Rect(e,d.x,d.y,d.a,d.b):"diamond"==k?m=new a.ii(e,[m-n,l,m,l-n,m+n,l,m,l+n]):"circle"==k?m=new a.Nm(e,m,l,n):("star"==k?m=C?D.g6a:
  D.Wka:"triangle"==k?m=C?D.h6a:D.b6a:"arrow"==k?m=C?D.e6a:D.$5a:"human"==k?m=D.a6a:(m=D.Bc.get(k),m||(m=new a.vb(e,k),m=a.Ih.x3(e,m),l=100/Math.max(m.a,m.b),m=a.P.jya(k,-l*(m.x+m.a/2),-l*(m.y+m.b/2),l,l),D.Bc.put(k,m))),(C||"triangle"!=k&&"arrow"!=k)&&"star"!=k?(m=a.P.jya(m,d.x+d.a/2,d.y+d.b/2,v,v),m=new a.vb(e,m)):(m=a.no.scale(m,v,v),m=a.no.translate(m,d.x+d.a/2,d.y+d.b/2),m=new a.ii(e,m)));C||"none"==f.visualEffects?m.fb(h):(e=[a.O.Em(h,-.09,.04),a.O.Em(h,-.04,-.05)],h=f&&0==f.rotation%90?f.rotation:
  0,m.qa(new a.bd("arrow"==k||"star"==k||"triangle"==k?h-90:270,e,[1,1],[0,1])));A&&m.Tb(A);m.He(f.className);m.ea(f.style);(h=C?f.rotation+90:f.rotation)&&("arrow"==k||"triangle"==k||m instanceof a.vb&&"human"!=k)&&(m=D.Bra(b,c,m,d));c.A(m)};D.Bra=function(b,c,d,e){var f=b.D();b=new a.ma(b.u());c.A(b);b.A(d);c=f&&0==f.rotation%90?f.rotation:0;f=new a.Ub;f.rotate(Math.PI*c/180);d.rb(f);c=b.aa();d=e.x+e.a/2-(c.x+c.a/2);e=e.y+e.b/2-(c.y+c.b/2);c=new a.Ub;c.translate(d,e);b.rb(c);return b};D.sra=function(a,
  b,c){var d=a.D(),e=d.type;"none"!=d.visualEffects&&p.tA(a)&&("circle"==e?D.Hfb(a,b,c):"diamond"==e?D.Ifb(a,b,c):"triangle"==e?D.Kfb(a,b,c):"arrow"==e?D.Gfb(a,b,c):D.Jfb(a,b,c))};D.Jfb=function(b,c,d){var e=.04*d.a,f=.04*d.b;d=new a.Z(d.x+e,d.y+f,d.a-2*e,d.b-2*f);b=new a.Rect(b.u(),d.x,d.y,d.a,d.b);b.nb(!1);c.A(b);c=new a.bd(270,"#FFFFFF #FFFFFF #FFFFFF #FFFFFF #FFFFFF #FFFFFF #FFFFFF".split(" "),[.75,.5,.15,0,.2,.4,.2],[0,.05,.4,.6,.8,.9,1]);b.qa(c)};D.Ifb=function(b,c,d){var e=.05*d.a,f=.05*d.b,
  f=new a.Z(d.x+e,d.y+f,d.a-2*e,d.b-2*f);d=f.x+f.a/2;e=f.y+f.b/2;f=Math.min(f.a,f.b)/2;b=new a.ii(b.u(),[d-f,e,d,e-f,d+f,e,d,e+f]);b.nb(!1);c.A(b);c=new a.bd(270,"#FFFFFF #FFFFFF #FFFFFF #FFFFFF #FFFFFF #FFFFFF #FFFFFF".split(" "),[.75,.5,.15,0,.2,.4,.2],[0,.05,.4,.6,.8,.9,1]);b.qa(c)};D.Kfb=function(b,c,d){var e=.05*d.a,f=.05*d.b,k=p.tA(b),e=new a.Z(d.x+e,d.y+f,d.a-2*e,d.b-2*f),f=D.i6a,h=Math.min(e.a/100,e.b/100),f=a.no.scale(f,h,h),f=a.no.translate(f,d.x+d.a/2,d.y+d.b/2);d=new a.ii(b.u(),f);f=(f=
  b.D())&&0==f.rotation%90?f.rotation:0;k=new a.bd(k?f-90:360-f,["#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF"],[.3,.55,0,.25,.1],[0,.05,.4,.9,1]);d.qa(k);d=D.Bra(b,c,d,e);d.nb(!1);c.A(d)};D.Gfb=function(b,c,d){var e=.05*d.a,f=.05*d.b,k=p.tA(b),e=new a.Z(d.x+e,d.y+f,d.a-2*e,d.b-2*f),f=D.f6a,h=Math.min(e.a/100,e.b/100),f=a.no.scale(f,h,h),f=a.no.translate(f,d.x+d.a/2,d.y+d.b/2);d=new a.ii(b.u(),f);f=(f=b.D())&&0==f.rotation%90?f.rotation:0;k=new a.bd(k?f-90:360-f,["#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF",
  "#FFFFFF"],[.3,.55,0,.25,.1],[0,.05,.4,.9,1]);d.qa(k);d=D.Bra(b,c,d,e);d.nb(!1);c.A(d)};D.Hfb=function(b,c,d){var e=.05*d.a,f=.05*d.b;d=new a.Z(d.x+e,d.y+f,d.a-2*e,d.b-2*f);var e=d.x+d.a/2,f=d.y+d.b/2,k=Math.min(d.a,d.b)/2,h=new a.Nm(b.u(),e,f,k);h.nb(!1);c.A(h);var A=new a.Vo(["#FFFFFF","#FFFFFF","#FFFFFF"],[0,.25,.5],[.15,.7,.95],e,f-.6*k,1.5*k,[d.x,d.y,d.a,d.b]);h.qa(A);h=.6*k;k*=.4;f-=.3*k;b=new a.vv(b.u(),e,f-k,h,k);b.nb(!1);c.A(b);c=new a.Vo(["#FFFFFF","#FFFFFF","#FFFFFF"],[0,.2,.5],[.6,.8,
  1],e,f,h,[d.x,d.y,d.a,d.b]);b.qa(c)};D.fKa=function(b,c){var d=b.D(),e=d.type,d=0==d.rotation%90?d.rotation:0,f=Math.min(c.a,c.b),k=c.x+c.a/2-f/2,h=c.y+c.b/2-f/2,A=f,m=f;"triangle"==e?0==d?(k+=.2*f,h+=.25*f,A-=.4*f,m-=.3*f):90==d?(k+=.05*f,h+=.2*f,A-=.3*f,m-=.4*f):180==d?(k+=.2*f,h+=.05*f,A-=.4*f,m-=.3*f):270==d&&(k+=.25*f,h+=.2*f,A-=.3*f,m-=.4*f):"arrow"==e?0==d?(k+=.2*f,h+=.2*f,A-=.4*f,m-=.4*f):90==d?(k+=.05*f,h+=.2*f,A-=.28*f,m-=.4*f):180==d?(k+=.2*f,h+=.2*f,A-=.4*f,m-=.4*f):270==d&&(k+=.23*f,
  h+=.2*f,A-=.28*f,m-=.4*f):"star"==e?(k+=.25*f,h+=.25*f,A-=.5*f,m-=.4*f):"diamond"==e?(k+=.15*f,h+=.15*f,A-=.3*f,m-=.3*f):"rectangle"==e?(k+=.1*f,h+=.1*f,A-=.2*f,m-=.2*f):(k+=.15*f,h+=.15*f,A-=.3*f,m-=.3*f);return new a.Z(k,h,A,m)};a.Xo=function(){};a.v.F(a.Xo,x);a.Xo.newInstance=function(b,c,d){var e=new a.Xo;e.Init(b,c,d);return e};a.Xo.prototype.Init=function(b,c,d){a.Xo.C.Init.call(this,b,c,d);this.Xg=new l;this.ela=null};a.Xo.prototype.xf=function(b){a.Xo.C.xf.call(this,this.Xg.fn(b))};a.Xo.prototype.Fn=
  function(a,b,c){C.ta(this,a,b,c)};a.Xo.prototype.Rga=function(b,c,d){c=[];for(var e=0;e<b.length;e++){var f=b[e],k=f.sf();"horizontal"==this.W.orientation?f.ff([k[0],k[0],k[2],k[3]]):"vertical"==this.W.orientation?f.ff([k[0],k[1],k[3],k[3]]):"circular"==this.W.orientation&&f.ff([k[0],k[1],0,k[3],k[4]]);var h=new a.gd(this.u(),f,d);h.ka.N(a.G.yf,f,f.sf,f.ff,k);h.ka.zp(function(b){return a.Ke.T2(b,.7)});c.push(h)}return new a.jh(this.u(),c)};a.Xo.prototype.vJ=function(b,c){var d=this.W,e=a.B.da(this.u());
  if("horizontal"==d.orientation)return this.ela.Hda(b);if("vertical"==d.orientation)return this.ela.Hda(c);if("circular"==d.orientation){var f=d.angleExtent,k=Math.atan2(c-this.sw,b-this.rw),e=e?180-(a.Math.OX(k)-d.startAngle):a.Math.OX(k)-(360-d.startAngle),e=(e+720)%360,k=d.min,d=d.max,k=e/f*(d-k)+k;e>f&&(k=.5<(e-f)/(360-f)?0:d);return k}};a.v.F(l,p);l.pf={color:"#393737",metricLabel:{style:new a.j(a.eb.Pm)},plotArea:{color:"#E4E8EA"}};l.lh={angleExtent:360,borderRadius:"auto",color:"#313842",indicatorSize:1,
  innerRadius:.7,metricLabel:{style:new a.j(a.eb.Mt),position:"auto"},orientation:"horizontal",plotArea:{color:"#AAAAAA",rendered:"auto",borderRadius:"auto"},startAngle:90,thresholdDisplay:"onIndicator"};var C={};a.v.F(C,a.v);C.ta=function(b,c,d,e){if(v.wC(b)){var f=b.D(),k=f.__layout.outerGap;d=new a.Z(k,k,d-2*k,e-2*k);"horizontal"==f.orientation||"vertical"==f.orientation?(C.Goa(f)&&C.yfb(b,c,d),C.f2(b,c,d)):"circular"==f.orientation&&C.hfb(b,c,d)}else u.yp(b,c,new a.Z(0,0,d,e))};C.hfb=function(b,
  c,d){var e=b.D(),f=d.clone(),k=a.B.da(b.u()),h=0,A=null,m=e.value,l=e.innerRadius,n=e.thresholds,v,p=null,B=a.Math.Hn-a.Math.Gu(e.startAngle),r=a.Math.Gu(e.angleExtent),w=(B+r)%(2*Math.PI);b.rw=d.a/2;b.sw=d.b/2;r!=2*Math.PI&&(A=C.r7a(b,l,B,r,w,d,k),p=b.tpb);v=v?v:Math.min(d.a,d.b);var k=.5*v*l,w=.5*v,D=e.indicatorSize;if(D&&1<D)var x=(1-1/D)/2*(w-k),k=k+x,w=w-x;x="middle";A||(p=Math.min(d.a,d.b)*l,A=new a.Z(d.x+d.a/2-3/7*p,d.y+d.b/2-2.5/7*p,6/7*p,5/7*p));var oa=!1;if(z.uX(e)){var oa="middle",Q=new a.Z(A.x,
  A.y,A.a,A.b);"off"!=e.metricLabel.rendered&&(Q.y+=.6*Q.b,Q.b*=.4,oa="top");(oa=u.xxa(b,c,Q,null,oa))&&"off"!=e.metricLabel.rendered&&(A.b*=.55,x="bottom")}u.zfa(b,c,A,null,"center",x,!0);x=B;h*=r;A=z.YTa(b);if(n&&"off"!=e.plotArea.rendered&&"all"==e.thresholdDisplay)for(oa=0;oa<n.length;oa++){var Q=z.l4(b,n[oa],oa),h=n[oa].max<e.max?n[oa].max:e.max,V=0==oa?e.min:n[oa-1].max,x=B+r*u.B3(e,e.min,V),h=u.B3(e,V,h),h=h*r,V=n[oa].borderColor;C.pna(b,c,d,x,h,k,w,Q,!0,V?V:A)}else"off"!=e.plotArea.rendered&&
  "all"!=e.thresholdDisplay&&(n=z.ZTa(b),C.pna(b,c,d,B,r,k,w,n,!0,A));k=v*l*.5;w=.5*v;D&&1>D&&(l=(1-D)/2*(w-k),k+=l,w-=l);h=u.B3(e,e.min,m);C.pna(b,c,d,B,h*r,k,w,z.fc(b),!1);if(l=e.referenceLines)for(v=0;v<l.length;v++)n=l[v].color?l[v].color:"black",k=l[v].lineWidth?l[v].lineWidth:2,w=l[v].lineStyle,m=l[v].value,C.m$a(b,c,d,B+u.B3(e,e.min,m)*r,n,k,w);e.center.renderer&&C.ffb(b,e,d,f,p)};C.f2=function(b,c,d){var e=b.D(),f=a.B.da(b.u()),h="vertical"==e.orientation,A={layout:{}};A.layout.gapRatio=0;A.timeAxisType=
  "disabled";A.position=h?"left":"bottom";A.min=e.min;A.max=e.max;A.dataMin=e.min;A.dataMax=e.max;A.tickLabel={rendered:"off"};A=a.uf.newInstance(b.u(),A,d);b.ela=A;var m=0;0>=e.max?m=e.max:0<=e.min&&(m=e.min);var l=A.rj(m);"off"==e.plotArea.rendered||"auto"==e.plotArea.rendered&&"onIndicator"==e.thresholdDisplay||(l=A.qh(e.min));var n=A.qh(e.value),n=h?Math.max(d.y,Math.min(d.y+d.b,n)):Math.max(d.x,Math.min(d.x+d.a,n)),v=e.indicatorSize,B,r,u,w,D,x,L=0,L=1>v?1:v;u=1<v?1:v;h?(m=d.x+(1-u)/2*d.a+.5,B=
  d.x+d.a*(1+u)/2-.5,u=l-.5,r=n+.5,w=d.x+(1-1/L)/2*d.a,D=d.x+d.a*(1+1/L)/2,x=d.y,L=d.y+d.b):(m=f?l-.5:l+.5,B=f?n+.5:n-.5,r=d.y+(1-u)/2*d.b+.5,u=d.y+d.b*(1+u)/2-.5,w=d.x,D=d.x+d.a,x=d.y+(1-1/L)/2*d.b,L=d.y+d.b*(1+1/L)/2);v=!0;n==l&&(h?r=u:m=B,v=!1);var oa=z.Xn(b),Q=z.YTa(b),V=e.thresholds,n=h?0:270;if(V&&"off"!=e.plotArea.rendered&&"all"==e.thresholdDisplay)for(l=V.length-1;0<=l;l--){var ua=l,g=C.zK(b,b.u(),w,D,x,L),G=new a.Cd("pacp"+b.getId());if(l==V.length-1)!h&&f?G.Qe(A.qh(e.max)+1,0,d.a+2,d.b+2,
  0,0):G.Qe(0,0,d.a+2,d.b+2,0,0);else if(h)G.Qe(0,A.qh(e.max),d.a+2,1*(e.max-V[V.length-2-ua].max)/Math.abs(e.min-e.max)*d.b,0,0);else if(f){var da=null==V[V.length-2-ua].max?100:V[V.length-2-ua].max;G.Qe(A.qh(e.max),0,1*(e.max-da)/Math.abs(e.min-e.max)*d.a,d.b+2,0,0)}else G.Qe(0,0,1*(V[ua].max-e.min)/Math.abs(e.min-e.max)*d.a,d.b+2,0,0);g.te(G);if(f||h)ua=V.length-1-l;g.fb(z.l4(b,V[ua],ua));G=V[ua].borderColor;g.Tb(G?G:Q);C.MOa(b,c,g,z.l4(b,V[ua],ua),n)}else"off"==e.plotArea.rendered||"auto"==e.plotArea.rendered&&
  "onIndicator"==e.thresholdDisplay||"all"==e.thresholdDisplay||(g=h?C.zK(b,b.u(),w,D,A.qh(e.max),A.qh(e.min)):C.zK(b,b.u(),A.qh(e.min),A.qh(e.max),x,L),l=z.ZTa(b),g.fb(l),g.Tb(Q),C.MOa(b,c,g,l,n));l=new k(b,b.u(),m,B,r,u);b.rG.push(l);f=z.fc(b);p.tA(b)||"none"==e.visualEffects?l.fb(f):(Q=[a.O.Em(f,-.09,.04),a.O.Em(f,-.04,-.05)],Q=new a.bd(n,Q,[1,1],[0,1]),l.qa(Q));oa&&l.Tb(oa);l.He(e.className);l.ea(e.style);v&&c.A(l);l=C.zK(b,b.u(),m,B,r,u);C.sra(b,c,l,v,n);if(n=e.referenceLines)for(l=0;l<n.length;l++)oa=
  n[l].color?n[l].color:"white",V=n[l].value,v=e.indicatorSize,h?(g=((1-v)/2+v)*d.a,Q=d.x+(1-v)/4*d.a,v=A.qh(V),v=new a.Gc(b.u(),Q,v,Q+g,v)):(g=((1-v)/2+v)*d.b,Q=A.qh(V),v=d.y+(1-v)/4*d.b,v=new a.Gc(b.u(),Q,v,Q,v+g)),oa=new a.xa(oa,1,n[l].lineWidth?n[l].lineWidth:2),n[l].lineStyle&&oa.ea(a.Yc.Vx(n[l].lineStyle)),v.Ga(oa),c.A(v),a.B.ae()||"none"==e.visualEffects||(oa=new a.yv(a.O.FI(0,0,0,.8),.75,3,3,50,1,2,!1,!1,!1),v.XL(oa));h=e.metricLabel.position;"on"!=e.metricLabel.rendered||C.Goa(e)||z.uX(e)?
  z.uX(e)&&C.qQ(b,c,d,h):C.ira(b,c,d,f,h,{vy:m,ds:B,bm:r,uq:u},{vy:w,ds:D,bm:x,uq:L})};C.zK=function(b,c,d,e,f,k){var h=Math.min(d,e),A=Math.min(f,k);d=Math.abs(d-e);f=Math.abs(k-f);k=b.D();e="vertical"==k.orientation?d:f;b=p.tA(b)?"25%":"15%";h=a.P.RR(h,A,d,f,"auto"!=k.plotArea.borderRadius?k.plotArea.borderRadius:k.borderRadius,e,b);return new a.vb(c,h)};C.sra=function(b,c,d,e,f){"none"!=b.D().visualEffects&&p.tA(b)&&(f=new a.bd(f,["#FFFFFF","#FFFFFF","#FFFFFF"],[.5,.3125,0],[0,.3,1]),d.qa(f),b.rG.push(d),
  d.nb(!1),e&&c.A(d))};C.MOa=function(b,c,d,e,f){var k=b.D();d.nb(!1);c.A(d);"none"!=k.visualEffects&&(p.tA(b)?(b=[a.O.lq(e,.1),e,a.O.rp(e,.7)],f=new a.bd(f,b,[1,1,1],[0,.04,.73])):(b=[a.O.Em(e,-.04,-.05),a.O.Em(e,-.09,.04)],f=new a.bd(f,b,[1,1],[0,1])),d.qa(f),d.He(k.plotArea.className),d.ea(k.plotArea.style))};C.yfb=function(b,c,d){var e=b.D(),f=a.B.da(b.u()),k="vertical"==e.orientation,h=new a.ca(b.u(),""),A=u.Ko(e.value,b),m=e.__layout.labelGap,l=e.metricLabel.style,n=l.M("color"),n=n?n:"#333333",
  C=null;h.Bb(l);h.fb(n);if(k&&"on"==e.metricLabel.rendered){var v=0<e.max?e.max:e.min,v=u.Ko(v,b),C=new a.ca(b.u(),v);C.Bb(l);e=new a.Z(d.x,d.y+.8*d.b,d.a,.2*d.b);k=(k=l.M("font-size"))?parseInt(k):C.qC(e);C=C.Pc();d.b-=C.b;v=C.a;h.fh(k);h.xg(A);h.Fa(d.x+d.a/2);h.jb(d.y+d.b);d.b-=m;h.Xf();a.Ca.kd(h,d.a,d.b,c)}else if(!k&&"on"==e.metricLabel.rendered){k=l.M("font-size");n=u.Ko(e.min,b);C=u.Ko(e.max,b);void 0===k&&18>d.b&&(k=u.dda([A,n,C],h,d));k=k?parseInt(k):13;h.fh(k);var p;if(0<e.max||"off"!=e.plotArea.rendered||
  "auto"!=e.plotArea.rendered||"onIndicator"!=e.thresholdDisplay)v=0<e.max?e.max:e.min,v=u.Ko(v,b),C=new a.ca(b.u(),v),C.Bb(l),C.fh(k),C=C.Pc(),C.a=Math.min(C.a,d.a),p=f?d.x+C.a:d.x+d.a,v=C.a,f&&(d.x+=C.a+m),d.a-=C.a+m;if(0>e.min&&"on"!=e.plotArea.rendered&&("auto"!=e.plotArea.rendered||"onIndicator"!=e.thresholdDisplay)){C=u.Ko(e.min,b);n=new a.ca(b.u(),C);n.Bb(l);n.fh(k);l=n.Pc();if(0>e.value||0>=e.max)p=f?d.x+d.a:d.x+l.a,v=l.a;f||(d.x+=l.a+m);d.a-=l.a+m}h.xg(A);h.Fa(p);a.Ca.EW(h,d.y+d.b/2);h.Sh();
  a.Ca.kd(h,v,d.b,c)}};C.ira=function(b,c,d,e,f,k,h,A){var m=b.D(),l=a.B.da(b.u()),n="vertical"==m.orientation,v="on"==m.plotArea.rendered,p="center",B="middle",r=new a.Z(Math.min(k.vy,k.ds),Math.min(k.bm,k.uq),Math.abs(k.ds-k.vy),Math.abs(k.uq-k.bm)),m=m.metricLabel.style.M("color");"center"==f?(m=m?m:a.O.Tl(e),n?(r.b-=r.a,r.y+=r.a/2):(r.a-=r.b,r.x+=r.b/2)):"insideIndicatorEdge"==f?(m=m?m:a.O.Tl(e),n?(r.b-=r.a,r.y+=r.a/2,B=!v&&k.bm>k.uq?"bottom":"top"):(r.a-=r.b,r.x+=r.b/2,p=l?!v&&k.vy<k.ds?"right":
  "left":!v&&k.vy>k.ds?"left":"right")):"outsideIndicatorEdge"==f&&(n?(r.b=Math.abs(h.bm-k.bm)-r.a,r.y=h.bm+r.a/2,B="bottom",!v&&k.bm>k.uq&&(r.b=Math.abs(h.bm-k.bm)-r.a,r.y=k.bm+r.a/2,B="top")):l?!v&&k.vy<k.ds?(r.a=Math.abs(h.ds-k.ds)-r.b,r.x=k.ds+r.b/2,p="left"):(r.a=Math.abs(h.vy-k.ds)-r.b,r.x=h.vy+r.b/2,p="right"):!v&&k.vy>k.ds?(r.a=Math.abs(h.vy-k.ds)-r.b,r.x=h.vy+r.b/2,p="right"):(r.a=Math.abs(h.ds-k.ds)-r.b,r.x=k.ds+r.b/2,p="left"));u.zfa(b,c,r,m,p,B)||A||("outsideIndicatorEdge"==f?C.ira(b,c,
  d,e,"insideIndicatorEdge",k,h,!0):"insideIndicatorEdge"!=f&&"center"!=f||C.ira(b,c,d,e,"outsideIndicatorEdge",k,h,!0))};C.qQ=function(b,c,d){var e=a.B.da(b.u()),f=b.D(),k="vertical"==f.orientation,h=new a.Z(d.x,d.y,k?d.a:d.a-d.b,k?d.b-d.a:d.b),A=f.title.text;if(!C.Goa(f)&&"on"==f.metricLabel.rendered)var m=u.Ko(f.value,b),A=a.H.va(a.H.Ia,"COLON_SEP_LIST",[A,m]);var l=f.title.style,m=l.clone(),n=l.M("font-size");n||(n=new a.ca(b.u(),A,0,0),n.Bb(l),n.xg(A),n=k?n.qC(new a.Z(h.x,h.y,h.a,Number.MAX_VALUE)):
  n.qC(new a.Z(h.x,h.y,Number.MAX_VALUE,h.b)));A=new a.$b(b.u(),A);m.fh("font-size",n.toString());A.Bb(m);a.Ca.kd(A,h.a,h.b,b);"center"==f.title.position||"auto"==f.title.position&&k?(a.Ca.EW(A,d.y+d.b/2),A.Fa(d.x+d.a/2),A.Xf()):(a.Ca.EW(A,d.y+d.b/2),!k&&e)?(A.Fa(d.x+d.a-h.b/2),A.Sh()):k||e?k&&(A.jb(d.y+d.b-A.aa().b-h.a/2),A.Fa(d.x+d.a/2),A.Xf()):(A.Fa(d.x+h.b/2),A.Rh());c.A(A)};C.Vm=function(a,b,c){return{x:Math.cos(c)*b+a.a/2+a.x,y:Math.sin(c)*b+a.b/2+a.y}};C.pna=function(b,c,d,e,f,k,A,m,l,n){var v=
  b.u();a.B.da(b.u())&&(e=Math.PI-e-f,e=0<e?e:e+2*Math.PI);l?d=new a.vb(v,C.xRa(d,e,f,k,A)):(d=new h(v,d,e,f,k,A),b.rG.push(d));d.fb(m);(m=z.Xn(b))&&!l?d.Tb(m):l&&n&&d.Tb(n);b=b.D();d.He(l?b.plotArea.className:b.className);d.ea(l?b.plotArea.style:b.style);c.A(d)};C.m$a=function(b,c,d,e,f,k,h){var A=b.u(),m=Math.min(d.a,d.b),l=.275*m,m=.5*m;a.B.da(b.u())&&(e=Math.PI-e,e=0<e?e:e+2*Math.PI);b=C.Vm(d,l,e);d=C.Vm(d,m,e);A=new a.Gc(A,b.x,b.y,d.x,d.y);f=new a.xa(f,1,k);h&&f.ea(a.Yc.Vx(h));A.Ga(f);c.A(A)};
  C.xRa=function(b,c,d,e,f){var k,h,A;d<a.Math.Hn?(k=C.Vm(b,f,c),h=C.Vm(b,f,c+d),A=C.Vm(b,e,c+d),b=C.Vm(b,e,c),f=a.P.moveTo(k.x,k.y)+a.P.arcTo(f,f,d,1,h.x,h.y)+a.P.lineTo(A.x,A.y)+a.P.arcTo(e,e,d,0,b.x,b.y)+a.P.closePath()):(k=C.Vm(b,f,c),h=C.Vm(b,f,c+d/2),A=C.Vm(b,e,c),b=C.Vm(b,e,c+d/2),f=a.P.moveTo(k.x,k.y)+a.P.arcTo(f,f,d/2,1,h.x,h.y)+a.P.arcTo(f,f,d/2,1,k.x,k.y),0<e&&(f+=a.P.moveTo(b.x,b.y)+a.P.arcTo(e,e,d/2,0,A.x,A.y)+a.P.arcTo(e,e,d/2,0,b.x,b.y)),f+=a.P.closePath());return f};C.iSa=function(b,
  c){var d=1;if(c)b>=a.Math.FN&&b<Math.PI?d=2:b>=Math.PI&&b<1.5*Math.PI?d=3:b>=1.5*Math.PI&&b<a.Math.Hn&&(d=4);else if(b>a.Math.FN&&b<=Math.PI)d=2;else if(b>Math.PI&&b<=1.5*Math.PI)d=3;else if(b>1.5*Math.PI&&b<a.Math.Hn||0==b)d=4;return d};C.Goa=function(a){var b=a.metricLabel.position;return"auto"==b||"outsidePlotArea"==b||"withTitle"==b&&!z.uX(a)};C.r7a=function(b,c,d,e,f,k,h){var A=null,m=C.iSa(d,!0),l=C.iSa(f,!1),n=k.a,v=k.b,r=n/2,p=v/2,B;if(m==l&&e<=a.Math.FN)if(d=2*Math.min(k.a,k.b),k.a+=d/2,
  k.b+=d/2,B=d*c,!h&&1==m||h&&2==m)k.x-=d/2,k.y-=d/2,r=n/2-d/4+1,p=v/2-d/4+1,A=new a.Z(k.x+k.a/2-1,k.y+k.b/2-1,3/7*B-2,2.5/7*B-2);else if(!h&&2==m||h&&1==m)k.y-=d/2,r=n/2+d/4-1,p=v/2-d/4+1,A=new a.Z(k.x+k.a/2-3/7*B+1,k.y+k.b/2-1,3/7*B-2,2.5/7*B-2);else if(!h&&3==m||h&&4==m)r=n/2+d/4-1,p=v/2+d/4-1,A=new a.Z(k.x+k.a/2-3/7*B+1,k.y+k.b/2-2.5/7*B+1,3/7*B-2,2.5/7*B-2);else{if(!h&&4==m||h&&3==m)k.x-=d/2,r=n/2-d/4+1,p=v/2+d/4-1,A=new a.Z(k.x+k.a/2-1,k.y+k.b/2-2.5/7*B+1,3/7*B-2,2.5/7*B-2)}else m%4+1==l&&e<=
  Math.PI?1==m||3==m?(d=Math.min(k.a,2*k.b),B=d*c,k.a>k.b&&(A=new a.Z(k.x+k.a/2-3/7*B,k.y+k.b-(k.b-d/2)/2-2.75/7*B,6/7*B,2.5/7*B),1==m?(A.y=k.y+(k.b-d/2)/2+.5/7*B,k.y-=d/2-(k.b-d/2)/2,p=v/2-d/4+1):(k.y+=(k.b-d/2)/2,p=v/2+d/4-1),k.b=d)):(d=Math.min(2*k.a,k.b),B=d*c,k.a<k.b&&(A=new a.Z(k.x+k.a-(k.a-d/2)/2-3.25/7*B,k.y+k.b/2-2.5/7*B,3/7*B,5/7*B),!h&&4==m||h&&2==m?(A.x=k.x+(k.a-d/2)/2+.25/7*B,k.x-=d/2-(k.a-d/2)/2,r=n/2-d/4+1):(k.x+=(k.a-d/2)/2,r=n/2+d/4-1),k.a=d)):l%4+1==m&&e>Math.PI&&(1==m&&k.b>k.a?(d=
  Math.min(k.a/(Math.cos(d)+1)*2,k.a/(Math.sin(f-1.5*Math.PI)+1)*2,k.b),B=d*c,c=3/7*B*(2*k.a/d-1),h?(A=new a.Z(k.x+k.a-d/2-c,k.y+k.b/2-2.5/7*B,3/7*B+c,5/7*B),k.x-=d-k.a,r=-d/2+n):(A=new a.Z(k.x+d/2-3/7*B,k.y+k.b/2-2.5/7*B,3/7*B*(1+(2*k.a/d-1)),5/7*B),r=d/2),k.a=d):2==m&&k.b<k.a?(d=Math.min(k.b/(Math.cos(d-a.Math.FN)+1)*2,k.b/(Math.sin(f)+1)*2,k.a),B=d*c,A=new a.Z(k.x+k.a/2-3/7*B,k.y+d/2-2.5/7*B,6/7*B,2.5/7*B*(1+(2*k.b/d-1))),k.b=d,p=d/2):3==m&&k.b>k.a?(d=Math.min(k.a/(Math.cos(d-Math.PI)+1)*2,k.a/(Math.sin(f-
  a.Math.FN)+1)*2,k.b),B=d*c,c=3/7*B*(2*k.a/d-1),h?(A=new a.Z(k.x+d/2-3/7*B,k.y+k.b/2-2.5/7*B,3/7*B*(1+(2*k.a/d-1)),5/7*B),r=d/2):(A=new a.Z(k.x+k.a-d/2-c,k.y+k.b/2-2.5/7*B,3/7*B+c,5/7*B),k.x-=d-k.a,r=-d/2+n),k.a=d):4==m&&k.b<k.a&&(d=Math.min(k.b/(Math.cos(d-1.5*Math.PI)+1)*2,k.b/(Math.sin(a.Math.Hn-f)+1)*2,k.a),B=d*c,c=2.5/7*B*(2*k.b/d-1),A=new a.Z(k.x+k.a/2-3/7*B,k.y+k.b-d/2-c,6/7*B,2.5/7*B+c),k.y-=d-k.b,k.b=d,p=-d/2+v));b.rw=r;b.sw=p;b.tpb=B;return A};C.ffb=function(b,c,d,e,f){var k=new a.Z(d.x+
  .5*(d.a-f),d.y+.5*(d.b-f),f,f),k=k.cTa(e);d=new a.Z(d.x+.5*(d.a-f/Math.sqrt(2)),d.y+.5*(d.b-f/Math.sqrt(2)),f/Math.sqrt(2),f/Math.sqrt(2));d=d.cTa(e);if(e=c.center.renderer)if(d={outerBounds:{x:k.x,y:k.y,width:k.a,height:k.b},innerBounds:{x:d.x,y:d.y,width:d.a,height:d.b},metricLabel:u.Ko(c.value,b),component:c._widgetConstructor},c=b.u(),k=c.ew,(f=b.Fib)&&k.removeChild(f),d=e(d))e=c.HRa(),e.appendChild(d),b.Fib=e,k.appendChild(e),(b=c.xNa)&&b(e)};a.v.F(k,a.vb);k.prototype.Init=function(a,b,c,d,e,
  f){k.C.Init.call(this,b);this.Ig=a;this.VM(c,d,e,f)};k.prototype.VM=function(b,c,d,e){this.Mg=b;this.rg=c;this.XH=d;this.YH=e;var f=Math.min(b,c),k=Math.min(d,e);b=Math.abs(b-c);d=Math.abs(e-d);e=this.Ig.D();c="vertical"==e.orientation?b:d;var h=p.tA(this.Ig)?"25%":"15%",f=a.P.RR(f,k,b,d,e.borderRadius,c,h);this.Ui(f)};k.prototype.sf=function(){return[this.Mg,this.rg,this.XH,this.YH]};k.prototype.ff=function(a){a&&4==a.length&&this.VM(a[0],a[1],a[2],a[3])};a.v.F(h,a.vb);h.prototype.Init=function(a,
  b,c,d,e,f){h.C.Init.call(this,a);this.gXa(b,c,d,e,f)};h.prototype.gXa=function(b,c,d,e,f){b&&b instanceof a.Z?this.we=b:b=this.we;this.qg=c;this.gg=d;this.hp=e;this.bn=f;this.Ui(C.xRa(b,c,d,e,f))};h.prototype.sf=function(){return[this.we,this.qg,this.gg,this.hp,this.bn]};h.prototype.ff=function(a){a&&5==a.length&&this.gXa(a[0],a[1],a[2],a[3],a[4])};a.dr=function(){};a.v.F(a.dr,x);a.dr.newInstance=function(b,c,d){var e=new a.dr;e.Init(b,c,d);return e};a.dr.prototype.Init=function(b,c,d){a.dr.C.Init.call(this,
  b,c,d);this.Xg=new f;this.cla=null};a.dr.prototype.xf=function(b){var c=b.background,d=b.indicator;"string"===typeof c&&(b.background=z.jlb(c),b.background.images=b._backgroundImages);"string"===typeof d&&(b.indicator=z.klb(d),b.indicator.images=b._indicatorImages);a.dr.C.xf.call(this,this.Xg.fn(b))};a.dr.prototype.Fn=function(a,b,c){B.ta(this,a,b,c)};a.dr.prototype.wWa=function(){B.Etb(this,this.Ea,this.xb,this.Kb);var a=this.ab();a&&a.mb(this.ZO,this.HT(),!0);this.nka(this.Ea)};a.dr.prototype.Rga=
  function(b,c,d){c=[];for(var e=0;e<b.length;e++){var f=b[e],k=f.sf(),h=B.N6a(this);f.$l(h);h=new a.gd(this.u(),f,d);h.ka.N(a.G.yf,f,f.sf,f.ff,k);h.ka.zp(function(b){return a.Ke.T2(b,.7)});c.push(h)}return new a.jh(this.u(),c)};a.dr.prototype.vJ=function(b,c){var d=a.Math.OX(Math.atan2(c-this.cla.y,b-this.cla.x));0>=d&&(d+=360);var e=a.B.da(this.u()),f=this.D().background,k=e?180+f.startAngle:360-f.startAngle,f=f.angleExtent,h=k+f;if(e)for(h=k,k-=f;0>k;)k+=360,h+=360;d+360>=k&&d+360<=h?d+=360:d>=k&&
  d<=h||(d=d>h?k+360-d<d-h?k:h:k-d<d+360-h?k:h);d=(d-k)/f;e&&(d=1-d);e=this.W.min;return d*(this.W.max-e)+e};a.v.F(f,p);f.lh={background:{startAngle:180,angleExtent:180,indicatorLength:.7},metricLabel:{style:new a.j(a.eb.Pm)},tickLabel:{scaling:"auto",style:new a.j(a.eb.Pm)}};var B={};a.v.F(B,a.v);B.ta=function(b,c,d,e){v.wC(b)?(d=new a.Z(0,0,d,e),B.f2(b,c,d),B.JH(b,c,d)):u.yp(b,c,new a.Z(0,0,d,e))};B.Etb=function(b,c,d,e){b.R6a.$l(B.soa(b,b.D().value));c.removeChild(b.T6a);B.JH(b,c,new a.Z(0,0,d,e))};
  B.f2=function(b,c,d){var f=b.D(),k=B.o9a(b,d);c.A(k);f.background.majorTickCount&&f.background.radius&&B.Ufb(b,c,d);var k=B.A9a(b,d),h=new a.ma(b.u()),A=new e(b.u());c.A(h);h.A(A);A.A(k);var m=k.aa(),f=B.soa(b,f.value);c=B.DJa(b,d);var l=B.Iab(b,m);d=B.Jab(b,d,m);m=new a.Ub;m.translate(-l.x,-l.y);m.scale(d,d);k.rb(m);A.$l(f);m=new a.Ub;m.translate(c.x,c.y);h.rb(m);b.rG.push(A);b.R6a=A;b.cla=c};B.o9a=function(b,c){var d=b.D().background,e=a.B.da(b.u()),f=a.B.Va(),k=f?2*c.a:c.a,h=f?2*c.b:c.b,A=d.images;
  if(A&&0<A.length){var m,l,n,f=[];for(m=0;m<A.length;m++){var C="rtl"==A[m].dir;e&&C?f.push(A[m]):e||C||f.push(A[m])}A=0<f.length?f:A;for(m=0;m<A.length;m++){var v=A[m],C=v.src,f=v.width,v=v.height,B=C&&-1<C.search(".svg");0==m&&(l=f,n=v);if(B||f>=k&&v>=h||m==A.length-1){var k=new a.Image(b.u(),C,0,0,f,v),r=new a.Ub,h=Math.min(c.a/f,c.b/v),A=(c.a-h*f)/2;m=(c.b-h*v)/2;r.scale(h,h);r.translate(A,m);k.rb(r);B&&a.B.DC()&&(C=a.qs.Zr(b.u(),C,a.v.oi(k,k.mla)))&&k.mla(C);c.x+=A;c.y+=m;c.a=h*f;c.b=h*v;isNaN(d.anchorX)||
  isNaN(d.anchorY)||(d._anchorX=e?c.x+c.a-c.a*d.anchorX/l:c.x+c.a*d.anchorX/l,d._anchorY=c.y+c.b*d.anchorY/n);d.metricLabelBounds&&(f={},f.width=c.a*d.metricLabelBounds.width/l,f.height=c.b*d.metricLabelBounds.height/n,f.y=c.y+c.b*d.metricLabelBounds.y/n,f.x=e?c.x+c.a-c.a*d.metricLabelBounds.x/l-f.width:c.x+c.a*d.metricLabelBounds.x/l,d._metricLabelBounds=f);d._radius=d.radius*Math.min(c.a/l,c.b/n);d._tickLabelHeight=d.tickLabelHeight*c.b/n;d._tickLabelWidth=d.tickLabelWidth*c.a/l;return k}}}return null};
  B.A9a=function(b,c){var d=b.D().indicator,e=B.ZJa(b,c),f=a.B.Va()?2*e:e,k,h,A=d.images;if(A&&0<A.length)for(var m=0;m<A.length;m++){var l=A[m],e=l.src,n=l.width,l=l.height,C=e&&-1<e.search(".svg");0==m&&(k=n,h=l);if(C||l>=f||m==A.length-1)return f=new a.Image(b.u(),e,0,0,n,l),C&&a.B.DC()&&a.qs.Zr(b.u(),e,a.v.oi(f,f.mla))&&(f.Xa(n),f.qb(l)),isNaN(d.anchorX)||isNaN(d.anchorY)||(d._anchorX=d.anchorX*n/k,d._anchorY=d.anchorY*l/h),f}return null};B.N6a=function(b){var c=b.D().background;b=a.B.da(b.u())?
  180-c.startAngle:c.startAngle;return Math.PI*(90-b)/180};B.soa=function(b,c){var d=b.D(),e=d.background,f=d.min,d=d.max;c=Math.max(Math.min(c,d),f);f=(c-f)/(d-f);d=a.B.da(b.u());return Math.PI*(90-((d?180-e.startAngle:e.startAngle)-f*(d?-e.angleExtent:e.angleExtent)))/180};B.DJa=function(b,c){var d=b.D().background,e=d._anchorX,d=d._anchorY;return isNaN(e)||isNaN(d)?new a.R(c.x+c.a/2,c.y+c.b/2):new a.R(e,d)};B.ZJa=function(a,b){var c=Math.min(b.a,b.b)/2;return a.D().background.indicatorLength*c};
  B.Iab=function(b,c){var d=b.D().indicator,e=d._anchorX,d=d._anchorY;return isNaN(e)||isNaN(d)?new a.R(c.x+c.a/2,c.y+c.b):new a.R(e,d)};B.Jab=function(a,b,c){return B.ZJa(a,b)/c.b};B.JH=function(b,c,d){var e=b.D();if("on"==e.metricLabel.rendered){var f=u.Ko(e.value,b),k=u.Ko(e.min,b),h=u.Ko(e.max,b),A=d.x+d.a/2,m=d.y+d.b/2,l=d.a,n=d.b,C=e.background._metricLabelBounds;C&&(A=C.x+C.width/2,m=C.y+C.height/2,d.a=C.width,d.b=C.height);A=new a.ca(b.u(),f,A,m);!e.metricLabel.style.M("color")&&e.background._isDark&&
  e.metricLabel.style.ea("color","#CCCCCC");A.Bb(e.metricLabel.style);e=(e=parseInt(e.metricLabel.style.lI()))?parseInt(e):null;e||(e=u.dda([f,k,h],A,d),A.xg(f),A.fh(e));A.Xf();A.Ng();a.Ca.kd(A,l,n,c)&&(b.T6a=A)}};B.Ufb=function(b,c,d){var e=b.D(),f=a.B.da(b.u());if(e.background.radius&&e.background.majorTickCount){var k=e.background._radius,h=e.min,A=e.max,m=e.background.majorTickCount,l=12,n=new a.Z(z,r,d.a,d.b),C=e.metricLabel.style.M("font-size");e.background._tickLabelHeight&&!C&&(n.b=e.background._tickLabelHeight);
  e.background._tickLabelWidth&&!C&&(n.a=e.background._tickLabelWidth);if(!C)var v=new a.ca(b.u(),"",z,r),l=u.dda([u.Bta(e.max,b),u.Bta(e.min,b)],v,n);for(C=0;C<m;C++){z=h+Math.abs(A-h)*C/(m-1);f&&(z=h+Math.abs(A-h)*(m-1-C)/(m-1));var v=u.Bta(z,b),r=B.soa(b,z),p=B.DJa(b,d),z=p.x+k*Math.cos(r-Math.PI/2),r=p.y+k*Math.sin(r-Math.PI/2),v=new a.ca(b.u(),v,z,r);!e.tickLabel.style.M("color")&&e.background._isDark&&e.tickLabel.style.ea("color","#CCCCCC");v.Bb(e.tickLabel.style);e.tickLabel.style.M("font-size")||
  v.fh(l);v.Xf();v.Ng();a.Ca.kd(v,n.a+.5,n.b+.5,c)}}};a.v.F(e,a.ma);e.prototype.$l=function(b){var c=new a.Ub;c.rotate(b);this.rb(c);this.C7a=b};e.prototype.sf=function(){return[this.C7a]};e.prototype.ff=function(a){a&&1==a.length&&this.$l(a[0])};a.Mp=function(){};a.v.F(a.Mp,x);a.Mp.newInstance=function(b,c,d){var e=new a.Mp;e.Init(b,c,d);return e};a.Mp.prototype.Init=function(b,c,e){a.Mp.C.Init.call(this,b,c,e);this.Xg=new d};a.Mp.prototype.xf=function(b){a.Mp.C.xf.call(this,this.Xg.fn(b))};a.Mp.prototype.Fn=
  function(b,c,d){var e=this.W.__layout.outerGap,f=this.W.max,k="vertical"==this.W.orientation,h="none"!=this.W.preserveAspectRatio;this.W.selectedState.source&&h?a.qs.Zr(this.u(),this.W.selectedState.source,a.v.oi(this,function(h){a.B.ae()&&11==a.B.xI()&&h&&0==h.width&&0==h.height&&(h.width=1,h.height=1);h&&h.width&&h.height&&(h=h.width/h.height,this.ZA=k?Math.min(c-2*e,(d-2*e)*h/f):Math.min((d-2*e)*h,(c-2*e)/f),this.qG=this.ZA/h,this.Hf=k?new a.Z(e,(d-this.qG*f)/2,c-2*e,this.qG*f):new a.Z((c-this.ZA*
  f)/2,e,this.ZA*f,d-2*e),A.ta(this,b,c,d))})):(h?this.qG=this.ZA=k?Math.min(c-2*e,(d-2*e)/f):Math.min(d-2*e,(c-2*e)/f):(this.ZA=k?c-2*e:(c-2*e)/f,this.qG=k?(d-2*e)/f:d-2*e),this.Hf=k?new a.Z(e,(d-this.qG*f)/2,c-2*e,this.qG*f):new a.Z((c-this.ZA*f)/2,e,this.ZA*f,d-2*e),A.ta(this,b,c,d))};a.Mp.prototype.HT=function(){var b=this.W.tooltip,b=b?b.renderer:null,d=z.fc(this);if(b){var e={component:this.W._widgetConstructor,label:u.Ko(this.W.value,this),color:d};return new a.lJ(this.u().Bf(),b,d,e)}return new c(this)};
  a.Mp.prototype.vJ=function(b,c){var d="vertical"==this.W.orientation?this.qG:this.ZA;if(v.wC(this)){if("vertical"==this.W.orientation)c=Math.max(Math.min(c,this.Hf.y+this.Hf.b),this.Hf.y),e=Math.max((this.Hf.y+this.Hf.b-c)/d,this.W.min);else{b=Math.max(Math.min(b,this.Hf.x+this.Hf.a),this.Hf.x);var e=0,e=a.B.da(this.u())?Math.max((this.Hf.x+this.Hf.a-b)/d,this.W.min):Math.max((b-this.Hf.x)/d,this.W.min)}return u.Zca(this.W,e)}return null};a.Mp.prototype.X6a=function(){this.nla(this.W.value,"render");
  this.dispatchEvent(a.Za.MM(this.W.value,this.W.value,!1))};a.Mp.prototype.I8=function(a,b){this.LT(a,b)};a.Mp.prototype.LT=function(b,c){var d=this.vJ(b,c);this.nla(d,"hover");this.dispatchEvent(a.Za.MM(this.W.value,d,!1))};a.Mp.prototype.jla=function(b,c){var d=this.W.value;this.W.value=this.vJ(b,c);this.W.changed=!0;this.ta();this.dispatchEvent(a.Za.MM(d,this.W.value,!1));this.dispatchEvent(a.Za.MM(d,this.W.value,!0))};a.Mp.prototype.nla=function(b,c,d){if(v.wC(this)){d||(d=this.Ea);var e=a.B.da(this.u()),
  f="vertical"==this.W.orientation,k=f?this.qG:this.ZA;b=Math.max(Math.min(b,this.W.max),0);var h=0,A=b*k,m=b*k;"render"==c&&(h=b*k,A=0);if(f){if(c=d.hb(0),e=new a.Cd,e.Qe(this.Hf.x,this.Hf.y,this.Hf.a,this.Hf.b-m),c.te(e),c=d.hb(1),e=new a.Cd,e.Qe(this.Hf.x,this.Hf.y+this.Hf.b-h,this.Hf.a,h),c.te(e),h=d.hb(2))c=new a.Cd,c.Qe(this.Hf.x,this.Hf.y+this.Hf.b-A,this.Hf.a,A),h.te(c)}else if(e){if(c=d.hb(0),e=new a.Cd,e.Qe(this.Hf.x,this.Hf.y,this.Hf.a-m,this.Hf.b),c.te(e),c=d.hb(1),e=new a.Cd,e.Qe(this.Hf.x+
  this.Hf.a-m,this.Hf.y,h,this.Hf.b),c.te(e),h=d.hb(2))c=new a.Cd,c.Qe(this.Hf.x+this.Hf.a-m,this.Hf.y,A,this.Hf.b),h.te(c)}else if(c=d.hb(0),e=new a.Cd,e.Qe(this.Hf.x+m,this.Hf.y,this.Hf.a-m,this.Hf.b),c.te(e),c=d.hb(1),e=new a.Cd,e.Qe(this.Hf.x,this.Hf.y,h,this.Hf.b),c.te(e),h=d.hb(2))c=new a.Cd,c.Qe(this.Hf.x,this.Hf.y,A,this.Hf.b),h.te(c);this.nka(d,b)}};a.Mp.prototype.iGa=function(a){return this.Ea.hb(0).hb(a)};a.Mp.prototype.yS=function(){return new b(this)};a.v.F(d,p);d.pf={unselectedState:{shape:"star",
  color:"#C4CED7",borderColor:null},selectedState:{shape:"star",color:"#F8C15A",borderColor:null},hoverState:{shape:"star",color:"#007CC8",borderColor:null},changedState:{shape:"star",color:"#ED2C02",borderColor:null}};d.lh={min:0,max:5,orientation:"horizontal",unselectedState:{shape:"star",color:"#F2F2F2",borderColor:"#B6B6B6"},selectedState:{shape:"star",color:"#F8C15A",borderColor:"#F5A700"},hoverState:{shape:"star",color:"#66A7DA",borderColor:"#4A86C5"},changedState:{shape:"star",color:"#F8C15A",
  borderColor:"#959595"},preserveAspectRatio:"meet",step:1};a.v.F(c,a.vi);c.prototype.Qg=function(a,b,c){a=this.Ig.D();b=this.Ig.ab().ss?v.AR(this.Ig,this.Ig.vJ(b,c)):v.AR(this.Ig);return(b=v.oX(this.Ig,b))&&b.shortDesc?b.shortDesc:a.shortDesc};var A={};a.v.F(A,a.v);A.ta=function(b,c,d,e){if(v.wC(b)){d=b.D();e=v.AR(b);e=v.oX(b,e);var f=d.selectedState.color,k=d.changedState.color,h=d.selectedState.borderColor,m=d.changedState.borderColor;e&&e.color&&(k=f=e.color);e&&e.borderColor&&(m=h=e.borderColor);
  e={value:0,type:d.unselectedState.shape,color:d.unselectedState.color,borderColor:d.unselectedState.borderColor,visualEffects:d.visualEffects,source:d.unselectedState.source,className:d.unselectedState.className,style:d.unselectedState.style};f={value:0,type:d.selectedState.shape,color:f,borderColor:h,visualEffects:d.visualEffects,source:d.selectedState.source,className:d.selectedState.className,style:d.selectedState.style};k={value:0,type:d.changedState.shape,color:k,borderColor:m,visualEffects:d.visualEffects,
  source:d.changedState.source,className:d.changedState.className,style:d.changedState.style};m={value:0,type:d.hoverState.shape,color:d.hoverState.color,borderColor:d.hoverState.borderColor,visualEffects:d.visualEffects,source:d.hoverState.source,className:d.hoverState.className,style:d.hoverState.style};"dot"==d.unselectedState.shape&&(e.type="circle",e.visualEffects="none",e.size=.05);A.Sma(b,c,e);A.Sma(b,c,d.changed?k:f);d.readOnly||A.Sma(b,c,m);b.nla(d.value,"render",c)}else u.yp(b,c,new a.Z(0,
  0,d,e))};A.Sma=function(b,c,d){var e=b.u(),f=new a.ma(e);c.A(f);c=b.D();var k=b.Hf,h=b.ZA;b=b.qG;var A;d.source?(A=new a.Ff(e,h/2,b/2,h,b,null,d.source),A.cya("none")):"none"!=d.type&&(A=a.RA.newInstance(e,null,null,!0),A.ta(d,h,b));for(d=0;d<c.max;d++){var m,l;"vertical"==c.orientation?(m=k.x+k.a/2-h/2,l=k.y+k.b-(d+1)*b):(m=a.B.da(e)?k.x+k.a-(d+1)*h:k.x+d*h,l=k.y+k.b/2-b/2);A&&(A.He(c.className),A.ea(c.style),m=new a.Wy(e,m,l,A),f.A(m))}};a.v.F(b,r);b.prototype.Py=function(a){if(!1===this.Ig.D().readOnly){var c=
  this.QF(a.pageX,a.pageY);this.Ig.I8(c.x,c.y);this.ss=!0}b.C.Py.call(this,a)};b.prototype.To=function(a){!1===this.Ig.D().readOnly&&(this.QF(a.pageX,a.pageY),this.Ig.X6a(),this.ss=!1);b.C.To.call(this,a)};b.prototype.Oy=function(a){var c=this.QF(a.pageX,a.pageY);!1!==this.Ig.D().readOnly||this.ss||this.Ig.D().value==this.Ig.vJ(c.x,c.y)||(this.ss=!0);b.C.Oy.call(this,a)};b.prototype.mo=function(a){r.C.mo.call(this,a)};b.prototype.ll=function(a){this.ss=!1;return b.C.ll.call(this,a)};b.prototype.mia=
  function(){return!0};a.Ha(a,"DialGauge",a.dr);a.Ha(a,"LedGauge",a.RA);a.Ha(a,"RatingGauge",a.Mp);a.Ha(a,"StatusMeterGauge",a.Xo);a.Ha(a.dr,"DialGauge",a.dr);a.Ha(a.dr,"LedGauge",a.RA);a.Ha(a.dr,"RatingGauge",a.Mp);a.Ha(a.dr,"StatusMeterGauge",a.Xo);a.Ha(x.prototype,"getAutomation",x.prototype.oh);a.Ha(x.prototype,"destroy",x.prototype.ya);a.Ha(x.prototype,"render",x.prototype.ta);a.Ha(w.prototype,"getDomElementForSubId",w.prototype.ph);a.Ha(w.prototype,"getValue",w.prototype.getValue);a.Ha(w.prototype,
  "getMetricLabel",w.prototype.nmb);a.gCa=D})(dvt);
    return dvt;
  });
  