@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
2 lines • 118 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(946),t.exports=n(946)},3:function(t,e){t.exports=function(){throw Error("define cannot be used indirect")}},946:function(t,e,n){var i,r,o;!function(s,define){r=[n(947),n(948),n(949)],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+=tn[e[0]],t-=e[0]);return n}function i(t){return typeof t!==en}function r(){return"kdef"+nn++}function o(t){return t/rn}function s(t){var e,n,i="";for(e=0;e<t.length;e++)n=t.charCodeAt(e),n<128?i+=an(n):n<2048?(i+=an(192|n>>>6),i+=an(128|63&n)):n<65536&&(i+=an(224|n>>>12),i+=an(128|n>>>6&63),i+=an(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+hn.charAt(r)+hn.charAt(o)+hn.charAt(a)+hn.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*rn}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){var e=w(t,["paddingLeft","paddingTop"]),n=e.paddingLeft,i=e.paddingTop;return{top:parseFloat(i),left:parseFloat(n)}}function k(t){return function(e){return this[t]!==e&&(this[t]=e,this.geometryChange()),this}}function M(t){return function(){return this[t]}}function S(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]=k(i),t["get"+r]=M(i)}function E(t){return t&&"function"==typeof t.matrix?t.matrix():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,e,n){return void 0===n&&(n=gn),0===m(Math.abs(t-e),n)}function O(t,e,n){return t<e||P(t,e,n)}function N(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 ln(t.x+f*r,t.y+f*s)}function z(t){return null===t?null:t instanceof mn?t:new mn(t)}function R(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 B(t){var e,n,i,r,s,a,h,c,l,u,f,d,g,v,x,y,w,b,_,C,T,k,M,S,E,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),S=T+M,E=S>=0?1:-1,S=Math.abs(S)%360*E,{center:new ln(x,y),startAngle:T,endAngle:S,radiusX:z,radiusY:R,xRotation:L}}function F(t,e){for(var n=t;n<e;)n+=90;return n}function L(t){var e="_"+t;return function(t){return i(t)?(this._observerField(e,ln.create(t)),this.geometryChange(),this):this[e]}}function I(t,e){for(var n=0;n<e.length;n++)t[e[n]]=L(e[n])}function D(t,e,n){var i=o(Math.atan2(e.y-t.y,e.x-t.x)),r=n.transformCopy(z().rotate(-i,t));return r.x<t.x}function q(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 G(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 j(t){return t<0?-1:1}function $(t,e,n){var i=Math.sqrt(Math.pow(e,2)-4*t*n);return[(-e+i)/(2*t),(-e-i)/(2*t)]}function H(t,e,n,i){var r,o,s,a,h,c,l,u,f,d,p,g,v;return 0===t?$(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 wn(0,1),h=-e/(3*t),s<0?(c=new wn(-o/2,Math.sqrt(-s)).nthRoot(3),l=new wn(-o/2,(-Math.sqrt(-s))).nthRoot(3)):(c=-o/2+Math.sqrt(s),c=new wn(j(c)*Math.pow(Math.abs(c),1/3)),l=-o/2-Math.sqrt(s),l=new wn(j(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,gn)),f.isReal()&&v.push(m(f.real+h,gn)),d.isReal()&&v.push(m(d.real+h,gn)),v)}function U(t,e,n,i,r){var o,s,a=G(t,i),h=H(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=q(h[s],n,t),Math.abs(o-e[n])<=r))return!0}function V(t,e,n){var i,r,o,s=G(t,"x"),a=H(s[0],s[1],s[2],s[3]-e.x),h=0;for(o=0;o<a.length;o++)i=q(a[o],"y",t),r=P(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 X(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 Y(t){var e,n=t.length,i=on,r=sn;for(e=0;e<n;e++)r=Math.max(r,t[e]),i=Math.min(i,t[e]);return{min:i,max:r}}function W(t){var e,n=t.match(Cn);return null===n||2!==n.length?cn.unit():(e=n[1].split(",").map(function(t){return parseFloat(t)}),new(Function.prototype.bind.apply(cn,[null].concat(e))))}function Z(t){var e=getComputedStyle(t).transform;return"none"===e?cn.unit():W(e)}function J(t){var e,n,i;if(!t)return cn.unit();for(e=Z(t),n=t.parentElement;n;)i=Z(n),e=e.multiplyCopy(i),n=n.parentElement;return e.b=e.c=e.e=e.f=0,e}function K(t){var e="_"+t;return function(t){return i(t)?(this._observerField(e,t),this.geometryChange(),this):this[e]}}function Q(t,e){for(var n=0;n<e.length;n++)t[e[n]]=K(e[n])}function tt(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?fn.union(i,s):s));return i}function et(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?fn.union(n,o):o));return n}function nt(t,e,n){var i,r=e?0:1;for(i=0;i<t.length;i+=2)t.splice(i+r,0,n)}function it(t,e){if(t&&e)return e.scaleCopy(2).translate(-t.x,-t.y)}function rt(t,e,n){var i=e.clone().scale(2/3);return{controlOut:i.clone().translateWith(t.scaleCopy(Hn)),controlIn:i.translateWith(n.scaleCopy(Hn))}}function ot(t){var e=[];return t.replace(Vn,function(t,n){e.push(parseFloat(n))}),e}function st(t,e,n){var i=n.transform()||z(),r=i.matrix();r.e+=t.x-e.origin.x,r.f+=t.y-e.origin.y,i.matrix(r),n.transform(i)}function at(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 ht(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 ct(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]=at(s.size[r],e,n||"start",i,r),st(a,s,t[o]))}function lt(t,e,n){ct(t,e,n,"x","width")}function ut(t,e,n){ct(t,e,n,"y","height")}function ft(t,e,n,i){var r,o,s,a,h;if(t.length>1)for(r=new ln,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],st(r,h,a),h.origin[e]=r[e],o=h}function dt(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 pt(t){ft(dt(t),"x","y","width")}function gt(t){ft(dt(t),"y","x","height")}function mt(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 vt(t,e,n,i,r){var o,s,a,h,c=mt(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],st(l,a.bbox,a.element),a.bbox.origin[n]=l[n],ft(s,n,i,r),u.push([]),h=0;h<s.length;h++)u[o].push(s[h].element);return u}function xt(t,e){return vt(t,e,"x","y","width")}function yt(t,e){return vt(t,e,"y","x","height")}function wt(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()||z(),o.scale(r,r),t.transform(o)))}function bt(t){return function(e){return i(e)?(this.options.set(t,e),this):this.options.get(t)}}function _t(t,e){for(var n=0;n<e.length;n++)t[e[n]]=bt(e[n])}function Ct(t){return.5-Math.cos(t*Math.PI)/2}function Tt(t){return t}function kt(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 Mt(t,e){return i(e)&&null!==e?" "+t+'="'+e+'" ':""}function St(t){var e,n="";for(e=0;e<t.length;e++)n+=Mt(t[e][0],t[e][1]);return n}function Et(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 At(t,e){return"clip"===t||"fill"===t&&(!e||"Gradient"===e.nodeType)}function Pt(){var t,e=document.getElementsByTagName("base")[0],n=document.location.href,i="";return e&&!(Ze||{}).msie&&(t=n.indexOf("#"),t!==-1&&(n=n.substring(0,t)),i=n),i}function Ot(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 Nt(t){if(!t||"string"!=typeof t||!tr.test(t))return t;var e=Nt._element;return tr.lastIndex=0,t.replace(tr,function(t){return e.innerHTML=t,e.textContent||e.innerText})}function zt(t){var e,n,i,r=new qi({skipBaseHref:!0}),o=t.clippedBBox(),s=t;return o&&(e=o.getOrigin(),n=new ri,n.transform(z().translate(-e.x,-e.y)),n.children.push(t),s=n),r.load([s]),i="<?xml version='1.0' ?><svg xmlns='"+Ti+"' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>"+r.render()+"</svg>",r.destroy(),i}function Rt(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 Bt(t,e){return t._zIndex<e._zIndex?1:t._zIndex>e._zIndex?-1:0}function Ft(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 Lt(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 ri,f.transform(z().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 mr(s,o),h.suspendTracking(),h.draw(f),c=h.image(),l=function(){h.destroy(),document.body.removeChild(s)},c.then(l,l),c}function It(t,e){var n=zt(t);return e&&e.raw||(n="data:image/svg+xml;base64,"+a(n)),Je().resolve(n)}function Dt(t){return Array.prototype.slice.call(t)}function qt(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function Gt(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 jt(t,e){Object.keys(e).forEach(function(n){t.style[n]=e[n]})}function $t(t,e){if(t.closest)return t.closest(e);for(;t&&!/^\[object (?:HTML)?Document\]$/.test(t+"");){if(1==t.nodeType&&Nr(t,e))return t;t=t.parentNode}}function Ht(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 Ut(t,e){function n(t){var n=new ri,i=t.getBoundingClientRect();return we(n,[s.x,0,0,s.y,-i.left*s.x,-i.top*s.y]),Er._clipbox=!1,Er._matrix=cn.unit(),Er._stackingContext={element:t,group:n},Er._avoidLinks=e.avoidLinks===!0?"a":e.avoidLinks,qt(t,"k-pdf-export"),$e(t,n),Gt(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)}),ne(y,function(){ee(y,function(){t({pages:y,container:b})})})}function c(t){if(a.keepTogether&&Nr(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&&jt(t,{tableLayout:"fixed"}),!c(t)){for(e=ce(t),i=parseFloat(le(e,"padding-bottom")),r=parseFloat(le(e,"border-bottom-width")),s=_,_+=i+r,a=!0,h=t.firstChild;h;h=h.nextSibling)if(1==h.nodeType){if(a=!1,Nr(h,n)){f(h);continue}if(!o){l(h);continue}if(!/^(?:static|relative)$/.test(le(ce(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=$t(t,"table"),n=e&&e.querySelector("colgroup"),a.repeatHeaders&&(i=e&&e.querySelector("thead"),r=$t(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=$t(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=$t(t,".k-grid.k-widget"),r.insertBefore(o.cloneNode(!0),r.firstChild))))}function d(){var t=x.createElement("KENDO-PDF-PAGE");return jt(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=$t(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:zr(e),b=x.createElement("KENDO-PDF-DOCUMENT"),_=0;Dt(w.querySelectorAll("tfoot")).forEach(function(t){t.parentNode.appendChild(t)}),Dt(w.querySelectorAll("ol")).forEach(function(t){Dt(t.children).forEach(function(t,e){t.setAttribute("kendo-split-index",e)})}),jt(b,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),r&&(jt(b,{width:r+"px",paddingLeft:s.left+"px",paddingRight:s.right+"px"}),jt(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=Je(),!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(Vt(t.ownerDocument)),s=Ht(e.scale||1),ne(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 ri({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 Vt(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=le(t.style,"src");return n?Br(n).reduce(function(t,e){var n=Fr(e);return n&&t.push(n),t},[]):(e=Fr(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=Br(le(a,"font-family")),c=/^([56789]00|bold)$/i.test(le(a,"font-weight")),l="italic"==le(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 Xt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Yt(t){return t="_counter_"+t,Er[t]}function Wt(t){var e=[],n=Er;for(t="_counter_"+t;n;)Xt(n,t)&&e.push(n[t]),n=Object.getPrototypeOf(n);return e.reverse()}function Zt(t,e){var n=Er;for(t="_counter_"+t;n&&!Xt(n,t);)n=Object.getPrototypeOf(n);n||(n=Er._root),n[t]=(n[t]||0)+(null==e?1:e)}function Jt(t,e){t="_counter_"+t,Er[t]=null==e?0:e}function Kt(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 Qt(t){var e,n=le(t,"counter-reset");n&&Kt(Br(n,/^\s+/),Jt,0),e=le(t,"counter-increment"),e&&Kt(Br(e,/^\s+/),Zt,1)}function te(t,e){var n=kendo.parseColor(t,!0);return n&&(n=n.toRGB(),e?n=n.toCssRgba():0===n.a&&(n=null)),n}function ee(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 ne(t,e){function n(t){Sr[t]||(Sr[t]=!0,s.push(t))}function i(t){/^img$/i.test(t.tagName)&&n(t.src),Rr(le(ce(t),"background-image")).forEach(function(t){"url"==t.type&&n(t.url)}),t.children&&Dt(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=Sr[t]=new window.Image;/^data:/i.test(t)||(e.crossOrigin="Anonymous"),e.src=t,e.complete?r():(e.onload=r,e.onerror=function(){Sr[t]=null,r()})})}function ie(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 re(t,e,n){var i,r;Er=Object.create(Er),Er[t.tagName.toLowerCase()]={element:t,style:e},i=le(e,"text-decoration"),i&&"none"!=i&&(r=le(e,"color"),i.split(/\s+/g).forEach(function(t){Er[t]||(Er[t]=r)})),he(e)&&(Er._stackingContext={element:t,group:n})}function oe(){Er=Object.getPrototypeOf(Er)}function se(t){if(null!=Er._clipbox){var e=t.bbox(Er._matrix);Er._clipbox=Er._clipbox?fn.intersect(Er._clipbox,e):e}}function ae(){var t=Er._clipbox;return null==t||(t?0===t.width()||0===t.height():void 0)}function he(t){function e(e){return le(t,e)}if("none"!=e("transform")||"static"!=e("position")||"auto"!=e("z-index")||e("opacity")<1)return!0}function ce(t,e){return window.getComputedStyle(t,e||null)}function le(t,e,n){var i=t.getPropertyValue(e);return null!=i&&""!==i||(kr.webkit?i=t.getPropertyValue("-webkit-"+e):kr.mozilla?i=t.getPropertyValue("-moz-"+e):kr.opera?i=t.getPropertyValue("-o-"+e):Pr&&(i=t.getPropertyValue("-ms-"+e))),arguments.length>2&&(null==i||""===i)?n:i}function ue(t,e,n,i){t.setProperty(e,n,i),kr.webkit?t.setProperty("-webkit-"+e,n,i):kr.mozilla?t.setProperty("-moz-"+e,n,i):kr.opera?t.setProperty("-o-"+e,n,i):Pr&&(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 fe(t,e){return e="border-"+e,{width:parseFloat(le(t,e+"-width")),style:le(t,e+"-style"),color:te(le(t,e+"-color"),!0)}}function de(t,e){var n=t.style.cssText,i=e();return t.style.cssText=n,i}function pe(t,e){var n=le(t,"border-"+e+"-radius").split(/\s+/g).map(parseFloat);return 1==n.length&&n.push(n[0]),Ce({x:n[0],y:n[1]})}function ge(t){var e=t.getBoundingClientRect();return e=me(e,"border-*-width",t),e=me(e,"padding-*",t)}function me(t,e,n){var i,r,o,s,a;return"string"==typeof e?(i=ce(n),r=parseFloat(le(i,e.replace("*","top"))),o=parseFloat(le(i,e.replace("*","right"))),s=parseFloat(le(i,e.replace("*","bottom"))),a=parseFloat(le(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 ve(t){var e,n,i=le(t,"transform");return"none"==i?null:(e=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(i),e?(n=le(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 xe(t){return 180*t/Math.PI%360}function ye(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 we(t,e){return e=new cn(e[0],e[1],e[2],e[3],e[4],e[5]),t.transform(e),e}function be(t,e){t.clip(e)}function _e(t,e,n,i){for(var r=new yn([e,n],i).curvePoints(),o=1;o<r.length;)t.curveTo(r[o++],r[o++],r[o++])}function Ce(t){return(t.x<=0||t.y<=0)&&(t.x=t.y=0),t}function Te(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 ke(t,e,n){var i,r,o,s,a,h,c,l,u=ce(t),f=pe(u,"top-left"),d=pe(u,"top-right"),p=pe(u,"bottom-left"),g=pe(u,"bottom-right");return"padding"!=n&&"content"!=n||(i=fe(u,"top"),r=fe(u,"right"),o=fe(u,"bottom"),s=fe(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(le(u,"padding-top")),h=parseFloat(le(u,"padding-right")),c=parseFloat(le(u,"padding-bottom")),l=parseFloat(le(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),Me(e,f,d,g,p)}function Me(t,e,n,i,r){var o=Te(t,e,n,i,r),s=o.tl,a=o.tr,h=o.br,c=o.bl,l=new Zn({fill:null,stroke:null});return l.moveTo(t.left,t.top+s.y),s.x&&_e(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&&_e(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&&_e(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&&_e(l,t.left+c.x,t.bottom-c.y,{startAngle:90,endAngle:180,radiusX:c.x,radiusY:c.y}),l.close()}function Se(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 ie(t-1);case"upper-latin":case"upper-alpha":return ie(t-1).toUpperCase();default:return i}}function Ee(t,e){function n(t,e,n){return n?(n=n.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),Wt(t).map(function(t){return Se(t,e)}).join(n)):Se(Yt(t)||0,e)}var i,r=Br(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=Br(i[1]),o.push(n(r[0],r[1]))):(i=/^\s*counters\((.*?)\)\s*$/.exec(e))?(r=Br(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 Ae(t){var e,n;if(t.cssText)return t.cssText;for(e=[],n=0;n<t.length;++n)e.push(t[n]+": "+le(t,t[n]));return e.join(";\n")}function Pe(t,e){function n(e,n){var r,o=ce(t,e),s=o.content;Qt(o),s&&"normal"!=s&&"none"!=s&&"0px"!=o.width&&(r=t.ownerDocument.createElement(Mr),r.style.cssText=Ae(o),r.textContent=Ee(t,s),t.insertBefore(r,n),i.push(r))}var i,r;return t.tagName==Mr?void Oe(t,e):(i=[],n(":before",t.firstChild),n(":after",null),void(i.length>0?(r=t.className,t.className+=" kendo-pdf-hide-pseudo-elements",Oe(t,e),t.className=r,i.forEach(function(e){t.removeChild(e)})):Oe(t,e)))}function Oe(t,e){function i(e){var n,i,r,o,s,a;if(/^td$/i.test(t.tagName)&&(n=Er.table,n&&"collapse"==le(n.style,"border-collapse"))){if(i=fe(n.style,"left").width,r=fe(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 Dt(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 Zn({fill:{color:t},stroke:null}).moveTo(0,0);we(a,r),_e(a,0,n.y,{startAngle:-90,endAngle:-xe(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)),_e(a,0,n.y,{startAngle:-xe(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 ri;we(u,h),e.append(u),Ce(s),Ce(a),l=new Zn({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 ri;for(be(r,Me(t,S,E,P,A)),e.append(r),N&&(n=new Zn({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=me(y,"border-*-width",t),y=me(y,"padding-*",t)):"padding-box"==s&&(y=me(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 fn([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=Sr[i.url];c&&c.width>0&&c.height>0&&h(e,n,c.width,c.height,function(t,e){t.append(new ni(i.url,e))})}else{if("linear"!=i.type)return;h(e,n,n.width,n.height,Ne(i))}}function a(){function i(n){de(t,function(){t.style.position="relative";var i=t.ownerDocument.createElement(Mr);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),$e(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=le(_,"list-style-type");if("none"!=s)switch(o=le(_,"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=ie(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=me(n,C.width/2),l=ke(t,n,C.width/2),l.options.stroke={color:C.color,width:C.width},void e.append(l);if(0===S.x&&0===E.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 Zn({
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 Zn({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 Zn({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 Zn({stroke:{width:T.width,color:T.color}}).moveTo(n.right-T.width/2,n.top).lineTo(n.right-T.width/2,n.bottom)));u=Te(n,S,E,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,_=ce(t),C=fe(_,"top"),T=fe(_,"right"),k=fe(_,"bottom"),M=fe(_,"left"),S=pe(_,"top-left"),E=pe(_,"top-right"),A=pe(_,"bottom-left"),P=pe(_,"bottom-right"),O=le(_,"direction"),N=le(_,"background-color");if(N=te(N),c=Rr(le(_,"background-image")),l=Br(le(_,"background-repeat")),u=Br(le(_,"background-position")),f=Br(le(_,"background-origin")),d=Br(le(_,"background-size")),Pr&&(p=_.textOverflow,"ellipsis"==p&&(g=t.style.textOverflow,t.style.textOverflow="clip")),kr.msie&&kr.version<10&&(u=Br(t.currentStyle.backgroundPosition)),m=me(t.getBoundingClientRect(),"border-*-width",t),function(){var t,n,i,r,o,s,a,h=le(_,"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 ri,a=(new Zn).moveTo(o,n).lineTo(i,n).lineTo(i,r).lineTo(o,r).close(),be(s,a),e.append(s),e=s,se(a))}(),w=le(_,"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"))&&(Er._avoidLinks&&Nr(t,Er._avoidLinks)||(b=document.createRange(),b.selectNodeContents(t),Dt(b.getClientRects()).forEach(function(n){var i=new ri;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=ke(t,m,"padding"),i=new ri;be(i,n),e.append(i),e=i,se(n)}Fe(t)?n():/^(hidden|auto|scroll)/.test(le(_,"overflow"))?n():/^(hidden|auto|scroll)/.test(le(_,"overflow-x"))?n():/^(hidden|auto|scroll)/.test(le(_,"overflow-y"))&&n()}(),ze(t,e)||qe(t,e),Pr&&"ellipsis"==p&&(t.style.textOverflow=g),e}function Ne(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(Zn.fromRect(n).stroke(null).fill(new di({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 ze(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 ri,r.children.push(n),o=t.getBoundingClientRect(),r.transform(z().translate(o.left,o.top)),e.append(r),!0)}function Re(t,e,n){var i=ge(t),r=new fn([i.left,i.top],[i.width,i.height]),o=new ni(e,r);be(o,ke(t,i,"content")),n.append(o)}function Be(t,e){var n=ce(t),i=ce(e),r=parseFloat(le(n,"z-index")),o=parseFloat(le(i,"z-index")),s=le(n,"position"),a=le(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 Fe(t){return/^(?:textarea|select|input)$/i.test(t.tagName)}function Le(t){return t.selectedOptions&&t.selectedOptions.length>0?t.selectedOptions[0]:t.options[t.selectedIndex]}function Ie(t,e){var n=ce(t),i=le(n,"color"),r=t.getBoundingClientRect();"checkbox"==t.type?(e.append(Zn.fromRect(new fn([r.left+1,r.top+1],[r.width-2,r.height-2])).stroke(i,1)),t.checked&&e.append((new Zn).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 zn(new pn([(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 zn(new pn([(r.left+r.right)/2,(r.top+r.bottom)/2],Math.min(r.width-8,r.height-8)/2)).fill(i).stroke(null)))}function De(t,e){var n,i,r,o,s,a=t.tagName.toLowerCase();if("input"==a&&("checkbox"==t.type||"radio"==t.type))return Ie(t,e);if(n=t.parentNode,i=t.ownerDocument,r=i.createElement(Mr),r.style.cssText=Ae(ce(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(Mr),o.style.cssText=Ae(ce(t.options[s])),o.style.display="block",o.textContent=t.options[s].textContent,r.appendChild(o);else o=Le(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",qe(r,e),t.style.display="",n.removeChild(r)}function qe(t,e){var n,i,r,o,s,a,h;switch(Er._stackingContext.element===t&&(Er._stackingContext.group=e),t.tagName.toLowerCase()){case"img":Re(t,t.src,e);break;case"canvas":try{Re(t,t.toDataURL("image/png"),e)}catch(c){}break;case"textarea":case"input":case"select":De(t,e);break;default:for(n=[],i=[],r=[],o=t.firstChild;o;o=o.nextSibling)switch(o.nodeType){case 3:/\S/.test(o.data)&&Ge(t,o,e);break;case 1:s=ce(o),a=le(s,"float"),h=le(s,"position"),"static"!=h?r.push(o):"none"!=a?i.push(o):n.push(o)}d(n,Be).forEach(function(t){$e(t,e)}),d(i,Be).forEach(function(t){$e(t,e)}),d(r,Be).forEach(function(t){$e(t,e)})}}function Ge(t,e,n){function i(t){var e,n,i,r,o;if(Pr||kr.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(Pr&&(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(Pr&&!isNaN(f)&&(i=Lr(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 Or(t,new fn([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 Zn({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(!ae()&&(a=ce(t),!(parseFloat(le(a,"text-indent"))<-500)&&(h=e.data,c=0,l=h.search(/\S\s*$/)+1,l&&(u=le(a,"font-size"),f=le(a,"line-height"),d=[le(a,"font-style"),le(a,"font-variant"),le(a,"font-weight"),u,le(a,"font-family")].join(" "),u=parseFloat(u),f=parseFloat(f),0!==u)))){for(p=le(a,"color"),g=t.ownerDocument.createRange(),m=le(a,"text-align"),v="justify"==m,x=le(a,"column-count",1),y=le(a,"white-space"),w=le(a,"text-transform"),b=t.getBoundingClientRect().width/u*5,0===b&&(b=500),_=null,C=Er.underline,T=Er["line-through"],k=Er.overline,M=C||T||k;!r(););M&&(g.selectNode(e),Dt(g.getClientRects()).forEach(s))}}function je(t,e,n){var i,r,o,s,a,h;for("auto"!=n?(i=Er._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 ri,i.insert(o,s),s._dom_zIndex=n,i!==e&&Er._clipbox&&(a=Er._matrix.invert(),h=Er._clipbox.transformCopy(a),be(s,Zn.fromRect(h))),s}function $e(t,e){var n,i,r,o,s,a,h=ce(t);Qt(h),/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(t.tagName)||null!=Er._clipbox&&(n=parseFloat(le(h,"opacity")),i=le(h,"visibility"),r=le(h,"display"),0!==n&&"hidden"!=i&&"none"!=r&&(o=ve(h),a=le(h,"z-index"),(o||n<1)&&"auto"==a&&(a=0),s=je(t,e,a),n<1&&s.opacity(n*s.opacity()),re(t,h,s),o?de(t,function(){var e,n,i,r;ue(t.style,"transform","none","important"),ue(t.style,"transition","none","important"),"static"==le(h,"position")&&ue(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=He(r,o.matrix),r=He(r,[1,0,0,1,n,i]),r=we(s,r),Er._matrix=Er._matrix.multiplyCopy(r),Pe(t,s)}):Pe(t,s),oe()))}function He(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 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,Sn,En,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,Si,Ei,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,Sr,Er,Ar,Pr,Or,Nr,zr,Rr,Br,Fr,Lr,Ir;window.kendo=window.kendo||{},Ue=kendo.drawing,Ve=Ue.util,Xe=kendo.Class,Ye=kendo.util,We=kendo.support,Ze=We.browser,Je=Ve.createPromise,Ke=Ve.promiseAll,Qe={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)}},tn={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"},en="undefined",nn=1,rn=Math.PI/180,on=Number.MAX_VALUE,sn=-Number.MAX_VALUE,an=String.fromCharCode,hn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",cn=Xe.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 cn(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 cn(r/a,-n/a,-i/a,e/a,(i*s-r*o)/a,(n*o-e*s)/a)},clone:function(){return new cn(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)}}),cn.translate=function(t,e){return new cn(1,0,0,1,t,e)},cn.unit=function(){return new cn(1,0,0,1,0,0)},cn.rotate=function(t,e,n){var i=new cn;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},cn.scale=function(t,e){return new cn(t,0,0,e,0,0)},cn.IDENTITY=cn.unit(),ln=Xe.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 ln(this.x,this.y)},rotate:function(t,e){var n=ln.create(e)||ln.ZERO;return this.transform(cn.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}}),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)},ln.min=function(){var t,e,n=arguments,i=on,r=on;for(t=0;t<arguments.length;t++)e=n[t],i=Math.min(e.x,i),r=Math.min(e.y,r);return new ln(i,r)},ln.max=function(){var t,e,n=arguments,i=sn,r=sn;for(t=0;t<arguments.length;t++)e=n[t],i=Math.max(e.x,i),r=Math.max(e.y,r);return new ln(i,r)},ln.minPoint=function(){return new ln(sn,sn)},ln.maxPoint=function(){return new ln(on,on)},Object.defineProperties&&Object.defineProperties(ln,{ZERO:{get:function(){return new ln(0,0)}}}),S(ln.prototype,["x","y"]),Qe.extend(ln.prototype),un=Xe.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 un(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]}}),un.create=function(t,e){if(i(t))return t instanceof un?t:1===arguments.length&&2===t.length?new un(t[0],t[1]):new un(t,e)},Object.defineProperties&&Object.defineProperties(un,{ZERO:{get:function(){return new un(0,0)}}}),S(un.prototype,["width","height"]),Qe.extend(un.prototype),fn=Xe.extend({init:function(t,e){void 0===t&&(t=new ln),void 0===e&&(e=new un),this.setOrigin(t),this.setSize(e)},clone:function(){return new fn(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",ln.create(t)),this.geometryChange(),this},getOrigin:function(){return this.origin},setSize:function(t){return this._observerField("size",un.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 fn.fromPoints(e,n,i,r)},transformCopy:function(t){return fn.fromPoints(this.topLeft().transform(t),this.bottomRight().transform(t))},expand:function(t,e){retur