@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
2 lines • 117 kB
JavaScript
module.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}({0:function(t,e,n){n(921),t.exports=n(921)},3:function(t,e){t.exports=function(){throw Error("define cannot be used indirect")}},921:function(t,e,n){var i,r,o;!function(s,define){r=[n(922),n(923),n(924)],i=s,o="function"==typeof i?i.apply(e,r):i,!(void 0!==o&&(t.exports=o))}(function(){!function(t){function e(t,e){return t.push.apply(t,e),t}function n(t){for(var e=[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],n="";t>0;)t<e[0]?e.shift():(n+=Ze[e[0]],t-=e[0]);return n}function i(t){return typeof t!==Je}function r(){return"kdef"+Ke++}function o(t){return t/Qe}function s(t){var e,n,i="";for(e=0;e<t.length;e++)n=t.charCodeAt(e),n<128?i+=rn(n):n<2048?(i+=rn(192|n>>>6),i+=rn(128|63&n)):n<65536&&(i+=rn(224|n>>>12),i+=rn(128|n>>>6&63),i+=rn(128|63&n));return i}function a(t){for(var e,n,i,r,o,a,h,c="",l=0,u=s(t);l<u.length;)e=u.charCodeAt(l++),n=u.charCodeAt(l++),i=u.charCodeAt(l++),r=e>>2,o=(3&e)<<4|n>>4,a=(15&n)<<2|i>>6,h=63&i,isNaN(n)?a=h=64:isNaN(i)&&(h=64),c=c+nn.charAt(r)+nn.charAt(o)+nn.charAt(a)+nn.charAt(h);return c}function h(t){return i((t.x||{}).location)?{x:t.x.location,y:t.y.location}:{x:t.pageX||t.clientX||0,y:t.pageY||t.clientY||0}}function c(t){return void 0===t&&(t={}),t.touch?t.touch.initialTouch:t.target}function l(t){return""===t||null===t||"none"===t||"transparent"===t||!i(t)}function u(t){if(t)return t[t.length-1]}function f(t,e,n){return Math.max(Math.min(t,n),e)}function d(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)}function p(t){return t*Qe}function g(t){return t?Math.pow(10,t):1}function m(t,e){var n=g(e);return Math.round(t*n)/n}function v(t,e){return i(t)?t:e}function x(t,e){var n,i,r;for(n in e)for(i=n.trim().split(" "),r=0;r<i.length;r++)t.addEventListener(i[r],e[n],!1)}function y(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{top:e.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0),left:e.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}}function w(t,e){var n,i,r={},o=window.getComputedStyle(t)||{},s=Array.isArray(e)?e:[e];for(n=0;n<s.length;n++)i=s[n],r[i]=o[i];return r}function b(t){return isNaN(t)?t:t+"px"}function _(t,e){var n,r,o;return e?(n=e.width,r=e.height,i(n)&&(t.style.width=b(n)),i(r)&&(t.style.height=b(r)),void 0):(o=w(t,["width","height"]),{width:parseInt(o.width,10),height:parseInt(o.height,10)})}function C(t,e){var n,i,r;void 0===e&&(e={});for(n in e)for(i=n.trim().split(" "),r=0;r<i.length;r++)t.removeEventListener(i[r],e[n],!1)}function T(t){return function(e){return this[t]!==e&&(this[t]=e,this.geometryChange()),this}}function k(t){return function(){return this[t]}}function M(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]=T(i),t["get"+r]=k(i)}function E(t){return t&&"function"==typeof t.matrix?t.matrix():t}function S(t){return null===t?null:t instanceof fn?t:new fn(t)}function A(t,e,n,i){var r=0,o=0;return i&&(r=Math.atan2(i.c*n,i.a*e),0!==i.b&&(o=Math.atan2(i.d*n,i.b*e))),{x:r,y:o}}function P(t){var e="_"+t;return function(t){return i(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]]=P(e[n])}function N(t,e,n){return void 0===n&&(n=_n),0===m(Math.abs(t-e),n)}function z(t,e,n){return t<e||N(t,e,n)}function R(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,c=t.y-n.y,l=r*a-o*s,u=(r*c-s*h)/l,f=(o*c-a*h)/l;if(u>=0&&u<=1&&f>=0&&f<=1)return new cn(t.x+f*r,t.y+f*s)}function B(t,e,n,i,r,s){var a=m((r-t)/n,3),h=m((s-e)/i,3);return m(o(Math.atan2(h,a)))}function F(t){var e,n,i,r,s,a,h,c,l,u,f,d,g,v,x,y,w,b,_,C,T,k,M,E,S,A=t.x1,P=t.y1,O=t.x2,N=t.y2,z=t.rx,R=t.ry,B=t.largeArc,F=t.swipe,L=t.rotation;return void 0===L&&(L=0),e=p(L),n=Math.cos(e),i=Math.sin(e),r=n*(A-O)/2+i*(P-N)/2,s=-i*(A-O)/2+n*(P-N)/2,a=B!==F?1:-1,h=Math.pow(r,2),c=Math.pow(s,2),l=Math.pow(z,2),u=Math.pow(R,2),f=h/l+c/u,f>1&&(f=Math.sqrt(h/l+c/u),z=f*z,l=Math.pow(z,2),R=f*R,u=Math.pow(R,2)),d=a*Math.sqrt((l*u-l*c-u*h)/(l*c+u*h)),isNaN(d)&&(d=0),g=d*(z*s)/R,v=-d*(R*r)/z,x=n*g-i*v+(A+O)/2,y=i*g+n*v+(P+N)/2,w=(r-g)/z,b=(s-v)/R,_=-(r+g)/z,C=-(s+v)/R,T=(b>=0?1:-1)*o(Math.acos(w/Math.sqrt(w*w+b*b))),k=m((w*_+b*C)/(Math.sqrt(w*w+b*b)*Math.sqrt(_*_+C*C)),10),M=(w*C-b*_>=0?1:-1)*o(Math.acos(k)),!F&&M>0&&(M-=360),F&&M<0&&(M+=360),E=T+M,S=E>=0?1:-1,E=Math.abs(E)%360*S,{center:new cn(x,y),startAngle:T,endAngle:E,radiusX:z,radiusY:R,xRotation:L}}function L(t,e){for(var n=t;n<e;)n+=90;return n}function I(t){var e="_"+t;return function(t){return i(t)?(this._observerField(e,cn.create(t)),this.geometryChange(),this):this[e]}}function D(t,e){for(var n=0;n<e.length;n++)t[e[n]]=I(e[n])}function q(t,e,n){var i=o(Math.atan2(e.y-t.y,e.x-t.x)),r=n.transformCopy(S().rotate(-i,t));return r.x<t.x}function G(t,e,n){var i=1-t;return Math.pow(i,3)*n[0][e]+3*Math.pow(i,2)*t*n[1][e]+3*Math.pow(t,2)*i*n[2][e]+Math.pow(t,3)*n[3][e]}function j(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 $(t){return t<0?-1:1}function H(t,e,n){var i=Math.sqrt(Math.pow(e,2)-4*t*n);return[(-e+i)/(2*t),(-e-i)/(2*t)]}function U(t,e,n,i){var r,o,s,a,h,c,l,u,f,d,p,g,v;return 0===t?H(e,n,i):(r=(3*t*n-Math.pow(e,2))/(3*Math.pow(t,2)),o=(2*Math.pow(e,3)-9*t*e*n+27*Math.pow(t,2)*i)/(27*Math.pow(t,3)),s=Math.pow(r/3,3)+Math.pow(o/2,2),a=new Rn(0,1),h=-e/(3*t),s<0?(c=new Rn(-o/2,Math.sqrt(-s)).nthRoot(3),l=new Rn(-o/2,(-Math.sqrt(-s))).nthRoot(3)):(c=-o/2+Math.sqrt(s),c=new Rn($(c)*Math.pow(Math.abs(c),1/3)),l=-o/2-Math.sqrt(s),l=new Rn($(l)*Math.pow(Math.abs(l),1/3))),u=c.add(l),p=c.add(l).multiplyConstant(-.5),g=c.add(l.negate()).multiplyConstant(Math.sqrt(3)/2),f=p.add(a.multiply(g)),d=p.add(a.negate().multiply(g)),v=[],u.isReal()&&v.push(m(u.real+h,_n)),f.isReal()&&v.push(m(f.real+h,_n)),d.isReal()&&v.push(m(d.real+h,_n)),v)}function V(t,e,n,i,r){var o,s,a=j(t,i),h=U(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=G(h[s],n,t),Math.abs(o-e[n])<=r))return!0}function X(t,e,n){var i,r,o,s=j(t,"x"),a=U(s[0],s[1],s[2],s[3]-e.x),h=0;for(o=0;o<a.length;o++)i=G(a[o],"y",t),r=N(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 Y(t,e,n){var i,r,o,s,a,h;return t.x!==e.x&&(r=Math.min(t.x,e.x),o=Math.max(t.x,e.x),s=Math.min(t.y,e.y),a=Math.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 W(t){var e,n=t.length,i=tn,r=en;for(e=0;e<n;e++)r=Math.max(r,t[e]),i=Math.min(i,t[e]);return{min:i,max:r}}function Z(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?un.union(i,s):s));return i}function J(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?un.union(n,o):o));return n}function K(t,e,n){var i,r=e?0:1;for(i=0;i<t.length;i+=2)t.splice(i+r,0,n)}function Q(t,e){if(t&&e)return e.scaleCopy(2).translate(-t.x,-t.y)}function tt(t,e,n){var i=e.clone().scale(2/3);return{controlOut:i.clone().translateWith(t.scaleCopy(In)),controlIn:i.translateWith(n.scaleCopy(In))}}function et(t){var e=[];return t.replace(qn,function(t,n){e.push(parseFloat(n))}),e}function nt(t,e,n){var i=n.transform()||S(),r=i.matrix();r.e+=t.x-e.origin.x,r.f+=t.y-e.origin.y,i.matrix(r),n.transform(i)}function it(t,e,n,i,r){var o;return o="start"===n?e.origin[i]:"end"===n?e.origin[i]+e.size[r]-t:e.origin[i]+(e.size[r]-t)/2}function rt(t,e,n,i,r){var o;return o="start"===n?e.origin[i]+e.size[r]-t:"end"===n?e.origin[i]:e.origin[i]+(e.size[r]-t)/2}function ot(t,e,n,i,r){var o,s,a;for(o=0;o<t.length;o++)s=t[o].clippedBBox(),s&&(a=s.origin.clone(),a[i]=it(s.size[r],e,n||"start",i,r),nt(a,s,t[o]))}function st(t,e,n){ot(t,e,n,"x","width")}function at(t,e,n){ot(t,e,n,"y","height")}function ht(t,e,n,i){var r,o,s,a,h;if(t.length>1)for(r=new cn,o=t[0].bbox,s=1;s<t.length;s++)a=t[s].element,h=t[s].bbox,r[e]=o.origin[e]+o.size[i],r[n]=h.origin[n],nt(r,h,a),h.origin[e]=r[e],o=h}function ct(t){var e,n,i,r=[];for(e=0;e<t.length;e++)n=t[e],i=n.clippedBBox(),i&&r.push({element:n,bbox:i});return r}function lt(t){ht(ct(t),"x","y","width")}function ut(t){ht(ct(t),"y","x","height")}function ft(t,e,n){var i,r,o,s,a=e.size[n],h=[],c=[],l=0,u=function(){c.push({element:i,bbox:r})};for(o=0;o<t.length;o++)i=t[o],r=i.clippedBBox(),r&&(s=r.size[n],l+s>a?c.length?(h.push(c),c=[],u(),l=s):(u(),h.push(c),c=[],l=0):(u(),l+=s));return c.length&&h.push(c),h}function dt(t,e,n,i,r){var o,s,a,h,c=ft(t,e,r),l=e.origin.clone(),u=[];for(o=0;o<c.length;o++)for(s=c[o],a=s[0],l[i]=a.bbox.origin[i],nt(l,a.bbox,a.element),a.bbox.origin[n]=l[n],ht(s,n,i,r),u.push([]),h=0;h<s.length;h++)u[o].push(s[h].element);return u}function pt(t,e){return dt(t,e,"x","y","width")}function gt(t,e){return dt(t,e,"y","x","height")}function mt(t,e){var n,i,r,o,s=t.clippedBBox();s&&(n=s.size,i=e.size,(i.width<n.width||i.height<n.height)&&(r=Math.min(i.width/n.width,i.height/n.height),o=t.transform()||S(),o.scale(r,r),t.transform(o)))}function vt(t){return function(e){return i(e)?(this.options.set(t,e),this):this.options.get(t)}}function xt(t,e){for(var n=0;n<e.length;n++)t[e[n]]=vt(e[n])}function yt(t){return.5-Math.cos(t*Math.PI)/2}function wt(t){return t}function bt(t,e,n,i){var r=1.70158,o=0,s=i;return 0===t?n:1===t?n+i:(o||(o=.5),s<Math.abs(i)?(s=i,r=o/4):r=o/(2*Math.PI)*Math.asin(i/s),s*Math.pow(2,-10*t)*Math.sin((+t-r)*(1.1*Math.PI)/o)+i+n)}function _t(t,e){return i(e)&&null!==e?" "+t+'="'+e+'" ':""}function Ct(t){var e,n="";for(e=0;e<t.length;e++)n+=_t(t[e][0],t[e][1]);return n}function Tt(t){var e,n,r="";for(e=0;e<t.length;e++)n=t[e][1],i(n)&&(r+=t[e][0]+":"+n+";");if(""!==r)return r}function kt(t,e){return"clip"===t||"fill"===t&&(!e||"Gradient"===e.nodeType)}function Mt(){var t,e=document.getElementsByTagName("base")[0],n=document.location.href,i="";return e&&!Ve.msie&&(t=n.indexOf("#"),t!==-1&&(n=n.substring(0,t)),i=n),i}function Et(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 St(t){if(!t||"string"!=typeof t||!Yi.test(t))return t;var e=St._element;return Yi.lastIndex=0,t.replace(Yi,function(t){return e.innerHTML=t,e.textContent||e.innerText})}function At(t){var e,n,i,r=new Ri({skipBaseHref:!0}),o=t.clippedBBox(),s=t;return o&&(e=o.getOrigin(),n=new Kn,n.transform(S().translate(-e.x,-e.y)),n.children.push(t),s=n),r.load([s]),i="<?xml version='1.0' ?><svg xmlns='"+xi+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+r.render()+"</svg>",r.destroy(),i}function Pt(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()}}function Ot(t,e){return t._zIndex<e._zIndex?1:t._zIndex>e._zIndex?-1:0}function Nt(t,e){var n,i,r;for(n=0;n<e.length;n++)i=e[n],r=kendo.parseColor(i.color()),r.a*=i.opacity(),t.addColorStop(i.offset(),r.toCssRgba())}function zt(e,n){var i,r,o,s,a,h,c,l,u={width:"800px",height:"600px",cors:"Anonymous"},f=e,d=e.clippedBBox();return d&&(i=d.getOrigin(),f=new Kn,f.transform(S().translate(-i.x,-i.y)),f.children.push(e),r=d.getSize(),u.width=r.width+"px",u.height=r.height+"px"),o=t.extend(u,n),s=document.createElement("div"),a=s.style,a.display="none",a.width=o.width,a.height=o.height,document.body.appendChild(s),h=new ur(s,o),h.suspendTracking(),h.draw(f),c=h.image(),l=function(){h.destroy(),document.body.removeChild(s)},c.then(l,l),c}function Rt(t,e){var n=At(t);return e&&e.raw||(n="data:image/svg+xml;base64,"+a(n)),Xe().resolve(n)}function Bt(t){return Array.prototype.slice.call(t)}function Ft(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function Lt(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/\s+/).reduce(function(t,n){return n!=e&&t.push(n),t},[]).join(" ")}function It(t,e){Object.keys(e).forEach(function(n){t.style[n]=e[n]})}function Dt(t,e){if(t.closest)return t.closest(e);for(;t&&!/^\[object (?:HTML)?Document\]$/.test(t+"");){if(1==t.nodeType&&Er(t,e))return t;t=t.parentNode}}function qt(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 Gt(t,e){function n(t){var n=new Kn,i=t.getBoundingClientRect();return me(n,[s.x,0,0,s.y,-i.left*s.x,-i.top*s.y]),Cr._clipbox=!1,Cr._matrix=hn.unit(),Cr._stackingContext={element:t,group:n},Cr._avoidLinks=e.avoidLinks===!0?"a":e.avoidLinks,Ft(t,"k-pdf-export"),De(t,n),Lt(t,"k-pdf-export"),n}function i(t){if(null!=t)return"string"==typeof t&&(t=kendo.template(t.replace(/^\s+|\s+$/g,""))),"function"==typeof t?function(e){var n,i=t(e);return i&&"string"==typeof i&&(n=document.createElement("div"),n.innerHTML=i,i=n.firstElementChild),i}:function(){return t.cloneNode(!0)}}function r(t,e,n,r,o,s,a){function h(){("-"!=n||o)&&l(w);var e=d();w.parentNode.insertBefore(e,w),e.appendChild(w),v&&y.forEach(function(t,e){var n=v({element:t,pageNum:e+1,totalPages:y.length});n&&t.appendChild(n)}),Kt(y,function(){Jt(y,function(){t({pages:y,container:b})})})}function c(t){if(a.keepTogether&&Er(t,a.keepTogether)&&t.offsetHeight<=o-_)return!0;var e=t.tagName;return!(/^h[1-6]$/i.test(e)&&t.offsetHeight>=o-_)&&(t.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(t.tagName))}function l(t){var e,i,r,s,a,h,u;if("TABLE"==t.tagName&&It(t,{tableLayout:"fixed"}),!c(t)){for(e=oe(t),i=parseFloat(se(e,"padding-bottom")),r=parseFloat(se(e,"border-bottom-width")),s=_,_+=i+r,a=!0,h=t.firstChild;h;h=h.nextSibling)if(1==h.nodeType){if(a=!1,Er(h,n)){f(h);continue}if(!o){l(h);continue}if(!/^(?:static|relative)$/.test(se(oe(h),"position")))continue;u=p(h),1==u?f(h):u&&c(h)?f(h):l(h)}else 3==h.nodeType&&o&&(g(h,a),a=!1);_=s}}function u(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 f(t){var e,n,i,r,o,s,h;return 1==t.nodeType&&t!==w&&u(t)?f(t.parentNode):(e=Dt(t,"table"),n=e&&e.querySelector("colgroup"),a.repeatHeaders&&(i=e&&e.querySelector("thead"),r=Dt(t,".k-grid.k-widget"),r&&r.querySelector(".k-auto-scrollable")&&(o=r.querySelector(".k-grid-header"))),s=d(),h=x.createRange(),h.setStartBefore(w),h.setEndBefore(t),s.appendChild(h.extractContents()),w.parentNode.insertBefore(s,w),m(t.parentNode),e&&(e=Dt(t,"table"),a.repeatHeaders&&i&&e.insertBefore(i.cloneNode(!0),e.firstChild),n&&e.insertBefore(n.cloneNode(!0),e.firstChild)),void(a.repeatHeaders&&o&&(r=Dt(t,".k-grid.k-widget"),r.insertBefore(o.cloneNode(!0),r.firstChild))))}function d(){var t=x.createElement("KENDO-PDF-PAGE");return It(t,{display:"block",boxSizing:"content-box",width:r?r+"px":"auto",padding:s.top+"px "+s.right+"px "+s.bottom+"px "+s.left+"px",position:"relative",height:o?o+"px":"auto",overflow:o||r?"hidden":"visible",clear:"both"}),a&&a.pageClassName&&(t.className=a.pageClassName),y.push(t),t}function p(t){var e,n,i=t.getBoundingClientRect();return 0===i.width||0===i.height?0:(e=w.getBoundingClientRect().top,n=o-_,i.height>n?3:i.top-e>n?1:i.bottom-e>n?2:0)}function g(t,e){var n,i,r,o,s;/\S/.test(t.data)&&(n=t.data.length,i=x.createRange(),i.selectNodeContents(t),r=p(i),r&&(o=t,1==r?f(e?t.parentNode:t):(!function a(e,n,r){return i.setEnd(t,n),e==n||n==r?n:p(i)?a(e,e+n>>1,n):a(n,n+r>>1,r)}(0,n>>1,n),!/\S/.test(""+i)&&e?f(t.parentNode):(o=t.splitText(i.endOffset),s=d(),i.setStartBefore(w),s.appendChild(i.extractContents()),w.parentNode.insertBefore(s,w),m(o.parentNode))),g(o)))}function m(t){var e=Dt(t,"li");e&&(e.setAttribute("kendo-no-bullet","1"),m(e.parentNode))}var v=i(a.template),x=e.ownerDocument,y=[],w=a._destructive?e:Sr(e),b=x.createElement("KENDO-PDF-DOCUMENT"),_=0;Bt(w.querySelectorAll("tfoot")).forEach(function(t){t.parentNode.appendChild(t)}),Bt(w.querySelectorAll("ol")).forEach(function(t){Bt(t.children).forEach(function(t,e){t.setAttribute("kendo-split-index",e)})}),It(b,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),r&&(It(b,{width:r+"px",paddingLeft:s.left+"px",paddingRight:s.right+"px"}),It(w,{overflow:"hidden"})),e.parentNode.insertBefore(b,e),b.appendChild(w),a.beforePageBreak?setTimeout(function(){a.beforePageBreak(b,h)},15):setTimeout(h,15)}var o,s;if(e||(e={}),o=Xe(),!t)return o.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.defineFont(jt(t.ownerDocument)),s=qt(e.scale||1),Kt(t,function(){var i,a=e&&e.forcePageBreak,h=e&&e.paperSize&&"auto"!=e.paperSize,c=kendo.pdf.getPaperOptions(function(t,n){return"paperSize"==t?h?e[t]:"A4":t in e?e[t]:n}),l=h&&c.paperSize[0],u=h&&c.paperSize[1],f=e.margin&&c.margin,d=!!f;a||u?(f||(f={left:0,top:0,right:0,bottom:0}),l&&(l/=s.x),u&&(u/=s.y),f.left/=s.x,f.right/=s.x,f.top/=s.y,f.bottom/=s.y,i=new Kn({pdf:{multiPage:!0,paperSize:h?c.paperSize:"auto",_ignoreMargin:d}}),r(function(t){if(e.progress){var r=!1,s=0;!function a(){if(s<t.pages.length){var h=n(t.pages[s]);i.append(h),e.progress({page:h,pageNum:++s,totalPages:t.pages.length,cancel:function(){r=!0}}),r?t.container.parentNode.removeChild(t.container):setTimeout(a)}else t.container.parentNode.removeChild(t.container),o.resolve(i)}()}else t.pages.forEach(function(t){i.append(n(t))}),t.container.parentNode.removeChild(t.container),o.resolve(i)},t,a,l?l-f.left-f.right:null,u?u-f.top-f.bottom:null,f,e)):o.resolve(n(t))}),o}function jt(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=se(t.style,"src");return n?Pr(n).reduce(function(t,e){var n=Or(e);return n&&t.push(n),t},[]):(e=Or(t.cssText),e?[e]:[])}function i(t,i){var o,s,a,h,c,l,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=Pr(se(a,"font-family")),c=/^([56789]00|bold)$/i.test(se(a,"font-weight")),l="italic"==se(a,"font-style"),u=n(s),u.length>0&&r(t,h,c,l,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 $t(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ht(t){return t="_counter_"+t,Cr[t]}function Ut(t){var e=[],n=Cr;for(t="_counter_"+t;n;)$t(n,t)&&e.push(n[t]),n=Object.getPrototypeOf(n);return e.reverse()}function Vt(t,e){var n=Cr;for(t="_counter_"+t;n&&!$t(n,t);)n=Object.getPrototypeOf(n);n||(n=Cr._root),n[t]=(n[t]||0)+(null==e?1:e)}function Xt(t,e){t="_counter_"+t,Cr[t]=null==e?0:e}function Yt(t,e,n){var i,r,o;for(i=0;i<t.length;)r=t[i++],o=parseFloat(t[i]),isNaN(o)?e(r,n):(e(r,o),++i)}function Wt(t){var e,n=se(t,"counter-reset");n&&Yt(Pr(n,/^\s+/),Xt,0),e=se(t,"counter-increment"),e&&Yt(Pr(e,/^\s+/),Vt,1)}function Zt(t,e){var n=kendo.parseColor(t,!0);return n&&(n=n.toRGB(),e?n=n.toCssRgba():0===n.a&&(n=null)),n}function Jt(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 Kt(t,e){function n(t){_r[t]||(_r[t]=!0,s.push(t))}function i(t){/^img$/i.test(t.tagName)&&n(t.src),Ar(se(oe(t),"background-image")).forEach(function(t){"url"==t.type&&n(t.url)}),t.children&&Bt(t.children).forEach(i)}function r(){--o<=0&&e()}var o,s=[];Array.isArray(t)?t.forEach(i):i(t),o=s.length,0===o&&r(),s.forEach(function(t){var e=_r[t]=new window.Image;/^data:/i.test(t)||(e.crossOrigin="Anonymous"),e.src=t,e.complete?r():(e.onload=r,e.onerror=function(){_r[t]=null,r()})})}function Qt(t){var e,n="";do e=t%26,n=String.fromCharCode(97+e)+n,t=Math.floor(t/26);while(t>0);return n}function te(t,e,n){var i,r;Cr=Object.create(Cr),Cr[t.tagName.toLowerCase()]={element:t,style:e},i=se(e,"text-decoration"),i&&"none"!=i&&(r=se(e,"color"),i.split(/\s+/g).forEach(function(t){Cr[t]||(Cr[t]=r)})),re(e)&&(Cr._stackingContext={element:t,group:n})}function ee(){Cr=Object.getPrototypeOf(Cr)}function ne(t){if(null!=Cr._clipbox){var e=t.bbox(Cr._matrix);Cr._clipbox=Cr._clipbox?un.intersect(Cr._clipbox,e):e}}function ie(){var t=Cr._clipbox;return null==t||(t?0===t.width()||0===t.height():void 0)}function re(t){function e(e){return se(t,e)}if("none"!=e("transform")||"static"!=e("position")||"auto"!=e("z-index")||e("opacity")<1)return!0}function oe(t,e){return window.getComputedStyle(t,e||null)}function se(t,e,n){var i=t.getPropertyValue(e);return null!=i&&""!==i||(wr.webkit?i=t.getPropertyValue("-webkit-"+e):wr.mozilla?i=t.getPropertyValue("-moz-"+e):wr.opera?i=t.getPropertyValue("-o-"+e):kr&&(i=t.getPropertyValue("-ms-"+e))),arguments.length>2&&(null==i||""===i)?n:i}function ae(t,e,n,i){t.setProperty(e,n,i),wr.webkit?t.setProperty("-webkit-"+e,n,i):wr.mozilla?t.setProperty("-moz-"+e,n,i):wr.opera?t.setProperty("-o-"+e,n,i):kr&&(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 he(t,e){return e="border-"+e,{width:parseFloat(se(t,e+"-width")),style:se(t,e+"-style"),color:Zt(se(t,e+"-color"),!0)}}function ce(t,e){var n=t.style.cssText,i=e();return t.style.cssText=n,i}function le(t,e){var n=se(t,"border-"+e+"-radius").split(/\s+/g).map(parseFloat);return 1==n.length&&n.push(n[0]),ye({x:n[0],y:n[1]})}function ue(t){var e=t.getBoundingClientRect();return e=fe(e,"border-*-width",t),e=fe(e,"padding-*",t)}function fe(t,e,n){var i,r,o,s,a;return"string"==typeof e?(i=oe(n),r=parseFloat(se(i,e.replace("*","top"))),o=parseFloat(se(i,e.replace("*","right"))),s=parseFloat(se(i,e.replace("*","bottom"))),a=parseFloat(se(i,e.replace("*","left")))):"number"==typeof e&&(r=o=s=a=e),{top:t.top+r,right:t.right-o,bottom:t.bottom-s,left:t.left+a,width:t.right-t.left-o-a,height:t.bottom-t.top-s-r}}function de(t){var e,n,i=se(t,"transform");return"none"==i?null:(e=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(i),e?(n=se(t,"transform-origin"),e=e[1].split(/\s*,\s*/g).map(parseFloat),n=n.split(/\s+/g).map(parseFloat),{matrix:e,origin:n}):void 0)}function pe(t){return 180*t/Math.PI%360}function ge(t){var e=parseFloat(t);return/grad$/.test(t)?Math.PI*e/200:/rad$/.test(t)?e:/turn$/.test(t)?Math.PI*e*2:/deg$/.test(t)?Math.PI*e/180:void 0}function me(t,e){return e=new hn(e[0],e[1],e[2],e[3],e[4],e[5]),t.transform(e),e}function ve(t,e){t.clip(e)}function xe(t,e,n,i){for(var r=new kn([e,n],i).curvePoints(),o=1;o<r.length;)t.curveTo(r[o++],r[o++],r[o++])}function ye(t){return(t.x<=0||t.y<=0)&&(t.x=t.y=0),t}function we(t,e,n,i,r){var o=Math.max(0,e.x),s=Math.max(0,e.y),a=Math.max(0,n.x),h=Math.max(0,n.y),c=Math.max(0,i.x),l=Math.max(0,i.y),u=Math.max(0,r.x),f=Math.max(0,r.y),d=Math.min(t.width/(o+a),t.height/(h+l),t.width/(c+u),t.height/(f+s));return d<1&&(o*=d,s*=d,a*=d,h*=d,c*=d,l*=d,u*=d,f*=d),{tl:{x:o,y:s},tr:{x:a,y:h},br:{x:c,y:l},bl:{x:u,y:f}}}function be(t,e,n){var i,r,o,s,a,h,c,l,u=oe(t),f=le(u,"top-left"),d=le(u,"top-right"),p=le(u,"bottom-left"),g=le(u,"bottom-right");return"padding"!=n&&"content"!=n||(i=he(u,"top"),r=he(u,"right"),o=he(u,"bottom"),s=he(u,"left"),f.x-=s.width,f.y-=i.width,d.x-=r.width,d.y-=i.width,g.x-=r.width,g.y-=o.width,p.x-=s.width,p.y-=o.width,"content"==n&&(a=parseFloat(se(u,"padding-top")),h=parseFloat(se(u,"padding-right")),c=parseFloat(se(u,"padding-bottom")),l=parseFloat(se(u,"padding-left")),f.x-=l,f.y-=a,d.x-=h,d.y-=a,g.x-=h,g.y-=c,p.x-=l,p.y-=c)),"number"==typeof n&&(f.x-=n,f.y-=n,d.x-=n,d.y-=n,g.x-=n,g.y-=n,p.x-=n,p.y-=n),_e(e,f,d,g,p)}function _e(t,e,n,i,r){var o=we(t,e,n,i,r),s=o.tl,a=o.tr,h=o.br,c=o.bl,l=new Hn({fill:null,stroke:null});return l.moveTo(t.left,t.top+s.y),s.x&&xe(l,t.left+s.x,t.top+s.y,{startAngle:-180,endAngle:-90,radiusX:s.x,radiusY:s.y}),l.lineTo(t.right-a.x,t.top),a.x&&xe(l,t.right-a.x,t.top+a.y,{startAngle:-90,endAngle:0,radiusX:a.x,radiusY:a.y}),l.lineTo(t.right,t.bottom-h.y),h.x&&xe(l,t.right-h.x,t.bottom-h.y,{startAngle:0,endAngle:90,radiusX:h.x,radiusY:h.y}),l.lineTo(t.left+c.x,t.bottom),c.x&&xe(l,t.left+c.x,t.bottom-c.y,{startAngle:90,endAngle:180,radiusX:c.x,radiusY:c.y}),l.close()}function Ce(t,e){var i=parseFloat(t)+"";switch(e){case"decimal-leading-zero":return i.length<2&&(i="0"+i),i;case"lower-roman":return n(t).toLowerCase();case"upper-roman":return n(t).toUpperCase();case"lower-latin":case"lower-alpha":return Qt(t-1);case"upper-latin":case"upper-alpha":return Qt(t-1).toUpperCase();default:return i}}function Te(t,e){function n(t,e,n){return n?(n=n.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),Ut(t).map(function(t){return Ce(t,e)}).join(n)):Ce(Ht(t)||0,e)}var i,r=Pr(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=Pr(i[1]),o.push(n(r[0],r[1]))):(i=/^\s*counters\((.*?)\)\s*$/.exec(e))?(r=Pr(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 ke(t){var e,n;if(t.cssText)return t.cssText;for(e=[],n=0;n<t.length;++n)e.push(t[n]+": "+se(t,t[n]));return e.join(";\n")}function Me(t,e){function n(e,n){var r,o=oe(t,e),s=o.content;Wt(o),s&&"normal"!=s&&"none"!=s&&"0px"!=o.width&&(r=t.ownerDocument.createElement(br),r.style.cssText=ke(o),r.textContent=Te(t,s),t.insertBefore(r,n),i.push(r))}var i,r;return t.tagName==br?void Ee(t,e):(i=[],n(":before",t.firstChild),n(":after",null),void(i.length>0?(r=t.className,t.className+=" kendo-pdf-hide-pseudo-elements",Ee(t,e),t.className=r,i.forEach(function(e){t.removeChild(e)})):Ee(t,e)))}function Ee(t,e){function i(e){var n,i,r,o,s,a;if(/^td$/i.test(t.tagName)&&(n=Cr.table,n&&"collapse"==se(n.style,"border-collapse"))){if(i=he(n.style,"left").width,r=he(n.style,"top").width,0===i&&0===r)return e;if(o=n.element.getBoundingClientRect(),s=n.element.rows[0].cells[0],a=s.getBoundingClientRect(),a.top==o.top||a.left==o.left)return Bt(e).map(function(t){return{left:t.left+i,top:t.top+r,right:t.right+i,bottom:t.bottom+r,height:t.height,width:t.width}})}return e}function r(t,n,i,r,o,s,a,h){function c(e,n,r){var o=Math.PI/2*e/(e+i),s={x:n.x-e,y:n.y-i},a=new Hn({fill:{color:t},stroke:null}).moveTo(0,0);me(a,r),xe(a,0,n.y,{startAngle:-90,endAngle:-pe(o),radiusX:n.x,radiusY:n.y}),s.x>0&&s.y>0?(a.lineTo(s.x*Math.cos(o),n.y-s.y*Math.sin(o)),xe(a,0,n.y,{startAngle:-pe(o),endAngle:-90,radiusX:s.x,radiusY:s.y,anticlockwise:!0})):s.x>0?a.lineTo(s.x,i).lineTo(0,i):a.lineTo(s.x,i).lineTo(s.x,0),u.append(a.close())}if(!(i<=0)){var l,u=new Kn;me(u,h),e.append(u),ye(s),ye(a),l=new Hn({fill:{color:t},stroke:null}),u.append(l),l.moveTo(s.x?Math.max(s.x,r):0,0).lineTo(n-(a.x?Math.max(a.x,o):0),0).lineTo(n-Math.max(a.x,o),i).lineTo(Math.max(s.x,r),i).close(),s.x&&c(r,s,[-1,0,0,1,s.x,0]),a.x&&c(o,a,[1,0,0,1,n-a.x,0])}}function o(t){var n,i,r=new Kn;for(ve(r,_e(t,E,S,P,A)),e.append(r),N&&(n=new Hn({fill:{color:N.toCssRgba()},stroke:null}),n.moveTo(t.left,t.top).lineTo(t.right,t.top).lineTo(t.right,t.bottom).lineTo(t.left,t.bottom).close(),r.append(n)),i=c.length;--i>=0;)s(r,t,c[i],l[i%l.length],u[i%u.length],f[i%f.length],d[i%d.length])}function s(e,n,i,r,o,s,a){function h(e,n,i,h,c){function l(){for(;m.origin.x>n.left;)m.origin.x-=i}function u(){for(;m.origin.y>n.top;)m.origin.y-=h}function f(){for(;m.origin.x<n.right;)c(e,m.clone()),m.origin.x+=i}var d,p,g,m,v,x=i/h,y=n;switch("content-box"==s?(y=fe(y,"border-*-width",t),y=fe(y,"padding-*",t)):"padding-box"==s&&(y=fe(y,"border-*-width",t)),/^\s*auto(\s+auto)?\s*$/.test(a)||("contain"==a?(d=Math.min(y.width/i,y.height/h),i*=d,h*=d):"cover"==a?(d=Math.max(y.width/i,y.height/h),i*=d,h*=d):(p=a.split(/\s+/g),i=/%$/.test(p[0])?y.width*parseFloat(p[0])/100:parseFloat(p[0]),h=1==p.length||"auto"==p[1]?i/x:/%$/.test(p[1])?y.height*parseFloat(p[1])/100:parseFloat(p[1]))),g=o+""){case"bottom":g="50% 100%";break;case"top":g="50% 0";break;case"left":g="0 50%";break;case"right":g="100% 50%";break;case"center":g="50% 50%"}if(g=g.split(/\s+/),1==g.length&&(g[1]="50%"),g[0]=/%$/.test(g[0])?parseFloat(g[0])/100*(y.width-i):parseFloat(g[0]),g[1]=/%$/.test(g[1])?parseFloat(g[1])/100*(y.height-h):parseFloat(g[1]),m=new un([y.left+g[0],y.top+g[1]],[i,h]),"no-repeat"==r)c(e,m);else if("repeat-x"==r)l(),f();else if("repeat-y"==r)for(u();m.origin.y<n.bottom;)c(e,m.clone()),m.origin.y+=h;else if("repeat"==r)for(l(),u(),v=m.origin.clone();m.origin.y<n.bottom;)m.origin.x=v.x,f(),m.origin.y+=h}if(i&&"none"!=i)if("url"==i.type){if(/^url\(\"data:image\/svg/i.test(i.url))return;var c=_r[i.url];c&&c.width>0&&c.height>0&&h(e,n,c.width,c.height,function(t,e){t.append(new Zn(i.url,e))})}else{if("linear"!=i.type)return;h(e,n,n.width,n.height,Se(i))}}function a(){function i(n){ce(t,function(){t.style.position="relative";var i=t.ownerDocument.createElement(br);i.style.position="absolute",i.style.boxSizing="border-box","outside"==o?(i.style.width="6em",i.style.left="-6.8em",i.style.textAlign="right"):i.style.left="0px",n(i),t.insertBefore(i,t.firstChild),De(i,e),t.removeChild(i)})}function r(e){var n,i=t.parentNode.children,r=t.getAttribute("kendo-split-index");if(null!=r)return e(0|r,i.length);for(n=0;n<i.length;++n)if(i[n]===t)return e(n,i.length)}var o,s=se(_,"list-style-type");if("none"!=s)switch(o=se(_,"list-style-position"),s){case"circle":case"disc":case"square":i(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:"■"}[s]});break;case"decimal":case"decimal-leading-zero":i(function(t){r(function(e){++e,"decimal-leading-zero"==s&&e<10&&(e="0"+e),t.innerHTML=e+"."})});break;case"lower-roman":case"upper-roman":i(function(t){r(function(e){e=n(e+1),"upper-roman"==s&&(e=e.toUpperCase()),t.innerHTML=e+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":i(function(t){r(function(e){e=Qt(e),/^upper/i.test(s)&&(e=e.toUpperCase()),t.innerHTML=e+"."})})}}function h(n,i,s){function a(t){return{x:t.y,y:t.x}}var h,c,l,u,f,d,p,g;if(0!==n.width&&0!==n.height&&(o(n),h=M.width>0&&(i&&"ltr"==O||s&&"rtl"==O),c=T.width>0&&(s&&"ltr"==O||i&&"rtl"==O),0!==C.width||0!==M.width||0!==T.width||0!==k.width)){if(C.color==T.color&&C.color==k.color&&C.color==M.color&&C.width==T.width&&C.width==k.width&&C.width==M.width&&h&&c)return n=fe(n,C.width/2),l=be(t,n,C.width/2),l.options.stroke={color:C.color,width:C.width},void e.append(l);if(0===E.x&&0===S.x&&0===P.x&&0===A.x&&C.width<2&&M.width<2&&T.width<2&&k.width<2)return C.width>0&&e.append(new Hn({stroke:{width:C.width,color:C.color}}).moveTo(n.left,n.top+C.width/2).lineTo(n.right,n.top+C.width/2)),k.width>0&&e.append(new Hn({stroke:{width:k.width,color:k.color}}).moveTo(n.left,n.bottom-k.width/2).lineTo(n.right,n.bottom-k.width/2)),h&&e.append(new Hn({stroke:{width:M.width,color:M.color}}).moveTo(n.left+M.width/2,n.top).lineTo(n.left+M.width/2,n.bottom)),void(c&&e.append(new Hn({stroke:{width:T.width,color:T.color}}).moveTo(n.right-T.width/2,n.top).lineTo(n.right-T.width/2,n.bottom)));u=we(n,E,S,P,A),f=u.tl,d=u.tr,p=u.br,g=u.bl,
r(C.color,n.width,C.width,M.width,T.width,f,d,[1,0,0,1,n.left,n.top]),r(k.color,n.width,k.width,T.width,M.width,p,g,[-1,0,0,-1,n.right,n.bottom]),r(M.color,n.height,M.width,k.width,C.width,a(g),a(f),[0,-1,1,0,n.left,n.bottom]),r(T.color,n.height,T.width,C.width,k.width,a(d),a(p),[0,1,-1,0,n.right,n.top])}}var c,l,u,f,d,p,g,m,v,x,y,w,b,_=oe(t),C=he(_,"top"),T=he(_,"right"),k=he(_,"bottom"),M=he(_,"left"),E=le(_,"top-left"),S=le(_,"top-right"),A=le(_,"bottom-left"),P=le(_,"bottom-right"),O=se(_,"direction"),N=se(_,"background-color");if(N=Zt(N),c=Ar(se(_,"background-image")),l=Pr(se(_,"background-repeat")),u=Pr(se(_,"background-position")),f=Pr(se(_,"background-origin")),d=Pr(se(_,"background-size")),kr&&(p=_.textOverflow,"ellipsis"==p&&(g=t.style.textOverflow,t.style.textOverflow="clip")),wr.msie&&wr.version<10&&(u=Pr(t.currentStyle.backgroundPosition)),m=fe(t.getBoundingClientRect(),"border-*-width",t),function(){var t,n,i,r,o,s,a,h=se(_,"clip"),c=/^\s*rect\((.*)\)\s*$/.exec(h);c&&(t=c[1].split(/[ ,]+/g),n="auto"==t[0]?m.top:parseFloat(t[0])+m.top,i="auto"==t[1]?m.right:parseFloat(t[1])+m.left,r="auto"==t[2]?m.bottom:parseFloat(t[2])+m.top,o="auto"==t[3]?m.left:parseFloat(t[3])+m.left,s=new Kn,a=(new Hn).moveTo(o,n).lineTo(i,n).lineTo(i,r).lineTo(o,r).close(),ve(s,a),e.append(s),e=s,ne(a))}(),w=se(_,"display"),"table-row"==w)for(v=[],x=0,y=t.children;x<y.length;++x)v.push(y[x].getBoundingClientRect());else v=t.getClientRects(),1==v.length&&(v=[t.getBoundingClientRect()]);for(v=i(v),x=0;x<v.length;++x)h(v[x],0===x,x==v.length-1);return"A"==t.tagName&&t.href&&!/^#?$/.test(t.getAttribute("href"))&&(Cr._avoidLinks&&Er(t,Cr._avoidLinks)||(b=document.createRange(),b.selectNodeContents(t),Bt(b.getClientRects()).forEach(function(n){var i=new Kn;i._pdfLink={url:t.href,top:n.top,right:n.right,bottom:n.bottom,left:n.left},e.append(i)}))),v.length>0&&"list-item"==w&&!t.getAttribute("kendo-no-bullet")&&a(v[0]),function(){function n(){var n=be(t,m,"padding"),i=new Kn;ve(i,n),e.append(i),e=i,ne(n)}Ne(t)?n():/^(hidden|auto|scroll)/.test(se(_,"overflow"))?n():/^(hidden|auto|scroll)/.test(se(_,"overflow-x"))?n():/^(hidden|auto|scroll)/.test(se(_,"overflow-y"))&&n()}(),Ae(t,e)||Fe(t,e),kr&&"ellipsis"==p&&(t.style.textOverflow=g),e}function Se(t){return function(e,n){var i,r,o,s,a,h,c,l,u,f,d,p,g,m=n.width(),v=n.height();switch(t.type){case"linear":switch(i=null!=t.angle?t.angle:Math.PI,t.to){case"top":i=0;break;case"left":i=-Math.PI/2;break;case"bottom":i=Math.PI;break;case"right":i=Math.PI/2;break;case"top left":case"left top":i=-Math.atan2(v,m);break;case"top right":case"right top":i=Math.atan2(v,m);break;case"bottom left":case"left bottom":i=Math.PI+Math.atan2(v,m);break;case"bottom right":case"right bottom":i=Math.PI-Math.atan2(v,m)}t.reverse&&(i-=Math.PI),i%=2*Math.PI,i<0&&(i+=2*Math.PI),r=Math.abs(m*Math.sin(i))+Math.abs(v*Math.cos(i)),o=Math.atan(m*Math.tan(i)/v),s=Math.sin(o),a=Math.cos(o),h=Math.abs(s)+Math.abs(a),c=h/2*s,l=h/2*a,i>Math.PI/2&&i<=3*Math.PI/2&&(c=-c,l=-l),u=[],f=0,d=t.stops.map(function(e,n){var i,o=e.percent;return o?o=parseFloat(o)/100:e.length?o=parseFloat(e.length)/r:0===n?o=0:n==t.stops.length-1&&(o=1),i={color:e.color.toCssRgba(),offset:o},null!=o?(f=o,u.forEach(function(t,e){var n=t.stop;n.offset=t.left+(f-t.left)*(e+1)/(u.length+1)}),u=[]):u.push({left:f,stop:i}),i}),p=[.5-c,.5+l],g=[.5+c,.5-l],e.append(Hn.fromRect(n).stroke(null).fill(new ai({start:p,end:g,stops:d,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}}function Ae(t,e){var n,i,r,o;return t._kendoExportVisual?n=t._kendoExportVisual():window.kendo&&window.kendo.jQuery&&t.getAttribute(window.kendo.attr("role"))&&(i=window.kendo.widgetInstance(window.kendo.jQuery(t)),i&&(i.exportDOMVisual||i.exportVisual)&&(n=i.exportDOMVisual?i.exportDOMVisual():i.exportVisual())),!!n&&(r=new Kn,r.children.push(n),o=t.getBoundingClientRect(),r.transform(S().translate(o.left,o.top)),e.append(r),!0)}function Pe(t,e,n){var i=ue(t),r=new un([i.left,i.top],[i.width,i.height]),o=new Zn(e,r);ve(o,be(t,i,"content")),n.append(o)}function Oe(t,e){var n=oe(t),i=oe(e),r=parseFloat(se(n,"z-index")),o=parseFloat(se(i,"z-index")),s=se(n,"position"),a=se(i,"position");return isNaN(r)&&isNaN(o)?/static|absolute/.test(s)&&/static|absolute/.test(a)?0:"static"==s?-1:"static"==a?1:0:isNaN(r)?0===o?0:o>0?-1:1:isNaN(o)?0===r?0:r>0?1:-1:parseFloat(r)-parseFloat(o)}function Ne(t){return/^(?:textarea|select|input)$/i.test(t.tagName)}function ze(t){return t.selectedOptions&&t.selectedOptions.length>0?t.selectedOptions[0]:t.options[t.selectedIndex]}function Re(t,e){var n=oe(t),i=se(n,"color"),r=t.getBoundingClientRect();"checkbox"==t.type?(e.append(Hn.fromRect(new un([r.left+1,r.top+1],[r.width-2,r.height-2])).stroke(i,1)),t.checked&&e.append((new Hn).stroke(i,1.2).moveTo(r.left+.22*r.width,r.top+.55*r.height).lineTo(r.left+.45*r.width,r.top+.75*r.height).lineTo(r.left+.78*r.width,r.top+.22*r.width))):(e.append(new bn(new gn([(r.left+r.right)/2,(r.top+r.bottom)/2],Math.min(r.width-2,r.height-2)/2)).stroke(i,1)),t.checked&&e.append(new bn(new gn([(r.left+r.right)/2,(r.top+r.bottom)/2],Math.min(r.width-8,r.height-8)/2)).fill(i).stroke(null)))}function Be(t,e){var n,i,r,o,s,a=t.tagName.toLowerCase();if("input"==a&&("checkbox"==t.type||"radio"==t.type))return Re(t,e);if(n=t.parentNode,i=t.ownerDocument,r=i.createElement(br),r.style.cssText=ke(oe(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(br),o.style.cssText=ke(oe(t.options[s])),o.style.display="block",o.textContent=t.options[s].textContent,r.appendChild(o);else o=ze(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",Fe(r,e),t.style.display="",n.removeChild(r)}function Fe(t,e){var n,i,r,o,s,a,h;switch(Cr._stackingContext.element===t&&(Cr._stackingContext.group=e),t.tagName.toLowerCase()){case"img":Pe(t,t.src,e);break;case"canvas":try{Pe(t,t.toDataURL("image/png"),e)}catch(c){}break;case"textarea":case"input":case"select":Be(t,e);break;default:for(n=[],i=[],r=[],o=t.firstChild;o;o=o.nextSibling)switch(o.nodeType){case 3:/\S/.test(o.data)&&Le(t,o,e);break;case 1:s=oe(o),a=se(s,"float"),h=se(s,"position"),"static"!=h?r.push(o):"none"!=a?i.push(o):n.push(o)}d(n,Oe).forEach(function(t){De(t,e)}),d(i,Oe).forEach(function(t){De(t,e)}),d(r,Oe).forEach(function(t){De(t,e)})}}function Le(t,e,n){function i(t){var e,n,i,r,o;if(kr||wr.chrome){for(e=t.getClientRects(),n={top:1/0,right:-(1/0),bottom:-(1/0),left:1/0},i=!1,r=0;r<e.length;++r)o=e[r],o.width<=1||o.bottom===_||(n.left=Math.min(o.left,n.left),n.top=Math.min(o.top,n.top),n.right=Math.max(o.right,n.right),n.bottom=Math.max(o.bottom,n.bottom),i=!0);return i?(n.width=n.right-n.left,n.height=n.bottom-n.top,n):t.getBoundingClientRect()}return t.getBoundingClientRect()}function r(){var t,n,r,s,a,u,f,d=c,p=h.substr(c).search(/\S/);if(c+=p,p<0||c>=l)return!0;if(g.setStart(e,c),g.setEnd(e,c+1),t=i(g),n=!1,(v||x>1)&&(p=h.substr(c).search(/\s/),p>=0&&(g.setEnd(e,c+p),r=i(g),r.bottom==t.bottom&&(t=r,n=!0,c+=p))),!n){if(p=function m(n,r,o){g.setEnd(e,r);var s=i(g);return s.bottom!=t.bottom&&n<r?m(n,n+r>>1,r):s.right!=t.right?(t=s,r<o?m(r,r+o>>1,o):r):r}(c,Math.min(l,c+b),l),p==c)return!0;if(c=p,p=(""+g).search(/\s+$/),0===p)return!1;p>0&&(g.setEnd(e,g.startOffset+p),t=i(g))}if(kr&&(t=g.getClientRects()[0]),s=""+g,/^(?:pre|pre-wrap)$/i.test(y)){if(/\t/.test(s)){for(a=0,p=d;p<g.startOffset;++p)u=h.charCodeAt(p),9==u?a+=8-a%8:10==u||13==u?a=0:a++;for(;(p=s.search("\t"))>=0;)f=" ".substr(0,8-(a+p)%8),s=s.substr(0,p)+f+s.substr(p+1)}}else s=s.replace(/\s+/g," ");n||(_=t.bottom),o(s,t)}function o(t,e){var i,r,o;switch(kr&&!isNaN(f)&&(i=Nr(d),r=(e.top+e.bottom-i)/2,e={top:r,right:e.right,bottom:r+i,left:e.left,height:i,width:e.right-e.left}),w){case"uppercase":t=t.toUpperCase();break;case"lowercase":t=t.toLowerCase();break;case"capitalize":t=t.replace(/(?:^|\s)\S/g,function(t){return t.toUpperCase()})}o=new Mr(t,new un([e.left,e.top],[e.width,e.height]),{font:d,fill:{color:p}}),n.append(o)}function s(t){function e(e,i){var r,o;e&&(r=u/12,o=new Hn({stroke:{width:r,color:e}}),i-=r,o.moveTo(t.left,i).lineTo(t.right,i),n.append(o))}e(C,t.bottom),e(T,t.bottom-t.height/2.7),e(k,t.top)}var a,h,c,l,u,f,d,p,g,m,v,x,y,w,b,_,C,T,k,M;if(!ie()&&(a=oe(t),!(parseFloat(se(a,"text-indent"))<-500)&&(h=e.data,c=0,l=h.search(/\S\s*$/)+1,l&&(u=se(a,"font-size"),f=se(a,"line-height"),d=[se(a,"font-style"),se(a,"font-variant"),se(a,"font-weight"),u,se(a,"font-family")].join(" "),u=parseFloat(u),f=parseFloat(f),0!==u)))){for(p=se(a,"color"),g=t.ownerDocument.createRange(),m=se(a,"text-align"),v="justify"==m,x=se(a,"column-count",1),y=se(a,"white-space"),w=se(a,"text-transform"),b=t.getBoundingClientRect().width/u*5,0===b&&(b=500),_=null,C=Cr.underline,T=Cr["line-through"],k=Cr.overline,M=C||T||k;!r(););M&&(g.selectNode(e),Bt(g.getClientRects()).forEach(s))}}function Ie(t,e,n){var i,r,o,s,a,h;for("auto"!=n?(i=Cr._stackingContext.group,n=parseFloat(n)):(i=e,n=0),r=i.children,o=0;o<r.length&&!(null!=r[o]._dom_zIndex&&r[o]._dom_zIndex>n);++o);return s=new Kn,i.insert(o,s),s._dom_zIndex=n,i!==e&&Cr._clipbox&&(a=Cr._matrix.invert(),h=Cr._clipbox.transformCopy(a),ve(s,Hn.fromRect(h))),s}function De(t,e){var n,i,r,o,s,a,h=oe(t);Wt(h),/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(t.tagName)||null!=Cr._clipbox&&(n=parseFloat(se(h,"opacity")),i=se(h,"visibility"),r=se(h,"display"),0!==n&&"hidden"!=i&&"none"!=r&&(o=de(h),a=se(h,"z-index"),(o||n<1)&&"auto"==a&&(a=0),s=Ie(t,e,a),n<1&&s.opacity(n*s.opacity()),te(t,h,s),o?ce(t,function(){var e,n,i,r;ae(t.style,"transform","none","important"),ae(t.style,"transition","none","important"),"static"==se(h,"position")&&ae(t.style,"position","relative","important"),e=t.getBoundingClientRect(),n=e.left+o.origin[0],i=e.top+o.origin[1],r=[1,0,0,1,-n,-i],r=qe(r,o.matrix),r=qe(r,[1,0,0,1,n,i]),r=me(s,r),Cr._matrix=Cr._matrix.multiplyCopy(r),Me(t,s)}):Me(t,s),ee()))}function qe(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],a=t[5],h=e[0],c=e[1],l=e[2],u=e[3],f=e[4],d=e[5];return[n*h+i*l,n*c+i*u,r*h+o*l,r*c+o*u,s*h+a*l+f,s*c+a*u+d]}var Ge,je,$e,He,Ue,Ve,Xe,Ye,We,Ze,Je,Ke,Qe,tn,en,nn,rn,on,sn,an,hn,cn,ln,un,fn,dn,pn,gn,mn,vn,xn,yn,wn,bn,_n,Cn,Tn,kn,Mn,En,Sn,An,Pn,On,Nn,zn,Rn,Bn,Fn,Ln,In,Dn,qn,Gn,jn,$n,Hn,Un,Vn,Xn,Yn,Wn,Zn,Jn,Kn,Qn,ti,ei,ni,ii,ri,oi,si,ai,hi,ci,li,ui,fi,di,pi,gi,mi,vi,xi,yi,wi,bi,_i,Ci,Ti,ki,Mi,Ei,Si,Ai,Pi,Oi,Ni,zi,Ri,Bi,Fi,Li,Ii,Di,qi,Gi,ji,$i,Hi,Ui,Vi,Xi,Yi,Wi,Zi,Ji,Ki,Qi,tr,er,nr,ir,rr,or,sr,ar,hr,cr,lr,ur,fr,dr,pr,gr,mr,vr,xr,yr,wr,br,_r,Cr,Tr,kr,Mr,Er,Sr,Ar,Pr,Or,Nr,zr;window.kendo=window.kendo||{},Ge=kendo.drawing,je=Ge.util,$e=kendo.Class,He=kendo.util,Ue=kendo.support,Ve=Ue.browser,Xe=je.createPromise,Ye=je.promiseAll,We={extend:function(t){var e,n=this;for(e in this)"extend"!==e&&(t[e]=n[e])},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=e.indexOf(t);return n!==-1&&e.splice(n,1),this},trigger:function(t,e){var n,i,r=this._observers;if(r&&!this._suspended)for(n=0;n<r.length;n++)i=r[n],i[t]&&i[t](e);return this},optionsChange:function(t){void 0===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=Math.max((this._suspended||0)-1,0),this},_observerField:function(t,e){this[t]&&this[t].removeObserver(this),this[t]=e,e.addObserver(this)}},Ze={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"},Je="undefined",Ke=1,Qe=Math.PI/180,tn=Number.MAX_VALUE,en=-Number.MAX_VALUE,nn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",rn=String.fromCharCode,on={append:e,arabicToRoman:n,createPromise:Xe,defined:i,definitionId:r,deg:o,encodeBase64:a,eventCoordinates:h,eventElement:c,isTransparent:l,last:u,limitValue:f,mergeSort:d,promiseAll:Ye,rad:p,round:m,valueOrDefault:v,bindEvents:x,elementOffset:y,elementSize:_,elementStyles:w,unbindEvents:C,DEG_TO_RAD:Qe,MAX_NUM:tn,MIN_NUM:en},sn={}.toString,an=$e.extend({init:function(t,e){var n,i,r=this;void 0===e&&(e=""),this.prefix=e;for(n in t)i=t[n],i=r._wrap(i,n),r[n]=i},get:function(t){for(var e,n=t.split("."),i=this;n.length&&i;)e=n.shift(),i=i[e];return i},set:function(t,e){var n=this.get(t);n!==e&&(this._set(t,this._wrap(e,t)),this.optionsChange({field:this.prefix+t,value:e}))},_set:function(t,e){var n,i,r,o=this,s=t.indexOf(".")>=0,a=this,h=t;if(s){for(n=h.split("."),i=this.prefix;n.length>1;)h=n.shift(),i+=h+".",r=a[h],r||(r=new an({},i),r.addObserver(o),a[h]=r),a=r;h=n[0]}a._clear(h),a[h]=e},_clear:function(t){var e=this[t];e&&e.removeObserver&&e.removeObserver(this)},_wrap:function(t,e){var n=sn.call(t),r=t;return null!==r&&i(r)&&"[object Object]"===n&&(t instanceof an||t instanceof $e||(r=new an(r,this.prefix+e+".")),r.addObserver(this)),r}}),We.extend(an.prototype),hn=$e.extend({init:function(t,e,n,i,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=0),this.a=t,this.b=e,this.c=n,this.d=i,this.e=r,this.f=o},multiplyCopy:function(t){return new hn(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,e=t.a,n=t.b,i=t.c,r=t.d,o=t.e,s=t.f,a=e*r-n*i;return 0===a?null:new hn(r/a,-n/a,-i/a,e/a,(i*s-r*o)/a,(n*o-e*s)/a)},clone:function(){return new hn(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=m(this.a,t),this.b=m(this.b,t),this.c=m(this.c,t),this.d=m(this.d,t),this.e=m(this.e,t),this.f=m(this.f,t),this},toArray:function(t){var e,n=[this.a,this.b,this.c,this.d,this.e,this.f];if(i(t))for(e=0;e<n.length;e++)n[e]=m(n[e],t);return n},toString:function(t,e){return void 0===e&&(e=","),this.toArray(t).join(e)}}),hn.translate=function(t,e){return new hn(1,0,0,1,t,e)},hn.unit=function(){return new hn(1,0,0,1,0,0)},hn.rotate=function(t,e,n){var i=new hn;return i.a=Math.cos(p(t)),i.b=Math.sin(p(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},hn.scale=function(t,e){return new hn(t,0,0,e,0,0)},hn.IDENTITY=hn.unit(),cn=$e.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 cn(this.x,this.y)},rotate:function(t,e){var n=cn.create(e)||cn.ZERO;return this.transform(hn.rotate(t,n.x,n.y))},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 void 0===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 e=E(t),n=this,i=n.x,r=n.y;return this.x=e.a*i+e.c*r+e.e,this.y=e.b*i+e.d*r+e.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 Math.sqrt(e*e+n*n)},round:function(t){return this.x=m(this.x,t),this.y=m(this.y,t),this.geometryChange(),this},toArray:function(t){var e=i(t),n=e?m(this.x,t):this.x,r=e?m(this.y,t):this.y;return[n,r]},toString:function(t,e){var n,r,o;return void 0===e&&(e=" "),n=this,r=n.x,o=n.y,i(t)&&(r=m(r,t),o=m(o,t)),r+e+o}}),cn.create=function(t,e){if(i(t))return t instanceof cn?t:1===arguments.length&&2===t.length?new cn(t[0],t[1]):new cn(t,e)},cn.min=function(){var t,e,n=arguments,i=tn,r=tn;for(t=0;t<arguments.length;t++)e=n[t],i=Math.min(e.x,i),r=Math.min(e.y,r);return new cn(i,r)},cn.max=function(){var t,e,n=arguments,i=en,r=en;for(t=0;t<arguments.length;t++)e=n[t],i=Math.max(e.x,i),r=Math.max(e.y,r);return new cn(i,r)},cn.minPoint=function(){return new cn(en,en)},cn.maxPoint=function(){return new cn(tn,tn)},Object.defineProperties&&Object.defineProperties(cn,{ZERO:{get:function(){return new cn(0,0)}}}),M(cn.prototype,["x","y"]),We.extend(cn.prototype),ln=$e.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 ln(this.width,this.height)},toArray:function(t){var e=i(t),n=e?m(this.width,t):this.width,r=e?m(this.height,t):this.height;return[n,r]}}),ln.create=function(t,e){if(i(t))return t instanceof ln?t:1===arguments.length&&2===t.length?new ln(t[0],t[1]):new ln(t,e)},Object.defineProperties&&Object.defineProperties(ln,{ZERO:{get:function(){return new ln(0,0)}}}),M(ln.prototype,["width","height"]),We.extend(ln.prototype),un=$e.extend({init:function(t,e){void 0===t&&(t=new cn),void 0===e&&(e=new ln),this.setOrigin(t),this.setSize(e)},clone:function(){return new un(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",cn.create(t)),this.geometryChange(),this},getOrigin:function(){return this.origin},setSize:function(t){return this._observerField("size",ln.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.orig