=0;)s--;return t.slice(r,s+1)},getSlot:function(t,e,i){var n,o,r=this.options,s=r.reverse,a=r.justified,l=r.vertical,h=this.scaleOptions(),c=h.scale,u=h.box,d=h.min,f=l?me:ge,p=u[f+(s?2:1)],g=u.clone(),m=!Oe(e),v=Xe(t,0),_=Xe(e,v);return _=Math.max(_-1,v),_=Math.max(v,_),n=p+(v-d)*c,o=p+(_+1-d)*c,m&&a&&(o=n),i&&(n=Ge(n,u[f+1],u[f+2]),o=Ge(o,u[f+1],u[f+2])),g[f+1]=s?o:n,g[f+2]=s?n:o,g},limitSlot:function(t){var e=this.options.vertical,i=e?me:ge,n=this.lineBox(),o=t.clone();return o[i+1]=Ge(t[i+1],n[i+1],n[i+2]),o[i+2]=Ge(t[i+2],n[i+1],n[i+2]),o},slot:function(t,e,i){var n=Math.floor(this.options.min||0),o=t,r=e;return"string"==typeof o?o=this.categoryIndex(o):s(o)&&(o-=n),"string"==typeof r?r=this.categoryIndex(r):s(r)&&(r-=n),wi.fn.slot.call(this,o,r,i)},pointCategoryIndex:function(t){var e,i,n=this.options,o=n.reverse,r=n.justified,s=n.vertical,a=s?me:ge,l=this.scaleOptions(),h=l.scale,c=l.box,u=l.min,d=l.max,f=o?d:u,p=c[a+1],g=c[a+2],m=t[a];return mg?null:(e=f+(m-p)/h,i=e%1,r?e=Math.round(e):0===i&&e>0&&e--,Math.floor(e))},getCategory:function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.options.categories[e]},categoryIndex:function(t){return this.totalIndex(t)-Math.floor(this.options.min||0)},categoryAt:function(t,e){var i=this.options;return(e?i.srcCategories:i.categories)[t]},categoriesCount:function(){return(this.options.categories||[]).length},translateRange:function(t){var e=this.options,i=this.lineBox(),n=e.vertical?i.height():i.width(),o=e.categories.length,r=n/o,s=$e(t/r,Wt);return{min:s,max:o+s}},zoomRange:function(t){var e=this.totalRangeIndices(),i=this.totalRange(),n=i.min,o=i.max,r=Ge(e.min+t,n,o),s=Ge(e.max-t,n,o);if(s-r>0)return{min:r,max:s}},scaleRange:function(t){var e=this.options.categories.length,i=t*e;return{min:-i,max:e+i}},labelsCount:function(){var t=this.labelsRange();return t.max-t.min},labelsRange:function(){var t,e=this.options,i=e.justified,n=e.labels,o=this.totalRangeIndices(!0),r=o.min,s=o.max,a=Math.floor(r);return i?(r=Math.ceil(r),s=Math.floor(s)):(r=Math.floor(r),s=Math.ceil(s)),t=r>n.skip?n.skip+n.step*Math.ceil((r-n.skip)/n.step):n.skip,{min:t-a,max:(e.categories.length?s+(i?1:0):0)-a}},createAxisLabel:function(t,e){var i=this.options,n=i.dataItems?i.dataItems[t]:null,o=Xe(i.categories[t],""),r=this.axisLabelText(o,n,e);return new mi(o,r,t,n,e)},shouldRenderNote:function(t){var e=this.totalRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)},noteSlot:function(t){var e=this.options,i=t-Math.floor(e.min||0);return this.getSlot(i)},arrangeNotes:function(){wi.fn.arrangeNotes.call(this),this.hideOutOfRangeNotes()},hideOutOfRangeNotes:function(){var t,e,i,n,o,r=this,s=r.notes,a=r.box;if(s&&s.length)for(t=this.options.vertical?me:ge,e=a[t+1],i=a[t+2],n=0;n=Fi)return{min:g,max:m
}},valueRange:function(){return this.range()},totalIndex:function(t){var e=this.options,i=this._categoriesMap?this._categoriesMap.get(t):Q(t,e.srcCategories);return i},currentRangeIndices:function(){var t,e=this.options,i=0;return s(e.min)&&(i=Math.floor(e.min)),t=s(e.max)?e.justified?Math.floor(e.max):Math.ceil(e.max)-1:this.totalCount()-1,{min:i,max:t}},mapCategories:function(){var t,e,i;if(!this._categoriesMap)for(t=this._categoriesMap=new Pe,e=this.options.srcCategories,i=0;i0?(r=K(o),s=n.maxDivisions,this.dataRange=new $i(r.min,r.max,tt(n)),s?(a=this.dataRange.displayRange(),l=t.extend({},n,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),h=this.dataRange.options,Z(l,h.baseUnit,h.baseUnitStep),this.divisionRange=new $i(r.min,r.max,l)):this.divisionRange=this.dataRange):(n.baseUnit=n.baseUnit||Si,this.dataRange=this.divisionRange=new qi(n))},tickIndices:function(t){var e,i,n,o,r,s=this,a=s.dataRange,l=s.divisionRange,h=l.valuesCount();if(!this.options.maxDivisions||!h)return Vi.fn.tickIndices.call(this,t);for(e=[],i=l.values(),n=0,this.options.justified||(i=i.concat(l.dateAt(h)),n=.5),o=0;o=1&&(r=e.length-1,e.splice(o,0,e[r-1]+(e[r]-e[r-1])*t));return e},shouldRenderNote:function(t){var e=this.range(),i=this.options.categories||[];return N(t,e.min)>=0&&N(t,e.max)<=0&&i.length},parseNoteValue:function(t){return Y(this.chartService.intl,t)},noteSlot:function(t){return this.getSlot(t)},translateRange:function(t){var e,i,n=this.options,o=n.baseUnit,r=n.weekStartDay,s=n.vertical,a=this.lineBox(),l=s?a.height():a.width(),h=this.range(),c=l/(h.max-h.min),u=$e(t/c,Wt);return h.min&&h.max&&(e=I(n.min||h.min,u),i=I(n.max||h.max,u),h={min:O(e,0,o,r),max:O(i,0,o,r)}),h},scaleRange:function(t){var e,i,n=Math.abs(t),o=this.range(),r=o.min,s=o.max;if(r&&s){for(;n--;)e=H(r,s),i=Math.round(.1*e),t<0?(r=I(r,i),s=I(s,-i)):(r=I(r,-i),s=I(s,i));o={min:r,max:s}}return o},labelsRange:function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},pan:function(t){var e,i,n,o,r,s,a,l,h,c,u,d;return this.isEmpty()?null:(e=this.options,i=this.lineBox(),n=e.vertical?i.height():i.width(),o=this.dataRange.displayRange(),r=o.min,s=o.max,a=this.dataRange.total(),l=n/(s-r),h=$e(t/l,Wt)*(e.reverse?-1:1),c=I(r,h),u=I(s,h),d=this.limitRange(U(c),U(u),U(a.min),U(a.max),h),d?(d.min=B(d.min),d.max=B(d.max),d.baseUnit=e.baseUnit,d.baseUnitStep=e.baseUnitStep||1,d.userSetBaseUnit=e.userSetBaseUnit,d.userSetBaseUnitStep=e.userSetBaseUnitStep,d):void 0)},pointsRange:function(t,e){var i,n,o,r,s,a,l;return this.isEmpty()?null:(i=Vi.fn.pointsRange.call(this,t,e),n=this.dataRange.displayRange(),o=this.dataRange.displayIndices(),r=H(n.max,n.min)/(o.max-o.min),s=this.options,a=I(n.min,i.min*r),l=I(n.min,i.max*r),{min:a,max:l,baseUnit:s.userSetBaseUnit||s.baseUnit,baseUnitStep:s.userSetBaseUnitStep||s.baseUnitStep})},zoomRange:function(t){var e,i,n,o,r,s,a,l,h,c,u,d,f,p,g,m,v,_,y,w,x;if(this.isEmpty())return null;if(e=this.options,i=e.userSetBaseUnit===Wi,n=this.dataRange.total(),o=this.dataRange.displayRange(),r=o.min,s=o.max,a=this.dataRange.options,l=a.weekStartDay,h=a.baseUnit,c=a.baseUnitStep,u=O(r,t*c,h,l),d=O(s,-t*c,h,l),i)if(f=e.autoBaseUnitSteps,p=e.maxDateGroups,g=je(f[h])*p*Oi[h],m=H(s,r),v=H(d,u),_=Gi.indexOf(h),vg&&h!==Mi){x=0;do{_++,h=Gi[_],x=0,w=2*Oi[h];do y=f[h][x],x++;while(x0&&(u=I(r,-w),d=I(s,w),u=I(u,Ge(d,n.min,n.max)-d),d=I(d,Ge(u,n.min,n.max)-u))}return un.max&&(d=n.max),u&&d&&H(d,u)>0?{min:u,max:d,baseUnit:e.userSetBaseUnit||e.baseUnit,baseUnitStep:e.userSetBaseUnitStep||e.baseUnitStep}:void 0},range:function(){return this.dataRange.displayRange()},createAxisLabel:function(t,e){var i,n=this.options,o=n.dataItems&&!n.maxDivisions?n.dataItems[t]:null,r=this.divisionRange.dateAt(t),s=e.dateFormats[this.divisionRange.options.baseUnit];if(e.format=e.format||s,i=this.axisLabelText(r,o,e))return new mi(r,i,t,o,e)},categoryIndex:function(t){return this.dataRange.valueIndex(t)},slot:function(t,e,i){var n,o=this.dataRange,r=t,s=e;if(r instanceof Date&&(r=o.dateIndex(r)),s instanceof Date&&(s=o.dateIndex(s)),n=this.getSlot(r,s,i))return n.toRect()},getSlot:function(t,e,i){var n=t,o=e;return typeof n===re&&(n=this.categoryIndex(n)),typeof o===re&&(o=this.categoryIndex(o)),Vi.fn.getSlot.call(this,n,o,i)},valueRange:function(){var t=this.options,e=K(t.srcCategories);return{min:B(e.min),max:B(e.max)}},categoryAt:function(t,e){return this.dataRange.dateAt(t,e)},categoriesCount:function(){return this.dataRange.valuesCount()},rangeIndices:function(){return this.dataRange.displayIndices()},labelsBetweenTicks:function(){return!this.divisionRange.options.justified},prepareUserOptions:function(){this.isEmpty()||(this.options.categories=this.dataRange.values())},getCategory:function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.dataRange.dateAt(e)},totalIndex:function(t){return this.dataRange.totalIndex(t)},currentRangeIndices:function(){var t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}},totalRange:function(){return this.dataRange.total()},totalCount:function(){return this.dataRange.totalCount()},isEmpty:function(){return!this.options.srcCategories.length},roundedRange:function(){var e,i,n;return this.options.roundToBaseUnit!==!1||this.isEmpty()?this.range():(e=this.options,i=K(e.srcCategories),n=new $i(i.min,i.max,t.extend({},e,{justified:!1,roundToBaseUnit:!0,justifyEnd:e.justified})),n.displayRange())}}),x(Yi,{type:Ut,labels:{dateFormats:Hi},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10}),Xi=Math.pow(10,-Wt+1),Qi=wi.extend({init:function(e,i,n,o){wi.fn.init.call(this,t.extend({},n,{seriesMin:e,seriesMax:i}),o)},initUserOptions:function(t){var e=st(t.seriesMin,t.seriesMax,t);return this.totalOptions=at(e,t),ht(e,t)},initFields:function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},clone:function(){return new Qi(this.seriesMin,this.seriesMax,t.extend({},this.options),this.chartService)},startValue:function(){return 0},range:function(){var t=this.options;return{min:t.min,max:t.max}},getDivisions:function(t){var e,i;return 0===t?1:(e=this.options,i=e.max-e.min,Math.floor($e(i/t,Nt))+1)},getTickPositions:function(t,e){var i,n=this.options,o=n.vertical,r=n.reverse,s=this.lineBox(),a=o?s.height():s.width(),l=n.max-n.min,h=a/l,c=t*h,u=this.getDivisions(t),d=(o?-1:1)*(r?-1:1),f=1===d?1:2,p=[],g=s[(o?me:ge)+f],m=0;for(e&&(m=e/t),i=0;ic?null:(e=n?r-p:s+p,$e(e,Wt))},translateRange:function(t){var e=this.options,i=e.vertical,n=e.reverse,o=e.max,r=e.min,s=this.lineBox(),a=i?s.height():s.width(),l=o-r,h=a/l,c=$e(t/h,Wt);return!i&&!n||i&&n||(c=-c),{min:r+c,max:o+c,offset:c}},scaleRange:function(t){var e=this.options,i=-t*e.majorUnit;return{min:e.min-i,max:e.max+i}},labelsCount:function(){return this.getDivisions(this.options.majorUnit)},createAxisLabel:function(t,e){var i=this.options,n=$e(i.min+t*i.majorUnit,Wt),o=this.axisLabelText(n,null,e);return new mi(n,o,t,null,e)},shouldRenderNote:function(t){var e=this.range();return e.min<=t&&t<=e.max},pan:function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},pointsRange:function(t,e){var i=this.getValue(t),n=this.getValue(e),o=Math.min(i,n),r=Math.max(i,n);if(this.isValidRange(o,r))return{min:o,max:r}},zoomRange:function(t){var e=this,i=e.totalMin,n=e.totalMax,o=this.scaleRange(t),r=Ge(o.min,i,n),s=Ge(o.max,i,n);if(this.isValidRange(r,s))return{min:r,max:s}},isValidRange:function(t,e){return e-t>Xi}}),x(Qi,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Rt},labels:{format:"#.####################"},zIndex:1}),Ki=wi.extend({init:function(t,e,i,n){var o=B(t),r=B(e),s=n.intl,a=i||{};a=Pt(a||{},{min:Y(s,a.min),max:Y(s,a.max),axisCrossingValue:X(s,a.axisCrossingValues||a.axisCrossingValue)}),a=dt(o,r,a),wi.fn.init.call(this,a,n),this.intlService=s,this.seriesMin=o,this.seriesMax=r,this.totalMin=U(F(U(o)-1,a.baseUnit)),this.totalMax=U(V(U(r)+1,a.baseUnit))},clone:function(){return new Ki(this.seriesMin,this.seriesMax,t.extend({},this.options),this.chartService)},range:function(){var t=this.options;return{min:t.min,max:t.max}},getDivisions:function(t){var e=this.options;return Math.floor(q(e.min,e.max,e.baseUnit)/t+1)},getTickPositions:function(t){var e,i,n,o=this.options,r=o.vertical,s=this.lineBox(),a=(r?-1:1)*(o.reverse?-1:1),l=1===a?1:2,h=s[(r?me:ge)+l],c=this.getDivisions(t),u=H(o.max,o.min),d=r?s.height():s.width(),f=d/u,p=[h];for(e=1;e0&&(s=O(s,r,o.baseUnit)),i=e.dateFormats[o.baseUnit],e.format=e.format||i,n=this.axisLabelText(s,null,e),new mi(s,n,t,null,e)},translateRange:function(t,e){var i=this.options,n=i.baseUnit,o=i.weekStartDay,r=this.lineBox(),s=i.vertical?r.height():r.width(),a=this.range(),l=s/H(a.max,a.min),h=$e(t/l,Wt)*(i.reverse?-1:1),c=I(i.min,h),u=I(i.max,h);return e||(c=O(c,0,n,o),u=O(u,0,n,o)),{min:c,max:u,offset:h}},scaleRange:function(t){for(var e,i,n=this.options,o=n.min,r=n.max,s=Math.abs(t);s--;)e=H(o,r),i=Math.round(.1*e),t<0?(o=I(o,i),r=I(r,-i)):(o=I(o,-i),r=I(r,i));return{min:o,max:r}},shouldRenderNote:function(t){var e=this.range();return N(t,e.min)>=0&&N(t,e.max)<=0},pan:function(t){var e=this.translateRange(t,!0),i=this.limitRange(U(e.min),U(e.max),this.totalMin,this.totalMax,e.offset);if(i)return{min:B(i.min),max:B(i.max)}},pointsRange:function(t,e){var i=this.getValue(t),n=this.getValue(e),o=Math.min(i,n),r=Math.max(i,n);return{min:B(o),max:B(r)}},zoomRange:function(t){var e=this.scaleRange(t),i=B(Ge(U(e.min),this.totalMin,this.totalMax)),n=B(Ge(U(e.max),this.totalMin,this.totalMax));return{min:i,max:n}}}),x(Ki,{type:Ut,majorGridLines:{visible:!0,width:1,color:Rt},labels:{dateFormats:Hi}}),Zi=10,Ji=wi.extend({init:function(t,e,i,n){var o=Pt({majorUnit:Zi,min:t,max:e},i),r=o.majorUnit,s=gt(e,r),a=pt(t,e,o),l=ft(a,s,o,i);o.max=l.max,o.min=l.min,o.minorUnit=i.minorUnit||$e(r-1,Wt),wi.fn.init.call(this,o,n),this.totalMin=Oe(i.min)?Math.min(a,i.min):a,this.totalMax=Oe(i.max)?Math.max(s,i.max):s,this.logMin=$e(vt(l.min,r),Wt),this.logMax=$e(vt(l.max,r),Wt),this.seriesMin=t,this.seriesMax=e,this.createLabels()},clone:function(){return new Ji(this.seriesMin,this.seriesMax,t.extend({},this.options),this.chartService)},startValue:function(){return this.options.min},getSlot:function(t,e,i){var n,o,r=this,s=r.options,a=r.logMin,l=r.logMax,h=s.reverse,c=s.vertical,u=s.majorUnit,d=c?me:ge,f=this.lineBox(),p=f[d+(h?2:1)],g=c?f.height():f.width(),m=h?-1:1,v=m*(g/(l-a)),_=new Ze(f.x1,f.y1,f.x1,f.y1),y=t,w=e;return Oe(y)||(y=w||1),Oe(w)||(w=y||1),y<=0||w<=0?null:(i&&(y=Math.max(Math.min(y,s.max),s.min),w=Math.max(Math.min(w,s.max),s.min)),y=vt(y,u),w=vt(w,u),c?(n=l-Math.max(y,w),o=l-Math.min(y,w)):(n=Math.min(y,w)-a,o=Math.max(y,w)-a),_[d+1]=rt(p+v*(h?o:n)),_[d+2]=rt(p+v*(h?n:o)),_)},getValue:function(t){var e,i=this,n=i.options,o=i.logMin,r=i.logMax,s=n.reverse,a=n.vertical,l=n.majorUnit,h=this.lineBox(),c=a===s?1:-1,u=1===c?1:2,d=a?h.height():h.width(),f=(r-o)/d,p=a?me:ge,g=h[p+u],m=c*(t[p]-g),v=m*f;return m<0||m>d?null:(e=o+v,$e(Math.pow(l,e),Wt))},range:function(){var t=this.options;return{min:t.min,max:t.max}},scaleRange:function(t){var e=this.options.majorUnit,i=-t;return{min:Math.pow(e,this.logMin-i),max:Math.pow(e,this.logMax+i)}},translateRange:function(t){var e=this,i=e.options,n=e.logMin,o=e.logMax,r=i.reverse,s=i.vertical,a=i.majorUnit,l=this.lineBox(),h=s?l.height():l.width(),c=h/(o-n),u=$e(t/c,Wt);return!s&&!r||s&&r||(u=-u),{min:Math.pow(a,n+u),max:Math.pow(a,o+u),offset:u}},labelsCount:function(){var t=Math.floor(this.logMax),e=Math.floor(t-this.logMin)+1;return e},getMajorTickPositions:function(){var t=[];return this.traverseMajorTicksPositions(function(e){t.push(e)},{step:1,skip:0}),t},createTicks:function(t){function e(e,i){h.tickX=s?a.x2:a.x2-i.size,h.tickY=s?a.y1-i.size:a.y1,h.position=e,t.append(D(h,i))}var i=this.options,n=i.majorTicks,o=i.minorTicks,r=i.vertical,s=i.labels.mirror,a=this.lineBox(),l=[],h={vertical:r};return n.visible&&this.traverseMajorTicksPositions(e,n),o.visible&&this.traverseMinorTicksPositions(e,o),l},createGridLines:function(t){function e(t,e){v(t,l)||(a.position=t,h.append(E(a,e)),l.push(t))}var i=this.options,n=i.minorGridLines,o=i.majorGridLines,r=i.vertical,s=t.lineBox(),a={lineStart:s[r?"x1":"y1"],lineEnd:s[r?"x2":"y2"],vertical:r},l=[],h=this.gridLinesVisual();return o.visible&&this.traverseMajorTicksPositions(e,o),n.visible&&this.traverseMinorTicksPositions(e,n),h.children},traverseMajorTicksPositions:function(t,e){var i,n,o=this._lineOptions(),r=o.lineStart,s=o.step,a=this,l=a.logMin,h=a.logMax;for(i=Math.ceil(l)+e.skip;i<=h;i+=e.step)n=$e(r+s*(i-l),Wt),t(n,e)},traverseMinorTicksPositions:function(t,e){var i,n,o,r,s,a=this,l=this.options,h=l.min,c=l.max,u=l.minorUnit,d=l.majorUnit,f=this._lineOptions(),p=f.lineStart,g=f.step,m=this,v=m.logMin,_=m.logMax,y=Math.floor(v);for(i=y;i<_;i++)for(n=a._minorIntervalOptions(i),o=e.skip;oc));o+=e.step)r>=h&&(s=$e(p+g*(vt(r,d)-v),Wt),t(s,e))},createAxisLabel:function(t,e){var i=Math.ceil(this.logMin+t),n=Math.pow(this.options.majorUnit,i),o=this.axisLabelText(n,null,e);return new mi(n,o,t,null,e)},shouldRenderNote:function(t){var e=this.range();return e.min<=t&&t<=e.max},pan:function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},pointsRange:function(t,e){var i=this.getValue(t),n=this.getValue(e),o=Math.min(i,n),r=Math.max(i,n);return{min:o,max:r}},zoomRange:function(t){var e=this,i=e.options,n=e.totalMin,o=e.totalMax,r=this.scaleRange(t),s=Ge(r.min,n,o),a=Ge(r.max,n,o),l=i.majorUnit,h=a>s&&i.min&&i.max&&$e(vt(i.max,l)-vt(i.min,l),Wt)<1,c=!(i.min===n&&i.max===o)&&$e(vt(a,l)-vt(s,l),Wt)>=1;if(h||c)return{min:s,max:a}},_minorIntervalOptions:function(t){var e=this.options,i=e.minorUnit,n=e.majorUnit,o=Math.pow(n,t),r=Math.pow(n,t+1),s=r-o,a=s/i;return{value:o,minorStep:a}},_lineOptions:function(){var t=this.options,e=t.reverse,i=t.vertical,n=i?me:ge,o=this.lineBox(),r=i===e?1:-1,s=1===r?1:2,a=i?o.height():o.width(),l=r*(a/(this.logMax-this.logMin)),h=o[n+s];return{step:l,lineStart:h,lineBox:o}}}),x(Ji,{type:"log",majorUnit:Zi,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Rt},zIndex:1,_deferLabels:!0}),tn={createGridLines:function(t){var e,i,n=this.options,o=Math.abs(this.box.center().y-t.lineBox().y1),r=[],s=!1;return n.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,r=this.renderMajorGridLines(e,o,n.majorGridLines)),n.minorGridLines.visible&&(i=this.minorGridLineAngles(t,s),Le(r,this.renderMinorGridLines(i,o,n.minorGridLines,t,s))),r},renderMajorGridLines:function(t,e,i){return this.renderGridLines(t,e,i)},renderMinorGridLines:function(t,e,i,n,o){var r=this.radiusCallback&&this.radiusCallback(e,n,o);return this.renderGridLines(t,e,i,r)},renderGridLines:function(t,e,i,n){var o,r,s={stroke:{width:i.width,color:i.color,dashType:i.dashType}},a=this.box.center(),l=new At([a.x,a.y],e),h=this.gridLinesVisual();for(o=0;o0)if(l=new At([t.x,t.y],a),n.type===zt)r.append(new wt.Circle(l,u));else{for(h=new bt(u),c=0;c1&&(e=t.x-u.x,i=t.y-u.y,n=(Fe(Math.atan2(i,e))+540)%360,c.sort(function(t,e){return _t(t,n)-_t(e,n)}),o=_t(c[0],c[1])/2,r=_t(n,c[0]),s=90-o,a=180-r-s,f=d*(Math.sin(qe(a))/Math.sin(qe(s)))),this.axisType().prototype.getValue.call(this,new Ke(l.x1,l.y2-f))}},rn=Qi.extend({radarMajorGridLinePositions:function(){return this.getTickPositions(this.options.majorUnit)},radarMinorGridLinePositions:function(){var t=this.options,e=0;return t.majorGridLines.visible&&(e=t.majorUnit),this.getTickPositions(t.minorUnit,e)},axisType:function(){return Qi}}),Pt(rn.prototype,on),sn=Ji.extend({radarMajorGridLinePositions:function(){var t=[];return this.traverseMajorTicksPositions(function(e){t.push(e)},this.options.majorGridLines),t},radarMinorGridLinePositions:function(){var t=[];return this.traverseMinorTicksPositions(function(e){t.push(e)},this.options.minorGridLines),t},axisType:function(){return Ji}}),Pt(sn.prototype,on),an=.333,ln=.01,hn=Ct.extend({init:function(t){this.closed=t},process:function(t){var e,i,n,o,r,s,a,l,h,c,u,d,f,p,g=this,m=t.slice(0),v=[],_=this.closed,y=m.length;if(y>2&&(this.removeDuplicates(0,m),y=m.length),y<2||2===y&&m[0].equals(m[1]))return v;for(e=m[0],i=m[1],n=m[2],v.push(new Dt(e));e.equals(m[y-1]);)_=!0,m.pop(),y--;if(2===y)return o=this.tangent(e,i,ge,me),je(v).controlOut(this.firstControlPoint(o,e,i,ge,me)),v.push(new Dt(i,this.secondControlPoint(o,e,i,ge,me))),v;for(_?(e=m[y-1],i=m[0],n=m[1],a=this.controlPoints(e,i,n),r=a[1],s=a[0]):(l=this.tangent(e,i,ge,me),r=this.firstControlPoint(l,e,i,ge,me)),h=r,c=0;c<=y-3;c++)g.removeDuplicates(c,m),y=m.length,c+3<=y&&(e=m[c],i=m[c+1],n=m[c+2],u=g.controlPoints(e,i,n),je(v).controlOut(h),h=u[1],d=u[0],v.push(new Dt(i,d)));return _?(e=m[y-2],i=m[y-1],n=m[0],f=this.controlPoints(e,i,n),je(v).controlOut(h),v.push(new Dt(i,f[0])),je(v).controlOut(f[1]),v.push(new Dt(n,s))):(p=this.tangent(i,n,ge,me),je(v).controlOut(h),v.push(new Dt(n,this.secondControlPoint(p,i,n,ge,me)))),v},removeDuplicates:function(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)},invertAxis:function(t,e,i){var n,o,r=!1;return t.x===e.x?r=!0:e.x===i.x?(e.y=o||(r=!0)),r},isLine:function(t,e,i){var n=this.lineFunction(t,e),o=this.calculateFunction(n,i.x);return t.x===e.x&&e.x===i.x||$e(o,1)===$e(i.y,1)},lineFunction:function(t,e){var i=(e.y-t.y)/(e.x-t.x),n=t.y-i*t.x;return[n,i]},controlPoints:function(t,e,i){var n,o,r,s,a,l,h=ge,c=me,u=!1,d=!1;return this.isLine(t,e,i)?n=this.tangent(t,e,ge,me):(o={x:this.isMonotonicByField(t,e,i,ge),y:this.isMonotonicByField(t,e,i,me)},o.x&&o.y?(n=this.tangent(t,i,ge,me),u=!0):(this.invertAxis(t,e,i)&&(h=me,c=ge),o[h]?n=0:(r=i[c]e[n]&&e[n]>t[n]||i[n] ").css({display:"none",width:this.element.width(),height:this.element.height()}).appendTo(document.body),i=new n.canvas.Surface(e[0]),i.draw(this.exportVisual()),o=i._rootElement.toDataURL(),i.destroy(),e.remove(),o;throw Error("Image Export failed. Unable to export instantiate kendo.drawing.canvas.Surface")}},i.IntlService.register({format:function(t){return kendo.format.apply(null,[t].concat(Array.prototype.slice.call(arguments,1)))},toString:kendo.toString,parseDate:kendo.parseDate}),i.TemplateService.register({compile:kendo.template}),e.Point2D=e.Point,e.Box2D=e.Box,e.mwDelta=function(t){return e.mousewheelDelta(t.originalEvent)}}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("kendo.dataviz.core.min",["dataviz/core/kendo-core.min","dataviz/core/core.min"],t)}(function(){},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/themes/chart-base-theme.min",["kendo.dataviz.core.min"],t)}(function(){!function(){var t,e,i,n,o,r,s,a,l,h,c,u,d,f,p,g,m,v,_,y,w,x,b,k,C,S,T,A,M,D,E,P,I,B;window.kendo.dataviz=window.kendo.dataviz||{},t=1.5,e=.4,i="#000",n="Arial, Helvetica, sans-serif",o="11px "+n,r="12px "+n,s="16px "+n,a="transparent",l="#fff",h=function(){return{icon:{border:{width:1}},label:{font:r,padding:3},line:{length:10,width:2},visible:!0}},c=function(){return{labels:{font:r},notes:h(),title:{font:s,margin:5}}},u=function(){return{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4}},d=function(){return{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4}},f=function(){return{gap:t,spacing:e}},p=function(){return{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:l,gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}}},g=function(){return{border:{width:0},labels:{background:a},opacity:.6}},m=function(){return{gap:t,spacing:e,target:{color:"#ff0000"}}},v=function(){return{border:{_brightness:.8,width:1},downColor:l,gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:i,width:1},spacing:.3}},_=function(){return{gap:t,spacing:e}},y=function(){return{margin:1}},w=function(){return{width:2}},x=function(){return{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3}},b=function(){return{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5}},k=function(){return{markers:{visible:!1},width:2}},C=function(){return{gap:t,spacing:e}},S=function(){return{gap:t,spacing:e}},T=function(){return{width:1}},A=function(){return{gap:.5,line:{color:i,width:1},spacing:e}},M=function(){return{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}}},D=function(){return{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}}},E=function(t){return{visible:!0,labels:{font:o},overlay:t.gradients?{}:{gradient:"none"},area:u(),rangeArea:d(),verticalRangeArea:d(),bar:f(),boxPlot:p(),bubble:g(),bullet:m(),candlestick:v(),column:_(),pie:M(),donut:y(),funnel:D(),horizontalWaterfall:A(),line:w(),notes:h(),ohlc:x(),radarArea:b(),radarLine:k(),polarArea:b(),polarLine:k(),rangeBar:C(),rangeColumn:S(),scatterLine:T(),verticalArea:u(),verticalBoxPlot:p(),verticalBullet:m(),verticalLine:w(),waterfall:A()}},P=function(){return{font:s}},I=function(){return{labels:{font:r}}},B=function(t){return void 0===t&&(t={}),{axisDefaults:c(),categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:E(t),title:P(),legend:I()}},kendo.deepExtend(kendo.dataviz,{chartBaseTheme:B})}()},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/themes/auto-theme.min",["kendo.dataviz.core.min"],t)}(function(){!function(t){function e(e){function n(t,e){r(t,o(e,"backgroundColor"))}function o(t,e){return a.find(".k-var--"+t).css(e)}function r(t,e){for(var i=s,n=t.split("."),o=n.shift();n.length>0;)i=i[o]=i[o]||{},o=n.shift();i[o]=e}var s,a;return!e&&i?i:(s={chart:kendo.dataviz.chartBaseTheme()},a=t('').appendTo(document.body),function(){n("chart.axisDefaults.crosshair.color","chart-crosshair-background"),n("chart.axisDefaults.labels.color","normal-text-color"),n("chart.axisDefaults.line.color","chart-major-lines"),n("chart.axisDefaults.majorGridLines.color","chart-major-lines"),n("chart.axisDefaults.minorGridLines.color","chart-minor-lines"),n("chart.axisDefaults.notes.icon.background","chart-notes-background"),n("chart.axisDefaults.notes.icon.border.color","chart-notes-border"),n("chart.axisDefaults.notes.line.color","chart-notes-lines"),n("chart.axisDefaults.title.color","normal-text-color"),n("chart.chartArea.background","background"),n("chart.legend.inactiveItems.labels.color","chart-inactive"),n("chart.legend.inactiveItems.markers.color","chart-inactive"),n("chart.legend.labels.color","normal-text-color"),n("chart.seriesDefaults.boxPlot.downColor","chart-major-lines"),n("chart.seriesDefaults.boxPlot.mean.color","base"),n("chart.seriesDefaults.boxPlot.median.color","base"),n("chart.seriesDefaults.boxPlot.whiskers.color","accent"),n("chart.seriesDefaults.bullet.target.color","accent"),n("chart.seriesDefaults.candlestick.downColor","normal-text-color"),n("chart.seriesDefaults.candlestick.line.color","normal-text-color"),n("chart.seriesDefaults.errorBars.color","chart-error-bars-background"),n("chart.seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),n("chart.seriesDefaults.icon.border.color","chart-major-lines"),n("chart.seriesDefaults.labels.background","background"),n("chart.seriesDefaults.labels.color","normal-text-color"),n("chart.seriesDefaults.notes.icon.background","chart-notes-background"),n("chart.seriesDefaults.notes.icon.border.color","chart-notes-border"),n("chart.seriesDefaults.notes.line.color","chart-notes-lines"),n("chart.seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),n("chart.seriesDefaults.verticalBoxPlot.mean.color","base"),n("chart.seriesDefaults.verticalBoxPlot.median.color","base"),n("chart.seriesDefaults.verticalBoxPlot.whiskers.color","accent"),n("chart.seriesDefaults.verticalBullet.target.color","accent"),n("chart.seriesDefaults.waterfall.line.color","chart-major-lines"),n("chart.title.color","normal-text-color"),r("chart.seriesDefaults.labels.opacity",o("chart-area-opacity","opacity")),n("diagram.shapeDefaults.fill.color","accent"),n("diagram.shapeDefaults.content.color","accent-contrast"),n("diagram.shapeDefaults.connectorDefaults.fill.color","normal-text-color"),n("diagram.shapeDefaults.connectorDefaults.stroke.color","accent-contrast"),n("diagram.shapeDefaults.connectorDefaults.hover.fill.color","accent-contrast"),n("diagram.shapeDefaults.connectorDefaults.hover.stroke.color","normal-text-color"),n("diagram.editable.resize.handles.stroke.color","normal-text-color"),n("diagram.editable.resize.handles.fill.color","normal-background"),n("diagram.editable.resize.handles.hover.stroke.color","normal-text-color"),n("diagram.editable.resize.handles.hover.fill.color","normal-text-color"),n("diagram.selectable.stroke.color","normal-text-color"),n("diagram.connectionDefaults.stroke.color","normal-text-color"),n("diagram.connectionDefaults.content.color","normal-text-color"),n("diagram.connectionDefaults.selection.handles.fill.color","accent-contrast"),n("diagram.connectionDefaults.selection.handles.stroke.color","normal-text-color"),n("diagram.connectionDefaults.selection.stroke.color","normal-text-color"),n("gauge.pointer.color","gauge-pointer"),n("gauge.scale.labels.color","normal-text-color"),n("gauge.scale.minorTicks.color","normal-text-color"),n("gauge.scale.majorTicks.color","normal-text-color"),n("gauge.scale.line.color","normal-text-color"),n("gauge.scale.rangePlaceholderColor","gauge-track")}(),function(){function t(t){return o(t,"fontSize")+" "+o(t,"fontFamily")}var e=t("chart-font"),i=t("chart-title-font"),n=t("chart-label-font");r("chart.axisDefaults.labels.font",n),r("chart.axisDefaults.notes.label.font",e),r("chart.axisDefaults.title.font",e),r("chart.legend.labels.font",e),r("chart.seriesDefaults.labels.font",n),r("chart.seriesDefaults.notes.label.font",e),r("chart.title.font",i)}(),function(){function e(t){return t.toLowerCase().charCodeAt(0)-"a".charCodeAt(0)}function i(t){return e(t.match(/series-([a-z])$/)[1])}var n=t(".k-var--series div").toArray(),o=n.reduce(function(e,n){var o=i(n.className);return e[o]=t(n).css("backgroundColor"),e},[]);r("chart.seriesColors",o)}(),a.remove(),i=s,s)}var i;kendo.dataviz.autoTheme=e}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/themes/themes.min",["dataviz/themes/chart-base-theme.min"],t)}(function(){return function(t){function e(e,i){return t.map(e,function(t,e){return[[t,i[e]]]})}var i=window.kendo,n=i.dataviz.ui,o=i.deepExtend,r="#000",s="Arial,Helvetica,sans-serif",a="12px "+s,l="#fff",h=i.dataviz.chartBaseTheme({gradients:!0}),c={scale:{labels:{font:a}}},u={shapeDefaults:{hover:{opacity:.2},stroke:{width:0}},editable:{resize:{handles:{width:7,height:7}}},selectable:{stroke:{width:1,dashType:"dot"}},connectionDefaults:{stroke:{width:2},selection:{handles:{width:8,height:8}},editable:{tools:["edit","delete"]}}},d=n.themes,f=n.registerTheme=function(t,e){var i,n={};n.chart=o({},h,e.chart),n.gauge=o({},c,e.gauge),n.diagram=o({},u,e.diagram),n.treeMap=o({},e.treeMap),i=n.chart.seriesDefaults,i.verticalLine=o({},i.line),i.verticalArea=o({},i.area),i.rangeArea=o({},i.area),i.verticalRangeArea=o({},i.rangeArea),i.verticalBoxPlot=o({},i.boxPlot),i.polarArea=o({},i.radarArea),i.polarLine=o({},i.radarLine),d[t]=n};f("black",{chart:{title:{color:l},legend:{labels:{color:l},inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}},seriesDefaults:{labels:{color:l},errorBars:{color:l},notes:{icon:{background:"#3b3b3b",border:{color:"#8e8e8e"}},label:{color:l},line:{color:"#8e8e8e"}},pie:{overlay:{gradient:"sharpBevel"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#3d3d3d"}},scatter:{markers:{background:"#3d3d3d"}},scatterLine:{markers:{background:"#3d3d3d"}},waterfall:{line:{color:"#8e8e8e"}},horizontalWaterfall:{line:{color:"#8e8e8e"}},candlestick:{downColor:"#555",line:{color:l},border:{_brightness:1.5,opacity:1},highlight:{border:{color:l,opacity:.2}}},ohlc:{line:{color:l}}},chartArea:{background:"#3d3d3d"},seriesColors:["#0081da","#3aafff","#99c900","#ffeb3d","#b20753","#ff4195"],axisDefaults:{line:{color:"#8e8e8e"},labels:{color:l},majorGridLines:{color:"#545454"},minorGridLines:{color:"#454545"},title:{color:l},crosshair:{color:"#8e8e8e"},notes:{icon:{background:"#3b3b3b",border:{color:"#8e8e8e"}},label:{color:l},line:{color:"#8e8e8e"}}}},gauge:{pointer:{color:"#0070e4"},scale:{rangePlaceholderColor:"#1d1d1d",labels:{color:l},minorTicks:{color:l},majorTicks:{color:l},line:{color:l}}},diagram:{shapeDefaults:{fill:{color:"#0066cc"},connectorDefaults:{fill:{color:l},stroke:{color:"#384049"},hover:{fill:{color:"#3d3d3d"},stroke:{color:"#efefef"}}},content:{color:l}},editable:{resize:{handles:{fill:{color:"#3d3d3d"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:l}}}},rotate:{thumb:{stroke:{color:l},fill:{color:l}}}},selectable:{stroke:{color:l}},connectionDefaults:{stroke:{color:l},content:{color:l},selection:{handles:{fill:{color:"#3d3d3d"},stroke:{color:"#efefef"}}}}},treeMap:{colors:[["#0081da","#314b5c"],["#3aafff","#3c5464"],["#99c900","#4f5931"],["#ffeb3d","#64603d"],["#b20753","#543241"],["#ff4195","#643e4f"]]}}),f("blueopal",{chart:{title:{color:"#293135"},legend:{labels:{color:"#293135"},inactiveItems:{labels:{color:"#27A5BA"},markers:{color:"#27A5BA"}}},seriesDefaults:{labels:{color:r,background:l,opacity:.5},errorBars:{color:"#293135"},candlestick:{downColor:"#c4d0d5",line:{color:"#9aabb2"}},waterfall:{line:{color:"#9aabb2"}},horizontalWaterfall:{line:{color:"#9aabb2"}},notes:{icon:{background:"transparent",border:{color:"#9aabb2"}},label:{color:"#293135"},line:{color:"#9aabb2"}}},seriesColors:["#0069a5","#0098ee","#7bd2f6","#ffb800","#ff8517","#e34a00"],axisDefaults:{line:{color:"#9aabb2"},labels:{color:"#293135"},majorGridLines:{color:"#c4d0d5"},minorGridLines:{color:"#edf1f2"},title:{color:"#293135"},crosshair:{color:"#9aabb2"},notes:{icon:{background:"transparent",border:{color:"#9aabb2"}},label:{color:"#293135"},line:{color:"#9aabb2"}}}},gauge:{pointer:{color:"#005c83"},scale:{rangePlaceholderColor:"#daecf4",labels:{color:"#293135"},minorTicks:{color:"#293135"},majorTicks:{color:"#293135"},line:{color:"#293135"}}},diagram:{shapeDefaults:{fill:{color:"#7ec6e3"},connectorDefaults:{fill:{color:"#003f59"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#003f59"}}},content:{color:"#293135"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#003f59"},hover:{fill:{color:"#003f59"},stroke:{color:"#003f59"}}}},rotate:{thumb:{stroke:{color:"#003f59"},fill:{color:"#003f59"}}}},selectable:{stroke:{color:"#003f59"}},connectionDefaults:{stroke:{color:"#003f59"},content:{color:"#293135"},selection:{handles:{fill:{color:"#3d3d3d"},stroke:{color:"#efefef"}}}}},treeMap:{colors:[["#0069a5","#bad7e7"],["#0098ee","#b9e0f5"],["#7bd2f6","#ceeaf6"],["#ffb800","#e6e3c4"],["#ff8517","#e4d8c8"],["#e34a00","#ddccc2"]]}}),f("highcontrast",{chart:{title:{color:"#ffffff"},legend:{labels:{color:"#ffffff"},inactiveItems:{labels:{color:"#66465B"},markers:{color:"#66465B"}}},seriesDefaults:{labels:{color:"#ffffff"},errorBars:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#ffffff"}},label:{color:"#ffffff"},line:{color:"#ffffff"}},pie:{overlay:{gradient:"sharpGlass"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#2c232b"}},scatter:{markers:{background:"#2c232b"}},scatterLine:{markers:{background:"#2c232b"}},area:{opacity:.5},waterfall:{line:{color:"#ffffff"}},horizontalWaterfall:{line:{color:"#ffffff"}},candlestick:{downColor:"#664e62",line:{color:"#ffffff"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:"#ffffff",opacity:1}}},ohlc:{line:{color:"#ffffff"}}},chartArea:{background:"#2c232b"},seriesColors:["#a7008f","#ffb800","#3aafff","#99c900","#b20753","#ff4195"],axisDefaults:{line:{color:"#ffffff"},labels:{color:"#ffffff"},majorGridLines:{color:"#664e62"},minorGridLines:{color:"#4f394b"},title:{color:"#ffffff"},crosshair:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#ffffff"}},label:{color:"#ffffff"},line:{color:"#ffffff"}}}},gauge:{pointer:{color:"#a7008f"},scale:{rangePlaceholderColor:"#2c232b",labels:{color:"#ffffff"},minorTicks:{color:"#2c232b"},majorTicks:{color:"#664e62"},line:{color:"#ffffff"}}},diagram:{shapeDefaults:{fill:{color:"#a7018f"},connectorDefaults:{fill:{color:l},stroke:{color:"#2c232b"},hover:{fill:{color:"#2c232b"},stroke:{color:l}}},content:{color:l}},editable:{resize:{handles:{fill:{color:"#2c232b"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:l}}}},rotate:{thumb:{stroke:{color:l},fill:{color:l}}}},selectable:{stroke:{color:l}},connectionDefaults:{stroke:{color:l},content:{color:l},selection:{handles:{fill:{color:"#2c232b"},stroke:{color:l}}}}},treeMap:{colors:[["#a7008f","#451c3f"],["#ffb800","#564122"],["#3aafff","#2f3f55"],["#99c900","#424422"],["#b20753","#471d33"],["#ff4195","#562940"]]}}),f("default",{chart:{title:{color:"#8e8e8e"},legend:{labels:{color:"#232323"},inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}},seriesDefaults:{labels:{color:r,background:l,opacity:.5},errorBars:{color:"#232323"},candlestick:{downColor:"#dedede",line:{color:"#8d8d8d"}},waterfall:{line:{color:"#8e8e8e"}},horizontalWaterfall:{line:{color:"#8e8e8e"}},notes:{icon:{background:"transparent",border:{color:"#8e8e8e"}},label:{color:"#232323"},line:{color:"#8e8e8e"}}},seriesColors:["#ff6800","#a0a700","#ff8d00","#678900","#ffb53c","#396000"],axisDefaults:{line:{color:"#8e8e8e"},labels:{color:"#232323"},minorGridLines:{color:"#f0f0f0"},majorGridLines:{color:"#dfdfdf"},title:{color:"#232323"},crosshair:{color:"#8e8e8e"},notes:{icon:{background:"transparent",border:{color:"#8e8e8e"}},label:{color:"#232323"},line:{color:"#8e8e8e"}}}},gauge:{pointer:{color:"#ea7001"},scale:{rangePlaceholderColor:"#dedede",labels:{color:"#2e2e2e"},minorTicks:{color:"#2e2e2e"},majorTicks:{color:"#2e2e2e"},line:{color:"#2e2e2e"}}},diagram:{shapeDefaults:{fill:{color:"#e15613"},connectorDefaults:{fill:{color:"#282828"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#282828"}}},content:{color:"#2e2e2e"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#282828"},hover:{fill:{color:"#282828"},stroke:{color:"#282828"}}}},rotate:{thumb:{stroke:{color:"#282828"},fill:{color:"#282828"}}}},selectable:{stroke:{color:"#a7018f"}},connectionDefaults:{stroke:{color:"#282828"},content:{color:"#2e2e2e"},selection:{handles:{fill:{color:l},stroke:{color:"#282828"}}}}},treeMap:{colors:[["#ff6800","#edcfba"],["#a0a700","#dadcba"],["#ff8d00","#edd7ba"],["#678900","#cfd6ba"],["#ffb53c","#eddfc6"],["#396000","#c6ceba"]]}}),f("silver",{chart:{title:{color:"#4e5968"},legend:{labels:{color:"#4e5968"},inactiveItems:{labels:{color:"#B1BCC8"},markers:{color:"#B1BCC8"}}},seriesDefaults:{labels:{color:"#293135",background:"#eaeaec",opacity:.5},errorBars:{color:"#4e5968"},notes:{icon:{background:"transparent",border:{color:"#4e5968"}},label:{color:"#4e5968"},line:{color:"#4e5968"}},line:{markers:{background:"#eaeaec"}},scatter:{markers:{background:"#eaeaec"}},scatterLine:{markers:{background:"#eaeaec"}},pie:{connectors:{color:"#A6B1C0"}},donut:{connectors:{color:"#A6B1C0"}},waterfall:{line:{color:"#a6b1c0"}},horizontalWaterfall:{line:{color:"#a6b1c0"}},candlestick:{downColor:"#a6afbe"}},chartArea:{background:"#eaeaec"},seriesColors:["#007bc3","#76b800","#ffae00","#ef4c00","#a419b7","#430B62"],axisDefaults:{line:{color:"#a6b1c0"},labels:{color:"#4e5968"},majorGridLines:{color:"#dcdcdf"},minorGridLines:{color:"#eeeeef"},title:{color:"#4e5968"},crosshair:{color:"#a6b1c0"},notes:{icon:{background:"transparent",border:{color:"#4e5968"}},label:{color:"#4e5968"},line:{color:"#4e5968"}}}},gauge:{pointer:{color:"#0879c0"},scale:{rangePlaceholderColor:"#f3f3f4",labels:{color:"#515967"},minorTicks:{color:"#515967"},majorTicks:{color:"#515967"},line:{color:"#515967"}}},diagram:{shapeDefaults:{fill:{color:"#1c82c2"},connectorDefaults:{fill:{color:"#515967"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#282828"}}},content:{color:"#515967"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#515967"},hover:{fill:{color:"#515967"},stroke:{color:"#515967"}}}},rotate:{thumb:{stroke:{color:"#515967"},fill:{color:"#515967"}}}},selectable:{stroke:{color:"#515967"}},connectionDefaults:{stroke:{color:"#515967"},content:{color:"#515967"},selection:{handles:{fill:{color:l},stroke:{color:"#515967"}}}}},treeMap:{colors:[["#007bc3","#c2dbea"],["#76b800","#dae7c3"],["#ffae00","#f5e5c3"],["#ef4c00","#f2d2c3"],["#a419b7","#e3c7e8"],["#430b62","#d0c5d7"]]}}),f("metro",{chart:{title:{color:"#777777"},legend:{labels:{color:"#777777"},inactiveItems:{labels:{color:"#CBCBCB"},markers:{color:"#CBCBCB"}}},seriesDefaults:{labels:{color:r},errorBars:{color:"#777777"},notes:{icon:{background:"transparent",border:{color:"#777777"}},label:{color:"#777777"},line:{color:"#777777"}},candlestick:{downColor:"#c7c7c7",line:{color:"#787878"}},waterfall:{line:{color:"#c7c7c7"}},horizontalWaterfall:{line:{color:"#c7c7c7"}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:["#8ebc00","#309b46","#25a0da","#ff6900","#e61e26","#d8e404","#16aba9","#7e51a1","#313131","#ed1691"],axisDefaults:{line:{color:"#c7c7c7"},labels:{color:"#777777"},minorGridLines:{color:"#c7c7c7"},majorGridLines:{color:"#c7c7c7"},title:{color:"#777777"},crosshair:{color:"#c7c7c7"},notes:{icon:{background:"transparent",border:{color:"#777777"}},label:{color:"#777777"},line:{color:"#777777"}}}},gauge:{pointer:{color:"#8ebc00"},scale:{rangePlaceholderColor:"#e6e6e6",labels:{color:"#777"},minorTicks:{color:"#777"},majorTicks:{color:"#777"},line:{color:"#777"}}},diagram:{shapeDefaults:{fill:{color:"#8ebc00"},connectorDefaults:{fill:{color:r},stroke:{color:l},hover:{fill:{color:l},stroke:{color:r}}},content:{color:"#777"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#787878"},hover:{fill:{color:"#787878"},stroke:{color:"#787878"}}}},rotate:{thumb:{stroke:{color:"#787878"},fill:{color:"#787878"}}}},selectable:{stroke:{color:"#515967"}},connectionDefaults:{stroke:{color:"#787878"},content:{color:"#777"},selection:{handles:{fill:{color:l},stroke:{color:"#787878"}}}}},treeMap:{colors:[["#8ebc00","#e8f2cc"],["#309b46","#d6ebda"],["#25a0da","#d3ecf8"],["#ff6900","#ffe1cc"],["#e61e26","#fad2d4"],["#d8e404","#f7facd"],["#16aba9","#d0eeee"],["#7e51a1","#e5dcec"],["#313131","#d6d6d6"],["#ed1691","#fbd0e9"]]}}),f("metroblack",{chart:{title:{color:"#ffffff"},legend:{labels:{color:"#ffffff"},inactiveItems:{labels:{color:"#797979"},markers:{color:"#797979"}}},seriesDefaults:{border:{_brightness:1},labels:{color:"#ffffff"},errorBars:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#cecece"}},label:{color:"#ffffff"},line:{color:"#cecece"}},line:{markers:{background:"#0e0e0e"}},bubble:{opacity:.6},scatter:{markers:{background:"#0e0e0e"}},scatterLine:{markers:{background:"#0e0e0e"}},candlestick:{downColor:"#828282",line:{color:"#ffffff"}},waterfall:{line:{color:"#cecece"}},horizontalWaterfall:{line:{color:"#cecece"}},overlay:{gradient:"none"}},chartArea:{background:"#0e0e0e"},seriesColors:["#00aba9","#309b46","#8ebc00","#ff6900","#e61e26","#d8e404","#25a0da","#7e51a1","#313131","#ed1691"],axisDefaults:{line:{color:"#cecece"},labels:{color:"#ffffff"},minorGridLines:{color:"#2d2d2d"},majorGridLines:{color:"#333333"},title:{color:"#ffffff"},crosshair:{color:"#cecece"},notes:{icon:{background:"transparent",border:{color:"#cecece"}},label:{color:"#ffffff"},line:{color:"#cecece"}}}},gauge:{pointer:{color:"#00aba9"},scale:{rangePlaceholderColor:"#2d2d2d",labels:{color:"#ffffff"},minorTicks:{color:"#333333"},majorTicks:{color:"#cecece"},line:{color:"#cecece"}}},diagram:{shapeDefaults:{fill:{color:"#00aba9"},connectorDefaults:{fill:{color:l},stroke:{color:"#0e0e0e"},hover:{fill:{color:"#0e0e0e"},stroke:{color:l}}},content:{color:l}},editable:{resize:{handles:{fill:{color:"#0e0e0e"},stroke:{color:"#787878"},hover:{fill:{color:"#787878"},stroke:{color:"#787878"}}}},rotate:{thumb:{stroke:{color:l},fill:{color:l}}}},selectable:{stroke:{color:"#787878"}},connectionDefaults:{stroke:{color:l},content:{color:l},selection:{handles:{fill:{color:"#0e0e0e"},stroke:{color:l}}}}},treeMap:{colors:[["#00aba9","#0b2d2d"],["#309b46","#152a19"],["#8ebc00","#28310b"],["#ff6900","#3e200b"],["#e61e26","#391113"],["#d8e404","#36390c"],["#25a0da","#132b37"],["#7e51a1","#241b2b"],["#313131","#151515"],["#ed1691","#3b1028"]]}}),f("moonlight",{chart:{title:{color:"#ffffff"},legend:{labels:{color:"#ffffff"},inactiveItems:{labels:{color:"#A1A7AB"},markers:{color:"#A1A7AB"}}},seriesDefaults:{labels:{color:"#ffffff"},errorBars:{color:"#ffffff"},notes:{icon:{background:"transparent",border:{color:"#8c909e"}},label:{color:"#ffffff"},line:{color:"#8c909e"}},pie:{overlay:{gradient:"sharpBevel"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#212a33"}},bubble:{opacity:.6},scatter:{markers:{background:"#212a33"}},scatterLine:{markers:{background:"#212a33"}},area:{opacity:.3},candlestick:{downColor:"#757d87",line:{color:"#ea9d06"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:l,opacity:.2}}},waterfall:{line:{color:"#8c909e"}},horizontalWaterfall:{line:{color:"#8c909e"}},ohlc:{line:{color:"#ea9d06"}}},chartArea:{background:"#212a33"},seriesColors:["#ffca08","#ff710f","#ed2e24","#ff9f03","#e13c02","#a00201"],axisDefaults:{line:{color:"#8c909e"},minorTicks:{color:"#8c909e"},majorTicks:{color:"#8c909e"},labels:{color:"#ffffff"},majorGridLines:{color:"#3e424d"},minorGridLines:{color:"#2f3640"},title:{color:"#ffffff"},crosshair:{color:"#8c909e"},notes:{icon:{background:"transparent",border:{color:"#8c909e"}},label:{color:"#ffffff"},line:{color:"#8c909e"}}}},gauge:{pointer:{color:"#f4af03"},scale:{rangePlaceholderColor:"#2f3640",labels:{color:l},minorTicks:{color:"#8c909e"},majorTicks:{color:"#8c909e"},line:{color:"#8c909e"}}},diagram:{shapeDefaults:{fill:{color:"#f3ae03"},connectorDefaults:{fill:{color:l},stroke:{color:"#414550"},hover:{fill:{color:"#414550"},stroke:{color:l}}},content:{color:l}},editable:{resize:{handles:{fill:{color:"#414550"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:l}}}},rotate:{thumb:{stroke:{color:l},fill:{color:l}}}},selectable:{stroke:{color:l}},connectionDefaults:{stroke:{color:l},content:{color:l},selection:{handles:{fill:{color:"#414550"},stroke:{color:l}}}}},treeMap:{colors:[["#ffca08","#4e4b2b"],["#ff710f","#4e392d"],["#ed2e24","#4b2c31"],["#ff9f03","#4e422a"],["#e13c02","#482e2a"],["#a00201","#3b232a"]]}}),f("uniform",{chart:{title:{color:"#686868"},legend:{labels:{color:"#686868"},inactiveItems:{labels:{color:"#B6B6B6"},markers:{color:"#B6B6B6"}}},seriesDefaults:{labels:{color:"#686868"},errorBars:{color:"#686868"},notes:{icon:{background:"transparent",border:{color:"#9e9e9e"}},label:{color:"#686868"},line:{color:"#9e9e9e"}},pie:{overlay:{gradient:"sharpBevel"}},donut:{overlay:{gradient:"sharpGlass"}},line:{markers:{background:"#ffffff"}},bubble:{opacity:.6},scatter:{markers:{background:"#ffffff"}},scatterLine:{markers:{background:"#ffffff"}},area:{opacity:.3},candlestick:{downColor:"#cccccc",line:{color:"#cccccc"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:"#cccccc",opacity:.2}}},waterfall:{line:{color:"#9e9e9e"}},horizontalWaterfall:{line:{color:"#9e9e9e"}},ohlc:{line:{color:"#cccccc"}}},chartArea:{background:"#ffffff"},seriesColors:["#527aa3","#6f91b3","#8ca7c2","#a8bdd1","#c5d3e0","#e2e9f0"],axisDefaults:{line:{color:"#9e9e9e"},minorTicks:{color:"#aaaaaa"},majorTicks:{color:"#888888"},labels:{color:"#686868"},majorGridLines:{color:"#dadada"},minorGridLines:{color:"#e7e7e7"},title:{color:"#686868"},crosshair:{color:"#9e9e9e"},notes:{icon:{background:"transparent",border:{color:"#9e9e9e"}},label:{color:"#686868"},line:{color:"#9e9e9e"}}}},gauge:{pointer:{color:"#527aa3"},scale:{rangePlaceholderColor:"#e7e7e7",labels:{color:"#686868"},minorTicks:{color:"#aaaaaa"},majorTicks:{color:"#888888"},line:{color:"#9e9e9e"}}},diagram:{shapeDefaults:{fill:{color:"#d1d1d1"},connectorDefaults:{fill:{color:"#686868"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#686868"}}},content:{color:"#686868"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#686868"},hover:{fill:{color:"#686868"},stroke:{color:"#686868"}}}},rotate:{thumb:{stroke:{color:"#686868"},fill:{color:"#686868"}}}},selectable:{stroke:{color:"#686868"}},connectionDefaults:{stroke:{color:"#686868"},content:{color:"#686868"},selection:{handles:{fill:{color:l},stroke:{color:"#686868"}}}}},treeMap:{colors:[["#527aa3","#d0d8e1"],["#6f91b3","#d6dde4"],["#8ca7c2","#dce1e7"],["#a8bdd1","#e2e6ea"],["#c5d3e0","#e7eaed"],["#e2e9f0","#edeff0"]]}}),f("bootstrap",{chart:{title:{color:"#333333"},legend:{labels:{color:"#333333"},inactiveItems:{labels:{color:"#999999"},markers:{color:"#9A9A9A"}}},seriesDefaults:{labels:{color:"#333333"},overlay:{gradient:"none"},errorBars:{color:"#343434"},notes:{icon:{background:"#000000",border:{color:"#000000"}},label:{color:"#333333"},line:{color:"#000000"}},pie:{overlay:{gradient:"none"}},donut:{overlay:{gradient:"none"}},line:{markers:{background:"#ffffff"}},bubble:{opacity:.6},scatter:{markers:{background:"#ffffff"}},scatterLine:{markers:{background:"#ffffff"}},area:{opacity:.8},candlestick:{downColor:"#d0d0d0",line:{color:"#333333"},border:{_brightness:1.5,opacity:1},highlight:{border:{color:"#b8b8b8",opacity:.2}}},waterfall:{line:{color:"#cccccc"}},horizontalWaterfall:{line:{color:"#cccccc"}},ohlc:{line:{color:"#333333"}}},chartArea:{background:"#ffffff"},seriesColors:["#428bca","#5bc0de","#5cb85c","#f2b661","#e67d4a","#da3b36"],axisDefaults:{line:{color:"#cccccc"},minorTicks:{color:"#ebebeb"},majorTicks:{color:"#cccccc"},labels:{color:"#333333"},majorGridLines:{color:"#cccccc"},minorGridLines:{color:"#ebebeb"},title:{color:"#333333"},crosshair:{
color:"#000000"},notes:{icon:{background:"#000000",border:{color:"#000000"}},label:{color:"#ffffff"},line:{color:"#000000"}}}},gauge:{pointer:{color:"#428bca"},scale:{rangePlaceholderColor:"#cccccc",labels:{color:"#333333"},minorTicks:{color:"#ebebeb"},majorTicks:{color:"#cccccc"},line:{color:"#cccccc"}}},diagram:{shapeDefaults:{fill:{color:"#428bca"},connectorDefaults:{fill:{color:"#333333"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#333333"}}},content:{color:"#333333"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#333333"},hover:{fill:{color:"#333333"},stroke:{color:"#333333"}}}},rotate:{thumb:{stroke:{color:"#333333"},fill:{color:"#333333"}}}},selectable:{stroke:{color:"#333333"}},connectionDefaults:{stroke:{color:"#c4c4c4"},content:{color:"#333333"},selection:{handles:{fill:{color:l},stroke:{color:"#333333"}},stroke:{color:"#333333"}}}},treeMap:{colors:[["#428bca","#d1e0ec"],["#5bc0de","#d6eaf0"],["#5cb85c","#d6e9d6"],["#5cb85c","#f4e8d7"],["#e67d4a","#f2ddd3"],["#da3b36","#f0d0cf"]]}}),f("flat",{chart:{title:{color:"#4c5356"},legend:{labels:{color:"#4c5356"},inactiveItems:{labels:{color:"#CBCBCB"},markers:{color:"#CBCBCB"}}},seriesDefaults:{labels:{color:"#4c5356"},errorBars:{color:"#4c5356"},notes:{icon:{background:"transparent",border:{color:"#cdcdcd"}},label:{color:"#4c5356"},line:{color:"#cdcdcd"}},candlestick:{downColor:"#c7c7c7",line:{color:"#787878"}},area:{opacity:.9},waterfall:{line:{color:"#cdcdcd"}},horizontalWaterfall:{line:{color:"#cdcdcd"}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:["#10c4b2","#ff7663","#ffb74f","#a2df53","#1c9ec4","#ff63a5","#1cc47b"],axisDefaults:{line:{color:"#cdcdcd"},labels:{color:"#4c5356"},minorGridLines:{color:"#cdcdcd"},majorGridLines:{color:"#cdcdcd"},title:{color:"#4c5356"},crosshair:{color:"#cdcdcd"},notes:{icon:{background:"transparent",border:{color:"#cdcdcd"}},label:{color:"#4c5356"},line:{color:"#cdcdcd"}}}},gauge:{pointer:{color:"#10c4b2"},scale:{rangePlaceholderColor:"#cdcdcd",labels:{color:"#4c5356"},minorTicks:{color:"#4c5356"},majorTicks:{color:"#4c5356"},line:{color:"#4c5356"}}},diagram:{shapeDefaults:{fill:{color:"#10c4b2"},connectorDefaults:{fill:{color:"#363940"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#363940"}}},content:{color:"#4c5356"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#363940"},hover:{fill:{color:"#363940"},stroke:{color:"#363940"}}}},rotate:{thumb:{stroke:{color:"#363940"},fill:{color:"#363940"}}}},selectable:{stroke:{color:"#363940"}},connectionDefaults:{stroke:{color:"#cdcdcd"},content:{color:"#4c5356"},selection:{handles:{fill:{color:l},stroke:{color:"#363940"}},stroke:{color:"#363940"}}}},treeMap:{colors:[["#10c4b2","#cff3f0"],["#ff7663","#ffe4e0"],["#ffb74f","#fff1dc"],["#a2df53","#ecf9dd"],["#1c9ec4","#d2ecf3"],["#ff63a5","#ffe0ed"],["#1cc47b","#d2f3e5"]]}}),f("material",{chart:{title:{color:"#444444"},legend:{labels:{color:"#444444"},inactiveItems:{labels:{color:"#CBCBCB"},markers:{color:"#CBCBCB"}}},seriesDefaults:{labels:{color:"#444444"},errorBars:{color:"#444444"},notes:{icon:{background:"transparent",border:{color:"#e5e5e5"}},label:{color:"#444444"},line:{color:"#e5e5e5"}},candlestick:{downColor:"#c7c7c7",line:{color:"#787878"}},area:{opacity:.9},waterfall:{line:{color:"#e5e5e5"}},horizontalWaterfall:{line:{color:"#e5e5e5"}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#ff9800","#ff5722"],axisDefaults:{line:{color:"#e5e5e5"},labels:{color:"#444444"},minorGridLines:{color:"#e5e5e5"},majorGridLines:{color:"#e5e5e5"},title:{color:"#444444"},crosshair:{color:"#7f7f7f"},notes:{icon:{background:"transparent",border:{color:"#e5e5e5"}},label:{color:"#444444"},line:{color:"#e5e5e5"}}}},gauge:{pointer:{color:"#3f51b5"},scale:{rangePlaceholderColor:"#e5e5e5",labels:{color:"#444444"},minorTicks:{color:"#444444"},majorTicks:{color:"#444444"},line:{color:"#444444"}}},diagram:{shapeDefaults:{fill:{color:"#3f51b5"},connectorDefaults:{fill:{color:"#7f7f7f"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#7f7f7f"}}},content:{color:"#444444"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#444444"},hover:{fill:{color:"#444444"},stroke:{color:"#444444"}}}},rotate:{thumb:{stroke:{color:"#444444"},fill:{color:"#444444"}}}},selectable:{stroke:{color:"#444444"}},connectionDefaults:{stroke:{color:"#7f7f7f"},content:{color:"#444444"},selection:{handles:{fill:{color:l},stroke:{color:"#444444"}},stroke:{color:"#444444"}}}},treeMap:{colors:[["#3f51b5","#cff3f0"],["#03a9f4","#e5f6fe"],["#4caf50","#edf7ed"],["#f9ce1d","#fefae8"],["#ff9800","#fff4e5"],["#ff5722","#ffeee8"]]}}),f("materialblack",{chart:{title:{color:"#fff"},legend:{labels:{color:"#fff"},inactiveItems:{labels:{color:"#CBCBCB"},markers:{color:"#CBCBCB"}}},seriesDefaults:{labels:{color:"#fff"},errorBars:{color:"#fff"},notes:{icon:{background:"transparent",border:{color:"#e5e5e5"}},label:{color:"#fff"},line:{color:"#e5e5e5"}},candlestick:{downColor:"#c7c7c7",line:{color:"#787878"}},area:{opacity:.9},waterfall:{line:{color:"#4d4d4d"}},horizontalWaterfall:{line:{color:"#4d4d4d"}},overlay:{gradient:"none"},border:{_brightness:1}},chartArea:{background:"#1c1c1c"},seriesColors:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#ff9800","#ff5722"],axisDefaults:{line:{color:"#4d4d4d"},labels:{color:"#fff"},minorGridLines:{color:"#4d4d4d"},majorGridLines:{color:"#4d4d4d"},title:{color:"#fff"},crosshair:{color:"#7f7f7f"},notes:{icon:{background:"transparent",border:{color:"#4d4d4d"}},label:{color:"#fff"},line:{color:"#4d4d4d"}}}},gauge:{pointer:{color:"#3f51b5"},scale:{rangePlaceholderColor:"#4d4d4d",labels:{color:"#fff"},minorTicks:{color:"#fff"},majorTicks:{color:"#fff"},line:{color:"#fff"}}},diagram:{shapeDefaults:{fill:{color:"#3f51b5"},connectorDefaults:{fill:{color:"#7f7f7f"},stroke:{color:l},hover:{fill:{color:l},stroke:{color:"#7f7f7f"}}},content:{color:"#fff"}},editable:{resize:{handles:{fill:{color:l},stroke:{color:"#fff"},hover:{fill:{color:"#fff"},stroke:{color:"#fff"}}}},rotate:{thumb:{stroke:{color:"#fff"},fill:{color:"#fff"}}}},selectable:{stroke:{color:"#fff"}},connectionDefaults:{stroke:{color:"#7f7f7f"},content:{color:"#fff"},selection:{handles:{fill:{color:l},stroke:{color:"#fff"}},stroke:{color:"#fff"}}}},treeMap:{colors:[["#3f51b5","#cff3f0"],["#03a9f4","#e5f6fe"],["#4caf50","#edf7ed"],["#f9ce1d","#fefae8"],["#ff9800","#fff4e5"],["#ff5722","#ffeee8"]]}}),function(){function t(){return{icon:{background:"#007cc0",border:{color:"#007cc0"}},label:{color:"#ffffff"},line:{color:r}}}var i="#333333",n="#7f7f7f",o="#bdbdbd",r="#c8c8c8",s="#dddddd",a=["#008fd3","#99d101","#f39b02","#f05662","#c03c53","#acacac"],h=["#cbe8f5","#eaf5cb","#fceacc","#fbdcdf","#f2d7dc","#eeeeee"],c=a[0],u=l;f("fiori",{chart:{title:{color:i},legend:{labels:{color:i},inactiveItems:{labels:{color:n},markers:{color:n}}},seriesDefaults:{labels:{color:i},errorBars:{color:i},notes:t(),candlestick:{downColor:r,line:{color:o}},area:{opacity:.8},waterfall:{line:{color:r}},horizontalWaterfall:{line:{color:r}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:a,axisDefaults:{line:{color:r},labels:{color:i},minorGridLines:{color:s},majorGridLines:{color:r},title:{color:i},crosshair:{color:n},notes:t()}},gauge:{pointer:{color:c},scale:{rangePlaceholderColor:r,labels:{color:i},minorTicks:{color:i},majorTicks:{color:i},line:{color:i}}},diagram:{shapeDefaults:{fill:{color:c},connectorDefaults:{fill:{color:i},stroke:{color:u},hover:{fill:{color:u},stroke:{color:i}}},content:{color:i}},editable:{resize:{handles:{fill:{color:u},stroke:{color:o},hover:{fill:{color:o},stroke:{color:o}}}},rotate:{thumb:{stroke:{color:o},fill:{color:o}}}},selectable:{stroke:{color:o}},connectionDefaults:{stroke:{color:o},content:{color:o},selection:{handles:{fill:{color:u},stroke:{color:o}},stroke:{color:o}}}},treeMap:{colors:e(a,h)}})}(),function(){function t(){return{icon:{background:"#00b0ff",border:{color:"#00b0ff"}},label:{color:"#ffffff"},line:{color:r}}}var i="#4e4e4e",n="#7f7f7f",o="#bdbdbd",r="#c8c8c8",s="#e5e5e5",a=["#0072c6","#5db2ff","#008a17","#82ba00","#ff8f32","#ac193d"],h=["#cbe2f3","#deeffe","#cbe7d0","#e5f0cb","#fee8d5","#eed0d7"],c=a[0],u=l;f("office365",{chart:{title:{color:i},legend:{labels:{color:i},inactiveItems:{labels:{color:n},markers:{color:n}}},seriesDefaults:{labels:{color:i},errorBars:{color:i},notes:t(),candlestick:{downColor:r,line:{color:o}},area:{opacity:.8},waterfall:{line:{color:r}},horizontalWaterfall:{line:{color:r}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:a,axisDefaults:{line:{color:r},labels:{color:i},minorGridLines:{color:s},majorGridLines:{color:r},title:{color:i},crosshair:{color:n},notes:t()}},gauge:{pointer:{color:c},scale:{rangePlaceholderColor:r,labels:{color:i},minorTicks:{color:i},majorTicks:{color:i},line:{color:i}}},diagram:{shapeDefaults:{fill:{color:c},connectorDefaults:{fill:{color:i},stroke:{color:u},hover:{fill:{color:u},stroke:{color:i}}},content:{color:i}},editable:{resize:{handles:{fill:{color:u},stroke:{color:o},hover:{fill:{color:o},stroke:{color:o}}}},rotate:{thumb:{stroke:{color:o},fill:{color:o}}}},selectable:{stroke:{color:o}},connectionDefaults:{stroke:{color:o},content:{color:o},selection:{handles:{fill:{color:u},stroke:{color:o}},stroke:{color:o}}}},treeMap:{colors:e(a,h)}})}(),function(){function t(){return{icon:{background:"#007cc0",border:{color:"#007cc0"}},label:{color:"#ffffff"},line:{color:r}}}var i="#32364c",n="#7f7f7f",o="#bdbdbd",r="#dfe0e1",s="#dfe0e1",a=["#ff4350","#ff9ea5","#00acc1","#80deea","#ffbf46","#ffd78c"],h=["#ffd9dc","#ffeced","#cceef3","#e6f8fb","#fff2da","#fff7e8"],c=a[0],u=l;f("nova",{chart:{title:{color:i},legend:{labels:{color:i},inactiveItems:{labels:{color:n},markers:{color:n}}},seriesDefaults:{labels:{color:i},errorBars:{color:i},notes:t(),candlestick:{downColor:r,line:{color:o}},area:{opacity:.8},waterfall:{line:{color:r}},horizontalWaterfall:{line:{color:r}},overlay:{gradient:"none"},border:{_brightness:1}},seriesColors:a,axisDefaults:{line:{color:r},labels:{color:i},minorGridLines:{color:s},majorGridLines:{color:r},title:{color:i},crosshair:{color:i},notes:t()}},gauge:{pointer:{color:c},scale:{rangePlaceholderColor:r,labels:{color:i},minorTicks:{color:i},majorTicks:{color:i},line:{color:i}}},diagram:{shapeDefaults:{fill:{color:c},connectorDefaults:{fill:{color:i},stroke:{color:u},hover:{fill:{color:u},stroke:{color:i}}},content:{color:i}},editable:{resize:{handles:{fill:{color:u},stroke:{color:o},hover:{fill:{color:o},stroke:{color:o}}}},rotate:{thumb:{stroke:{color:o},fill:{color:o}}}},selectable:{stroke:{color:o}},connectionDefaults:{stroke:{color:o},content:{color:o},selection:{handles:{fill:{color:u},stroke:{color:o}},stroke:{color:o}}}},treeMap:{colors:e(a,h)}})}(),function(){var t=["#ff6358","#ffd246","#78d237","#28b4c8","#2d73f5","#aa46be"],i=["#ffd9dc","#ffeced","#cceef3","#e6f8fb","#fff2da","#fff7e8"];f("default-v2",{chart:{},gauge:{},diagram:{},treeMap:{colors:e(t,i)}}),d.sass=d["default-v2"]}(),function(){var t="#292b2c",i="rgba(0, 0, 0, .04)",n=["#0275d8","#5bc0de","#5cb85c","#f0ad4e","#e67d4a","#d9534f"],o=["#ffd9dc","#ffeced","#cceef3","#e6f8fb","#fff2da","#fff7e8"],r=n[0];f("bootstrap-v4",{chart:{},gauge:{pointer:{color:r},scale:{rangePlaceholderColor:i,labels:{color:t},minorTicks:{color:t},majorTicks:{color:t},line:{color:t}}},diagram:{},treeMap:{colors:e(n,o)}})}()}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("kendo.dataviz.themes.min",["kendo.dataviz.core.min","dataviz/themes/chart-base-theme.min","dataviz/themes/auto-theme.min","dataviz/themes/themes.min"],t)}(function(){},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/chart/kendo-chart.min",["kendo.core.min","kendo.color.min","kendo.drawing.min","kendo.dataviz.core.min"],t)}(function(){!function(t){function e(t,e){for(var i=0;iKi)return null;for(l in t)!At(l,i.excluded)&&t.hasOwnProperty(l)&&(h=t[l],Mt(h)?(a=!0,n||(t[l]=Dt(h(e),r[l]))):Et(h)&&(n||(i.defaults=r[l]),i.depth++,a=o(h,e,i,n)||a,i.depth--));return a}function r(t){var e,i=t.length,n=0;for(e=0;e=0;i--)e(t[i],i-n-1)}function u(t){return i(t)===t.length}function d(t){return yt(t)&&null!==t}function f(t){var e,i,n,o=t.series;for(e=0;e0&&c0)for(i=0;i-1){for(n=t.split(".");n.length>1;)r=n.shift(),yt(o[r])||(o[r]={}),o=o[r];r=n.shift()}o[r]=i}function P(t,e,i){var n=[].concat(e instanceof jt?t.categoryAxis:t.valueAxis);Pt(n[e.axisIndex],i)}function I(t,e,i){return $t(t,function(t){return 0===i&&!t.categoryAxis||t.categoryAxis===e})}function B(){this._defaultPrevented=!0}function z(t,e){var i=(e||"").toLowerCase(),n=t.event,o="none"===i&&!(n.ctrlKey||n.shiftKey||n.altKey)||n[i+"Key"];return o}function L(t){var e,i,n={};for(e=0;eLo?st:r<0?pt:ht,i=Math.abs(o)1?r:r[0]}function W(t,e){var i,n,o,r=t.series,s=r.length,a=t.seriesDefaults,l=Pt({},t.seriesDefaults),h=e?Pt({},e.seriesDefaults):{},c=Pt({},h);for(q(l),q(c),i=0;i0?[i[0]]:[],r=1;r0&&(n=de.sum(t)/e),n},first:function(t){var e,i,n=t.length;for(e=0;e=0&&(this.valueGetter=this.createValueGetter(e,i),a=this.getStandardError(l,this.getAverage(l)),this.globalRange=function(t){return{low:t-a,high:t+a}})},createValueGetter:function(t,e){var i,n,o,r=t.data,s=fe.current,a=s.valueFields(t),l=yt(r[0])?r[0]:{};return xt(l)?(n=e?a.indexOf(e):0,i=wt("["+n+"]")):et(l)?i=wt():typeof l===it.OBJECT&&(o=s.sourceFields(t,a),i=wt(o[a.indexOf(e)])),i},getErrorRange:function(t,e){var i,n,o,r;if(!yt(e))return null;if(this.globalRange)return this.globalRange(t);if(xt(e))i=t-e[0],n=t+e[1];else if(et(o=parseFloat(e)))i=t-o,n=t+o;else{if(!(o=me.exec(e)))throw Error("Invalid ErrorBar value: "+e);r=t*(parseFloat(o[1])/100),i=t-Math.abs(r),n=t+Math.abs(r)}return{low:i,high:n}},getStandardError:function(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)},getStandardDeviation:function(t,e,i){var n,o,r=this,s=t.length,a=i?e.count-1:e.count,l=0;for(n=0;n0)return t.value/o}return t.value},plotRange:function(t,e){var i,n,o,r,s,a,l,h,c,u,d,f,p,g=this;if(void 0===e&&(e=0),i=this.categoryPoints[t.categoryIx],this.options.isStacked){for(n=this.plotValue(t),o=n>=0,r=e,s=!1,a=0;a=0&&o||u<0&&!o)&&(r+=u,n+=u,s=!0,g.options.isStacked100&&(n=Math.min(n,1)))}return s&&(r-=e),[r,n]}return d=t.series,f=this.seriesValueAxis(d),p=this.categoryAxisCrossingValue(f),[p,J.convertableToNumber(t.value)?t.value:p]},stackLimits:function(t,e){var i,n,o,r,s,a=this,l=nt,h=ot;for(i=0;i0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,o)),{low:n,high:o}},addValue:function(e,i){var n,o,r=i.categoryIx,s=i.series,a=i.seriesIx,l=this.categoryPoints[r];l||(this.categoryPoints[r]=l=[]),n=this.seriesPoints[a],n||(this.seriesPoints[a]=n=[]),o=this.createPoint(e,i),o&&(t.extend(o,i),o.owner=this,o.noteText=e.fields.noteText,yt(o.dataItem)||(o.dataItem=s.data[r]),
this.addErrorBar(o,e,r)),this.points.push(o),n.push(o),l.push(o),this.updateRange(e.valueFields,i)},evalPointOptions:function(t,e,i,n,r,s){var a,l={defaults:r._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},h=this._evalSeries[s];return yt(h)||(this._evalSeries[s]=h=o(t,{},l,!0)),a=t,h&&(a=Pt({},a),o(a,{value:e,category:i,index:n,series:r,dataItem:r.data[n]},l)),a},updateRange:function(t,e){var i=e.series.axis,n=t.value,o=this.valueAxisRanges[i];isFinite(n)&&null!==n&&(o=this.valueAxisRanges[i]=o||{min:nt,max:ot},o.min=Math.min(o.min,n),o.max=Math.max(o.max,n))},seriesValueAxis:function(t){var e=this.plotArea,i=t.axis,n=i?e.namedValueAxes[i]:e.valueAxis;if(!n)throw Error("Unable to locate value axis with name "+i);return n},reflow:function(t){var e=this,i=this.categorySlots=[],n=this.points,o=this.categoryAxis,r=0;this.traverseDataPoints(function(t,s){var a,l,h,c=s.categoryIx,u=s.series,d=e.seriesValueAxis(u),f=n[r++],p=i[c];p||(i[c]=p=e.categorySlot(o,c,d)),f&&(a=e.plotRange(f,d.startValue()),l=e.valueSlot(d,a),l?(h=e.pointSlot(p,l),f.aboveAxis=e.aboveAxis(f,d),f.stackValue=a[1],e.options.isStacked100&&(f.percentage=e.plotValue(f)),e.reflowPoint(f,h)):f.visible=!1)}),this.reflowCategories(i),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t},valueSlot:function(t,e){return t.getSlot(e[0],e[1],!this.options.clip)},limitPoints:function(){var t,e=this,i=this.categoryPoints,n=i[0].concat(It(i));for(t=0;t=i},categoryAxisCrossingValue:function(t){var e=this.categoryAxis,i=t.options,n=[].concat(i.axisCrossingValues||i.axisCrossingValue);return n[e.axisIndex||0]||0},reflowPoint:function(t,e){t.reflow(e)},reflowCategories:function(){},pointSlot:function(t,e){var i=this.options,n=i.invertAxes,o=n?e:t,r=n?t:e;return new Ct(o.x1,r.y1,o.x2,r.y2)},categorySlot:function(t,e){return t.getSlot(e)},traverseDataPoints:function(t){var e,i,n,o,s,a,l,h=this,c=this.options.series,u=r(c),d=c.length;for(e=0;e1&&(t=l.createSegment(r,i,e,t),l._addSegment(t)),r=[]);r.length>1&&(t=l.createSegment(r,i,e,t),l._addSegment(t))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(t){this._segments.push(t),t.parent=this},sortPoints:function(t){return t},seriesMissingValues:function(t){var e=t.missingValues,i=!e&&this.options.isStacked;return i?Be:e||ze},getNearestPoint:function(t,e,i){var n,o,r,s,a,l=new kt(t,e),h=this.seriesPoints[i],c=nt;for(o=0;o0&&i.visible!==!1&&this.createStroke({stroke:Pt({color:n,opacity:t.opacity,lineCap:"butt"},i)})},strokeSegments:function(){var t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t},createStrokeSegments:function(){return this.segmentsFromPoints(this.points())},stackSegments:function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)},createStackSegments:function(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()},segmentsFromPoints:function(t){return t.map(function(t){return new se.Segment(t)})},createStroke:function(t){var e=new ee(t);e.segments.push.apply(e.segments,this.strokeSegments()),this.visual.append(e)},hasStackSegment:function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length},createFill:function(t){var e,i,n=this.strokeSegments(),o=n.slice(0),r=this.hasStackSegment();r&&(e=this.stackSegments(),Vt(o,e)),i=new ee(t),i.segments.push.apply(i.segments,o),!r&&n.length>1&&this.fillToAxes(i),this.visual.append(i)},fillToAxes:function(t){var e=this.parent,i=e.options.invertAxes,n=e.seriesValueAxis(this.series),o=e.categoryAxisCrossingValue(n),r=n.getSlot(o,o,!0),s=this.strokeSegments(),a=s[0].anchor(),l=It(s).anchor(),h=i?r.x1:r.y1;i?t.lineTo(h,l.y).lineTo(h,a.y):t.lineTo(l.x,h).lineTo(a.x,h)}}),dn=un.extend({createStrokeSegments:function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},createStackSegments:function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()}}),Pt(dn.prototype,on),fn=un.extend({createStrokeSegments:function(){var t=new Ft(this.options.closed),e=this.points();return t.process(e)},createStackSegments:function(){var t,e,i=this.strokeSegments(),n=[];for(t=i.length-1;t>=0;t--)e=i[t],n.push(new se.Segment(e.anchor(),e.controlOut(),e.controlIn()));return n}}),pn=cn.extend({createSegment:function(t,e,i,n){var o,r,s,a,l=this.options.isStacked,h=(e.line||{}).style;return l&&i>0&&n&&(s=this.seriesMissingValues(e),"gap"!==s?(r=n.linePoints,o=n):r=this._gapStackPoints(t,i,h)),new(a=h===Ve?dn:h===Fe?fn:un)(t,e,i,o,r)},reflow:function(t){var e,i,n,o,r=this;if(cn.fn.reflow.call(this,t),e=this._stackPoints)for(i=0;i0&&!h);h?(i!==Ve&&s>f&&!d[l][a-1]&&r.push(u._previousSegmentPoint(s,a,a-1,l)),r.push(h),i!==Ve&&s+10&&!o;)s--,o=r[s][i];return o?o=r[s][e]:(o=this._createGapStackPoint(t),this._stackPoints.push(o)),o},_createGapStackPoint:function(t){var e=this.pointOptions({},0),i=new en(0,e);return i.categoryIx=t,i.series={},i},seriesMissingValues:function(t){return t.missingValues||Be}}),gn=tt.extend({init:function(){this.axisRanges={}},update:function(t){var e,i,n,o=this.axisRanges;for(e in t)i=t[e],n=o[e],o[e]=n=n||{min:nt,max:ot},n.min=Math.min(n.min,i.min),n.max=Math.max(n.max,i.max)},reset:function(t){this.axisRanges[t]=void 0},query:function(t){return this.axisRanges[t]}}),mn=bt.extend({init:function(t,e,i){bt.fn.init.call(this,e),this.textBox=new Lt(t,this.options,i),this.append(this.textBox)},createVisual:function(){this.textBox.options.noclip=this.options.noclip},reflow:function(t){var e=this.options,i=e.vertical,n=e.aboveAxis,o=this.children[0],r=o.options,s=o.box,a=o.options.padding,l=t;r.align=i?st:ht,r.vAlign=i?at:st,e.position===Ui?i?(r.vAlign=at,!n&&s.height()0&&n.height()>0&&this.createRect(this.visual))},createRect:function(t){var e,i,n,o,r,s=this.options,a=s.border,h=yt(a.opacity)?a.opacity:s.opacity,c=this.box.toRect();c.size.width=Math.round(c.size.width),e=this.rectVisual=ee.fromRect(c,{fill:{color:this.color,opacity:s.opacity},stroke:{color:this.getBorderColor(),width:a.width,opacity:h,dashType:a.dashType}}),i=this.box.width(),n=this.box.height(),o=s.vertical?i:n,o>vn&&(St(e),(i<1||n<1)&&(e.options.stroke.lineJoin="round")),t.append(e),l(s)&&(r=this.createGradientOverlay(e,{baseColor:this.color},Pt({end:s.vertical?void 0:[0,1]},s.overlay)),t.append(r))},createHighlight:function(t){var e=ee.fromRect(this.box.toRect(),t);return St(e)},highlightVisual:function(){return this.rectVisual},highlightVisualArgs:function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},getBorderColor:function(){var t=this.color,e=this.options.border,i=e._brightness||ke,n=e.color;return yt(n)||(n=new re(t).brightness(i).toHex()),n},tooltipAnchor:function(){var t,e,i,n,o=this,r=o.options,s=o.box,a=o.aboveAxis,l=this.owner.pane.clipBox()||s,h=ht,c=at;return r.vertical?(t=Math.min(s.x2,l.x2)+Ce,a?e=Math.max(s.y1,l.y1):(e=Math.min(s.y2,l.y2),c=lt)):(i=Math.max(s.x1,l.x1),n=Math.min(s.x2,l.x2),r.isStacked?(c=lt,a?(h=pt,t=n):t=i,e=Math.max(s.y1,l.y1)-Ce):(a?t=n+Ce:(t=i-Ce,h=pt),e=Math.max(s.y1,l.y1))),{point:new kt(t,e),align:{horizontal:h,vertical:c}}},overlapsBox:function(t){return this.box.overlaps(t)},pointData:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}}}),Pt(_n.prototype,Ji),Pt(_n.prototype,tn),_n.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}},yn=bt.extend({init:function(t){bt.fn.init.call(this,t),this.forEach=t.rtl?c:h},reflow:function(t){var e=this.options,i=e.vertical,n=e.gap,o=e.spacing,r=this.children,s=r.length,a=i?ft:dt,l=s+n+o*(s-1),h=(i?t.height():t.width())/l,c=t[a+1]+h*(n/2);this.forEach(r,function(e,i){var n=(e.box||t).clone();n[a+1]=c,n[a+2]=c+h,e.reflow(n),i0&&i.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:Dt(e.border.opacity,e.opacity)}),St(i),t.append(i),l(e)&&t.append(this.createGradientOverlay(i,{baseColor:this.color},Pt({end:e.vertical?void 0:[0,1]},e.overlay)))},createLines:function(t,e){this.drawLines(t,e,this.lines,e.line)},drawLines:function(t,e,i,n){var o,r,s;if(i)for(o={stroke:{color:n.color||this.color,opacity:Dt(n.opacity,e.opacity),width:n.width,dashType:n.dashType,lineCap:"butt"}},r=0;r{4:d} Open: {0:C} High: {1:C} Low: {2:C} Close: {3:C} "},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),Pt(bn.prototype,Ji),Pt(bn.prototype,tn),kn=Zi.extend({reflowCategories:function(t){var e,i=this.children,n=i.length;for(e=0;el.close&&(c=t.fields.downColor||r.downColor||r.color),Mt(r.color)&&(c=h.color),h.vertical=!this.options.invertAxes,i=new a(l,h),i.color=c,i},splitValue:function(t){return[t.low,t.open,t.close,t.high]},updateRange:function(t,e){var i=e.series.axis,n=this.splitValue(t),o=this.valueAxisRanges[i];o=this.valueAxisRanges[i]=o||{min:nt,max:ot},o=this.valueAxisRanges[i]={min:Math.min.apply(Math,n.concat([o.min])),max:Math.max.apply(Math,n.concat([o.max]))}},formatPointValue:function(t,e){var i=t.value;return this.chartService.format.auto(e,i.open,i.high,i.low,i.close,t.category)},animationPoints:function(){return this.points}}),Pt(kn.prototype,hn),Cn=bn.extend({init:function(t,e){bn.fn.init.call(this,t,e),this.createNote()},reflow:function(t){var e,i,n,o,r=this,s=r.options,a=r.value,l=r.owner,h=l.seriesValueAxis(s);this.boxSlot=i=h.getSlot(a.q1,a.q3),this.realBody=i,this.reflowBoxSlot(t),this.whiskerSlot=e=h.getSlot(a.lower,a.upper),this.reflowWhiskerSlot(t),n=h.getSlot(a.median),a.mean&&(o=h.getSlot(a.mean),this.meanPoints=this.calcMeanPoints(t,o)),this.whiskerPoints=this.calcWhiskerPoints(i,e),this.medianPoints=this.calcMedianPoints(t,n),this.box=e.clone().wrap(i),this.reflowNote()},reflowBoxSlot:function(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2},reflowWhiskerSlot:function(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2},calcMeanPoints:function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},calcWhiskerPoints:function(t,e){var i=e.center().x;return[[[i-5,e.y1],[i+5,e.y1],[i,e.y1],[i,t.y1]],[[i-5,e.y2],[i+5,e.y2],[i,e.y2],[i,t.y2]]]},calcMedianPoints:function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},renderOutliers:function(t){var e,i,n,o,r=this,s=this.value,a=s.outliers||[],l=3*Math.abs(s.q3-s.q1),h=[],c=t.markers||{};for(e=0;es.q1-l?t.outliers:t.extremes,n=Pt({},c.border),yt(n.color)||(n.color=yt(r.color)?r.color:new re(c.background).brightness(ke).toHex()),o=new Rt({type:c.type,width:c.size,height:c.size,rotation:c.rotation,background:c.background,border:n,opacity:c.opacity}),o.value=i,h.push(o);return this.reflowOutliers(h),h},reflowOutliers:function(t){var e,i,n,o=this,r=this.owner.seriesValueAxis(this.options),s=this.box.center();for(e=0;e{6:d} Lower: {0:C} Q1: {1:C} Median: {2:C} Mean: {5:C} Q3: {3:C} Upper: {4:C} "},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:Ie,type:it.CROSS,background:ct,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:Ie,type:ut,background:ct,border:{width:2,opacity:1},opacity:0}}),Pt(Cn.prototype,Ji),Sn=Cn.extend({reflowBoxSlot:function(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2},reflowWhiskerSlot:function(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2},calcMeanPoints:function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},calcWhiskerPoints:function(t,e){var i=e.center().y;return[[[e.x1,i-5],[e.x1,i+5],[e.x1,i],[t.x1,i]],[[e.x2,i-5],[e.x2,i+5],[e.x2,i],[t.x2,i]]]},calcMedianPoints:function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]}}),Tn=kn.extend({addValue:function(t,e){var i,n,o=e.categoryIx,r=e.category,s=e.series,a=e.seriesIx,l=this,h=l.children,c=l.options,d=t.valueFields,f=this.splitValue(d),p=u(f),g=s.data[o],m=this.categoryPoints[o];m||(this.categoryPoints[o]=m=[]),p&&(i=this.createPoint(t,e)),n=h[o],n||(n=new yn({vertical:c.invertAxes,gap:c.gap,spacing:c.spacing,rtl:!c.invertAxes&&(this.chartService||{}).rtl}),this.append(n)),i&&(this.updateRange(d,e),n.append(i),i.categoryIx=o,i.category=r,i.series=s,i.seriesIx=a,i.owner=this,i.dataItem=g),this.points.push(i),m.push(i)},pointType:function(){return this.options.invertAxes?Sn:Cn},splitValue:function(t){return[t.lower,t.q1,t.median,t.q3,t.upper]},updateRange:function(t,e){var i=e.series.axis,n=this.valueAxisRanges[i],o=this.splitValue(t).concat(this.filterOutliers(t.outliers));yt(t.mean)&&(o=o.concat(t.mean)),n=this.valueAxisRanges[i]=n||{min:nt,max:ot},n=this.valueAxisRanges[i]={min:Math.min.apply(Math,o.concat([n.min])),max:Math.max.apply(Math,o.concat([n.max]))}},formatPointValue:function(t,e){var i=t.value;return this.chartService.format.auto(e,i.lower,i.q1,i.median,i.q3,i.upper,i.mean,t.category)},filterOutliers:function(t){var e,i,n=(t||[]).length,o=[];for(e=0;e0||t.size<0&&e.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(t.size)),Mn.fn.addValue.call(this,t,e)):(this.points.push(null),this.seriesPoints[e.seriesIx].push(null))},reflow:function(t){this.updateBubblesSize(t),Mn.fn.reflow.call(this,t)},pointType:function(){return Dn},createPoint:function(t,e){var i,n,o=e.series,r=o.data.length,s=e.pointIx*(we/r),a={delay:s,duration:we-s,type:je},l=e.color||o.color;return t.size<0&&o.negativeValues.visible&&(l=Dt(o.negativeValues.color,l)),i=Pt({labels:{animation:{delay:s,duration:we-s}}},this.pointOptions(o,e.seriesIx),{markers:{type:ut,border:o.border,opacity:o.opacity,animation:a}}),i=this.evalPointOptions(i,t,e),Mt(o.color)&&(l=i.color),i.markers.background=l,n=new Dn(t,i),n.color=l,this.append(n),n},updateBubblesSize:function(t){var e,i,n,o,r,s,a,l,h,c,u,d,f,p,g,m,v,_=this,y=this,w=y.options.series,x=Math.min(t.width(),t.height());for(e=0;e0&&e.options.set("stroke",{color:t.border.color||this.color,width:t.border.width,dashType:t.border.dashType,opacity:Dt(t.border.opacity,t.opacity)}),this.bodyVisual=e,St(e),this.visual.append(e)},createAnimation:function(){this.bodyVisual&&(this.animation=ie.create(this.bodyVisual,this.options.animation))},createHighlight:function(t){return ee.fromRect(this.box.toRect(),t)},highlightVisual:function(){return this.bodyVisual},highlightVisualArgs:function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}},formatValue:function(t){return this.owner.formatPointValue(this,t)}}),In.prototype.tooltipAnchor=_n.prototype.tooltipAnchor,Tt(In,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0} Target: {1}"}}),Pt(In.prototype,Ji),Pt(In.prototype,tn),Bn=Zi.extend({init:function(t,e){f(e),Zi.fn.init.call(this,t,e)},reflowCategories:function(t){var e,i=this.children,n=i.length;for(e=0;e0},createAnimation:function(){var t,e,i=this,n=this.points;for(this._setAnimationOptions(),t=0;t180&&(t.className="k-chart-tooltip-inverse"),this.chartService.notify(Oi,t),this.visible=!0},hide:function(){this.chartService&&this.chartService.notify(Fi),this.visible=!1},destroy:function(){delete this.chartService}}),Tt(zn,{border:{width:1},opacity:1}),Ln=zn.extend({init:function(t,e,i){zn.fn.init.call(this,t,i),this.crosshair=e,this.formatService=t.format,this.initAxisName()},initAxisName:function(){var t,e=this.crosshair.axis,i=e.plotArea;t=i.categoryAxis?e.getCategory?"categoryAxis":"valueAxis":e.options.vertical?"yAxis":"xAxis",this.axisName=t},showAt:function(t){var e=this,i=e.crosshair.axis,n=e.options,o=i[n.stickyMode?"getCategory":"getValue"](t),r=o;n.format?r=this.formatService.auto(n.format,o):i.options.type===mt&&(r=this.formatService.auto(i.options.labels.dateFormats[i.options.baseUnit],o)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:r,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},hide:function(){this.chartService.notify(Fi,{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},getAnchor:function(){var t,e,i,n=this,o=n.crosshair,r=n.options,s=r.position,a=r.padding,l=!o.axis.options.vertical,h=o.line.bbox();return l?(t=st,s===lt?(e=at,i=h.bottomLeft().translate(0,a)):(e=lt,i=h.topLeft().translate(0,-a))):(e=st,s===ht?(t=pt,i=h.topLeft().translate(-a,0)):(t=ht,i=h.topRight().translate(a,0))),{point:i,align:{horizontal:t,vertical:e}}}}),Tt(Ln,{padding:10}),Rn=bt.extend({init:function(t,e,i){bt.fn.init.call(this,i),this.axis=e,this.stickyMode=e instanceof jt;var n=this.options.tooltip;n.visible&&(this.tooltip=new Ln(t,this,Pt({},n,{stickyMode:this.stickyMode})))},showAt:function(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)},hide:function(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()},moveLine:function(){var t,e,i=this,n=i.axis,o=i.point,r=n.options.vertical,s=this.getBox(),a=r?ft:dt,l=new ae(s.x1,s.y1);t=r?new ae(s.x2,s.y1):new ae(s.x1,s.y2),o&&(this.stickyMode?(e=n.getSlot(n.pointCategoryIndex(o)),l[a]=t[a]=e.center()[a]):l[a]=t[a]=o[a]),this.box=s,this.line.moveTo(l).lineTo(t)},getBox:function(){var t,e,i,n=this.axis,o=n.pane.axes,r=o.length,s=n.options.vertical,a=n.lineBox().clone(),l=s?dt:ft;for(e=0;e=0;e--)for(i=0;i0&&(a=Math.max(a,s.width()-i.contentBox.width()));if(0!==a)for(n=0;n0)for(r=A(n),s=Math.max(o.y1-r.y1,o.y2-r.y2),d=Math.max(d,o.x1-r.x1),a=0;a0&&n.y.length>0&&(this.alignAxes(n.x,n.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(n),this.alignAxes(n.x,n.y),this.shrinkAxisWidth(t)&&this.alignAxes(n.x,n.y),this.shrinkAxisHeight(t),this.alignAxes(n.x,n.y),this.shrinkAxisHeight(t)&&this.alignAxes(n.x,n.y),this.fitAxes(t))},autoRotateAxisLabels:function(t){var e,i,n,o,r=this,s=this,a=s.panes,l=Un(a);for(i=0;i0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(a))}},reflowPaneAxes:function(t){var e,i=t.axes,n=i.length;if(n>0)for(e=0;eo.to,i.reflow(t)),n&&(n.options.aboveAxis=o.to>o.from,n.reflow(t)),this.note&&this.note.reflow(t)}}),qn.prototype.defaults=Pt({},qn.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}}),$n=xn.extend({pointType:function(){return qn},pointValue:function(t){return t.valueFields},formatPointValue:function(t,e){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(e,t.value.from,t.value.to)},plotRange:function(t){return t?[t.value.from,t.value.to]:0},updateRange:function(t,e){var i=e.series.axis,n=t.from,o=t.to,r=this.valueAxisRanges[i];null!==t&&et(n)&&et(o)&&(r=this.valueAxisRanges[i]=r||{min:nt,max:ot},r.min=Math.min(r.min,n),r.max=Math.max(r.max,n),r.min=Math.min(r.min,o),r.max=Math.max(r.max,o))},aboveAxis:function(t){var e=t.value;return e.from=0},plotRange:function(t){return[t.from,t.to]},createSegments:function(){var t,e,i,n,o,r,s,a=this,l=this.options.series,h=this.seriesPoints,c=this.segments=[];for(t=0;t0)for(this.invertAxes=At(t[0].type,[He,Ge,fi,ci,pi,si,Xe,ui]),e=0;e0)for(o=n.options.categories=n.options.categories.slice(0);s--;)o.push("");this.valueAxisRangeTracker.update(t.valueAxisRanges),Hn.fn.appendChart.call(this,t,e)},seriesPaneName:function(t){var e=this.options,i=t.axis,n=[].concat(e.valueAxis),o=$t(n,function(t){return t.name===i})[0],r=e.panes||[{}],s=(r[0]||{}).name||"default",a=(o||{}).pane||s;return a},seriesCategoryAxis:function(t){var e=t.categoryAxis,i=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!i)throw Error("Unable to locate category axis with name "+e);return i},stackableChartOptions:function(t,e){var i=t.stack,n=i&&"100%"===i.type,o=e.options.clip;return{isStacked:i,isStacked100:n,clip:o}},groupSeriesByCategoryAxis:function(t){var e,i,n,o,r,s,a=[],l={};for(e=0;e0&&c.length>0&&t.trigger(i,{element:Bt(e),originalEvent:e,category:b(h),value:b(c)})}},pointPane:function(t){var e,i,n=this.panes;for(e=0;ee.x2&&(l=e.x2-i.x),ne.y2&&(h=e.y2-i.y),o0},reflow:function(t){var e=this.options,i=t.clone();return this.hasItems()?void(e.position===yo?(this.containerCustomReflow(i),this.box=i):this.containerReflow(i)):void(this.box=i)},containerReflow:function(t){var e,i=this,n=i.options,o=i.container,r=n.position,s=n.width,a=n.height,l=r===at||r===lt?dt:ft,h=this.isVertical(),c=t.clone(),u=t.clone();r!==ht&&r!==pt||(u.y1=c.y1=0),h&&a?(u.y2=u.y1+a,u.align(c,ft,o.options.vAlign)):!h&&s&&(u.x2=u.x1+s,u.align(c,dt,o.options.align)),o.reflow(u),u=o.box,e=u.clone(),(n.offsetX||n.offsetY)&&(u.translate(n.offsetX,n.offsetY),this.container.reflow(u)),e[l+1]=t[l+1],e[l+2]=t[l+2],this.box=e},containerCustomReflow:function(t){var e=this,i=e.options,n=e.container,o=i.offsetX,r=i.offsetY,s=i.width,a=i.height,l=this.isVertical(),h=t.clone();l&&a?h.y2=h.y1+a:!l&&s&&(h.x2=h.x1+s),n.reflow(h),h=n.box,n.reflow(new Ct(o,r,o+h.width(),r+h.height()))},renderVisual:function(){this.hasItems()&&bt.fn.renderVisual.call(this)}}),Tt(wo,{position:pt,items:[],offsetX:0,offsetY:0,margin:Ot(5),padding:Ot(5),border:{color:gt,width:0},item:{cursor:_o,spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:ht,vAlign:st}}),xo=tt.extend({init:function(){this._registry=[]},register:function(t,e){this._registry.push({type:t,seriesTypes:e})},create:function(t,e,i){var n,o,r,s=this._registry,a=s[0];for(o=0;o0){a=r;break}return new a.type(n,e,i)}}),xo.current=new xo,bo=3,ko=.1,Co=tt.extend({init:function(t,e,i,n){var o=t.element;this.options=Pt({},this.options,i),this.chart=t,this.observer=n,this.chartElement=o,this.categoryAxis=e,this._dateAxis=this.categoryAxis instanceof J.DateCategoryAxis,this.initOptions(),this.options.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())},onPane:function(t){return this.categoryAxis.pane===t},createElements:function(){var t,e,i,n,o,r,s=this.options,a=this.wrapper=R("k-selector");Yt(a,{top:s.offset.top,left:s.offset.left,width:s.width,height:s.height,direction:"ltr"}),t=this.selection=R("k-selection"),this.leftMask=R("k-mask"),this.rightMask=R("k-mask"),a.appendChild(this.leftMask),a.appendChild(this.rightMask),a.appendChild(t),t.appendChild(R("k-selection-bg")),e=this.leftHandle=R("k-handle k-left-handle"),i=this.rightHandle=R("k-handle k-right-handle"),e.appendChild(R()),i.appendChild(R()),t.appendChild(e),t.appendChild(i),this.chartElement.appendChild(a),n=Yt(t,["borderLeftWidth","borderRightWidth","height"]),o=Yt(e,"height").height,r=Yt(i,"height").height,s.selection={border:{left:n.borderLeftWidth,right:n.borderRightWidth}},Yt(e,{top:(n.height-o)/2}),Yt(i,{top:(n.height-r)/2}),a.style.cssText=a.style.cssText},bindEvents:function(){if(this.options.mousewheel!==!1){this._mousewheelHandler=this._mousewheel.bind(this);var t;Qt(this.wrapper,(t={},t[Wi]=this._mousewheelHandler,t))}this._domEvents=Kt.DomEventsBuilder.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},initOptions:function(){var t,e,i,n=this,o=n.options,r=n.categoryAxis,s=r.pane.chartsBox(),a=this.chart.chartService.intl;this._dateAxis&&Pt(o,{min:Ht(a,o.min),max:Ht(a,o.max),from:Ht(a,o.from),to:Ht(a,o.to)}),t=Yt(this.chartElement,["paddingLeft","paddingTop"]),e=t.paddingLeft,i=t.paddingTop,this.options=Pt({},{width:s.width(),height:s.height()+ko,padding:{left:e,top:i},offset:{left:s.x1+e,top:s.y1+i},from:o.min,to:o.max},o)},destroy:function(){if(this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper){if(this._mousewheelHandler){var t;Zt(this.wrapper,(t={},t[Wi]=this._mousewheelHandler,t)),this._mousewheelHandler=null}this.chartElement.removeChild(this.wrapper),this.wrapper=null}},_rangeEventArgs:function(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}},_start:function(t){var e,i=this.options,n=Bt(t);!this._state&&n&&(this.chart._unsetActivePoint(),this._state={moveTarget:O(n)||n,startLocation:t.x?t.x.location:0,range:{from:this._index(i.from),to:this._index(i.to)}},e=this._rangeEventArgs({from:this._index(i.from),to:this._index(i.to)}),this.trigger(Bi,e)&&(this._state=null))},_press:function(t){var e;e=this._state?this._state.moveTarget:O(Bt(t)),e&&J.addClass(e,"k-handle-active")},_move:function(t){var e,i,n,o,r,s,a,l,h,c,u,d,f,p,g,m,v,_;this._state&&(e=this,i=e._state,n=e.options,o=e.categoryAxis,r=i.range,s=i.moveTarget,a=o.options.reverse,l=this._index(n.from),h=this._index(n.to),c=this._index(n.min),u=this._index(n.max),d=i.startLocation-t.x.location,f={from:r.from,to:r.to},p=r.to-r.from,g=Yt(this.wrapper,"width").width/(o.categoriesCount()-1),m=Math.round(d/g)*(a?-1:1),s&&(v=Xt(s,"k-left-handle"),_=Xt(s,"k-right-handle"),Xt(s,"k-selection k-selection-bg")?(r.from=Math.min(Math.max(c,l-m),u-p),r.to=Math.min(r.from+p,u)):v&&!a||_&&a?(r.from=Math.min(Math.max(c,l-m),u-1),r.to=Math.max(r.from+1,r.to)):(v&&a||_&&!a)&&(r.to=Math.min(Math.max(c+1,h-m),u),r.from=Math.min(r.to-1,r.from)),r.from===f.from&&r.to===f.to||(this.move(r.from,r.to),this.trigger(zi,this._rangeEventArgs(r)))))},_end:function(){var t,e;this._state&&(t=this._state.moveTarget,t&&J.removeClass(t,"k-handle-active"),e=this._state.range,this.set(e.from,e.to),this.trigger(Li,this._rangeEventArgs(e)),delete this._state)},_tap:function(t){var e=this,i=e.options,n=e.categoryAxis,o=this.chart._eventCoordinates(t),r=n.pointCategoryIndex(new kt(o.x,n.box.y1)),s=this._index(i.from),a=this._index(i.to),l=this._index(i.min),h=this._index(i.max),c=a-s,u=s+c/2,d={},f=3===t.event.which,p=Math.round(u-r);this._state||f||(this.chart._unsetActivePoint(),n.options.justified||p--,d.from=Math.min(Math.max(l,s-p),h-c),d.to=Math.min(d.from+c,h),this._start(t),this._state&&(this._state.range=d,this.trigger(zi,this._rangeEventArgs(d)),this._end()))},_mousewheel:function(t){var e,i=this,n=J.mousewheelDelta(t);this._start({target:this.selection}),this._state&&(e=this._state.range,t.preventDefault(),t.stopPropagation(),Math.abs(n)>1&&(n*=bo),this.options.mousewheel.reverse&&(n*=-1),this.expand(n)&&this.trigger(zi,{axis:this.categoryAxis.options,delta:n,originalEvent:t,from:this._value(e.from),to:this._value(e.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(function(){i._end()},qi))},_gesturestart:function(t){var e,i=this.options;this._state={range:{from:this._index(i.from),to:this._index(i.to)}},e=this._rangeEventArgs(this._state.range),this.trigger(Bi,e)?this._state=null:t.preventDefault()},_gestureend:function(){this._state&&(this.trigger(Li,this._rangeEventArgs(this._state.range)),delete this._state)},_gesturechange:function(t){var e=this,i=e.chart,n=e._state,o=e.options,r=e.categoryAxis,s=n.range,a=i._toModelCoordinates(t.touches[0].x.location).x,l=i._toModelCoordinates(t.touches[1].x.location).x,h=Math.min(a,l),c=Math.max(a,l);t.preventDefault(),s.from=r.pointCategoryIndex(new kt(h))||o.min,s.to=r.pointCategoryIndex(new kt(c))||o.max,this.move(s.from,s.to),this.trigger(zi,this._rangeEventArgs(s))},_index:function(t){var e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e},_value:function(t){var e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t),e>this.options.max&&(e=this.options.max)),e},_slot:function(t){var e=this.categoryAxis,i=this._index(t);return e.getSlot(i,i,!0)},move:function(t,e){var i,n,o=this.options,r=this.categoryAxis.options.reverse,s=o.offset,a=o.padding,l=o.selection.border,h=r?e:t,c=r?t:e,u="x"+(r?2:1),d=this._slot(h),f=Wt(d[u]-s.left+a.left);Yt(this.leftMask,{width:f}),Yt(this.selection,{left:f}),d=this._slot(c),i=Wt(o.width-(d[u]-s.left+a.left)),Yt(this.rightMask,{width:i}),n=o.width-i,n!==o.width&&(n+=l.right),Yt(this.rightMask,{left:n}),Yt(this.selection,{width:Math.max(o.width-(f+i)-l.right,0)})},set:function(t,e){var i=this.options,n=this._index(i.min),o=this._index(i.max),r=qt(this._index(t),n,o),s=qt(this._index(e),r+1,o);i.visible&&this.move(r,s),i.from=this._value(r),i.to=this._value(s)},expand:function(t){var e=this.options,i=this._index(e.min),n=this._index(e.max),o=e.mousewheel.zoom,r=this._index(e.from),s=this._index(e.to),a={from:r,to:s},l=Pt({},a);if(this._state&&(a=this._state.range),o!==pt&&(a.from=qt(qt(r-t,0,s-1),i,n)),o!==ht&&(a.to=qt(qt(s+t,a.from+1,n),i,n)),a.from!==l.from||a.to!==l.to)return this.set(a.from,a.to),!0},trigger:function(t,e){return(this.observer||this.chart).trigger(t,e)}}),Tt(Co,{visible:!0,mousewheel:{zoom:"both"},min:ot,max:nt}),So=zn.extend({show:function(t){var e,i;!t||!t.tooltipAnchor||this._current&&this._current===t||(e=Pt({},this.options,t.options.tooltip),i=t.tooltipAnchor(),i?(this._current=t,zn.fn.show.call(this,{point:t,anchor:i},e,t)):this.hide())},hide:function(){delete this._current,zn.fn.hide.call(this)}}),To=zn.extend({init:function(t,e){zn.fn.init.call(this,t.chartService,e),this.plotArea=t,this.formatService=t.chartService.format},showAt:function(t,e){var i,n,o,r=$t(t,function(t){var e=t.series.tooltip,i=e&&e.visible===!1;return!i});r.length>0&&(i=r[0],n=this.plotArea.categoryAxis.getSlot(i.categoryIx),
o=e?this._slotAnchor(e,n):this._defaultAnchor(i,n),this.show({anchor:o,shared:!0,points:t,category:i.category,categoryText:this.formatService.auto(this.options.categoryFormat,i.category),series:this.plotArea.series},this.options))},_slotAnchor:function(t,e){var i=this.plotArea.categoryAxis,n={horizontal:"left",vertical:"center"};return i.options.vertical||(t.x=e.center().x),{point:t,align:n}},_defaultAnchor:function(t,e){var i,n=t.owner.pane.chartsBox(),o=this.plotArea.categoryAxis.options.vertical,r=n.center(),s=e.center(),a={horizontal:"center",vertical:"center"};return i=o?new kt(r.x,s.y):new kt(s.x,r.y),{point:i,align:a}}}),Tt(To,{categoryFormat:"{0:d}"}),Ao=ie.extend({setup:function(){var t,e,i=this,n=i.element,o=i.options,r=n.bbox();r?(this.origin=o.origin,t=o.vertical?ft:dt,e=this.fromScale=new ae(1,1),e[t]=Se,n.transform(le().scale(e.x,e.y))):this.abort()},step:function(t){var e=J.interpolateValue(this.fromScale.x,1,t),i=J.interpolateValue(this.fromScale.y,1,t);this.element.transform(le().scale(e,i,this.origin))},abort:function(){ie.fn.abort.call(this),this.element.transform(null)}}),Tt(Ao,{duration:we}),ne.current.register(He,Ao),Mo=ie.extend({setup:function(){var t=this.center=this.element.bbox().center();this.element.transform(le().scale(Se,Se,t))},step:function(t){this.element.transform(le().scale(t,t,this.center))}}),Tt(Mo,{easing:"easeOutElastic"}),ne.current.register(je,Mo),Do=ie.extend({setup:function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},step:function(t){this.element.opacity(t*this.fadeTo)}}),Tt(Do,{duration:200,easing:"linear"}),ne.current.register(xe,Do),Eo=ie.extend({setup:function(){this.element.transform(le().scale(Se,Se,this.options.center))},step:function(t){this.element.transform(le().scale(t,t,this.options.center))}}),Tt(Eo,{easing:"easeOutElastic",duration:we}),ne.current.register(Ze,Eo),Po=Mn.extend({render:function(){Mn.fn.render.call(this),this.renderSegments()},createSegment:function(t,e,i){var n,o=e.style;return new(n=o===Fe?sn:nn)(t,e,i)},animationPoints:function(){var t=Mn.fn.animationPoints.call(this);return t.concat(this._segments)},createMissingValue:function(t,e){if(e===Be){var i={x:t.x,y:t.y};return d(i.x)||(i.x=0),d(i.y)||(i.y=0),i}}}),Pt(Po.prototype,an),Io=Hn.extend({initFields:function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new gn,this.yAxisRangeTracker=new gn},render:function(t){var e,i,n,o,r,s=this;for(void 0===t&&(t=this.panes),e=this.groupSeriesByPane(),i=0;i0&&this.appendChart(new Mn(this,{series:t,clip:e.options.clip}),e)},createScatterLineChart:function(t,e){t.length>0&&this.appendChart(new Po(this,{series:t,clip:e.options.clip}),e)},createBubbleChart:function(t,e){t.length>0&&this.appendChart(new En(this,{series:t,clip:e.options.clip}),e)},createXYAxis:function(t,e,i){var n,o,r,s,a,l,h,c,u=t.name,d=e?this.namedYAxes:this.namedXAxes,f=e?this.yAxisRangeTracker:this.xAxisRangeTracker,p=Pt({reverse:!e&&this.chartService.rtl},t,{vertical:e}),g=_(p.type,Ni),m=f.query(),v=g?{min:.1,max:1}:{min:0,max:1},y=f.query(u)||m||v,w=[p.min,p.max],x=this.series;for(n=0;n0&&d.length>0&&t.trigger(i,{element:Bt(e),originalEvent:e,x:b(u),y:b(d)})},updateAxisOptions:function(t,e){var i=t.options.vertical,n=this.groupAxes(this.panes),o=(i?n.y:n.x).indexOf(t);F(this.options,o,i,e),F(this.originalOptions,o,i,e)}}),Tt(Io,{xAxis:{},yAxis:{}}),Pt(Io.prototype,jn),Bo=bt.extend({init:function(t,e,i){bt.fn.init.call(this,i),this.value=t,this.sector=e},render:function(){var t,e,i,n,o=this.options.labels,r=this.owner.chartService,s=this.value;this._rendered||this.visible===!1||(this._rendered=!0,t=zt(o),e=this.pointData(),t?s=t(e):o.format&&(s=r.format.auto(o.format,s)),o.visible&&(s||0===s)&&(o.position===st||o.position===Ui?(o.color||(i=new re(this.options.color).percBrightness(),o.color=i>180?gt:ct),o.background||(o.background=this.options.color)):(n=r.theme.seriesDefaults.labels,o.color=o.color||n.color,o.background=o.background||n.background),this.label=new Lt(s,Pt({},o,{align:st,vAlign:"",animation:{type:xe,delay:this.animationDelay}}),e),this.append(this.label)))},reflow:function(t){this.render(),this.box=t,this.reflowLabel()},reflowLabel:function(){var t,e,i,n,o=this,r=o.options.labels,s=o.label,a=this.sector.clone(),l=r.distance,h=a.middle();s&&(t=s.box.height(),e=s.box.width(),r.position===st?(a.radius=Math.abs((a.radius-t)/2)+t,i=a.point(h),s.reflow(new Ct(i.x,i.y-t/2,i.x,i.y))):r.position===Ui?(a.radius=a.radius-t/2,i=a.point(h),s.reflow(new Ct(i.x,i.y-t/2,i.x,i.y))):(i=a.clone().expand(l).point(h),i.x>=a.center.x?(n=i.x+e,s.orientation=pt):(n=i.x-e,s.orientation=ht),s.reflow(new Ct(n,i.y-t,i.x,i.y))))},createVisual:function(){var t,e,i=this,n=this,o=n.sector,r=n.options;bt.fn.createVisual.call(this),this.value&&(r.visual?(t=(o.startAngle+180)%360,e=r.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new ae(o.center.x,o.center.y),radius:o.radius,innerRadius:o.innerRadius,startAngle:t,endAngle:t+o.angle,options:r,sender:this.getSender(),createVisual:function(){var t=new oe;return i.createSegmentVisual(t),t}}),e&&this.visual.append(e)):this.createSegmentVisual(this.visual))},createSegmentVisual:function(t){var e=this,i=e.sector,n=e.options,o=n.border||{},r=o.width>0?{stroke:{color:o.color,width:o.width,opacity:o.opacity,dashType:o.dashType}}:{},s=n.color,a={color:s,opacity:n.opacity},h=this.createSegment(i,Pt({fill:a,stroke:{opacity:n.opacity},zIndex:n.zIndex},r));t.append(h),l(n)&&t.append(this.createGradientOverlay(h,{baseColor:s,fallbackFill:a},Pt({center:[i.center.x,i.center.y],innerRadius:i.innerRadius,radius:i.radius,userSpace:!0},n.overlay)))},createSegment:function(t,e){return e.singleSegment?new te.Circle(new se.Circle(new ae(t.center.x,t.center.y),t.radius),e):J.ShapeBuilder.current.createRing(t,e)},createAnimation:function(){var t=this,e=t.options,i=t.sector.center;Pt(e,{animation:{center:[i.x,i.y],delay:this.animationDelay}}),bt.fn.createAnimation.call(this)},createHighlight:function(t){var e=this.options.highlight||{},i=e.border||{};return this.createSegment(this.sector,Pt({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:i.opacity,width:i.width,color:i.color}}))},highlightVisual:function(){return this.visual.children[0]},highlightVisualArgs:function(){var t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new ae(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},tooltipAnchor:function(){var t=this.sector.clone().expand(Ce),e=t.middle(),i=t.point(e);return{point:i,align:V(e+180)}},formatValue:function(t){return this.owner.formatPointValue(this,t)},pointData:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}}}),zo=Wt(J.rad(30),vt),Lo=Wt(J.rad(60),vt),Tt(Bo,{color:ct,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:it.DEFAULT_FONT,margin:Ot(.5),align:ut,zIndex:1,position:Gi},animation:{type:Ze},highlight:{visible:!0,border:{width:1}},visible:!0}),Pt(Bo.prototype,Ji),Ro={createLegendItem:function(t,e,i){var n,o,r,s,a,l=this.options.legend||{},h=l.labels||{},c=l.inactiveItems||{},u=c.labels||{};i&&i.visibleInLegend!==!1&&(n=i.visible!==!1,o=n?zt(h):zt(u)||zt(h),r=i.category,o&&(r=o({text:r,series:i.series,dataItem:i.dataItem,percentage:i.percentage,value:t})),n?(s={},a=e.color):(s={color:u.color,font:u.font},a=(c.markers||{}).color),d(r)&&""!==r&&this.legendItems.push({active:n,pointIndex:i.index,text:r,series:i.series,markerColor:a,labels:s}))}},Oo=70,Fo=bt.extend({init:function(t,e){bt.fn.init.call(this,e),this.plotArea=t,this.chartService=t.chartService,this.points=[],this.legendItems=[],this.render()},render:function(){this.traverseDataPoints(this.addValue.bind(this))},traverseDataPoints:function(t){var e,i,n,o,r,s,a,l,h,c,u,d,f,p,g,m,_,y,w,x,b=this,k=this,C=k.options,S=k.plotArea.options.seriesColors;for(void 0===S&&(S=[]),e=S.length,i=C.series,n=i.length,o=0;or-n?r-n:f,a.translate(h.x-l.x,h.y-l.y),p=r-f,g=new kt(p+a.x1+f,p+a.y1+f),m=0;m0&&(u.sort(this.labelComparator(!0)),this.leftLabelsReflow(u)),d.length>0&&(d.sort(this.labelComparator(!1)),this.rightLabelsReflow(d)),this.box=a},leftLabelsReflow:function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},rightLabelsReflow:function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},distanceBetweenLabels:function(t){var e,i,n=It(this.points),o=n.sector,r=t.length-1,s=o.radius+n.options.labels.distance,a=[],l=t[0].box,h=Wt(l.y1-(o.center.y-s-l.height()-l.height()/2));for(a.push(h),e=0;e0&&(i>=0||n0&&(o=Math.min(t[i],r),r-=o,t[i]-=o,t[e]+=o),r},reflowLabels:function(t,e){var i,n,o,r,s=this,a=It(this.points),l=a.sector,h=a.options.labels,c=e.length,u=h.distance,d=l.center.y-(l.radius+u)-e[0].box.height();for(t[0]+=2,n=0;ni.center.x?(u=i.center.x-i.radius-y,e.options.labels.align!==qe?u>c.x?s.lineTo(u,h.y):s.lineTo(h.x-2*y,h.y):s.lineTo(u,h.y),s.lineTo(c.x,d.y)):(f.y=d.y,s.lineTo(f.x,f.y))),s.lineTo(d.x,d.y),p._connectorLines.push(s),p.visual.append(s)))},labelComparator:function(t){var e=t?-1:1;return function(t,i){var n=(t.parent.sector.middle()+270)%360,o=(i.parent.sector.middle()+270)%360;return(n-o)*e}},hAlignLabel:function(t,e,i,n,o){var r=e.radius,s=e.center,a=s.x,l=s.y,h=Math.min(Math.abs(l-i),Math.abs(l-n));return h>r?t:a+Math.sqrt(r*r-h*h)*(o?1:-1)},pointInCircle:function(t,e,i){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)_-m?_-m:b,e=_-b,i=0,o=0;o0&&n&&(r=n.linePoints.slice(0),o=n),l===Fe?(s=new Jo(t,e,i,o,r),s.options.closed=!0):(t.push(t[0]),s=new tr(t,e,i,o,r)),s},seriesMissingValues:function(t){return t.missingValues||Be}}),ir=No.extend({init:function(t,e){No.fn.init.call(this,t,null,e)}}),Tt(ir,{overlay:{gradient:"none"},labels:{distance:10}}),nr=bt.extend({init:function(t){bt.fn.init.call(this,t),this.forEach=t.rtl?c:h},reflow:function(t){var e=this,i=e.options,n=e.children,o=i.gap,r=i.spacing,s=n.length,a=s+o+r*(s-1),l=t.angle/a,h=t.startAngle+l*(o/2);this.forEach(n,function(e){var i=t.clone();i.startAngle=h,i.angle=l,e.sector&&(i.radius=e.sector.radius),e.reflow(i),e.sector=i,h+=l+l*r})}}),Tt(nr,{gap:1,spacing:0}),or=bt.extend({reflow:function(t){var e,i,n=this,o=n.options.reverse,r=n.children,s=r.length,a=o?s-1:0,l=o?-1:1;for(this.box=new Ct,e=a;e>=0&&e1,n.isStacked100=i&&"100%"===i.type&&e.length>1,n.isStacked100&&(this._isStacked100=!0)),n},createAreaChart:function(t,e){if(0!==t.length){var i=new er(this,this.chartOptions(t));this.appendChart(i,e)}},createLineChart:function(t,e){if(0!==t.length){var i=new Zo(this,this.chartOptions(t));this.appendChart(i,e)}},createBarChart:function(t,e){var i,n,o;0!==t.length&&(i=t[0],n=this.chartOptions(t),n.gap=i.gap,n.spacing=i.spacing,o=new rr(this,n),this.appendChart(o,e),this._hasBarCharts=!0)},seriesCategoryAxis:function(){return this.categoryAxis},_dispatchEvent:function(t,e,i){var n=t._eventCoordinates(e),o=new kt(n.x,n.y),r=this.categoryAxis.getCategory(o),s=this.valueAxis.getValue(o);null!==r&&null!==s&&t.trigger(i,{element:Bt(e),category:r,value:s})},createCrosshairs:function(){}}),Pt(sr.prototype,jn,{appendChart:ho.prototype.appendChart,aggregateSeries:ho.prototype.aggregateSeries,seriesSourcePoints:ho.prototype.seriesSourcePoints}),Tt(sr,{categoryAxis:{categories:[]},valueAxis:{}}),ar=bt.extend({init:function(t,e,i){bt.fn.init.call(this,e),this.value=t,this.options.index=i.index},reflow:function(t){var e=this.points,i=this.children[0];this.box=new Ct(e[0].x,e[0].y,e[1].x,e[2].y),i&&i.reflow(new Ct(t.x1,e[0].y,t.x2,e[2].y))},createVisual:function(){var t,e=this,i=this.options;bt.fn.createVisual.call(this),t=i.visual?i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:i,sender:this.getSender(),createVisual:function(){return e.createPath()}}):this.createPath(),t&&this.visual.append(t)},createPath:function(){var t=this.options,e=t.border,i=ee.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close();return i},createHighlight:function(t){return ee.fromPoints(this.points,t)},highlightVisual:function(){return this.visual.children[0]},highlightVisualArgs:function(){var t=ee.fromPoints(this.points).close();return{options:this.options,path:t}},tooltipAnchor:function(){var t=this.box;return{point:new kt(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},formatValue:function(t){var e=this;return e.owner.formatPointValue(e,t)}}),Tt(ar,{color:ct,border:{width:1}}),Pt(ar.prototype,Ji),lr=bt.extend({init:function(t,e){bt.fn.init.call(this,e),this.plotArea=t,this.points=[],this.labels=[],this.legendItems=[],this.render()},formatPointValue:function(t,e){return this.chartService.format.auto(e,t.value)},render:function(){var t,e,i,n,o,r,s,a,l,h,c,u=this,d=this,f=d.options,p=d.plotArea.options.seriesColors;if(void 0===p&&(p=[]),t=f.series[0],e=t.data)for(i=v(t),n=i.total,o=i.points,r=0;r180?gt:ct,l.background||(l.background=s.color)),this.evalSegmentOptions(l,t,e),r=new Lt(h,Pt({vAlign:l.position},l),n),this.labels.push(r),r},labelPadding:function(){var t,e,i,n,o=this.labels,r={left:0,right:0};for(t=0;ty.percentage&&(y=m[n]);for(o=_.percentage/y.percentage*e,r=(e-o)/2,s=0,a=0;a0||e.height>0)&&(!i||e.width!==i.width||e.height!==i.height))&&(this._size=e,this._resize(e,t),this.trigger("resize",e))},_resize:function(){this._noTransitionsRedraw()},redraw:function(t){var e,i;this.applyDefaults(this.options),this.applySeriesColors(),t?(e=this._model._plotArea,i=e.findPane(t),e.redraw(i)):this._redraw()},getAxis:function(t){return e(t,this._plotArea.axes)},findAxisByName:function(t){return this.getAxis(t)},findPaneByName:function(t){var e,i=this._plotArea.panes;for(e=0;e=0&&(n=this._plotArea.pointsByCategoryIndex(i),s.showAt(n)):e&&s.show(e)},hideTooltip:function(){this._tooltip.hide()},_initSurface:function(){var t=this.surface,e=this._surfaceWrap(),i=this.options.chartArea;i.width&&J.elementSize(e,{width:i.width}),i.height&&J.elementSize(e,{height:i.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=te.Surface.create(e,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))},_surfaceWrap:function(){return this.element},_redraw:function(){var t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._model=t,this._plotArea=t._plotArea,t.renderVisual(),this.options.transitions!==!1&&t.traverse(function(t){t.animation&&t.animation.setup()}),this._initSurface(),this.surface.draw(t.visual),this.options.transitions!==!1&&t.traverse(function(t){t.animation&&t.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new co,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger(Ri),Z(this._plotArea.panes),this._navState||this._cancelDomEvents()},exportVisual:function(t){var e,i,n,o;return t&&(t.width||t.height||t.options)?(i=this.options,n=Pt({},t.options,{chartArea:{width:t.width,height:t.height}}),K(this._originalOptions,n),this.options=Pt({},this._originalOptions,n),this._initTheme(this.options,this._theme),this.bindCategories(),o=this._getModel(),o.renderVisual(),Z(o._plotArea.panes),e=o.visual,this.options=i):e=this.surface.exportVisual(),e},_sharedTooltip:function(){return this._plotArea instanceof ho&&this.options.tooltip.shared},_createPannable:function(){var t=this.options;t.pannable!==!1&&(this._pannable=new uo(this._plotArea,t.pannable))},_createZoomSelection:function(){var t=this.options.zoomable,e=(t||{}).selection;t!==!1&&e!==!1&&(this._zoomSelection=new fo(this,e))},_createMousewheelZoom:function(){var t=this.options.zoomable,e=(t||{}).mousewheel;t!==!1&&e!==!1&&(this._mousewheelZoom=new po(this,e))},_toggleDragZoomEvents:function(){var t=this.options.pannable,e=this.options.zoomable,i=(e||{}).selection,n=(e||{}).mousewheel,o=!(t||e!==!1&&i!==!1||this.requiresHandlers([Di,Ai,Mi])),r=(e===!1||n===!1)&&!this.requiresHandlers([Ei,Pi,Ii]),s=this.element;this._dragZoomEnabled&&o&&r?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||o&&r||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!o,!r)},_toggleDomEvents:function(t,e){var i=this.domEvents;i&&(i.toggleDrag&&i.toggleDrag(t),i.toggleZoom&&i.toggleZoom(e))},_createTooltip:function(){var t,e=this,i=e.options.tooltip;return t=this._sharedTooltip()?this._createSharedTooltip(i):new So(this.chartService,i)},_createSharedTooltip:function(t){return new To(this._plotArea,t)},applyDefaults:function(t,e){G(t,e),W(t,e)},applySeriesColors:function(){var t,e,i,n,o=this.options,r=o.series,s=o.seriesColors||[];for(t=0;t=0&&this.observers.splice(e,1)},requiresHandlers:function(t){var e,i=this.observers;for(e=0;e=.1&&(i=Math.round(10*i),this._gestureDistance=t.distance,n={delta:i,axisRanges:$(this._plotArea.axes),originalEvent:t},!this._zooming&&this.trigger(Ei,n)||(this._zooming||(this._zooming=!0),o=n.axisRanges=r.updateRanges(i),o&&!this.trigger(Pi,n)&&r.zoom())))},_mouseout:function(t){if(t.element){var e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}},_start:function(t){var e=this._eventCoordinates(t);!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(e)&&(this.requiresHandlers([Di,Ai,Mi])&&this._startNavigation(t,e,Di),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger(Ei,{axisRanges:$(this._plotArea.axes),originalEvent:t}))},_move:function(t){var e,i,n,o,r,s,a,l,h=this,c=h._navState,u=h._pannable;if(!this._stopChartHandlers(t)){if(u)e=u.move(t),e&&!this.trigger(Ai,{axisRanges:e,originalEvent:t})&&u.pan();else if(c){for(i={},n=c.axes,o=0;o0&&!this.trigger(xi,d)?(o.visible&&a.showAt(c,t),l.show(c),this._sharedHighlight=!0):a.hide(),this._tooltipCategoryIx=h):i&&this._sharedHighlight&&(l.hide(),a.hide(),this._sharedHighlight=!1)):this._sharedHighlight&&(l.hide(),a.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1))},hideElements:function(){var t=this._plotArea;this._mousemove.cancel(),t.hideCrosshairs(),this._unsetActivePoint()},_unsetActivePoint:function(){var t=this,e=t._tooltip,i=t._highlight;this._activePoint=null,this._hoveredPoint=null,e&&e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,i&&i.hide()},_deferRedraw:function(){this._redraw()},_clearRedrawTimeout:function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)},bindCategories:function(){var t,e,i=this,n=this.options,o=[].concat(n.categoryAxis);for(t=0;t0)for(i=x(t,n(r.categoryField,a[0])),c=i?w:n,u=0;u0?(i&&(y=X(y,function(t,e){return J.dateComparer(t[0],e[0])})),p=Q(y),t.categories=p[0]):b&&(t.categories=[])},_isBindable:function(t){var e,i,n=fe.current.valueFields(t),o=!0;for(e=0;e0;)i.shift().destroy();this._unsetActivePoint(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)}}),Cr=["data","categories"],Tt(kr,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:qe,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1}),kendo.deepExtend(kendo.dataviz,{constants:$i,Aggregates:de,AreaChart:pn,AreaSegment:un,AxisGroupRangeTracker:gn,Bar:_n,BarChart:xn,BarLabel:mn,BoxPlotChart:Tn,BoxPlot:Cn,BubbleChart:En,Bullet:In,BulletChart:Bn,CandlestickChart:kn,Candlestick:bn,CategoricalChart:Zi,CategoricalErrorBar:Qi,CategoricalPlotArea:ho,Chart:kr,ChartContainer:On,ClipAnimation:ln,ClusterLayout:yn,Crosshair:Rn,CrosshairTooltip:Ln,DefaultAggregates:Wn,DonutChart:Uo,DonutPlotArea:jo,DonutSegment:No,ErrorBarBase:Xi,ErrorRangeCalculator:_e,Highlight:co,SharedTooltip:To,Legend:wo,LegendItem:mo,LegendLayout:go,LineChart:cn,LinePoint:en,LineSegment:nn,Pane:Fn,PieAnimation:Eo,PieChart:Fo,PieChartMixin:Ro,PiePlotArea:Vo,PieSegment:Bo,PlotAreaBase:Hn,PlotAreaEventsMixin:jn,PlotAreaFactory:xo,PointEventsMixin:Ji,RangeBar:qn,RangeBarChart:$n,RangeAreaPoint:Zn,RangeAreaChart:io,ScatterChart:Mn,ScatterErrorBar:An,ScatterLineChart:Po,Selection:Co,SeriesAggregator:Gn,SeriesBinder:fe,SplineSegment:sn,SplineAreaSegment:fn,StackWrap:wn,Tooltip:So,OHLCChart:oo,OHLCPoint:no,WaterfallChart:so,WaterfallSegment:ro,XYPlotArea:Io,MousewheelZoom:po,ZoomSelection:fo,Pannable:uo,ChartAxis:he,ChartPane:ce,ChartPlotArea:ue,findAxisByName:e,anyHasZIndex:a,appendIfNotNull:g,areNumbers:u,bindSegments:v,categoriesCount:r,countNumbers:i,equalsIgnoreCase:_,evalOptions:o,filterSeriesByType:y,getDateField:w,getField:n,hasGradientOverlay:l,hasValue:d,isDateAxis:x,segmentVisible:m,singleItemOrArray:b,createOutOfRangePoints:T})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/chart/chart.min",["dataviz/chart/kendo-chart.min","kendo.data.min","kendo.dataviz.core.min","kendo.dataviz.themes.min","kendo.drawing.min","kendo.userevents.min"],t)}(function(){return function(t,e){function i(t){a.fn[t]=function(){var e=this._instance;if(e)return e[t].apply(e,arguments)}}function n(t,i){var n,o,r,s=[],a=t.groupNameTemplate,l=i.length;if(0===l)return r=A({},t),r.visibleInLegend=!1,[r];for(M(a)?(v.logToConsole("'groupNameTemplate' is obsolete and will be removed in future versions. Specify the group name template as 'series.name'"),a&&(n=R(a))):(n=R(t.name||""),0===n._slotCount&&(n=R(M(t.name)?"#= group.value #: #= series.name #":"#= group.value #"))),o=0;o=0?(n=l.data[i],n&&M(n.visible)?n.visible=!n.visible:(o=l.pointVisibility=l.pointVisibility||{},r=o[i],o[i]=!!M(r)&&!r)):(l.visible=!l.visible,this._seriesVisibility.save(l)),s._noTransitionsRedraw()},_createTooltip:function(){return new d(this.element,L({},this.options.tooltip,{rtl:this._isRtl()}))},_tooltipleave:function(){this._instance&&this._instance.hideElements()},_bindData:function(t){var e,i,o,r=this,s=r.options,a=r._sourceSeries||s.series,l=a.length,h=r.dataSource.view(),c=(r.dataSource.group()||[]).length>0,u=[],d=this._seriesVisibility;for(d.read(),e=0;e0,r=n,s=i.options,a=[].concat(s.categoryAxis);for(o&&n.length&&(r=n[0].items),t=0;t",{
useWithBlock:!1,paramName:"d"})),o.element=t(o.template(o.options)),o.move=B(o.move,o),o._mouseleave=B(o._mouseleave,o),n=v.format("[{0}='content'],[{0}='scroller']",v.attr("role")),o._mobileScroller=e.closest(n).data("kendoMobileScroller")},destroy:function(){this._clearShowTimeout(),this.element&&(this.element.off(O).remove(),this.element=null)},setOptions:function(t){this.options=A({},this.options,t)},options:{opacity:1,animation:{duration:vt},sharedTemplate:"#= categoryText # # for(var i = 0; i < points.length; i++) { ## var point = points[i]; ## if(colorMarker) { # # } ## if(nameColumn) { # #if (point.series.name) {# #: point.series.name #: #} else {# #}# # } ##= content(point) # # } #
",categoryFormat:"{0:d}"},move:function(){var t,e=this,i=e.options,n=e.element;e.anchor&&e.element&&(t=e._offset(),e.visible||n.css({top:t.top,left:t.left}),e.visible=!0,e._ensureElement(document.body),n.stop(!0,!0).show().animate({left:t.left,top:t.top},i.animation.duration))},_clearShowTimeout:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)},getAnchor:function(t){var e=this.anchor,i=e.point,n=e.align,o=i.left,r=i.top;return"center"===n.horizontal?o-=t.width/2:"right"===n.horizontal&&(o-=t.width),"center"===n.vertical?r-=t.height/2:"bottom"===n.vertical&&(r-=t.height),{x:o,y:r}},_offset:function(){var e,i,n=this,o=n._measure(),r=n.getAnchor(o),s=r.y,a=r.x,l=v.support.zoomLevel(),h=t(window),c=window.pageYOffset||document.documentElement.scrollTop||0,d=window.pageXOffset||document.documentElement.scrollLeft||0,f=(this._mobileScroller||{}).movable;return f&&1!==f.scale?(e=u.transform().scale(f.scale,f.scale,[f.x,f.y]),i=new u.Point(a,s).transform(e),a=i.x,s=i.y):(s+=n._fit(s-c,o.height,w(h)/l),a+=n._fit(a-d,o.width,y(h)/l)),{top:s,left:a}},show:function(t){this.anchor=t.anchor,this.element.css(o(t.style)),this.element.toggleClass(yt,!!t.className),this.element.toggleClass(wt,!!t.shared);var e=t.shared?this._sharedContent(t):this._pointContent(t.point);this.element.html(e),this._clearShowTimeout(),this.showTimeout=setTimeout(this.move,_t)},hide:function(){var t=this;clearTimeout(t.showTimeout),t._hideElement(),t.visible&&(t.point=null,t.visible=!1,t.index=null)},_sharedContent:function(t){var e,i,n=t.points,o=x.grep(n,function(t){return M(t.series.name)}).length,r=t.series.length>1,s=1;return o&&s++,r&&s++,e=v.template(this.options.sharedTemplate),i=e({points:n,category:t.category,categoryText:t.categoryText,content:this._pointContent,colorMarker:r,nameColumn:o,colspan:s})},_measure:function(){this._ensureElement();var t={width:y(this.element),height:w(this.element)};return t},_ensureElement:function(){this.element&&this.element.appendTo(document.body).on(O,this._mouseleave)},_mouseleave:function(e){var i=e.relatedTarget,n=this.chartElement[0];i&&i!==n&&!t.contains(n,i)&&this.trigger(ut)},_hideElement:function(){var t=this,e=this.element;e&&e.fadeOut({always:function(){t.visible||e.off(O).remove()}})},_pointContent:function(t){var e,i,n=this,o=A({},n.options,t.options.tooltip);return M(t.value)&&(e=""+t.value),o.template?(i=R(o.template),e=i({value:t.value,category:t.category,series:t.series,dataItem:t.dataItem,percentage:t.percentage,runningTotal:t.runningTotal,total:t.total,low:t.low,high:t.high,xLow:t.xLow,xHigh:t.xHigh,yLow:t.yLow,yHigh:t.yHigh})):o.format&&(e=t.formatValue(o.format)),e},_fit:function(t,e,i){var n=0;return t+e>i&&(n=i-(t+e)),t<0&&(n=-t),n}}),f=d.extend({init:function(t,e){d.fn.init.call(this,t,e),this.element.addClass("k-chart-crosshair-tooltip")},show:function(t){var e=this.element;e&&(this.anchor=t.anchor,this.element.css(t.style),this.element.html(this.content(t)),this.move())},move:function(){var t=this,e=t.element,i=t._offset();t._ensureElement(),e.css({top:i.top,left:i.left}).show()},content:function(t){var e=t.value,i=t.crosshair.options.tooltip;return i.template&&(e=R(i.template)({value:e})),e},hide:function(){this.element.hide()}}),p=_.extend({init:function(t,e){this._chart=t,this._pane=e,this.visual=e.visual,this.chartsVisual=e.chartContainer.visual,this.name=e.options.name},series:function(){var t,e=this._chart,i=e._plotArea.groupSeriesByPane(),n=i[this.name||"default"],o=[];if(n)for(t=0;t0&&(r=o(r,n.width)),t=K.fromRect(r,{stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType,lineJoin:"round",lineCap:"round"},fill:{color:e.background}})},_initSurface:function(){var t=this,e=t.options,i=t.surface,n=this._surfaceElement(),o=this._surfaceSize();h.elementSize(n,o),i&&i.options.type===e.renderAs?(this.surface.clear(),this.surface.resize()):(i&&i.destroy(),this.surface=Z.create(n,{type:e.renderAs}))},_surfaceSize:function(){var t=this.options,e=this._getSize();return t.gaugeArea&&m(e,t.gaugeArea),e},_surfaceElement:function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement},getSize:function(){return this._getSize()},_getSize:function(){var t=this.element,e=this._defaultSize(),i=t.offsetWidth,n=t.offsetHeight;return i||(i=e.width),n||(n=e.height),{width:i,height:n}},_defaultSize:function(){return{width:N,height:F}},_toggleTransitions:function(t){var e,i=this;for(this.options.transitions=t,e=0;e0&&e.visible&&(t=new tt({stroke:{color:e.color,dashType:e.dashType,width:e.width}}),t.moveTo(i.x1,i.y1).lineTo(i.x2,i.y2),n.append(t)),n},renderTicks:function(){var t=new et,e=this.options,i=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return s(t,this.getMajorTickPositions(),n,e.majorTicks),s(t,this.getMinorTickPositions(),n,m({},{skipUnit:i/e.minorUnit},e.minorTicks)),t}}),_(nt,{min:0,max:50,majorTicks:{size:15,align:U,color:f,width:V,visible:!0},minorTicks:{size:10,align:U,color:f,width:V,visible:!0},line:{width:V},labels:{position:U,padding:2},mirror:!1,_alignLines:!1}),ot=h.Class.extend({init:function(t,e){var i=t.options,n=i.min,o=i.max,r=this.options=m({},this.options,e);r.fill=r.color,this.scale=t,r.value=u(r.value)?w(r.value,n,o):n},value:function(t){var e,i,n,o=this.options,r=o.value;return 0===arguments.length?r:(e=this.scale.options,i=e.min,n=e.max,o._oldValue=u(o._oldValue)?o.value:i,o.value=w(t,i,n),void(this.elements&&this.repaint()))}}),_(ot,{color:f}),rt=ot.extend({init:function(t,e){ot.fn.init.call(this,t,e),this.options=m({track:{visible:u(e.track)}},this.options)},reflow:function(){var t,e,i,n=this,o=n.options,r=n.scale,s=r.options,a=s.mirror,l=s.vertical,h=r.lineBox(),u=o.track.size||o.size,d=o.size/2,f=c(o.margin),p=l?f[a?"left":"right"]:f[a?"bottom":"top"];p=a?-p:p,l?(i=new x(h.x1+p,h.y1,h.x1+p,h.y2),a?i.x1-=u:i.x2+=u,o.shape!==O&&(e=new x(h.x2+p,h.y1-d,h.x2+p,h.y2+d),t=e)):(i=new x(h.x1,h.y1-p,h.x2,h.y1-p),a?i.y2+=u:i.y1-=u,o.shape!==O&&(e=new x(h.x1-d,h.y1-p,h.x2+d,h.y1-p),t=e)),this.trackBox=i,this.pointerRangeBox=e,this.box=t||i.clone().pad(o.border.width)},getElementOptions:function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:u(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}},_margin:function(){var t=this,e=t.scale,i=t.options,n=e.options,o=n.mirror,r=n.vertical,s=c(i.margin),a=r?s[o?"left":"right"]:s[o?"bottom":"top"];return a}}),_(rt,{shape:O,track:{border:{width:1}},color:f,border:{width:1},opacity:1,margin:c(3),animation:{type:O},visible:!0}),st=A.extend({setup:function(){var t,e,i=this.options,n=i.margin,o=i.from,r=i.to,s=i.vertical,a=s?"x1":"y1";i.mirror===s?(o[a]-=n,r[a]-=n):(o[a]+=n,r[a]+=n),t=this.fromScale=new P(o.x1,o.y1),e=this.toScale=new P(r.x1,r.y1),0!==i.duration&&(i.duration=Math.max(t.distanceTo(e)/i.duration*1e3,1))},step:function(t){var e=b(this.fromScale.x,this.toScale.x,t),i=b(this.fromScale.y,this.toScale.y,t);this.element.transform(I().translate(e,i))}}),_(st,{easing:j,duration:z}),M.current.register(R,st),at=P,lt=T,ht=rt.extend({init:function(t,e){rt.fn.init.call(this,t,e),u(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)},pointerShape:function(){var t,e=this,i=e.scale,n=e.options.size,o=n/2,r=i.options.mirror?-1:1;return t=i.options.vertical?[new at(0,0-o),new at(0-r*n,0),new at(0,0+o)]:[new at(0-o,0),new at(0,0+r*n),new at(0+o,0)]},repaint:function(){var t=this,e=t.scale,i=t.options,n=new st(this.elements,m(i.animation,{vertical:e.options.vertical,mirror:e.options.mirror,margin:this._margin(i.margin),from:e.getSlot(i._oldValue),to:e.getSlot(i.value)}));i.animation.transitions===!1&&(n.options.duration=0),n.setup(),n.play()},render:function(){var t,e,i=this,n=i.scale,o=i.options,r=this.getElementOptions(),s=this.pointerShape(o.value);return o.animation.type=R,t=new lt({stroke:r.stroke,fill:r.fill}).moveTo(s[0]).lineTo(s[1]).lineTo(s[2]).close(),e=n.getSlot(o.value),t.transform(I().translate(e.x1,e.y1)),this.elements=t,t}}),ct=A.extend({setup:function(){var t=this.options,e=this.axis=t.vertical?d.Y:d.X,i=this.to=t.newPoints[0][e],n=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(i-n)/t.speed*1e3,1)),this._set(n)},step:function(t){var e=b(this.from,this.to,t);this._set(e)},_set:function(t){var e="set"+this.axis.toUpperCase(),i=this.options.newPoints;i[0][e](t),i[1][e](t)}}),_(ct,{easing:j,speed:z}),M.current.register(O,ct),ut=S,dt=T,ft=rt.extend({init:function(t,e){rt.fn.init.call(this,t,e),u(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)},pointerShape:function(t){var e,i,n,o=this,r=o.scale,s=o.options,a=r.options,l=a.mirror,h=a.vertical,c=l===h?-1:1,u=s.size*c,f=r.getSlot(r.options.min),p=r.getSlot(t),g=h?d.Y:d.X,m=h?d.X:d.Y,v=this._margin()*c,_=new P;return _[g]=f[g+"1"],_[m]=f[m+"1"],e=new P,e[g]=p[g+"1"],e[m]=p[m+"1"],h?(_.translate(v,0),e.translate(v,0)):(_.translate(0,v),e.translate(0,v)),i=e.clone(),n=_.clone(),h?(i.translate(u,0),n.translate(u,0)):(i.translate(0,u),n.translate(0,u)),[_,e,i,n]},repaint:function(){var t,e=this,i=e.scale,n=e.options,o=this.pointerShape(n.value),r=this.pointerPath,s=this.pointerShape(n._oldValue);r.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close(),t=new ct(r,m(n.animation,{reverse:i.options.reverse,vertical:i.options.vertical,oldPoints:[s[1],s[2]],newPoints:[o[1],o[2]]})),n.animation.transitions===!1&&(t.options.duration=0),t.setup(),t.play()},render:function(){var t,e=new ut,i=this.getElementOptions();return this.options.track.visible&&e.append(this.renderTrack()),t=this.pointerPath=new dt({stroke:i.stroke,fill:i.fill}),e.append(t),this.elements=e,e},renderTrack:function(){var t=this.options.track,e=t.border||{},i=this.trackBox.clone().pad(e.width||0);return new dt.fromRect(i.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})}}),pt=60,gt=60,mt=S,vt=J.extend({reflow:function(t){var e,i=this.pointers,n=t.origin.x,o=t.origin.y,r=new x(n,o,n+t.width(),o+t.height());for(this.scale.reflow(r),this._shrinkScaleWidth(r),e=0;e0&&(n.box.shrink(e,0),n.box.alignTo(t,"center"),n.reflow(n.box)))},_shrinkElements:function(){var t,e,i=this,n=this,o=n.scale,r=n.pointers,s=o.box.clone(),a=o.options.vertical?"y":"x",l=r[0].box;for(t=0;t0){for(t=this.options,e=t.rangeDistance,i=t.rangeSize,n=this.getRangeRadius(),this.options.labels.position===U&&(n+=i+e),o=n+i/2,r=0;r=0;e--)e%n===0&&t.splice(e,1);return t},tickAngles:function(t,e){var i,n,o=this.options,r=o.reverse,s=o.max-o.min,a=t.endAngle-t.startAngle,l=s/e,h=t.startAngle,c=a/l;for(r&&(h+=a,c=-c),i=[],n=0;n5)||c!==o&&(e=s.getPlotBox(c,t,a),0<=e&&e<=2)||u!==o&&(n=s.getPlotBox(u,t,a),0<=n&&n<=2)||(o=e>0&&n>0?2*c:e<0&&n<0?2*u:k((c+u)/2||1,p),i=s.getPlotBox(o,t,a),0<=i&&i<=2));)r=n,i>0?(u=o,n=i):(c=o,e=i)},getPlotBox:function(t,e,i){var n,o=this,r=this.scale,s=this.pointers,a=i.getRadiusX(),l=i.clone();for(l.setRadiusX(a+t).setRadiusY(a+t),r.arc=l,r.reflow(e),this.plotBbox=r.bbox,n=0;ns.width&&(l-=i-s.width)),eo&&(h-=r-o)),{left:l,top:h}}}),kendo.deepExtend(kendo.dataviz,{Gauge:J,LinearGauge:vt,LinearPointer:rt,ArrowLinearPointer:ht,BarLinearPointer:ft,LinearScale:nt,RadialGauge:Et,RadialPointer:Mt,RadialScale:bt,ArcGauge:Lt,RangePointer:zt,ArcScale:Pt})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/gauge/main.min",["dataviz/gauge/kendo-gauges.min"],t)}(function(){return function(t){function e(t){var e=u.ui.themes||{},i=t.theme||"",n=i.toLowerCase();return u.SASS_THEMES.indexOf(n)!=-1?u.autoTheme().gauge:(e[i]||e[n]||{}).gauge}function i(t){m.fn[t]=function(){return this._instance[t].apply(this._instance,arguments)}}function n(t){a.fn[t]=function(e){var i=this,n=g[t];return i._centerElement?g.drawDOM(i.element).then(function(t){return n(t,e)}):n(i.exportVisual(),e)}}var o,r,s,a,l,h=window.kendo,c=h.ui.Widget,u=h.dataviz,d=u.LinearGauge,f=u.RadialGauge,p=u.ArcGauge,g=h.drawing,m=c.extend({init:function(e,i){h.destroy(e),t(e).empty(),c.fn.init.call(this,e),this.options=h.deepExtend(this.options,i),this.wrapper=this.element,this._createInstance(),this.element.addClass("k-gauge"),h.notify(this,u.ui)},options:{theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{background:""},transitions:!0},setOptions:function(t){this._instance.setOptions(t,e(t)),this._copyFields()},redraw:function(){this._instance.redraw(),this._copyFields()},destroy:function(){c.fn.destroy.call(this),this._instance.destroy()},_createInstance:function(){var t=this._gaugeType();this._instance=new t(this.element[0],this.options,e(this.options)),this._copyFields()},_copyFields:function(){this._originalOptions=this._instance._originalOptions,this.options=this._instance.options,this.surface=this._instance.surface,this.bbox=this._instance.bbox,this.gaugeArea=this._instance.gaugeArea,this.pointers=this._instance.pointers,this.scale=this._instance.scale},_resize:function(){this._instance.resize()}}),v=["getSize","value","allValues","exportVisual"];for(o=0;o").addClass("k-arcgauge-label"),this.element.append(e)),e},_gaugeType:function(){return p}}),l=["exportSVG","exportImage","exportPDF"],o=0;o127?e.invalidCharacterError(t):e.addExtended(t.charCodeAt(0))},addExtended:function(t){var i,n,o,r=this;for(n=0;nr;)o=parseFloat((o-.1).toFixed(1));if(t=0;i--)s+=n.weightedValue(o[i],r-i,n.cCheckSumTotal);for(t=s%n.checkSumMod,s=n.weightedValue(t,1,n.kCheckSumTotal),i=r-1;i>=0;i--)s+=n.weightedValue(o[i],r-i+1,n.kCheckSumTotal);return e=s%n.checkSumMod,[t,e]},_findCharacterByValue:function(t){for(var e in this.characterMap)if(this.characterMap[e].value===t)return e},weightedValue:function(t,e,i){return(e%i||i)*t},addPattern:function(t){var e,i;for(i=0;i=0&&(i=r.substr(t.index).match(/\d{4,}/g),i&&(s=r.indexOf(i[0],t.index)));(e=t.value.charCodeAt(t.index))>=0&&n.isCode(e)&&t.index=0&&e._moves.push(e._moveFNC),f(e.shiftKey,t)>=0&&e._moves.push(e._shiftState),e._moves.push(e._moveState)},_moveFNC:function(t){if(t.fnc)return t.fnc=!1,t.previousState==this.key},_shiftState:function(t){var e=this;if(t.previousState==e.shiftKey&&(t.index+1>=t.value.length||e.encoding[e.shiftKey].is(t.value,t.index+1)))return e.encoding.addPattern(e.SHIFT),t.shifted=!0,!0},_moveState:function(){return this.encoding.addPattern(this.MOVE),!0},SHIFT:98}),r={},r.A=o.extend({key:"A",shiftKey:"B",isCode:function(t){return 0<=t&&t<96},getValue:function(t){return t<32?t+64:t-32},MOVE:101,START:103}),r.B=o.extend({key:"B",shiftKey:"A",isCode:function(t){return 32<=t&&t<128},getValue:function(t){return t-32},MOVE:100,START:104}),r.C=n.extend({key:"C",addStart:function(){this.encoding.addPattern(this.START)},is:function(t,e){var n=i(t,e,4);return(e+4<=t.length||2==t.length)&&S.test(n)},move:function(){this.encoding.addPattern(this.MOVE)},pushState:function(t){for(var e;(e=i(t.value,t.index,2))&&S.test(e)&&2==e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},getValue:function(t){return t},MOVE:99,START:105}),r.FNC4=n.extend({key:"FNC4",dependentStates:["A","B"],init:function(t,e){this.encoding=t,this._initSubStates(e)},addStart:function(t){var e=t.value.charCodeAt(0)-128,i=this._getSubState(e);this.encoding[i].addStart()},is:function(t,e){var i=t.charCodeAt(e);return this.isCode(i)},isCode:function(t){return 128<=t&&t<256},pushState:function(t){var e,i=this,n=i._initSubState(t),o=i.encoding,r=n.value.length;if(t.index+=r,r<3)for(;n.index=0&&i.subStates.push(t[e])},_getSubState:function(t){var e,i=this;for(e=0;e=0},pushState:function(t){var e,i,n,o=this,r=o.encoding,s=t.value.replace(/\s/g,""),a=RegExp("["+o.startAI+o.endAI+"]","g"),l=t.index,h={state:o.startState};for(r.addPattern(o.START);;){if(h.index=0,n=s.charAt(l)===o.startAI?2:0,e=n>0?o.getBySeparator(s,l):o.getByLength(s,l),e.ai.length)i=l+n+e.id.length+e.ai.length;else if(i=s.indexOf(o.startAI,l+1),i<0){if(l+e.ai.max+e.id.length+n=s.length)break;l=i,h.state!=o.startState&&(r[o.startState].move(h),h.state=o.startState),e.ai.length||r.addPattern(o.START)}t.index=t.value.length},validate:function(t,e){var i=e.substr(t.id.length),n=t.ai;if(!n.type&&!S.test(i))throw Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"==n.type&&!T.test(i))throw Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(n.length&&n.length!==i.length)throw Error("Application identifier "+t.id+" must be "+n.length+" characters long.");if(n.min&&n.min>i.length)throw Error("Application identifier "+t.id+" must be at least "+n.min+" characters long.");if(n.max&&n.max=0)return r[e].type;if(r[e].ranges)for(i=r[e].ranges,n=0;n=t.value.length)break;t.shifted?(i=t.state,t.state=t.previousState,t.previousState=i,t.shifted=!1):(t.previousState=t.state,t.state=n.getNextState(t,e),n[t.state].move(t))}},addStart:function(t){this[t.state].addStart(t),this.position=1},addCheckSum:function(){var t=this;t.checksum=t.checkSum%103,t.addPattern(t.checksum)},addStop:function(){this.addPattern(this.STOP)},setBaseUnit:function(){var t=this;t.baseUnit=t.width/(t.totalUnits+t.quietZoneLength)},addPattern:function(t){var e,i,n=this,o=""+n.characterMap[t];for(i=0;i=e.kCheckSumMinLength&&(t=(o+e.getWeightedSum(i,n,e.kCheckSumTotal))%e.checkSumMod,e.checksum+=t,e.addPattern(e.characterMap[t]))},getWeightedSum:function(t,e,i){var n,o=0;for(n=0;n ").css("position","relative").appendTo(this.element),n.surface=g.Surface.create(n.surfaceWrap,{type:n.options.renderAs}),n._setOptions(i),i&&_(i.value)&&n.redraw()},setOptions:function(t){this._setOptions(t),this.redraw()},redraw:function(){var t=this._getSize();this.surface.clear(),this.surface.setSize({width:t.width,height:t.height}),this.createVisual(),this.surface.draw(this.visual)},getSize:function(){return h.dimensions(this.element)},_resize:function(){this.redraw()},createVisual:function(){this.visual=this._render()},_render:function(){var t,e,i,n=this,o=n.options,r=o.value,s=o.text,a=y.getSpacing(s.margin),l=n._getSize(),h=o.border||{},c=n.encoding,u=new w(0,0,l.width,l.height).unpad(h.width).unpad(o.padding),d=u.height(),f=new g.Group;return n.contentBox=u,f.append(n._getBackground(l)),s.visible&&(i=g.util.measureText(r,{font:s.font}).height,d-=i+a.top+a.bottom),t=c.encode(r,u.width(),d),s.visible&&(e=r,o.checksum&&_(c.checksum)&&(e+=" "+c.checksum),f.append(n._getText(e))),n.barHeight=d,this._bandsGroup=this._getBands(t.pattern,t.baseUnit),f.append(this._bandsGroup),f},exportVisual:function(){return this._render()},_getSize:function(){var t=this,e=t.element,i=new m.Size(b,k);return e.width()>0&&(i.width=e.width()),e.height()>0&&(i.height=e.height()),t.options.width&&(i.width=t.options.width),t.options.height&&(i.height=t.options.height),i},value:function(t){var i=this;return _(t)?(i.options.value=t+"",i.redraw(),e):i.options.value},_getBands:function(t,e){var i,n,o,r,s,a=this,l=a.contentBox,h=l.x1,c=new g.Group;for(o=0;o255&&(t=285^t),rt[e]=t,ot[t]=e;t=2*rt[e-1]^285,rt[e]=t,rt[-1]=0}function l(){var t,e,i,n=68;for(t=2;t<=n;t++)e=st[t-1],i=[t,0],st[t]=w(e,i)}function h(t,i){var n=[],o=t.length-1;do n[o]=rt[(t[o]+i)%255],o--;while(t[o]!==e);return n}function c(t,e){return parseInt(t.charAt(e),10)}function u(t,e,i,n,o){e[t][n]=(e[t][n]<<1^o)%128,e[t][n]==mt&&(i[t]+=40)}function d(t,e,i,n,o,r){i[t][r]==n?o[t][r]++:(i[t][r]=n,o[t][r]>=5&&(e[t]+=3+o[t][r]-5),o[t][r]=1)}function f(t,e){var i=Math.floor(t/e*100),n=i%5,o=Math.abs(i-n-50),r=Math.abs(i+5-n-50),s=10*Math.min(o/5,r/5);return s}var p,g,m,v,_,y,w,x,b,k,C,S,T,A,M,D,E,P,I,B,z,L,R,O,F,V,N,H,U,j,G,W,q,$,Y=window.kendo,X=t.extend,Q=Y.drawing,K=Y.dataviz,Z=Y.ui.Widget,J=K.Box2D,tt="0000",et="numeric",it="alphanumeric",nt="byte",ot={1:0},rt={0:1},st=[[1,0],[1,25,0]],at={15:20,16:20,18:24,19:24,22:20,24:22,26:24,28:20,30:20,31:24,32:28,33:24,36:18,37:22,39:20,40:24},lt=[{L:{groups:[[1,19]],totalDataCodewords:19,errorCodewordsPerBlock:7},M:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:10},Q:{groups:[[1,13]],totalDataCodewords:13,errorCodewordsPerBlock:13},H:{groups:[[1,9]],totalDataCodewords:9,errorCodewordsPerBlock:17}},{L:{groups:[[1,34]],totalDataCodewords:34,errorCodewordsPerBlock:10},M:{groups:[[1,28]],totalDataCodewords:28,errorCodewordsPerBlock:16},Q:{groups:[[1,22]],totalDataCodewords:22,errorCodewordsPerBlock:22},H:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:28}},{L:{groups:[[1,55]],totalDataCodewords:55,errorCodewordsPerBlock:15},M:{groups:[[1,44]],totalDataCodewords:44,errorCodewordsPerBlock:26},Q:{groups:[[2,17]],totalDataCodewords:34,errorCodewordsPerBlock:18},H:{groups:[[2,13]],totalDataCodewords:26,errorCodewordsPerBlock:22}},{L:{groups:[[1,80]],totalDataCodewords:80,errorCodewordsPerBlock:20},M:{groups:[[2,32]],totalDataCodewords:64,errorCodewordsPerBlock:18},Q:{groups:[[2,24]],totalDataCodewords:48,errorCodewordsPerBlock:26},H:{groups:[[4,9]],totalDataCodewords:36,errorCodewordsPerBlock:16}},{L:{groups:[[1,108]],totalDataCodewords:108,errorCodewordsPerBlock:26},M:{groups:[[2,43]],totalDataCodewords:86,errorCodewordsPerBlock:24},Q:{groups:[[2,15],[2,16]],totalDataCodewords:62,errorCodewordsPerBlock:18},H:{groups:[[2,11],[2,12]],totalDataCodewords:46,errorCodewordsPerBlock:22}},{L:{groups:[[2,68]],totalDataCodewords:136,errorCodewordsPerBlock:18},M:{groups:[[4,27]],totalDataCodewords:108,errorCodewordsPerBlock:16},Q:{groups:[[4,19]],totalDataCodewords:76,errorCodewordsPerBlock:24},H:{groups:[[4,15]],totalDataCodewords:60,errorCodewordsPerBlock:28}},{L:{groups:[[2,78]],totalDataCodewords:156,errorCodewordsPerBlock:20},M:{groups:[[4,31]],totalDataCodewords:124,errorCodewordsPerBlock:18},Q:{groups:[[2,14],[4,15]],totalDataCodewords:88,errorCodewordsPerBlock:18},H:{groups:[[4,13],[1,14]],totalDataCodewords:66,errorCodewordsPerBlock:26}},{L:{groups:[[2,97]],totalDataCodewords:194,errorCodewordsPerBlock:24},M:{groups:[[2,38],[2,39]],totalDataCodewords:154,errorCodewordsPerBlock:22},Q:{groups:[[4,18],[2,19]],totalDataCodewords:110,errorCodewordsPerBlock:22},H:{groups:[[4,14],[2,15]],totalDataCodewords:86,errorCodewordsPerBlock:26}},{L:{groups:[[2,116]],totalDataCodewords:232,errorCodewordsPerBlock:30},M:{groups:[[3,36],[2,37]],totalDataCodewords:182,errorCodewordsPerBlock:22},Q:{groups:[[4,16],[4,17]],totalDataCodewords:132,errorCodewordsPerBlock:20},H:{groups:[[4,12],[4,13]],totalDataCodewords:100,errorCodewordsPerBlock:24}},{L:{groups:[[2,68],[2,69]],totalDataCodewords:274,errorCodewordsPerBlock:18},M:{groups:[[4,43],[1,44]],totalDataCodewords:216,errorCodewordsPerBlock:26},Q:{groups:[[6,19],[2,20]],totalDataCodewords:154,errorCodewordsPerBlock:24},H:{groups:[[6,15],[2,16]],totalDataCodewords:122,errorCodewordsPerBlock:28}},{L:{groups:[[4,81]],totalDataCodewords:324,errorCodewordsPerBlock:20},M:{groups:[[1,50],[4,51]],totalDataCodewords:254,errorCodewordsPerBlock:30},Q:{groups:[[4,22],[4,23]],totalDataCodewords:180,errorCodewordsPerBlock:28},H:{groups:[[3,12],[8,13]],totalDataCodewords:140,errorCodewordsPerBlock:24}},{L:{groups:[[2,92],[2,93]],totalDataCodewords:370,errorCodewordsPerBlock:24},M:{groups:[[6,36],[2,37]],totalDataCodewords:290,errorCodewordsPerBlock:22},Q:{groups:[[4,20],[6,21]],totalDataCodewords:206,errorCodewordsPerBlock:26},H:{groups:[[7,14],[4,15]],totalDataCodewords:158,errorCodewordsPerBlock:28}},{L:{groups:[[4,107]],totalDataCodewords:428,errorCodewordsPerBlock:26},M:{groups:[[8,37],[1,38]],totalDataCodewords:334,errorCodewordsPerBlock:22},Q:{groups:[[8,20],[4,21]],totalDataCodewords:244,errorCodewordsPerBlock:24},H:{groups:[[12,11],[4,12]],totalDataCodewords:180,errorCodewordsPerBlock:22}},{L:{groups:[[3,115],[1,116]],totalDataCodewords:461,errorCodewordsPerBlock:30},M:{groups:[[4,40],[5,41]],totalDataCodewords:365,errorCodewordsPerBlock:24},Q:{groups:[[11,16],[5,17]],totalDataCodewords:261,errorCodewordsPerBlock:20},H:{groups:[[11,12],[5,13]],totalDataCodewords:197,errorCodewordsPerBlock:24}},{L:{groups:[[5,87],[1,88]],totalDataCodewords:523,errorCodewordsPerBlock:22},M:{groups:[[5,41],[5,42]],totalDataCodewords:415,errorCodewordsPerBlock:24},Q:{groups:[[5,24],[7,25]],totalDataCodewords:295,errorCodewordsPerBlock:30},H:{groups:[[11,12],[7,13]],totalDataCodewords:223,errorCodewordsPerBlock:24}},{L:{groups:[[5,98],[1,99]],totalDataCodewords:589,errorCodewordsPerBlock:24},M:{groups:[[7,45],[3,46]],totalDataCodewords:453,errorCodewordsPerBlock:28},Q:{groups:[[15,19],[2,20]],totalDataCodewords:325,errorCodewordsPerBlock:24},H:{groups:[[3,15],[13,16]],totalDataCodewords:253,errorCodewordsPerBlock:30}},{L:{groups:[[1,107],[5,108]],totalDataCodewords:647,errorCodewordsPerBlock:28},M:{groups:[[10,46],[1,47]],totalDataCodewords:507,errorCodewordsPerBlock:28},Q:{groups:[[1,22],[15,23]],totalDataCodewords:367,errorCodewordsPerBlock:28},H:{groups:[[2,14],[17,15]],totalDataCodewords:283,errorCodewordsPerBlock:28}},{L:{groups:[[5,120],[1,121]],totalDataCodewords:721,errorCodewordsPerBlock:30},M:{groups:[[9,43],[4,44]],totalDataCodewords:563,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[1,23]],totalDataCodewords:397,errorCodewordsPerBlock:28},H:{groups:[[2,14],[19,15]],totalDataCodewords:313,errorCodewordsPerBlock:28}},{L:{groups:[[3,113],[4,114]],totalDataCodewords:795,errorCodewordsPerBlock:28},M:{groups:[[3,44],[11,45]],totalDataCodewords:627,errorCodewordsPerBlock:26},Q:{groups:[[17,21],[4,22]],totalDataCodewords:445,errorCodewordsPerBlock:26},H:{groups:[[9,13],[16,14]],totalDataCodewords:341,errorCodewordsPerBlock:26}},{L:{groups:[[3,107],[5,108]],totalDataCodewords:861,errorCodewordsPerBlock:28},M:{groups:[[3,41],[13,42]],totalDataCodewords:669,errorCodewordsPerBlock:26},Q:{groups:[[15,24],[5,25]],totalDataCodewords:485,errorCodewordsPerBlock:30},H:{groups:[[15,15],[10,16]],totalDataCodewords:385,errorCodewordsPerBlock:28}},{L:{groups:[[4,116],[4,117]],totalDataCodewords:932,errorCodewordsPerBlock:28},M:{groups:[[17,42]],totalDataCodewords:714,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[6,23]],totalDataCodewords:512,errorCodewordsPerBlock:28},H:{groups:[[19,16],[6,17]],totalDataCodewords:406,errorCodewordsPerBlock:30}},{L:{groups:[[2,111],[7,112]],totalDataCodewords:1006,errorCodewordsPerBlock:28},M:{groups:[[17,46]],totalDataCodewords:782,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[16,25]],totalDataCodewords:568,errorCodewordsPerBlock:30},H:{groups:[[34,13]],totalDataCodewords:442,errorCodewordsPerBlock:24}},{L:{groups:[[4,121],[5,122]],totalDataCodewords:1094,errorCodewordsPerBlock:30},M:{groups:[[4,47],[14,48]],totalDataCodewords:860,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[14,25]],totalDataCodewords:614,errorCodewordsPerBlock:30},H:{groups:[[16,15],[14,16]],totalDataCodewords:464,errorCodewordsPerBlock:30}},{L:{groups:[[6,117],[4,118]],totalDataCodewords:1174,errorCodewordsPerBlock:30},M:{groups:[[6,45],[14,46]],totalDataCodewords:914,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[16,25]],totalDataCodewords:664,errorCodewordsPerBlock:30},H:{groups:[[30,16],[2,17]],totalDataCodewords:514,errorCodewordsPerBlock:30}},{L:{groups:[[8,106],[4,107]],totalDataCodewords:1276,errorCodewordsPerBlock:26},M:{groups:[[8,47],[13,48]],totalDataCodewords:1e3,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[22,25]],totalDataCodewords:718,errorCodewordsPerBlock:30},H:{groups:[[22,15],[13,16]],totalDataCodewords:538,errorCodewordsPerBlock:30}},{L:{groups:[[10,114],[2,115]],totalDataCodewords:1370,errorCodewordsPerBlock:28},M:{groups:[[19,46],[4,47]],totalDataCodewords:1062,errorCodewordsPerBlock:28},Q:{groups:[[28,22],[6,23]],totalDataCodewords:754,errorCodewordsPerBlock:28},H:{groups:[[33,16],[4,17]],totalDataCodewords:596,errorCodewordsPerBlock:30}},{L:{groups:[[8,122],[4,123]],totalDataCodewords:1468,errorCodewordsPerBlock:30},M:{groups:[[22,45],[3,46]],totalDataCodewords:1128,errorCodewordsPerBlock:28},Q:{groups:[[8,23],[26,24]],totalDataCodewords:808,errorCodewordsPerBlock:30},H:{groups:[[12,15],[28,16]],totalDataCodewords:628,errorCodewordsPerBlock:30}},{L:{groups:[[3,117],[10,118]],totalDataCodewords:1531,errorCodewordsPerBlock:30},M:{groups:[[3,45],[23,46]],totalDataCodewords:1193,errorCodewordsPerBlock:28},Q:{groups:[[4,24],[31,25]],totalDataCodewords:871,errorCodewordsPerBlock:30},H:{groups:[[11,15],[31,16]],totalDataCodewords:661,errorCodewordsPerBlock:30}},{L:{groups:[[7,116],[7,117]],totalDataCodewords:1631,errorCodewordsPerBlock:30},M:{groups:[[21,45],[7,46]],totalDataCodewords:1267,errorCodewordsPerBlock:28},Q:{groups:[[1,23],[37,24]],totalDataCodewords:911,errorCodewordsPerBlock:30},H:{groups:[[19,15],[26,16]],totalDataCodewords:701,errorCodewordsPerBlock:30}},{L:{groups:[[5,115],[10,116]],totalDataCodewords:1735,errorCodewordsPerBlock:30},M:{groups:[[19,47],[10,48]],totalDataCodewords:1373,errorCodewordsPerBlock:28},Q:{groups:[[15,24],[25,25]],totalDataCodewords:985,errorCodewordsPerBlock:30},H:{groups:[[23,15],[25,16]],totalDataCodewords:745,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[3,116]],totalDataCodewords:1843,errorCodewordsPerBlock:30},M:{groups:[[2,46],[29,47]],totalDataCodewords:1455,errorCodewordsPerBlock:28},Q:{groups:[[42,24],[1,25]],totalDataCodewords:1033,errorCodewordsPerBlock:30},H:{groups:[[23,15],[28,16]],totalDataCodewords:793,errorCodewordsPerBlock:30}},{L:{groups:[[17,115]],totalDataCodewords:1955,errorCodewordsPerBlock:30},M:{groups:[[10,46],[23,47]],totalDataCodewords:1541,errorCodewordsPerBlock:28},Q:{groups:[[10,24],[35,25]],totalDataCodewords:1115,errorCodewordsPerBlock:30},H:{groups:[[19,15],[35,16]],totalDataCodewords:845,errorCodewordsPerBlock:30}},{L:{groups:[[17,115],[1,116]],totalDataCodewords:2071,errorCodewordsPerBlock:30},M:{groups:[[14,46],[21,47]],totalDataCodewords:1631,errorCodewordsPerBlock:28},Q:{groups:[[29,24],[19,25]],totalDataCodewords:1171,errorCodewordsPerBlock:30},H:{groups:[[11,15],[46,16]],totalDataCodewords:901,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[6,116]],totalDataCodewords:2191,errorCodewordsPerBlock:30},M:{groups:[[14,46],[23,47]],totalDataCodewords:1725,errorCodewordsPerBlock:28},Q:{groups:[[44,24],[7,25]],totalDataCodewords:1231,errorCodewordsPerBlock:30},H:{groups:[[59,16],[1,17]],totalDataCodewords:961,errorCodewordsPerBlock:30}},{L:{groups:[[12,121],[7,122]],totalDataCodewords:2306,errorCodewordsPerBlock:30},M:{groups:[[12,47],[26,48]],totalDataCodewords:1812,errorCodewordsPerBlock:28},Q:{groups:[[39,24],[14,25]],totalDataCodewords:1286,errorCodewordsPerBlock:30},H:{groups:[[22,15],[41,16]],totalDataCodewords:986,errorCodewordsPerBlock:30}},{L:{groups:[[6,121],[14,122]],totalDataCodewords:2434,errorCodewordsPerBlock:30},M:{groups:[[6,47],[34,48]],totalDataCodewords:1914,errorCodewordsPerBlock:28},Q:{groups:[[46,24],[10,25]],totalDataCodewords:1354,errorCodewordsPerBlock:30},H:{groups:[[2,15],[64,16]],totalDataCodewords:1054,errorCodewordsPerBlock:30}},{L:{groups:[[17,122],[4,123]],totalDataCodewords:2566,errorCodewordsPerBlock:30},M:{groups:[[29,46],[14,47]],totalDataCodewords:1992,errorCodewordsPerBlock:28},Q:{groups:[[49,24],[10,25]],totalDataCodewords:1426,errorCodewordsPerBlock:30},H:{groups:[[24,15],[46,16]],totalDataCodewords:1096,errorCodewordsPerBlock:30}},{L:{groups:[[4,122],[18,123]],totalDataCodewords:2702,errorCodewordsPerBlock:30},M:{groups:[[13,46],[32,47]],totalDataCodewords:2102,errorCodewordsPerBlock:28},Q:{groups:[[48,24],[14,25]],totalDataCodewords:1502,errorCodewordsPerBlock:30},H:{groups:[[42,15],[32,16]],totalDataCodewords:1142,errorCodewordsPerBlock:30}},{L:{groups:[[20,117],[4,118]],totalDataCodewords:2812,errorCodewordsPerBlock:30},M:{groups:[[40,47],[7,48]],totalDataCodewords:2216,errorCodewordsPerBlock:28},Q:{groups:[[43,24],[22,25]],totalDataCodewords:1582,errorCodewordsPerBlock:30},H:{groups:[[10,15],[67,16]],totalDataCodewords:1222,errorCodewordsPerBlock:30}},{L:{groups:[[19,118],[6,119]],totalDataCodewords:2956,errorCodewordsPerBlock:30},M:{groups:[[18,47],[31,48]],totalDataCodewords:2334,errorCodewordsPerBlock:28},Q:{groups:[[34,24],[34,25]],totalDataCodewords:1666,errorCodewordsPerBlock:30},H:{groups:[[20,15],[61,16]],totalDataCodewords:1276,errorCodewordsPerBlock:30}}],ht=[1,0,1,1,1],ct=[1,0,1],ut={L:"01",M:"00",Q:"11",H:"10"},dt="101010000010010",ft="10100110111",pt="1111100100101",gt=["11101100","00010001"],mt=93,vt=[function(t,e){return(t+e)%2===0},function(t){return t%2===0},function(t,e){return e%3===0},function(t,e){return(t+e)%3===0},function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2===0},function(t,e){return t*e%2+t*e%3===0},function(t,e){return(t*e%2+t*e%3)%2===0},function(t,e){return((t+e)%2+t*e%3)%2===0}],_t=/^\d+/,yt="A-Z0-9 $%*+./:-",wt="A-Z $%*+./:-",xt=RegExp("^["+wt+"]+"),bt=RegExp("^["+yt+"]+"),kt=RegExp("^[^"+yt+"]+"),Ct=8,St=5,Tt=8,At=17,Mt=9,Dt=16,Et=Math.round,Pt=Y.Class.extend({getVersionIndex:function(t){return t<10?0:t>26?2:1},getBitsCharacterCount:function(t){var e=this;return e.bitsInCharacterCount[e.getVersionIndex(t||40)]},getModeCountString:function(t,e){var i=this;return i.modeIndicator+n(t,i.getBitsCharacterCount(e))},encode:function(){},getStringBitsLength:function(){},getValue:function(){},modeIndicator:"",bitsInCharacterCount:[]}),It={};It[et]=Pt.extend({bitsInCharacterCount:[10,12,14],modeIndicator:"0001",getValue:function(t){return parseInt(t,10)},encode:function(t,e){var i,r=this,s=o(t,3),a=r.getModeCountString(t.length,e);for(i=0;i=t.length)&&(s=-s,r-=8!=r?2:3,o=r,n=s<0?t.length-1:0);return{row:n,column:o}},i.getNextRemainderCell=function(){if(i.move(),t[n][o]===e)return{row:n,column:o}}},v=function(t,e){var i,n,o,r,a,l,h=new m(t[0]);for(r=0;r0;){for(a=0;a=0;i--)n[i]=t[i]^e[i];return n},w=function(t,i){var n,o,r=[];for(n=0;n=0?i[o]:0))%255:ot[rt[r[n+o]]^rt[(t[n]+i[o])%255]];return r},a(),l(),x=function(t,e){var i,o,r=st[e-1],s=Array(e).concat(t),a=Array(s.length-r.length).concat(r),l=t.length,c=[];for(o=0;o=0;o--)c[e-1-o]=n(s[o],8);return c},b=function(t,e){var n,o,r,s,a,l,h,c,u=0,d=[],f=[],p=e.groups;for(l=0;l=e||t.length==l.length||l.length>=i&&!bt.test(t.charAt(l.length)))?(r=et,s=l):d&&(t.length==d.length||d.length>=n||o==it)?(r=it,s=l||c):(r=nt,s=d?d+kt.exec(t.substring(d.length))[0]:kt.exec(t)[0]),{mode:r,modeString:s}},C=function(t){var e,i,n=[],o=0;for(n.push(k(t,Ct,St,Tt,e)),e=n[0].mode,t=t.substr(n[0].modeString.length);t.length>0;)i=k(t,At,Mt,Dt,e),i.mode!=e?(e=i.mode,n.push(i),o++):n[o].modeString+=i.modeString,t=t.substr(i.modeString.length);return n},S=function(t){var e,i,n=0;for(i=0;i1);return t<=lt[i][e].totalDataCodewords?o+1:n+1},A=function(t,e){var i,n,o="";for(n=0;n=i);return t},P=function(t){var e,i,n=[],o=17+4*t;for(e=0;e=0;n--)6!==n&&r(t,c(e,a-1-s++),i,n);for(s=0,n=o.length-1,i=8;n>=o.length-8;n--)r(t,c(e,a-1-s++),i,n);for(r(t,1,o.length-8,8),i=o.length-7,n=8;i=0&&o=0&&e[i+1][n]==h[o][m]&&e[i+1][n-1]==h[o][m]&&(l[o]+=3),u(o,p,l,m,e[i][n]),u(o,p,l,v,e[n][i]),d(o,l,h,e[i][n],g,m),d(o,l,h,e[n][i],g,v);for(r=_*_,a=Number.MAX_VALUE,i=0;i>6*i&63|128,8)+s;s=(t>>6*r|255>>e<=0?new j:new U},W=function(t,e,i){var o,r,s,a=new G(i),l=a.getEncodingResult(t,e),h=l.version,c=lt[h-1][e],u=_(l.dataString,c.totalDataCodewords),d=b(u,c),f=P(h);return O(f),F(f,h),V(f),h>=7&&z(f,n(0,18)),I(f,n(0,15)),v(f,d),o=N(f),r=f[o],h>=7&&z([r],B(h)),s=ut[e]+n(o,3),I([r],M(s)),r},q={DEFAULT_SIZE:200,QUIET_ZONE_LENGTH:4,DEFAULT_ERROR_CORRECTION_LEVEL:"L",DEFAULT_BACKGROUND:"#fff",DEFAULT_DARK_MODULE_COLOR:"#000",MIN_BASE_UNIT_SIZE:1},$=Z.extend({init:function(e,i){var n=this;Z.fn.init.call(n,e,i),n.element=t(e),n.wrapper=n.element,n.element.addClass("k-qrcode"),n.surfaceWrap=t("
").css("position","relative").appendTo(this.element),n.surface=Q.Surface.create(n.surfaceWrap,{type:n.options.renderAs}),n.setOptions(i)},redraw:function(){var t=this._getSize();this.surfaceWrap.css({width:t,height:t}),this.surface.clear(),this.createVisual(),this.surface.draw(this.visual)},getSize:function(){return Y.dimensions(this.element)},_resize:function(){this.redraw()},createVisual:function(){this.visual=this._render()},exportVisual:function(){return this._render()},_render:function(){var t,e,i,n,o,r,s,a=this,l=a._value,h=a.options.border||{},c=a.options.padding||0,u=h.width||0;return h.width=u,s=new Q.Group,l&&(i=W(l,a.options.errorCorrection,a.options.encoding),n=a._getSize(),r=n-2*(u+c),t=a._calculateBaseUnit(r,i.length),o=i.length*t,e=u+c+(r-o)/2,s.append(a._renderBackground(n,h)),s.append(a._renderMatrix(i,t,e))),s},_getSize:function(){var t,e,i,n=this;return n.options.size?t=parseInt(n.options.size,10):(e=n.element,i=Math.min(e.width(),e.height()),t=i>0?i:q.DEFAULT_SIZE),t},_calculateBaseUnit:function(t,e){var i=Math.floor(t/e);if(i=t&&i-1>=q.MIN_BASE_UNIT_SIZE&&i--,i},_renderMatrix:function(t,e,i){var n,o,r,s,a,l,h,c,u=new Q.MultiPath({fill:{color:this.options.color},stroke:null});for(n=0;ns&&(t=s),this.options.select=r({},a,{from:l,to:t}),this.filterAxes()},_redrawSelf:function(t){var e=this.chart._plotArea;e&&e.redraw(n.last(e.panes),t)},redrawSlaves:function(){var t=this.chart,e=t._plotArea,i=e.panes.slice(0,-1);e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(i)},_drag:function(t){var e,i,o,r=this,a=r.chart,l=r.selection,h=a._eventCoordinates(t.originalEvent),c=this.mainAxis(),u=c.roundedRange(),d=c.pane.box.containsPoint(h),f=a._plotArea.categoryAxis,p=t.axisRanges[f.options.name],g=this.options.select;p&&!d&&l&&(e=g.from&&g.to?s(g.to)-s(g.from):s(l.options.to)-s(l.options.from),i=n.toDate(n.limitValue(s(p.min),u.min,s(u.max)-e)),o=n.toDate(n.limitValue(s(i)+e,s(u.min)+e,u.max)),this.options.select={from:i,to:o},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),l.set(i,o),this.showHint(i,o))},_dragEnd:function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()},readSelection:function(){var t=this,e=t.selection.options,i=e.from,n=e.to,o=t.options.select;
o.from=i,o.to=n},filterAxes:function(){var t,e,i,n,o,r,s=this,a=s.options.select;for(void 0===a&&(a={}),t=s.chart,e=t.options.categoryAxis,i=a.from,n=a.to,o=0;o1&&(c*=g),i-e>1?(r.expand(c),this.readSelection()):(o.options.min=a.from,a.from=o.scaleRange(-t.delta).min),l&&(this.filterAxes(),this.redrawSlaves()),r.set(a.from,a.to),this.showHint(this.options.select.from,this.options.select.to))},_zoomEnd:function(t){this._dragEnd(t)},showHint:function(t,e){var i=this.chart._plotArea;this.hint&&this.hint.show(t,e,i.backgroundBox())},_selectStart:function(t){return this.chart._selectStart(t)},_select:function(t){return this.showHint(t.from,t.to),this.chart._select(t)},_selectEnd:function(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)},mainAxis:function(){var t=this.chart._plotArea;if(t)return t.namedCategoryAxes[f]},select:function(t,e){var i=this.options.select;return t&&e&&(i.from=this.parseDate(t),i.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:i.from,to:i.to}}}),m.setup=function(t,e){var i,n,o;void 0===t&&(t={}),void 0===e&&(e={}),t.__navi||(t.__navi=!0,i=r({},e.navigator,t.navigator),n=t.panes=[].concat(t.panes),o=r({},i.pane,{name:d}),i.visible||(o.visible=!1,o.height=.1),n.push(o),m.attachAxes(t,i),m.attachSeries(t,i,e))},m.attachAxes=function(t,e){var i=e.series||[],o=t.categoryAxis=[].concat(t.categoryAxis),s=t.valueAxis=[].concat(t.valueAxis),l=n.filterSeriesByType(i,a.EQUALLY_SPACED_SERIES),h=0===l.length,c=r({type:"date",pane:d,roundToBaseUnit:!h,justified:h,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),u=e.categoryAxis;o.push(r({},c,{maxDateGroups:200},u,{name:f,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),r({},c,u,{name:f+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),r({},c,u,{name:f+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),s.push(r({name:f,pane:d,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},m.attachSeries=function(t,e,i){var n,o=t.series=t.series||[],s=[].concat(e.series||[]),a=i.seriesColors,l=e.seriesDefaults;for(n=0;n0&&(h+=f.left+f.right),h},_createSharedTooltip:function(t){return new h(this._plotArea,t)}}),f.normalizeOptions=function(t){var e=i(t);return e=n.isArray(e)?{seriesDefaults:{data:e}}:a({},e),e.series||(e.series=[{data:i(e.data)}]),a(e,{seriesDefaults:{type:e.type}}),(n.inArray(e.series[0].type,d)||n.inArray(e.seriesDefaults.type,d))&&(e=a({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},n.setDefaultOptions(f,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]}),kendo.deepExtend(kendo.dataviz,{Sparkline:f})}()},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/sparkline/sparkline.min",["dataviz/sparkline/kendo-sparkline.min"],t)}(function(){!function(t){var e,i=kendo.dataviz,n=i.ui.Chart,o=i.Sparkline,r=i.ChartInstanceObserver,s=t.extend,a=n.extend({init:function(t,e){var i=e;i instanceof kendo.data.ObservableArray&&(i={seriesDefaults:{data:i}}),n.fn.init.call(this,t,o.normalizeOptions(i))},_createChart:function(t,e){this._instance=new o(this.element[0],t,e,{observer:new r(this),sender:this,rtl:this._isRtl()})},_createTooltip:function(){return new e(this.element,s({},this.options.tooltip,{rtl:this._isRtl()}))},options:{name:"Sparkline",chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]}});i.ui.plugin(a),e=i.Tooltip.extend({options:{animation:{duration:0}},_hideElement:function(){this.element&&this.element.hide().remove()}}),i.SparklineTooltip=e}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("kendo.dataviz.sparkline.min",["dataviz/sparkline/kendo-sparkline.min","dataviz/sparkline/sparkline.min"],t)}(function(){},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("util/main.min",["kendo.core.min"],t)}(function(){return function(){function t(t){return t*t}function e(t){return"string"!=typeof t&&(t+="px"),t}function i(t){var e,i,n=[];if(t)for(e=h.toHyphens(t).split("-"),i=0;i0;)tn&&(i-=2*n),n=r}return i}function r(t){var e=Object.create(null);return function(){var i,n="";for(i=arguments.length;--i>=0;)n+=":"+arguments[i];return n in e?e[n]:e[n]=t.apply(this,arguments)}}function s(t){return l.test(t)}function a(t,e){function i(t){this.value=t}try{return t.call(e,function(t){throw new i(t)})}catch(n){if(n instanceof i)return n.value;throw n}}var l,h=window.kendo,c=h.deepExtend,u=Date.now;u||(u=function(){return(new Date).getTime()}),c(h,{util:{now:u,renderPos:i,renderSize:e,sqr:t,romanToArabic:o,arabicToRoman:n,memoize:r,isUnicodeLetter:s,withExit:a}}),l=RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]")}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/map/location.min",["kendo.drawing.min","util/main.min"],t)}(function(){!function(t,e){var i,n=Math,o=n.abs,r=n.atan,s=n.atan2,a=n.cos,l=n.max,h=n.min,c=n.sin,u=n.tan,d=window.kendo,f=d.Class,p=d.dataviz,g=d.deepExtend,m=d.drawing.util,v=m.defined,_=m.deg,y=m.rad,w=m.round,x=m.valueOrDefault,b=d.util.sqr,k=f.extend({init:function(t,e){1===arguments.length?(this.lat=t[0],this.lng=t[1]):(this.lat=t,this.lng=e)},DISTANCE_ITERATIONS:100,DISTANCE_CONVERGENCE:1e-12,DISTANCE_PRECISION:2,FORMAT:"{0:N6},{1:N6}",toArray:function(){return[this.lat,this.lng]},equals:function(t){return t&&t.lat===this.lat&&t.lng===this.lng},clone:function(){return new k(this.lat,this.lng)},round:function(t){return this.lng=w(this.lng,t),this.lat=w(this.lat,t),this},wrap:function(){return this.lng=this.lng%180,this.lat=this.lat%90,this},distanceTo:function(t,e){return this.greatCircleTo(t,e).distance},destination:function(t,e,i){var o,r,l,h,u;return e=y(e),i=i||p.map.datums.WGS84,o=y(this.lat),r=y(this.lng),l=t/d.dataviz.map.datums.WGS84.a,h=n.asin(c(o)*a(l)+a(o)*c(l)*a(e)),u=r+s(c(e)*c(l)*a(o),a(l)-c(o)*c(h)),new k(_(h),_(u))},greatCircleTo:function(t,e){var i,l,h,d,f,g,m,v,x,C,S,T,A,M,D,E,P,I,B,z,L,R,O,F,V,N,H,U,j;if(t=k.create(t),e=e||p.map.datums.WGS84,!t||this.clone().round(8).equals(t.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};for(i=e.a,l=e.b,h=e.f,d=y(t.lng-this.lng),f=r((1-h)*u(y(this.lat))),g=c(f),m=a(f),v=r((1-h)*u(y(t.lat))),x=c(v),C=a(v),S=d,A=this.DISTANCE_ITERATIONS,M=!1;!M&&A-- >0;)D=c(S),E=a(S),P=n.sqrt(b(C*D)+b(m*x-g*C*E)),B=g*x+m*C*E,L=s(P,B),R=m*C*D/P,I=1-b(R),z=0,0!==I&&(z=B-2*g*x/I),T=S,O=h/16*I*(4+h*(4-3*I)),S=d+(1-O)*h*R*(L+O*P*(z+O*B*(-1+2*b(z)))),M=o(S-T)<=this.DISTANCE_CONVERGENCE;return F=I*(b(i)-b(l))/b(l),V=1+F/16384*(4096+F*(-768+F*(320-175*F))),N=F/1024*(256+F*(-128+F*(74-47*F))),H=N*P*(z+N/4*(B*(-1+2*b(z))-N/6*z*(-3+4*b(P))*(-3+4*b(z)))),U=s(C*D,m*x-g*C*E),j=s(m*D,-g*C+m*x*E),{distance:w(l*V*(L-H),this.DISTANCE_PRECISION),azimuthFrom:_(U),azimuthTo:_(j)}}});k.fn.toString=function(){return d.format(this.FORMAT,this.lat,this.lng)},k.fromLngLat=function(t){return new k(t[1],t[0])},k.fromLatLng=function(t){return new k(t[0],t[1])},k.create=function(t,e){if(v(t))return t instanceof k?t.clone():1===arguments.length&&2===t.length?k.fromLatLng(t):new k(t,e)},i=f.extend({init:function(t,e){t=k.create(t),e=k.create(e),t.lng+180>e.lng+180&&t.lat+90=e.lng+180&&n+180<=i.lng+180&&o+90>=i.lat+90&&o+90<=e.lat+90},center:function(){var t=this.nw,e=this.se,i=t.lng+(e.lng-t.lng)/2,n=t.lat+(e.lat-t.lat)/2;return new k(n,i)},containsAny:function(t){var e,i=!1;for(e=0;e0?this.element.empty().append(o.join(this.options.separator)).show():this.element.hide()},_itemText:function(t){var e="",i=this._inZoomLevel(t.minZoom,t.maxZoom),n=this._inArea(t.extent);return i&&n&&(e+=t.text),e},_inZoomLevel:function(t,e){var i=!0;return t=o(t,-Number.MAX_VALUE),e=o(e,Number.MAX_VALUE),i=this._zoom>t&&this._zoom ',t)}var i=window.kendo,n=i.ui.Widget,o=i.keys,r=t.proxy,s=".kendoNavigator",a=e("up")+e("right")+e("down")+e("left"),l=n.extend({init:function(t,e){n.fn.init.call(this,t,e),this._initOptions(e),this.element.addClass("k-widget k-header k-shadow k-navigator").append(a).on("click"+s,".k-button",r(this,"_click"));var o=this.element.parent().closest("["+i.attr("role")+"]");this._keyroot=o.length>0?o:this.element,this._tabindex(this._keyroot),this._keydown=r(this._keydown,this),this._keyroot.on("keydown",this._keydown)},options:{name:"Navigator",panStep:1},events:["pan"],dispose:function(){this._keyroot.off("keydown",this._keydown)},_pan:function(t,e){var i=this.options.panStep;this.trigger("pan",{x:t*i,y:e*i})},_click:function(e){var i=0,n=0,o=t(e.currentTarget);o.is(".k-navigator-up")?n=1:o.is(".k-navigator-down")?n=-1:o.is(".k-navigator-right")?i=1:o.is(".k-navigator-left")&&(i=-1),this._pan(i,n),e.preventDefault()},_keydown:function(t){switch(t.which){case o.UP:this._pan(0,1),t.preventDefault();break;case o.DOWN:this._pan(0,-1),t.preventDefault();break;case o.RIGHT:this._pan(1,0),t.preventDefault();break;case o.LEFT:this._pan(-1,0),t.preventDefault()}}});i.dataviz.ui.plugin(l)}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/map/zoom.min",["kendo.core.min"],t)}(function(){!function(t){function e(t,e){return i.format(' ',t,e)}var i=window.kendo,n=i.ui.Widget,o=i.keys,r=t.proxy,s=".kendoZoomControl",a=e("in","k-i-plus")+e("out","k-i-minus"),l=187,h=189,c=61,u=173,d=n.extend({init:function(t,e){n.fn.init.call(this,t,e),this._initOptions(e),this.element.addClass("k-widget k-zoom-control k-button-wrap k-buttons-horizontal k-button-group k-group-horizontal").append(a).on("click"+s,".k-button",r(this,"_click"));var o=this.element.parent().closest("["+i.attr("role")+"]");this._keyroot=o.length>0?o:this.element,this._tabindex(this._keyroot),this._keydown=r(this._keydown,this),this._keyroot.on("keydown",this._keydown)},options:{name:"ZoomControl",zoomStep:1},events:["change"],_change:function(t){var e=this.options.zoomStep;this.trigger("change",{delta:t*e})},_click:function(e){var i=t(e.currentTarget),n=1;i.is(".k-zoom-out")&&(n=-1),this._change(n),e.preventDefault()},_keydown:function(t){switch(t.which){case o.NUMPAD_PLUS:case l:case c:this._change(1);break;case o.NUMPAD_MINUS:case h:case u:this._change(-1)}}});i.dataviz.ui.plugin(d)}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/map/crs.min",["dataviz/map/location.min","kendo.drawing.min"],t)}(function(){!function(t,e){var i=Math,n=i.atan,o=i.exp,r=i.pow,s=i.sin,a=i.log,l=i.tan,h=window.kendo,c=h.Class,u=h.dataviz,d=h.deepExtend,f=h.geometry,p=f.Point,g=u.map,m=g.Location,v=h.drawing.util,_=v.rad,y=v.deg,w=v.limitValue,x=i.PI,b=x/2,k=x/4,C=x/180,S={a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149},T=c.extend({init:function(t){this._initOptions(t)},MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12,options:{centralMeridian:0,datum:S},forward:function(t,e){var i=this,n=i.options,o=n.datum,r=o.a,s=n.centralMeridian,a=w(t.lat,-i.MAX_LAT,i.MAX_LAT),l=e?w(t.lng,-i.MAX_LNG,i.MAX_LNG):t.lng,h=_(l-s)*r,c=i._projectLat(a);return new p(h,c)},_projectLat:function(t){var e=this.options.datum,i=e.e,n=e.a,o=_(t),h=l(k+o/2),c=i*s(o),u=r((1-c)/(1+c),i/2);return n*a(h*u)},inverse:function(t,e){var i=this,n=i.options,o=n.datum,r=o.a,s=n.centralMeridian,a=t.x/(C*r)+s,l=w(i._inverseY(t.y),-i.MAX_LAT,i.MAX_LAT);return e&&(a=w(a,-i.MAX_LNG,i.MAX_LNG)),new m(l,a)},_inverseY:function(t){var e,a,l,h,c=this,u=c.options.datum,d=u.a,f=u.e,p=f/2,g=o(-t/d),m=b-2*n(g);for(e=0;e<=c.INVERSE_ITERATIONS&&(a=f*s(m),l=r((1-a)/(1+a),p),h=b-2*n(g*l)-m,m+=h,!(i.abs(h)<=c.INVERSE_CONVERGENCE));e++);return y(m)}}),A=T.extend({MAX_LAT:85.0511287798,_projectLat:function(t){var e=this.options.datum.a,i=_(t),n=l(k+i/2);return e*a(n)},_inverseY:function(t){var e=this.options.datum.a,i=o(-t/e);return y(b-2*n(i))}}),M=c.extend({forward:function(t){return new p(t.lng,t.lat)},inverse:function(t){return new m(t.y,t.x)}}),D=c.extend({init:function(){var t=this,e=t._proj=new A,i=this.c=2*x*e.options.datum.a;this._tm=f.transform().translate(.5,.5).scale(1/i,-1/i),this._itm=f.transform().scale(i,-i).translate(-.5,-.5)},toPoint:function(t,e,i){var n=this._proj.forward(t,i);return n.transform(this._tm).scale(e||1)},toLocation:function(t,e,i){return t=t.clone().scale(1/(e||1)).transform(this._itm),this._proj.inverse(t,i)}}),E=c.extend({init:function(){this._proj=new T},toPoint:function(t){return this._proj.forward(t)},toLocation:function(t){return this._proj.inverse(t)}}),P=c.extend({init:function(){this._proj=new M},toPoint:function(t){return this._proj.forward(t)},toLocation:function(t){return this._proj.inverse(t)}});d(u,{map:{crs:{EPSG3395:E,EPSG3857:D,EPSG4326:P},datums:{WGS84:S},projections:{Equirectangular:M,Mercator:T,SphericalMercator:A}}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/map/layers/base.min",["kendo.core.min","dataviz/map/location.min"],t)}(function(){!function(t,e){var i=t.proxy,n=window.kendo,o=n.Class,r=n.dataviz,s=n.deepExtend,a=r.map.Extent,l=n.drawing.util,h=l.defined,c=o.extend({init:function(e,n){this._initOptions(n),this.map=e,this.element=t("
").css({zIndex:this.options.zIndex,opacity:this.options.opacity}).appendTo(e.scrollElement),this._beforeReset=i(this._beforeReset,this),
this._reset=i(this._reset,this),this._resize=i(this._resize,this),this._panEnd=i(this._panEnd,this),this._activate(),this._updateAttribution()},destroy:function(){this._deactivate()},show:function(){this.reset(),this._activate(),this._applyExtent(!0)},hide:function(){this._deactivate(),this._setVisibility(!1)},reset:function(){this._beforeReset(),this._reset()},_reset:function(){this._applyExtent()},_beforeReset:t.noop,_resize:t.noop,_panEnd:function(){this._applyExtent()},_applyExtent:function(){var t=this.options,e=this.map.zoom(),i=!h(t.minZoom)||e>=t.minZoom,n=!h(t.maxZoom)||e<=t.maxZoom,o=a.create(t.extent),r=!o||o.overlaps(this.map.extent());this._setVisibility(i&&n&&r)},_setVisibility:function(t){this.element.css("display",t?"":"none")},_activate:function(){var t=this.map;t.bind("beforeReset",this._beforeReset),t.bind("reset",this._reset),t.bind("resize",this._resize),t.bind("panEnd",this._panEnd)},_deactivate:function(){var t=this.map;t.unbind("beforeReset",this._beforeReset),t.unbind("reset",this._reset),t.unbind("resize",this._resize),t.unbind("panEnd",this._panEnd)},_updateAttribution:function(){var t=this.map.attribution;t&&t.add(this.options.attribution)}});s(r,{map:{layers:{Layer:c}}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,i){(i||e)()}),function(t,define){define("dataviz/map/layers/shape.min",["dataviz/map/layers/base.min","dataviz/map/location.min"],t)}(function(){!function(t,e){var i=t.proxy,n=window.kendo,o=n.Class,r=n.data.DataSource,s=n.dataviz,a=n.deepExtend,l=n.geometry,h=n.drawing,c=h.Group,u=h.util.last,d=h.util.defined,f=s.map,p=f.Location,g=f.layers.Layer,m=g.extend({init:function(t,e){this._pan=i(this._pan,this),g.fn.init.call(this,t,e),this.surface=h.Surface.create(this.element,{width:t.scrollElement.width(),height:t.scrollElement.height()}),this._initRoot(),this.movable=new n.ui.Movable(this.surface.element),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseenter=this._handler("shapeMouseEnter"),this.surface.bind("mouseenter",this._mouseenter),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave),this._initDataSource()},options:{autoBind:!0},destroy:function(){g.fn.destroy.call(this),this.surface.destroy(),this.dataSource.unbind("change",this._dataChange)},setDataSource:function(t){this.dataSource&&this.dataSource.unbind("change",this._dataChange),this.dataSource=n.data.DataSource.create(t),this.dataSource.bind("change",this._dataChange),this.options.autoBind&&this.dataSource.fetch()},_reset:function(){g.fn._reset.call(this),this._translateSurface(),this._data&&this._load(this._data)},_initRoot:function(){this._root=new c,this.surface.draw(this._root)},_beforeReset:function(){this.surface.clear(),this._initRoot()},_resize:function(){this.surface.size(this.map.size())},_initDataSource:function(){var t=this.options.dataSource;this._dataChange=i(this._dataChange,this),this.dataSource=r.create(t).bind("change",this._dataChange),t&&this.options.autoBind&&this.dataSource.fetch()},_dataChange:function(t){this._data=t.sender.view(),this._load(this._data)},_load:function(t){var e,i,n;for(this._clearMarkers(),this._loader||(this._loader=new v(this.map,this.options.style,this)),e=new c,i=0;i1?h.MultiPath:h.Path,r=new o(this.style);for(e=0;e=0?i:e-(0===i?e:i)}}),w=s.extend({init:function(t,e){this.id=t,this.visible=!0,this._initOptions(e),this.createElement(),this.show()},options:{urlTemplate:"",errorUrlTemplate:""},createElement:function(){this.element=t("