text: /*
  * Kendo UI v2014.2.716 (http://www.telerik.com/kendo-ui)
  * Copyright 2014 Telerik AD. All rights reserved.
  *
  * Kendo UI commercial licenses may be obtained at
  * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
  * If you do not own a commercial license, this file shall be governed by the trial license terms.
  */
  !function(e,define){define(["./kendo.dataviz.core.min"],e)}(function(){return function(){function e(e){this.view=e}function t(e){this.view=e}function n(e){this.view=e}function i(){return u.support.browser.msie&&!S()&&void 0!==window.performance}function r(e,t,n){var i=new g(e),r=new g(t),a=o(i.r,r.r,n),s=o(i.g,r.g,n),l=o(i.b,r.b,n);return new g(a,s,l).toHex()}function o(e,t,n){return c.round(n*t+(1-n)*e)}function a(e,t){var n,i,o,a=t.stops,s=a.length,l=h({},t);for(l.stops=[],n=0;s>n;n++)i=a[n],o=l.stops[n]=h({},a[n]),o.color=r(e,i.color,i.opacity),o.opacity=0;return l}var s,l=jQuery,d=document,c=Math,u=window.kendo,p=u.Class,h=u.deepExtend,f=u.dataviz,g=f.Color,m=f.Box2D,v=f.Point2D,_=f.ExpandAnimation,k=f.ViewBase,w=f.ViewElement,b=f.defined,y=f.renderTemplate,x=f.uniqueId,C=f.rotatePoint,T=f.round,S=f.supportsSVG,D="#000",A=f.CLIP,E=f.COORD_PRECISION,I=f.DEFAULT_WIDTH,F=f.DEFAULT_HEIGHT,P=f.DEFAULT_FONT,M="object",H="linear",z="radial",R="transparent",B=k.extend({init:function(r){var o=this;k.fn.init.call(o,r),o.decorators.push(new e(o),new t(o),new n(o)),f.ui.Chart&&o.decorators.push(new f.BarAnimationDecorator(o),new f.PieAnimationDecorator(o),new f.BubbleAnimationDecorator(o)),o.decorators.push(new s(o)),i()||o.decorators.push(new f.FadeAnimationDecorator(o)),f.Gauge&&o.decorators.push(new f.RadialPointerAnimationDecorator(o),new f.ArrowPointerAnimationDecorator(o),new f.BarIndicatorAnimationDecorator(o)),o.template=B.template,o.tagName=o.options.inline?"span":"div",o.template||(o.template=B.template=y("<#= d.tagName # style='width:#= d.options.width #px; height:#= d.options.height #px; position: relative;'>#= d.renderContent() #</#= d.tagName #>"))},options:{width:I,height:F},renderTo:function(e){var t,n=this;return d.namespaces&&d.namespaces.add("kvml","urn:schemas-microsoft-com:vml","#default#VML"),n.setupAnimations(),e.innerHTML=n.render(),n.playAnimations(),t=e.firstChild,n._viewElement=t,t},renderElement:function(e){var t,n=d.createElement("div");return n.style.display="none",d.body.appendChild(n),n.innerHTML=e.render(),t=n.firstChild,d.body.removeChild(n),t},createText:function(e,t){return this.decorate(new L(e,t))},createTextBox:function(e){return this.decorate(new O(e))},createRect:function(e,t){return this.decorate(new j(e.points(),!0,this.setDefaults(t)))},createCubicCurve:function(e,t,n){return new U(e,t,n)},createLine:function(e,t,n,i,r){return this.decorate(new j([new v(e,t),new v(n,i)],!1,this.setDefaults(r)))},createMultiLine:function(e,t){return this.decorate(new q(e,!1,this.setDefaults(t)))},createPolyline:function(e,t,n){return this.decorate(new j(e,t,this.setDefaults(n)))},createCircle:function(e,t,n){return this.decorate(new Y(e,t,n))},createSector:function(e,t){return this.decorate(new $(e,t))},createRing:function(e,t){return this.decorate(new G(e,this.setDefaults(t)))},createGroup:function(e){return this.decorate(new Q(this.setDefaults(e)))},createClipPath:function(e,t){var n,i=this;return n=new K(t,{id:e}),i.definitions[e]=n,n},createGradient:function(e){var t=b(e.cx)&&b(e.cy)&&b(e.bbox);return e.type===z&&t?new J(e):e.type===H?new Z(e):D}}),L=w.extend({init:function(e,t){var n=this;w.fn.init.call(n,t),n.content=e,n.template=L.template,n.template||(n.template=L.template=y("#if (d.options.matrix) {#<kvml:shape #= d.renderId() # #= d.renderDataAttributes() #style='position: absolute; top: 0px; left: 0px; width: 1px; height: 1px;' stroked='false' coordsize='1,1'>#= d.renderPath() #<kvml:fill color='#= d.options.color #' /><kvml:textpath on='true' style='font: #= d.options.font #;' fitpath='false' string='#= d.content #' /></kvml:shape>#} else {#<kvml:textbox #= d.renderId() # #= d.renderDataAttributes() #style='position: absolute; left: #= d.options.x #px; top: #= d.options.y #px; font: #= d.options.font #; color: #= d.options.color #; visibility: #= d.renderVisibility() #; white-space: nowrap; #= d.renderCursor() #'>#= d.content #</kvml:textbox>#}#"))},options:{x:0,y:0,font:P,color:D,fillOpacity:1,cursor:{}},refresh:function(e){l(e).css("visibility",this.renderVisibility())},clone:function(){var e=this;return new L(e.content,h({},e.options))},renderVisibility:function(){return this.options.fillOpacity>0?"visible":"hidden"},renderCursor:function(){var e=this.options,t="";return b(e.cursor.style)&&(t+="cursor: "+e.cursor.style+";"),t},renderPath:function(){var e=this,t=e.options,n=t.matrix,i=t.size,r=t.x,o=t.y+i.height/2,a=v(r,o),s=v(r+i.width,o);return a.transform(n),s.transform(n),"<kvml:path textpathok='true' v='m "+T(a.x)+","+T(a.y)+" l "+T(s.x)+","+T(s.y)+"' />"}}),O=w.extend({init:function(e){var t=this;w.fn.init.call(t,e),t.template=O.template,t.template||(t.template=O.template=y("# if (d.options.matrix) {##= d.renderRotatedChildren() ##} else {##= d.renderContent() ##}#"))},renderRotatedChildren:function(){var e,t=this,n=t.options.matrix,i="",r=t.sortChildren(),o=r.length;for(e=0;o>e;e++)r[e].options.matrix=n,i+=r[e].render();return i}}),N=w.extend({init:function(e){var t=this;w.fn.init.call(t,e),t.template=N.template,t.template||(t.template=N.template=y('<kvml:stroke on=\'#= !!d.options.stroke && !!d.options.strokeWidth #\' #= d.renderAttr("color", d.options.stroke) #weight=\'#= d.options.strokeWidth || 0 #px\' #= d.renderAttr("dashstyle", d.options.dashType) ##= d.renderAttr("opacity", d.options.strokeOpacity) # />'))},refresh:function(e){try{e.opacity=this.options.strokeOpacity}catch(t){}}}),V=w.extend({init:function(e){var t=this;w.fn.init.call(t,e),t.template=V.template,t.template||(t.template=V.template=y('<kvml:fill on=\'#= d.isEnabled() #\' #= d.renderAttr("color", d.options.fill) ##= d.renderAttr("weight", d.options.fillWidth) ##= d.renderAttr("opacity", d.options.fillOpacity) # />'))},isEnabled:function(){var e=this.options.fill;return!!e&&e.toLowerCase()!==R},refresh:function(e){try{e.opacity=this.options.fillOpacity}catch(t){}}}),W=w.extend({init:function(e){var t=this;w.fn.init.call(t,e),t.template=W.template,t.template||(t.template=W.template=y("<kvml:shape #= d.renderId() # #= d.renderDataAttributes() #style='position:absolute; #= d.renderSize() # display:#= d.renderDisplay() #; #= d.renderCursor() #' coordorigin='0 0' #= d.renderCoordsize() #><kvml:path v='#= d.renderPoints() # e' />#= d.fill.render() + d.stroke.render() #</kvml:shape>")),t.stroke=new N(t.options),t.fill=new V(t.options)},options:{fill:"",fillOpacity:1,strokeOpacity:1,rotation:[0,0,0],visible:!0,cursor:{}},renderCoordsize:function(){var e=this.options.align===!1?1e4:1;return"coordsize='"+e+" "+e+"'"},renderSize:function(){var e=this.options.align===!1?100:1;return"width:"+e+"px; height:"+e+"px;"},render:function(){var e=this;return e.fill.options.fillOpacity=e.options.fillOpacity,e.stroke.options.strokeOpacity=e.options.strokeOpacity,w.fn.render.call(e)},renderDisplay:function(){return this.options.visible?"block":"none"},renderPoints:function(){},refresh:function(e){if(e){var t=this,n=l(e),i=n[0].parentNode,r=t.fill,o=t.stroke;i&&(n.find("path")[0].v=this.renderPoints(),r.options=o.options=t.options,r.refresh(n.find("fill")[0]),o.refresh(n.find("stroke")[0]),n.css("display",t.renderDisplay()),i.style.cssText=i.style.cssText)}},renderCursor:function(){var e=this.options,t="";return b(e.cursor.style)&&(t+="cursor: "+e.cursor.style+";"),t}}),U=W.extend({init:function(e,t,n){var i=this;W.fn.init.call(i,t),i.points=e,i.areaPoints=n},renderPoints:function(){var e,t,n,i,r=this,o=r.areaPoints,a=r.points,s=[];for(e=1;a.length>e;e+=3){for(n=[],i=0;3>i;i++)t=a[e+i],n.push(T(t.x)+","+T(t.y));s.push("C "+n.join(" "))}if(o&&o.length){for(e=0;o.length>e;e++)s.push("L "+T(o[e].x)+","+T(o[e].y));s.push("X")}return"M "+c.round(a[0].x)+","+c.round(a[0].y)+" "+s.join(" ")+" E"}}),j=W.extend({init:function(e,t,n){var i=this;W.fn.init.call(i,n),i.points=e,i.closed=t},renderPoints:function(){var e=this,t=e.points;return e._renderPoints(t)},_renderPoints:function(e){var t,n=this,i=e.length,r=function(e){var t=n.options,i=t.rotation,r=t.matrix;return r?e.clone().transform(r):C(e.x,e.y,i[1],i[2],-i[0])},o="m "+n._print(r(e[0]));if(i>1)for(o+=" l ",t=1;i>t;t++)o+=n._print(r(e[t])),i-1>t&&(o+=", ");return n.closed&&(o+=" x"),o},clone:function(){var e=this;return new j(h([],e.points),e.closed,h({},e.options))},_print:function(e){var t=this.options.align===!1?100:1;return c.round(e.x*t)+","+c.round(e.y*t)}}),q=j.extend({renderPoints:function(){var e,t=this,n=t.points,i=[];for(e=0;n.length>e;e++)i.push(t._renderPoints(n[e]));return i.join(" ")}}),G=W.extend({init:function(e,t){var n=this;W.fn.init.call(n,t),n.pathTemplate=G.pathTemplate,n.pathTemplate||(n.pathTemplate=G.pathTemplate=y("M #= d.osp.x #,#= d.osp.y # WA #= d.obb.l #,#= d.obb.t # #= d.obb.r #,#= d.obb.b # #= d.osp.x #,#= d.osp.y # #= d.oep.x #,#= d.oep.y # L #= d.iep.x #,#= d.iep.y # AT #= d.ibb.l #,#= d.ibb.t # #= d.ibb.r #,#= d.ibb.b # #= d.iep.x #,#= d.iep.y # #= d.isp.x #,#= d.isp.y # X E")),n.config=e},renderPoints:function(){function e(e){return new v(T(e.x),T(e.y))}var t,n,i,r,o=this,a=o.config,s=c.max(T(a.r),0),l=c.max(T(a.ir),0),d=T(a.c.x),u=T(a.c.y),p=a.startAngle,h=a.angle+p,f=h-p,g={l:d-s,t:u-s,r:d+s,b:u+s},m={l:d-l,t:u-l,r:d+l,b:u+l};return 1>=f?h+=1-f:f>359&&(h-=1-f),t=e(a.point(p)),n=e(a.point(p,!0)),r=e(a.point(h)),i=e(a.point(h,!0)),o.pathTemplate({obb:g,ibb:m,osp:t,isp:n,oep:r,iep:i,cx:d,cy:u})},clone:function(){var e=this;return new G(h({},e.config),h({},e.options))}}),$=G.extend({init:function(e,t){var n=this;G.fn.init.call(n,e,t),n.pathTemplate=$.pathTemplate,n.pathTemplate||(n.pathTemplate=$.pathTemplate=y("M #= d.osp.x #,#= d.osp.y # WA #= d.obb.l #,#= d.obb.t # #= d.obb.r #,#= d.obb.b # #= d.osp.x #,#= d.osp.y # #= d.oep.x #,#= d.oep.y # L #= d.cx #,#= d.cy # X E"))},clone:function(){var e=this;return new $(h({},e.config),h({},e.options))}}),Y=w.extend({init:function(e,t,n){var i=this;w.fn.init.call(i,n),i.c=e,i.r=t,i.template=Y.template,i.template||(i.template=Y.template=y("<kvml:oval #= d.renderId() # #= d.renderDataAttributes() #style='position:absolute; width:#= d.r * 2 #px; height:#= d.r * 2 #px; top:#= d.c.y - d.r #px; left:#= d.c.x - d.r #px;'>#= d.fill.render() + d.stroke.render() #</kvml:oval>")),i.stroke=new N(i.options),i.fill=new V(i.options)},options:{fill:"",fillOpacity:1},refresh:function(e){var t=this,n=t.c,i=c.max(0,t.r),r=2*i,o=l(e);o.css({width:r,height:r,top:n.y-i,left:n.x-i}),t.fill.options=t.options,t.fill.refresh(o.find("fill")[0])},clone:function(){var e=this;return new Y(h({},e.c),e.r,h({},e.options))}}),Q=w.extend({init:function(e){var t=this;w.fn.init.call(t,e),t.tagName=t.options.inline?"span":"div",t.template=Q.template,t.template||(t.template=Q.template=y("<#= d.tagName # #= d.renderId() ##= d.renderDataAttributes() #style='position: absolute; white-space: nowrap;'>#= d.renderContent() #</#= d.tagName #>"))}}),K=w.extend({init:function(e,t){var n=this;w.fn.init.call(n,t),n.tagName=n.options.inline?"span":"div",n.template=K.template,n.clipTemplate=K.clipTemplate,n.template||(n.template=K.template=y("<#= d.tagName # #= d.renderId() #style='position:absolute;width:#= d.box.width() #px; height:#= d.box.height() + d.box.y1#px; top:0px; left:0px; clip:#= d._renderClip() #;' >#= d.renderContent() #</#= d.tagName #>"),n.clipTemplate=K.clipTemplate=y("rect(#= d.points[0].y #px #= d.points[1].x #px #= d.points[2].y #px #= d.points[0].x #px)")),n.box=e,n.points=e.points()},clone:function(){var e=this;return new K(e.box,h({},e.options))},refresh:function(e){e&&(e.style.clip=this._renderClip())},_renderClip:function(){return this.clipTemplate(this)},destroy:function(){l("#"+this.options.id+">*").unwrap()}}),X=w.extend({init:function(e){var t=this;w.fn.init.call(t,e)},options:{opacity:1},renderColors:function(){var e,t,n=this,i=n.options,r=i.stops,o=r.length,a=[],s=c.round;for(t=0;o>t;t++)e=r[t],a.push(s(100*e.offset)+"% "+e.color);return a.join(",")}}),Z=X.extend({init:function(e){var t=this;X.fn.init.call(t,e),t.template=Z.template,t.template||(t.template=Z.template=y("<kvml:fill type='gradient' angle='#= 270 - d.options.rotation #' colors='#= d.renderColors() #' opacity='#= d.options.opacity #' />"))},options:{rotation:0}}),J=X.extend({init:function(e){var t=this;X.fn.init.call(t,e),t.template=J.template,t.template||(t.template=J.template=y("<kvml:fill type='gradienttitle' focus='100%' focusposition='#= d.focusPosition() #'colors='#= d.renderColors() #' color='#= d.firstColor() #' color2='#= d.lastColor() #' opacity='#= d.options.opacity #' />"))},focusPosition:function(){var e=this.options,t=e.bbox,n=e.cx,i=e.cy,r=Math.max(0,Math.min(1,(n-t.x1)/t.width())),o=Math.max(0,Math.min(1,(i-t.y1)/t.height()));return T(r,E)+" "+T(o,E)},firstColor:function(){var e=this.options.stops;return e[0].color},lastColor:function(){var e=this.options.stops;return e[e.length-1].color}});e.prototype={decorate:function(e){var t,n,i=e.options,r=this.view;return i.overlay&&(n=i.overlay.bbox,t=r.buildGradient(h({},i.overlay,{_overlayFill:i.fill,_bboxHash:b(n)?n.getHash():""}))),t?(delete i.overlay,i.fill=h(a(i.fill,t),{opacity:i.fillOpacity}),e):e}},t.prototype={decorate:function(e){var t=this,n=t.view,i=e.options,r=i.fill;return r&&r.supportVML!==!1&&(r.gradient&&(r=n.buildGradient(r)),typeof r===M&&(e.fill=n.createGradient(r))),e}},n.prototype={decorate:function(e){var t=this,n=t.view,i=n.definitions[e.options.clipPathId];return i?(i=i.clone(),i.options.id=x(),i.children.push(e),i):e}},s=p.extend({init:function(e){this.view=e},decorate:function(e){var t,n=this,i=n.view,r=i.options,o=e.options.animation;return o&&o.type===A&&r.transitions?(t=new K(new m(0,0,r.width,r.height),{id:x(),inline:r.inline}),i.animations.push(new _(t,{size:r.width})),t.children.push(e),t):e}}),u.support.browser.msie&&f.ViewFactory.current.register("vml",B,20),h(f,{VMLCircle:Y,VMLClipAnimationDecorator:s,VMLClipDecorator:n,VMLClipRect:K,VMLFill:V,VMLGroup:Q,VMLLine:j,VMLMultiLine:q,VMLLinearGradient:Z,VMLOverlayDecorator:e,VMLPath:W,VMLRadialGradient:J,VMLRing:G,VMLSector:$,VMLStroke:N,VMLText:L,VMLTextBox:O,VMLView:B,blendColors:r,blendGradient:a})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()});