/** 
 * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2016 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(t,define){define("util/main.min",["kendo.core.min"],t)}(function(){return function(){function t(t){return typeof t!==F}function e(t,e){var i=n(e);return z.round(t*i)/i}function n(t){return t?z.pow(10,t):1}function i(t,e,n){return z.max(z.min(t,n),e)}function r(t){return t*D}function o(t){return t/D}function s(t){return"number"==typeof t&&!isNaN(t)}function a(e,n){return t(e)?e:n}function h(t){return t*t}function l(t){var e,n=[];for(e in t)n.push(e+t[e]);return n.sort().join("")}function c(t){var e,n=2166136261;for(e=0;e<t.length;++e)n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24),n^=t.charCodeAt(e);return n>>>0}function u(t){return c(l(t))}function f(t){var e,n=t.length,i=L,r=I;for(e=0;e<n;e++)r=z.max(r,t[e]),i=z.min(i,t[e]);return{min:i,max:r}}function d(t){return f(t).min}function p(t){return f(t).max}function m(t){return v(t).min}function g(t){return v(t).max}function v(t){var e,n,i,r=L,o=I;for(e=0,n=t.length;e<n;e++)i=t[e],null!==i&&isFinite(i)&&(r=z.min(r,i),o=z.max(o,i));return{min:r===L?void 0:r,max:o===I?void 0:o}}function x(t){if(t)return t[t.length-1]}function y(t,e){return t.push.apply(t,e),t}function w(t){return M.template(t,{useWithBlock:!1,paramName:"d"})}function b(e,n){return t(n)&&null!==n?" "+e+"='"+n+"' ":""}function _(t){var e,n="";for(e=0;e<t.length;e++)n+=b(t[e][0],t[e][1]);return n}function C(e){var n,i,r="";for(n=0;n<e.length;n++)i=e[n][1],t(i)&&(r+=e[n][0]+":"+i+";");if(""!==r)return r}function T(t){return"string"!=typeof t&&(t+="px"),t}function k(t){var e,n,i=[];if(t)for(e=M.toHyphens(t).split("-"),n=0;n<e.length;n++)i.push("k-pos-"+e[n]);return i.join(" ")}function S(e){return""===e||null===e||"none"===e||"transparent"===e||!t(e)}function E(t){for(var e={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"},n=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],i="";t>0;)t<n[0]?n.shift():(i+=e[n[0]],t-=n[0]);return i}function P(t){var e,n,i,r,o;for(t=t.toLowerCase(),e={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3},n=0,i=0,r=0;r<t.length;++r){if(o=e[t.charAt(r)],!o)return null;n+=o,o>i&&(n-=2*i),i=o}return n}function A(t){var e=Object.create(null);return function(){var n,i="";for(n=arguments.length;--n>=0;)i+=":"+arguments[n];return i in e?e[i]:e[i]=t.apply(this,arguments)}}function O(t){for(var e,n,i=[],r=0,o=t.length;r<o;)e=t.charCodeAt(r++),e>=55296&&e<=56319&&r<o?(n=t.charCodeAt(r++),56320==(64512&n)?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),r--)):i.push(e);return i}function N(t){return t.map(function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)}).join("")}function R(t,e){function n(t,n){for(var i=[],r=0,o=0,s=0;r<t.length&&o<n.length;)e(t[r],n[o])<=0?i[s++]=t[r++]:i[s++]=n[o++];return r<t.length&&i.push.apply(i,t.slice(r)),o<n.length&&i.push.apply(i,n.slice(o)),i}return t.length<2?t.slice():function i(t){var e,r,o;return t.length<=1?t:(e=Math.floor(t.length/2),r=t.slice(0,e),o=t.slice(e),r=i(r),o=i(o),n(r,o))}(t)}var z=Math,M=window.kendo,B=M.deepExtend,D=z.PI/180,L=Number.MAX_VALUE,I=-Number.MAX_VALUE,F="undefined",G=Date.now;G||(G=function(){return(new Date).getTime()}),B(M,{util:{MAX_NUM:L,MIN_NUM:I,append:y,arrayLimits:f,arrayMin:d,arrayMax:p,defined:t,deg:o,hashKey:c,hashObject:u,isNumber:s,isTransparent:S,last:x,limitValue:i,now:G,objectKey:l,round:e,rad:r,renderAttr:b,renderAllAttr:_,renderPos:k,renderSize:T,renderStyle:C,renderTemplate:w,sparseArrayLimits:v,sparseArrayMin:m,sparseArrayMax:g,sqr:h,valueOrDefault:a,romanToArabic:P,arabicToRoman:E,memoize:A,ucs2encode:N,ucs2decode:O,mergeSort:R}}),M.drawing.util=M.util,M.dataviz.util=M.util}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("util/text-metrics.min",["kendo.core.min","util/main.min"],t)}(function(){!function(t){function e(){return{width:0,height:0,baseline:0}}function n(t,e,n){return u.current.measure(t,e,n)}function i(t,e){var n=[];if(t.length>0&&document.fonts){try{n=t.map(function(t){return document.fonts.load(t)})}catch(i){o.logToConsole(i)}Promise.all(n).then(e,e)}else e()}var r=document,o=window.kendo,s=o.Class,a=o.util,h=a.defined,l=s.extend({init:function(t){this._size=t,this._length=0,this._map={}},put:function(t,e){var n=this,i=n._map,r={key:t,value:e};i[t]=r,n._head?(n._tail.newer=r,r.older=n._tail,n._tail=r):n._head=n._tail=r,n._length>=n._size?(i[n._head.key]=null,n._head=n._head.newer,n._head.older=null):n._length++},get:function(t){var e=this,n=e._map[t];if(n)return n===e._head&&n!==e._tail&&(e._head=n.newer,e._head.older=null),n!==e._tail&&(n.older&&(n.older.newer=n.newer,n.newer.older=n.older),n.older=e._tail,n.newer=null,e._tail.newer=n,e._tail=n),n.value}}),c=t("<div style='position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: nowrap!important;' />")[0],u=s.extend({init:function(t){this._cache=new l(1e3),this._initOptions(t)},options:{baselineMarkerSize:1},measure:function(n,i,o){var s,l,u,f,d,p,m,g;if(!n)return e();if(s=a.objectKey(i),l=a.hashKey(n+s),u=this._cache.get(l),u)return u;f=e(),d=o?o:c,p=this._baselineMarker().cloneNode(!1);for(m in i)g=i[m],h(g)&&(d.style[m]=g);return t(d).text(n),d.appendChild(p),r.body.appendChild(d),(n+"").length&&(f.width=d.offsetWidth-this.options.baselineMarkerSize,f.height=d.offsetHeight,f.baseline=p.offsetTop+this.options.baselineMarkerSize),f.width>0&&f.height>0&&this._cache.put(l,f),d.parentNode.removeChild(d),f},_baselineMarker:function(){return t("<div class='k-baseline-marker' style='display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;' />")[0]}});u.current=new u,o.util.TextMetrics=u,o.util.LRUCache=l,o.util.loadFonts=i,o.util.measureText=n}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("util/base64.min",["util/main.min"],t)}(function(){return function(){function t(t){var n,i,r,s,a,h,l,c="",u=0;for(t=e(t);u<t.length;)n=t.charCodeAt(u++),i=t.charCodeAt(u++),r=t.charCodeAt(u++),s=n>>2,a=(3&n)<<4|i>>4,h=(15&i)<<2|r>>6,l=63&r,isNaN(i)?h=l=64:isNaN(r)&&(l=64),c=c+o.charAt(s)+o.charAt(a)+o.charAt(h)+o.charAt(l);return c}function e(t){var e,n,i="";for(e=0;e<t.length;e++)n=t.charCodeAt(e),n<128?i+=r(n):n<2048?(i+=r(192|n>>>6),i+=r(128|63&n)):n<65536&&(i+=r(224|n>>>12),i+=r(128|n>>>6&63),i+=r(128|63&n));return i}var n=window.kendo,i=n.deepExtend,r=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i(n.util,{encodeBase64:t,encodeUTF8:e})}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("mixins/observers.min",["kendo.core.min"],t)}(function(){return function(t){var e=Math,n=window.kendo,i=n.deepExtend,r=t.inArray,o={observers:function(){return this._observers=this._observers||[]},addObserver:function(t){return this._observers?this._observers.push(t):this._observers=[t],this},removeObserver:function(t){var e=this.observers(),n=r(t,e);return n!=-1&&e.splice(n,1),this},trigger:function(t,e){var n,i,r=this._observers;if(r&&!this._suspended)for(i=0;i<r.length;i++)n=r[i],n[t]&&n[t](e);return this},optionsChange:function(t){t=t||{},t.element=this,this.trigger("optionsChange",t)},geometryChange:function(){this.trigger("geometryChange",{element:this})},suspend:function(){return this._suspended=(this._suspended||0)+1,this},resume:function(){return this._suspended=e.max((this._suspended||0)-1,0),this},_observerField:function(t,e){this[t]&&this[t].removeObserver(this),this[t]=e,e.addObserver(this)}};i(n,{mixins:{ObserversMixin:o}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/geometry.min",["util/main.min","mixins/observers.min"],t)}(function(){return function(){function t(t){return null===t?null:t instanceof E?t:new E(t)}function e(t){return t&&N.isFunction(t.matrix)?t.matrix():t}function n(t,e,n,i){var r=0,o=0;return i&&(r=A.atan2(i.c*n,i.a*e),0!==i.b&&(o=A.atan2(i.d*n,i.b*e))),{x:r,y:o}}function i(t,e){for(;t<e;)t+=90;return t}function r(t,e){var n,i,r;for(n=0;n<e.length;n++)i=e[n],r=i.charAt(0).toUpperCase()+i.substring(1,i.length),t["set"+r]=o(i),t["get"+r]=s(i)}function o(t){return function(e){return this[t]!==e&&(this[t]=e,this.geometryChange()),this}}function s(t){return function(){return this[t]}}function a(t,e,n){t>e&&(e+=360);var i=A.abs(e-t);return n||(i=360-i),i}function h(t,e,n,i,r,o){var s=F((r-t)/n,3),a=F((o-e)/i,3);return F(I(A.atan2(a,s)))}function l(t,e,n,i,r,o,s,l){var c,u,f,d,p,m,g,v,x,y,w,b,_,C,T,k,S,E;if(e!==i)x=n-t,y=i-e,w=O(r,2),b=O(o,2),_=(b*x*(t+n)+w*y*(e+i))/(2*w*y),C=_-i,T=-(x*b)/(w*y),p=1/w+O(T,2)/b,m=2*(T*C/b-n/w),g=O(n,2)/w+O(C,2)/b-1,v=A.sqrt(O(m,2)-4*p*g),c=(-m-v)/(2*p),u=_+T*c,f=(-m+v)/(2*p),d=_+T*f;else{if(t===n)return!1;m=-2*i,g=O((n-t)*o/(2*r),2)+O(i,2)-O(o,2),v=A.sqrt(O(m,2)-4*g),c=f=(t+n)/2,u=(-m-v)/2,d=(-m+v)/2}return k=h(c,u,r,o,t,e),S=h(c,u,r,o,n,i),E=a(k,S,l),(s&&E<=180||!s&&E>180)&&(c=f,u=d,k=h(c,u,r,o,t,e),S=h(c,u,r,o,n,i)),{center:new $(c,u),startAngle:k,endAngle:S}}function c(t,e,n,i){if(0===t)return b(e,n,i);var r,o,s,a,h,l,c,u=(3*t*n-A.pow(e,2))/(3*A.pow(t,2)),f=(2*A.pow(e,3)-9*t*e*n+27*A.pow(t,2)*i)/(27*A.pow(t,3)),d=A.pow(u/3,3)+A.pow(f/2,2),p=new P(0,1),m=-e/(3*t),g=[];return d<0?(r=new P(-f/2,A.sqrt(-d)).nthRoot(3),o=new P(-f/2,(-A.sqrt(-d))).nthRoot(3)):(r=-f/2+A.sqrt(d),r=new P(x(r)*A.pow(A.abs(r),1/3)),o=-f/2-A.sqrt(d),o=new P(x(o)*A.pow(A.abs(o),1/3))),s=r.add(o),l=r.add(o).multiplyConstant(-.5),c=r.add(o.negate()).multiplyConstant(A.sqrt(3)/2),a=l.add(p.multiply(c)),h=l.add(p.negate().multiply(c)),s.isReal()&&g.push(F(s.real+m,q)),a.isReal()&&g.push(F(a.real+m,q)),h.isReal()&&g.push(F(h.real+m,q)),g}function u(t,e){return[-t[0][e]+3*t[1][e]-3*t[2][e]+t[3][e],3*(t[0][e]-2*t[1][e]+t[2][e]),3*(-t[0][e]+t[1][e]),t[0][e]]}function f(t,e,n){var i=1-t;return A.pow(i,3)*n[0][e]+3*A.pow(i,2)*t*n[1][e]+3*A.pow(t,2)*i*n[2][e]+A.pow(t,3)*n[3][e]}function d(t,e,n){var i,r,o,s=u(t,"x"),a=c(s[0],s[1],s[2],s[3]-e.x),h=0;for(o=0;o<a.length;o++)i=f(a[o],"y",t),r=g(i,e.y)||i>e.y,r&&((0===a[o]||1===a[o])&&n.bottomRight().x>e.x||0<a[o]&&a[o]<1)&&h++;return h}function p(t,e,n){var i,r,o,s,a,h;return t.x!=e.x&&(r=A.min(t.x,e.x),o=A.max(t.x,e.x),s=A.min(t.y,e.y),a=A.max(t.y,e.y),h=r<=n.x&&n.x<o,i=s==a?n.y<=s&&h:h&&(a-s)*((t.x-e.x)*(t.y-e.y)>0?n.x-r:o-n.x)/(o-r)+s-n.y>=0),i?1:0}function m(t,e,n,i){var r=e.x-t.x,o=i.x-n.x,s=e.y-t.y,a=i.y-n.y,h=t.x-n.x,l=t.y-n.y,c=r*a-o*s,u=(r*l-s*h)/c,f=(o*l-a*h)/c;if(u>=0&&u<=1&&f>=0&&f<=1)return new $(t.x+f*r,t.y+f*s)}function g(t,e,n){return 0===F(A.abs(t-e),n||q)}function v(t,e,n){return t<e||g(t,e,n)}function x(t){return t<0?-1:1}function y(e,n,i){var r=B.deg(A.atan2(n.y-e.y,n.x-e.x)),o=i.transformCopy(t().rotate(-r,e));return o.x<e.x}function w(t,e,n,i,r){var o,s,a=u(t,i),h=c(a[0],a[1],a[2],a[3]-e[i]);for(s=0;s<h.length;s++)if(0<=h[s]&&h[s]<=1&&(o=f(h[s],n,t),A.abs(o-e[n])<=r))return!0}function b(t,e,n){var i=A.sqrt(A.pow(e,2)-4*t*n);return[(-e+i)/(2*t),(-e-i)/(2*t)]}var _,C,T,k,S,E,P,A=Math,O=A.pow,N=window.kendo,R=N.Class,z=N.deepExtend,M=N.mixins.ObserversMixin,B=N.util,D=B.defined,L=B.rad,I=B.deg,F=B.round,G=A.PI/2,j=B.MIN_NUM,H=B.MAX_NUM,q=10,$=R.extend({init:function(t,e){this.x=t||0,this.y=e||0},equals:function(t){return t&&t.x===this.x&&t.y===this.y},clone:function(){return new $(this.x,this.y)},rotate:function(e,n){return this.transform(t().rotate(e,n))},translate:function(t,e){return this.x+=t,this.y+=e,this.geometryChange(),this},translateWith:function(t){return this.translate(t.x,t.y)},move:function(t,e){return this.x=this.y=0,this.translate(t,e)},scale:function(t,e){return D(e)||(e=t),this.x*=t,this.y*=e,this.geometryChange(),this},scaleCopy:function(t,e){return this.clone().scale(t,e)},transform:function(t){var n=e(t),i=this.x,r=this.y;return this.x=n.a*i+n.c*r+n.e,this.y=n.b*i+n.d*r+n.f,this.geometryChange(),this},transformCopy:function(t){var e=this.clone();return t&&e.transform(t),e},distanceTo:function(t){var e=this.x-t.x,n=this.y-t.y;return A.sqrt(e*e+n*n)},round:function(t){return this.x=F(this.x,t),this.y=F(this.y,t),this.geometryChange(),this},toArray:function(t){var e=D(t),n=e?F(this.x,t):this.x,i=e?F(this.y,t):this.y;return[n,i]}});r($.fn,["x","y"]),z($.fn,M),$.fn.toString=function(t,e){var n=this.x,i=this.y;return D(t)&&(n=F(n,t),i=F(i,t)),e=e||" ",n+e+i},$.create=function(t,e){if(D(t))return t instanceof $?t:1===arguments.length&&2===t.length?new $(t[0],t[1]):new $(t,e)},$.min=function(){var t,e,n=B.MAX_NUM,i=B.MAX_NUM;for(t=0;t<arguments.length;t++)e=arguments[t],n=A.min(e.x,n),i=A.min(e.y,i);return new $(n,i)},$.max=function(){var t,e,n=B.MIN_NUM,i=B.MIN_NUM;for(t=0;t<arguments.length;t++)e=arguments[t],n=A.max(e.x,n),i=A.max(e.y,i);return new $(n,i)},$.minPoint=function(){return new $(j,j)},$.maxPoint=function(){return new $(H,H)},$.ZERO=new $(0,0),_=R.extend({init:function(t,e){this.width=t||0,this.height=e||0},equals:function(t){return t&&t.width===this.width&&t.height===this.height},clone:function(){return new _(this.width,this.height)},toArray:function(t){var e=D(t),n=e?F(this.width,t):this.width,i=e?F(this.height,t):this.height;return[n,i]}}),r(_.fn,["width","height"]),z(_.fn,M),_.create=function(t,e){if(D(t))return t instanceof _?t:1===arguments.length&&2===t.length?new _(t[0],t[1]):new _(t,e)},_.ZERO=new _(0,0),C=R.extend({init:function(t,e){this.setOrigin(t||new $),this.setSize(e||new _)},clone:function(){return new C(this.origin.clone(),this.size.clone())},equals:function(t){return t&&t.origin.equals(this.origin)&&t.size.equals(this.size)},setOrigin:function(t){return this._observerField("origin",$.create(t)),this.geometryChange(),this},getOrigin:function(){return this.origin},setSize:function(t){return this._observerField("size",_.create(t)),this.geometryChange(),this},getSize:function(){return this.size},width:function(){return this.size.width},height:function(){return this.size.height},topLeft:function(){return this.origin.clone()},bottomRight:function(){return this.origin.clone().translate(this.width(),this.height())},topRight:function(){return this.origin.clone().translate(this.width(),0)},bottomLeft:function(){return this.origin.clone().translate(0,this.height())},center:function(){return this.origin.clone().translate(this.width()/2,this.height()/2)},bbox:function(t){var e=this.topLeft().transformCopy(t),n=this.topRight().transformCopy(t),i=this.bottomRight().transformCopy(t),r=this.bottomLeft().transformCopy(t);return C.fromPoints(e,n,i,r)},transformCopy:function(t){return C.fromPoints(this.topLeft().transform(t),this.bottomRight().transform(t))},expand:function(t,e){return D(e)||(e=t),this.size.width+=2*t,this.size.height+=2*e,this.origin.translate(-t,-e),this},expandCopy:function(t,e){return this.clone().expand(t,e)},containsPoint:function(t){var e=this.origin,n=this.bottomRight();return!(t.x<e.x||t.y<e.y||n.x<t.x||n.y<t.y)},_isOnPath:function(t,e){var n=this.expandCopy(e,e),i=this.expandCopy(-e,-e);return n.containsPoint(t)&&!i.containsPoint(t)}}),z(C.fn,M),C.fromPoints=function(){var t=$.min.apply(this,arguments),e=$.max.apply(this,arguments),n=new _(e.x-t.x,e.y-t.y);return new C(t,n)},C.union=function(t,e){return C.fromPoints($.min(t.topLeft(),e.topLeft()),$.max(t.bottomRight(),e.bottomRight()))},C.intersect=function(t,e){if(t={left:t.topLeft().x,top:t.topLeft().y,right:t.bottomRight().x,bottom:t.bottomRight().y},e={left:e.topLeft().x,top:e.topLeft().y,right:e.bottomRight().x,bottom:e.bottomRight().y},t.left<=e.right&&e.left<=t.right&&t.top<=e.bottom&&e.top<=t.bottom)return C.fromPoints(new $(A.max(t.left,e.left),A.max(t.top,e.top)),new $(A.min(t.right,e.right),A.min(t.bottom,e.bottom)))},T=R.extend({init:function(t,e){this.setCenter(t||new $),this.setRadius(e||0)},setCenter:function(t){return this._observerField("center",$.create(t)),this.geometryChange(),this},getCenter:function(){return this.center},equals:function(t){return t&&t.center.equals(this.center)&&t.radius===this.radius},clone:function(){return new T(this.center.clone(),this.radius)},pointAt:function(t){return this._pointAt(L(t))},bbox:function(t){var e,i,r,o,s=$.maxPoint(),a=$.minPoint(),h=n(this.center,this.radius,this.radius,t);for(e=0;e<4;e++)i=this._pointAt(h.x+e*G).transformCopy(t),r=this._pointAt(h.y+e*G).transformCopy(t),o=new $(i.x,r.y),s=$.min(s,o),a=$.max(a,o);return C.fromPoints(s,a)},_pointAt:function(t){var e=this.center,n=this.radius;return new $(e.x-n*A.cos(t),e.y-n*A.sin(t))},containsPoint:function(t){var e=this.center,n=A.pow(t.x-e.x,2)+A.pow(t.y-e.y,2)<=A.pow(this.radius,2);return n},_isOnPath:function(t,e){var n=this.center,i=this.radius,r=n.distanceTo(t);return i-e<=r&&r<=i+e}}),r(T.fn,["radius"]),z(T.fn,M),k=R.extend({init:function(t,e){this.setCenter(t||new $),e=e||{},this.radiusX=e.radiusX,this.radiusY=e.radiusY||e.radiusX,this.startAngle=e.startAngle,this.endAngle=e.endAngle,this.anticlockwise=e.anticlockwise||!1},clone:function(){return new k(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})},setCenter:function(t){return this._observerField("center",$.create(t)),this.geometryChange(),this},getCenter:function(){return this.center},MAX_INTERVAL:45,pointAt:function(t){var e=this.center,n=L(t);return new $(e.x+this.radiusX*A.cos(n),e.y+this.radiusY*A.sin(n))},curvePoints:function(){var t,e,n,i=this.startAngle,r=this.anticlockwise?-1:1,o=[this.pointAt(i)],s=i,a=this._arcInterval(),h=a.endAngle-a.startAngle,l=A.ceil(h/this.MAX_INTERVAL),c=h/l;for(t=1;t<=l;t++)e=s+r*c,n=this._intervalCurvePoints(s,e),o.push(n.cp1,n.cp2,n.p2),s=e;return o},bbox:function(t){for(var e,r,o=this,s=o._arcInterval(),a=s.startAngle,h=s.endAngle,l=n(this.center,this.radiusX,this.radiusY,t),c=I(l.x),u=I(l.y),f=o.pointAt(a).transformCopy(t),d=o.pointAt(h).transformCopy(t),p=$.min(f,d),m=$.max(f,d),g=i(c,a),v=i(u,a);g<h||v<h;)g<h&&(e=o.pointAt(g).transformCopy(t),g+=90),v<h&&(r=o.pointAt(v).transformCopy(t),v+=90),f=new $(e.x,r.y),p=$.min(p,f),m=$.max(m,f);return C.fromPoints(p,m)},_arcInterval:function(){var t,e=this.startAngle,n=this.endAngle,i=this.anticlockwise;return i&&(t=e,e=n,n=t),(e>n||i&&e===n)&&(n+=360),{startAngle:e,endAngle:n}},_intervalCurvePoints:function(t,e){var n=this,i=n.pointAt(t),r=n.pointAt(e),o=n._derivativeAt(t),s=n._derivativeAt(e),a=(L(e)-L(t))/3,h=new $(i.x+a*o.x,i.y+a*o.y),l=new $(r.x-a*s.x,r.y-a*s.y);return{p1:i,cp1:h,cp2:l,p2:r}},_derivativeAt:function(t){var e=this,n=L(t);return new $(-e.radiusX*A.sin(n),e.radiusY*A.cos(n))},containsPoint:function(t){var e,n,i,r=this._arcInterval(),o=r.endAngle-r.startAngle,s=this.center,a=s.distanceTo(t),l=A.atan2(t.y-s.y,t.x-s.x),c=this.radiusX*this.radiusY/A.sqrt(A.pow(this.radiusX,2)*A.pow(A.sin(l),2)+A.pow(this.radiusY,2)*A.pow(A.cos(l),2)),u=this.pointAt(this.startAngle).round(q),f=this.pointAt(this.endAngle).round(q),d=m(s,t.round(q),u,f);return o<180?e=d&&v(s.distanceTo(d),a)&&v(a,c):(n=h(s.x,s.y,this.radiusX,this.radiusY,t.x,t.y),360!=n&&(n=(360+n)%360),i=r.startAngle<=n&&n<=r.endAngle,e=i&&v(a,c)||!i&&(!d||d.equals(t))),e},_isOnPath:function(t,e){var n,i=this._arcInterval(),r=this.center,o=h(r.x,r.y,this.radiusX,this.radiusY,t.x,t.y);return 360!=o&&(o=(360+o)%360),n=i.startAngle<=o&&o<=i.endAngle,n&&this.pointAt(o).distanceTo(t)<=e}}),r(k.fn,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]),z(k.fn,M),k.fromPoints=function(t,e,n,i,r,o){var s=l(t.x,t.y,e.x,e.y,n,i,r,o);return new k(s.center,{startAngle:s.startAngle,endAngle:s.endAngle,radiusX:n,radiusY:i,anticlockwise:0===o})},S=R.extend({init:function(t,e,n,i,r,o){this.a=t||0,this.b=e||0,this.c=n||0,this.d=i||0,this.e=r||0,this.f=o||0},multiplyCopy:function(t){return new S(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)},invert:function(){var t=this.a,e=this.b,n=this.c,i=this.d,r=this.e,o=this.f,s=t*i-e*n;return 0===s?null:new S(i/s,-e/s,-n/s,t/s,(n*o-i*r)/s,(e*r-t*o)/s)},clone:function(){return new S(this.a,this.b,this.c,this.d,this.e,this.f)},equals:function(t){return!!t&&(this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d&&this.e===t.e&&this.f===t.f)},round:function(t){return this.a=F(this.a,t),this.b=F(this.b,t),this.c=F(this.c,t),this.d=F(this.d,t),this.e=F(this.e,t),this.f=F(this.f,t),this},toArray:function(t){var e,n=[this.a,this.b,this.c,this.d,this.e,this.f];if(D(t))for(e=0;e<n.length;e++)n[e]=F(n[e],t);return n}}),S.fn.toString=function(t,e){return this.toArray(t).join(e||",")},S.translate=function(t,e){return new S(1,0,0,1,t,e)},S.unit=function(){return new S(1,0,0,1,0,0)},S.rotate=function(t,e,n){var i=new S;return i.a=A.cos(L(t)),i.b=A.sin(L(t)),i.c=-i.b,i.d=i.a,i.e=e-e*i.a+n*i.b||0,i.f=n-n*i.a-e*i.b||0,i},S.scale=function(t,e){return new S(t,0,0,e,0,0)},S.IDENTITY=S.unit(),E=R.extend({init:function(t){this._matrix=t||S.unit()},clone:function(){return new E(this._matrix.clone())},equals:function(t){return t&&t._matrix.equals(this._matrix)},_optionsChange:function(){this.optionsChange({field:"transform",value:this})},translate:function(t,e){return this._matrix=this._matrix.multiplyCopy(S.translate(t,e)),this._optionsChange(),this},scale:function(t,e,n){return D(e)||(e=t),n&&(n=$.create(n),this._matrix=this._matrix.multiplyCopy(S.translate(n.x,n.y))),this._matrix=this._matrix.multiplyCopy(S.scale(t,e)),n&&(this._matrix=this._matrix.multiplyCopy(S.translate(-n.x,-n.y))),this._optionsChange(),this},rotate:function(t,e){return e=$.create(e)||$.ZERO,this._matrix=this._matrix.multiplyCopy(S.rotate(t,e.x,e.y)),this._optionsChange(),this},multiply:function(t){var n=e(t);return this._matrix=this._matrix.multiplyCopy(n),this._optionsChange(),this},matrix:function(t){return t?(this._matrix=t,this._optionsChange(),this):this._matrix}}),z(E.fn,M),P=function(t,e){this.real=t||0,this.img=e||0},P.fn=P.prototype={add:function(t){return new P(F(this.real+t.real,q),F(this.img+t.img,q))},addConstant:function(t){return new P(this.real+t,this.img)},negate:function(){return new P((-this.real),(-this.img))},multiply:function(t){return new P(this.real*t.real-this.img*t.img,this.real*t.img+this.img*t.real)},multiplyConstant:function(t){return new P(this.real*t,this.img*t)},nthRoot:function(t){var e=A.atan2(this.img,this.real),n=A.sqrt(A.pow(this.img,2)+A.pow(this.real,2)),i=A.pow(n,1/t);return new P(i*A.cos(e/t),i*A.sin(e/t))},equals:function(t){return this.real===t.real&&this.img===t.img},isReal:function(){return 0===this.img}},z(N,{geometry:{Arc:k,Circle:T,curveIntersectionsCount:d,lineIntersectionsCount:p,Matrix:S,Point:$,Rect:C,Size:_,Transformation:E,transform:t,toMatrix:e,isOutOfEndPoint:y,hasRootsInRange:w}}),N.dataviz.geometry=N.geometry}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/core.min",["drawing/geometry.min","kendo.popup.min"],t)}(function(){!function(t){function e(t){var e,n;return t.touch?(e=t.x.location,n=t.y.location):(e=t.pageX||t.clientX||0,n=t.pageY||t.clientY||0),{x:e,y:n}}var n,i,r,o,s=t.noop,a=Object.prototype.toString,h=window.kendo,l=h._outerWidth,c=h._outerHeight,u=h.Class,f=h.ui.Widget,d=h.deepExtend,p=h.util,m=p.defined,g=p.limitValue,v=h.geometry,x=t.proxy,y=".kendo",w='<div class="k-tooltip"><div class="k-tooltip-content"></div></div>',b='<div class="k-tooltip-button"><a href="\\#" class="k-icon k-i-close">close</a></div>',_=f.extend({init:function(t,e){this.options=d({},this.options,e),f.fn.init.call(this,t,this.options),this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._mousemove=this._handler("mousemove"),this._visual=new h.drawing.Group,this.options.width&&this.element.css("width",this.options.width),this.options.height&&this.element.css("height",this.options.height),this._enableTracking()},options:{name:"Surface",tooltip:{}},events:["click","mouseenter","mouseleave","mousemove","resize","tooltipOpen","tooltipClose"],draw:function(t){this._visual.children.push(t)},clear:function(){this._visual.children=[],this.hideTooltip()},destroy:function(){this._visual=null,this._tooltip&&(this._tooltip.destroy(),delete this._tooltip),f.fn.destroy.call(this)},exportVisual:function(){return this._visual},getSize:function(){return{width:this.element.width(),height:this.element.height()}},setSize:function(t){this.element.css({width:t.width,height:t.height}),this._size=t,this._resize()},eventTarget:function(e){for(var n,i=t(e.touch?e.touch.initialTouch:e.target);!n&&i.length>0&&(n=i[0]._kendoNode,!i.is(this.element)&&0!==i.length);)i=i.parent();if(n)return n.srcElement},showTooltip:function(t,e){this._tooltip&&this._tooltip.show(t,e)},hideTooltip:function(){this._tooltip&&this._tooltip.hide()},suspendTracking:function(){this._suspendedTracking=!0,this.hideTooltip()},resumeTracking:function(){this._suspendedTracking=!1},_resize:s,_handler:function(t){var e=this;return function(n){var i=e.eventTarget(n);i&&!e._suspendedTracking&&e.trigger(t,{element:i,originalEvent:n,type:t})}},_enableTracking:function(){h.ui.Popup&&(this._tooltip=new o(this,this.options.tooltip||{}))},_elementOffset:function(){var t=this.element,e=t.offset(),n=parseInt(t.css("paddingLeft"),10),i=parseInt(t.css("paddingTop"),10);return{left:e.left+n,top:e.top+i}},_surfacePoint:function(t){var n=this._elementOffset(),i=e(t),r=i.x-n.left,o=i.y-n.top;return new v.Point(r,o)}});h.ui.plugin(_),_.create=function(t,e){return r.current.create(t,e)},n=u.extend({init:function(t){this.childNodes=[],this.parent=null,t&&(this.srcElement=t,this.observe())},destroy:function(){var t,e;for(this.srcElement&&this.srcElement.removeObserver(this),t=this.childNodes,e=0;e<t.length;e++)this.childNodes[e].destroy();this.parent=null},load:s,observe:function(){this.srcElement&&this.srcElement.addObserver(this)},append:function(t){this.childNodes.push(t),t.parent=this},insertAt:function(t,e){this.childNodes.splice(e,0,t),t.parent=this},remove:function(t,e){var n,i=t+e;for(n=t;n<i;n++)this.childNodes[n].removeSelf();this.childNodes.splice(t,e)},removeSelf:function(){this.clear(),this.destroy()},clear:function(){this.remove(0,this.childNodes.length)},invalidate:function(){this.parent&&this.parent.invalidate()},geometryChange:function(){this.invalidate()},optionsChange:function(){this.invalidate()},childrenChange:function(t){"add"===t.action?this.load(t.items,t.index):"remove"===t.action&&this.remove(t.index,t.items.length),this.invalidate()}}),i=u.extend({init:function(t,e){var n,i;this.prefix=e||"";for(n in t)i=t[n],i=this._wrap(i,n),this[n]=i},get:function(t){return h.getter(t,!0)(this)},set:function(t,e){var n,i=h.getter(t,!0)(this);i!==e&&(n=this._set(t,this._wrap(e,t)),n||this.optionsChange({field:this.prefix+t,value:e}))},_set:function(t,e){var n,r,o,s=t.indexOf(".")>=0;if(s)for(n=t.split("."),r="";n.length>1;){if(r+=n.shift(),o=h.getter(r,!0)(this),o||(o=new i({},r+"."),o.addObserver(this),this[r]=o),o instanceof i)return o.set(n.join("."),e),s;r+="."}return this._clear(t),h.setter(t)(this,e),s},_clear:function(t){var e=h.getter(t,!0)(this);e&&e.removeObserver&&e.removeObserver(this)},_wrap:function(t,e){var n=a.call(t);return null!==t&&m(t)&&"[object Object]"===n&&(t instanceof i||t instanceof u||(t=new i(t,this.prefix+e+".")),t.addObserver(this)),t}}),d(i.fn,h.mixins.ObserversMixin),r=function(){this._items=[]},r.prototype={register:function(t,e,n){var i=this._items,r=i[0],o={name:t,type:e,order:n};!r||n<r.order?i.unshift(o):i.push(o)},create:function(t,e){var n,i,r=this._items,o=r[0];if(e&&e.type)for(n=e.type.toLowerCase(),i=0;i<r.length;i++)if(r[i].name===n){o=r[i];break}return o?new o.type(t,e):void h.logToConsole("Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\n- The browser does not support SVG, VML and Canvas. User agent: "+navigator.userAgent+"\n- The Kendo UI scripts are not fully loaded")}},r.current=new r,o=u.extend({init:function(e,n){this.element=t(w),this.content=this.element.children(".k-tooltip-content"),n=n||{},this.options=d({},this.options,this._tooltipOptions(n)),this.popup=new h.ui.Popup(this.element,{appendTo:n.appendTo,animation:n.animation,copyAnchorStyles:!1,collision:"fit fit"}),this._openPopupHandler=t.proxy(this._openPopup,this),this.surface=e,this._bindEvents()},options:{position:"top",showOn:"mouseenter",offset:7,autoHide:!0,hideDelay:0,showAfter:100},_bindEvents:function(){this._showHandler=x(this._showEvent,this),this._surfaceLeaveHandler=x(this._surfaceLeave,this),this._mouseleaveHandler=x(this._mouseleave,this),this._mousemoveHandler=x(this._mousemove,this),this.surface.bind("click",this._showHandler),this.surface.bind("mouseenter",this._showHandler),this.surface.bind("mouseleave",this._mouseleaveHandler),this.surface.bind("mousemove",this._mousemoveHandler),this.surface.element.on("mouseleave"+y,this._surfaceLeaveHandler),this.element.on("click"+y,".k-tooltip-button",x(this._hideClick,this))},destroy:function(){var t=this.popup;this.surface.unbind("click",this._showHandler),this.surface.unbind("mouseenter",this._showHandler),this.surface.unbind("mouseleave",this._mouseleaveHandler),this.surface.unbind("mousemove",this._mousemoveHandler),this.surface.element.off("mouseleave"+y,this._surfaceLeaveHandler),this.element.off("click"+y),t&&(t.destroy(),delete this.popup),clearTimeout(this._timeout),delete this.popup,delete this.element,delete this.content,delete this.surface},_tooltipOptions:function(t){return t=t||{},{position:t.position,showOn:t.showOn,offset:t.offset,autoHide:t.autoHide,width:t.width,height:t.height,content:t.content,shared:t.shared,hideDelay:t.hideDelay,showAfter:t.showAfter}},_tooltipShape:function(t){for(;t&&!t.options.tooltip;)t=t.parent;return t},_updateContent:function(t,e,n){var i=n.content;if(h.isFunction(i)&&(i=i({element:e,target:t})),i)return this.content.html(i),!0},_position:function(t,n,i,r){var o,s=n.position,a=n.offset||0,h=this.surface,l=h._elementOffset(),c=h.getSize(),u=h._offset,f=t.bbox(),d=i.width,p=i.height,m=0,v=0;return f.origin.translate(l.left,l.top),u&&f.origin.translate(-u.x,-u.y),"cursor"==s&&r?(o=e(r),m=o.x-d/2,v=o.y-p-a):"left"==s?(m=f.origin.x-d-a,v=f.center().y-p/2):"right"==s?(m=f.bottomRight().x+a,v=f.center().y-p/2):"bottom"==s?(m=f.center().x-d/2,v=f.bottomRight().y+a):(m=f.center().x-d/2,v=f.origin.y-p-a),{left:g(m,l.left,l.left+c.width),top:g(v,l.top,l.top+c.height)}},show:function(t,e){this._show(t,t,d({},this.options,this._tooltipOptions(t.options.tooltip),e))},hide:function(){var t=this._current;delete this._current,clearTimeout(this._showTimeout),this.popup.visible()&&t&&!this.surface.trigger("tooltipClose",{element:t.shape,target:t.target,popup:this.popup})&&this.popup.close()},_hideClick:function(t){t.preventDefault(),this.hide()},_show:function(t,e,n,i,r){var o,s,a=this._current;clearTimeout(this._timeout),a&&(a.shape===e&&n.shared||a.target===t)||(clearTimeout(this._showTimeout),!this.surface.trigger("tooltipOpen",{element:e,target:t,popup:this.popup})&&this._updateContent(t,e,n)&&(this._autoHide(n),o=this._measure(n),s=this.popup,s.visible()&&s.close(!0),this._current={options:n,elementSize:o,shape:e,target:t,position:this._position(n.shared?e:t,n,o,i)},r?this._showTimeout=setTimeout(this._openPopupHandler,n.showAfter||0):this._openPopup()))},_openPopup:function(){var t=this._current,e=t.position;this.popup.open(e.left,e.top)},_autoHide:function(e){e.autoHide&&this._closeButton&&(this.element.removeClass("k-tooltip-closable"),this._closeButton.remove(),delete this._closeButton),
e.autoHide||this._closeButton||(this.element.addClass("k-tooltip-closable"),this._closeButton=t(b).prependTo(this.element))},_showEvent:function(t){var e,n=this._tooltipShape(t.element);n&&(e=d({},this.options,this._tooltipOptions(n.options.tooltip)),e&&e.showOn==t.type&&this._show(t.element,n,e,t.originalEvent,!0))},_measure:function(t){var e,n,i;return this.element.css({width:"auto",height:"auto"}),i=this.popup.visible(),i||this.popup.wrapper.show(),this.element.css({width:m(t.width)?t.width:"auto",height:m(t.height)?t.height:"auto"}),e=l(this.element),n=c(this.element),i||this.popup.wrapper.hide(),{width:e,height:n}},_mouseleave:function(t){var e,n;this._popupRelatedTarget(t.originalEvent)||(e=this,n=e._current,n&&n.options.autoHide&&(e._timeout=setTimeout(function(){clearTimeout(e._showTimeout),e.hide()},n.options.hideDelay||0)))},_mousemove:function(t){var e,n,i=this._current;i&&t.element&&(e=i.options,"cursor"==e.position&&(n=this._position(t.element,e,i.elementSize,t.originalEvent),i.position=n,this.popup.wrapper.css({left:n.left,top:n.top})))},_surfaceLeave:function(t){this._popupRelatedTarget(t)||(clearTimeout(this._showTimeout),this.hide())},_popupRelatedTarget:function(e){return e.relatedTarget&&t(e.relatedTarget).closest(this.popup.wrapper).length}}),d(h,{drawing:{DASH_ARRAYS:{dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},Color:h.Color,BaseNode:n,OptionsStore:i,Surface:_,SurfaceFactory:r,SurfaceTooltip:o}}),h.dataviz.drawing=h.drawing}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/mixins.min",["drawing/core.min"],t)}(function(){!function(){var t=window.kendo,e=t.deepExtend,n=t.util.defined,i=t.geometry,r="gradient",o=""+i.Matrix.IDENTITY,s={extend:function(t){t.fill=this.fill,t.stroke=this.stroke},fill:function(t,e){var i,o=this.options;return n(t)?(t&&t.nodeType!=r?(i={color:t},n(e)&&(i.opacity=e),o.set("fill",i)):o.set("fill",t),this):o.get("fill")},stroke:function(t,e,i){return n(t)?(this.options.set("stroke.color",t),n(e)&&this.options.set("stroke.width",e),n(i)&&this.options.set("stroke.opacity",i),this):this.options.get("stroke")}},a={extend:function(t,e){t.traverse=function(t){var n,i,r=this[e];for(n=0;n<r.length;n++)i=r[n],i.traverse?i.traverse(t):t(i);return this}}},h={extend:function(t){t.bbox=this.bbox,t.geometryChange=this.geometryChange},bbox:function(t){var e,n,r=i.toMatrix(this.currentTransform(t)),s=r?""+r:o;return this._bboxCache&&this._matrixHash==s?e=this._bboxCache.clone():(e=this._bbox(r),this._bboxCache=e?e.clone():null,this._matrixHash=s),n=this.options.get("stroke.width"),n&&e&&e.expand(n/2),e},geometryChange:function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}};e(t.drawing,{mixins:{Paintable:s,Traversable:a,Measurable:h}})}()},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/shapes.min",["drawing/core.min","drawing/mixins.min","util/text-metrics.min","mixins/observers.min"],t)}(function(){!function(t){function e(t,e,n){var i,r,o,s;for(r=0;r<t.length;r++)o=t[r],o.visible()&&(s=e?o.bbox(n):o.rawBBox(),s&&(i=i?X.Rect.union(i,s):s));return i}function n(t,e){var n,i,r,o;for(i=0;i<t.length;i++)r=t[i],r.visible()&&(o=r.clippedBBox(e),o&&(n=n?X.Rect.union(n,o):o));return n}function i(t,e){for(var n=0;n<e.length;n++)t[e[n]]=r(e[n])}function r(t){var e="_"+t;return function(t){return it(t)?(this._observerField(e,t),this.geometryChange(),this):this[e]}}function o(t,e){for(var n=0;n<e.length;n++)t[e[n]]=s(e[n])}function s(t){var e="_"+t;return function(t){return it(t)?(this._observerField(e,U.create(t)),this.geometryChange(),this):this[e]}}function a(t,e){for(var n=0;n<e.length;n++)t[e[n]]=h(e[n])}function h(t){return function(e){return it(e)?(this.options.set(t,e),this):this.options.get(t)}}function l(){return"kdef"+pt++}function c(t,e,n){b(t,e,n,"x","width")}function u(t,e,n){b(t,e,n,"y","height")}function f(t){w(y(t),"x","y","width")}function d(t){w(y(t),"y","x","height")}function p(t,e){return g(t,e,"x","y","width")}function m(t,e){return g(t,e,"y","x","height")}function g(t,e,n,i,r){var o,s,a,h,l=[],c=x(t,e,r),u=e.origin.clone();for(h=0;h<c.length;h++)for(a=c[h],o=a[0],u[i]=o.bbox.origin[i],T(u,o.bbox,o.element),o.bbox.origin[n]=u[n],w(a,n,i,r),l.push([]),s=0;s<a.length;s++)l[h].push(a[s].element);return l}function v(t,e){var n,i,r=t.clippedBBox(),o=r.size,s=e.size;(s.width<o.width||s.height<o.height)&&(n=J.min(s.width/o.width,s.height/o.height),i=t.transform()||X.transform(),i.scale(n,n),t.transform(i))}function x(t,e,n){var i,r,o,s,a=e.size[n],h=0,l=[],c=[],u=function(){c.push({element:i,bbox:o})};for(s=0;s<t.length;s++)i=t[s],o=i.clippedBBox(),o&&(r=o.size[n],h+r>a?c.length?(l.push(c),c=[],u(),h=r):(u(),l.push(c),c=[],h=0):(u(),h+=r));return c.length&&l.push(c),l}function y(t){var e,n,i,r=[];for(i=0;i<t.length;i++)e=t[i],n=e.clippedBBox(),n&&r.push({element:e,bbox:n});return r}function w(t,e,n,i){var r,o,s,a,h;if(t.length>1)for(r=t[0].bbox,o=new U,h=1;h<t.length;h++)s=t[h].element,a=t[h].bbox,o[e]=r.origin[e]+r.size[i],o[n]=a.origin[n],T(o,a,s),a.origin[e]=o[e],r=a}function b(t,e,n,i,r){var o,s,a;for(n=n||"start",a=0;a<t.length;a++)o=t[a].clippedBBox(),o&&(s=o.origin.clone(),s[i]=_(o.size[r],e,n,i,r),T(s,o,t[a]))}function _(t,e,n,i,r){var o;return o=n==mt?e.origin[i]:n==gt?e.origin[i]+e.size[r]-t:e.origin[i]+(e.size[r]-t)/2}function C(t,e,n){var i=n.transform()||X.transform(),r=i.matrix();r.e+=t,r.f+=e,i.matrix(r),n.transform(i)}function T(t,e,n){C(t.x-e.origin.x,t.y-e.origin.y,n)}var k,S,E,P,A,O,N,R,z,M,B,D,L,I,F,G,j,H=window.kendo,q=H.Class,$=H.deepExtend,X=H.geometry,U=X.Point,Y=X.Size,V=X.Matrix,W=X.toMatrix,Q=H.drawing,Z=Q.OptionsStore,J=Math,K=J.pow,tt=H.util,et=tt.append,nt=tt.arrayLimits,it=tt.defined,rt=tt.last,ot=tt.valueOrDefault,st=H.mixins.ObserversMixin,at=t.inArray,ht=[].push,lt=[].pop,ct=[].splice,ut=[].shift,ft=[].slice,dt=[].unshift,pt=1,mt="start",gt="end",vt="horizontal",xt=q.extend({nodeType:"Element",init:function(t){this._initOptions(t)},_initOptions:function(t){var e,n;t=t||{},e=t.transform,n=t.clip,e&&(t.transform=X.transform(e)),n&&!n.id&&(n.id=l()),this.options=new Z(t),this.options.addObserver(this)},transform:function(t){return it(t)?void this.options.set("transform",X.transform(t)):this.options.get("transform")},parentTransform:function(){for(var t,e,n=this;n.parent;)n=n.parent,t=n.transform(),t&&(e=t.matrix().multiplyCopy(e||V.unit()));if(e)return X.transform(e)},currentTransform:function(t){var e,n,i=this.transform(),r=W(i);if(it(t)||(t=this.parentTransform()),e=W(t),n=r&&e?e.multiplyCopy(r):r||e)return X.transform(n)},visible:function(t){return it(t)?(this.options.set("visible",t),this):this.options.get("visible")!==!1},clip:function(t){var e=this.options;return it(t)?(t&&!t.id&&(t.id=l()),e.set("clip",t),this):e.get("clip")},opacity:function(t){return it(t)?(this.options.set("opacity",t),this):ot(this.options.get("opacity"),1)},clippedBBox:function(t){var e,n=this._clippedBBox(t);if(n)return e=this.clip(),e?X.Rect.intersect(n,e.bbox(t)):n},containsPoint:function(t,e){if(this.visible()){var n=this.currentTransform(e);return n&&(t=t.transformCopy(n.matrix().invert())),this._hasFill()&&this._containsPoint(t)||this._isOnPath&&this._hasStroke()&&this._isOnPath(t)}return!1},_hasFill:function(){var t=this.options.fill;return t&&!tt.isTransparent(t.color)},_hasStroke:function(){var t=this.options.stroke;return t&&t.width>0&&!tt.isTransparent(t.color)},_clippedBBox:function(t){return this.bbox(t)}});$(xt.fn,st),k=q.extend({init:function(t){t=t||[],this.length=0,this._splice(0,t.length,t)},elements:function(t){return t?(this._splice(0,this.length,t),this._change(),this):this.slice(0)},push:function(){var t=arguments,e=ht.apply(this,t);return this._add(t),e},slice:ft,pop:function(){var t=this.length,e=lt.apply(this);return t&&this._remove([e]),e},splice:function(t,e){var n=ft.call(arguments,2),i=this._splice(t,e,n);return this._change(),i},shift:function(){var t=this.length,e=ut.apply(this);return t&&this._remove([e]),e},unshift:function(){var t=arguments,e=dt.apply(this,t);return this._add(t),e},indexOf:function(t){var e,n,i=this;for(e=0,n=i.length;e<n;e++)if(i[e]===t)return e;return-1},_splice:function(t,e,n){var i=ct.apply(this,[t,e].concat(n));return this._clearObserver(i),this._setObserver(n),i},_add:function(t){this._setObserver(t),this._change()},_remove:function(t){this._clearObserver(t),this._change()},_setObserver:function(t){for(var e=0;e<t.length;e++)t[e].addObserver(this)},_clearObserver:function(t){for(var e=0;e<t.length;e++)t[e].removeObserver(this)},_change:function(){}}),$(k.fn,st),S=xt.extend({nodeType:"Group",init:function(t){xt.fn.init.call(this,t),this.children=[]},childrenChange:function(t,e,n){this.trigger("childrenChange",{action:t,items:e,index:n})},append:function(){return et(this.children,arguments),this._reparent(arguments,this),this.childrenChange("add",arguments),this},insert:function(t,e){return this.children.splice(t,0,e),e.parent=this,this.childrenChange("add",[e],t),this},insertAt:function(t,e){return this.insert(e,t)},remove:function(t){var e=at(t,this.children);return e>=0&&(this.children.splice(e,1),t.parent=null,this.childrenChange("remove",[t],e)),this},removeAt:function(t){if(0<=t&&t<this.children.length){var e=this.children[t];this.children.splice(t,1),e.parent=null,this.childrenChange("remove",[e],t)}return this},clear:function(){var t=this.children;return this.children=[],this._reparent(t,null),this.childrenChange("remove",t,0),this},bbox:function(t){return e(this.children,!0,this.currentTransform(t))},rawBBox:function(){return e(this.children,!1)},_clippedBBox:function(t){return n(this.children,this.currentTransform(t))},currentTransform:function(t){return xt.fn.currentTransform.call(this,t)||null},containsPoint:function(t,e){var n,i,r;if(this.visible())for(n=this.children,i=this.currentTransform(e),r=0;r<n.length;r++)if(n[r].containsPoint(t,i))return!0;return!1},_reparent:function(t,e){var n,i,r;for(n=0;n<t.length;n++)i=t[n],r=i.parent,r&&r!=this&&r.remove&&r.remove(i),i.parent=e}}),Q.mixins.Traversable.extend(S.fn,"children"),E=xt.extend({nodeType:"Text",init:function(t,e,n){xt.fn.init.call(this,n),this.content(t),this.position(e||new X.Point),this.options.font||(this.options.font="12px sans-serif"),it(this.options.fill)||this.fill("#000")},content:function(t){return it(t)?(this.options.set("content",t),this):this.options.get("content")},measure:function(){var t=tt.measureText(this.content(),{font:this.options.get("font")});return t},rect:function(){var t=this.measure(),e=this.position().clone();return new X.Rect(e,[t.width,t.height])},bbox:function(t){var e=W(this.currentTransform(t));return this.rect().bbox(e)},rawBBox:function(){return this.rect().bbox()},_containsPoint:function(t){return this.rect().containsPoint(t)}}),Q.mixins.Paintable.extend(E.fn),o(E.fn,["position"]),P=xt.extend({nodeType:"Circle",init:function(t,e){xt.fn.init.call(this,e),this.geometry(t||new X.Circle),it(this.options.stroke)||this.stroke("#000")},_bbox:function(t){return this._geometry.bbox(t)},rawBBox:function(){return this._geometry.bbox()},_containsPoint:function(t){return this.geometry().containsPoint(t)},_isOnPath:function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)}}),Q.mixins.Paintable.extend(P.fn),Q.mixins.Measurable.extend(P.fn),i(P.fn,["geometry"]),A=xt.extend({nodeType:"Arc",init:function(t,e){xt.fn.init.call(this,e),this.geometry(t||new X.Arc),it(this.options.stroke)||this.stroke("#000")},_bbox:function(t){return this._geometry.bbox(t)},rawBBox:function(){return this.geometry().bbox()},toPath:function(){var t,e=new R,n=this.geometry().curvePoints();if(n.length>0)for(e.moveTo(n[0].x,n[0].y),t=1;t<n.length;t+=3)e.curveTo(n[t],n[t+1],n[t+2]);return e},_containsPoint:function(t){return this.geometry().containsPoint(t)},_isOnPath:function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)}}),Q.mixins.Paintable.extend(A.fn),Q.mixins.Measurable.extend(A.fn),i(A.fn,["geometry"]),O=k.extend({_change:function(){this.geometryChange()}}),N=q.extend({init:function(t,e,n){this.anchor(t||new U),this.controlIn(e),this.controlOut(n)},bboxTo:function(t,e){var n,i=this.anchor().transformCopy(e),r=t.anchor().transformCopy(e);return n=this.controlOut()&&t.controlIn()?this._curveBoundingBox(i,this.controlOut().transformCopy(e),t.controlIn().transformCopy(e),r):this._lineBoundingBox(i,r)},_lineBoundingBox:function(t,e){return X.Rect.fromPoints(t,e)},_curveBoundingBox:function(t,e,n,i){var r=[t,e,n,i],o=this._curveExtremesFor(r,"x"),s=this._curveExtremesFor(r,"y"),a=nt([o.min,o.max,t.x,i.x]),h=nt([s.min,s.max,t.y,i.y]);return X.Rect.fromPoints(new U(a.min,h.min),new U(a.max,h.max))},_curveExtremesFor:function(t,e){var n=this._curveExtremes(t[0][e],t[1][e],t[2][e],t[3][e]);return{min:this._calculateCurveAt(n.min,e,t),max:this._calculateCurveAt(n.max,e,t)}},_calculateCurveAt:function(t,e,n){var i=1-t;return K(i,3)*n[0][e]+3*K(i,2)*t*n[1][e]+3*K(t,2)*i*n[2][e]+K(t,3)*n[3][e]},_curveExtremes:function(t,e,n,i){var r,o,s=t-3*e+3*n-i,a=-2*(t-2*e+n),h=t-e,l=J.sqrt(a*a-4*s*h),c=0,u=1;return 0===s?0!==a&&(c=u=-h/a):isNaN(l)||(c=(-a+l)/(2*s),u=(-a-l)/(2*s)),r=J.max(J.min(c,u),0),(r<0||r>1)&&(r=0),o=J.min(J.max(c,u),1),(o>1||o<0)&&(o=1),{min:r,max:o}},_intersectionsTo:function(t,e){var n;return n=this.controlOut()&&t.controlIn()?X.curveIntersectionsCount([this.anchor(),this.controlOut(),t.controlIn(),t.anchor()],e,this.bboxTo(t)):X.lineIntersectionsCount(this.anchor(),t.anchor(),e)},_isOnCurveTo:function(t,e,n,i){var r,o,s,a,h,l,c,u,f=this.bboxTo(t).expand(n,n);if(f.containsPoint(e))return r=this.anchor(),o=this.controlOut(),s=t.controlIn(),a=t.anchor(),"start"==i&&r.distanceTo(e)<=n?!X.isOutOfEndPoint(r,o,e):"end"==i&&a.distanceTo(e)<=n?!X.isOutOfEndPoint(a,s,e):(h=X.hasRootsInRange,l=[r,o,s,a],!(!h(l,e,"x","y",n)&&!h(l,e,"y","x",n))||(c=X.transform().rotate(45,e),u=[r.transformCopy(c),o.transformCopy(c),s.transformCopy(c),a.transformCopy(c)],h(u,e,"x","y",n)||h(u,e,"y","x",n)))},_isOnLineTo:function(t,e,n){var i=this.anchor(),r=t.anchor(),o=tt.deg(J.atan2(r.y-i.y,r.x-i.x)),s=new X.Rect([i.x,i.y-n/2],[i.distanceTo(r),n]);return s.containsPoint(e.transformCopy(X.transform().rotate(-o,i)))},_isOnPathTo:function(t,e,n,i){var r;return r=this.controlOut()&&t.controlIn()?this._isOnCurveTo(t,e,n/2,i):this._isOnLineTo(t,e,n)}}),o(N.fn,["anchor","controlIn","controlOut"]),$(N.fn,st),R=xt.extend({nodeType:"Path",init:function(t){xt.fn.init.call(this,t),this.segments=new O,this.segments.addObserver(this),it(this.options.stroke)||(this.stroke("#000"),it(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))},moveTo:function(t,e){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(t,e),this},lineTo:function(t,e){var n=it(e)?new U(t,e):t,i=new N(n);return this.segments.push(i),this},curveTo:function(t,e,n){var i,r;return this.segments.length>0&&(i=rt(this.segments),r=new N(n,e),this.suspend(),i.controlOut(t),this.resume(),this.segments.push(r)),this},arc:function(t,e,n,i,r){var o,s,a,h,l;return this.segments.length>0&&(o=rt(this.segments),s=o.anchor(),a=tt.rad(t),h=new U(s.x-n*J.cos(a),s.y-i*J.sin(a)),l=new X.Arc(h,{startAngle:t,endAngle:e,radiusX:n,radiusY:i,anticlockwise:r}),this._addArcSegments(l)),this},arcTo:function(t,e,n,i,r){var o,s,a;return this.segments.length>0&&(o=rt(this.segments),s=o.anchor(),a=X.Arc.fromPoints(s,t,e,n,i,r),this._addArcSegments(a)),this},_addArcSegments:function(t){var e,n;for(this.suspend(),e=t.curvePoints(),n=1;n<e.length;n+=3)this.curveTo(e[n],e[n+1],e[n+2]);this.resume(),this.geometryChange()},close:function(){return this.options.closed=!0,this.geometryChange(),this},rawBBox:function(){return this._bbox()},_containsPoint:function(t){var e,n,i,r=this.segments,o=r.length,s=0;for(i=1;i<o;i++)e=r[i-1],n=r[i],s+=e._intersectionsTo(n,t);return!this.options.closed&&r[0].anchor().equals(r[o-1].anchor())||(s+=X.lineIntersectionsCount(r[0].anchor(),r[o-1].anchor(),t)),s%2!==0},_isOnPath:function(t,e){var n,i=this.segments,r=i.length;if(e=e||this.options.stroke.width,r>1){if(i[0]._isOnPathTo(i[1],t,e,"start"))return!0;for(n=2;n<=r-2;n++)if(i[n-1]._isOnPathTo(i[n],t,e))return!0;if(i[r-2]._isOnPathTo(i[r-1],t,e,"end"))return!0}return!1},_bbox:function(t){var e,n,i,r,o=this.segments,s=o.length;if(1===s)n=o[0].anchor().transformCopy(t),e=new X.Rect(n,Y.ZERO);else if(s>0)for(i=1;i<s;i++)r=o[i-1].bboxTo(o[i],t),e=e?X.Rect.union(e,r):r;return e}}),Q.mixins.Paintable.extend(R.fn),Q.mixins.Measurable.extend(R.fn),R.fromRect=function(t,e){return new R(e).moveTo(t.topLeft()).lineTo(t.topRight()).lineTo(t.bottomRight()).lineTo(t.bottomLeft()).close()},R.fromPoints=function(t,e){var n,i,r;if(t){for(n=new R(e),i=0;i<t.length;i++)r=U.create(t[i]),r&&(0===i?n.moveTo(r):n.lineTo(r));return n}},R.fromArc=function(t,e){var n=new R(e),i=t.startAngle,r=t.pointAt(i);return n.moveTo(r.x,r.y),n.arc(i,t.endAngle,t.radiusX,t.radiusY,t.anticlockwise),n},z=xt.extend({nodeType:"MultiPath",init:function(t){xt.fn.init.call(this,t),this.paths=new O,this.paths.addObserver(this),it(this.options.stroke)||this.stroke("#000")},moveTo:function(t,e){var n=new R;return n.moveTo(t,e),this.paths.push(n),this},lineTo:function(t,e){return this.paths.length>0&&rt(this.paths).lineTo(t,e),this},curveTo:function(t,e,n){return this.paths.length>0&&rt(this.paths).curveTo(t,e,n),this},arc:function(t,e,n,i,r){return this.paths.length>0&&rt(this.paths).arc(t,e,n,i,r),this},arcTo:function(t,e,n,i,r){return this.paths.length>0&&rt(this.paths).arcTo(t,e,n,i,r),this},close:function(){return this.paths.length>0&&rt(this.paths).close(),this},_bbox:function(t){return e(this.paths,!0,t)},rawBBox:function(){return e(this.paths,!1)},_containsPoint:function(t){var e,n=this.paths;for(e=0;e<n.length;e++)if(n[e]._containsPoint(t))return!0;return!1},_isOnPath:function(t){var e,n=this.paths,i=this.options.stroke.width;for(e=0;e<n.length;e++)if(n[e]._isOnPath(t,i))return!0;return!1},_clippedBBox:function(t){return n(this.paths,this.currentTransform(t))}}),Q.mixins.Paintable.extend(z.fn),Q.mixins.Measurable.extend(z.fn),M=xt.extend({nodeType:"Image",init:function(t,e,n){xt.fn.init.call(this,n),this.src(t),this.rect(e||new X.Rect)},src:function(t){return it(t)?(this.options.set("src",t),this):this.options.get("src")},bbox:function(t){var e=W(this.currentTransform(t));return this._rect.bbox(e)},rawBBox:function(){return this._rect.bbox()},_containsPoint:function(t){return this._rect.containsPoint(t)},_hasFill:function(){return this.src()}}),i(M.fn,["rect"]),B=q.extend({init:function(t,e,n){this.options=new Z({offset:t,color:e,opacity:it(n)?n:1}),this.options.addObserver(this)}}),a(B.fn,["offset","color","opacity"]),$(B.fn,st),B.create=function(t){if(it(t)){var e;return e=t instanceof B?t:t.length>1?new B(t[0],t[1],t[2]):new B(t.offset,t.color,t.opacity)}},D=k.extend({_change:function(){this.optionsChange({field:"stops"})}}),L=q.extend({nodeType:"gradient",init:function(t){this.stops=new D(this._createStops(t.stops)),this.stops.addObserver(this),this._userSpace=t.userSpace,this.id=l()},userSpace:function(t){return it(t)?(this._userSpace=t,this.optionsChange(),this):this._userSpace},_createStops:function(t){var e,n=[];for(t=t||[],e=0;e<t.length;e++)n.push(B.create(t[e]));return n},addStop:function(t,e,n){this.stops.push(new B(t,e,n))},removeStop:function(t){var e=this.stops.indexOf(t);e>=0&&this.stops.splice(e,1)}}),$(L.fn,st,{optionsChange:function(t){this.trigger("optionsChange",{field:"gradient"+(t?"."+t.field:""),value:this})},geometryChange:function(){this.optionsChange()}}),I=L.extend({init:function(t){t=t||{},L.fn.init.call(this,t),this.start(t.start||new U),this.end(t.end||new U(1,0))}}),o(I.fn,["start","end"]),F=L.extend({init:function(t){t=t||{},L.fn.init.call(this,t),this.center(t.center||new U),this._radius=it(t.radius)?t.radius:1,this._fallbackFill=t.fallbackFill},radius:function(t){return it(t)?(this._radius=t,this.geometryChange(),this):this._radius},fallbackFill:function(t){return it(t)?(this._fallbackFill=t,this.optionsChange(),this):this._fallbackFill}}),o(F.fn,["center"]),G=xt.extend({nodeType:"Rect",init:function(t,e){xt.fn.init.call(this,e),this.geometry(t||new X.Rect),it(this.options.stroke)||this.stroke("#000")},_bbox:function(t){return this._geometry.bbox(t)},rawBBox:function(){return this._geometry.bbox()},_containsPoint:function(t){return this._geometry.containsPoint(t)},_isOnPath:function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)}}),Q.mixins.Paintable.extend(G.fn),Q.mixins.Measurable.extend(G.fn),i(G.fn,["geometry"]),j=S.extend({init:function(t,e){S.fn.init.call(this,H.deepExtend({},this._defaults,e)),this._rect=t,this._fieldMap={}},_defaults:{alignContent:mt,justifyContent:mt,alignItems:mt,spacing:0,orientation:vt,lineSpacing:0,wrap:!0},rect:function(t){return t?(this._rect=t,this):this._rect},_initMap:function(){var t=this.options,e=this._fieldMap;t.orientation==vt?(e.sizeField="width",e.groupsSizeField="height",e.groupAxis="x",e.groupsAxis="y"):(e.sizeField="height",e.groupsSizeField="width",e.groupAxis="y",e.groupsAxis="x")},reflow:function(){var t,e,n,i,r,o,s,a,h,l,c,u,f,d,p,m,g,v,x,y,w,b,C,k,S,E;if(this._rect&&0!==this.children.length){for(this._initMap(),this.options.transform&&this.transform(null),t=this.options,e=this._fieldMap,n=this._rect,i=this._initGroups(),r=i.groups,o=i.groupsSize,s=e.sizeField,a=e.groupsSizeField,h=e.groupAxis,l=e.groupsAxis,c=_(o,n,t.alignContent,l,a),u=new U,f=new U,d=new X.Size,y=0;y<r.length;y++){for(v=r[y],u[h]=p=_(v.size,n,t.justifyContent,h,s),u[l]=c,d[s]=v.size,d[a]=v.lineSize,x=new X.Rect(u,d),w=0;w<v.bboxes.length;w++)g=v.elements[w],m=v.bboxes[w],f[h]=p,f[l]=_(m.size[a],x,t.alignItems,l,a),T(f,m,g),p+=m.size[s]+t.spacing;c+=v.lineSize+t.lineSpacing}!t.wrap&&v.size>n.size[s]&&(b=n.size[s]/x.size[s],C=x.topLeft().scale(b,b),k=x.size[a]*b,S=_(k,n,t.alignContent,l,a),E=X.transform(),"x"===h?E.translate(n.origin.x-C.x,S-C.y):E.translate(S-C.x,n.origin.y-C.y),E.scale(b,b),this.transform(E))}},_initGroups:function(){var t,e,n,i=this.options,r=this.children,o=i.lineSpacing,s=this._fieldMap.sizeField,a=-o,h=[],l=this._newGroup(),c=function(){h.push(l),a+=l.lineSize+o};for(n=0;n<r.length;n++)e=r[n],t=r[n].clippedBBox(),e.visible()&&t&&(i.wrap&&l.size+t.size[s]+i.spacing>this._rect.size[s]?0===l.bboxes.length?(this._addToGroup(l,t,e),c(),l=this._newGroup()):(c(),l=this._newGroup(),this._addToGroup(l,t,e)):this._addToGroup(l,t,e));return l.bboxes.length&&c(),{groups:h,groupsSize:a}},_addToGroup:function(t,e,n){t.size+=e.size[this._fieldMap.sizeField]+this.options.spacing,t.lineSize=Math.max(e.size[this._fieldMap.groupsSizeField],t.lineSize),t.bboxes.push(e),t.elements.push(n)},_newGroup:function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}}),$(Q,{align:c,Arc:A,Circle:P,Element:xt,ElementsArray:k,fit:v,Gradient:L,GradientStop:B,Group:S,Image:M,Layout:j,LinearGradient:I,MultiPath:z,Path:R,RadialGradient:F,Rect:G,Segment:N,stack:f,Text:E,vAlign:u,vStack:d,vWrap:m,wrap:p})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/parser.min",["drawing/shapes.min"],t)}(function(){!function(t){function e(t){var e=[];return t.replace(m,function(t,n){e.push(parseFloat(n))}),e}function n(t,e,n){var i,r=e?0:1;for(i=0;i<t.length;i+=2)t.splice(i+r,0,n)}function i(t,e){if(t&&e)return e.scaleCopy(2).translate(-t.x,-t.y)}function r(t,e,n){var i=1/3;return e=e.clone().scale(2/3),{controlOut:e.clone().translateWith(t.scaleCopy(i)),controlIn:e.translateWith(n.scaleCopy(i))}}var o=window.kendo,s=o.drawing,a=o.geometry,h=o.Class,l=a.Point,c=o.deepExtend,u=t.trim,f=o.util,d=f.last,p=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,m=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g,g="m",v="z",x=h.extend({parse:function(t,n){var i,r=new s.MultiPath(n),o=new l;return t.replace(p,function(t,n,s,a){var h=n.toLowerCase(),l=h===n,c=e(u(s));if(h===g&&(l?(o.x+=c[0],o.y+=c[1]):(o.x=c[0],o.y=c[1]),r.moveTo(o.x,o.y),c.length>2&&(h="l",c.splice(0,2))),y[h])y[h](r,{parameters:c,position:o,isRelative:l,previousCommand:i}),a&&a.toLowerCase()===v&&r.close();else if(h!==g)throw Error("Error while parsing SVG path. Unsupported command: "+h);i=h}),r}}),y={l:function(t,e){var n,i,r=e.parameters,o=e.position;for(n=0;n<r.length;n+=2)i=new l(r[n],r[n+1]),e.isRelative&&i.translateWith(o),t.lineTo(i.x,i.y),o.x=i.x,o.y=i.y},c:function(t,e){var n,i,r,o,s=e.parameters,a=e.position;for(o=0;o<s.length;o+=6)n=new l(s[o],s[o+1]),i=new l(s[o+2],s[o+3]),r=new l(s[o+4],s[o+5]),e.isRelative&&(i.translateWith(a),n.translateWith(a),r.translateWith(a)),t.curveTo(n,i,r),a.x=r.x,a.y=r.y},v:function(t,e){var i=e.isRelative?0:e.position.x;n(e.parameters,!0,i),this.l(t,e)},h:function(t,e){var i=e.isRelative?0:e.position.y;n(e.parameters,!1,i),this.l(t,e)},a:function(t,e){var n,i,r,o,s,a,h=e.parameters,c=e.position;for(n=0;n<h.length;n+=7)i=h[n],r=h[n+1],o=h[n+3],s=h[n+4],a=new l(h[n+5],h[n+6]),e.isRelative&&a.translateWith(c),t.arcTo(a,i,r,o,s),c.x=a.x,c.y=a.y},s:function(t,e){var n,r,o,s,a,h=e.parameters,c=e.position,u=e.previousCommand;for("s"!=u&&"c"!=u||(s=d(d(t.paths).segments).controlIn()),a=0;a<h.length;a+=4)o=new l(h[a],h[a+1]),r=new l(h[a+2],h[a+3]),e.isRelative&&(o.translateWith(c),r.translateWith(c)),n=s?i(s,c):c.clone(),s=o,t.curveTo(n,o,r),c.x=r.x,c.y=r.y},q:function(t,e){var n,i,o,s,a=e.parameters,h=e.position;for(s=0;s<a.length;s+=4)o=new l(a[s],a[s+1]),i=new l(a[s+2],a[s+3]),e.isRelative&&(o.translateWith(h),i.translateWith(h)),n=r(h,o,i),t.curveTo(n.controlOut,n.controlIn,i),h.x=i.x,h.y=i.y},t:function(t,e){var n,o,s,a,h,c=e.parameters,u=e.position,f=e.previousCommand;for("q"!=f&&"t"!=f||(a=d(d(t.paths).segments),o=a.controlIn().clone().translateWith(u.scaleCopy(-1/3)).scale(1.5)),h=0;h<c.length;h+=2)s=new l(c[h],c[h+1]),e.isRelative&&s.translateWith(u),o=o?i(o,u):u.clone(),n=r(u,o,s),t.curveTo(n.controlOut,n.controlIn,s),u.x=s.x,u.y=s.y}};x.current=new x,s.Path.parse=function(t,e){return x.current.parse(t,e)},c(s,{PathParser:x})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/search.min",["drawing/shapes.min"],t)}(function(){!function(t){function e(t,e){return t._zIndex<e._zIndex?1:t._zIndex>e._zIndex?-1:0}var n=window.kendo,i=n.drawing,r=n.geometry,o=n.Class,s=r.Rect,a=n.deepExtend,h=t.isArray,l=t.inArray,c=Math,u=1e4,f=75,d=o.extend({init:function(){this.shapes=[]},_add:function(t,e){this.shapes.push({bbox:e,shape:t}),t._quadNode=this},pointShapes:function(t){var e,n=this.shapes,i=n.length,r=[];for(e=0;e<i;e++)n[e].bbox.containsPoint(t)&&r.push(n[e].shape);return r},insert:function(t,e){this._add(t,e)},remove:function(t){var e,n=this.shapes,i=n.length;for(e=0;e<i;e++)if(n[e].shape===t){n.splice(e,1);break}}}),p=d.extend({init:function(t){d.fn.init.call(this),this.children=[],this.rect=t},inBounds:function(t){var e=this.rect,n=e.bottomRight(),i=t.bottomRight(),r=e.origin.x<=t.origin.x&&e.origin.y<=t.origin.y&&i.x<=n.x&&i.y<=n.y;return r},pointShapes:function(t){var e,n=this.children,i=n.length,r=d.fn.pointShapes.call(this,t);for(e=0;e<i;e++)r=r.concat(n[e].pointShapes(t));return r},insert:function(t,e){var n,i=!1,r=this.children;if(this.inBounds(e)){if(this.shapes.length<4)this._add(t,e);else{for(r.length||this._initChildren(),n=0;n<r.length;n++)if(r[n].insert(t,e)){i=!0;break}i||this._add(t,e)}i=!0}return i},_initChildren:function(){var t=this.rect,e=this.children,n=t.center(),i=t.width()/2,r=t.height()/2;e.push(new p(new s([t.origin.x,t.origin.y],[i,r])),new p(new s([n.x,t.origin.y],[i,r])),new p(new s([t.origin.x,n.y],[i,r])),new p(new s([n.x,n.y],[i,r])))}}),m=o.extend({ROOT_SIZE:1e3,init:function(){this.initRoots()},initRoots:function(){this.rootMap={},this.root=new d,this.rootElements=[]},clear:function(){var t,e=this,n=e.rootElements;for(t=0;t<n.length;t++)this.remove(n[t]);this.initRoots()},pointShape:function(t){var n,i=this.ROOT_SIZE,r=this.root.pointShapes(t),o=(this.rootMap[c.floor(t.x/i)]||{})[c.floor(t.y/i)];for(o&&(r=r.concat(o.pointShapes(t))),this.assignZindex(r),r.sort(e),n=0;n<r.length;n++)if(r[n].containsPoint(t))return r[n]},assignZindex:function(t){var e,n,i,r,o;for(o=0;o<t.length;o++){for(e=t[o],i=0,n=c.pow(u,f),r=[];e;)r.push(e),e=e.parent;for(;r.length;)e=r.pop(),i+=(l(e,e.parent?e.parent.children:this.rootElements)+1)*n,n/=u;t[o]._zIndex=i}},optionsChange:function(t){"transform"!=t.field&&"stroke.width"!=t.field||this.bboxChange(t.element)},geometryChange:function(t){this.bboxChange(t.element)},bboxChange:function(t){if("Group"===t.nodeType)for(var e=0;e<t.children.length;e++)this.bboxChange(t.children[e]);else t._quadNode&&t._quadNode.remove(t),this._insertShape(t)},add:function(t){var e=h(t)?t.slice(0):[t];this.rootElements.push.apply(this.rootElements,e),this._insert(e)},childrenChange:function(t){if("remove"==t.action)for(var e=0;e<t.items.length;e++)this.remove(t.items[e]);else this._insert(Array.prototype.slice.call(t.items,0))},_insert:function(t){for(var e;t.length>0;)e=t.pop(),e.addObserver(this),"Group"==e.nodeType?t.push.apply(t,e.children):this._insertShape(e)},_insertShape:function(t){var e,n,i,r,o=t.bbox();o&&(e=this.ROOT_SIZE,n=this.getSectors(o),i=n[0][0],r=n[1][0],this.inRoot(n)?this.root.insert(t,o):(this.rootMap[i]||(this.rootMap[i]={}),this.rootMap[i][r]||(this.rootMap[i][r]=new p(new s([i*e,r*e],[e,e]))),this.rootMap[i][r].insert(t,o)))},remove:function(t){var e,n;if(t.removeObserver(this),"Group"==t.nodeType)for(e=t.children,n=0;n<e.length;n++)this.remove(e[n]);else t._quadNode&&(t._quadNode.remove(t),delete t._quadNode)},inRoot:function(t){return t[0].length>1||t[1].length>1},getSectors:function(t){var e,n,i=this.ROOT_SIZE,r=t.bottomRight(),o=c.floor(r.x/i),s=c.floor(r.y/i),a=[[],[]];for(e=c.floor(t.origin.x/i);e<=o;e++)a[0].push(e);for(n=c.floor(t.origin.y/i);n<=s;n++)a[1].push(n);return a}});a(i,{ShapesQuadTree:m,QuadNode:p})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/svg.min",["drawing/shapes.min","util/main.min"],t)}(function(){!function(t){function e(t){var e,n,i,r;try{e=t.getScreenCTM?t.getScreenCTM():null}catch(o){}e&&(n=-e.e%1,i=-e.f%1,r=t.style,0===n&&0===i||(r.left=n+"px",r.top=i+"px"))}function n(){var t=document.getElementsByTagName("base")[0],e="",n=document.location.href,i=n.indexOf("#");return t&&!c.support.browser.msie&&(i!==-1&&(n=n.substring(0,i)),e=n),e}function i(t){return"url("+n()+"#"+t+")"}function r(t){var e,n,i,r=new M,o=t.clippedBBox();return o&&(e=o.getOrigin(),n=new d.Group,n.transform(f.transform().translate(-e.x,-e.y)),n.children.push(t),t=n),r.load([t]),i="<?xml version='1.0' ?><svg xmlns='"+A+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+r.render()+"</svg>",r.destroy(),i}function o(e,n){var i=r(e);return n&&n.raw||(i="data:image/svg+xml;base64,"+m.encodeBase64(i)),t.Deferred().resolve(i).promise()}function s(t,e){return"clip"==t||"fill"==t&&(!e||e.nodeType==T)}function a(t){if(!t||!t.indexOf||t.indexOf("&")<0)return t;var e=a._element;return e.innerHTML=t,e.textContent||e.innerText}var h,l=document,c=window.kendo,u=c.deepExtend,f=c.geometry,d=c.drawing,p=d.BaseNode,m=c.util,g=m.defined,v=m.isTransparent,x=m.renderAttr,y=m.renderAllAttr,w=m.renderTemplate,b=t.inArray,_="butt",C=d.DASH_ARRAYS,T="gradient",k="none",S=".kendo",E="solid",P=" ",A="http://www.w3.org/2000/svg",O="transform",N="undefined",R=d.Surface.extend({init:function(t,n){d.Surface.fn.init.call(this,t,n),this._root=new M(this.options),Q(this.element[0],this._template(this)),this._rootElement=this.element[0].firstElementChild,e(this._rootElement),this._root.attachTo(this._rootElement),this.element.on("click"+S,this._click),this.element.on("mouseover"+S,this._mouseenter),
this.element.on("mouseout"+S,this._mouseleave),this.element.on("mousemove"+S,this._mousemove),this.resize()},type:"svg",destroy:function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,this.element.off(S)),d.Surface.fn.destroy.call(this)},translate:function(t){var e=c.format("{0} {1} {2} {3}",Math.round(t.x),Math.round(t.y),this._size.width,this._size.height);this._offset=t,this._rootElement.setAttribute("viewBox",e)},draw:function(t){d.Surface.fn.draw.call(this,t),this._root.load([t])},clear:function(){d.Surface.fn.clear.call(this),this._root.clear()},svg:function(){return"<?xml version='1.0' ?>"+this._template(this)},exportVisual:function(){var t,e=this._visual,n=this._offset;return n&&(t=new d.Group,t.children.push(e),t.transform(f.transform().translate(-n.x,-n.y)),e=t),e},_resize:function(){this._offset&&this.translate(this._offset)},_template:w("<svg style='width: 100%; height: 100%; overflow: hidden;' xmlns='"+A+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>#= d._root.render() #</svg>")}),z=p.extend({init:function(t){p.fn.init.call(this,t),this.definitions={}},destroy:function(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(),p.fn.destroy.call(this)},load:function(t,e){var n,i,r,o,s=this,a=s.element;for(o=0;o<t.length;o++)i=t[o],r=i.children,n=new W[i.nodeType](i),g(e)?s.insertAt(n,e):s.append(n),n.createDefinitions(),r&&r.length>0&&n.load(r),a&&n.attachTo(a,e)},root:function(){for(var t=this;t.parent;)t=t.parent;return t},attachTo:function(t,e){var n,i=l.createElement("div");Q(i,"<svg xmlns='"+A+"' version='1.1'>"+this.render()+"</svg>"),n=i.firstChild.firstChild,n&&(g(e)?t.insertBefore(n,t.childNodes[e]||null):t.appendChild(n),this.setElement(n))},setElement:function(t){var e,n,i=this.childNodes;for(this.element&&(this.element._kendoNode=null),this.element=t,this.element._kendoNode=this,n=0;n<i.length;n++)e=t.childNodes[n],i[n].setElement(e)},clear:function(){var t,e;for(this.clearDefinitions(),this.element&&(this.element.innerHTML=""),t=this.childNodes,e=0;e<t.length;e++)t[e].destroy();this.childNodes=[]},removeSelf:function(){if(this.element){var t=this.element.parentNode;t&&t.removeChild(this.element),this.element=null}p.fn.removeSelf.call(this)},template:w("#= d.renderChildren() #"),render:function(){return this.template(this)},renderChildren:function(){var t,e=this.childNodes,n="";for(t=0;t<e.length;t++)n+=e[t].render();return n},optionsChange:function(t){var e=t.field,n=t.value;"visible"===e?this.css("display",n?"":k):h[e]&&s(e,n)?this.updateDefinition(e,n):"opacity"===e&&this.attr("opacity",n),p.fn.optionsChange.call(this,t)},attr:function(t,e){this.element&&this.element.setAttribute(t,e)},allAttr:function(t){for(var e=0;e<t.length;e++)this.attr(t[e][0],t[e][1])},css:function(t,e){this.element&&(this.element.style[t]=e)},allCss:function(t){for(var e=0;e<t.length;e++)this.css(t[e][0],t[e][1])},removeAttr:function(t){this.element&&this.element.removeAttribute(t)},mapTransform:function(t){var e=[];return t&&e.push([O,"matrix("+t.matrix().toString(6)+")"]),e},renderTransform:function(){return y(this.mapTransform(this.srcElement.transform()))},transformChange:function(t){t?this.allAttr(this.mapTransform(t)):this.removeAttr(O)},mapStyle:function(){var t=this.srcElement.options,e=[["cursor",t.cursor]];return t.visible===!1&&e.push(["display",k]),e},renderStyle:function(){return x("style",m.renderStyle(this.mapStyle(!0)))},renderOpacity:function(){return x("opacity",this.srcElement.options.opacity)},createDefinitions:function(){var t,e,n,i,r=this.srcElement,o=this.definitions;if(r){n=r.options;for(e in h)t=n.get(e),t&&s(e,t)&&(o[e]=t,i=!0);i&&this.definitionChange({action:"add",definitions:o})}},definitionChange:function(t){this.parent&&this.parent.definitionChange(t)},updateDefinition:function(t,e){var n=this.definitions,r=n[t],o=h[t],s={};r&&(s[t]=r,this.definitionChange({action:"remove",definitions:s}),delete n[t]),e?(s[t]=e,this.definitionChange({action:"add",definitions:s}),n[t]=e,this.attr(o,i(e.id))):r&&this.removeAttr(o)},clearDefinitions:function(){var t,e=this.definitions;for(t in e){this.definitionChange({action:"remove",definitions:e}),this.definitions={};break}},renderDefinitions:function(){return y(this.mapDefinitions())},mapDefinitions:function(){var t,e=this.definitions,n=[];for(t in e)n.push([h[t],i(e[t].id)]);return n}}),M=z.extend({init:function(t){z.fn.init.call(this),this.options=t,this.defs=new B},attachTo:function(t){this.element=t,this.defs.attachTo(t.firstElementChild)},clear:function(){p.fn.clear.call(this)},template:w("#=d.defs.render()##= d.renderChildren() #"),definitionChange:function(t){this.defs.definitionChange(t)}}),B=z.extend({init:function(){z.fn.init.call(this),this.definitionMap={}},attachTo:function(t){this.element=t},template:w("<defs>#= d.renderChildren()#</defs>"),definitionChange:function(t){var e=t.definitions,n=t.action;"add"==n?this.addDefinitions(e):"remove"==n&&this.removeDefinitions(e)},createDefinition:function(t,e){var n;return"clip"==t?n=D:"fill"==t&&(e instanceof d.LinearGradient?n=U:e instanceof d.RadialGradient&&(n=Y)),new n(e)},addDefinitions:function(t){for(var e in t)this.addDefinition(e,t[e])},addDefinition:function(t,e){var n,i=this.definitionMap,r=e.id,o=this.element,s=i[r];s?s.count++:(n=this.createDefinition(t,e),i[r]={element:n,count:1},this.append(n),o&&n.attachTo(this.element))},removeDefinitions:function(t){for(var e in t)this.removeDefinition(t[e])},removeDefinition:function(t){var e=this.definitionMap,n=t.id,i=e[n];i&&(i.count--,0===i.count&&(this.remove(b(i.element,this.childNodes),1),delete e[n]))}}),D=z.extend({init:function(t){z.fn.init.call(this),this.srcElement=t,this.id=t.id,this.load([t])},template:w("<clipPath id='#=d.id#'>#= d.renderChildren()#</clipPath>")}),L=z.extend({template:w("<g#= d.renderTransform() + d.renderStyle() + d.renderOpacity() + d.renderDefinitions()#>#= d.renderChildren() #</g>"),optionsChange:function(t){t.field==O&&this.transformChange(t.value),z.fn.optionsChange.call(this,t)}}),I=z.extend({geometryChange:function(){this.attr("d",this.renderData()),this.invalidate()},optionsChange:function(t){switch(t.field){case"fill":t.value?this.allAttr(this.mapFill(t.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:t.value}));break;case"stroke":t.value?this.allAttr(this.mapStroke(t.value)):this.removeAttr("stroke");break;case O:this.transformChange(t.value);break;default:var e=this.attributeMap[t.field];e&&this.attr(e,t.value)}z.fn.optionsChange.call(this,t)},attributeMap:{"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},content:function(){this.element&&(this.element.textContent=this.srcElement.content())},renderData:function(){return this.printPath(this.srcElement)},printPath:function(t){var e,n,i,r,o,s=t.segments,a=s.length;if(a>0){for(e=[],o=1;o<a;o++)i=this.segmentType(s[o-1],s[o]),i!==r&&(r=i,e.push(i)),e.push("L"===i?this.printPoints(s[o].anchor()):this.printPoints(s[o-1].controlOut(),s[o].controlIn(),s[o].anchor()));return n="M"+this.printPoints(s[0].anchor())+P+e.join(P),t.options.closed&&(n+="Z"),n}},printPoints:function(){var t,e=arguments,n=e.length,i=[];for(t=0;t<n;t++)i.push(e[t].toString(3));return i.join(P)},segmentType:function(t,e){return t.controlOut()&&e.controlIn()?"C":"L"},mapStroke:function(t){var e=[];return t&&!v(t.color)?(e.push(["stroke",t.color]),e.push(["stroke-width",t.width]),e.push(["stroke-linecap",this.renderLinecap(t)]),e.push(["stroke-linejoin",t.lineJoin]),g(t.opacity)&&e.push(["stroke-opacity",t.opacity]),g(t.dashType)&&e.push(["stroke-dasharray",this.renderDashType(t)])):e.push(["stroke",k]),e},renderStroke:function(){return y(this.mapStroke(this.srcElement.options.stroke))},renderDashType:function(t){var e,n,i,r=t.width||1,o=t.dashType;if(o&&o!=E){for(e=C[o.toLowerCase()],n=[],i=0;i<e.length;i++)n.push(e[i]*r);return n.join(" ")}},renderLinecap:function(t){var e=t.dashType,n=t.lineCap;return e&&e!=E?_:n},mapFill:function(t){var e=[];return t&&t.nodeType==T||(t&&!v(t.color)?(e.push(["fill",t.color]),g(t.opacity)&&e.push(["fill-opacity",t.opacity])):e.push(["fill",k])),e},renderFill:function(){return y(this.mapFill(this.srcElement.options.fill))},template:w("<path #= d.renderStyle() # #= d.renderOpacity() # #= kendo.util.renderAttr('d', d.renderData()) # #= d.renderStroke() # #= d.renderFill() # #= d.renderDefinitions() # #= d.renderTransform() #></path>")}),F=I.extend({renderData:function(){return this.printPath(this.srcElement.toPath())}}),G=I.extend({renderData:function(){var t,e,n=this.srcElement.paths;if(n.length>0){for(t=[],e=0;e<n.length;e++)t.push(this.printPath(n[e]));return t.join(" ")}}}),j=I.extend({geometryChange:function(){var t=this.center();this.attr("cx",t.x),this.attr("cy",t.y),this.attr("r",this.radius()),this.invalidate()},center:function(){return this.srcElement.geometry().center},radius:function(){return this.srcElement.geometry().radius},template:w("<circle #= d.renderStyle() # #= d.renderOpacity() # cx='#= d.center().x #' cy='#= d.center().y #' r='#= d.radius() #' #= d.renderStroke() # #= d.renderFill() # #= d.renderDefinitions() # #= d.renderTransform() # ></circle>")}),H=I.extend({geometryChange:function(){var t=this.pos();this.attr("x",t.x),this.attr("y",t.y),this.invalidate()},optionsChange:function(t){"font"===t.field?(this.attr("style",m.renderStyle(this.mapStyle())),this.geometryChange()):"content"===t.field&&I.fn.content.call(this,this.srcElement.content()),I.fn.optionsChange.call(this,t)},mapStyle:function(t){var e=I.fn.mapStyle.call(this,t),n=this.srcElement.options.font;return t&&(n=c.htmlEncode(n)),e.push(["font",n]),e},pos:function(){var t=this.srcElement.position(),e=this.srcElement.measure();return t.clone().setY(t.y+e.baseline)},renderContent:function(){var t=this.srcElement.content();return t=a(t),t=c.htmlEncode(t)},template:w("<text #= d.renderStyle() # #= d.renderOpacity() # x='#= this.pos().x #' y='#= this.pos().y #' #= d.renderStroke() # #= d.renderTransform() # #= d.renderDefinitions() # #= d.renderFill() #>#= d.renderContent() #</text>")}),q=I.extend({geometryChange:function(){this.allAttr(this.mapPosition()),this.invalidate()},optionsChange:function(t){"src"===t.field&&this.allAttr(this.mapSource()),I.fn.optionsChange.call(this,t)},mapPosition:function(){var t=this.srcElement.rect(),e=t.topLeft();return[["x",e.x],["y",e.y],["width",t.width()+"px"],["height",t.height()+"px"]]},renderPosition:function(){return y(this.mapPosition())},mapSource:function(t){var e=this.srcElement.src();return t&&(e=c.htmlEncode(e)),[["xlink:href",e]]},renderSource:function(){return y(this.mapSource(!0))},template:w("<image preserveAspectRatio='none' #= d.renderStyle() # #= d.renderTransform()# #= d.renderOpacity() # #= d.renderPosition() # #= d.renderSource() # #= d.renderDefinitions()#></image>")}),$=z.extend({template:w("<stop #=d.renderOffset()# #=d.renderStyle()# />"),renderOffset:function(){return x("offset",this.srcElement.offset())},mapStyle:function(){var t=this.srcElement;return[["stop-color",t.color()],["stop-opacity",t.opacity()]]},optionsChange:function(t){"offset"==t.field?this.attr(t.field,t.value):"color"!=t.field&&"opacity"!=t.field||this.css("stop-"+t.field,t.value)}}),X=z.extend({init:function(t){z.fn.init.call(this,t),this.id=t.id,this.loadStops()},loadStops:function(){var t,e,n=this.srcElement,i=n.stops,r=this.element;for(e=0;e<i.length;e++)t=new $(i[e]),this.append(t),r&&t.attachTo(r)},optionsChange:function(t){"gradient.stops"==t.field?(p.fn.clear.call(this),this.loadStops()):t.field==T&&this.allAttr(this.mapCoordinates())},renderCoordinates:function(){return y(this.mapCoordinates())},mapSpace:function(){return["gradientUnits",this.srcElement.userSpace()?"userSpaceOnUse":"objectBoundingBox"]}}),U=X.extend({template:w("<linearGradient id='#=d.id#' #=d.renderCoordinates()#>#= d.renderChildren()#</linearGradient>"),mapCoordinates:function(){var t=this.srcElement,e=t.start(),n=t.end(),i=[["x1",e.x],["y1",e.y],["x2",n.x],["y2",n.y],this.mapSpace()];return i}}),Y=X.extend({template:w("<radialGradient id='#=d.id#' #=d.renderCoordinates()#>#= d.renderChildren()#</radialGradient>"),mapCoordinates:function(){var t=this.srcElement,e=t.center(),n=t.radius(),i=[["cx",e.x],["cy",e.y],["r",n],this.mapSpace()];return i}}),V=I.extend({geometryChange:function(){var t=this.srcElement.geometry();this.attr("x",t.origin.x),this.attr("y",t.origin.y),this.attr("width",t.size.width),this.attr("height",t.size.height),this.invalidate()},size:function(){return this.srcElement.geometry().size},origin:function(){return this.srcElement.geometry().origin},template:w("<rect #= d.renderStyle() # #= d.renderOpacity() # x='#= d.origin().x #' y='#= d.origin().y #' width='#= d.size().width #' height='#= d.size().height #'#= d.renderStroke() # #= d.renderFill() # #= d.renderDefinitions() # #= d.renderTransform() # />")}),W={Group:L,Text:H,Path:I,MultiPath:G,Circle:j,Arc:F,Image:q,Rect:V},Q=function(t,e){t.innerHTML=e};!function(){var t="<svg xmlns='"+A+"'></svg>",e=l.createElement("div"),n=typeof DOMParser!=N;e.innerHTML=t,n&&e.firstChild.namespaceURI!=A&&(Q=function(t,e){var n=new DOMParser,i=n.parseFromString(e,"text/xml"),r=l.adoptNode(i.documentElement);t.innerHTML="",t.appendChild(r)})}(),a._element=document.createElement("span"),h={clip:"clip-path",fill:"fill"},c.support.svg=function(){return l.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}(),c.support.svg&&d.SurfaceFactory.current.register("svg",R,10),u(d,{exportSVG:o,svg:{ArcNode:F,CircleNode:j,ClipNode:D,DefinitionNode:B,GradientStopNode:$,GroupNode:L,ImageNode:q,LinearGradientNode:U,MultiPathNode:G,Node:z,PathNode:I,RadialGradientNode:Y,RectNode:V,RootNode:M,Surface:R,TextNode:H,_exportGroup:r}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/canvas.min",["drawing/search.min","kendo.color.min"],t)}(function(){!function(t){function e(e,n){var i,r,o,s,a,h,l={width:"800px",height:"600px",cors:"Anonymous"},c=e.clippedBBox();return c&&(i=c.getOrigin(),r=new b.Group,r.transform(w.transform().translate(-i.x,-i.y)),r.children.push(e),e=r,o=c.getSize(),l.width=o.width+"px",l.height=o.height+"px"),n=p(l,n),s=t("<div />").css({display:"none",width:n.width,height:n.height}).appendTo(document.body),a=new A(s,n),a.suspendTracking(),a.draw(e),h=a.image(),h.always(function(){a.destroy(),s.remove()}),h}function n(t,e){var n,i,r;for(r=0;r<e.length;r++)i=e[r],n=d.parseColor(i.color()),n.a*=i.opacity(),t.addColorStop(i.offset(),n.toCssRgba())}var i,r,o,s,a,h,l,c,u,f=document,d=window.kendo,p=d.deepExtend,m=d.util,g=m.defined,v=m.isTransparent,x=m.renderTemplate,y=m.valueOrDefault,w=d.geometry,b=d.drawing,_=b.BaseNode,C=t.proxy,T="butt",k=b.DASH_ARRAYS,S=1e3/60,E="solid",P=".kendo",A=b.Surface.extend({init:function(e,n){b.Surface.fn.init.call(this,e,n),this.element[0].innerHTML=this._template(this);var r=this.element[0].firstElementChild;r.width=t(e).width(),r.height=t(e).height(),this._rootElement=r,this._root=new i(r)},destroy:function(){b.Surface.fn.destroy.call(this),this._root&&(this._root.destroy(),this._root=null),this._searchTree&&(this._searchTree.clear(),delete this._searchTree),this.element.off(P)},type:"canvas",draw:function(t){b.Surface.fn.draw.call(this,t),this._root.load([t],void 0,this.options.cors),this._searchTree&&this._searchTree.add([t])},clear:function(){b.Surface.fn.clear.call(this),this._root.clear(),this._searchTree&&this._searchTree.clear()},eventTarget:function(t){var e,n;if(this._searchTree)return e=this._surfacePoint(t),n=this._searchTree.pointShape(e)},image:function(){var e,n=this._root,i=this._rootElement,r=[];return n.traverse(function(t){t.loading&&r.push(t.loading)}),e=t.Deferred(),t.when.apply(t,r).done(function(){n._invalidate();try{var t=i.toDataURL();e.resolve(t)}catch(r){e.reject(r)}}).fail(function(t){e.reject(t)}),e.promise()},suspendTracking:function(){b.Surface.fn.suspendTracking.call(this),this._searchTree&&(this._searchTree.clear(),delete this._searchTree)},resumeTracking:function(){var t,e,n;if(b.Surface.fn.resumeTracking.call(this),!this._searchTree){for(this._searchTree=new b.ShapesQuadTree,t=this._root.childNodes,e=[],n=0;n<t.length;n++)e.push(t[n].srcElement);this._searchTree.add(e)}},_resize:function(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.invalidate()},_template:x("<canvas style='width: 100%; height: 100%;'></canvas>"),_enableTracking:function(){this._searchTree=new b.ShapesQuadTree,this._mouseTrackHandler=C(this._trackMouse,this),this.element.on("click"+P,this._mouseTrackHandler),this.element.on("mousemove"+P,this._mouseTrackHandler),b.Surface.fn._enableTracking.call(this)},_trackMouse:function(t){var e,n;this._suspendedTracking||(e=this.eventTarget(t),"click"!=t.type?(n=this._currentShape,n&&n!==e&&this.trigger("mouseleave",{element:n,originalEvent:t,type:"mouseleave"}),e&&n!==e&&this.trigger("mouseenter",{element:e,originalEvent:t,type:"mouseenter"}),this.trigger("mousemove",{element:e,originalEvent:t,type:"mousemove"}),this._currentShape=e):e&&this.trigger("click",{element:e,originalEvent:t,type:"click"}))}}),O=_.extend({init:function(t){_.fn.init.call(this,t),t&&this.initClip()},initClip:function(){var t=this.srcElement.clip();t&&(this.clip=t,t.addObserver(this))},clear:function(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),_.fn.clear.call(this)},clearClip:function(){this.clip&&(this.clip.removeObserver(this),delete this.clip)},setClip:function(t){this.clip&&(t.beginPath(),r.fn.renderPoints(t,this.clip),t.clip())},optionsChange:function(t){"clip"==t.field&&(this.clearClip(),this.initClip()),_.fn.optionsChange.call(this,t)},setTransform:function(t){if(this.srcElement){var e=this.srcElement.transform();e&&t.transform.apply(t,e.matrix().toArray(6))}},loadElements:function(t,e,n){var i,r,o,s,a=this;for(s=0;s<t.length;s++)r=t[s],o=r.children,i=new u[r.nodeType](r,n),o&&o.length>0&&i.load(o,e,n),g(e)?a.insertAt(i,e):a.append(i)},load:function(t,e,n){this.loadElements(t,e,n),this.invalidate()},setOpacity:function(t){if(this.srcElement){var e=this.srcElement.opacity();g(e)&&this.globalAlpha(t,e)}},globalAlpha:function(t,e){e&&t.globalAlpha&&(e*=t.globalAlpha),t.globalAlpha=e},visible:function(){var t=this.srcElement;return!t||t&&t.options.visible!==!1}}),N=O.extend({renderTo:function(t){var e,n,i;if(this.visible()){for(t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),e=this.childNodes,n=0;n<e.length;n++)i=e[n],i.visible()&&i.renderTo(t);t.restore()}}});b.mixins.Traversable.extend(N.fn,"childNodes"),i=N.extend({init:function(t){N.fn.init.call(this),this.canvas=t,this.ctx=t.getContext("2d");var e=C(this._invalidate,this);this.invalidate=d.throttle(function(){d.animationFrame(e)},S)},destroy:function(){N.fn.destroy.call(this),this.canvas=null,this.ctx=null},load:function(t,e,n){this.loadElements(t,e,n),this._invalidate()},_invalidate:function(){this.ctx&&(this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx))}}),b.mixins.Traversable.extend(i.fn,"childNodes"),r=O.extend({renderTo:function(t){t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),this.renderPoints(t,this.srcElement),this.setLineDash(t),this.setLineCap(t),this.setLineJoin(t),this.setFill(t),this.setStroke(t),t.restore()},setFill:function(t){var e=this.srcElement.options.fill,n=!1;return e&&("gradient"==e.nodeType?(this.setGradientFill(t,e),n=!0):v(e.color)||(t.fillStyle=e.color,t.save(),this.globalAlpha(t,e.opacity),t.fill(),t.restore(),n=!0)),n},setGradientFill:function(t,e){var i,r,o,s,a=this.srcElement.rawBBox();e instanceof b.LinearGradient?(r=e.start(),o=e.end(),i=t.createLinearGradient(r.x,r.y,o.x,o.y)):e instanceof b.RadialGradient&&(s=e.center(),i=t.createRadialGradient(s.x,s.y,0,s.x,s.y,e.radius())),n(i,e.stops),t.save(),e.userSpace()||t.transform(a.width(),0,0,a.height(),a.origin.x,a.origin.y),t.fillStyle=i,t.fill(),t.restore()},setStroke:function(t){var e=this.srcElement.options.stroke;if(e&&!v(e.color)&&e.width>0)return t.strokeStyle=e.color,t.lineWidth=y(e.width,1),t.save(),this.globalAlpha(t,e.opacity),t.stroke(),t.restore(),!0},dashType:function(){var t=this.srcElement.options.stroke;if(t&&t.dashType)return t.dashType.toLowerCase()},setLineDash:function(t){var e,n=this.dashType();n&&n!=E&&(e=k[n],t.setLineDash?t.setLineDash(e):(t.mozDash=e,t.webkitLineDash=e))},setLineCap:function(t){var e=this.dashType(),n=this.srcElement.options.stroke;e&&e!==E?t.lineCap=T:n&&n.lineCap&&(t.lineCap=n.lineCap)},setLineJoin:function(t){var e=this.srcElement.options.stroke;e&&e.lineJoin&&(t.lineJoin=e.lineJoin)},renderPoints:function(t,e){var n,i,r,o,s,a,h=e.segments;if(0!==h.length){for(n=h[0],i=n.anchor(),t.moveTo(i.x,i.y),r=1;r<h.length;r++)n=h[r],i=n.anchor(),o=h[r-1],s=o.controlOut(),a=n.controlIn(),s&&a?t.bezierCurveTo(s.x,s.y,a.x,a.y,i.x,i.y):t.lineTo(i.x,i.y);e.options.closed&&t.closePath()}}}),o=r.extend({renderPoints:function(t){var e,n=this.srcElement.paths;for(e=0;e<n.length;e++)r.fn.renderPoints(t,n[e])}}),s=r.extend({renderPoints:function(t){var e=this.srcElement.geometry(),n=e.center,i=e.radius;t.arc(n.x,n.y,i,0,2*Math.PI)}}),a=r.extend({renderPoints:function(t){var e=this.srcElement.toPath();r.fn.renderPoints.call(this,t,e)}}),h=r.extend({renderTo:function(t){var e=this.srcElement,n=e.position(),i=e.measure();t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),t.font=e.options.font,this.setFill(t)&&t.fillText(e.content(),n.x,n.y+i.baseline),this.setStroke(t)&&(this.setLineDash(t),t.strokeText(e.content(),n.x,n.y+i.baseline)),t.restore()}}),l=r.extend({init:function(e,n){r.fn.init.call(this,e),this.onLoad=C(this.onLoad,this),this.onError=C(this.onError,this),this.loading=t.Deferred();var i=this.img=new Image;n&&!/^data:/i.test(e.src())&&(i.crossOrigin=n),i.src=e.src(),i.complete?this.onLoad():(i.onload=this.onLoad,i.onerror=this.onError)},renderTo:function(t){"resolved"===this.loading.state()&&(t.save(),this.setTransform(t),this.setClip(t),this.drawImage(t),t.restore())},optionsChange:function(e){"src"===e.field?(this.loading=t.Deferred(),this.img.src=this.srcElement.src()):r.fn.optionsChange.call(this,e)},onLoad:function(){this.loading.resolve(),this.invalidate()},onError:function(){this.loading.reject(Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))},drawImage:function(t){var e=this.srcElement.rect(),n=e.topLeft();t.drawImage(this.img,n.x,n.y,e.width(),e.height())}}),c=r.extend({renderPoints:function(t){var e=this.srcElement.geometry(),n=e.origin,i=e.size;t.rect(n.x,n.y,i.width,i.height)}}),u={Group:N,Text:h,Path:r,MultiPath:o,Circle:s,Arc:a,Image:l,Rect:c},d.support.canvas=function(){return!!f.createElement("canvas").getContext}(),d.support.canvas&&b.SurfaceFactory.current.register("canvas",A,20),p(d.drawing,{exportImage:e,canvas:{ArcNode:a,CircleNode:s,GroupNode:N,ImageNode:l,MultiPathNode:o,Node:O,PathNode:r,RectNode:c,RootNode:i,Surface:A,TextNode:h}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/vml.min",["drawing/shapes.min","kendo.color.min"],t)}(function(){!function(t){function e(){if(u.namespaces&&!u.namespaces.kvml){u.namespaces.add("kvml","urn:schemas-microsoft-com:vml");var t=u.styleSheets.length>30?u.styleSheets[0]:u.createStyleSheet();t.addRule(".kvml","behavior:url(#default#VML)")}}function n(t){var e=u.createElement("kvml:"+t);return e.className="kvml",e}function i(t){var e,n=t.length,i=[];for(e=0;e<n;e++)i.push(t[e].scaleCopy(R).toString(0,","));return i.join(" ")}function r(t,e){var n,r,s,a,h,l=t.segments,c=l.length;if(c>0){for(n=[],h=1;h<c;h++)s=o(l[h-1],l[h]),s!==a&&(a=s,n.push(s)),n.push("l"===s?i([l[h].anchor()]):i([l[h-1].controlOut(),l[h].controlIn(),l[h].anchor()]));return r="m "+i([l[0].anchor()])+" "+n.join(" "),t.options.closed&&(r+=" x"),e!==!0&&(r+=" e"),r}}function o(t,e){return t.controlOut()&&e.controlIn()?"c":"l"}function s(t){return 0===t.indexOf("fill")||0===t.indexOf(M)}function a(t,e,n){var i,r=n*A(e.opacity(),1);return i=t?h(t,e.color(),r):h(e.color(),"#fff",1-r)}function h(t,e,n){var i=new C(t),r=new C(e),o=l(i.r,r.r,n),s=l(i.g,r.g,n),a=l(i.b,r.b,n);return new C(o,s,a).toHex()}function l(t,e,n){return f.round(n*e+(1-n)*t)}var c,u=document,f=Math,d=f.atan2,p=f.ceil,m=f.sqrt,g=window.kendo,v=g.deepExtend,x=t.noop,y=g.drawing,w=y.BaseNode,b=g.geometry,_=b.toMatrix,C=g.Color,T=g.util,k=T.isTransparent,S=T.defined,E=T.deg,P=T.round,A=T.valueOrDefault,O="none",N=".kendo",R=100,z=R*R,M="gradient",B=4,D=y.Surface.extend({init:function(t,n){y.Surface.fn.init.call(this,t,n),e(),this.element.empty(),this._root=new I,this._root.attachTo(this.element[0]),this.element.on("click"+N,this._click),this.element.on("mouseover"+N,this._mouseenter),this.element.on("mouseout"+N,this._mouseleave),this.element.on("mousemove"+N,this._mousemove)},type:"vml",destroy:function(){this._root&&(this._root.destroy(),this._root=null,this.element.off(N)),y.Surface.fn.destroy.call(this)},draw:function(t){y.Surface.fn.draw.call(this,t),this._root.load([t],void 0,null)},clear:function(){y.Surface.fn.clear.call(this),this._root.clear()}}),L=w.extend({init:function(t){w.fn.init.call(this,t),this.createElement(),this.attachReference()},observe:x,destroy:function(){this.element&&(this.element._kendoNode=null,this.element=null),w.fn.destroy.call(this)},clear:function(){var t,e;for(this.element&&(this.element.innerHTML=""),t=this.childNodes,e=0;e<t.length;e++)t[e].destroy();this.childNodes=[]},removeSelf:function(){this.element&&(this.element.parentNode.removeChild(this.element),this.element=null),w.fn.removeSelf.call(this)},createElement:function(){this.element=u.createElement("div")},attachReference:function(){this.element._kendoNode=this},load:function(t,e,n,i){var r,o,s,a,h,l;for(i=A(i,1),this.srcElement&&(i*=A(this.srcElement.options.opacity,1)),r=0;r<t.length;r++)o=t[r],s=o.children,a=o.currentTransform(n),h=i*A(o.options.opacity,1),l=new ht[o.nodeType](o,a,h),s&&s.length>0&&l.load(s,e,a,i),S(e)?this.insertAt(l,e):this.append(l),l.attachTo(this.element,e)},attachTo:function(t,e){S(e)?t.insertBefore(this.element,t.children[e]||null):t.appendChild(this.element)},optionsChange:function(t){"visible"==t.field&&this.css("display",t.value!==!1?"":O)},setStyle:function(){this.allCss(this.mapStyle())},mapStyle:function(){var t=[];return this.srcElement&&this.srcElement.options.visible===!1&&t.push(["display",O]),t},mapOpacityTo:function(t,e){var n=A(this.opacity,1);n*=A(e,1),t.push(["opacity",n])},attr:function(t,e){this.element&&(this.element[t]=e)},allAttr:function(t){for(var e=0;e<t.length;e++)this.attr(t[e][0],t[e][1])},css:function(t,e){this.element&&(this.element.style[t]=e)},allCss:function(t){for(var e=0;e<t.length;e++)this.css(t[e][0],t[e][1])}}),I=L.extend({createElement:function(){L.fn.createElement.call(this),this.allCss([["width","100%"],["height","100%"],["position","relative"],["visibility","visible"]])},attachReference:x}),F=g.Class.extend({init:function(t,e){this.srcElement=t,this.observer=e,t.addObserver(this)},geometryChange:function(){this.observer.optionsChange({field:"clip",value:this.srcElement})},clear:function(){this.srcElement.removeObserver(this)}}),G=L.extend({init:function(t){L.fn.init.call(this,t),t&&this.initClip()},observe:function(){w.fn.observe.call(this)},mapStyle:function(){var t=L.fn.mapStyle.call(this);return this.srcElement&&this.srcElement.clip()&&t.push(["clip",this.clipRect()]),t},optionsChange:function(t){"clip"==t.field&&(this.clearClip(),this.initClip(),this.setClip()),L.fn.optionsChange.call(this,t)},clear:function(){this.clearClip(),L.fn.clear.call(this)},initClip:function(){this.srcElement.clip()&&(this.clip=new F(this.srcElement.clip(),this),this.clip.observer=this)},clearClip:function(){this.clip&&(this.clip.clear(),this.clip=null,this.css("clip",this.clipRect()))},setClip:function(){this.clip&&this.css("clip",this.clipRect())},clipRect:function(){var t,e,n,i=c,r=this.srcElement.clip();return r&&(t=this.clipBBox(r),e=t.topLeft(),n=t.bottomRight(),i=g.format("rect({0}px {1}px {2}px {3}px)",e.y,n.x,n.y,e.x)),i},clipBBox:function(t){var e=this.srcElement.rawBBox().topLeft(),n=t.rawBBox();return n.origin.translate(-e.x,-e.y),n}}),j=G.extend({createElement:function(){L.fn.createElement.call(this),this.setStyle()},attachTo:function(t,e){this.css("display",O),L.fn.attachTo.call(this,t,e),this.srcElement.options.visible!==!1&&this.css("display","")},_attachTo:function(t){var e=document.createDocumentFragment();e.appendChild(this.element),t.appendChild(e)},mapStyle:function(){var t=G.fn.mapStyle.call(this);return t.push(["position","absolute"]),t.push(["white-space","nowrap"]),t},optionsChange:function(t){"transform"===t.field&&this.refreshTransform(),"opacity"===t.field&&this.refreshOpacity(),G.fn.optionsChange.call(this,t)},refreshTransform:function(t){var e,n=this.srcElement.currentTransform(t),i=this.childNodes,r=i.length;for(this.setClip(),e=0;e<r;e++)i[e].refreshTransform(n)},currentOpacity:function(){var t=A(this.srcElement.options.opacity,1);return this.parent&&this.parent.currentOpacity&&(t*=this.parent.currentOpacity()),t},refreshOpacity:function(){var t,e=this.childNodes,n=e.length,i=this.currentOpacity();for(t=0;t<n;t++)e[t].refreshOpacity(i)},initClip:function(){if(G.fn.initClip.call(this),this.clip){var t=this.clip.srcElement.bbox(this.srcElement.currentTransform());t&&(this.css("width",t.width()+t.origin.x),this.css("height",t.height()+t.origin.y))}},clipBBox:function(t){return t.bbox(this.srcElement.currentTransform())},clearClip:function(){G.fn.clearClip.call(this)}}),H=L.extend({init:function(t,e){this.opacity=e,L.fn.init.call(this,t)},createElement:function(){this.element=n("stroke"),this.setOpacity()},optionsChange:function(t){0===t.field.indexOf("stroke")&&this.setStroke()},refreshOpacity:function(t){this.opacity=t,this.setStroke()},setStroke:function(){this.allAttr(this.mapStroke())},setOpacity:function(){this.setStroke()},mapStroke:function(){var t,e=this.srcElement.options.stroke,n=[];return e&&!k(e.color)&&0!==e.width?(n.push(["on","true"]),n.push(["color",e.color]),n.push(["weight",(e.width||1)+"px"]),this.mapOpacityTo(n,e.opacity),S(e.dashType)&&n.push(["dashstyle",e.dashType]),S(e.lineJoin)&&n.push(["joinstyle",e.lineJoin]),S(e.lineCap)&&(t=e.lineCap.toLowerCase(),"butt"===t&&(t="butt"===t?"flat":t),n.push(["endcap",t]))):n.push(["on","false"]),n}}),q=L.extend({init:function(t,e,n){this.opacity=n,L.fn.init.call(this,t)},createElement:function(){this.element=n("fill"),this.setFill()},optionsChange:function(t){s(t.field)&&this.setFill()},refreshOpacity:function(t){this.opacity=t,this.setOpacity()},setFill:function(){this.allAttr(this.mapFill())},setOpacity:function(){this.setFill()},attr:function(t,e){var n,i=this.element;if(i){for(n=t.split(".");n.length>1;)i=i[n.shift()];i[n[0]]=e}},mapFill:function(){var t=this.srcElement.fill(),e=[["on","false"]];return t&&(t.nodeType==M?e=this.mapGradient(t):k(t.color)||(e=this.mapFillColor(t))),e},mapFillColor:function(t){var e=[["on","true"],["color",t.color]];return this.mapOpacityTo(e,t.opacity),e},mapGradient:function(t){var e,n=this.srcElement.options,i=n.fallbackFill||t.fallbackFill&&t.fallbackFill();return e=t instanceof y.LinearGradient?this.mapLinearGradient(t):t instanceof y.RadialGradient&&t.supportVML?this.mapRadialGradient(t):i?this.mapFillColor(i):[["on","false"]]},mapLinearGradient:function(t){var e=t.start(),n=t.end(),i=T.deg(d(n.y-e.y,n.x-e.x)),r=[["on","true"],["type",M],["focus",0],["method","none"],["angle",270-i]];return this.addColors(r),r},mapRadialGradient:function(t){var e=this.srcElement.rawBBox(),n=t.center(),i=(n.x-e.origin.x)/e.width(),r=(n.y-e.origin.y)/e.height(),o=[["on","true"],["type","gradienttitle"],["focus","100%"],["focusposition",i+" "+r],["method","none"]];
return this.addColors(o),o},addColors:function(t){var e,n,i=this.srcElement.options,r=A(this.opacity,1),o=[],s=i.fill.stops,h=i.baseColor,l=this.element.colors?"colors.value":"colors",c=a(h,s[0],r),u=a(h,s[s.length-1],r);for(n=0;n<s.length;n++)e=s[n],o.push(f.round(100*e.offset())+"% "+a(h,e,r));t.push([l,o.join(",")],["color",c],["color2",u])}}),$=L.extend({init:function(t,e){this.transform=e,L.fn.init.call(this,t)},createElement:function(){this.element=n("skew"),this.setTransform()},optionsChange:function(t){"transform"===t.field&&this.refresh(this.srcElement.currentTransform())},refresh:function(t){this.transform=t,this.setTransform()},transformOrigin:function(){return"-0.5,-0.5"},setTransform:function(){this.allAttr(this.mapTransform())},mapTransform:function(){var t=this.transform,e=[],n=_(t);return n?(n.round(B),e.push(["on","true"],["matrix",[n.a,n.c,n.b,n.d,0,0].join(",")],["offset",n.e+"px,"+n.f+"px"],["origin",this.transformOrigin()])):e.push(["on","false"]),e}}),X=G.extend({init:function(t,e,n){this.fill=this.createFillNode(t,e,n),this.stroke=new H(t,n),this.transform=this.createTransformNode(t,e),G.fn.init.call(this,t)},attachTo:function(t,e){this.fill.attachTo(this.element),this.stroke.attachTo(this.element),this.transform.attachTo(this.element),L.fn.attachTo.call(this,t,e)},createFillNode:function(t,e,n){return new q(t,e,n)},createTransformNode:function(t,e){return new $(t,e)},createElement:function(){this.element=n("shape"),this.setCoordsize(),this.setStyle()},optionsChange:function(t){s(t.field)?this.fill.optionsChange(t):0===t.field.indexOf("stroke")?this.stroke.optionsChange(t):"transform"===t.field?this.transform.optionsChange(t):"opacity"===t.field&&(this.fill.setOpacity(),this.stroke.setOpacity()),G.fn.optionsChange.call(this,t)},refreshTransform:function(t){this.transform.refresh(this.srcElement.currentTransform(t))},refreshOpacity:function(t){t*=A(this.srcElement.options.opacity,1),this.fill.refreshOpacity(t),this.stroke.refreshOpacity(t)},mapStyle:function(t,e){var n,i=G.fn.mapStyle.call(this);return t&&e||(t=e=R),i.push(["position","absolute"],["width",t+"px"],["height",e+"px"]),n=this.srcElement.options.cursor,n&&i.push(["cursor",n]),i},setCoordsize:function(){this.allAttr([["coordorigin","0 0"],["coordsize",z+" "+z]])}}),U=L.extend({createElement:function(){this.element=n("path"),this.setPathData()},geometryChange:function(){this.setPathData()},setPathData:function(){this.attr("v",this.renderData())},renderData:function(){return r(this.srcElement)}}),Y=X.extend({init:function(t,e,n){this.pathData=this.createDataNode(t),X.fn.init.call(this,t,e,n)},attachTo:function(t,e){this.pathData.attachTo(this.element),X.fn.attachTo.call(this,t,e)},createDataNode:function(t){return new U(t)},geometryChange:function(){this.pathData.geometryChange(),X.fn.geometryChange.call(this)}}),V=U.extend({renderData:function(){var t,e,n,i=this.srcElement.paths;if(i.length>0){for(t=[],e=0;e<i.length;e++)n=e<i.length-1,t.push(r(i[e],n));return t.join(" ")}}}),W=Y.extend({createDataNode:function(t){return new V(t)}}),Q=$.extend({transformOrigin:function(){var t=this.srcElement.geometry().bbox(),e=t.center(),n=-p(e.x)/p(t.width()),i=-p(e.y)/p(t.height());return n+","+i}}),Z=X.extend({createElement:function(){this.element=n("oval"),this.setStyle()},createTransformNode:function(t,e){return new Q(t,e)},geometryChange:function(){X.fn.geometryChange.call(this),this.setStyle(),this.refreshTransform()},mapStyle:function(){var t=this.srcElement.geometry(),e=t.radius,n=t.center,i=p(2*e),r=X.fn.mapStyle.call(this,i,i);return r.push(["left",p(n.x-e)+"px"],["top",p(n.y-e)+"px"]),r}}),J=U.extend({renderData:function(){return r(this.srcElement.toPath())}}),K=Y.extend({createDataNode:function(t){return new J(t)}}),tt=U.extend({createElement:function(){U.fn.createElement.call(this),this.attr("textpathok",!0)},renderData:function(){var t=this.srcElement.rect(),e=t.center();return"m "+i([new b.Point(t.topLeft().x,e.y)])+" l "+i([new b.Point(t.bottomRight().x,e.y)])}}),et=L.extend({createElement:function(){this.element=n("textpath"),this.attr("on",!0),this.attr("fitpath",!1),this.setStyle(),this.setString()},optionsChange:function(t){"content"===t.field?this.setString():this.setStyle(),L.fn.optionsChange.call(this,t)},mapStyle:function(){return[["font",this.srcElement.options.font]]},setString:function(){this.attr("string",this.srcElement.content())}}),nt=Y.extend({init:function(t,e,n){this.path=new et(t),Y.fn.init.call(this,t,e,n)},createDataNode:function(t){return new tt(t)},attachTo:function(t,e){this.path.attachTo(this.element),Y.fn.attachTo.call(this,t,e)},optionsChange:function(t){"font"!==t.field&&"content"!==t.field||(this.path.optionsChange(t),this.pathData.geometryChange(t)),Y.fn.optionsChange.call(this,t)}}),it=U.extend({renderData:function(){var t=this.srcElement.rect(),e=(new y.Path).moveTo(t.topLeft()).lineTo(t.topRight()).lineTo(t.bottomRight()).lineTo(t.bottomLeft()).close();return r(e)}}),rt=$.extend({init:function(t,e,n){this.opacity=n,$.fn.init.call(this,t,e)},createElement:function(){this.element=n("fill"),this.attr("type","frame"),this.attr("rotate",!0),this.setOpacity(),this.setSrc(),this.setTransform()},optionsChange:function(t){"src"===t.field&&this.setSrc(),$.fn.optionsChange.call(this,t)},geometryChange:function(){this.refresh()},refreshOpacity:function(t){this.opacity=t,this.setOpacity()},setOpacity:function(){var t=[];this.mapOpacityTo(t,this.srcElement.options.opacity),this.allAttr(t)},setSrc:function(){this.attr("src",this.srcElement.src())},mapTransform:function(){var t,e,n,i,r,o,s,a,h=this.srcElement,l=h.rawBBox(),c=l.center(),u=R/2,f=R,p=l.width()/f,g=l.height()/f,v=0,x=this.transform;return x?(n=_(x),i=m(n.a*n.a+n.b*n.b),r=m(n.c*n.c+n.d*n.d),p*=i,g*=r,o=E(d(n.b,n.d)),s=E(d(-n.c,n.a)),v=(o+s)/2,0!==v?(a=h.bbox().center(),t=(a.x-u)/f,e=(a.y-u)/f):(t=(c.x*i+n.e-u)/f,e=(c.y*r+n.f-u)/f)):(t=(c.x-u)/f,e=(c.y-u)/f),p=P(p,B),g=P(g,B),t=P(t,B),e=P(e,B),v=P(v,B),[["size",p+","+g],["position",t+","+e],["angle",v]]}}),ot=Y.extend({createFillNode:function(t,e,n){return new rt(t,e,n)},createDataNode:function(t){return new it(t)},optionsChange:function(t){"src"!==t.field&&"transform"!==t.field||this.fill.optionsChange(t),Y.fn.optionsChange.call(this,t)},geometryChange:function(){this.fill.geometryChange(),Y.fn.geometryChange.call(this)},refreshTransform:function(t){Y.fn.refreshTransform.call(this,t),this.fill.refresh(this.srcElement.currentTransform(t))}}),st=U.extend({renderData:function(){var t=this.srcElement.geometry(),e=["m",i([t.topLeft()]),"l",i([t.topRight(),t.bottomRight(),t.bottomLeft()]),"x e"];return e.join(" ")}}),at=Y.extend({createDataNode:function(t){return new st(t)}}),ht={Group:j,Text:nt,Path:Y,MultiPath:W,Circle:Z,Arc:K,Image:ot,Rect:at};g.support.vml=function(){var t=g.support.browser;return t.msie&&t.version<9}(),c="inherit",g.support.browser.msie&&g.support.browser.version<8&&(c="rect(auto auto auto auto)"),g.support.vml&&y.SurfaceFactory.current.register("vml",D,30),v(y,{vml:{ArcDataNode:J,ArcNode:K,CircleTransformNode:Q,CircleNode:Z,FillNode:q,GroupNode:j,ImageNode:ot,ImageFillNode:rt,ImagePathDataNode:it,MultiPathDataNode:V,MultiPathNode:W,Node:L,PathDataNode:U,PathNode:Y,RectDataNode:st,RectNode:at,RootNode:I,StrokeNode:H,Surface:D,TextNode:nt,TextPathNode:et,TextPathDataNode:tt,TransformNode:$}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/html.min",["kendo.color.min","drawing/shapes.min","util/main.min","util/text-metrics.min"],t)}(function(){!function(t,e,n){"use strict";function i(t){return"number"==typeof t?{x:t,y:t}:Array.isArray(t)?{x:t[0],y:t[1]}:{x:t.x,y:t.y}}function r(n,r){function s(e){var n=new ht.Group,i=e.getBoundingClientRect();return R(n,[u.x,0,0,u.y,-i.left*u.x,-i.top*u.y]),gt._clipbox=!1,gt._matrix=lt.Matrix.unit(),gt._stackingContext={element:e,group:n},gt._avoidLinks=r.avoidLinks===!0?"a":r.avoidLinks,t(e).addClass("k-pdf-export"),et(e,n),t(e).removeClass("k-pdf-export"),n}function a(e){if(null!=e)return"string"==typeof e&&(e=kendo.template(e.replace(/^\s+|\s+$/g,""))),"function"==typeof e?function(n){var i=e(n);if(i)return"string"==typeof i&&(i=i.replace(/^\s+|\s+$/g,"")),t(i)[0]}:function(){return t(e).clone()[0]}}function h(e){var n,i,r,o,s=e.cloneNode(!1);if(1==e.nodeType){n=t(e),i=t(s),o=n.data();for(r in o)i.data(r,o[r]);if(/^canvas$/i.test(e.tagName))s.getContext("2d").drawImage(e,0,0);else if(/^input$/i.test(e.tagName))e.removeAttribute("name");else for(r=e.firstChild;r;r=r.nextSibling)s.appendChild(h(r))}return s}function l(n,i,r,o,s,l,c){function u(){function t(){d(k,function(){n({pages:k,container:E})})}var e,i;("-"!=r||s)&&m(S),e=x(),S.parentNode.insertBefore(e,S),e.appendChild(S),C?(i=k.length,k.forEach(function(e,n){var r=C({element:e,pageNum:n+1,totalPages:k.length});r&&(e.appendChild(r),p(r,function(){0===--i&&t()}))})):t()}function f(t){if(c.keepTogether&&t.is(c.keepTogether)&&t.height()<=s-P)return!0;var e=t[0].tagName;return!(/^h[1-6]$/i.test(e)&&t.height()>=s-P)&&(t.data("kendoChart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])$/i.test(e))}function m(n){var i,o,a,h,l=b(n),c=e(_(l,"padding-bottom")),u=e(_(l,"border-bottom-width")),d=P;for(P+=c+u,i=!0,o=n.firstChild;o;o=o.nextSibling)if(1==o.nodeType){if(i=!1,a=t(o),a.is(r)){v(o);continue}if(!s){m(o);continue}if(!/^(?:static|relative)$/.test(_(b(o),"position")))continue;h=y(o),1==h?v(o):h&&f(a)?v(o):m(o)}else 3==o.nodeType&&s&&(w(o,i),i=!1);P=d}function g(t){var e=t.parentNode,n=e.firstChild;if(t===n)return!0;if(t===e.children[0]){if(7==n.nodeType||8==n.nodeType)return!0;if(3==n.nodeType)return!/\S/.test(n.data)}return!1}function v(e){var n,i,r,o,s,a,h;return 1==e.nodeType&&e!==S&&g(e)?v(e.parentNode):(n=t(e).closest("table"),i=n.find("colgroup:first"),c.repeatHeaders&&(r=n.find("thead:first"),o=t(e).closest('.k-grid[data-role="grid"]'),o[0]&&o[0].querySelector(".k-auto-scrollable")&&(s=o.find(".k-grid-header:first"))),a=x(),h=T.createRange(),h.setStartBefore(S),h.setEndBefore(e),a.appendChild(h.extractContents()),S.parentNode.insertBefore(a,S),n[0]&&(n=t(e).closest("table"),c.repeatHeaders&&r[0]&&r.clone().prependTo(n),i[0]&&i.clone().prependTo(n)),void(c.repeatHeaders&&s&&s[0]&&(o=t(e).closest('.k-grid[data-role="grid"]'),s[0]&&s.clone().prependTo(o))))}function x(){var e=T.createElement("KENDO-PDF-PAGE");return t(e).css({display:"block",boxSizing:"content-box",width:o||"auto",padding:l.top+"px "+l.right+"px "+l.bottom+"px "+l.left+"px",position:"relative",height:s||"auto",overflow:s||o?"hidden":"visible",clear:"both"}),c&&c.pageClassName&&(e.className=c.pageClassName),k.push(e),e}function y(t){var e,n,i=t.getBoundingClientRect();return 0===i.width||0===i.height?0:(e=S.getBoundingClientRect().top,n=s-P,i.height>n?3:i.top-e>n?1:i.bottom-e>n?2:0)}function w(t,e){var n,i,r,o,s;/\S/.test(t.data)&&(n=t.data.length,i=T.createRange(),i.selectNodeContents(t),r=y(i),r&&(o=t,1==r?v(e?t.parentNode:t):(!function a(e,n,r){return i.setEnd(t,n),e==n||n==r?n:y(i)?a(e,e+n>>1,n):a(n,n+r>>1,r)}(0,n>>1,n),!/\S/.test(""+i)&&e?v(t.parentNode):(o=t.splitText(i.endOffset),s=x(),i.setStartBefore(S),s.appendChild(i.extractContents()),S.parentNode.insertBefore(s,S))),w(o)))}var C=a(c.template),T=i.ownerDocument,k=[],S=c._destructive?i:h(i),E=T.createElement("KENDO-PDF-DOCUMENT"),P=0;t(S).find("tfoot").each(function(){this.parentNode.appendChild(this)}),t(S).find("ol").each(function(){t(this).children().each(function(t){this.setAttribute("kendo-split-index",t)})}),t(E).css({display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),o&&(t(E).css({width:o,paddingLeft:l.left,paddingRight:l.right}),t(S).css({overflow:"hidden"})),i.parentNode.insertBefore(E,i),E.appendChild(S),c.beforePageBreak?setTimeout(function(){c.beforePageBreak(E,u)},15):setTimeout(u,15)}var c,u;if(r||(r={}),c=t.Deferred(),n=t(n)[0],!n)return c.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw Error("window.getComputedStyle is missing.  You are using an unsupported browser, or running in IE8 compatibility mode.  Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");return kendo.pdf&&kendo.pdf.defineFont(o(n.ownerDocument)),u=i(r.scale||1),p(n,function(){var t,e=r&&r.forcePageBreak,i=r&&r.paperSize&&"auto"!=r.paperSize,o=kendo.pdf.getPaperOptions(function(t,e){return"paperSize"==t?i?r[t]:"A4":t in r?r[t]:e}),a=i&&o.paperSize[0],h=i&&o.paperSize[1],f=r.margin&&o.margin,d=!!f;e||h?(f||(f={left:0,top:0,right:0,bottom:0}),a&&(a/=u.x),h&&(h/=u.y),f.left/=u.x,f.right/=u.x,f.top/=u.y,f.bottom/=u.y,t=new ht.Group({pdf:{multiPage:!0,paperSize:i?o.paperSize:"auto",_ignoreMargin:d}}),l(function(e){if(r.progress){var n=!1,i=0;!function o(){if(i<e.pages.length){var a=s(e.pages[i]);t.append(a),r.progress({page:a,pageNum:++i,totalPages:e.pages.length,cancel:function(){n=!0}}),n?e.container.parentNode.removeChild(e.container):setTimeout(o)}else e.container.parentNode.removeChild(e.container),c.resolve(t)}()}else e.pages.forEach(function(e){t.append(s(e))}),e.container.parentNode.removeChild(e.container),c.resolve(t)},n,e,a?a-f.left-f.right:null,h?h-f.top-f.bottom:null,f,r)):c.resolve(s(n))}),c.promise()}function o(t){function e(t){if(t){var e=null;try{e=t.cssRules}catch(n){}e&&i(t,e)}}function n(t){var e,n=_(t.style,"src");return n?ot(n).reduce(function(t,e){var n=st(e);return n&&t.push(n),t},[]):(e=st(t.cssText),e?[e]:[])}function i(t,i){var o,s,a,h,l,c,u;for(o=0;o<i.length;++o)switch(s=i[o],s.type){case 3:e(s.styleSheet);break;case 5:a=s.style,h=ot(_(a,"font-family")),l=/^([56789]00|bold)$/i.test(_(a,"font-weight")),c="italic"==_(a,"font-style"),u=n(s),u.length>0&&r(t,h,l,c,u[0])}}function r(t,e,n,i,r){/^data:/i.test(r)||/^[^\/:]+:\/\//.test(r)||/^\//.test(r)||(r=(t.href+"").replace(/[^\/]*$/,"")+r),e.forEach(function(t){t=t.replace(/^(['"]?)(.*?)\1$/,"$2"),n&&(t+="|bold"),i&&(t+="|italic"),o[t]=r})}var o,s;for(null==t&&(t=document),o={},s=0;s<t.styleSheets.length;++s)e(t.styleSheets[s]);return o}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){return t="_counter_"+t,gt[t]}function h(t){var e=[],n=gt;for(t="_counter_"+t;n;)s(n,t)&&e.push(n[t]),n=Object.getPrototypeOf(n);return e.reverse()}function l(t,e){var n=gt;for(t="_counter_"+t;n&&!s(n,t);)n=Object.getPrototypeOf(n);n||(n=gt._root),n[t]=(n[t]||0)+(null==e?1:e)}function c(t,e){t="_counter_"+t,gt[t]=null==e?0:e}function u(t,n,i){var r,o,s;for(r=0;r<t.length;)o=t[r++],s=e(t[r]),isNaN(s)?n(o,i):(n(o,s),++r)}function f(t,e){var n=kendo.parseColor(t);return n&&(n=n.toRGB(),e?n=n.toCssRgba():0===n.a&&(n=null)),n}function d(t,e){function n(){--i<=0&&e()}var i=0;t.forEach(function(t){var e,r,o=t.querySelectorAll("img");for(e=0;e<o.length;++e)r=o[e],r.complete||(i++,r.onload=r.onerror=n)}),i||n()}function p(t,e){function n(t){mt[t]||(mt[t]=!0,o.push(t))}function i(){--r<=0&&e()}var r,o=[];!function s(t){/^img$/i.test(t.tagName)&&n(t.src),rt(_(b(t),"background-image")).forEach(function(t){"url"==t.type&&n(t.url)}),t.children&&ct.call(t.children).forEach(s)}(t),r=o.length,0===r&&i(),o.forEach(function(t){var e=mt[t]=new Image;/^data:/i.test(t)||(e.crossOrigin="Anonymous"),e.src=t,e.complete?i():(e.onload=i,e.onerror=function(){mt[t]=null,i()})})}function m(t){var e,i="";do e=t%26,i=String.fromCharCode(97+e)+i,t=n.floor(t/26);while(t>0);return i}function g(t,e,n){var i,r;gt=Object.create(gt),gt[t.tagName.toLowerCase()]={element:t,style:e},i=_(e,"text-decoration"),i&&"none"!=i&&(r=_(e,"color"),i.split(/\s+/g).forEach(function(t){gt[t]||(gt[t]=r)})),w(e)&&(gt._stackingContext={element:t,group:n})}function v(){gt=Object.getPrototypeOf(gt)}function x(t){if(null!=gt._clipbox){var e=t.bbox(gt._matrix);gt._clipbox=gt._clipbox?lt.Rect.intersect(gt._clipbox,e):e}}function y(){var t=gt._clipbox;return null==t||(t?0===t.width()||0===t.height():void 0)}function w(t){function e(e){return _(t,e)}if("none"!=e("transform")||"static"!=e("position")&&"auto"!=e("z-index")||e("opacity")<1)return!0}function b(t,e){return window.getComputedStyle(t,e||null)}function _(t,e){var n=t.getPropertyValue(e);return null!=n&&""!==n||(ut.webkit?n=t.getPropertyValue("-webkit-"+e):ut.mozilla?n=t.getPropertyValue("-moz-"+e):ut.opera?n=t.getPropertyValue("-o-"+e):ut.msie&&(n=t.getPropertyValue("-ms-"+e))),n}function C(t,e,n,i){t.setProperty(e,n,i),ut.webkit?t.setProperty("-webkit-"+e,n,i):ut.mozilla?t.setProperty("-moz-"+e,n,i):ut.opera?t.setProperty("-o-"+e,n,i):ut.msie&&(t.setProperty("-ms-"+e,n,i),e="ms"+e.replace(/(^|-)([a-z])/g,function(t,e,n){return e+n.toUpperCase()}),t[e]=n)}function T(t,n){return n="border-"+n,{width:e(_(t,n+"-width")),style:_(t,n+"-style"),color:f(_(t,n+"-color"),!0)}}function k(t,e){var n=t.style.cssText,i=e();return t.style.cssText=n,i}function S(t,n){var i=_(t,"border-"+n+"-radius").split(/\s+/g).map(e);return 1==i.length&&i.push(i[0]),B({x:i[0],y:i[1]})}function E(t){var e=t.getBoundingClientRect();return e=P(e,"border-*-width",t),e=P(e,"padding-*",t)}function P(t,n,i){var r,o,s,a,h;return"string"==typeof n?(r=b(i),o=e(_(r,n.replace("*","top"))),s=e(_(r,n.replace("*","right"))),a=e(_(r,n.replace("*","bottom"))),h=e(_(r,n.replace("*","left")))):"number"==typeof n&&(o=s=a=h=n),{top:t.top+o,right:t.right-s,bottom:t.bottom-a,left:t.left+h,width:t.right-t.left-s-h,height:t.bottom-t.top-a-o}}function A(t){var n,i,r=_(t,"transform");return"none"==r?null:(n=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(r),n?(i=_(t,"transform-origin"),n=n[1].split(/\s*,\s*/g).map(e),i=i.split(/\s+/g).map(e),{matrix:n,origin:i}):void 0)}function O(t){return 180*t/n.PI%360}function N(t){var i=e(t);return/grad$/.test(t)?n.PI*i/200:/rad$/.test(t)?i:/turn$/.test(t)?n.PI*i*2:/deg$/.test(t)?n.PI*i/180:void 0}function R(t,e){return e=new lt.Matrix(e[0],e[1],e[2],e[3],e[4],e[5]),t.transform(e),e}function z(t,e){t.clip(e)}function M(t,e,n,i){for(var r=new lt.Arc([e,n],i).curvePoints(),o=1;o<r.length;)t.curveTo(r[o++],r[o++],r[o++])}function B(t){return(t.x<=0||t.y<=0)&&(t.x=t.y=0),t}function D(t,e,i,r,o){var s=n.max(0,e.x),a=n.max(0,e.y),h=n.max(0,i.x),l=n.max(0,i.y),c=n.max(0,r.x),u=n.max(0,r.y),f=n.max(0,o.x),d=n.max(0,o.y),p=n.min(t.width/(s+h),t.height/(l+u),t.width/(c+f),t.height/(d+a));return p<1&&(s*=p,a*=p,h*=p,l*=p,c*=p,u*=p,f*=p,d*=p),{tl:{x:s,y:a},tr:{x:h,y:l},br:{x:c,y:u},bl:{x:f,y:d}}}function L(t,n,i){var r,o,s,a,h,l,c,u,f=b(t),d=S(f,"top-left"),p=S(f,"top-right"),m=S(f,"bottom-left"),g=S(f,"bottom-right");return"padding"!=i&&"content"!=i||(r=T(f,"top"),o=T(f,"right"),s=T(f,"bottom"),a=T(f,"left"),d.x-=a.width,d.y-=r.width,p.x-=o.width,p.y-=r.width,g.x-=o.width,g.y-=s.width,m.x-=a.width,m.y-=s.width,"content"==i&&(h=e(_(f,"padding-top")),l=e(_(f,"padding-right")),c=e(_(f,"padding-bottom")),u=e(_(f,"padding-left")),d.x-=u,d.y-=h,p.x-=l,p.y-=h,g.x-=l,g.y-=c,m.x-=u,m.y-=c)),"number"==typeof i&&(d.x-=i,d.y-=i,p.x-=i,p.y-=i,g.x-=i,g.y-=i,m.x-=i,m.y-=i),I(n,d,p,g,m)}function I(t,e,n,i,r){var o=D(t,e,n,i,r),s=o.tl,a=o.tr,h=o.br,l=o.bl,c=new ht.Path({fill:null,stroke:null});return c.moveTo(t.left,t.top+s.y),s.x&&M(c,t.left+s.x,t.top+s.y,{startAngle:-180,endAngle:-90,radiusX:s.x,radiusY:s.y}),c.lineTo(t.right-a.x,t.top),a.x&&M(c,t.right-a.x,t.top+a.y,{startAngle:-90,endAngle:0,radiusX:a.x,radiusY:a.y}),c.lineTo(t.right,t.bottom-h.y),h.x&&M(c,t.right-h.x,t.bottom-h.y,{startAngle:0,endAngle:90,radiusX:h.x,radiusY:h.y}),c.lineTo(t.left+l.x,t.bottom),l.x&&M(c,t.left+l.x,t.bottom-l.y,{startAngle:90,endAngle:180,radiusX:l.x,radiusY:l.y}),c.close()}function F(t,n){var i=e(t)+"";switch(n){case"decimal-leading-zero":return i.length<2&&(i="0"+i),i;case"lower-roman":return ft(t).toLowerCase();case"upper-roman":return ft(t).toUpperCase();case"lower-latin":case"lower-alpha":return m(t-1);case"upper-latin":case"upper-alpha":return m(t-1).toUpperCase();default:return i}}function G(t,e){function n(t,e,n){return n?(n=n.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),h(t).map(function(t){return F(t,e)}).join(n)):F(a(t)||0,e)}var i,r=ot(e,/^\s+/),o=[];return r.forEach(function(e){var r;(i=/^\s*(["'])(.*)\1\s*$/.exec(e))?o.push(i[2].replace(/\\([0-9a-f]{4})/gi,function(t,e){return String.fromCharCode(parseInt(e,16))})):(i=/^\s*counter\((.*?)\)\s*$/.exec(e))?(r=ot(i[1]),o.push(n(r[0],r[1]))):(i=/^\s*counters\((.*?)\)\s*$/.exec(e))?(r=ot(i[1]),o.push(n(r[0],r[2],r[1]))):o.push((i=/^\s*attr\((.*?)\)\s*$/.exec(e))?t.getAttribute(i[1])||"":e)}),o.join("")}function j(t){var e,n;if(t.cssText)return t.cssText;for(e=[],n=0;n<t.length;++n)e.push(t[n]+": "+_(t,t[n]));return e.join(";\n")}function H(t,e){function n(e,n){var r,o=b(t,e);o.content&&"normal"!=o.content&&"none"!=o.content&&"0px"!=o.width&&(r=t.ownerDocument.createElement(pt),r.style.cssText=j(o),r.textContent=G(t,o.content),t.insertBefore(r,n),i.push(r))}var i,r;return t.tagName==pt?void q(t,e):(i=[],n(":before",t.firstChild),n(":after",null),r=t.className,t.className+=" kendo-pdf-hide-pseudo-elements",q(t,e),t.className=r,void i.forEach(function(e){t.removeChild(e)}))}function q(i,r){function o(t){var e,n,r,o,s,a;if(/^td$/i.test(i.tagName)&&(e=gt.table,e&&"collapse"==_(e.style,"border-collapse"))){if(n=T(e.style,"left").width,r=T(e.style,"top").width,0===n&&0===r)return t;if(o=e.element.getBoundingClientRect(),s=e.element.rows[0].cells[0],a=s.getBoundingClientRect(),a.top==o.top||a.left==o.left)return ct.call(t).map(function(t){return{left:t.left+n,top:t.top+r,right:t.right+n,bottom:t.bottom+r,height:t.height,width:t.width}})}return t}function s(t,e,i,o,s,a,h,l){function c(e,r,o){var s=n.PI/2*e/(e+i),a={x:r.x-e,y:r.y-i},h=new ht.Path({fill:{color:t},stroke:null}).moveTo(0,0);R(h,o),M(h,0,r.y,{startAngle:-90,endAngle:-O(s),radiusX:r.x,radiusY:r.y}),a.x>0&&a.y>0?(h.lineTo(a.x*n.cos(s),r.y-a.y*n.sin(s)),M(h,0,r.y,{startAngle:-O(s),endAngle:-90,radiusX:a.x,radiusY:a.y,anticlockwise:!0})):a.x>0?h.lineTo(a.x,i).lineTo(0,i):h.lineTo(a.x,i).lineTo(a.x,0),f.append(h.close())}if(!(i<=0)){var u,f=new ht.Group;R(f,l),r.append(f),B(a),B(h),u=new ht.Path({fill:{color:t},stroke:null}),f.append(u),u.moveTo(a.x?n.max(a.x,o):0,0).lineTo(e-(h.x?n.max(h.x,s):0),0).lineTo(e-n.max(h.x,s),i).lineTo(n.max(a.x,o),i).close(),a.x&&c(o,a,[-1,0,0,1,a.x,0]),h.x&&c(s,h,[1,0,0,1,e-h.x,0])}}function a(e){var n,o,s=new ht.Group;for(z(s,I(e,q,U,W,Y)),r.append(s),"A"==i.tagName&&i.href&&!/^#?$/.test(t(i).attr("href"))&&(gt._avoidLinks&&t(i).is(gt._avoidLinks)||(s._pdfLink={url:i.href,top:e.top,right:e.right,bottom:e.bottom,left:e.left})),Z&&(n=new ht.Path({fill:{color:Z.toCssRgba()},stroke:null}),n.moveTo(e.left,e.top).lineTo(e.right,e.top).lineTo(e.right,e.bottom).lineTo(e.left,e.bottom).close(),s.append(n)),o=u.length;--o>=0;)h(s,e,u[o],d[o%d.length],p[o%p.length],g[o%g.length],v[o%v.length])}function h(t,r,o,s,a,h,l){function c(t,r,o,c,u){function f(){for(;x.origin.x>r.left;)x.origin.x-=o}function d(){for(;x.origin.y>r.top;)x.origin.y-=c}function p(){for(;x.origin.x<r.right;)u(t,x.clone()),x.origin.x+=o}var m,g,v,x,y,w=o/c,b=r;if("content-box"==h?(b=P(b,"border-*-width",i),b=P(b,"padding-*",i)):"padding-box"==h&&(b=P(b,"border-*-width",i)),/^\s*auto(\s+auto)?\s*$/.test(l)||("contain"==l?(m=n.min(b.width/o,b.height/c),o*=m,c*=m):"cover"==l?(m=n.max(b.width/o,b.height/c),o*=m,c*=m):(g=l.split(/\s+/g),o=/%$/.test(g[0])?b.width*e(g[0])/100:e(g[0]),c=1==g.length||"auto"==g[1]?o/w:/%$/.test(g[1])?b.height*e(g[1])/100:e(g[1]))),v=(a+"").split(/\s+/),1==v.length&&(v[1]="50%"),v[0]=/%$/.test(v[0])?e(v[0])/100*(b.width-o):e(v[0]),v[1]=/%$/.test(v[1])?e(v[1])/100*(b.height-c):e(v[1]),x=new lt.Rect([b.left+v[0],b.top+v[1]],[o,c]),"no-repeat"==s)u(t,x);else if("repeat-x"==s)f(),p();else if("repeat-y"==s)for(d();x.origin.y<r.bottom;)u(t,x.clone()),x.origin.y+=c;else if("repeat"==s)for(f(),d(),y=x.origin.clone();x.origin.y<r.bottom;)x.origin.x=y.x,p(),x.origin.y+=c}if(o&&"none"!=o)if("url"==o.type){if(/^url\(\"data:image\/svg/i.test(o.url))return;var u=mt[o.url];u&&u.width>0&&u.height>0&&c(t,r,u.width,u.height,function(t,e){t.append(new ht.Image(o.url,e))})}else{if("linear"!=o.type)return;c(t,r,r.width,r.height,$(o))}}function l(){function t(t){k(i,function(){i.style.position="relative";var e=i.ownerDocument.createElement(pt);e.style.position="absolute",e.style.boxSizing="border-box","outside"==n?(e.style.width="6em",e.style.left="-6.8em",e.style.textAlign="right"):e.style.left="0px",t(e),i.insertBefore(e,i.firstChild),et(e,r),i.removeChild(e)})}function e(t){var e,n=i.parentNode.children,r=i.getAttribute("kendo-split-index");if(null!=r)return t(0|r,n.length);for(e=0;e<n.length;++e)if(n[e]===i)return t(e,n.length)}var n,o=_(N,"list-style-type");if("none"!=o)switch(n=_(N,"list-style-position"),o){case"circle":case"disc":case"square":t(function(t){t.style.fontSize="60%",t.style.lineHeight="200%",t.style.paddingRight="0.5em",t.style.fontFamily="DejaVu Serif",t.innerHTML={disc:"●",circle:"◯",square:"■"}[o]});break;case"decimal":case"decimal-leading-zero":t(function(t){e(function(e){++e,"decimal-leading-zero"==o&&(e+"").length<2&&(e="0"+e),t.innerHTML=e+"."})});break;case"lower-roman":case"upper-roman":t(function(t){e(function(e){e=ft(e+1),"upper-roman"==o&&(e=e.toUpperCase()),t.innerHTML=e+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":t(function(t){e(function(e){e=m(e),/^upper/i.test(o)&&(e=e.toUpperCase()),t.innerHTML=e+"."})})}}function c(t,e,n){function o(t){return{x:t.y,y:t.x}}var h,l,c,u,f,d,p,m;if(0!==t.width&&0!==t.height&&(a(t),h=H.width>0&&(e&&"ltr"==Q||n&&"rtl"==Q),l=G.width>0&&(n&&"ltr"==Q||e&&"rtl"==Q),0!==F.width||0!==H.width||0!==G.width||0!==j.width)){if(F.color==G.color&&F.color==j.color&&F.color==H.color&&F.width==G.width&&F.width==j.width&&F.width==H.width&&h&&l)return t=P(t,F.width/2),c=L(i,t,F.width/2),c.options.stroke={color:F.color,width:F.width},void r.append(c);if(0===q.x&&0===U.x&&0===W.x&&0===Y.x&&F.width<2&&H.width<2&&G.width<2&&j.width<2)return F.width>0&&r.append(new ht.Path({stroke:{width:F.width,color:F.color}}).moveTo(t.left,t.top+F.width/2).lineTo(t.right,t.top+F.width/2)),j.width>0&&r.append(new ht.Path({stroke:{width:j.width,color:j.color}}).moveTo(t.left,t.bottom-j.width/2).lineTo(t.right,t.bottom-j.width/2)),h&&r.append(new ht.Path({stroke:{width:H.width,color:H.color}}).moveTo(t.left+H.width/2,t.top).lineTo(t.left+H.width/2,t.bottom)),void(l&&r.append(new ht.Path({stroke:{width:G.width,color:G.color}}).moveTo(t.right-G.width/2,t.top).lineTo(t.right-G.width/2,t.bottom)));u=D(t,q,U,W,Y),f=u.tl,d=u.tr,p=u.br,m=u.bl,s(F.color,t.width,F.width,H.width,G.width,f,d,[1,0,0,1,t.left,t.top]),s(j.color,t.width,j.width,G.width,H.width,p,m,[-1,0,0,-1,t.right,t.bottom]),s(H.color,t.height,H.width,j.width,F.width,o(m),o(f),[0,-1,1,0,t.left,t.bottom]),s(G.color,t.height,G.width,F.width,j.width,o(d),o(p),[0,1,-1,0,t.right,t.top])}}var u,d,p,g,v,y,w,C,E,A,N=b(i),F=T(N,"top"),G=T(N,"right"),j=T(N,"bottom"),H=T(N,"left"),q=S(N,"top-left"),U=S(N,"top-right"),Y=S(N,"bottom-left"),W=S(N,"bottom-right"),Q=_(N,"direction"),Z=_(N,"background-color");if(Z=f(Z),u=rt(_(N,"background-image")),d=ot(_(N,"background-repeat")),p=ot(_(N,"background-position")),g=ot(_(N,"background-origin")),v=ot(_(N,"background-size")),ut.msie&&ut.version<10&&(p=ot(i.currentStyle.backgroundPosition)),y=P(i.getBoundingClientRect(),"border-*-width",i),function(){var t,n,i,o,s,a,h,l=_(N,"clip"),c=/^\s*rect\((.*)\)\s*$/.exec(l);c&&(t=c[1].split(/[ ,]+/g),n="auto"==t[0]?y.top:e(t[0])+y.top,i="auto"==t[1]?y.right:e(t[1])+y.left,o="auto"==t[2]?y.bottom:e(t[2])+y.top,s="auto"==t[3]?y.left:e(t[3])+y.left,a=new ht.Group,h=(new ht.Path).moveTo(s,n).lineTo(i,n).lineTo(i,o).lineTo(s,o).close(),z(a,h),r.append(a),r=a,x(h))}(),A=_(N,"display"),"table-row"==A)for(w=[],C=0,E=i.children;C<E.length;++C)w.push(E[C].getBoundingClientRect());else w=i.getClientRects(),1==w.length&&(w=[i.getBoundingClientRect()]);for(w=o(w),C=0;C<w.length;++C)c(w[C],0===C,C==w.length-1);return w.length>0&&"list-item"==A&&l(w[0]),function(){function t(){var t=L(i,y,"padding"),e=new ht.Group;z(e,t),r.append(e),r=e,x(t)}V(i)?t():/^(hidden|auto|scroll)/.test(_(N,"overflow"))?t():/^(hidden|auto|scroll)/.test(_(N,"overflow-x"))?t():/^(hidden|auto|scroll)/.test(_(N,"overflow-y"))&&t()}(),X(i,r)||J(i,r),r}function $(t){return function(i,r){var o,s,a,h,l,c,u,f,d,p,m,g,v,x=r.width(),y=r.height();switch(t.type){case"linear":switch(o=null!=t.angle?t.angle:n.PI,t.to){case"top":o=0;break;case"left":o=-n.PI/2;break;case"bottom":o=n.PI;break;case"right":o=n.PI/2;break;case"top left":case"left top":o=-n.atan2(y,x);break;case"top right":case"right top":o=n.atan2(y,x);break;case"bottom left":case"left bottom":o=n.PI+n.atan2(y,x);break;case"bottom right":case"right bottom":o=n.PI-n.atan2(y,x)}t.reverse&&(o-=n.PI),o%=2*n.PI,o<0&&(o+=2*n.PI),s=n.abs(x*n.sin(o))+n.abs(y*n.cos(o)),a=n.atan(x*n.tan(o)/y),h=n.sin(a),l=n.cos(a),c=n.abs(h)+n.abs(l),u=c/2*h,f=c/2*l,o>n.PI/2&&o<=3*n.PI/2&&(u=-u,f=-f),d=[],p=0,m=t.stops.map(function(n,i){var r,o=n.percent;return o?o=e(o)/100:n.length?o=e(n.length)/s:0===i?o=0:i==t.stops.length-1&&(o=1),r={color:n.color.toCssRgba(),offset:o},null!=o?(p=o,d.forEach(function(t,e){var n=t.stop;n.offset=t.left+(p-t.left)*(e+1)/(d.length+1)}),d=[]):d.push({left:p,stop:r}),r}),g=[.5-u,.5+f],v=[.5+u,.5-f],i.append(ht.Path.fromRect(r).stroke(null).fill(new ht.LinearGradient({start:g,end:v,stops:m,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}}function X(e,n){var i,r,o,s;if(e.getAttribute(kendo.attr("role"))&&(i=kendo.widgetInstance(t(e)),i&&(i.exportDOMVisual||i.exportVisual)))return!!(r=i.exportDOMVisual?i.exportDOMVisual():i.exportVisual())&&(o=new ht.Group,o.children.push(r),s=e.getBoundingClientRect(),o.transform(lt.transform().translate(s.left,s.top)),n.append(o),!0)}function U(t,e,n){var i=E(t),r=new lt.Rect([i.left,i.top],[i.width,i.height]),o=new ht.Image(e,r);z(o,L(t,i,"content")),n.append(o)}function Y(t,n){var i=b(t),r=b(n),o=e(_(i,"z-index")),s=e(_(r,"z-index")),a=_(i,"position"),h=_(r,"position");return isNaN(o)&&isNaN(s)?/static|absolute/.test(a)&&/static|absolute/.test(h)?0:"static"==a?-1:"static"==h?1:0:isNaN(o)?0===s?0:s>0?-1:1:isNaN(s)?0===o?0:o>0?1:-1:e(o)-e(s)}function V(t){return/^(?:textarea|select|input)$/i.test(t.tagName)}function W(t){return t.selectedOptions&&t.selectedOptions.length>0?t.selectedOptions[0]:t.options[t.selectedIndex]}function Q(t,e){var i=b(t),r=_(i,"color"),o=t.getBoundingClientRect();"checkbox"==t.type?(e.append(ht.Path.fromRect(new lt.Rect([o.left+1,o.top+1],[o.width-2,o.height-2])).stroke(r,1)),t.checked&&e.append((new ht.Path).stroke(r,1.2).moveTo(o.left+.22*o.width,o.top+.55*o.height).lineTo(o.left+.45*o.width,o.top+.75*o.height).lineTo(o.left+.78*o.width,o.top+.22*o.width))):(e.append(new ht.Circle(new lt.Circle([(o.left+o.right)/2,(o.top+o.bottom)/2],n.min(o.width-2,o.height-2)/2)).stroke(r,1)),t.checked&&e.append(new ht.Circle(new lt.Circle([(o.left+o.right)/2,(o.top+o.bottom)/2],n.min(o.width-8,o.height-8)/2)).fill(r).stroke(null)))}function Z(t,e){var n,i,r,o,s,a=t.tagName.toLowerCase();if("input"==a&&("checkbox"==t.type||"radio"==t.type))return Q(t,e);if(n=t.parentNode,i=t.ownerDocument,r=i.createElement(pt),r.style.cssText=j(b(t)),"input"==a&&(r.style.whiteSpace="pre"),"select"!=a&&"textarea"!=a||(r.style.overflow="auto"),"select"==a)if(t.multiple)for(s=0;s<t.options.length;++s)o=i.createElement(pt),o.style.cssText=j(b(t.options[s])),o.style.display="block",o.textContent=t.options[s].textContent,r.appendChild(o);else o=W(t),o&&(r.textContent=o.textContent);else r.textContent=t.value;n.insertBefore(r,t),r.scrollLeft=t.scrollLeft,r.scrollTop=t.scrollTop,t.style.display="none",J(r,e),t.style.display="",n.removeChild(r)}function J(t,e){var n,i,r,o,s,a,h,l,c;switch(gt._stackingContext.element===t&&(gt._stackingContext.group=e),t.tagName.toLowerCase()){case"img":U(t,t.src,e);break;case"canvas":try{U(t,t.toDataURL("image/png"),e)}catch(u){}
break;case"textarea":case"input":case"select":Z(t,e);break;default:for(n=[],i=[],r=[],o=[],s=t.firstChild;s;s=s.nextSibling)switch(s.nodeType){case 3:/\S/.test(s.data)&&K(t,s,e);break;case 1:a=b(s),h=_(a,"display"),l=_(a,"float"),c=_(a,"position"),"static"!=c?o.push(s):"inline"!=h?"none"!=l?i.push(s):n.push(s):r.push(s)}dt(n,Y).forEach(function(t){et(t,e)}),dt(i,Y).forEach(function(t){et(t,e)}),dt(r,Y).forEach(function(t){et(t,e)}),dt(o,Y).forEach(function(t){et(t,e)})}}function K(t,i,r){function o(t){var e,i,r,o;if(ut.msie||ut.chrome){for(e=t.getClientRects(),i={top:+(1/0),right:-(1/0),bottom:-(1/0),left:+(1/0)},r=0;r<e.length;++r)o=e[r],o.width<=1||o.bottom===E||(i.left=n.min(o.left,i.left),i.top=n.min(o.top,i.top),i.right=n.max(o.right,i.right),i.bottom=n.max(o.bottom,i.bottom));return i.width=i.right-i.left,i.height=i.bottom-i.top,i}return t.getBoundingClientRect()}function s(){var t,e,r,s,h,l,d,p=u,m=c.substr(u).search(/\S/);if(u+=m,m<0||u>=f)return!0;if(v.setStart(i,u),v.setEnd(i,u+1),t=o(v),e=!1,w&&(m=c.substr(u).search(/\s/),m>=0&&(v.setEnd(i,u+m),r=o(v),r.bottom==t.bottom&&(t=r,e=!0,u+=m))),!e){if(m=function g(e,n,r){v.setEnd(i,n);var s=o(v);return s.bottom!=t.bottom&&e<n?g(e,e+n>>1,n):s.right!=t.right?(t=s,n<r?g(n,n+r>>1,r):n):n}(u,n.min(f,u+S),f),m==u)return!0;if(u=m,m=(""+v).search(/\s+$/),0===m)return;m>0&&(v.setEnd(i,v.startOffset+m),t=o(v))}if(ut.msie&&(t=v.getClientRects()[0]),s=""+v,/^(?:pre|pre-wrap)$/i.test(C)){if(/\t/.test(s)){for(h=0,m=p;m<v.startOffset;++m)l=c.charCodeAt(m),9==l?h+=8-h%8:10==l||13==l?h=0:h++;for(;(m=s.search("\t"))>=0;)d="        ".substr(0,8-(h+m)%8),s=s.substr(0,m)+d+s.substr(m+1)}}else s=s.replace(/\s+/g," ");e||(E=t.bottom),a(s,t)}function a(t,e){var n,i,o;ut.msie&&!isNaN(p)&&(n=at(m),i=(e.top+e.bottom-n)/2,e={top:i,right:e.right,bottom:i+n,left:e.left,height:n,width:e.right-e.left}),o=new it(t,new lt.Rect([e.left,e.top],[e.width,e.height]),{font:m,fill:{color:g}}),r.append(o),h(e)}function h(t){function e(e,n){var i,o;e&&(i=d/12,o=new ht.Path({stroke:{width:i,color:e}}),n-=i,o.moveTo(t.left,n).lineTo(t.right,n),r.append(o))}e(gt.underline,t.bottom),e(gt["line-through"],t.bottom-t.height/2.7),e(gt.overline,t.top)}var l,c,u,f,d,p,m,g,v,x,w,C,T,k,S,E;if(!y()&&(l=b(t),!(e(_(l,"text-indent"))<-500)&&(c=i.data,u=0,f=c.search(/\S\s*$/)+1,f&&(d=_(l,"font-size"),p=_(l,"line-height"),m=[_(l,"font-style"),_(l,"font-variant"),_(l,"font-weight"),d,_(l,"font-family")].join(" "),d=e(d),p=e(p),0!==d)))){for(g=_(l,"color"),v=t.ownerDocument.createRange(),x=_(l,"text-align"),w="justify"==x,C=_(l,"white-space"),ut.msie&&(T=l.textOverflow,"ellipsis"==T&&(k=t.style.textOverflow,t.style.textOverflow="clip")),S=t.getBoundingClientRect().width/d*5,0===S&&(S=500),E=null;!s(););ut.msie&&"ellipsis"==T&&(t.style.textOverflow=k)}}function tt(t,n,i){var r,o,s,a,h,l;for("auto"!=i?(r=gt._stackingContext.group,i=e(i)):(r=n,i=0),o=r.children,s=0;s<o.length&&!(null!=o[s]._dom_zIndex&&o[s]._dom_zIndex>i);++s);return a=new ht.Group,r.insertAt(a,s),a._dom_zIndex=i,r!==n&&gt._clipbox&&(h=gt._matrix.invert(),l=gt._clipbox.transformCopy(h),z(a,ht.Path.fromRect(l))),a}function et(t,n){var i,r,o,s,a,h,f,d=b(t),p=_(d,"counter-reset");p&&u(ot(p,/^\s+/),c,0),i=_(d,"counter-increment"),i&&u(ot(i,/^\s+/),l,1),/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(t.tagName)||null!=gt._clipbox&&(r=e(_(d,"opacity")),o=_(d,"visibility"),s=_(d,"display"),0!==r&&"hidden"!=o&&"none"!=s&&(a=A(d),f=_(d,"z-index"),(a||r<1)&&"auto"==f&&(f=0),h=tt(t,n,f),r<1&&h.opacity(r*h.opacity()),g(t,d,h),a?k(t,function(){var e,n,i,r;C(t.style,"transform","none","important"),C(t.style,"transition","none","important"),"static"==_(d,"position")&&C(t.style,"position","relative","important"),e=t.getBoundingClientRect(),n=e.left+a.origin[0],i=e.top+a.origin[1],r=[1,0,0,1,-n,-i],r=nt(r,a.matrix),r=nt(r,[1,0,0,1,n,i]),r=R(h,r),gt._matrix=gt._matrix.multiplyCopy(r),H(t,h)}):H(t,h),v()))}function nt(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],a=t[5],h=e[0],l=e[1],c=e[2],u=e[3],f=e[4],d=e[5];return[n*h+i*c,n*l+i*u,r*h+o*c,r*l+o*u,s*h+a*c+f,s*l+a*u+d]}var it,rt,ot,st,at,ht=kendo.drawing,lt=kendo.geometry,ct=Array.prototype.slice,ut=kendo.support.browser,ft=kendo.util.arabicToRoman,dt=kendo.util.mergeSort,pt="KENDO-PSEUDO-ELEMENT",mt={},gt={};gt._root=gt,it=ht.Text.extend({nodeType:"Text",init:function(t,e,n){ht.Text.fn.init.call(this,t,e.getOrigin(),n),this._pdfRect=e},rect:function(){return this._pdfRect},rawBBox:function(){return this._pdfRect}}),ht.drawDOM=r,r.getFontFaces=o,rt=function(){function t(t){function p(){var e=a.exec(t);e&&(t=t.substr(e[1].length))}function m(e){p();var n=e.exec(t);if(n)return t=t.substr(n[1].length),n[1]}function g(){var e,r,o=kendo.parseColor(t,!0);if(o)return t=t.substr(o.match[0].length),o=o.toRGB(),(e=m(i))||(r=m(n)),{color:o,length:e,percent:r}}function v(e){var i,s,a,u,f,d,p=[],v=!1;if(m(h)){for(i=m(o),i?(i=N(i),m(c)):(s=m(r),"to"==s?s=m(r):s&&/^-/.test(e)&&(v=!0),a=m(r),m(c)),/-moz-/.test(e)&&null==i&&null==s&&(u=m(n),f=m(n),v=!0,"0%"==u?s="left":"100%"==u&&(s="right"),"0%"==f?a="top":"100%"==f&&(a="bottom"),m(c));t&&!m(l)&&(d=g());)p.push(d),m(c);return{type:"linear",angle:i,to:s&&a?s+" "+a:s?s:a?a:null,stops:p,reverse:v}}}function x(){if(m(h)){var t=m(f);return t=t.replace(/^['"]+|["']+$/g,""),m(l),{type:"url",url:t}}}var y,w=t;return s(d,w)?d[w]:((y=m(e))?y=v(y):(y=m(u))&&(y=x()),d[w]=y||{type:"none"})}var e=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,n=/^([-0-9.]+%)/,i=/^([-0-9.]+px)/,r=/^(left|right|top|bottom|to|center)\W/,o=/^([-0-9.]+(deg|grad|rad|turn))/,a=/^(\s+)/,h=/^(\()/,l=/^(\))/,c=/^(,)/,u=/^(url)\(/,f=/^(.*?)\)/,d={},p={};return function(e){return s(p,e)?p[e]:p[e]=ot(e).map(t)}}(),ot=function(){var t={};return function(e,n){function i(t){return f=t.exec(e.substr(l))}function r(t){return t.replace(/^\s+|\s+$/g,"")}var o,a,h,l,c,u,f;if(n||(n=/^\s*,\s*/),o=e+n,s(t,o))return t[o];for(a=[],h=0,l=0,c=0,u=!1;l<e.length;)!u&&i(/^[\(\[\{]/)?(c++,l++):!u&&i(/^[\)\]\}]/)?(c--,l++):!u&&i(/^[\"\']/)?(u=f[0],l++):"'"==u&&i(/^\\\'/)?l+=2:'"'==u&&i(/^\\\"/)?l+=2:"'"==u&&i(/^\'/)?(u=!1,l++):'"'==u&&i(/^\"/)?(u=!1,l++):i(n)?(!u&&!c&&l>h&&(a.push(r(e.substring(h,l))),h=l+f[0].length),l+=f[0].length):l++;return h<l&&a.push(r(e.substring(h,l))),t[o]=a}}(),st=function(t){return function(e){var n,i=t[e];return i||((n=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(e))?i=t[e]=n[2]:(n=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(e))&&(i=t[e]=n[2])),i}}(Object.create(null)),at=function(t){return function(e){var n=t[e];return null==n&&(n=t[e]=kendo.util.measureText("Mapq",{font:e}).height),n}}(Object.create(null))}(window.kendo.jQuery,parseFloat,Math)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("drawing/animation.min",["drawing/geometry.min","drawing/core.min"],t)}(function(){!function(t){var e=t.noop,n=window.kendo,i=n.Class,r=n.util,o=n.animationFrame,s=n.deepExtend,a=i.extend({init:function(t,e){var n=this;n.options=s({},n.options,e),n.element=t},options:{duration:500,easing:"swing"},setup:e,step:e,play:function(){var e=this,n=e.options,i=t.easing[n.easing],s=n.duration,a=n.delay||0,h=r.now()+a,l=h+s;0===s?(e.step(1),e.abort()):setTimeout(function(){var t=function(){var n,a,c,u;e._stopped||(n=r.now(),a=r.limitValue(n-h,0,s),c=a/s,u=i(c,a,0,1,s),e.step(u),n<l?o(t):e.abort())};t()},a)},abort:function(){this._stopped=!0},destroy:function(){this.abort()}}),h=function(){this._items=[]};h.prototype={register:function(t,e){this._items.push({name:t,type:e})},create:function(t,e){var n,i,r,o=this._items;if(e&&e.type)for(i=e.type.toLowerCase(),r=0;r<o.length;r++)if(o[r].name.toLowerCase()===i){n=o[r];break}if(n)return new n.type(t,e)}},h.current=new h,a.create=function(t,e,n){return h.current.create(t,e,n)},s(n.drawing,{Animation:a,AnimationFactory:h})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("kendo.drawing.min",["kendo.color.min","util/main.min","util/text-metrics.min","util/base64.min","mixins/observers.min","drawing/geometry.min","drawing/core.min","drawing/mixins.min","drawing/shapes.min","drawing/parser.min","drawing/search.min","drawing/svg.min","drawing/canvas.min","drawing/vml.min","drawing/html.min","drawing/animation.min"],t)}(function(){},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()});
//# sourceMappingURL=kendo.drawing.min.js.map
