{"version":3,"names":[],"mappings":"","sources":["scripts/scriptsKendoUi.js"],"sourcesContent":["\n/** \n * Kendo UI v2021.3.1207 (http://www.telerik.com/kendo-ui) \n * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. \n * \n * Kendo UI commercial licenses may be obtained at \n * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete \n * If you do not own a commercial license, this file shall be governed by the trial license terms. \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n*/\n!function(e,define){define(\"kendo.core.min\",[\"jquery\"],e)}(function(){return function(e,t,n){function i(){}function o(e,t){if(t)return\"'\"+e.split(\"'\").join(\"\\\\'\").split('\\\\\"').join('\\\\\\\\\\\\\"').replace(/\\n/g,\"\\\\n\").replace(/\\r/g,\"\\\\r\").replace(/\\t/g,\"\\\\t\")+\"'\";var n=e.charAt(0),i=e.substring(1);return\"=\"===n?\"+(\"+i+\")+\":\":\"===n?\"+$kendoHtmlEncode(\"+i+\")+\":\";\"+e+\";$kendoOutput+=\"}function r(e,t,n){return e+=\"\",t=t||2,n=t-e.length,n?j[t].substring(0,n)+e:e}function a(e){var t=e.css(Te.support.transitions.css+\"box-shadow\")||e.css(\"box-shadow\"),n=t?t.match(Le)||[0,0,0,0,0]:[0,0,0,0,0],i=Me.max(+n[3],+(n[4]||0));return{left:-n[1]+i,right:+n[1]+i,bottom:+n[2]+i}}function s(n,i){var o,r,a,s,d,c,u=Te._outerWidth,h=Te._outerHeight,p=n.parent(),f=u(t);return p.removeClass(\"k-animation-container-sm\"),p.hasClass(\"k-animation-container\")?l(n,i):(r=n[0].style.width,a=n[0].style.height,s=ze.test(r),d=ze.test(a),c=n.hasClass(\"k-tooltip\")||n.is(\".k-menu-horizontal.k-context-menu\"),o=s||d,!s&&(!i||i&&r||c)&&(r=i?u(n)+1:u(n)),(!d&&(!i||i&&a)||n.is(\".k-menu-horizontal.k-context-menu\"))&&(a=h(n)),n.wrap(e(\"
\").addClass(\"k-animation-container\").css({width:r,height:a})),p=n.parent(),o&&n.css({width:\"100%\",height:\"100%\",boxSizing:\"border-box\",mozBoxSizing:\"border-box\",webkitBoxSizing:\"border-box\"})),f-1)return!0;var t=f(e,[\"overflow\"]).overflow;return t.indexOf(\"auto\")>-1||t.indexOf(\"scroll\")>-1}function g(t,i){var o,r,a=Pe.browser.webkit,s=Pe.browser.mozilla,l=Pe.browser.version;return t instanceof e&&i!==n?(t.each(function(e,t){g(t,i)}),n):(o=t instanceof e?t[0]:t)?(r=Pe.isRtl(t),i===n?r&&a&&(l<85||Pe.browser.safari)?o.scrollWidth-o.clientWidth-o.scrollLeft:Math.abs(o.scrollLeft):(o.scrollLeft=r&&a&&(l<85||Pe.browser.safari)?o.scrollWidth-o.clientWidth-i:r&&(s||a)&&i>0?-i:i,n)):n}function v(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&\"toJSON\"!=t&&n++;return n}function _(e,n,i){var o,r,a;return n||(n=\"offset\"),o=e[n](),r={top:o.top,right:o.right,bottom:o.bottom,left:o.left},Pe.browser.msie&&(Pe.pointers||Pe.msPointers)&&!i&&(a=Pe.isRtl(e)?1:-1,r.top-=t.pageYOffset-document.documentElement.scrollTop,r.left-=t.pageXOffset+a*document.documentElement.scrollLeft),r}function b(e){var t={};return Ie(\"string\"==typeof e?e.split(\" \"):e,function(e){t[e]=this}),t}function w(e){return new Te.effects.Element(e)}function k(e,t,n,i){return typeof e===Ne&&(P(t)&&(i=t,t=400,n=!1),P(n)&&(i=n,n=!1),typeof t===je&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:i}),De({effects:{},duration:400,reverse:!1,init:Re,teardown:Re,hide:!1},e,{completeCallback:e.complete,complete:Re})}function y(t,n,i,o,r){for(var a,s=0,l=t.length;s-1||t.is(\":visible\")}function E(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:\"a\"===n?e.href||t:t)&&R(e)}function R(t){return e.expr.pseudos.visible(t)&&!e(t).parents().addBack().filter(function(){return\"hidden\"===e.css(this,\"visibility\")}).length}function M(e,t){return new M.fn.init(e,t)}var F,P,z,B,L,H,O,N,V,W,U,j,G,q,$,K,Y,Q,X,Z,J,ee,te,ne,ie,oe,re,ae,se,le,de,ce,ue,he,pe,fe,me,ge,ve,_e,be,we,ke,ye,xe,Ce,Se,Te=t.kendo=t.kendo||{cultures:{}},De=e.extend,Ie=e.each,Ae=Array.isArray,Ee=e.proxy,Re=e.noop,Me=Math,Fe=t.JSON||{},Pe={},ze=/%/,Be=/\\{(\\d+)(:[^\\}]+)?\\}/g,Le=/(\\d+(?:\\.?)\\d*)px\\s*(\\d+(?:\\.?)\\d*)px\\s*(\\d+(?:\\.?)\\d*)px\\s*(\\d+)?/i,He=/^(\\+|-?)\\d+(\\.?)\\d*$/,Oe=\"function\",Ne=\"string\",Ve=\"number\",We=\"object\",Ue=\"null\",je=\"boolean\",Ge=\"undefined\",qe={},$e={},Ke=[].slice,Ye=function(){var e,t,i,o,r,a,s=arguments[0]||{},l=1,d=arguments.length,c=!1;for(\"boolean\"==typeof s&&(c=s,s=arguments[l]||{},l++),\"object\"!=typeof s&&\"function\"!=typeof s&&(s={}),l===d&&(s=this,l--);l=0;i--)r[i]!==t&&r[i].original!==t||r.splice(i,1);else o._events[e]=[];return o}}),H=/^\\w+/,O=/\\$\\{([^}]*)\\}/g,N=/\\\\\\}/g,V=/__CURLY__/g,W=/\\\\#/g,U=/__SHARP__/g,j=[\"\",\"0\",\"00\",\"000\",\"0000\"],F={paramName:\"data\",useWithBlock:!0,render:function(e,t){var n,i,o=\"\";for(n=0,i=t.length;n99&&(o=Me.floor(o/10)),o=r(o)):\"fff\"===t?o=r(e.getMilliseconds(),3):\"tt\"===t?o=e.getHours()<12?a.AM[0]:a.PM[0]:\"zzz\"===t?(i=e.getTimezoneOffset(),d=i<0,o=(\"\"+Me.abs(i/60)).split(\".\")[0],i=Me.abs(i)-60*o,o=(d?\"+\":\"-\")+r(o),o+=\":\"+r(i)):\"zz\"!==t&&\"z\"!==t||(o=e.getTimezoneOffset()/60,d=o<0,o=(\"\"+Me.abs(o)).split(\".\")[0],o=(d?\"+\":\"-\")+(\"zz\"===t?r(o):o)),o!==n?o:t.slice(1,t.length-1)})}function a(e,t,o){var r,a,d,c,w,k,y,x,C,S,T,D,I,A,E,R,M,F,P,z,B,L,H,O,N,V,W,U,j,G,q,$,K,Y;if(o=i(o),r=o.numberFormat,a=r[m],d=r.decimals,c=r.pattern[0],w=[],T=e<0,R=f,M=f,q=-1,e===n)return f;if(!isFinite(e))return e;if(!t)return o.name.length?e.toLocaleString():\"\"+e;if(S=u.exec(t)){if(t=S[1].toLowerCase(),y=\"c\"===t,x=\"p\"===t,(y||x)&&(r=y?r.currency:r.percent,a=r[m],d=r.decimals,k=r.symbol,c=r.pattern[T?0:1]),C=S[2],C&&(d=+C),\"e\"===t)return K=C?e.toExponential(d):e.toExponential(),K.replace(m,r[m]);if(x&&(e*=100),e=l(e,d),T=e<0,e=e.split(m),D=e[0],I=e[1],T&&(D=D.substring(1)),M=s(D,0,D.length,r),I&&(M+=a+I),\"n\"===t&&!T)return M;for(e=f,F=0,P=c.length;F-1||t.indexOf('\"')>-1||t.indexOf(\"\\\\\")>-1)&&(t=t.replace(h,function(e){var t=e.charAt(0).replace(\"\\\\\",\"\"),n=e.slice(1).replace(t,\"\");return w.push(n),b})),t=t.split(\";\"),T&&t[1])t=t[1],L=!0;else if(0===e&&t[2]){if(t=t[2],t.indexOf(v)==-1&&t.indexOf(_)==-1)return t}else t=t[0];if(U=t.indexOf(\"%\"),j=t.indexOf(\"$\"),x=U!=-1,y=j!=-1,x&&(e*=100),y&&\"\\\\\"===t[j-1]&&(t=t.split(\"\\\\\").join(\"\"),y=!1),(y||x)&&(r=y?r.currency:r.percent,a=r[m],d=r.decimals,k=r.symbol),B=t.indexOf(g)>-1,B&&(t=t.replace(p,f)),H=t.indexOf(m),P=t.length,H!=-1)if(I=(\"\"+e).split(\"e\"),I=I[1]?l(e,Math.abs(I[1])):I[0],I=I.split(m)[1]||f,N=t.lastIndexOf(_)-H,O=t.lastIndexOf(v)-H,V=N>-1,W=O>-1,F=I.length,V||W||(t=t.substring(0,H)+t.substring(H+1),P=t.length,H=-1,F=0),V&&N>O)F=N;else if(O>N)if(W&&F>O){for(Y=l(e,O,T);Y.charAt(Y.length-1)===_&&O>0&&O>N;)O--,Y=l(e,O,T);F=O}else V&&FN?N:O,O=t.lastIndexOf(v),N=t.lastIndexOf(_),$=O==-1&&N!=-1?N:O!=-1&&N==-1?O:O>N?O:N,q==P&&($=q),q!=-1){for(M=(\"\"+e).split(m),D=M[0],I=M[1]||f,A=D.length,E=I.length,T&&e*-1>=0&&(T=!1),e=t.substring(0,q),T&&!L&&(e+=\"-\"),F=q;F-1&&(e+=D,F=H),H===F){e+=(I?a:f)+I,F+=$-H+1;continue}z===_?(e+=z,R=z):z===v&&(e+=R)}if(B&&(e=s(e,q+(T&&!L?1:0),Math.max($,A+q),r)),$>=q&&(e+=t.substring($+1)),y||x){for(M=f,F=0,P=e.length;F=p){for(s=a,l=[];s>-1;)if(d=r.substring(s-p,s),d&&l.push(d),s-=p,c=h.shift(),p=c!==n?c:p,0===p){s>0&&l.push(r.substring(0,s));break}r=l.reverse().join(o[g]),e=e.substring(0,t)+r+e.substring(i)}return e},l=function(e,t,n){return t=t||0,e=(\"\"+e).split(\"e\"),e=Math.round(+(e[0]+\"e\"+(e[1]?+e[1]+t:t))),n&&(e=-e),e=(\"\"+e).split(\"e\"),e=+(e[0]+\"e\"+(e[1]?+e[1]-t:-t)),e.toFixed(Math.min(t,20))},d=function(e,t,i){if(t){if(\"[object Date]\"===k.call(e))return o(e,t,i);if(typeof e===Ve)return a(e,t,i)}return e!==n?e:\"\"},Te.format=function(e){var t=arguments;return e.replace(Be,function(e,n,i){var o=t[parseInt(n,10)+1];return d(o,i?i.substring(1):\"\")})},Te._extractFormat=function(e){return\"{0:\"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},Te._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},Te._round=l,Te._outerWidth=function(t,n){return e(t).outerWidth(n||!1)||0},Te._outerHeight=function(t,n){return e(t).outerHeight(n||!1)||0},Te.toString=d}(),function(){function t(e,t,n){return!(e>=t&&e<=n)}function i(e){return e.charAt(0)}function o(t){return e.map(t,i)}function r(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}function a(e){for(var t=0,n=e.length,i=[];t0&&(L-=1),t},T=function(t){var n=w[t]||RegExp(\"^\\\\d{1,\"+t+\"}\"),i=e.substr(H,t).match(n);return i?(i=i[0],H+=i.length,parseInt(i,10)):null},D=function(t,n){for(var i,o,r,a=0,s=t.length,l=0,d=0;al&&(l=o,d=a);return l?(H+=l,d+1):null},I=function(){var t=!1;return e.charAt(H)===i[L]&&(H++,t=!0),t},A=a.calendars.standard,E=null,R=null,M=null,F=null,P=null,z=null,B=null,L=0,H=0,O=!1,N=new Date,V=A.twoDigitYearMax||2029,W=N.getFullYear();for(i||(i=\"d\"),h=A.patterns[i],h&&(i=h),i=i.split(\"\"),u=i.length;L2)continue;if(M=c<3?T(2):D(A._lowerDays[3==c?\"namesAbbr\":\"names\"],!0),null===M||t(M,1,31))return null}else if(\"M\"===d){if(c=S(\"M\"),A._lowerMonths||(A._lowerMonths=s(A.months)),R=c<3?T(2):D(A._lowerMonths[3==c?\"namesAbbr\":\"names\"],!0),null===R||t(R,1,12))return null;R-=1}else if(\"y\"===d){if(c=S(\"y\"),E=T(c),null===E)return null;2==c&&(\"string\"==typeof V&&(V=W+parseInt(V,10)),E=W-W%100+E,E>V&&(E-=100))}else if(\"h\"===d){if(S(\"h\"),F=T(2),12==F&&(F=0),null===F||t(F,0,11))return null}else if(\"H\"===d){if(S(\"H\"),F=T(2),null===F||t(F,0,23))return null}else if(\"m\"===d){if(S(\"m\"),P=T(2),null===P||t(P,0,59))return null}else if(\"s\"===d){if(S(\"s\"),z=T(2),null===z||t(z,0,59))return null}else if(\"f\"===d){if(c=S(\"f\"),C=e.substr(H,c).match(w[3]),B=T(c),null!==B&&(B=parseFloat(\"0.\"+C[0],10),B=Te._round(B,3),B*=1e3),null===B||t(B,0,999))return null}else if(\"t\"===d){if(c=S(\"t\"),_=A.AM,b=A.PM,1===c&&(_=o(_),b=o(b)),p=D(b),!p&&!D(_))return null}else if(\"z\"===d){if(g=!0,c=S(\"z\"),\"Z\"===e.substr(H,1)){I();continue}if(v=e.substr(H,6).match(c>2?m:f),!v)return null;if(v=v[0].split(\":\"),k=v[0],y=v[1],!y&&k.length>3&&(H=k.length-2,y=k.substring(H),k=k.substring(0,H)),k=parseInt(k,10),t(k,-12,13))return null;if(c>2&&(y=v[0][0]+y,y=parseInt(y,10),isNaN(y)||t(y,-59,59)))return null}else if(\"'\"===d)O=!0,I();else if(!I())return null;return l&&!/^\\s*$/.test(e.substr(H))?null:(x=null!==F||null!==P||z||null,null===E&&null===R&&null===M&&x?(E=W,R=N.getMonth(),M=N.getDate()):(null===E&&(E=W),null===M&&(M=1)),p&&F<12&&(F+=12),g?(k&&(F+=-k),y&&(P+=-y),e=new Date(Date.UTC(E,R,M,F,P,z,B))):(e=new Date(E,R,M,F,P,z,B),r(e,F)),E<100&&e.setFullYear(E),e.getDate()!==M&&g===n?null:e)}function d(e){var t=\"-\"===e.substr(0,1)?-1:1;return e=e.substring(1),e=60*parseInt(e.substr(0,2),10)+parseInt(e.substring(2),10),t*e}function c(e){var t,n,i,o=Me.max(_.length,b.length),r=e.calendar||e.calendars.standard,a=r.patterns,s=[];for(i=0;i0?null:(c=c>-1,e.indexOf(l)>-1||n&&n.toLowerCase().indexOf(\"c\")>-1?(r=s,i=r.pattern[0].replace(\"$\",l).split(\"n\"),e.indexOf(i[0])>-1&&e.indexOf(i[1])>-1&&(e=e.replace(i[0],\"\").replace(i[1],\"\"),c=!0)):e.indexOf(d)>-1&&(o=!0,r=a,l=d),e=e.replace(\"-\",\"\").replace(l,\"\").replace(h,\" \").split(r[\",\"].replace(h,\" \")).join(\"\").replace(r[\".\"],\".\"),e=parseFloat(e),isNaN(e)?e=null:c&&(e*=-1),e&&o&&(e/=100),e)}}(),function(){var i,o,r,a,s,l,d,c,h,p,f;Pe._scrollbar=n,Pe.scrollbar=function(e){if(isNaN(Pe._scrollbar)||e){var t,n=document.createElement(\"div\");return n.style.cssText=\"overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block\",n.innerHTML=\" \",document.body.appendChild(n),Pe._scrollbar=t=n.offsetWidth-n.scrollWidth,document.body.removeChild(n),t}return Pe._scrollbar},Pe.isRtl=function(t){return e(t).closest(\".k-rtl\").length>0},i=document.createElement(\"table\");try{i.innerHTML=\"\",Pe.tbodyInnerHtml=!0}catch(m){Pe.tbodyInnerHtml=!1}Pe.touch=\"ontouchstart\"in t,o=document.documentElement.style,r=Pe.transitions=!1,a=Pe.transforms=!1,s=\"HTMLElement\"in t?HTMLElement.prototype:[],Pe.hasHW3D=\"WebKitCSSMatrix\"in t&&\"m11\"in new t.WebKitCSSMatrix||\"MozPerspective\"in o||\"msPerspective\"in o,Pe.cssFlexbox=\"flexWrap\"in o||\"WebkitFlexWrap\"in o||\"msFlexWrap\"in o,Ie([\"Moz\",\"webkit\",\"O\",\"ms\"],function(){var e,t=\"\"+this,n=typeof i.style[t+\"Transition\"]===Ne;if(n||typeof i.style[t+\"Transform\"]===Ne)return e=t.toLowerCase(),a={css:\"ms\"!=e?\"-\"+e+\"-\":\"\",prefix:t,event:\"o\"===e||\"webkit\"===e?e:\"\"},n&&(r=a,r.event=r.event?r.event+\"TransitionEnd\":\"transitionend\"),!1}),i=null,Pe.transforms=a,Pe.transitions=r,Pe.devicePixelRatio=t.devicePixelRatio===n?1:t.devicePixelRatio;try{Pe.screenWidth=t.outerWidth||t.screen?t.screen.availWidth:t.innerWidth,Pe.screenHeight=t.outerHeight||t.screen?t.screen.availHeight:t.innerHeight}catch(m){Pe.screenWidth=t.screen.availWidth,Pe.screenHeight=t.screen.availHeight}Pe.detectOS=function(e){var n,i,o=!1,r=[],a=!/mobile safari/i.test(e),s={wp:/(Windows Phone(?: OS)?)\\s(\\d+)\\.(\\d+(\\.\\d+)?)/,fire:/(Silk)\\/(\\d+)\\.(\\d+(\\.\\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\\/)\\s*(\\d+)\\.?(\\d+(\\.\\d+)?)?/,iphone:/(iPhone|iPod).*OS\\s+(\\d+)[\\._]([\\d\\._]+)/,ipad:/(iPad).*OS\\s+(\\d+)[\\._]([\\d_]+)/,meego:/(MeeGo).+NokiaBrowser\\/(\\d+)\\.([\\d\\._]+)/,webos:/(webOS)\\/(\\d+)\\.(\\d+(\\.\\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\\/(\\d+)\\.(\\d+(\\.\\d+)?)/,playbook:/(PlayBook).*?Tablet\\s*OS\\s*(\\d+)\\.(\\d+(\\.\\d+)?)/,windows:/(MSIE)\\s+(\\d+)\\.(\\d+(\\.\\d+)?)/,tizen:/(tizen).*?Version\\/(\\d+)\\.(\\d+(\\.\\d+)?)/i,sailfish:/(sailfish).*rv:(\\d+)\\.(\\d+(\\.\\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\\d+)\\.(\\d+(\\.\\d+)?).*Firefox/},l={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},d={tablet:/playbook|ipad|fire/i},c={omini:/Opera\\sMini/i,omobile:/Opera\\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\\/.*safari/i,ie:/MSIE|Windows\\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(i in s)if(s.hasOwnProperty(i)&&(r=e.match(s[i]))){if(\"windows\"==i&&\"plugins\"in navigator)return!1;o={},o.device=i,o.tablet=u(i,d,!1),o.browser=u(e,c,\"default\"),o.name=u(i,l),o[o.name]=!0,o.majorVersion=r[2],o.minorVersion=(r[3]||\"0\").replace(\"_\",\".\"),n=o.minorVersion.replace(\".\",\"\").substr(0,2),o.flatVersion=o.majorVersion+n+Array(3-(n.length<3?n.length:2)).join(\"0\"),o.cordova=typeof t.PhoneGap!==Ge||typeof t.cordova!==Ge,o.appMode=t.navigator.standalone||/file|local|wmapp/.test(t.location.protocol)||o.cordova,o.android&&(Pe.devicePixelRatio<1.5&&o.flatVersion<400||a)&&(Pe.screenWidth>800||Pe.screenHeight>800)&&(o.tablet=i);break}return o},l=Pe.mobileOS=Pe.detectOS(navigator.userAgent),Pe.wpDevicePixelRatio=l.wp?screen.width/320:0,Pe.hasNativeScrolling=!1,(l.ios||l.android&&l.majorVersion>2||l.wp)&&(Pe.hasNativeScrolling=l),Pe.delayedClick=function(){if(Pe.touch){if(l.ios)return!0;if(l.android)return!Pe.browser.chrome||!(Pe.browser.version<32)&&!(e(\"meta[name=viewport]\").attr(\"content\")||\"\").match(/user-scalable=no/i)}return!1},Pe.mouseAndTouchPresent=Pe.touch&&!(Pe.mobileOS.ios||Pe.mobileOS.android),Pe.detectBrowser=function(e){var t,n=!1,i=[],o={edge:/(edge)[ \\/]([\\w.]+)/i,webkit:/(chrome|crios)[ \\/]([\\w.]+)/i,safari:/(webkit)[ \\/]([\\w.]+)/i,opera:/(opera)(?:.*version|)[ \\/]([\\w.]+)/i,msie:/(msie\\s|trident.*? rv:)([\\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\\w.]+)|)/i};for(t in o)if(o.hasOwnProperty(t)&&(i=e.match(o[t]))){n={},n[t]=!0,n[i[1].toLowerCase().split(\" \")[0].split(\"/\")[0]]=!0,n.version=parseInt(document.documentMode||i[2],10);break}return n},Pe.browser=Pe.detectBrowser(navigator.userAgent),Pe.detectClipboardAccess=function(){var e={copy:!!document.queryCommandSupported&&document.queryCommandSupported(\"copy\"),cut:!!document.queryCommandSupported&&document.queryCommandSupported(\"cut\"),paste:!!document.queryCommandSupported&&document.queryCommandSupported(\"paste\")};return Pe.browser.chrome&&(e.paste=!1,Pe.browser.version>=43&&(e.copy=!0,e.cut=!0)),e},Pe.clipboard=Pe.detectClipboardAccess(),Pe.zoomLevel=function(){var e,n,i;try{return e=Pe.browser,n=0,i=document.documentElement,e.msie&&11==e.version&&i.scrollHeight>i.clientHeight&&!Pe.touch&&(n=Pe.scrollbar()),Pe.touch?i.clientWidth/t.innerWidth:e.msie&&e.version>=10?((top||t).document.documentElement.offsetWidth+n)/(top||t).innerWidth:1}catch(o){return 1}},function(t){var n=\"\",i=e(document.documentElement),o=parseInt(t.version,10);t.msie?n=\"ie\":t.mozilla?n=\"ff\":t.safari?n=\"safari\":t.webkit?n=\"webkit\":t.opera?n=\"opera\":t.edge&&(n=\"edge\"),n&&(n=\"k-\"+n+\" k-\"+n+o),Pe.mobileOS&&(n+=\" k-mobile\"),Pe.cssFlexbox||(n+=\" k-no-flexbox\"),i.addClass(n)}(Pe.browser),Pe.eventCapture=document.documentElement.addEventListener,d=document.createElement(\"input\"),Pe.placeholder=\"placeholder\"in d,Pe.propertyChangeEvent=\"onpropertychange\"in d,Pe.input=function(){for(var e,t=[\"number\",\"date\",\"time\",\"month\",\"week\",\"datetime\",\"datetime-local\"],n=t.length,i=\"test\",o={},r=0;rt.field?1:e.field/g,Z=function(e){return e.target},Pe.touch&&(Z=function(e){var t=\"originalEvent\"in e?e.originalEvent.changedTouches:\"changedTouches\"in e?e.changedTouches:null;return t?document.elementFromPoint(t[0].clientX,t[0].clientY):e.target},Ie([\"swipe\",\"swipeLeft\",\"swipeRight\",\"swipeUp\",\"swipeDown\",\"doubleTap\",\"tap\"],function(t,n){e.fn[n]=function(e){return this.on(n,e)}})),Pe.touch?Pe.mobileOS?(Pe.mousedown=\"touchstart\",Pe.mouseup=\"touchend\",Pe.mousemove=\"touchmove\",Pe.mousecancel=\"touchcancel\",Pe.click=\"touchend\",Pe.resize=\"orientationchange\"):(Pe.mousedown=\"mousedown touchstart\",Pe.mouseup=\"mouseup touchend\",Pe.mousemove=\"mousemove touchmove\",Pe.mousecancel=\"mouseleave touchcancel\",Pe.click=\"click\",Pe.resize=\"resize\"):Pe.pointers?(Pe.mousemove=\"pointermove\",Pe.mousedown=\"pointerdown\",Pe.mouseup=\"pointerup\",Pe.mousecancel=\"pointercancel\",Pe.click=\"pointerup\",Pe.resize=\"orientationchange resize\"):Pe.msPointers?(Pe.mousemove=\"MSPointerMove\",Pe.mousedown=\"MSPointerDown\",Pe.mouseup=\"MSPointerUp\",Pe.mousecancel=\"MSPointerCancel\",Pe.click=\"MSPointerUp\",Pe.resize=\"orientationchange resize\"):(Pe.mousemove=\"mousemove\",Pe.mousedown=\"mousedown\",Pe.mouseup=\"mouseup\",Pe.mousecancel=\"mouseleave\",Pe.click=\"click\",Pe.resize=\"resize\"),J=function(e,t){var n,i,o,r,a=t||\"d\",s=1;for(i=0,o=e.length;i0||t.height>0)&&(!n||t.width!==n.width||t.height!==n.height))&&(this._size=t,this._resize(t,e),this.trigger(\"resize\",t))},getSize:function(){return Te.dimensions(this.element)},size:function(e){return e?(this.setSize(e),n):this.getSize()},setSize:e.noop,_resize:e.noop,destroy:function(){var e=this;e.element.removeData(\"kendo\"+e.options.prefix+e.options.name),e.element.removeData(\"handler\"),e.unbind()},_destroy:function(){this.destroy()},angular:function(){},_muteAngularRebind:function(e){this._muteRebind=!0,e.call(this),this._muteRebind=!1}}),ne=te.extend({dataItems:function(){return this.dataSource.flatView()},_angularItems:function(t){var n=this;n.angular(t,function(){return{elements:n.items(),data:e.map(n.dataItems(),function(e){return{dataItem:e}})}})}}),Te.dimensions=function(e,t){var n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}},Te.notify=Re,ie=/template$/i,oe=/^\\s*(?:\\{(?:.|\\r\\n|\\n)*\\}|\\[(?:.|\\r\\n|\\n)*\\])\\s*$/,re=/^\\{(\\d+)(:[^\\}]+)?\\}|^\\[[A-Za-z_]+\\]$/,ae=/([A-Z])/g,Te.initWidget=function(i,o,r){var a,s,l,d,c,u,h,p,f,m,g,v,_;if(r?r.roles&&(r=r.roles):r=Te.ui.roles,i=i.nodeType?i:i[0],u=i.getAttribute(\"data-\"+Te.ns+\"role\")){f=u.indexOf(\".\")===-1,l=f?r[u]:Te.getter(u)(t),g=e(i).data(),v=l?\"kendo\"+l.fn.options.prefix+l.fn.options.name:\"\",m=f?RegExp(\"^kendo.*\"+u+\"$\",\"i\"):RegExp(\"^\"+v+\"$\",\"i\");for(_ in g)if(_.match(m)){if(_!==v)return g[_];a=g[_]}if(l){for(p=T(i,\"dataSource\"),o=e.extend({},D(i,e.extend({},l.fn.options,l.fn.defaults)),o),p&&(o.dataSource=typeof p===Ne?Te.getter(p)(t):p),d=0,c=l.fn.events.length;d{1}
\",l,Te.ui.progress.messages.loading)).width(i.width).height(i.height).css(\"top\",i.top).css(r,Math.abs(s)+a).prependTo(t)):d&&d.remove()},plugin:function(t,i,o){var r,a,s,l,d=t.fn.options.name;for(i=i||Te.ui,o=o||\"\",i[d]=t,i.roles[d.toLowerCase()]=t,r=\"getKendo\"+o+d,d=\"kendo\"+o+d,a={name:d,widget:t,prefix:o||\"\"},Te.widgets.push(a),s=0,l=Te._widgetRegisteredCallbacks.length;s=0&&(d=[Te.getter(l)(t)]),i=0,o=d.length;i-1)}}),de=[\"mousedown\",\"mousemove\",\"mouseenter\",\"mouseleave\",\"mouseover\",\"mouseout\",\"mouseup\",\"click\"],ce=\"label, input, [data-rel=external]\",ue={setupMouseMute:function(){var t,n=0,i=de.length,o=document.documentElement;if(!ue.mouseTrap&&Pe.eventCapture)for(ue.mouseTrap=!0,ue.bustClick=!1,ue.captureMouse=!1,t=function(t){ue.captureMouse&&(\"click\"===t.type?ue.bustClick&&!e(t.target).is(ce)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};n-1&&this[0]!==document.documentElement&&(ue.setupMouseMute(),o=2===t.length?null:t[1],r=i.indexOf(\"click\")>-1&&i.indexOf(\"touchend\")>-1,me.call(this,{touchstart:ue.muteMouse,touchend:ue.unMuteMouse},o,{bustClick:r})),arguments[0].indexOf(\"keydown\")!==-1&&t[1]&&t[1].options?(t[0]=i,a=t[1],s=t[t.length-1],t[t.length-1]=function(e){if(Te.keyDownHandler(e,a))return s.apply(this,[e])},me.apply(l,t),l):(typeof n===Ne&&(e=l.data(\"handler\"),n=e[n],t[t.length-1]=function(t){n.call(e,t)}),t[0]=i,me.apply(l,t),l))},kendoDestroy:function(e){return e=e||this.data(\"kendoNS\"),e&&this.off(\".\"+e),this}}),Te.jQuery=M,Te.eventMap=he,Te.timezone=function(){function e(e,t){var n,i,o,r=t[3],a=t[4],s=t[5],l=t[8];return l||(t[8]=l={}),l[e]?l[e]:(isNaN(a)?0===a.indexOf(\"last\")?(n=new Date(Date.UTC(e,c[r]+1,1,s[0]-24,s[1],s[2],0)),i=u[a.substr(4,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-o-(i>o?7:0))):a.indexOf(\">=\")>=0?(n=new Date(Date.UTC(e,c[r],a.substr(5),s[0],s[1],s[2],0)),i=u[a.substr(0,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-o+(i=0&&(n=new Date(Date.UTC(e,c[r],a.substr(5),s[0],s[1],s[2],0)),i=u[a.substr(0,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-o-(i>o?7:0))):n=new Date(Date.UTC(e,c[r],a,s[0],s[1],s[2],0)),l[e]=n)}function t(t,n,i){var o,r,a,s;return(n=n[i])?(a=new Date(t).getUTCFullYear(),n=jQuery.grep(n,function(e){var t=e[0],n=e[1];return t<=a&&(n>=a||t==a&&\"only\"==n||\"max\"==n)}),n.push(t),n.sort(function(t,n){return\"number\"!=typeof t&&(t=+e(a,t)),\"number\"!=typeof n&&(n=+e(a,n)),t-n}),s=n[jQuery.inArray(t,n)-1]||n[n.length-1],isNaN(s)?s:null):(o=i.split(\":\"),r=0,o.length>1&&(r=60*o[0]+ +o[1]),[-1e6,\"max\",\"-\",\"Jan\",1,[0,0,0],r,\"-\"])}function n(e,t,n){var i,o,r,a=t[n];if(\"string\"==typeof a&&(a=t[a]),!a)throw Error('Timezone \"'+n+'\" is either incorrect, or kendo.timezones.min.js is not included.');for(i=a.length-1;i>=0&&(o=a[i][3],!(o&&e>o));i--);if(r=a[i+1],!r)throw Error('Timezone \"'+n+'\" not found on '+e+\".\");return r}function i(e,i,o,r){typeof e!=Ve&&(e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));var a=n(e,i,r);return{zone:a,rule:t(e,o,a[1])}}function o(e,t){var n,o,r;return\"Etc/UTC\"==t||\"Etc/GMT\"==t?0:(n=i(e,this.zones,this.rules,t),o=n.zone,r=n.rule,Te.parseFloat(r?o[0]-r[6]:o[0]))}function r(e,t){var n=i(e,this.zones,this.rules,t),o=n.zone,r=n.rule,a=o[2];return a.indexOf(\"/\")>=0?a.split(\"/\")[r&&+r[6]?1:0]:a.indexOf(\"%s\")>=0?a.replace(\"%s\",r&&\"-\"!=r[7]?r[7]:\"\"):a}function a(e,t,n){var i,o,r,a=n;return typeof t==Ne&&(t=this.offset(e,t)),typeof n==Ne&&(n=this.offset(e,n)),o=e.getTimezoneOffset(),e=new Date(e.getTime()+6e4*(t-n)),r=e.getTimezoneOffset(),typeof a==Ne&&(a=this.offset(e,a)),i=r-o+(n-a),new Date(e.getTime()+6e4*i)}function s(e,t){return this.convert(e,e.getTimezoneOffset(),t)}function l(e,t){return this.convert(e,t,e.getTimezoneOffset())}function d(e){return this.apply(new Date(e),\"Etc/UTC\")}var c={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},u={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};return{zones:{},rules:{},offset:o,convert:a,apply:s,remove:l,abbr:r,toLocalDate:d}}(),Te.date=function(){function e(e,t){return 0===t&&23===e.getHours()&&(e.setHours(e.getHours()+2),!0)}function t(t,n,i){var o=t.getHours();i=i||1,n=(n-t.getDay()+7*i)%7,t.setDate(t.getDate()+n),e(t,o)}function i(e,n,i){return e=new Date(e),t(e,n,i),e}function o(e){return new Date(e.getFullYear(),e.getMonth(),1)}function r(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=o(e),i=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return i&&t.setHours(n.getHours()+i/60),t}function a(e){return new Date(e.getFullYear(),0,1)}function s(e){return new Date(e.getFullYear(),11,31)}function l(e,t){return 1!==t?g(i(e,t,-1),4):g(e,4-(e.getDay()||7))}function d(e,t){var n=new Date(e.getFullYear(),0,1,(-6)),i=l(e,t),o=i.getTime()-n.getTime(),r=Math.floor(o/C);return 1+Math.floor(r/7)}function c(e,t){var i,o,r;return t===n&&(t=Te.culture().calendar.firstDay),i=g(e,-7),o=g(e,7),r=d(e,t),0===r?d(i,t)+1:53===r&&d(o,t)>1?1:r}function u(t){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),e(t,0),t}function h(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function p(e){return k(e).getTime()-u(k(e))}function f(e,t,n){var i,o=p(t),r=p(n);return!e||o==r||(t>=n&&(n+=C),i=p(e),o>i&&(i+=C),r=o&&i<=r)}function m(e,t,n){var i,o=t.getTime(),r=n.getTime();return o>=r&&(r+=C),i=e.getTime(),i>=o&&i<=r}function g(t,n){var i=t.getHours();return t=new Date(t),v(t,n*C),e(t,i),t}function v(e,t,n){var i,o=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(i=e.getTimezoneOffset()-o,e.setTime(e.getTime()+i*x))}function _(t,n){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e(t,n.getHours()),t}function b(){return u(new Date)}function w(e){return u(e).getTime()==b().getTime()}function k(e){var t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}function y(e,t){var n=new Date(e);return new Date(n.setFullYear(n.getFullYear()+t))}var x=6e4,C=864e5;return{adjustDST:e,dayOfWeek:i,setDayOfWeek:t,getDate:u,isInDateRange:m,isInTimeRange:f,isToday:w,nextDay:function(e){return g(e,1)},previousDay:function(e){return g(e,-1)},toUtcTime:h,MS_PER_DAY:C,MS_PER_HOUR:60*x,MS_PER_MINUTE:x,setTime:v,setHours:_,addDays:g,today:b,toInvariantTime:k,firstDayOfMonth:o,lastDayOfMonth:r,weekInYear:c,getMilliseconds:p,firstDayOfYear:a,lastDayOfYear:s,nextYear:function(e){return y(e,1)},previousYear:function(e){return y(e,-1)}}}(),Te.stripWhitespace=function(e){var t,n,i;if(document.createNodeIterator)for(t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,function(t){return t.parentNode==e?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},!1);t.nextNode();)t.referenceNode&&!t.referenceNode.textContent.trim()&&t.referenceNode.parentNode.removeChild(t.referenceNode);else for(n=0;nt?o():i=setTimeout(o,t-s),n):o()},o.cancel=function(){clearTimeout(i)},o)},Te.caret=function(t,i,o){var r,a,s,l,d,c=i!==n;if(o===n&&(o=i),t[0]&&(t=t[0]),!c||!t.disabled){try{t.selectionStart!==n?c?(t.focus(),a=Pe.mobileOS,a.wp||a.android?setTimeout(function(){t.setSelectionRange(i,o)},0):t.setSelectionRange(i,o)):i=[t.selectionStart,t.selectionEnd]:document.selection&&(e(t).is(\":visible\")&&t.focus(),r=t.createTextRange(),c?(r.collapse(!0),r.moveStart(\"character\",i),r.moveEnd(\"character\",o-i),r.select()):(s=r.duplicate(),r.moveToBookmark(document.selection.createRange().getBookmark()),s.setEndPoint(\"EndToStart\",r),l=s.text.length,d=l+r.text.length,i=[l,d]))}catch(u){i=[]}return i}},Te.compileMobileDirective=function(e,n){var i=t.angular;return e.attr(\"data-\"+Te.ns+\"role\",e[0].tagName.toLowerCase().replace(\"kendo-mobile-\",\"\").replace(\"-\",\"\")),i.element(e).injector().invoke([\"$compile\",function(t){t(e)(n),/^\\$(digest|apply)$/.test(n.$$phase)||n.$digest()}]),Te.widgetInstance(e,Te.mobile.ui)},Te.antiForgeryTokens=function(){var t={},i=e(\"meta[name=csrf-token],meta[name=_csrf]\").attr(\"content\"),o=e(\"meta[name=csrf-param],meta[name=_csrf_header]\").attr(\"content\");return e(\"input[name^='__RequestVerificationToken']\").each(function(){t[this.name]=this.value}),o!==n&&i!==n&&(t[o]=i),t},Te.cycleForm=function(e){function t(e){var t=Te.widgetInstance(e);t&&t.focus?t.focus():e.trigger(\"focus\")}var n=e.find(\"input, .k-widget\").first(),i=e.find(\"button, .k-button\").last();i.on(\"keydown\",function(e){e.keyCode!=Te.keys.TAB||e.shiftKey||(e.preventDefault(),t(n))}),n.on(\"keydown\",function(e){e.keyCode==Te.keys.TAB&&e.shiftKey&&(e.preventDefault(),t(i))})},Te.focusElement=function(n){var i=[],o=n.parentsUntil(\"body\").filter(function(e,t){var n=Te.getComputedStyles(t,[\"overflow\"]);return\"visible\"!==n.overflow}).add(t);o.each(function(t,n){i[t]=e(n).scrollTop()});try{n[0].setActive()}catch(r){n[0].focus()}o.each(function(t,n){e(n).scrollTop(i[t])})},Te.focusNextElement=function(){var t,n,i;document.activeElement&&(t=e(\":kendoFocusable\"),n=t.index(document.activeElement),n>-1&&(i=t[n+1]||t[0],i.focus()))},Te.trim=function(e){return e?(\"\"+e).trim():\"\"},Te.getWidgetFocusableElement=function(t){var n,i=t.closest(\":kendoFocusable\"),o=Te.widgetInstance(t);return n=i.length?i:o?\"Editor\"===o.options.name?e(o.body):o.wrapper.find(\":kendoFocusable\").first():t},Te.addAttribute=function(e,t,n){var i=e.attr(t)||\"\";i.indexOf(n)<0&&e.attr(t,(i+\" \"+n).trim())},Te.removeAttribute=function(e,t,n){var i=e.attr(t)||\"\";e.attr(t,i.replace(n,\"\").trim())},Te.toggleAttribute=function(e,t,n){var i=e.attr(t)||\"\";i.indexOf(n)<0?Te.addAttribute(e,t,n):Te.removeAttribute(e,t,n)},Te.matchesMedia=function(e){var n=Te._bootstrapToMedia(e)||e;return Pe.matchMedia&&t.matchMedia(n).matches},Te._bootstrapToMedia=function(e){return{xs:\"(max-width: 576px)\",sm:\"(min-width: 576px)\",md:\"(min-width: 768px)\",lg:\"(min-width: 992px)\",xl:\"(min-width: 1200px)\"}[e]},Te.fileGroupMap={audio:[\".aif\",\".iff\",\".m3u\",\".m4a\",\".mid\",\".mp3\",\".mpa\",\".wav\",\".wma\",\".ogg\",\".wav\",\".wma\",\".wpl\"],video:[\".3g2\",\".3gp\",\".avi\",\".asf\",\".flv\",\".m4u\",\".rm\",\".h264\",\".m4v\",\".mkv\",\".mov\",\".mp4\",\".mpg\",\".rm\",\".swf\",\".vob\",\".wmv\"],image:[\".ai\",\".dds\",\".heic\",\".jpe\",\"jfif\",\".jif\",\".jp2\",\".jps\",\".eps\",\".bmp\",\".gif\",\".jpeg\",\".jpg\",\".png\",\".ps\",\".psd\",\".svg\",\".svgz\",\".tif\",\".tiff\"],txt:[\".doc\",\".docx\",\".log\",\".pages\",\".tex\",\".wpd\",\".wps\",\".odt\",\".rtf\",\".text\",\".txt\",\".wks\"],presentation:[\".key\",\".odp\",\".pps\",\".ppt\",\".pptx\"],data:[\".xlr\",\".xls\",\".xlsx\"],programming:[\".tmp\",\".bak\",\".msi\",\".cab\",\".cpl\",\".cur\",\".dll\",\".dmp\",\".drv\",\".icns\",\".ico\",\".link\",\".sys\",\".cfg\",\".ini\",\".asp\",\".aspx\",\".cer\",\".csr\",\".css\",\".dcr\",\".htm\",\".html\",\".js\",\".php\",\".rss\",\".xhtml\"],pdf:[\".pdf\"],config:[\".apk\",\".app\",\".bat\",\".cgi\",\".com\",\".exe\",\".gadget\",\".jar\",\".wsf\"],zip:[\".7z\",\".cbr\",\".gz\",\".sitx\",\".arj\",\".deb\",\".pkg\",\".rar\",\".rpm\",\".tar.gz\",\".z\",\".zip\",\".zipx\"],\"disc-image\":[\".dmg\",\".iso\",\".toast\",\".vcd\",\".bin\",\".cue\",\".mdf\"]},Te.getFileGroup=function(e,t){var i,o,r=Te.fileGroupMap,a=Object.keys(r),s=\"file\";if(e===n||!e.length)return s;for(i=0;i-1)return t?\"file-\"+a[i]:a[i];return s},Te.getFileSizeMessage=function(e){var t,n=[\"Bytes\",\"KB\",\"MB\",\"GB\",\"TB\"];return 0===e?\"0 Byte\":(t=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10),Math.round(e/Math.pow(1024,t),2)+\" \"+n[t])},Te.selectorFromClasses=function(e){return\".\"+e.split(\" \").join(\".\")},be=[\"primary\",\"secondary\",\"tertiary\",\"inherit\",\"info\",\"success\",\"warning\",\"error\",\"dark\",\"light\",\"inverse\"],we=[\"solid\",\"outline\",\"flat\"],ke=[\"edge\",\"outside\",\"inside\"],ye=[\"circle\",\"rectangle\",\"rounded\",\"dot\",\"pill\"],xe=[[\"small\",\"sm\"],[\"medium\",\"md\"],[\"large\",\"lg\"]],Ce=[[\"top start\",\"top-start\"],[\"top end\",\"top-end\"],[\"bottom start\",\"bottom-start\"],[\"bottom end\",\"bottom-end\"]],Se=[\"fixed\",\"static\",\"sticky\",\"absolute\"],Te.propertyToCssClassMap={},Te.registerCssClass=function(e,t,n){Te.propertyToCssClassMap[e]||(Te.propertyToCssClassMap[e]={}),Te.propertyToCssClassMap[e][t]=n||t},Te.registerCssClasses=function(e,t){for(var n=0;n\").attr({action:i,method:\"POST\",target:o}),l=Te.antiForgeryTokens();l.fileName=n,r=t.split(\";base64,\"),l.contentType=r[0].replace(\"data:\",\"\"),l.base64=r[1];for(a in l)l.hasOwnProperty(a)&&e(\"\").attr({value:l[a],name:a,type:\"hidden\"}).appendTo(s);s.appendTo(\"body\").submit().remove()}function i(e,t){var n,i,o,r,a,s=e;if(\"string\"==typeof e){for(n=e.split(\";base64,\"),i=n[0],o=atob(n[1]),r=new Uint8Array(o.length),a=0;a-1&&t.indexOf(\"#!\")<0?null:t.split(e)[1]||\"\"}function r(e,t){return 0===t.indexOf(e)?t.substr(e.length).replace(/\\/\\//g,\"/\"):t}function a(e){return e.replace(/^(#)?/,\"#\")}function s(e){return e.replace(/^(#(!)?)?/,\"#!\")}var l=window.kendo,d=\"change\",c=\"back\",u=\"same\",h=l.support,p=window.location,f=window.history,m=50,g=l.support.browser.msie,v=/^#*/,_=window.document,b=l.Class.extend({back:function(){g?setTimeout(function(){f.back()}):f.back()},forward:function(){g?setTimeout(function(){f.forward()}):f.forward()},length:function(){return f.length},replaceLocation:function(e){p.replace(e)}}),w=b.extend({init:function(e){this.root=e},navigate:function(e){f.pushState({},_.title,n(e,this.root))},replace:function(e){f.replaceState({},_.title,n(e,this.root))},normalize:function(e){return r(this.root,e)},current:function(){var e=p.pathname;return p.search&&(e+=p.search),r(this.root,e)},change:function(t){e(window).bind(\"popstate.kendo\",t)},stop:function(){e(window).unbind(\"popstate.kendo\")},normalizeCurrent:function(e){var t,r=e.root,a=p.pathname,s=o(i(e.hashBang));r===a+\"/\"&&(t=r),r===a&&s&&(t=n(s.replace(v,\"\"),r)),t&&f.pushState({},_.title,t)}}),k=b.extend({init:function(e){this._id=l.guid(),this.prefix=i(e),this.fix=e?s:a},navigate:function(e){p.hash=this.fix(e)},replace:function(e){this.replaceLocation(this.fix(e))},normalize:function(e){return e.indexOf(this.prefix)<0?e:e.split(this.prefix)[1]},change:function(t){h.hashChange?e(window).on(\"hashchange.\"+this._id,t):this._interval=setInterval(t,m)},stop:function(){e(window).off(\"hashchange.\"+this._id),clearInterval(this._interval)},current:function(){return o(this.prefix)},normalizeCurrent:function(e){var t=p.pathname,n=e.root;return!(!e.pushState||n===t)&&(this.replaceLocation(n+this.prefix+r(n,t)),!0)}}),y=l.Observable.extend({start:function(t){if(t=t||{},this.bind([d,c,u],t),!this._started){this._started=!0,t.root=t.root||\"/\";var n,i=this.createAdapter(t);i.normalizeCurrent(t)||(n=i.current(),e.extend(this,{adapter:i,root:t.root,historyLength:i.length(),current:n,locations:[n]}),i.change(e.proxy(this,\"_checkUrl\")))}},createAdapter:function(e){return h.pushState&&e.pushState?new w(e.root):new k(e.hashBang)},stop:function(){this._started&&(this.adapter.stop(),this.unbind(d),this._started=!1)},change:function(e){this.bind(d,e)},replace:function(e,t){this._navigate(e,t,function(t){t.replace(e),this.locations[this.locations.length-1]=this.current})},navigate:function(e,n){return\"#:back\"===e?(this.backCalled=!0,this.adapter.back(),t):(this._navigate(e,n,function(t){t.navigate(e),this.locations.push(this.current)}),t)},_navigate:function(e,n,i){var o=this.adapter;return e=o.normalize(e),this.current===e||this.current===decodeURIComponent(e)?(this.trigger(u),t):(!n&&this.trigger(d,{url:e,decode:!1})||(this.current=e,i.call(this,o),this.historyLength=o.length()),t)},_checkUrl:function(){var e=this.adapter,n=e.current(),i=e.length(),o=this.historyLength===i,r=n===this.locations[this.locations.length-2]&&o,a=this.backCalled,s=this.current;return null===n||this.current===n||this.current===decodeURIComponent(n)||(this.historyLength=i,this.backCalled=!1,this.current=n,r&&this.trigger(\"back\",{url:s,to:n})?(e.forward(),this.current=s,t):this.trigger(d,{url:n,backButtonPressed:!a})?(r?e.forward():(e.back(),this.historyLength--),this.current=s,t):(r?this.locations.pop():this.locations.push(n),t))}});l.History=y,l.History.HistoryAdapter=b,l.History.HashAdapter=k,l.History.PushStateAdapter=w,l.absoluteURL=n,l.history=new y}(window.kendo.jQuery),function(){function e(e,t){return t?e:\"([^/]+)\"}function t(t,n){return RegExp(\"^\"+t.replace(f,\"\\\\$&\").replace(u,\"(?:$1)?\").replace(h,e).replace(p,\"(.*?)\")+\"$\",n?\"i\":\"\")}function n(e){return e.replace(/(\\?.*)|(#.*)/g,\"\")}var i=window.kendo,o=i.history,r=i.Observable,a=\"init\",s=\"routeMissing\",l=\"change\",d=\"back\",c=\"same\",u=/\\((.*?)\\)/g,h=/(\\(\\?)?:\\w+/g,p=/\\*\\w+/g,f=/[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g,m=i.Class.extend({init:function(e,n,i){e instanceof RegExp||(e=t(e,i)),this.route=e,this._callback=n},callback:function(e,t,o){var r,a,s=0,l=i.parseQueryStringParams(e);if(l._back=t,e=n(e),r=this.route.exec(e).slice(1),a=r.length,o)for(;s3?\"substringof\"!==e?l=\"{0}({2},\"+l+\")\":(l=\"{0}(\"+l+\",{2})\",\"doesnotcontain\"===d&&(i?(l=\"{0}({2},'{1}') eq -1\",e=\"indexof\"):l+=\" eq false\")):l=\"{2} {0} \"+l,e=m.format(l,e,c,a))),h.push(e);return e=h.join(\" \"+p+\" \"),h.length>1&&(e=\"(\"+e+\")\"),e}function i(e){for(var t in e)0===t.indexOf(\"@odata\")&&delete e[t]}function o(){return Math.floor(65536*(1+Math.random())).toString(16).substr(1)}function r(e){return e+o()+\"-\"+o()+\"-\"+o()}function a(e,t){var n=v+\"--\"+e;return t&&(n+=\"--\"),n}function s(e,t,n,i){var o=e.options[i].url,r=m.format(\"{0} \",n);return b(o)?r+o(t):r+o}function l(e,t){var n=\"\";return n+=a(e,!1),n+=v+\"Content-Type: application/http\",n+=v+\"Content-Transfer-Encoding: binary\",n+=v+\"Content-ID: \"+t}function d(e){var t=\"\";return t+=v+\"Content-Type: application/json;odata=minimalmetadata\",t+=v+\"Prefer: return=representation\",t+=_+m.stringify(e)}function c(e,t,n,i,o,r){var a,c=\"\";for(a=0;a=200&&i<=299?(r=t.match(/\\{.*\\}/gm),r&&d[d.length-1].models.push(JSON.parse(r[0]))):d[d.length-1].passed=!1);return d}var m=window.kendo,g=e.extend,v=\"\\r\\n\",_=\"\\r\\n\\r\\n\",b=m.isFunction,w={eq:\"eq\",neq:\"ne\",gt:\"gt\",gte:\"ge\",lt:\"lt\",lte:\"le\",contains:\"substringof\",doesnotcontain:\"substringof\",endswith:\"endswith\",startswith:\"startswith\",isnull:\"eq\",isnotnull:\"ne\",isnullorempty:\"eq\",isnotnullorempty:\"ne\",isempty:\"eq\",isnotempty:\"ne\"},k=g({},w,{contains:\"contains\"}),y={pageSize:e.noop,page:e.noop,filter:function(e,t,i){t&&(t=n(t,i),t&&(e.$filter=t))},sort:function(t,n){var i=e.map(n,function(e){var t=e.field.replace(/\\./g,\"/\");return\"desc\"===e.dir&&(t+=\" desc\"),t}).join(\",\");i&&(t.$orderby=i)},skip:function(e,t){t&&(e.$skip=t)},take:function(e,t){t&&(e.$top=t)}},x={read:{dataType:\"jsonp\"}};g(!0,m.data,{schemas:{odata:{type:\"json\",data:function(e){return e.d.results||[e.d]},total:\"d.__count\"}},transports:{odata:{read:{cache:!0,dataType:\"jsonp\",jsonp:\"$callback\"},update:{cache:!0,dataType:\"json\",contentType:\"application/json\",type:\"PUT\"},create:{cache:!0,dataType:\"json\",contentType:\"application/json\",type:\"POST\"},destroy:{cache:!0,dataType:\"json\",type:\"DELETE\"},parameterMap:function(e,t,n){var i,o,r,a;if(e=e||{},t=t||\"read\",a=(this.options||x)[t],a=a?a.dataType:\"json\",\"read\"===t){i={$inlinecount:\"allpages\"},\"json\"!=a&&(i.$format=\"json\");for(r in e)y[r]?y[r](i,e[r],n):i[r]=e[r]}else{if(\"json\"!==a)throw Error(\"Only json dataType can be used for \"+t+\" operation.\");if(\"destroy\"!==t){for(r in e)o=e[r],\"number\"==typeof o&&(e[r]=o+\"\");i=m.stringify(e)}}return i}}}}),g(!0,m.data,{schemas:{\"odata-v4\":{type:\"json\",data:function(t){if(Array.isArray(t)){for(var n=0;n=0?e.replace(/\\.?(@.*)/,t?\"$1\":'[\"$1\"]'):e.indexOf(\"text()\")>=0?e.replace(/(\\.?text\\(\\))/,t?\"#text\":'[\"#text\"]'):e):\"\"},getter:function(e){return l(this.xpathToMember(e),!0)}});e.extend(!0,n.data,{XmlDataReader:c,readers:{xml:c}})}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.data.min\",[\"kendo.core.min\",\"kendo.data.odata.min\",\"kendo.data.xml.min\"],e)}(function(){return function(e,t){function n(e,t,n,i){return function(o){var r,a={};for(r in o)a[r]=o[r];a.field=i?n+\".\"+o.field:n,t==Be&&e._notifyChange&&e._notifyChange(a),e.trigger(t,a)}}function i(e,t){var n,i,o=[];for(e=e||{},n=Object.getOwnPropertyNames(e),i=ot.filter(function(e){return n.indexOf(e)<0});e;)Object.getOwnPropertyNames(e).forEach(function(e){o.indexOf(e)===-1&&(!t||i.indexOf(e)<0)&&o.push(e)}),e=Object.getPrototypeOf(e);return o}function o(e,t){if(e===t)return!0;var n,i=Se.type(e),r=Se.type(t);if(i!==r)return!1;if(\"date\"===i)return e.getTime()===t.getTime();if(\"object\"!==i&&\"array\"!==i)return!1;for(n in e)if(!o(e[n],t[n]))return!1;return!0}function r(e,t){var n,i;for(i in e){if(n=e[i],_e(n)&&n.field&&n.field===t)return n;if(n===t)return n}return null}function a(e){this.data=e||[]}function s(e,n){if(e){var i=typeof e===Ae?{field:e,dir:n}:e,o=we(i)?i:i!==t?[i]:[];return ke(o,function(e){return!!e.dir})}}function l(e,n){var i,o,r,a={};if(e)for(i=typeof e===Ae?{field:e,dir:n}:e,o=we(i)?i:i!==t?[i]:[],r=0;rt.field?1:e.field=t.length)););s0&&(t=this[n--]);n>=0;n--)t=e(t,this[n],n,this);return t},filter:function(e,t){for(var n,i=0,o=[],r=this.length,a=t||window;i=0;if(a)for(n=e.split(\".\"),i=\"\";n.length>1;){if(i+=n.shift(),o=Se.getter(i,!0)(r),o instanceof X)return o.set(n.join(\".\"),t),a;i+=\".\"}return Se.setter(e)(r,t),a},set:function(e,t){var n=this,i=!1,o=e.indexOf(\".\")>=0,r=Se.getter(e,!0)(n);return r!==t&&(r instanceof De&&this._handlers[e]&&(this._handlers[e].get&&r.unbind(He,this._handlers[e].get),r.unbind(Be,this._handlers[e].change)),i=n.trigger(\"set\",{field:e,value:t}),i||(o||(t=n.wrap(t,e,function(){return n})),(!n._set(e,t)||e.indexOf(\"(\")>=0||e.indexOf(\"[\")>=0)&&n.trigger(Be,{field:e}))),i},parent:Ce,wrap:function(e,t,i){var o,r,a,s,l=this,d=tt.call(e);return null==e||\"[object Object]\"!==d&&\"[object Array]\"!==d||(a=e instanceof rt,s=e instanceof ce,\"[object Object]\"!==d||s||a?(\"[object Array]\"===d||a||s)&&(a||s||(e=new rt(e)),r=n(l,Be,t,!1),e.bind(Be,r),l._handlers[t]={change:r}):(e instanceof X||(e=new X(e)),o=n(l,He,t,!0),e.bind(He,o),r=n(l,Be,t,!0),e.bind(Be,r),l._handlers[t]={get:o,change:r}),e.parent=i),e}}),Z={number:function(e){return typeof e===Ae&&\"null\"===e.toLowerCase()?null:Se.parseFloat(e)},date:function(e){return typeof e===Ae&&\"null\"===e.toLowerCase()?null:Se.parseDate(e)},\"boolean\":function(e){return typeof e===Ae?\"null\"===e.toLowerCase()?null:\"true\"===e.toLowerCase():null!=e?!!e:e},string:function(e){return typeof e===Ae&&\"null\"===e.toLowerCase()?null:null!=e?e+\"\":e},\"default\":function(e){return e}},J={string:\"\",number:0,date:new Date,\"boolean\":!1,\"default\":\"\"},ee=X.extend({init:function(n){var i,o,r=this;if((!n||e.isEmptyObject(n))&&(n=e.extend({},r.defaults,n),r._initializers))for(i=0;i0&&(u._initializers=f),i=e.extend(u),i.define=function(e){return ee.define(i,e)},u.fields&&(i.fields=u.fields,i.idField=u.idField),i},te={selector:function(e){return Te(e)?e:Ge(e)},compare:function(e){var t=this.selector(e);return function(e,n){return e=t(e),n=t(n),null==e&&null==n?0:null==e?-1:null==n?1:e.localeCompare?e.localeCompare(n):e>n?1:eo?1:-1}},desc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),o=t(n);return i&&i.getTime&&o&&o.getTime&&(i=i.getTime(),o=o.getTime()),i===o?e.__position-n.__position:null==i?1:null==o?-1:o.localeCompare?o.localeCompare(i):i=0?\"\\\\\"+o:o}n=!1}return t+\"$/\"}return{quote:function(t){return t&&t.getTime?\"new Date(\"+t.getTime()+\")\":e(t)},eq:function(e,t,i,o){return n(\"==\",e,t,i,o)},neq:function(e,t,i,o){return n(\"!=\",e,t,i,o)},gt:function(e,t,i){return n(\">\",e,t,i)},gte:function(e,t,i){return n(\">=\",e,t,i)},lt:function(e,t,i){return n(\"<\",e,t,i)},lte:function(e,t,i){return n(\"<=\",e,t,i)},startswith:t(function(e,t){return e+\".lastIndexOf(\"+t+\", 0) == 0\"}),doesnotstartwith:t(function(e,t){return e+\".lastIndexOf(\"+t+\", 0) == -1\"}),endswith:t(function(e,t){var n=t?t.length-2:0;return e+\".indexOf(\"+t+\", \"+e+\".length - \"+n+\") >= 0\"}),doesnotendwith:t(function(e,t){var n=t?t.length-2:0;return e+\".indexOf(\"+t+\", \"+e+\".length - \"+n+\") < 0\"}),contains:t(function(e,t){return e+\".indexOf(\"+t+\") >= 0\"}),doesnotcontain:t(function(e,t){return e+\".indexOf(\"+t+\") == -1\"}),matches:t(function(e,t){return t=t.substring(1,t.length-1),i(t)+\".test(\"+e+\")\"}),doesnotmatch:t(function(e,t){return t=t.substring(1,t.length-1),\"!\"+i(t)+\".test(\"+e+\")\"}),isempty:function(e){return e+\" === ''\"},isnotempty:function(e){return e+\" !== ''\"},isnull:function(e){return\"(\"+e+\" == null)\"},isnotnull:function(e){return\"(\"+e+\" != null)\"},isnullorempty:function(e){return\"(\"+e+\" === null) || (\"+e+\" === '')\"},isnotnullorempty:function(e){return\"(\"+e+\" !== null) && (\"+e+\" !== '')\"}}}(),a.filterExpr=function(e){var n,i,o,r,s,l,d=[],c={and:\" && \",or:\" || \"},u=[],h=[],p=e.filters;for(n=0,i=p.length;n\":\"gt\",isgreaterthan:\"gt\",greaterthan:\"gt\",greater:\"gt\",\">=\":\"gte\",isgreaterthanorequalto:\"gte\",greaterthanequal:\"gte\",ge:\"gte\",notsubstringof:\"doesnotcontain\",isnull:\"isnull\",isempty:\"isempty\",isnotempty:\"isnotempty\"},a.normalizeFilter=c,a.compareFilters=f,a.prototype={toArray:function(){return this.data},range:function(e,t){return new a(this.data.slice(e,e+t))},skip:function(e){return new a(this.data.slice(e))},take:function(e){return new a(this.data.slice(0,e))},select:function(e){return new a(Y(this.data,e))},order:function(e,t,n){var i={dir:t};return e&&(e.compare?i.compare=e.compare:i.field=e),new a(n?this.data.sort(te.create(i)):this.data.slice(0).sort(te.create(i)))},orderBy:function(e,t){return this.order(e,\"asc\",t)},orderByDescending:function(e,t){return this.order(e,\"desc\",t)},sort:function(e,t,n,i){var o,r,a=s(e,t),l=[];if(n=n||te,a.length){for(o=0,r=a.length;o0&&(i=e[0],r=n&&n.groupPaging?new a(t).groupAllData(i,t).select(function(o){var r=new a(t).filter([{field:o.field,operator:\"eq\",value:o.value,ignoreCase:!1}]),s=e.length>1?new a(o.items).group(e.slice(1),r.toArray(),n).toArray():o.items;return{field:o.field,value:o.value,hasSubgroups:e.length>1,items:s,aggregates:r.aggregate(i.aggregates),uid:Se.guid(),itemCount:s.length,subgroupCount:s.length}}):r.groupBy(i).select(function(n){var o=new a(t).filter([{field:n.field,operator:\"eq\",value:n.value,ignoreCase:!1}]);return{field:n.field,value:n.value,items:e.length>1?new a(n.items).group(e.slice(1),o.toArray()).toArray():n.items,hasSubgroups:e.length>1,aggregates:o.aggregate(i.aggregates)}})),r},groupBy:function(e){var t,n,i,o,r,s,l,d,c,u,h=this;if(be(e)||!this.data.length)return new a([]);for(t=e.field,n=e.skipItemSorting?this.data:this._sortForGrouping(t,e.dir||\"asc\"),i=Se.accessor(t),r=i.get(n[0],t),s={field:t,value:r,items:[]},u=[s],d=0,c=n.length;di&&(k(i)||y(i))&&(e=i),e}},a.normalizeGroup=g,a.normalizeSort=s,a.process=function(e,n,i){var o,r,l,d,c,u,h,p,f,m,b,w;return n=n||{},o=n.group,r=_(g(o||[])),l=new a(e),d=v(o||[]),c=s(n.sort||[]),u=r?c:d.concat(c),f=n.filterCallback,m=n.filter,b=n.skip,w=n.take,u&&i&&(l=l.sort(u,t,t,i)),m&&(l=l.filter(m),f&&(l=f(l)),p=l.toArray().length),u&&(i||(l=l.sort(u)),o&&(e=l.toArray())),r?(l=l.group(o,e,n),b===t||w===t||n.groupPaging||(l=new a(R(l.toArray())).range(b,w),h=Y(d,function(e){return ge({},e,{skipItemSorting:!0})}),l=l.group(h,e,n))):(b!==t&&w!==t&&(l=l.range(b,w)),!o||be(o)&&0===o.length||(l=l.group(o,e,n))),{total:p,data:l.toArray()}},ae=Ie.extend({init:function(e){this.data=e.data},read:function(e){e.success(this.data)},update:function(e){e.success(e.data)},create:function(e){e.success(e.data)},destroy:function(e){e.success(e.data)}}),se=Ie.extend({init:function(e){var t,n=this;e=n.options=ge({},n.options,e),xe(Ue,function(t,n){typeof e[n]===Ae&&(e[n]={url:e[n]})}),n.cache=e.cache?le.create(e.cache):{find:Ce,add:Ce},t=e.parameterMap,e.submit&&(n.submit=e.submit),Te(e.push)&&(n.push=e.push),n.push||(n.push=je),n.parameterMap=Te(t)?t:function(e){var n={};return xe(e,function(e,i){e in t&&(e=t[e],_e(e)&&(i=e.value(i),e=e.key)),n[e]=i}),n}},options:{parameterMap:je},create:function(e){return ye(this.setup(e,Me))},read:function(n){var i,o,r,a=this,s=a.cache;n=a.setup(n,Fe),i=n.success||Ce,o=n.error||Ce,r=s.find(n.data),r!==t?i(r):(n.success=function(e){s.add(n.data,e),i(e)},e.ajax(n))},update:function(e){return ye(this.setup(e,Pe))},destroy:function(e){return ye(this.setup(e,ze))},setup:function(e,t){e=e||{};var n,i=this,o=i.options[t],r=Te(o.data)?o.data(e.data):o.data;return e=ge(!0,{},o,e),n=ge(!0,{},r,e.data),e.data=i.parameterMap(n,t),Te(e.url)&&(e.url=e.url(n)),e}}),le=Ie.extend({init:function(){this._store={}},add:function(e,n){e!==t&&(this._store[qe(e)]=n)},find:function(e){return this._store[qe(e)]},clear:function(){this._store={}},remove:function(e){delete this._store[qe(e)]}}),le.create=function(e){var t={inmemory:function(){return new le}};return _e(e)&&Te(e.find)?e:e===!0?new le:t[e]()},de=Ie.extend({init:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,p,f,m=this;e=e||{};for(t in e)n=e[t],m[t]=typeof n===Ae?Ge(n):n;o=e.modelBase||ee,_e(m.model)&&(m.model=i=o.define(m.model)),r=ve(m.data,m),m._dataAccessFunction=r,m.model&&(a=ve(m.groups,m),s=ve(m.serialize,m),l={},d={},c={},u={},h=!1,i=m.model,i.fields&&(xe(i.fields,function(e,t){var n;p=e,_e(t)&&t.field?p=t.field:typeof t===Ae&&(p=t),_e(t)&&t.from&&(n=t.from),h=h||n&&n!==e||p!==e,f=n||p,d[e]=f.indexOf(\".\")!==-1?Ge(f,!0):Ge(f),c[e]=Ge(e),l[n||p]=e,u[e]=n||p}),!e.serialize&&h&&(m.serialize=D(s,i,C,c,l,u))),m._dataAccessFunction=r,m._wrapDataAccessBase=I(i,S,d,l,u),m.data=D(r,i,S,d,l,u),m.groups=D(a,i,T,d,l,u))},errors:function(e){return e?e.errors:null},parse:je,data:je,total:function(e){return e.length},groups:je,aggregates:function(){return{}},serialize:function(e){return e}}),ce=De.extend({init:function(e){var n,i,o,r=this;e&&(i=e.data),e=r.options=ge({},r.options,e),r._map={},r._prefetch={},r._data=[],r._pristineData=[],r._ranges=[],r._view=[],r._pristineTotal=0,r._destroyed=[],r._pageSize=e.pageSize,r._page=e.page||(e.pageSize?1:t),r._sort=s(e.sort),r._sortFields=l(e.sort),r._filter=c(e.filter),r._group=g(e.group),r._aggregate=e.aggregate,r._total=e.total,r._groupPaging=e.groupPaging,r._groupPaging&&(r._groupsState={}),r._shouldDetachObservableParents=!0,De.fn.init.call(r),r.transport=ue.create(e,i,r),Te(r.transport.push)&&r.transport.push({pushCreate:ve(r._pushCreate,r),pushUpdate:ve(r._pushUpdate,r),pushDestroy:ve(r._pushDestroy,r)}),null!=e.offlineStorage&&(\"string\"==typeof e.offlineStorage?(o=e.offlineStorage,r._storage={getItem:function(){return JSON.parse(localStorage.getItem(o))},setItem:function(e){localStorage.setItem(o,qe(r.reader.serialize(e)))}}):r._storage=e.offlineStorage),r.reader=new Se.data.readers[e.schema.type||\"json\"](e.schema),n=r.reader.model||{},r._detachObservableParents(),r._data=r._observe(r._data),r._online=!0,r.bind([\"push\",Oe,Be,Ne,Le,We,Ve],e)},options:{data:null,schema:{modelBase:ee},offlineStorage:null,serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,batch:!1,inPlaceSort:!1},clone:function(){return this},online:function(n){return n!==t?this._online!=n&&(this._online=n,n)?this.sync():e.Deferred().resolve().promise():this._online},offlineData:function(e){return null==this.options.offlineStorage?null:e!==t?this._storage.setItem(e):this._storage.getItem()||[]},_isServerGrouped:function(){var e=this.group()||[];return this.options.serverGrouping&&e.length},_isServerGroupPaged:function(){return this._isServerGrouped()&&this._groupPaging},_isGroupPaged:function(){var e=this._group||[];return this._groupPaging&&e.length},_pushCreate:function(e){this._push(e,\"pushCreate\")},_pushUpdate:function(e){this._push(e,\"pushUpdate\")},_pushDestroy:function(e){this._push(e,\"pushDestroy\")},_push:function(e,t){var n=this._readData(e);n||(n=e),this[t](n)},_flatData:function(e,t){if(e){if(this._isServerGrouped())return M(e);if(!t)for(var n=0;n=i?--e:e,0,t.splice(i,1)[0]),e++;break}})}finally{this.options.autoSync=i}return n},remove:function(e){var t,n=this,i=n._isServerGrouped();return this._eachItem(n._data,function(o){if(t=H(o,e),t&&i)return t.isNew&&t.isNew()||n._destroyed.push(t),!0}),this._removeModelFromRanges(e),e},destroyed:function(){return this._destroyed},created:function(){var e,t,n=[],i=this._flatData(this._data,this.options.useRanges);for(e=0,t=i.length;e-1)return t(i,n),!0})},_removePristineForModel:function(e){this._executeOnPristineForModel(e,function(e,t){t.splice(e,1)})},_readData:function(e){var t=this._isServerGrouped()?this.reader.groups:this.reader.data;return t.call(this.reader,e)},_eachPristineItem:function(e){var t=this,n=t.options,i=t._getCurrentRangeSpan();t._eachItem(t._pristineData,e),n.serverPaging&&n.useRanges&&xe(i,function(n,i){t._eachItem(i.pristineData,e)})},_eachItem:function(e,t){e&&e.length&&(this._isServerGrouped()?P(e,t):t(e))},_pristineForModel:function(e){var t,n,i=function(i){if(n=O(i,e),n>-1)return t=i[n],!0};return this._eachPristineItem(i),t},_cancelModel:function(e){var t=this,n=this._pristineForModel(e);this._eachItem(this._data,function(i){var o=N(i,e);o>=0&&(!n||e.isNew()&&!n.__state__?(t._modelCanceled(e),i.splice(o,1),t._removeModelFromRanges(e)):(i[o].accept(n),\"update\"==n.__state__&&(i[o].dirty=!0)))})},_modelCanceled:Ce,_submit:function(t,n){var i=this;i.trigger(Ne,{type:\"submit\"}),i.trigger(Ve),i.transport.submit(ge({success:function(n,i){var o=e.grep(t,function(e){return e.type==i})[0];o&&o.resolve({response:n,models:o.models,type:i})},error:function(e,n,o){for(var r=0;rp._total&&(p._pageSize=p._total,p.options.pageSize&&p.options.pageSize>p._pageSize&&(p._pageSize=p.options.pageSize)),p._aggregate&&f.serverAggregates&&(p._aggregateResult=p._readAggregates(e)),e=p._readData(e),p._destroyed=[]}else{for(e=p._readData(e),n=[],o={},r=p.reader.model,a=r?r.idField:\"id\",s=0;se.data.length&&(t.skip=e.data.length-t.take),o.view(i.range(t.skip,t.take).toArray())):(o.view(e.data),o._updateOuterRangesLength()):o.view(e.data)},_clearEmptyGroups:function(e){var t,n;for(t=e.length-1;t>=0;t--)n=e[t],n.hasSubgroups?this._clearEmptyGroups(n.items):n.items&&!n.items.length&&Xe.apply(n.parent(),[t,1])},_queryProcess:function(e,t){return this.options.inPlaceSort?a.process(e,t,this.options.inPlaceSort):a.process(e,t)},_mergeState:function(n){var i=this;return n!==t&&(i._pageSize=n.pageSize,i._page=n.page,i._sort=n.sort,i._filter=n.filter,i._group=n.group,i._aggregate=n.aggregate,i._skip=i._currentRangeStart=n.skip,i._take=n.take,i._skip===t&&(i._skip=i._currentRangeStart=i.skip(),n.skip=i.skip()),i._take===t&&i._pageSize!==t&&(i._take=i._pageSize,n.take=i._take),n.sort&&(i._sort=n.sort=s(n.sort),i._sortFields=l(n.sort)),n.filter&&(i._filter=n.filter=i.options.accentFoldingFiltering&&!e.isEmptyObject(n.filter)?e.extend({},c(n.filter),{accentFoldingFiltering:i.options.accentFoldingFiltering}):c(n.filter)),n.group&&(i._group=n.group=g(n.group)),n.aggregate&&(i._aggregate=n.aggregate=m(n.aggregate))),n},query:function(n){var i,o,r,a=this.options.serverSorting||this.options.serverPaging||this.options.serverFiltering||this.options.serverGrouping||this.options.serverAggregates;return a||(this._data===t||0===this._data.length)&&!this._destroyed.length?(this.options.endless&&(o=n.pageSize-this.pageSize(),o>0?(o=this.pageSize(),n.page=n.pageSize/o,n.pageSize=o):(n.page=1,this.options.endless=!1)),this.read(this._mergeState(n))):(r=this.trigger(Ne,{type:\"read\"}),r||(this.trigger(Ve),n&&(n.groupPaging=this._groupPaging),i=this._queryProcess(this._data,this._mergeState(n)),this._setFilterTotal(i.total,!0),this._aggregateResult=this._calculateAggregates(i.dataToAggregate||this._data,n),this._setView(i,n),this.trigger(We,{type:\"read\"}),this.trigger(Be,{items:i.data,action:n?n.action:\"\"})),e.Deferred().resolve(r).promise())},_hasExpandedSubGroups:function(e){var t,n=!1,i=e.items?e.items.length:0;if(!e.hasSubgroups)return!1;for(t=0;t=i.take));u++)if(p._getGroupByUid(a.uid)||p._groupsFlat.push(a),p._groupsState[a.uid]){if(p._isServerGroupPaged()){if(p._fetchGroupItems(a,i,o,r))return p._fetchingGroupItems=!0,t;if(d=(a.subgroupCount||a.itemCount)+1,c=i.skip-i.skipped,!p._hasExpandedSubGroups(a)&&c>d){i.skipped+=d;continue}}if(i.includeParents&&i.skipped0?n.push(a):a.excludeHeader=!1;else{for(s=[],l=a.items.length,h=0;h=i.take)break;s.push(a.items[h]),i.taken++}s.length||i.taken>0?(a.currentItems=s,n.push(a)):a.excludeHeader=!1}}else{if(i.skippedd)return s;return s},_fetchGroupItems:function(e,n,i,o){var r,a,s,l,d=this,c=e.hasSubgroups?e.subgroupCount:e.itemCount,u=n.take,h=n.skipped,p=d.take();return n.includeParents&&(h=c)&&(a=e.items[r],s=e.items[Math.min(r+u,c-1)],a.notFetched?(d.getGroupItems(e,n,i,o,$e.max($e.floor(r/p),0)*p),!0):s.notFetched?(d.getGroupItems(e,n,i,o,$e.max($e.floor((r+p)/p),0)*p),!0):t))},getGroupItems:function(e,t,n,i,o){var r,a,s,l,d=this;e.items||(e.items=[]),r=d.take(),a=this._composeItemsFilter(e,n),s={page:$e.floor((o||0)/(r||1))||1,pageSize:r,skip:o,take:r,filter:a,aggregate:d._aggregate,sort:d._sort},l=d.findSubgroups(e),l&&l.length&&(s.group=l,s.groupPaging=!0),clearTimeout(d._timeout),d._timeout=setTimeout(function(){d._queueRequest(s,function(){d.trigger(Ne,{type:\"read\"})?d._dequeueRequest():d.transport.read({data:s,success:d._groupItemsSuccessHandler(e,t.skip,d.take(),i,o),error:function(){var e=Je.call(arguments);d.error.apply(d,e)}})})},100)},_groupItemsSuccessHandler:function(e,t,n,i,o){var r,a=this,s=a._timeStamp();return i=Te(i)?i:Ce,r=a.options.schema&&a.options.schema.total?a.options.schema.total:\"Total\",function(l){var d,c,u,h=ee.define(a.options.schema.model);for(a._dequeueRequest(),a.trigger(We,{response:l,type:\"read\"}),c=Te(r)?r(l):l[r],l=a.reader.parse(l),e.hasSubgroups?(d=a.reader.groups(l),e.subgroupCount=c):(d=a.reader.data(l),d=d.map(function(e){return new h(e)})),e.items.omitChangeEvent=!0,u=0;u=o&&u=a._currentRequestTimeStamp||!a._skipRequestsInProgress)&&a.trigger(Be,{})}},findSubgroups:function(e){var t=this._group.map(function(e){return e.field}).indexOf(e.field);return this._group.slice(t+1,this._group.length)},_composeItemsFilter:function(e,t){var n,i=this.filter()||{logic:\"and\",filters:[]};if(i=ge(!0,{},i),i.filters.push({field:e.field,operator:\"eq\",value:e.value}),t)for(n=0;n1;)a=r.splice(0,1)[0],t=t[a].items;t[r[0]]=d._cloneGroup(e);break}}},_containsSubGroup:function(e,t,n){var i,o,r=this,a=e.items.length;if(e.hasSubgroups&&a)for(o=0;ot.totalPages()))return t._skip=t._currentRangeStart=n*t.take(),n+=1,e.page=n,t._query(e),n},prev:function(e){var t=this,n=t.page();if(e=e||{},n&&1!==n)return t._skip=t._currentRangeStart=t._skip-t.take(),n-=1,e.page=n,t._query(e),n},page:function(e){var n,i,o=this;return e!==t?(e=$e.max($e.min($e.max(e,1),o.totalPages()),1),i=o.take(),o._isGroupPaged()?(e-=1,o.range(e*i,i,null,\"page\"),t):(o._query(o._pageableQueryOptions({page:e})),t)):(n=o.skip(),n!==t?$e.round((n||0)/(o.take()||1))+1:t)},pageSize:function(e){var n=this;return e!==t?(n._query(n._pageableQueryOptions({pageSize:e,page:1})),t):n.take()},sort:function(e){var n=this;return e!==t?(n.trigger(\"sort\"),n._query({sort:e}),t):n._sort},filter:function(e){var n=this;return e===t?n._filter:(n.trigger(\"reset\"),n._query({filter:e,page:1}),t)},group:function(e){var n=this,i={group:e};return n._groupPaging&&(e===t||e&&e.length||(n._ranges=[]),i.page=1),e!==t?(n._query(i),t):n._group},getGroupsFlat:function(e){var t,n,i,o=[];for(t=0,n=e.length;t=o;i--)n=r[i],t={value:e.get?e.get(n.field):e[n.field],field:n.field,items:t?[t]:[e],hasSubgroups:!!t,aggregates:this._emptyAggregates(n.aggregates)};return t},totalPages:function(){var e=this,t=e.pageSize()||e.total(),n=e._isGroupPaged()?e.groupsTotal(!0):e.total();return $e.ceil((n||0)/t)},inRange:function(e,t){var n=this,i=$e.min(e+t,n.total());return!n.options.serverPaging&&n._data.length>0||n._findRange(e,i).length>0},\nlastRange:function(){var e=this._ranges;return e[e.length-1]||{start:0,end:0,data:[]}},firstItemUid:function(){var e=this._ranges;return e.length&&e[0].data.length&&e[0].data[0].uid},enableRequestsInProgress:function(){this._skipRequestsInProgress=!1},_timeStamp:function(){return(new Date).getTime()},range:function(e,n,i,o){var r,a,s,l,d;return this._currentRequestTimeStamp=this._timeStamp(),this._skipRequestsInProgress=!0,r=this._isGroupPaged()?this.groupsTotal(!0):this.total(),\"expandGroup\"!==o&&\"collapseGroup\"!==o||this._updateOuterRangesLength(),e=$e.min(e||0,r),i=Te(i)?i:Ce,a=this,s=$e.max($e.floor(e/n),0)*n,l=$e.min(s+n,r),d=a._findRange(e,$e.min(e+n,r),i),!d.length&&0!==r||a._fetchingGroupItems?(a._isGroupPaged()&&(a._originalPageSkip=s,a._originalSize=l,s=$e.max($e.floor(a._adjustPageSkip(e,n)/n),0)*n,l=$e.min(s+n,r)),n===t||a._fetchingGroupItems||(a._isGroupPaged()&&!a._groupRangeExists(s,n)||!a._rangeExists(s,l)?a.prefetch(s,n,function(){e>s&&l=n)return[];if(e>o.outerEnd){S.skipped+=o.outerEnd-(g||0),g=o.outerEnd;continue}if(t!==g&&g!=o.outerStart&&(S.skipped+=o.outerStart-g),S.skipped>S.skip)return[];for(t===g&&e>0&&o.start>0&&(S.skipped=o.outerStart),a=r;;){if(this._findGroupedRange(o.data,y,S,null,i),_=w._calculateGroupsTotal(y,!0,\"currentItems\"),_>=S.take)return y;if(w._fetchingGroupItems)return[];if(a++,!k[a]||k[a].outerStart!==o.outerEnd)break;o=k[a]}}else if(e>=o[D]&&e<=o[I]){for(f=0,a=r;a=o.start&&(c=o.data,u=o.end,C||(x.inPlaceSort?h=w._queryProcess(o.data,{filter:w.filter()}):(b=v(w.group()||[]).concat(s(w.sort()||[])),h=w._queryProcess(o.data,{sort:b,filter:w.filter()})),p=c=h.data,h.total!==t&&(u=h.total)),l=0,e+f>o.start&&(l=e+f-o.start),d=p.length,u>n&&(d-=u-n),f+=d-l,y=w._mergeGroups(y,c,l,d),n<=o.end&&f==n-e))return y;break}g=o.outerEnd}return[]},_getRangesMismatch:function(e){for(var t,n=this,i=n._ranges,o=0,r=0;;){if(t=i[r],!t||t.outerStart>e)break;t.outerEnd!=t.end&&(o=t.outerEnd-t.end),r++}return o},_mergeGroups:function(e,t,n,i){if(this._isServerGrouped()){var o,r=t.toJSON();return e.length&&(o=e[e.length-1]),E(o,r,n,i),e.concat(r)}return e.concat(t.slice(n,i))},_processRangeData:function(e,n,i,o,r,a){var s,l,d,c,u=this;u._pending=t,u._skip=n>u.skip()&&!u._omitPrefetch?$e.min(r,(u.totalPages()-1)*u.take()):o,u._currentRangeStart=n,u._take=i,s=u.options.serverPaging,l=u.options.serverSorting,d=u.options.serverFiltering,c=u.options.serverAggregates;try{u.options.serverPaging=!0,u._isServerGrouped()||u.group()&&u.group().length||(u.options.serverSorting=!0),u.options.serverFiltering=!0,u.options.serverPaging=!0,u.options.serverAggregates=!0,s&&(u._detachObservableParents(),u._data=e=u._observe(e)),u._process(e,a)}finally{u.options.serverPaging=s,u.options.serverSorting=l,u.options.serverFiltering=d,u.options.serverAggregates=c}},skip:function(){var e=this;return e._skip===t?e._page!==t?(e._page-1)*(e.take()||1):t:e._skip},currentRangeStart:function(){return this._currentRangeStart||0},take:function(){return this._take||this._pageSize},_prefetchSuccessHandler:function(e,t,n,i){var o=this,r=o._timeStamp();return function(a){var s,l,d,c=!1,u={start:e,end:t,data:[],timestamp:o._timeStamp()};if(o._dequeueRequest(),o.trigger(We,{response:a,type:\"read\"}),a=o.reader.parse(a),d=o._readData(a),d.length){for(s=0,l=o._ranges.length;s=o._currentRequestTimeStamp||!o._skipRequestsInProgress)&&(n&&d.length?n():o.trigger(Be,{}))}},prefetch:function(e,n,i){var o=this,r=$e.min(e+n,o.total()),a={take:n,skip:e,page:e/n+1,pageSize:n,sort:o._sort,filter:o._filter,group:o._group,aggregate:o._aggregate};return o._isGroupPaged()&&!o._isServerGrouped()&&o._groupRangeExists(e,r)?(i&&i(),t):(o._isServerGroupPaged()&&!o._groupRangeExists(e,r)||!o._rangeExists(e,r)?(clearTimeout(o._timeout),o._timeout=setTimeout(function(){o._queueRequest(a,function(){o.trigger(Ne,{type:\"read\"})?o._dequeueRequest():(o._omitPrefetch&&o.trigger(Ve),o.transport.read({data:o._params(a),success:o._prefetchSuccessHandler(e,r,i),error:function(){var e=Je.call(arguments);o.error.apply(o,e)}}))})},100)):i&&i(),t)},_multiplePrefetch:function(e,t,n){var i=this,o=$e.min(e+t,i.total()),r={take:t,skip:e,page:e/t+1,pageSize:t,sort:i._sort,filter:i._filter,group:i._group,aggregate:i._aggregate};i._rangeExists(e,o)?n&&n():i.trigger(Ne,{type:\"read\"})||i.transport.read({data:i._params(r),success:i._prefetchSuccessHandler(e,o,n,!0)})},_adjustPageSkip:function(e,t){var n,i,o=this,r=o._getPrevRange(e),a=o.total();if(r){if(i=o._getRangesMismatch(e),!i)return e;e-=i}if(n=$e.max($e.floor(e/t),0)*t,n>a)for(;;)if(n-=t,n=e)return o[t]},_getPrevRange:function(e){var t,n,i=this,o=i._ranges,r=o.length;for(t=r-1;t>=0;t--)if(o[t].outerStart<=e){n=o[t];break}return n},_rangeExists:function(e,t){var n,i,o=this,r=o._ranges;for(n=0,i=r.length;n=t)return!0;return!1},_groupRangeExists:function(e,t){var n,i,o,r=this,a=r._ranges,s=0,l=r.groupsTotal(!0);for(t>l&&!r._isServerGrouped()&&(t=l),n=0,i=a.length;n=e?s+=o.outerEnd-e:o.outerStart<=t&&o.outerEnd>=t&&(s+=t-o.outerStart);return s>=t-e},_getCurrentRangeSpan:function(){var e,t,n=this,i=n._ranges,o=n.currentRangeStart(),r=o+(n.take()||0),a=[],s=i.length;for(t=0;t=o||e.start>=o&&e.start<=r)&&a.push(e);return a},_removeModelFromRanges:function(e){var t,n,i,o=this;for(n=0,i=this._ranges.length;n=e){o._getByUid(t.uid,n.data)||(o._isServerGrouped()?n.data.splice(e,0,o._wrapInEmptyGroup(t)):n.data.splice(e,0,t));break}o._updateRangesLength()},_updateRangesLength:function(){var e,t,n,i=this,o=i._ranges||[],r=o.length,a=!1,s=0,l=0;for(n=0;n0?this.filter(this._hierarchicalFilter):(this.options.filter=this._hierarchicalFilter,this._filter=c(this.options.filter),this._hierarchicalFilter=null)),t},remove:function(e){var t,n=e.parentNode(),i=this;return n&&n._initChildren&&(i=n.children),t=ce.fn.remove.call(i,e),n&&!i.data().length&&(n.hasChildren=!1),t},success:$(\"success\"),data:$(\"data\"),insert:function(e,t){var n=this.parent();return n&&n._initChildren&&(n.hasChildren=!0,n._initChildren()),ce.fn.insert.call(this,e,t)},filter:function(e){return e===t?this._filter:(!this.options.serverFiltering&&this._markHierarchicalQuery(e)&&(e={logic:\"or\",filters:[e,{field:\"_matchFilter\",operator:\"equals\",value:!0}]}),this.trigger(\"reset\"),this._query({filter:e,page:1}),t)},_markHierarchicalQuery:function(t){var n,i,o,r,s,l=this.options.accentFoldingFiltering;return t=l?e.extend({},c(t),{accentFoldingFiltering:l}):c(t),t&&0!==t.filters.length?(n=a.filterExpr(t),o=n.fields,r=n.operators,i=s=Function(\"d, __f, __o\",\"return \"+n.expression),(o.length||r.length)&&(s=function(e){return i(e,o,r)}),this._updateHierarchicalFilter(s),!0):(this._updateHierarchicalFilter(function(){return!0}),!1)},_updateHierarchicalFilter:function(e){var t,n,i=this._data,o=!1;for(n=0;n=this.total()?(this.trigger(\"endreached\",{index:e}),null):this.useRanges?this.useRanges?((e=this.skip+n)&&(i=this.range(Math.floor(e/n)*n)),e===this.prefetchThreshold&&this._prefetch(),e===this.midPageThreshold?this.range(this.nextMidRange,!0):e===this.nextPageThreshold?this.range(this.nextFullRange):e===this.pullBackThreshold&&this.range(this.offset===this.skip?this.previousMidRange:this.previousFullRange),i?this.dataSource.at(e-this.dataOffset):(this.trigger(\"endreached\",{index:e}),null)):t:this.dataSource.view()[e]},indexOf:function(e){return this.dataSource.data().indexOf(e)+this.dataOffset},total:function(){return parseInt(this.dataSource.total(),10)},next:function(){var e=this,t=e.pageSize,n=e.skip-e.viewSize+t,i=$e.max($e.floor(n/t),0)*t;this.offset=n,this.dataSource.prefetch(i,t,function(){e._goToRange(n,!0)})},range:function(e,t){if(this.offset===e)return!0;var n=this,i=this.pageSize,o=$e.max($e.floor(e/i),0)*i,r=this.dataSource;return t&&(o+=i),r.inRange(e,i)?(this.offset=e,this._recalculate(),this._goToRange(e),!0):!this.prefetch||(r.prefetch(o,i,function(){n.offset=e,n._recalculate(),n._goToRange(e,!0)}),!1)},syncDataSource:function(){var e=this.offset;this.offset=null,this.range(e)},destroy:function(){this.unbind()},_prefetch:function(){var e=this,t=this.pageSize,n=this.skip+t,i=this.dataSource;i.inRange(n,t)||this._prefetching||!this.prefetch||(this._prefetching=!0,this.trigger(\"prefetching\",{skip:n,take:t}),i.prefetch(n,t,function(){e._prefetching=!1,e.trigger(\"prefetched\",{skip:n,take:t})}))},_goToRange:function(e,t){this.offset===e&&(this.dataOffset=e,this._expanding=t,this.dataSource.range(e,this.pageSize),this.dataSource.enableRequestsInProgress())},_reset:function(){this._syncPending=!0},_change:function(){var e=this.dataSource;this.length=this.useRanges?e.lastRange().end:e.view().length,this._syncPending&&(this._syncWithDataSource(),this._recalculate(),this._syncPending=!1,this.trigger(\"reset\",{offset:this.offset})),this.trigger(\"resize\"),this._expanding&&this.trigger(\"expand\"),delete this._expanding},_syncWithDataSource:function(){var e=this.dataSource;this._firstItemUid=e.firstItemUid(),this.dataOffset=this.offset=e.skip()||0,this.pageSize=e.pageSize(),this.useRanges=e.options.serverPaging},_recalculate:function(){var e=this.pageSize,t=this.offset,n=this.viewSize,i=Math.ceil(t/e)*e;this.skip=i,this.midPageThreshold=i+e-1,this.nextPageThreshold=i+n-1,this.prefetchThreshold=i+Math.floor(e/3*2),this.pullBackThreshold=this.offset-1,this.nextMidRange=i+e-n,this.nextFullRange=i,this.previousMidRange=t-n,this.previousFullRange=i-e}}),me=Se.Observable.extend({init:function(e,t){var n=this;Se.Observable.fn.init.call(n),this.dataSource=e,this.batchSize=t,this._total=0,this.buffer=new fe(e,3*t),this.buffer.bind({endreached:function(e){n.trigger(\"endreached\",{index:e.index})},prefetching:function(e){n.trigger(\"prefetching\",{skip:e.skip,take:e.take})},prefetched:function(e){n.trigger(\"prefetched\",{skip:e.skip,take:e.take})},reset:function(){n._total=0,n.trigger(\"reset\")},resize:function(){n._total=Math.ceil(this.length/n.batchSize),n.trigger(\"resize\",{total:n.total(),offset:this.offset})}})},syncDataSource:function(){this.buffer.syncDataSource()},at:function(e){var t,n,i=this.buffer,o=e*this.batchSize,r=this.batchSize,a=[];for(i.offset>o&&i.at(i.offset-1),n=0;n0&&(n=n.get(o.substring(0,i))),e.start(n),r=n!==e.source?r.call(n,e.source):r.call(n),e.stop(n)),n&&n!==e.source&&(e.currentSource=n,n.unbind(O,e._change).bind(O,e._change)),e.stop(e.source),r},set:function(e){var t=this.currentSource||this.source,n=C.getter(this.path)(t);\"function\"==typeof n?t!==this.source?n.call(t,this.source,e):n.call(t,e):t.set(this.path,e)},destroy:function(){this.observable&&(this.source.unbind(O,this._change),this.currentSource&&this.currentSource.unbind(O,this._change)),this.unbind()}}),m=f.extend({get:function(){var e,t=this.source,n=this.path,i=0;for(e=t.get(n);!e&&t;)t=this.parents[++i],t instanceof T&&(e=t.get(n));return R(e,t)}}),g=f.extend({init:function(e,t,n){var i=this;f.fn.init.call(i,e,t),i.template=n},render:function(e){var t;return this.start(this.source),t=C.render(this.template,e),this.stop(this.source),t}}),v=E.extend({init:function(e,t,n){this.element=e,this.bindings=t,this.options=n},bind:function(e,t){var n=this;e=t?e[t]:e,e.bind(O,function(e){n.refresh(t||e)}),n.refresh(t)},destroy:function(){}}),_=v.extend({dataType:function(){var e=this.element.getAttribute(\"data-\"+C.ns+\"type\")||this.element.type||\"text\";return e.toLowerCase()},parsedValue:function(){return this._parseValue(this.element.value,this.dataType())},_parseValue:function(e,t){return\"date\"==t?e=C.parseDate(e,\"yyyy-MM-dd\"):\"datetime-local\"==t?e=C.parseDate(e,[\"yyyy-MM-ddTHH:mm:ss\",\"yyyy-MM-ddTHH:mm\"]):\"number\"==t?e=C.parseFloat(e):\"boolean\"==t&&(e=e.toLowerCase(),e=null!==C.parseFloat(e)?!!C.parseFloat(e):\"true\"===e.toLowerCase()),e}}),A.attr=v.extend({refresh:function(e){this.element.setAttribute(e,this.bindings.attr[e].get())}}),A.css=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n),this.classes={}},refresh:function(t){var n=e(this.element),i=this.bindings.css[t],o=this.classes[t]=i.get();o?n.addClass(t):n.removeClass(t)}}),A.style=v.extend({refresh:function(e){this.element.style[e]=this.bindings.style[e].get()||\"\"}}),A.enabled=v.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute(\"disabled\"):this.element.setAttribute(\"disabled\",\"disabled\")}}),A.readonly=v.extend({refresh:function(){this.bindings.readonly.get()?this.element.setAttribute(\"readonly\",\"readonly\"):this.element.removeAttribute(\"readonly\")}}),A.disabled=v.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute(\"disabled\",\"disabled\"):this.element.removeAttribute(\"disabled\")}}),A.events=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n),this.handlers={}},refresh:function(t){var n=e(this.element),i=this.bindings.events[t],o=this.handlers[t];o&&n.off(t,o),o=this.handlers[t]=i.get(),n.on(t,i.source,o)},destroy:function(){var t,n=e(this.element);for(t in this.handlers)n.off(t,this.handlers[t])}}),A.text=v.extend({refresh:function(){var t=this.bindings.text.get(),n=this.element.getAttribute(\"data-\"+C.ns+\"format\")||\"\";null==t&&(t=\"\"),e(this.element).text(C.toString(t,n))}}),A.visible=v.extend({refresh:function(){this.element.style.display=this.bindings.visible.get()?\"\":\"none\"}}),A.invisible=v.extend({refresh:function(){this.element.style.display=this.bindings.invisible.get()?\"none\":\"\"}}),A.html=v.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),A.value=_.extend({init:function(t,n,i){_.fn.init.call(this,t,n,i),this._change=R(this.change,this),this.eventName=i.valueUpdate||O,e(this.element).on(this.eventName,this._change),this._initChange=!1},change:function(){this._initChange=this.eventName!=O,this.bindings[M].set(this.parsedValue()),this._initChange=!1},refresh:function(){var e,t;this._initChange||(e=this.bindings[M].get(),null==e&&(e=\"\"),t=this.dataType(),\"date\"==t?e=C.toString(e,\"yyyy-MM-dd\"):\"datetime-local\"==t&&(e=C.toString(e,\"yyyy-MM-ddTHH:mm:ss\")),this.element.value=e),this._initChange=!1},destroy:function(){e(this.element).off(this.eventName,this._change)}}),A.source=v.extend({init:function(e,t,n){v.fn.init.call(this,e,t,n);var i=this.bindings.source.get();i instanceof C.data.DataSource&&n.autoBind!==!1&&i.fetch()},refresh:function(e){var t=this,n=t.bindings.source.get();n instanceof D||n instanceof C.data.DataSource?(e=e||{},\"add\"==e.action?t.add(e.index,e.items):\"remove\"==e.action?t.remove(e.index,e.items):\"itemchange\"!=e.action&&t.render()):t.render()},container:function(){var e=this.element;return\"table\"==e.nodeName.toLowerCase()&&(e.tBodies[0]||e.appendChild(document.createElement(\"tbody\")),e=e.tBodies[0]),e},template:function(){var e=this.options,t=e.template,n=this.container().nodeName.toLowerCase();return t||(t=\"select\"==n?e.valueField||e.textField?C.format('',e.valueField||e.textField,e.textField||e.valueField):\"\":\"tbody\"==n?\"#:data#\":\"ul\"==n||\"ol\"==n?\"
  • #:data#
  • \":\"#:data#\",t=C.template(t)),t},add:function(t,n){var i,o,r,s,l=this.container(),d=l.cloneNode(!1),c=l.children[t];if(e(d).html(C.render(this.template(),n)),d.children.length)for(i=this.bindings.source._parents(),o=0,r=n.length;o-1?e.splice(t,1):e.push(o)}else this.bindings[z].set(o)},refresh:function(){var e,n,i=this.bindings[z].get(),o=i,r=this.dataType(),a=this.element;if(\"checkbox\"==a.type)if(o instanceof D){if(e=-1,i=this.parsedValue(),i instanceof Date){for(n=0;n=0}else a.checked=o;else\"radio\"==a.type&&(\"date\"==r?i=C.toString(i,\"yyyy-MM-dd\"):\"datetime-local\"==r&&(i=C.toString(i,\"yyyy-MM-ddTHH:mm:ss\")),a.checked=null!==i&&t!==i&&a.value===\"\"+i)},value:function(){var e=this.element,t=e.value;return\"checkbox\"==e.type&&(t=e.checked),t},destroy:function(){e(this.element).off(O,this._change)}})},A.select={source:A.source.extend({refresh:function(n){var i,o=this,r=o.bindings.source.get();r instanceof D||r instanceof C.data.DataSource?(n=n||{},\"add\"==n.action?o.add(n.index,n.items):\"remove\"==n.action?o.remove(n.index,n.items):\"itemchange\"!=n.action&&n.action!==t||(o.render(),o.bindings.value&&o.bindings.value&&(i=p(o.bindings.value.get(),e(o.element).data(\"valueField\")),null===i?o.element.selectedIndex=-1:o.element.value=i))):o.render()}}),value:_.extend({init:function(t,n,i){_.fn.init.call(this,t,n,i),this._change=R(this.change,this),e(this.element).change(this._change)},parsedValue:function(){var e,t,n,i,o=this.dataType(),r=[];for(n=0,i=this.element.options.length;n1&&(l.direction=t&&o?he[s].reverse:s),n[a[0]]=l}):T(e,function(e){var i=this.direction;i&&t&&!N.test(e)&&(this.direction=he[i].reverse),n[e]=this}),n},M&&D(S,{transition:function(t,n,i){var r,s,l,d,c=0,u=t.data(\"keys\")||[];i=D({duration:200,ease:\"ease-out\",complete:null,exclusive:\"all\"},i),l=!1,d=function(){l||(l=!0,s&&(clearTimeout(s),s=null),t.removeData(te).dequeue().css(ae,\"\").css(ae),i.complete.call(t))},i.duration=e.fx?e.fx.speeds[i.duration]||i.duration:i.duration,r=a(t,n),e.merge(u,o(r)),e.hasOwnProperty(\"uniqueSort\")?t.data(\"keys\",e.uniqueSort(u)).height():t.data(\"keys\",e.unique(u)).height(),t.css(ae,i.exclusive+\" \"+i.duration+\"ms \"+i.ease).css(ae),t.css(r).css(se),M.event&&(t.one(M.event,d),0!==i.duration&&(c=500)),s=setTimeout(d,i.duration+c),t.data(te,s),t.data(re,d)},stopQueue:function(e,t,n){var i,o=e.data(\"keys\"),r=!n&&o,a=e.data(re);return r&&(i=C.getComputedStyles(e[0],o)),a&&a(),r&&e.css(i),e.removeData(\"keys\").stop(t)}}),p=C.Class.extend({init:function(e,t){var n=this;n.element=e,n.effects=[],n.options=t,n.restore=[]},run:function(t){var n,i,o,s,l,d,c,u=this,h=t.length,p=u.element,f=u.options,m=e.Deferred(),g={},v={};for(u.effects=t,m.done(e.proxy(u,\"complete\")),p.data(\"animating\",!0),i=0;i=this.duration},timePassed:function(){return Math.min(this.duration,new Date-this.startDate)},moveTo:function(e){var t=this,n=t.movable;t.initial=n[t.axis],t.delta=e.location-t.initial,t.duration=\"number\"==typeof e.duration?e.duration:300,t.tick=t._easeProxy(e.ease),t.startDate=new Date,t.start()},_easeProxy:function(e){var t=this;return function(){t.movable.moveAxis(t.axis,e(t.timePassed(),t.initial,t.delta,t.duration))}}}),D(x,{easeOutExpo:function(e,t,n,i){return e==i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t},easeOutBack:function(e,t,n,i,o){return o=1.70158,n*((e=e/i-1)*e*((o+1)*e+o)+1)+t}}),S.Animation=y,S.Transition=x,S.createEffect=d,S.box=function(t){t=e(t);var n=t.offset();return n.width=C._outerWidth(t),n.height=C._outerHeight(t),n},S.transformOrigin=function(e,t){var n=(e.left-t.left)*t.width/(t.width-e.width),i=(e.top-t.top)*t.height/(t.height-e.height);return{x:isNaN(n)?0:n,y:isNaN(i)?0:i}},S.fillScale=function(e,t){return Math.min(e.width/t.width,e.height/t.height)},S.fitScale=function(e,t){return Math.max(e.width/t.width,e.height/t.height)}}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.view.min\",[\"kendo.core.min\",\"kendo.binder.min\",\"kendo.fx.min\"],e)}(function(){return function(e,t){function n(e){if(!e)return{};var t=e.match(F)||[];return{type:t[1],direction:t[3],reverse:\"reverse\"===t[5]}}var i=window.kendo,o=i.attr,r=i.ui,a=i.attrValue,s=i.directiveSelector,l=i.Observable,d=i.ui.Widget,c=i.roleSelector,u=\"SCRIPT\",h=\"init\",p=\"transitionStart\",f=\"transitionEnd\",m=\"show\",g=\"hide\",v=\"attach\",_=\"detach\",b=/unrecognized expression/,w=/]*>(([\\u000a\\u000d\\u2028\\u2029]|.)*)<\\/body>/i,k=\"loadStart\",y=\"loadComplete\",x=\"showStart\",C=\"sameViewRequested\",S=\"viewShow\",T=\"viewTypeDetermined\",D=\"after\",I={content:\"k-content\",view:\"k-view\",stretchedView:\"k-stretched-view\",widget:\"k-widget\",header:\"k-header\",footer:\"k-footer\"},A=i.ui.Widget.extend({init:function(t,n){var o=this;n=n||{},o.id=i.guid(),l.fn.init.call(o),this.options=e.extend({},this.options,n),o.content=t,o.options.renderOnInit&&d.fn.init.call(o,o._createElement(),n),o.options.wrapInSections&&o._renderSections(),o.tagName=n.tagName||\"div\",o.model=n.model,o._wrap=n.wrap!==!1,this._evalTemplate=n.evalTemplate||!1,this._useWithBlock=n.useWithBlock,o._fragments={},o.bind([h,m,g,p,f],n)},options:{name:\"View\",renderOnInit:!1,wrapInSections:!1,detachOnHide:!0,detachOnDestroy:!0},render:function(t){var n=this,o=!n.element;return o&&(n.element=n._createElement()),t&&e(t).append(n.element),o&&(i.bind(n.element,n.model),n.trigger(h)),t&&(n._eachFragment(v),n.trigger(m)),n.element},clone:function(){return new E(this)},triggerBeforeShow:function(){return!0},triggerBeforeHide:function(){return!0},showStart:function(){var e=this,t=e.render();t&&t.css(\"display\",\"\"),this.trigger(x,{view:this})},showEnd:function(){},hideEnd:function(){this.hide()},beforeTransition:function(e){this.trigger(p,{type:e})},afterTransition:function(e){this.trigger(f,{type:e})},hide:function(){this.options.detachOnHide&&(this._eachFragment(_),e(this.element).detach()),this.trigger(g)},destroy:function(){var e=this,t=e.element;t&&(d.fn.destroy.call(e),i.unbind(t),i.destroy(t),e.options.detachOnDestroy&&t.remove())},purge:function(){var t=this;t.destroy(),e(t.element).add(t.content).add(t.wrapper).off().remove()},fragments:function(t){e.extend(this._fragments,t)},_eachFragment:function(e){for(var t in this._fragments)this._fragments[t][e](this,t)},_createElement:function(){var t,n,o,r=this,a=\"<\"+r.tagName+\">\";try{n=e(document.getElementById(r.content)||r.content),n[0].tagName===u&&(n=n.html())}catch(s){b.test(s.message)&&(n=r.content)}return\"string\"==typeof n?(n=n.replace(/^\\s+|\\s+$/g,\"\"),r._evalTemplate&&(n=i.template(n,{useWithBlock:r._useWithBlock})(r.model||{})),t=e(a).append(n),r._wrap||(t=t.contents())):(t=n,r._evalTemplate&&(o=e(i.template(e(\"
    \").append(t.clone(!0)).html(),{useWithBlock:r._useWithBlock})(r.model||{})),e.contains(document,t[0])&&t.replaceWith(o),t=o),r._wrap&&(t=t.wrapAll(a).parent())),t},_renderSections:function(){var e=this;e.options.wrapInSections&&(e._wrapper(),e._createContent(),e._createHeader(),e._createFooter())},_wrapper:function(){var e,t=this,n=t.content;t.wrapper=n.is(c(\"view\"))?t.content:n.wrap(\"
    ').parent(),e=t.wrapper,e.attr(\"id\",t.id),e.addClass(I.view),e.addClass(I.widget),e.attr(\"role\",\"view\")},_createContent:function(){var t,n=this,i=e(n.wrapper),r=c(\"content\");i.children(r)[0]||(t=i.children().filter(function(){var t=e(this);if(!t.is(c(\"header\"))&&!t.is(c(\"footer\")))return t}),t.wrap(\"
    ')),this.contentElement=i.children(c(\"content\")),this.contentElement.addClass(I.stretchedView).addClass(I.content)},_createHeader:function(){var e=this,t=e.wrapper;this.header=t.children(c(\"header\")).addClass(I.header)},_createFooter:function(){var e=this,t=e.wrapper;this.footer=t.children(c(\"footer\")).addClass(I.footer)}}),E=i.Class.extend({init:function(t){e.extend(this,{element:t.element.clone(!0),transition:t.transition,id:t.id}),t.element.parent().append(this.element)},hideEnd:function(){\nthis.element.remove()},beforeTransition:e.noop,afterTransition:e.noop}),R=A.extend({init:function(e,t){A.fn.init.call(this,e,t),this.containers={}},container:function(e){var t=this.containers[e];return t||(t=this._createContainer(e),this.containers[e]=t),t},showIn:function(e,t,n){this.container(e).show(t,n)},_createContainer:function(e){var t,n=this.render(),i=n.find(e);if(!i.length&&n.is(e)){if(!n.is(e))throw Error(\"can't find a container with the specified \"+e+\" selector\");i=n}return t=new P(i),t.bind(\"accepted\",function(e){e.view.render(i)}),t}}),M=A.extend({attach:function(e,t){e.element.find(t).replaceWith(this.render())},detach:function(){}}),F=/^(\\w+)(:(\\w+))?( (\\w+))?$/,P=l.extend({init:function(e){l.fn.init.call(this),this.container=e,this.history=[],this.view=null,this.running=!1},after:function(){this.running=!1,this.trigger(\"complete\",{view:this.view}),this.trigger(\"after\")},end:function(){this.view.showEnd(),this.previous.hideEnd(),this.after()},show:function(e,t,o){if(!e.triggerBeforeShow()||this.view&&!this.view.triggerBeforeHide())return this.trigger(\"after\"),!1;o=o||e.id;var r=this,a=e===r.view?e.clone():r.view,s=r.history,l=s[s.length-2]||{},d=l.id===o,c=t||(d?s[s.length-1].transition:e.transition),u=n(c);return r.running&&r.effect.stop(),\"none\"===c&&(c=null),r.trigger(\"accepted\",{view:e}),r.view=e,r.previous=a,r.running=!0,d?s.pop():s.push({id:o,transition:c}),a?(c&&i.effects.enabled?(e.element.addClass(\"k-fx-hidden\"),e.showStart(),d&&!t&&(u.reverse=!u.reverse),r.effect=i.fx(e.element).replace(a.element,u.type).beforeTransition(function(){e.beforeTransition(\"show\"),a.beforeTransition(\"hide\")}).afterTransition(function(){e.afterTransition(\"show\"),a.afterTransition(\"hide\")}).direction(u.direction).setReverse(u.reverse),r.effect.run().then(function(){r.end()})):(e.showStart(),r.end()),!0):(e.showStart(),e.showEnd(),r.after(),!0)},destroy:function(){var e=this,t=e.view;t&&t.destroy&&t.destroy()}}),z=l.extend({init:function(t){var n,o,r=this;l.fn.init.call(r),r.options=t,e.extend(r,t),r.sandbox=e(\"
    \"),o=r.container,n=r._hideViews(o),r.rootView=n.first(),r.layouts={},r.viewContainer=new i.ViewContainer(r.container),r.viewContainer.bind(\"accepted\",function(e){e.view.params=r.params}),r.viewContainer.bind(\"complete\",function(e){r.trigger(S,{view:e.view})}),r.viewContainer.bind(D,function(){r.trigger(D)}),this.bind(this.events,t)},events:[x,D,S,k,y,C,T],destroy:function(){var e,t=this,n=t.viewContainer;i.destroy(t.container);for(e in t.layouts)this.layouts[e].destroy();n&&n.destroy()},view:function(){return this.viewContainer.view},showView:function(e,t,n){if(e=e.replace(RegExp(\"^\"+this.remoteViewURLPrefix),\"\"),\"\"===e&&this.remoteViewURLPrefix&&(e=\"/\"),e.replace(/^#/,\"\")===this.url)return this.trigger(C),!1;this.trigger(x);var o=this,r=o._findViewElement(e),a=i.widgetInstance(r);return o.url=e.replace(/^#/,\"\"),o.params=n,a&&a.reload&&(a.purge(),r=[]),this.trigger(T,{remote:0===r.length,url:e}),!r[0]||(a||(a=o._createView(r)),o.viewContainer.show(a,t,e))},append:function(e,t){var n,i,r=this.sandbox,a=(t||\"\").split(\"?\")[0],s=this.container;return w.test(e)&&(e=RegExp.$1),r[0].innerHTML=e,s.append(r.children(\"script, style\")),n=this._hideViews(r),i=n.first(),i.length||(n=i=r.wrapInner(\"
    \").children()),a&&i.hide().attr(o(\"url\"),a),s.append(n),this._createView(i)},_locate:function(e){return this.$angular?s(e):c(e)},_findViewElement:function(e){var t,n=e.split(\"?\")[0];return n?(t=this.container.children(\"[\"+o(\"url\")+\"='\"+n+\"']\"),t[0]||n.indexOf(\"/\")!==-1||(t=this.container.children(\"#\"===n.charAt(0)?n:\"#\"+n)),t[0]||(t=this._findViewElementById(e)),t):this.rootView},_findViewElementById:function(e){var t=this.container.children(\"[id='\"+e+\"']\");return t},_createView:function(e){return this._createSpaView(e)},_createMobileView:function(e){return i.initWidget(e,{defaultTransition:this.transition,loader:this.loader,container:this.container,getLayout:this.getLayoutProxy,modelScope:this.modelScope,reload:a(e,\"reload\")},r.roles)},_createSpaView:function(e){var t=(this.options||{}).viewOptions||{};return new i.View(e,{renderOnInit:t.renderOnInit,wrap:t.wrap||!1,wrapInSections:t.wrapInSections,detachOnHide:t.detachOnHide,detachOnDestroy:t.detachOnDestroy})},_hideViews:function(e){return e.children(this._locate(\"view\")).hide()}});i.ViewEngine=z,i.ViewContainer=P,i.Fragment=M,i.Layout=R,i.View=A,i.ViewClone=E}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.dom.min\",[\"kendo.core.min\"],e)}(function(){return function(e){function t(){this.node=null}function n(){}function i(e,t,n){this.nodeName=e,this.attr=t||{},this.children=n||[]}function o(e){this.nodeValue=e+\"\"}function r(e){this.html=e}function a(e,t){for(h.innerHTML=t;h.firstChild;)e.appendChild(h.firstChild)}function s(e){return new r(e)}function l(e,t,n){return new i(e,t,n)}function d(e){return new o(e)}function c(e){this.root=e,this.children=[]}var u,h;t.prototype={remove:function(){this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.attr={}},attr:{},text:function(){return\"\"}},n.prototype={nodeName:\"#null\",attr:{style:{}},children:[],remove:function(){}},u=new n,i.prototype=new t,i.prototype.appendTo=function(e){var t,n=document.createElement(this.nodeName),i=this.children;for(t=0;t2)return void this.render({appendChild:function(n){e.replaceChild(n,t.node)}},u);for(i=0;i/g,\">\").replace(/\\\"/g,\""\").replace(/\\'/g,\"'\")}function l(e,t){var n,i=\"\";for(n=0;n\"+s(e)+\"\":''+s(e.src)+\"\"}function u(e){var t=Math.floor(e/26)-1;return(t>=0?u(t):\"\")+String.fromCharCode(65+e%26)}function h(e,t){return u(t)+(e+1)}function p(e,t){return\"$\"+u(t)+\"$\"+(e+1)}function f(e){var t=e.frozenRows||(e.freezePane||{}).rowSplit||1;return t-1}function m(e){var t=7;return e/t-Math.floor(128/t)/256}function g(e){return.75*e}function v(e){return(e+\"\").replace(/[\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F]/g,\"\").replace(/\\r?\\n/g,\"\\r\\n\")}function _(e){var t=e.length;return e.forEach(function(e){e.index&&e.index>=t&&(t=e.index+1)}),t}function b(e){var t=e;return t.length<6&&(t=t.replace(/(\\w)/g,function(e,t){return t+t})),t=t.substring(1).toUpperCase(),t.length<8&&(t=\"FF\"+t),t}function w(e){var t=\"thin\";return 2===e?t=\"medium\":3===e&&(t=\"thick\"),t}function k(e,t){var n=\"\";return t&&(n+=\"<\"+e+' style=\"'+w(t.size)+'\">',t.color&&(n+=''),n+=\"\"),n}function y(e){return\"\"+k(\"left\",e.left)+k(\"right\",e.right)+k(\"top\",e.top)+k(\"bottom\",e.bottom)+\"\"}function x(e,t){var n,i,o,r=[],a=[];for(C(e,function(e,t){var n={_source:e,index:t,height:e.height,level:e.level,cells:[]};r.push(n),a[t]=n}),n=S(r).slice(0),i={rowData:r,rowsByIndex:a,mergedCells:t},o=0;o1||r>1)&&T(t.mergedCells,s+\":\"+h(p+o-1,a+r-1)),o>1)for(d=p+1;d\\r',Q=Y+'\\n \\n \\n \\n \\n ',X=function(e){var t=e.creator,n=e.lastModifiedBy,i=e.created,o=e.modified;return Y+'\\n \\n '+s(t)+\"\\n \"+s(n)+'\\n '+s(i)+'\\n '+s(o)+\"\\n\"},Z=function(e){var t=e.sheets;return Y+'\\n\\n Microsoft Excel\\n 0\\n false\\n \\n \\n \\n Worksheets\\n \\n \\n '+t.length+'\\n \\n \\n \\n \\n '+d(t,function(e,t){return e.options.title?\"\"+s(e.options.title)+\"\":\"Sheet\"+(t+1)+\"\"})+\"\\n \\n false\\n false\\n false\\n 14.0300\\n\"},J=function(e){var t=e.sheetCount,n=e.commentFiles,i=e.drawingFiles;return Y+'\\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n '+l(t,function(e){return''})+\"\\n \"+d(n,function(e){return''})+\"\\n \"+d(i,function(e){return''})+'\\n \\n \\n'},ee=function(e){var t=e.sheets,n=e.filterNames,i=e.userNames;return Y+'\\n\\n \\n \\n \\n \\n \\n \\n '+d(t,function(e,t){var n=e.options,i=n.name||n.title||\"Sheet\"+(t+1);return''})+\"\\n \\n \"+(n.length||i.length?\"\\n \\n \"+d(n,function(e){return'\\n \"})+\"\\n \"+d(i,function(e){return'\\n \"})+\"\\n \":\"\")+'\\n \\n'},te=function(e){var t=e.frozenColumns,n=e.frozenRows,i=e.columns,o=e.defaults,r=e.data,a=e.index,l=e.mergeCells,u=e.autoFilter,p=e.filter,f=e.showGridLines,v=e.hyperlinks,_=e.validations,b=e.defaultCellStyleId,w=e.rtl,k=e.legacyDrawing,y=e.drawing,x=e.lastRow,C=e.lastCol;return Y+'\\n\\n '+(x&&C?'':\"\")+\"\\n\\n \\n \\n \"+(n||t?'\\n ':\"\")+'\\n \\n \\n\\n \\n\\n \"+(null!=b||i&&i.length>0?\"\\n \\n \"+(i&&i.length?\"\":'\\n \")+\"\\n \"+d(i,function(e,t){var n=\"number\"==typeof e.index?e.index+1:t+1;return 0===e.width?\"':\"\"})+\"\\n \":\"\")+\"\\n\\n \\n \"+d(r,function(e,t){var n=\"number\"==typeof e.index?e.index+1:t+1;return'\\n \\n \"+d(e.data,function(e){return'\\n \\n \"+(null!=e.formula?c(e.formula):\"\")+\"\\n \"+(null!=e.value?\"\"+s(e.value)+\"\":\"\")+\"\\n \"})+\"\\n \\n \"})+\"\\n \\n\\n \"+(u?'':p?z(p):\"\")+\"\\n\\n \"+(l.length?'\\n \\n '+d(l,function(e){return''})+\"\\n \":\"\")+\"\\n\\n \"+(_.length?\"\\n \\n \"+d(_,function(e){return'\\n \\n \"+(e.formula1?\"\"+s(e.formula1)+\"\":\"\")+\"\\n \"+(e.formula2?\"\"+s(e.formula2)+\"\":\"\")+\"\\n \"})+\"\\n \":\"\")+\"\\n\\n \"+(v.length?\"\\n \\n \"+d(v,function(e){return'\\n '})+\"\\n \":\"\")+'\\n\\n \\n '+(y?'':\"\")+\"\\n \"+(k?'':\"\")+\"\\n\"},ne=function(e){var t=e.count;return Y+'\\n\\n '+l(t,function(e){return'\\n '})+'\\n \\n \\n'},ie=function(e){var t=e.hyperlinks,n=e.comments,i=e.sheetIndex,o=e.drawings;return Y+'\\n\\n '+d(t,function(e){return'\\n '})+\"\\n \"+(n.length?'\\n \\n ':\"\")+\"\\n \"+(o.length?'\\n ':\"\")+\"\\n\"},oe=function(e){var t=e.comments;return Y+'\\n\\n \\n \\n \\n \\n '+d(t,function(e){return'\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n '+s(e.text)+\"\\n \\n \\n \"})+\"\\n \\n\"},re=function(e){var t=e.comments;return'\\n \\n \\n \\n \\n '+d(t,function(e){return'\\n \\n \\n \\n \\n \\n '+e.anchor+\"\\n False\\n \"+e.row+\"\\n \"+e.col+\"\\n \\n \"})+\"\\n\"},ae=function(e){return Y+'\\n\\n '+d(e,function(e,t){return'\\n \\n \\n '+e.col+\"\\n \"+e.colOffset+\"\\n \"+e.row+\"\\n \"+e.rowOffset+'\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n '})+\"\\n\"},se=function(e){return Y+'\\n\\n '+d(e,function(e){return'\\n '})+\"\\n\"},le=function(e){var t=e.count,n=e.uniqueCount,i=e.indexes;return Y+'\\n\\n '+d(Object.keys(i),function(e){return'\\n '+s(e.substring(1))+\"\"})+\"\\n\"},de=function(e){var t=e.formats,n=e.fonts,i=e.fills,o=e.borders,r=e.styles;return Y+'\\n\\n \\n '+d(t,function(e,t){return'\\n '})+'\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n '+d(n,function(e){return\"\\n \\n \"+(e.bold?\"\":\"\")+\"\\n \"+(e.italic?\"\":\"\")+\"\\n \"+(e.underline?\"\":\"\")+'\\n \\n '+(e.color?'':'')+\"\\n \"+(e.fontFamily?'\\n \\n \\n ':'\\n \\n \\n \\n ')+\"\\n \"})+'\\n \\n \\n \\n \\n '+d(i,function(e){return\"\\n \"+(e.background?'\\n \\n \\n \\n \\n \\n ':\"\")})+'\\n \\n \\n \\n '+d(o,y)+'\\n \\n \\n \\n \\n \\n \\n '+d(r,function(e){return'\\n \\n \"+(e.textAlign||e.verticalAlign||e.wrap?\"\\n \\n \":\"\")+\"\\n \\n \"})+'\\n \\n \\n \\n \\n \\n \\n'},ce=kendo.Class.extend({init:function(t,n,i,o){this.options=t,this._strings=n,this._styles=i,this._borders=o,this._validations={},this._comments=[],this._drawings=t.drawings||[],this._hyperlinks=(this.options.hyperlinks||[]).map(function(t,n){return e.extend({},t,{rId:\"link\"+n})})},relsToXML:function(){var e=this._hyperlinks,t=this._comments,n=this._drawings;if(e.length||t.length||n.length)return ie({hyperlinks:e,comments:t,sheetIndex:this.options.sheetIndex,drawings:n})},toXML:function(e){var t,n,i,o,r,a,s,l,d,c=this,u=this.options.mergedCells||[],p=this.options.rows||[],m=x(p,u);this._readCells(m),t=this.options.filter,t&&\"number\"==typeof t.from&&\"number\"==typeof t.to?t={from:h(f(this.options),t.from),to:h(f(this.options),t.to)}:t&&t.ref&&t.columns&&(n=t,t=null),i=[];for(o in this._validations)Object.prototype.hasOwnProperty.call(c._validations,o)&&i.push(c._validations[o]);return r=null,this.options.defaultCellStyle&&(r=this._lookupStyle(this.options.defaultCellStyle)),a=this.options.freezePane||{},s=this.options.defaults||{},l=this.options.rows?this._getLastRow():1,d=this.options.rows?this._getLastCol():1,te({frozenColumns:this.options.frozenColumns||a.colSplit,frozenRows:this.options.frozenRows||a.rowSplit,columns:this.options.columns,defaults:s,data:m,index:e,mergeCells:u,autoFilter:t,filter:n,showGridLines:this.options.showGridLines,hyperlinks:this._hyperlinks,validations:i,defaultCellStyleId:r,rtl:void 0!==this.options.rtl?this.options.rtl:s.rtl,legacyDrawing:this._comments.length?\"vml\"+this.options.sheetIndex:null,drawing:this._drawings.length?\"drw\"+this.options.sheetIndex:null,lastRow:l,lastCol:d})},commentsXML:function(){if(this._comments.length)return oe({comments:this._comments})},drawingsXML:function(e){var t,n;if(this._drawings.length)return t={},n=this._drawings.map(function(n){var i=I(n.topLeftCell),o=t[n.image];return o||(o=t[n.image]={rId:\"img\"+n.image,target:e[n.image].target}),{col:i.col,colOffset:A(n.offsetX),row:i.row,rowOffset:A(n.offsetY),width:A(n.width),height:A(n.height),imageId:o.rId}}),{main:ae(n),rels:se(t)}},legacyDrawing:function(){if(this._comments.length)return re({comments:this._comments})},_lookupString:function(e){var t,n=\"$\"+e,i=this._strings.indexes[n];return void 0!==i?t=i:(t=this._strings.indexes[n]=this._strings.uniqueCount,\nthis._strings.uniqueCount++),this._strings.count++,t},_lookupStyle:function(e){var t,n=JSON.stringify(e);return\"{}\"===n?0:(t=a(n,this._styles),t<0&&(t=this._styles.push(n)-1),t+1)},_lookupBorder:function(e){var t,n=JSON.stringify(e);if(\"{}\"!==n)return t=a(n,this._borders),t<0&&(t=this._borders.push(n)-1),t+1},_readCells:function(e){var t,n,i,o,r,a=this;for(t=0;t\\n '+d(n,function(e){return'\\n \\n '+i[e.filter](e)+\"\\n \\n \"})+\"\\n\"},ve=function(e){var t=e.logic,n=e.criteria;return\"\\n\\n\"+d(n,function(e){var t=z.customOperator(e),n=z.customValue(e);return\"'})+\"\\n\"},_e=function(e){var t=e.type;return''},be=function(e){var t=e.type,n=e.value;return''},we=function(e){var t=e.blanks,n=e.values;return\"\\n \"+d(n,function(e){return'\\n '})+\"\\n \"},z.customOperator=function(e){return{eq:\"equal\",gt:\"greaterThan\",gte:\"greaterThanOrEqual\",lt:\"lessThan\",lte:\"lessThanOrEqual\",ne:\"notEqual\",doesnotstartwith:\"notEqual\",doesnotendwith:\"notEqual\",doesnotcontain:\"notEqual\",doesnotmatch:\"notEqual\"}[e.operator.toLowerCase()]},z.customValue=function(e){function t(e){return e.replace(/([*?])/g,\"~$1\")}switch(e.operator.toLowerCase()){case\"startswith\":case\"doesnotstartwith\":return t(e.value)+\"*\";case\"endswith\":case\"doesnotendwith\":return\"*\"+t(e.value);case\"contains\":case\"doesnotcontain\":return\"*\"+t(e.value)+\"*\";default:return e.value}},z.dynamicFilterType=function(e){return{quarter1:\"Q1\",quarter2:\"Q2\",quarter3:\"Q3\",quarter4:\"Q4\",january:\"M1\",february:\"M2\",march:\"M3\",april:\"M4\",may:\"M5\",june:\"M6\",july:\"M7\",august:\"M8\",september:\"M9\",october:\"M10\",november:\"M11\",december:\"M12\"}[e.toLowerCase()]||e},kendo.deepExtend(kendo.ooxml,{IntlService:V,Workbook:fe,Worksheet:ce})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"ooxml/main.min\",[\"kendo.core.min\",\"ooxml/kendo-ooxml.min\"],e)}(function(){!function(e){var t=kendo.ooxml.Workbook;kendo.ooxml.IntlService.register({toString:kendo.toString}),kendo.ooxml.Workbook=t.extend({toDataURL:function(){var e=t.fn.toDataURL.call(this);if(\"string\"!=typeof e)throw Error(\"The toDataURL method can be used only with jsZip 2. Either include jsZip 2 or use the toDataURLAsync method.\");return e},toDataURLAsync:function(){var n=e.Deferred(),i=t.fn.toDataURL.call(this);return\"string\"==typeof i?i=n.resolve(i):i&&i.then&&i.then(function(e){n.resolve(e)},function(){n.reject()}),n.promise()}})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.ooxml.min\",[\"ooxml/main.min\"],e)}(function(){},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"excel/kendo-excel.min\",[\"kendo.core.min\"],e)}(function(){!function(e){function t(e){return e.title+\": \"+e.value}function n(e,t){var n,i=[];for(n=0;n0,this.hierarchy=e.hierarchy,this.hasGroupHeaderColumn=this.columns.some(function(e){return e.groupHeaderColumnTemplate}),this.collapsible=this.options.collapsible},workbook:function(){var e={sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]};return e},_trimColumns:function(e){var t=this;return e.filter(function(e){var n=!!e.field;return!n&&e.columns&&(n=t._trimColumns(e.columns).length>0),n})},_leafColumns:function(e){var t,n=this,i=[];for(t=0;t0&&o.push(e.extend({background:\"#dfdfdf\",color:\"#333\",value:n.groupHeaderColumnTemplate?n.groupHeaderColumnTemplate(e.extend({group:l},l,t.aggregates[n.field])):void 0},n.groupHeaderCellOptions))}),o},_dataRows:function(e,t){var n,i=this,o=this._depth(),r=[];for(n=0;nf?p.push({id:e,level:f}):o=t;)i=e.pop(),r.push(o._hierarchyFooter(o.aggregates[i.id],i.level+1,n));return r},_hasFooterTemplate:function(){var e,t=this.columns;for(e=0;e0&&(e.field||e.columns)},_visibleColumns:function(e){var t=this;return e.filter(function(e){var n,i,o,r=e.exportable;return\"object\"==typeof r&&(r=e.exportable.excel),n=!e.hidden&&r!==!1,i=e.hidden&&r===!0,o=n||i,o&&e.columns&&(o=t._visibleColumns(e.columns).length>0),o})},_headerRow:function(t,i){var o=this,r=t.cells.map(function(n){return e.extend(n,{colSpan:n.colSpan>1?n.colSpan:1,rowSpan:t.rowSpan>1&&!n.colSpan?t.rowSpan:1})});return this.hierarchy&&r[0].firstCell&&(r[0].colSpan+=this._depth()),{type:\"header\",cells:n(i.length,function(){return e.extend({background:\"#7a7a7a\",color:\"#fff\"},o.options.headerPaddingCellOptions)}).concat(r)}},_prependHeaderRows:function(e){var t,n=this,i=this.groups,o=[{rowSpan:1,cells:[],index:0}];for(this._prepareHeaderRows(o,this.options.columns),t=o.length-1;t>=0;t--)e.unshift(n._headerRow(o[t],i))},_prepareHeaderRows:function(t,n,i,o){var r,a,s,l=this,d=o||t[t.length-1],c=t[d.index+1],u=0;for(r=0;rr&&(r=n));return o+r},_freezePane:function(){var e=this._visibleColumns(this.options.columns||[]),t=this._visibleColumns(this._trimColumns(this._leafColumns(e.filter(function(e){return e.locked})))).length;return{rowSplit:this._headerDepth(e),colSplit:t?t+this.groups.length:0}},_cell:function(t,n){return e.extend({value:n.value(t)},n.cellOptions)},_depth:function(){var e=0;return e=this.hierarchy?this.hierarchy.depth:this.groups.length},_columns:function(){var e=this._depth(),t=n(e,function(){return{width:20}});return t.concat(this.columns.map(function(e){return{width:parseInt(e.width,10),autoWidth:!e.width}}))}}),kendo.deepExtend(kendo.excel,{ExcelExporter:l,TemplateService:s})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"excel/main.min\",[\"kendo.core.min\",\"kendo.data.min\",\"excel/kendo-excel.min\"],e)}(function(){return function(e,t){var n=t.excel.ExcelExporter,i=e.extend;t.excel.TemplateService.register({compile:t.template}),t.ExcelExporter=t.Class.extend({init:function(e){var n,o,r,a;if(this.options=e,n=e.dataSource,n instanceof t.data.DataSource){if(n.filter()||(n.options.filter=void 0),this.dataSource=new n.constructor(i({},n.options,{page:e.allPages?0:n.page(),filter:n.filter(),pageSize:e.allPages?n.total():n.pageSize()||n.total(),sort:n.sort(),group:n.group(),aggregate:n.aggregate()})),o=n.data(),o.length>0){if(e.hierarchy)for(r=0;rt&&(t=n);o.depth=t+1}else o=!1;return{hierarchy:o}},workbook:function(){return e.Deferred(e.proxy(function(t){this.dataSource.fetch().then(e.proxy(function(){var e=new n(i({},this.options,this._hierarchy(),{data:this.dataSource.view(),groups:this.dataSource.group(),aggregates:this.dataSource.aggregates()})).workbook();t.resolve(e,this.dataSource.view())},this))},this)).promise()}})}(kendo.jQuery,kendo),kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"excel/mixins.min\",[\"excel/main.min\",\"kendo.ooxml.min\"],e)}(function(){return function(e,t){t.ExcelMixin={extend:function(t){t.events.push(\"excelExport\"),t.options.excel=e.extend(t.options.excel,this.options),t.saveAsExcel=this.saveAsExcel},options:{proxyURL:\"\",allPages:!1,filterable:!1,fileName:\"Export.xlsx\",collapsible:!1},saveAsExcel:function(){var n=this.options.excel||{},i=new t.ExcelExporter({columns:this.columns,dataSource:this.dataSource,allPages:n.allPages,filterable:n.filterable,hierarchy:n.hierarchy,collapsible:n.collapsible});i.workbook().then(e.proxy(function(e,i){if(!this.trigger(\"excelExport\",{workbook:e,data:i})){var o=new t.ooxml.Workbook(e);o.options||(o.options={}),o.options.skipCustomHeight=!0,o.toDataURLAsync().then(function(i){t.saveAs({dataURI:i,fileName:e.fileName||n.fileName,proxyURL:n.proxyURL,forceProxy:n.forceProxy})})}},this))}}}(kendo.jQuery,kendo),kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.excel.min\",[\"excel/main.min\",\"excel/mixins.min\"],e)}(function(){},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.data.signalr.min\",[\"kendo.data.min\"],e)}(function(){return function(e){function t(e){return e&&o(e.done)&&o(e.fail)}function n(e){return e&&o(e.then)&&o(e[\"catch\"])}var i=window.kendo,o=i.isFunction,r=i.data.RemoteTransport.extend({init:function(e){var o,r=e&&e.signalr?e.signalr:{},a=r.promise;if(!a)throw Error('The \"promise\" option must be set.');if(!t(a)&&!n(a))throw Error('The \"promise\" option must be a Promise.');if(this.promise=a,o=r.hub,!o)throw Error('The \"hub\" option must be set.');if(\"function\"!=typeof o.on||\"function\"!=typeof o.invoke)throw Error('The \"hub\" option is not a valid SignalR hub proxy.');this.hub=o,i.data.RemoteTransport.fn.init.call(this,e)},push:function(e){var t=this.options.signalr.client||{};t.create&&this.hub.on(t.create,e.pushCreate),t.update&&this.hub.on(t.update,e.pushUpdate),t.destroy&&this.hub.on(t.destroy,e.pushDestroy)},_crud:function(o,r){var a,s,l=this.hub,d=this.promise,c=this.options.signalr.server;if(!c||!c[r])throw Error(i.format('The \"server.{0}\" option must be set.',r));a=[c[r]],s=this.parameterMap(o.data,r),e.isEmptyObject(s)||a.push(s),t(d)?d.done(function(){l.invoke.apply(l,a).done(o.success).fail(o.error)}):n(d)&&d.then(function(){l.invoke.apply(l,a).then(o.success)[\"catch\"](o.error)})},read:function(e){this._crud(e,\"read\")},create:function(e){this._crud(e,\"create\")},update:function(e){this._crud(e,\"update\")},destroy:function(e){this._crud(e,\"destroy\")}});e.extend(!0,i.data,{transports:{signalr:r}})}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/util.min\",[\"kendo.core.min\"],e)}(function(){return function(e){function t(){return e.Deferred()}function n(t){return e.when.apply(e,t)}function i(e,t){if(t)if(\"function\"==typeof t.__proto__)e.__proto__=t;else for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}kendo.drawing.util=kendo.drawing.util||{},kendo.deepExtend(kendo.drawing.util,{createPromise:t,promiseAll:n,extendStatic:i})}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.color.min\",[\"kendo.core.min\"],e)}(function(){function e(e,t,n){void 0===n&&(n=\"0\");for(var i=e.toString(16);t>i.length;)i=n+i;return i}function t(e,t,n){var i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function n(e){return parseFloat(parseFloat(parseInt(e,16)/255).toFixed(3))}function i(e,t){var o,r,s;if(null==e||\"none\"===e)return null;if(e instanceof d)return e;if(s=e.toLowerCase(),o=l(s))return s=\"transparent\"===o[1]?new c(1,1,1,0):i(a[o[1]],t),s.match=[o[1]],s;if((o=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\\b/i.exec(s))?r=new u(parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16),1):(o=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\\b/i.exec(s))?r=new u(parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16),1):(o=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\\b/i.exec(s))?r=new u(parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16),n(o[4]+o[4])):(o=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\\b/i.exec(s))?r=new u(parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16),n(o[4])):(o=/^rgb\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*\\)/.exec(s))?r=new u(parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10),1):(o=/^rgba\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9.]+)\\s*\\)/.exec(s))?r=new u(parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10),parseFloat(o[4])):(o=/^rgb\\(\\s*([0-9]*\\.?[0-9]+)%\\s*,\\s*([0-9]*\\.?[0-9]+)%\\s*,\\s*([0-9]*\\.?[0-9]+)%\\s*\\)/.exec(s))?r=new c(parseFloat(o[1])/100,parseFloat(o[2])/100,parseFloat(o[3])/100,1):(o=/^rgba\\(\\s*([0-9]*\\.?[0-9]+)%\\s*,\\s*([0-9]*\\.?[0-9]+)%\\s*,\\s*([0-9]*\\.?[0-9]+)%\\s*,\\s*([0-9.]+)\\s*\\)/.exec(s))&&(r=new c(parseFloat(o[1])/100,parseFloat(o[2])/100,parseFloat(o[3])/100,parseFloat(o[4]))),r)r.match=o;else if(!t)throw Error(\"Cannot parse color: \"+s);return r}var o,r,a,s,l,d,c,u,h,p,f,m;window.kendo=window.kendo||{},o=kendo.Class,r=kendo.support,a={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"00ffff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000000\",blanchedalmond:\"ffebcd\",blue:\"0000ff\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"00ffff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgrey:\"a9a9a9\",darkgreen:\"006400\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"ff00ff\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",grey:\"808080\",green:\"008000\",greenyellow:\"adff2f\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgrey:\"d3d3d3\",lightgreen:\"90ee90\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"778899\",lightslategrey:\"778899\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"00ff00\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"ff00ff\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370d8\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"d87093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",red:\"ff0000\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"ffffff\",whitesmoke:\"f5f5f5\",yellow:\"ffff00\",yellowgreen:\"9acd32\"},s=r.browser,l=function(e){var t,n=Object.keys(a);return n.push(\"transparent\"),t=RegExp(\"^(\"+n.join(\"|\")+\")(\\\\W|$)\",\"i\"),l=function(e){return t.exec(e)},t.exec(e)},d=o.extend({init:function(){},toHSV:function(){return this},toRGB:function(){return this},toHex:function(e){return this.toBytes().toHex(e)},toBytes:function(){return this},toCss:function(e){return\"#\"+this.toHex(e)},toCssRgba:function(){var e=this.toBytes();return\"rgba(\"+e.r+\", \"+e.g+\", \"+e.b+\", \"+parseFloat((+this.a).toFixed(3))+\")\"},toDisplay:function(){return s.msie&&s.version<9?this.toCss():this.toCssRgba()},equals:function(e){return e===this||null!==e&&this.toCssRgba()===i(e).toCssRgba()},diff:function(e){var t,n;return null===e?NaN:(t=this.toBytes(),n=e.toBytes(),Math.sqrt(Math.pow(.3*(t.r-n.r),2)+Math.pow(.59*(t.g-n.g),2)+Math.pow(.11*(t.b-n.b),2)))},clone:function(){var e=this.toBytes();return e===this&&(e=new u(e.r,e.g,e.b,e.a)),e}}),c=d.extend({init:function(e,t,n,i){d.fn.init.call(this),this.r=e,this.g=t,this.b=n,this.a=i},toHSV:function(){var e,t,n=this,i=n.r,o=n.g,r=n.b,a=Math.min(i,o,r),s=Math.max(i,o,r),l=s-a,d=s;return 0===l?new h(0,0,d,this.a):(0!==s?(t=l/s,e=i===s?(o-r)/l:o===s?2+(r-i)/l:4+(i-o)/l,e*=60,e<0&&(e+=360)):(t=0,e=-1),new h(e,t,d,this.a))},toHSL:function(){var e,t,n,i=this,o=i.r,r=i.g,a=i.b,s=Math.max(o,r,a),l=Math.min(o,r,a),d=(s+l)/2;if(s===l)e=t=0;else switch(n=s-l,t=d>.5?n/(2-s-l):n/(s+l),s){case o:e=(r-a)/n+(r255?255:e},padDigit:function(e){return 1===e.length?\"0\"+e:e},brightness:function(e){var t=Math.round;return this.r=t(this.normalizeByte(this.r*e)),this.g=t(this.normalizeByte(this.g*e)),this.b=t(this.normalizeByte(this.b*e)),this},percBrightness:function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},isDark:function(){return this.percBrightness()>>0}function o(){return{width:0,height:0,baseline:0}}function r(e,t,n){return u.current.measure(e,t,n)}var a,s,l,d,c,u;window.kendo.util=window.kendo.util||{},a=kendo.Class.extend({init:function(e){this._size=e,this._length=0,this._map={}},put:function(e,t){var n=this._map,i={key:e,value:t};n[e]=i,this._head?(this._tail.newer=i,i.older=this._tail,this._tail=i):this._head=this._tail=i,this._length>=this._size?(n[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},get:function(e){var t=this._map[e];if(t)return t===this._head&&t!==this._tail&&(this._head=t.newer,this._head.older=null),t!==this._tail&&(t.older&&(t.older.newer=t.newer,t.newer.older=t.older),t.older=this._tail,t.newer=null,this._tail.newer=t,this._tail=t),t.value}}),s=/\\r?\\n|\\r|\\t/g,l=\" \",d={baselineMarkerSize:1},\"undefined\"!=typeof document&&(c=document.createElement(\"div\"),c.style.cssText=\"position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;\"),u=kendo.Class.extend({init:function(t){this._cache=new a(1e3),this.options=e.extend({},d,t)},measure:function(e,r,a){var s,l,d,u,h,p,f,m,g;if(void 0===a&&(a={}),void 0===e||null===e)return o();if(s=n(r),l=i(e+s),d=this._cache.get(l))return d;u=o(),h=a.box||c,p=this._baselineMarker().cloneNode(!1);for(f in r)m=r[f],void 0!==m&&(h.style[f]=m);return g=a.normalizeText!==!1?t(e):e+\"\",h.textContent=g,h.appendChild(p),document.body.appendChild(h),g.length&&(u.width=h.offsetWidth-this.options.baselineMarkerSize,u.height=h.offsetHeight,u.baseline=p.offsetTop+this.options.baselineMarkerSize),u.width>0&&u.height>0&&this._cache.put(l,u),h.parentNode.removeChild(h),u},_baselineMarker:function(){var e=document.createElement(\"div\");return e.style.cssText=\"display: inline-block; vertical-align: baseline;width: \"+this.options.baselineMarkerSize+\"px; height: \"+this.options.baselineMarkerSize+\"px;overflow: hidden;\",e}}),u.current=new u,kendo.deepExtend(kendo.util,{LRUCache:a,TextMetrics:u,measureText:r,objectKey:n,hashKey:i,normalizeText:t})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/kendo-drawing.min\",[\"drawing/util.min\",\"kendo.color.min\",\"util/text-metrics.min\"],e)}(function(){!function(e){function t(e,t){return e.push.apply(e,t),e}function n(e){for(var t=[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=\"\";e>0;)e>>6),r+=cn(128|63&n)):n<65536?(r+=cn(224|n>>>12),r+=cn(128|n>>>6&63),r+=cn(128|63&n)):n<1114111&&(r+=cn(240|n>>>18),r+=cn(128|n>>>12&63),r+=cn(128|n>>>6&63),r+=cn(128|63&n));return r}function s(e){for(var t,n,i,o,r,s,l,d=\"\",c=0,u=a(e);c>2,r=(3&t)<<4|n>>4,s=(15&n)<<2|i>>6,l=63&i,isNaN(n)?s=l=64:isNaN(i)&&(l=64),d=d+un.charAt(o)+un.charAt(r)+un.charAt(s)+un.charAt(l);return d}function l(e){return i((e.x||{}).location)?{x:e.x.location,y:e.y.location}:{x:e.pageX||e.clientX||0,y:e.pageY||e.clientY||0}}function d(e){return void 0===e&&(e={}),e.touch?e.touch.initialTouch:e.target}function c(e){return\"\"===e||null===e||\"none\"===e||\"transparent\"===e||!i(e)}function u(e){if(e)return e[e.length-1]}function h(e,t,n){return Math.max(Math.min(e,n),t)}function p(e,t){function n(e,n){for(var i=[],o=0,r=0,a=0;o=0&&u<=1&&h>=0&&h<=1)return new bn(e.x+h*o,e.y+h*a)}function O(e,t,n,i,o,a){var s=g((o-e)/n,3),l=g((a-t)/i,3);return g(r(Math.atan2(l,s)))}function N(e){var t,n,i,o,a,s,l,d,c,u,h,p,m,v,_,b,w,k,y,x,C,S,T,D,I,A=e.x1,E=e.y1,R=e.x2,M=e.y2,F=e.rx,P=e.ry,z=e.largeArc,B=e.swipe,L=e.rotation;return void 0===L&&(L=0),t=f(L),n=Math.cos(t),i=Math.sin(t),o=n*(A-R)/2+i*(E-M)/2,a=-i*(A-R)/2+n*(E-M)/2,s=z!==B?1:-1,l=Math.pow(o,2),d=Math.pow(a,2),c=Math.pow(F,2),u=Math.pow(P,2),h=l/c+d/u,h>1&&(h=Math.sqrt(l/c+d/u),F=h*F,c=Math.pow(F,2),P=h*P,u=Math.pow(P,2)),p=s*Math.sqrt((c*u-c*d-u*l)/(c*d+u*l)),isNaN(p)&&(p=0),m=p*(F*a)/P,v=-p*(P*o)/F,_=n*m-i*v+(A+R)/2,b=i*m+n*v+(E+M)/2,w=(o-m)/F,k=(a-v)/P,y=-(o+m)/F,x=-(a+v)/P,C=(k>=0?1:-1)*r(Math.acos(w/Math.sqrt(w*w+k*k))),S=g((w*y+k*x)/(Math.sqrt(w*w+k*k)*Math.sqrt(y*y+x*x)),10),T=(w*x-k*y>=0?1:-1)*r(Math.acos(S)),!B&&T>0&&(T-=360),B&&T<0&&(T+=360),D=C+T,I=D>=0?1:-1,D=Math.abs(D)%360*I,{center:new bn(_,b),startAngle:C,endAngle:D,radiusX:F,radiusY:P,xRotation:L}}function V(e,t){for(var n=e;nt.y,o&&((0===s[r]||1===s[r])&&n.bottomRight().x>t.x||00?n.x-o:r-n.x)/(r-o)+a-n.y>=0),i?1:0}function X(e){var t=\"_\"+e;return function(e){return i(e)?(this._observerField(t,bn.create(e)),this.geometryChange(),this):this[t]}}function Z(e,t){for(var n=0;n2&&(s=\"l\",d.splice(0,2))),Qn[s])Qn[s](e,{parameters:d,position:i,isRelative:l,previousCommand:n}),a&&a.toLowerCase()===ti&&e.close();else if(s!==ei)throw Error(\"Error while parsing SVG path. Unsupported command: \"+s);n=s}),e}function re(e,t,n){var i,o,r,a;for(o=0;o1)for(o=new bn,r=e[0].bbox,a=1;as?d.length?(l.push(d),d=[],u(),c=a):(u(),l.push(d),d=[],c=0):(u(),c+=a));return d.length&&l.push(d),l}function _e(e,t,n,i,o){var r,a,s,l,d=ve(e,t,o),c=t.origin.clone(),u=[];for(r=0;rt._zIndex?-1:0}function Be(e,t){var n,i,o;for(n=0;n\"+o.render()+\"\",o.destroy(),i}function He(t,n){var i,o,r,a,s,l,d,c,u={width:\"800px\",height:\"600px\",cors:\"Anonymous\"},h=t,p=t.clippedBBox();return p&&(i=p.getOrigin(),h=new ui,h.transform(M().translate(-i.x,-i.y)),h.children.push(t),o=p.getSize(),u.width=o.width+\"px\",u.height=o.height+\"px\"),r=e.extend(u,n),a=document.createElement(\"div\"),s=a.style,s.display=\"none\",s.width=r.width,s.height=r.height,document.body.appendChild(a),l=new zo(a,r),l.suspendTracking(),l.draw(h),d=l.image(),c=function(){l.destroy(),document.body.removeChild(a)},d.then(c,c),d}function Oe(e,t){var n=Le(e);return t&&t.raw||(n=\"data:image/svg+xml;base64,\"+s(n)),en().resolve(n)}function Ne(e){return Array.prototype.slice.call(e)}function Ve(e,t){e.classList?e.classList.add(t):e.className+=\" \"+t}function We(e,t){e.classList?e.classList.remove(t):e.className=e.className.split(/\\s+/).reduce(function(e,n){return n!=t&&e.push(n),e},[]).join(\" \")}function Ue(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function je(e,t){if(e.closest)return e.closest(t);for(;e&&!/^\\[object (?:HTML)?Document\\]$/.test(e+\"\");){if(1==e.nodeType&&Zo(e,t))return e;e=e.parentNode}}function Ge(e){return\"number\"==typeof e?{x:e,y:e}:Array.isArray(e)?{x:e[0],y:e[1]}:{x:e.x,y:e.y}}function qe(e,t){function n(e){var n=new ui,i=e.getBoundingClientRect();return yt(n,[a.x,0,0,a.y,-i.left*a.x,-i.top*a.y]),Ko._clipbox=!1,Ko._matrix=pn.unit(),Ko._stackingContext={element:e,group:n},Ko._avoidLinks=t.avoidLinks===!0?\"a\":t.avoidLinks,Ve(e,\"k-pdf-export\"),Gt(e,n),We(e,\"k-pdf-export\"),n}function i(e){if(null!=e)return\"string\"==typeof e&&(e=kendo.template(e.replace(/^\\s+|\\s+$/g,\"\"))),\"function\"==typeof e?function(t){var n,i=e(t);return i&&\"string\"==typeof i&&(n=document.createElement(\"div\"),n.innerHTML=i,i=n.firstElementChild),i}:function(){return e.cloneNode(!0)}}function o(e,t,n,o,r,a,s){function l(){(\"-\"!=n||r)&&c(w);var t=p();w.parentNode.insertBefore(t,w),t.appendChild(w),v&&b.forEach(function(e,t){var n=v({element:e,pageNum:t+1,totalPages:b.length});n&&e.appendChild(n)}),ot(b,e.bind(null,{pages:b,container:k}))}function d(e){if(s.keepTogether&&Zo(e,s.keepTogether)&&e.offsetHeight<=r-y)return!0;var t=e.tagName;return!(/^h[1-6]$/i.test(t)&&e.offsetHeight>=r-y)&&(e.getAttribute(\"data-kendo-chart\")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(e.tagName))}function c(e){var t,i,o,a,s,l,u;if(\"TABLE\"==e.tagName&&Ue(e,{tableLayout:\"fixed\"}),!d(e)){for(t=ut(e),i=parseFloat(ht(t,\"padding-bottom\")),o=parseFloat(ht(t,\"border-bottom-width\")),a=y,y+=i+o,s=!0,l=e.firstChild;l;l=l.nextSibling)if(1==l.nodeType){if(s=!1,Zo(l,n)){h(l);continue}if(!r){c(l);continue}if(!/^(?:static|relative)$/.test(ht(ut(l),\"position\")))continue;u=f(l),1==u?h(l):u&&d(l)?h(l):c(l)}else 3==l.nodeType&&r&&(m(l,s),s=!1);y=a}}function u(e){var t=e.parentNode,n=t.firstChild;if(e===n)return!0;if(e===t.children[0]){if(7==n.nodeType||8==n.nodeType)return!0;if(3==n.nodeType)return!/\\S/.test(n.data)}return!1}function h(e){var t,n,i,o,r,a,l;return 1==e.nodeType&&e!==w&&u(e)?h(e.parentNode):(t=je(e,\"table\"),n=t&&t.querySelector(\"colgroup\"),s.repeatHeaders&&(i=t&&t.querySelector(\"thead\"),o=je(e,\".k-grid.k-widget\"),o&&o.querySelector(\".k-auto-scrollable\")&&(r=o.querySelector(\".k-grid-header\"))),a=p(),l=_.createRange(),l.setStartBefore(w),l.setEndBefore(e),a.appendChild(l.extractContents()),w.parentNode.insertBefore(a,w),g(e.parentNode),t&&(t=je(e,\"table\"),s.repeatHeaders&&i&&t.insertBefore(i.cloneNode(!0),t.firstChild),n&&t.insertBefore(n.cloneNode(!0),t.firstChild)),void(s.repeatHeaders&&r&&(o=je(e,\".k-grid.k-widget\"),o.insertBefore(r.cloneNode(!0),o.firstChild))))}function p(){var e=_.createElement(\"KENDO-PDF-PAGE\");return Ue(e,{display:\"block\",boxSizing:\"content-box\",width:o?o+\"px\":\"auto\",padding:a.top+\"px \"+a.right+\"px \"+a.bottom+\"px \"+a.left+\"px\",position:\"relative\",height:r?r+\"px\":\"auto\",overflow:r||o?\"hidden\":\"visible\",clear:\"both\"}),s&&s.pageClassName&&(e.className=s.pageClassName),b.push(e),e}function f(e){var t,n,i=e.getBoundingClientRect();return 0===i.width||0===i.height?0:(t=w.getBoundingClientRect().top,n=r-y,i.height>n?3:i.top-t>n?1:i.bottom-t>n?2:0)}function m(e,t){var n,i,o,r,a;/\\S/.test(e.data)&&(n=e.data.length,i=_.createRange(),i.selectNodeContents(e),o=f(i),o&&(r=e,1==o?h(t?e.parentNode:e):(!function s(t,n,o){return i.setEnd(e,n),t==n||n==o?n:f(i)?s(t,t+n>>1,n):s(n,n+o>>1,o)}(0,n>>1,n),!/\\S/.test(\"\"+i)&&t?h(e.parentNode):(r=e.splitText(i.endOffset),a=p(),i.setStartBefore(w),a.appendChild(i.extractContents()),w.parentNode.insertBefore(a,w),g(r.parentNode))),m(r)))}function g(e){var t=je(e,\"li\");t&&(t.setAttribute(\"kendo-no-bullet\",\"1\"),g(t.parentNode))}var v=i(s.template),_=t.ownerDocument,b=[],w=s._destructive?t:Jo(t),k=_.createElement(\"KENDO-PDF-DOCUMENT\"),y=0;Ne(w.querySelectorAll(\"tfoot\")).forEach(function(e){e.parentNode.appendChild(e)}),Ne(w.querySelectorAll(\"ol\")).forEach(function(e){Ne(e.children).forEach(function(e,t){e.setAttribute(\"kendo-split-index\",t)})}),Ue(k,{display:\"block\",position:\"absolute\",boxSizing:\"content-box\",left:\"-10000px\",top:\"-10000px\"}),o&&(Ue(k,{width:o+\"px\",paddingLeft:a.left+\"px\",paddingRight:a.right+\"px\"}),Ue(w,{overflow:\"hidden\"})),t.parentNode.insertBefore(k,t),k.appendChild(w),s.beforePageBreak?it([k],function(){s.beforePageBreak(k,l)}):it([k],l)}var r,a;if(t||(t={}),r=en(),!e)return r.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(Ke(e.ownerDocument)),a=Ge(t.scale||1),ot([e],function(){var i,s=t&&t.forcePageBreak,l=t&&t.paperSize&&\"auto\"!=t.paperSize,d=kendo.pdf.getPaperOptions(function(e,n){return\"paperSize\"==e?l?t[e]:\"A4\":e in t?t[e]:n}),c=l&&d.paperSize[0],u=l&&d.paperSize[1],h=t.margin&&d.margin,p=!!h;s||u?(h||(h={left:0,top:0,right:0,bottom:0}),c&&(c/=a.x),u&&(u/=a.y),h.left/=a.x,h.right/=a.x,h.top/=a.y,h.bottom/=a.y,i=new ui({pdf:{multiPage:!0,paperSize:l?d.paperSize:\"auto\",_ignoreMargin:p}}),o(function(e){if(t.progress){var o=!1,a=0;!function s(){if(a0&&o(e,l,d,c,u[0])}}function o(e,t,n,i,o){/^data:/i.test(o)||/^[^\\/:]+:\\/\\//.test(o)||/^\\//.test(o)||(o=(e.href+\"\").replace(/[^\\/]*$/,\"\")+o),t.forEach(function(e){e=e.replace(/^(['\"]?)(.*?)\\1$/,\"$2\"),n&&(e+=\"|bold\"),i&&(e+=\"|italic\"),r[e]=o})}var r,a;for(null==e&&(e=document),r={},a=0;a0);return n}function at(e,t,n){var i,o;Ko=Object.create(Ko),Ko[e.tagName.toLowerCase()]={element:e,style:t},i=ht(t,\"text-decoration\"),i&&\"none\"!=i&&(o=ht(t,\"color\"),i.split(/\\s+/g).forEach(function(e){Ko[e]||(Ko[e]=o)})),ct(t)&&(Ko._stackingContext={element:e,group:n})}function st(){Ko=Object.getPrototypeOf(Ko)}function lt(e){if(null!=Ko._clipbox){var t=e.bbox(Ko._matrix);Ko._clipbox=Ko._clipbox?kn.intersect(Ko._clipbox,t):t}}function dt(){var e=Ko._clipbox;return null==e||(e?0===e.width()||0===e.height():void 0)}function ct(e){function t(t){return ht(e,t)}if(\"none\"!=t(\"transform\")||\"static\"!=t(\"position\")||\"auto\"!=t(\"z-index\")||t(\"opacity\")<1)return!0}function ut(e,t){return window.getComputedStyle(e,t||null)}function ht(e,t,n){var i=e.getPropertyValue(t);return null!=i&&\"\"!==i||(Go.webkit?i=e.getPropertyValue(\"-webkit-\"+t):Go.mozilla?i=e.getPropertyValue(\"-moz-\"+t):Go.opera?i=e.getPropertyValue(\"-o-\"+t):Qo&&(i=e.getPropertyValue(\"-ms-\"+t))),arguments.length>2&&(null==i||\"\"===i)?n:i}function pt(e,t,n,i){e.setProperty(t,n,i),Go.webkit?e.setProperty(\"-webkit-\"+t,n,i):Go.mozilla?e.setProperty(\"-moz-\"+t,n,i):Go.opera?e.setProperty(\"-o-\"+t,n,i):Qo&&(e.setProperty(\"-ms-\"+t,n,i),t=\"ms\"+t.replace(/(^|-)([a-z])/g,function(e,t,n){return t+n.toUpperCase()}),e[t]=n)}function ft(e,t){return t=\"border-\"+t,{width:parseFloat(ht(e,t+\"-width\")),style:ht(e,t+\"-style\"),color:nt(ht(e,t+\"-color\"),!0)}}function mt(e,t){var n=e.style.cssText,i=t();return e.style.cssText=n,i}function gt(e,t){var n=ht(e,\"border-\"+t+\"-radius\").split(/\\s+/g).map(parseFloat);return 1==n.length&&n.push(n[0]),St({x:n[0],y:n[1]})}function vt(e){var t=e.getBoundingClientRect();return t=_t(t,\"border-*-width\",e),t=_t(t,\"padding-*\",e)}function _t(e,t,n){var i,o,r,a,s;return\"string\"==typeof t?(i=ut(n),o=parseFloat(ht(i,t.replace(\"*\",\"top\"))),r=parseFloat(ht(i,t.replace(\"*\",\"right\"))),a=parseFloat(ht(i,t.replace(\"*\",\"bottom\"))),s=parseFloat(ht(i,t.replace(\"*\",\"left\")))):\"number\"==typeof t&&(o=r=a=s=t),{top:e.top+o,right:e.right-r,bottom:e.bottom-a,left:e.left+s,width:e.right-e.left-r-s,height:e.bottom-e.top-a-o}}function bt(e){var t,n,i=ht(e,\"transform\");return\"none\"==i?null:(t=/^\\s*matrix\\(\\s*(.*?)\\s*\\)\\s*$/.exec(i),t?(n=ht(e,\"transform-origin\"),t=t[1].split(/\\s*,\\s*/g).map(parseFloat),n=n.split(/\\s+/g).map(parseFloat),{matrix:t,origin:n}):void 0)}function wt(e){return 180*e/Math.PI%360}function kt(e){var t=parseFloat(e);return/grad$/.test(e)?Math.PI*t/200:/rad$/.test(e)?t:/turn$/.test(e)?Math.PI*t*2:/deg$/.test(e)?Math.PI*t/180:void 0}function yt(e,t){return t=new pn(t[0],t[1],t[2],t[3],t[4],t[5]),e.transform(t),t}function xt(e,t){e.clip(t)}function Ct(e,t,n,i){for(var o=new Ln([t,n],i).curvePoints(),r=1;r0?(o=e.className,e.className+=\" kendo-pdf-hide-pseudo-elements\",Ft(e,t),e.className=o,i.forEach(function(t){e.removeChild(t)})):Ft(e,t)))}function Ft(e,t){function i(t){var n,i,o,r,a,s;if(/^td$/i.test(e.tagName)&&(n=Ko.table,n&&\"collapse\"==ht(n.style,\"border-collapse\"))){if(i=ft(n.style,\"left\").width,o=ft(n.style,\"top\").width,0===i&&0===o)return t;if(r=n.element.getBoundingClientRect(),a=n.element.rows[0].cells[0],s=a.getBoundingClientRect(),s.top==r.top||s.left==r.left)return Ne(t).map(function(e){return{left:e.left+i,top:e.top+o,right:e.right+i,bottom:e.bottom+o,height:e.height,width:e.width}})}return t}function o(e,n,i,o,r,a,s,l){function d(t,n,o){var r=Math.PI/2*t/(t+i),a={x:n.x-t,y:n.y-i},s=new ni({fill:{color:e},stroke:null}).moveTo(0,0);yt(s,o),Ct(s,0,n.y,{startAngle:-90,endAngle:-wt(r),radiusX:n.x,radiusY:n.y}),a.x>0&&a.y>0?(s.lineTo(a.x*Math.cos(r),n.y-a.y*Math.sin(r)),Ct(s,0,n.y,{startAngle:-wt(r),endAngle:-90,radiusX:a.x,radiusY:a.y,anticlockwise:!0})):a.x>0?s.lineTo(a.x,i).lineTo(0,i):s.lineTo(a.x,i).lineTo(a.x,0),u.append(s.close())}if(!(i<=0)){var c,u=new ui;yt(u,l),t.append(u),St(a),St(s),c=new ni({fill:{color:e},stroke:null}),u.append(c),c.moveTo(a.x?Math.max(a.x,o):0,0).lineTo(n-(s.x?Math.max(s.x,r):0),0).lineTo(n-Math.max(s.x,r),i).lineTo(Math.max(a.x,o),i).close(),a.x&&d(o,a,[-1,0,0,1,a.x,0]),s.x&&d(r,s,[1,0,0,1,n-s.x,0])}}function r(e){var n,i,o=new ui;for(xt(o,It(e,D,I,E,A)),t.append(o),M&&(n=new ni({fill:{color:M.toCssRgba()},stroke:null}),n.moveTo(e.left,e.top).lineTo(e.right,e.top).lineTo(e.right,e.bottom).lineTo(e.left,e.bottom).close(),o.append(n)),i=d.length;--i>=0;)a(o,e,d[i],c[i%c.length],u[i%u.length],h[i%h.length],p[i%p.length])}function a(t,n,i,o,r,a,s){function l(t,n,i,l,d){function c(){for(;g.origin.x>n.left;)g.origin.x-=i}function u(){for(;g.origin.y>n.top;)g.origin.y-=l}function h(){for(;g.origin.x0&&d.height>0&&l(t,n,d.width,d.height,function(e,t){e.append(new di(i.url,t))})}else{if(\"linear\"!=i.type)return;l(t,n,n.width,n.height,Pt(i))}}function s(){function i(n){mt(e,function(){e.style.position=\"relative\";var i=e.ownerDocument.createElement(qo);i.style.position=\"absolute\",i.style.boxSizing=\"border-box\",\"outside\"==r?(i.style.width=\"6em\",i.style.left=\"-6.8em\",i.style.textAlign=\"right\"):i.style.left=\"0px\",n(i),e.insertBefore(i,e.firstChild),Gt(i,t),e.removeChild(i)})}function o(t){var n,i=e.parentNode.children,o=e.getAttribute(\"kendo-split-index\");if(null!=o)return t(0|o,i.length);for(n=0;n0&&(i&&\"ltr\"==R||a&&\"rtl\"==R),d=C.width>0&&(a&&\"ltr\"==R||i&&\"rtl\"==R),0!==x.width||0!==T.width||0!==C.width||0!==S.width)){if(x.color==C.color&&x.color==S.color&&x.color==T.color&&x.width==C.width&&x.width==S.width&&x.width==T.width&&l&&d)return n=_t(n,x.width/2),c=Dt(e,n,x.width/2),c.options.stroke={color:x.color,width:x.width},void t.append(c);if(0===D.x&&0===I.x&&0===E.x&&0===A.x&&x.width<2&&T.width<2&&C.width<2&&S.width<2)return x.width>0&&t.append(new ni({stroke:{width:x.width,color:x.color}}).moveTo(n.left,n.top+x.width/2).lineTo(n.right,n.top+x.width/2)),S.width>0&&t.append(new ni({stroke:{width:S.width,color:S.color}}).moveTo(n.left,n.bottom-S.width/2).lineTo(n.right,n.bottom-S.width/2)),l&&t.append(new ni({stroke:{width:T.width,color:T.color}}).moveTo(n.left+T.width/2,n.top).lineTo(n.left+T.width/2,n.bottom)),void(d&&t.append(new ni({stroke:{width:C.width,color:C.color}}).moveTo(n.right-C.width/2,n.top).lineTo(n.right-C.width/2,n.bottom)));u=Tt(n,D,I,E,A),h=u.tl,p=u.tr,f=u.br,m=u.bl,o(x.color,n.width,x.width,T.width,C.width,h,p,[1,0,0,1,n.left,n.top]),o(S.color,n.width,S.width,C.width,T.width,f,m,[-1,0,0,-1,n.right,n.bottom]),o(T.color,n.height,T.width,S.width,x.width,s(m),s(h),[0,-1,1,0,n.left,n.bottom]),o(C.color,n.height,C.width,x.width,S.width,s(p),s(f),[0,1,-1,0,n.right,n.top])}}var d,c,u,h,p,f,m,g,v,_,b,w,k,y=ut(e),x=ft(y,\"top\"),C=ft(y,\"right\"),S=ft(y,\"bottom\"),T=ft(y,\"left\"),D=gt(y,\"top-left\"),I=gt(y,\"top-right\"),A=gt(y,\"bottom-left\"),E=gt(y,\"bottom-right\"),R=ht(y,\"direction\"),M=ht(y,\"background-color\");if(M=nt(M),d=er(ht(y,\"background-image\")),c=tr(ht(y,\"background-repeat\")),u=tr(ht(y,\"background-position\")),h=tr(ht(y,\"background-origin\")),p=tr(ht(y,\"background-size\")),Qo&&(f=y.textOverflow,\"ellipsis\"==f&&(m=e.style.textOverflow,e.style.textOverflow=\"clip\")),Go.msie&&Go.version<10&&(u=tr(e.currentStyle.backgroundPosition)),g=_t(e.getBoundingClientRect(),\"border-*-width\",e),function(){var e,n,i,o,r,a,s,l=ht(y,\"clip\"),d=/^\\s*rect\\((.*)\\)\\s*$/.exec(l);d&&(e=d[1].split(/[ ,]+/g),n=\"auto\"==e[0]?g.top:parseFloat(e[0])+g.top,i=\"auto\"==e[1]?g.right:parseFloat(e[1])+g.left,o=\"auto\"==e[2]?g.bottom:parseFloat(e[2])+g.top,r=\"auto\"==e[3]?g.left:parseFloat(e[3])+g.left,a=new ui,s=(new ni).moveTo(r,n).lineTo(i,n).lineTo(i,o).lineTo(r,o).close(),xt(a,s),t.append(a),t=a,lt(s))}(),w=ht(y,\"display\"),\"table-row\"==w)for(v=[],_=0,b=e.children;_0&&\"list-item\"==w&&!e.getAttribute(\"kendo-no-bullet\")&&s(v[0]),function(){function n(){var n=Dt(e,g,\"padding\"),i=new ui;xt(i,n),t.append(i),t=i,lt(n)}Ht(e)?n():/^(hidden|auto|scroll)/.test(ht(y,\"overflow\"))?n():/^(hidden|auto|scroll)/.test(ht(y,\"overflow-x\"))?n():/^(hidden|auto|scroll)/.test(ht(y,\"overflow-y\"))&&n()}(),zt(e,t)||Wt(e,t),Qo&&\"ellipsis\"==f&&(e.style.textOverflow=m),t}function Pt(e){return function(t,n){var i,o,r,a,s,l,d,c,u,h,p,f,m,g=n.width(),v=n.height();switch(e.type){case\"linear\":switch(i=null!=e.angle?e.angle:Math.PI,e.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,g);break;case\"top right\":case\"right top\":i=Math.atan2(v,g);break;case\"bottom left\":case\"left bottom\":i=Math.PI+Math.atan2(v,g);break;case\"bottom right\":case\"right bottom\":i=Math.PI-Math.atan2(v,g)}e.reverse&&(i-=Math.PI),i%=2*Math.PI,i<0&&(i+=2*Math.PI),o=Math.abs(g*Math.sin(i))+Math.abs(v*Math.cos(i)),r=Math.atan(g*Math.tan(i)/v),a=Math.sin(r),s=Math.cos(r),l=Math.abs(a)+Math.abs(s),d=l/2*a,c=l/2*s,i>Math.PI/2&&i<=3*Math.PI/2&&(d=-d,c=-c),u=[],h=0,p=e.stops.map(function(t,n){var i,r=t.percent;return r?r=parseFloat(r)/100:t.length?r=parseFloat(t.length)/o:0===n?r=0:n==e.stops.length-1&&(r=1),i={color:t.color.toCssRgba(),offset:r},null!=r?(h=r,u.forEach(function(e,t){var n=e.stop;n.offset=e.left+(h-e.left)*(t+1)/(u.length+1)}),u=[]):u.push({left:h,stop:i}),i}),f=[.5-d,.5+c],m=[.5+d,.5-c],t.append(ni.fromRect(n).stroke(null).fill(new xi({start:f,end:m,stops:p,userSpace:!1})));break;case\"radial\":window.console&&window.console.log&&window.console.log(\"Radial gradients are not yet supported in HTML renderer\")}}}function zt(e,t){var n,i,o,r;return e._kendoExportVisual?n=e._kendoExportVisual():window.kendo&&window.kendo.jQuery&&e.getAttribute(window.kendo.attr(\"role\"))&&(i=window.kendo.widgetInstance(window.kendo.jQuery(e)),i&&(i.exportDOMVisual||i.exportVisual)&&(n=i.exportDOMVisual?i.exportDOMVisual():i.exportVisual())),!!n&&(o=new ui,o.children.push(n),r=e.getBoundingClientRect(),o.transform(M().translate(r.left,r.top)),t.append(o),!0)}function Bt(e,t,n){var i=vt(e),o=new kn([i.left,i.top],[i.width,i.height]),r=new di(t,o);xt(r,Dt(e,i,\"content\")),n.append(r)}function Lt(e,t){var n=ut(e),i=ut(t),o=parseFloat(ht(n,\"z-index\")),r=parseFloat(ht(i,\"z-index\")),a=ht(n,\"position\"),s=ht(i,\"position\");return isNaN(o)&&isNaN(r)?/static|absolute/.test(a)&&/static|absolute/.test(s)?0:\"static\"==a?-1:\"static\"==s?1:0:isNaN(o)?0===r?0:r>0?-1:1:isNaN(r)?0===o?0:o>0?1:-1:parseFloat(o)-parseFloat(r)}function Ht(e){return/^(?:textarea|select|input)$/i.test(e.tagName)}function Ot(e){return e.selectedOptions&&e.selectedOptions.length>0?e.selectedOptions[0]:e.options[e.selectedIndex]}function Nt(e,t){var n=ut(e),i=ht(n,\"color\"),o=e.getBoundingClientRect();\"checkbox\"==e.type?(t.append(ni.fromRect(new kn([o.left+1,o.top+1],[o.width-2,o.height-2])).stroke(i,1)),e.checked&&t.append((new ni).stroke(i,1.2).moveTo(o.left+.22*o.width,o.top+.55*o.height).lineTo(o.left+.45*o.width,o.top+.75*o.height).lineTo(o.left+.78*o.width,o.top+.22*o.width))):(t.append(new Mn(new Sn([(o.left+o.right)/2,(o.top+o.bottom)/2],Math.min(o.width-2,o.height-2)/2)).stroke(i,1)),e.checked&&t.append(new Mn(new Sn([(o.left+o.right)/2,(o.top+o.bottom)/2],Math.min(o.width-8,o.height-8)/2)).fill(i).stroke(null)))}function Vt(e,t){var n,i,o,r,a,s=e.tagName.toLowerCase();if(\"input\"==s&&(\"checkbox\"==e.type||\"radio\"==e.type))return Nt(e,t);if(n=e.parentNode,i=e.ownerDocument,o=i.createElement(qo),o.style.cssText=Rt(ut(e)),\"input\"==s&&(o.style.whiteSpace=\"pre\"),\"select\"!=s&&\"textarea\"!=s||(o.style.overflow=\"auto\"),\"select\"==s)if(e.multiple)for(a=0;a=c)return!0;if(m.setStart(t,d),m.setEnd(t,d+1),e=i(m),n=!1,(v||_>1)&&(f=l.substr(d).search(/\\s/),f>=0&&(m.setEnd(t,d+f),o=i(m),o.bottom==e.bottom&&(e=o,n=!0,d+=f))),!n){if(f=function g(n,o,r){m.setEnd(t,o);var a=i(m);return a.bottom!=e.bottom&&n>1,o):a.right!=e.right?(e=a,o>1,r):o):o}(d,Math.min(c,d+k),c),f==d)return!0;if(d=f,f=(\"\"+m).search(/\\s+$/),0===f)return!1;f>0&&(m.setEnd(t,m.startOffset+f),e=i(m))}if(Qo&&(e=m.getClientRects()[0]),a=\"\"+m,/^(?:pre|pre-wrap)$/i.test(b)){if(/\\t/.test(a)){for(s=0,f=p;f=0;)h=\" \".substr(0,8-(s+f)%8),a=a.substr(0,f)+h+a.substr(f+1)}}else a=a.replace(/\\s+/g,\" \");n||(y=e.bottom),r(a,e)}function r(e,t){var i,o,r;switch(Qo&&!isNaN(h)&&(i=ir(p),o=(t.top+t.bottom-i)/2,t={top:o,right:t.right,bottom:o+i,left:t.left,height:i,width:t.right-t.left}),w){case\"uppercase\":e=e.toUpperCase();break;case\"lowercase\":e=e.toLowerCase();break;case\"capitalize\":e=e.replace(/(?:^|\\s)\\S/g,function(e){return e.toUpperCase()})}r=new Xo(e,new kn([t.left,t.top],[t.width,t.height]),{font:p,fill:{color:f}}),n.append(r)}function a(e){function t(t,i){var o,r;t&&(o=u/12,r=new ni({stroke:{width:o,color:t}}),i-=o,r.moveTo(e.left,i).lineTo(e.right,i),n.append(r))}t(x,e.bottom),t(C,e.bottom-e.height/2.7),t(S,e.top)}var s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C,S,T;if(!dt()&&(s=ut(e),!(parseFloat(ht(s,\"text-indent\"))<-500)&&(l=t.data,d=0,c=l.search(/\\S\\s*$/)+1,c&&(u=ht(s,\"font-size\"),h=ht(s,\"line-height\"),p=[ht(s,\"font-style\"),ht(s,\"font-variant\"),ht(s,\"font-weight\"),u,ht(s,\"font-family\")].join(\" \"),u=parseFloat(u),h=parseFloat(h),0!==u)))){for(f=ht(s,\"color\"),m=e.ownerDocument.createRange(),g=ht(s,\"text-align\"),v=\"justify\"==g,_=ht(s,\"column-count\",1),b=ht(s,\"white-space\"),w=ht(s,\"text-transform\"),k=e.getBoundingClientRect().width/u*5,0===k&&(k=500),y=null,x=Ko.underline,C=Ko[\"line-through\"],S=Ko.overline,T=x||C||S;!o(););T&&(m.selectNode(t),Ne(m.getClientRects()).forEach(a))}}function jt(e,t,n){var i,o,r,a,s,l;for(\"auto\"!=n?(i=Ko._stackingContext.group,n=parseFloat(n)):(i=t,n=0),o=i.children,r=0;rn);++r);return a=new ui,i.insert(r,a),a._dom_zIndex=n,i!==t&&Ko._clipbox&&(s=Ko._matrix.invert(),l=Ko._clipbox.transformCopy(s),xt(a,ni.fromRect(l))),a}function Gt(e,t){var n,i,o,r,a,s,l=ut(e);tt(l),/^(style|script|link|meta|iframe|col|colgroup)$/i.test(e.tagName)||null!=Ko._clipbox&&(n=parseFloat(ht(l,\"opacity\")),i=ht(l,\"visibility\"),o=ht(l,\"display\"),0!==n&&\"hidden\"!=i&&\"none\"!=o&&(r=bt(l),s=ht(l,\"z-index\"),(r||n<1)&&\"auto\"==s&&(s=0),a=jt(e,t,s),n<1&&a.opacity(n*a.opacity()),at(e,l,a),r?mt(e,function(){var t,n,i,o;pt(e.style,\"transform\",\"none\",\"important\"),pt(e.style,\"transition\",\"none\",\"important\"),\"static\"==ht(l,\"position\")&&pt(e.style,\"position\",\"relative\",\"important\"),t=e.getBoundingClientRect(),n=t.left+r.origin[0],i=t.top+r.origin[1],o=[1,0,0,1,-n,-i],o=qt(o,r.matrix),o=qt(o,[1,0,0,1,n,i]),o=yt(a,o),Ko._matrix=Ko._matrix.multiplyCopy(o),Mt(e,a)}):Mt(e,a),st()))}function qt(e,t){var n=e[0],i=e[1],o=e[2],r=e[3],a=e[4],s=e[5],l=t[0],d=t[1],c=t[2],u=t[3],h=t[4],p=t[5];return[n*l+i*c,n*d+i*u,o*l+r*c,o*d+r*u,a*l+s*c+h,a*d+s*u+p]}var $t,Kt,Yt,Qt,Xt,Zt,Jt,en,tn,nn,on,rn,an,sn,ln,dn,cn,un,hn,pn,fn,mn,gn,vn,_n,bn,wn,kn,yn,xn,Cn,Sn,Tn,Dn,In,An,En,Rn,Mn,Fn,Pn,zn,Bn,Ln,Hn,On,Nn,Vn,Wn,Un,jn,Gn,qn,$n,Kn,Yn,Qn,Xn,Zn,Jn,ei,ti,ni,ii,oi,ri,ai,si,li,di,ci,ui,hi,pi,fi,mi,gi,vi,_i,bi,wi,ki,yi,xi,Ci,Si,Ti,Di,Ii,Ai,Ei,Ri,Mi,Fi,Pi,zi,Bi,Li,Hi,Oi,Ni,Vi,Wi,Ui,ji,Gi,qi,$i,Ki,Yi,Qi,Xi,Zi,Ji,eo,to,no,io,oo,ro,ao,so,lo,co,uo,ho,po,fo,mo,go,vo,_o,bo,wo,ko,yo,xo,Co,So,To,Do,Io,Ao,Eo,Ro,Mo,Fo,Po,zo,Bo,Lo,Ho,Oo,No,Vo,Wo,Uo,jo,Go,qo,$o,Ko,Yo,Qo,Xo,Zo,Jo,er,tr,nr,ir,or;window.kendo=window.kendo||{},$t=kendo.drawing,Kt=$t.util,Yt=Kt.extendStatic,Qt=kendo.Class,Xt=kendo.util,Zt=kendo.support,Jt=Zt.browser,en=Kt.createPromise,tn=Kt.promiseAll,nn=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.observers=function(){return this._observers=this._observers||[]},t.prototype.addObserver=function(e){return this._observers?this._observers.push(e):this._observers=[e],this},t.prototype.removeObserver=function(e){var t=this.observers(),n=t.indexOf(e);return n!==-1&&t.splice(n,1),this},t.prototype.trigger=function(e,t){var n,i,o=this._observers;if(o&&!this._suspended)for(n=0;n=0,l=this,d=e;if(s){for(i=d.split(\".\"),o=this.prefix;i.length>1;)d=i.shift(),o+=d+\".\",r=l[d],r||(r=new t({},o),r.addObserver(a),l[d]=r),l=r;d=i[0]}l._clear(d),l[d]=n},t.prototype._clear=function(e){var t=this[e];t&&t.removeObserver&&t.removeObserver(this)},t.prototype._wrap=function(e,n){var o=gn.call(e),r=e;return null!==r&&i(r)&&\"[object Object]\"===o&&(e instanceof t||e instanceof Qt||(r=new t(r,this.prefix+n+\".\")),r.addObserver(this)),r},t}(nn),_n=function(e,t){var n=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t}(e);return E(n.prototype,t),n},bn=function(e){function t(t,n){e.call(this),this.x=t||0,this.y=n||0}Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor;var n={ZERO:{}};return t.prototype.equals=function(e){return e&&e.x===this.x&&e.y===this.y},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.rotate=function(e,n){var i=t.create(n)||t.ZERO;return this.transform(pn.rotate(e,i.x,i.y))},t.prototype.translate=function(e,t){return this.x+=e,this.y+=t,this.geometryChange(),this},t.prototype.translateWith=function(e){return this.translate(e.x,e.y)},t.prototype.move=function(e,t){return this.x=this.y=0,this.translate(e,t)},t.prototype.scale=function(e,t){return void 0===t&&(t=e),this.x*=e,this.y*=t,this.geometryChange(),this},t.prototype.scaleCopy=function(e,t){return this.clone().scale(e,t)},t.prototype.transform=function(e){var t=R(e),n=this,i=n.x,o=n.y;return this.x=t.a*i+t.c*o+t.e,this.y=t.b*i+t.d*o+t.f,this.geometryChange(),this},t.prototype.transformCopy=function(e){var t=this.clone();return e&&t.transform(e),t},t.prototype.distanceTo=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},t.prototype.round=function(e){return this.x=g(this.x,e),this.y=g(this.y,e),this.geometryChange(),this},t.prototype.toArray=function(e){var t=i(e),n=t?g(this.x,e):this.x,o=t?g(this.y,e):this.y;return[n,o]},t.prototype.toString=function(e,t){var n,o,r;return void 0===t&&(t=\" \"),n=this,o=n.x,r=n.y,i(e)&&(o=g(o,e),r=g(r,e)),o+t+r},t.create=function(e,n){if(i(e))return e instanceof t?e:1===arguments.length&&2===e.length?new t(e[0],e[1]):new t(e,n)},t.min=function(){var e,n,i=arguments,o=ln,r=ln;for(e=0;e0&&!c(e.color)},t.prototype._clippedBBox=function(e){return this.bbox(e)},Object.defineProperties(t.prototype,n),t}(nn),Cn=Math.PI/2,Sn=function(e){function t(t,n){void 0===t&&(t=new bn),void 0===n&&(n=0),e.call(this),this.setCenter(t),this.setRadius(n)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.setCenter=function(e){return this._observerField(\"center\",bn.create(e)),this.geometryChange(),this},t.prototype.getCenter=function(){return this.center},t.prototype.equals=function(e){return e&&e.center.equals(this.center)&&e.radius===this.radius},t.prototype.clone=function(){return new t(this.center.clone(),this.radius)},t.prototype.pointAt=function(e){return this._pointAt(f(e))},t.prototype.bbox=function(e){var t,n,i,o,r=this,a=F(this.center,this.radius,this.radius,e),s=bn.maxPoint(),l=bn.minPoint();for(t=0;t<4;t++)n=r._pointAt(a.x+t*Cn).transformCopy(e),i=r._pointAt(a.y+t*Cn).transformCopy(e),o=new bn(n.x,i.y),s=bn.min(s,o),l=bn.max(l,o);return kn.fromPoints(s,l)},t.prototype._pointAt=function(e){var t=this,n=t.center,i=t.radius;return new bn(n.x+i*Math.cos(e),n.y+i*Math.sin(e))},t.prototype.containsPoint=function(e){var t=this,n=t.center,i=t.radius,o=Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2)<=Math.pow(i,2);return o},t.prototype._isOnPath=function(e,t){var n=this,i=n.center,o=n.radius,r=i.distanceTo(e);return o-t<=r&&r<=o+t},t}(_n(nn,[\"radius\"])),Tn=\"Gradient\",Dn=function(e){return function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.fill=function(e,t){var n,o=this.options;return i(e)?(e&&e.nodeType!==Tn?(n={color:e},i(t)&&(n.opacity=t),o.set(\"fill\",n)):o.set(\"fill\",e),this):o.get(\"fill\")},t.prototype.stroke=function(e,t,n){return i(e)?(this.options.set(\"stroke.color\",e),i(t)&&this.options.set(\"stroke.width\",t),i(n)&&this.options.set(\"stroke.opacity\",n),this):this.options.get(\"stroke\")},t}(e)},In=\"\"+pn.IDENTITY,An=function(e){return function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.bbox=function n(e){var n,t,i=R(this.currentTransform(e)),o=i?\"\"+i:In;return this._bboxCache&&this._matrixHash===o?n=this._bboxCache.clone():(n=this._bbox(i),this._bboxCache=n?n.clone():null,this._matrixHash=o),t=this.options.get(\"stroke.width\"),t&&n&&n.expand(t/2),n},t.prototype.geometryChange=function(){delete this._bboxCache,this.trigger(\"geometryChange\",{element:this})},t}(e)},En=function(e,t){void 0===t&&(t=[\"geometry\"]);var n=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t}(e);return z(n.prototype,t),n},Rn=\"#000\",Mn=function(e){function t(t,n){void 0===t&&(t=new Sn),void 0===n&&(n={}),e.call(this,n),this.geometry(t),i(this.options.stroke)||this.stroke(Rn)}Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor;var n={nodeType:{}};return n.nodeType.get=function(){return\"Circle\"},t.prototype.rawBBox=function(){return this._geometry.bbox()},t.prototype._bbox=function(e){return this._geometry.bbox(e)},t.prototype._containsPoint=function(e){return this.geometry().containsPoint(e)},t.prototype._isOnPath=function(e){return this.geometry()._isOnPath(e,this.options.stroke.width/2)},Object.defineProperties(t.prototype,n),t}(Dn(An(En(xn)))),Fn=10,Pn=45,zn=Math.pow,Bn=[\"radiusX\",\"radiusY\",\"startAngle\",\"endAngle\",\"anticlockwise\"],Ln=function(e){function t(t,n){void 0===t&&(t=new bn),void 0===n&&(n={}),e.call(this),this.setCenter(t),this.radiusX=n.radiusX,this.radiusY=n.radiusY||n.radiusX,this.startAngle=n.startAngle,\nthis.endAngle=n.endAngle,this.anticlockwise=n.anticlockwise||!1,this.xRotation=n.xRotation}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.clone=function(){return new t(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})},t.prototype.setCenter=function(e){return this._observerField(\"center\",bn.create(e)),this.geometryChange(),this},t.prototype.getCenter=function(){return this.center},t.prototype.pointAt=function(e){var t=this.center,n=f(e);return new bn(t.x+this.radiusX*Math.cos(n),t.y+this.radiusY*Math.sin(n))},t.prototype.curvePoints=function n(){var e,t,i,o,r=this,a=this.startAngle,s=this.anticlockwise?-1:1,n=[this.pointAt(a)],l=this._arcInterval(),d=l.endAngle-l.startAngle,c=Math.ceil(d/Pn),u=d/c,h=a;for(this.xRotation&&(e=M().rotate(this.xRotation,this.center)),t=1;t<=c;t++)i=h+s*u,o=r._intervalCurvePoints(h,i,e),n.push(o.cp1,o.cp2,o.p2),h=i;return n},t.prototype.bbox=function(e){for(var t,n,i=this,o=this._arcInterval(),a=o.startAngle,s=o.endAngle,l=F(this.center,this.radiusX,this.radiusY,e),d=r(l.x),c=r(l.y),u=this.pointAt(s).transformCopy(e),h=V(d,a),p=V(c,a),f=this.pointAt(a).transformCopy(e),m=bn.min(f,u),g=bn.max(f,u);hi||o&&n===i)&&(i+=360),{startAngle:n,endAngle:i}},t.prototype._intervalCurvePoints=function(e,t,n){var i=this.pointAt(e),o=this.pointAt(t),r=this._derivativeAt(e),a=this._derivativeAt(t),s=(f(t)-f(e))/3,l=new bn(i.x+s*r.x,i.y+s*r.y),d=new bn(o.x-s*a.x,o.y-s*a.y);return n&&(i.transform(n),o.transform(n),l.transform(n),d.transform(n)),{p1:i,cp1:l,cp2:d,p2:o}},t.prototype._derivativeAt=function(e){var t=f(e);return new bn(-this.radiusX*Math.sin(t),this.radiusY*Math.cos(t))},t.prototype.containsPoint=function i(e){var i,t,n,o=this._arcInterval(),r=o.endAngle-o.startAngle,a=this,s=a.center,l=a.radiusX,d=a.radiusY,c=s.distanceTo(e),u=Math.atan2(e.y-s.y,e.x-s.x),h=l*d/Math.sqrt(zn(l,2)*zn(Math.sin(u),2)+zn(d,2)*zn(Math.cos(u),2)),p=this.pointAt(this.startAngle).round(Fn),f=this.pointAt(this.endAngle).round(Fn),m=H(s,e.round(Fn),p,f);return r<180?i=m&&L(s.distanceTo(m),c)&&L(c,h):(t=O(s.x,s.y,l,d,e.x,e.y),360!==t&&(t=(360+t)%360),n=o.startAngle<=t&&t<=o.endAngle,i=n&&L(c,h)||!n&&(!m||m.equals(e))),i},t.prototype._isOnPath=function(e,t){var n,i=this._arcInterval(),o=this.center,r=O(o.x,o.y,this.radiusX,this.radiusY,e.x,e.y);return 360!==r&&(r=(360+r)%360),n=i.startAngle<=r&&r<=i.endAngle,n&&this.pointAt(r).distanceTo(e)<=t},t.fromPoints=function(e,n,i,o,r,a,s){var l=N({x1:e.x,y1:e.y,x2:n.x,y2:n.y,rx:i,ry:o,largeArc:r,swipe:a,rotation:s});return new t(l.center,{startAngle:l.startAngle,endAngle:l.endAngle,radiusX:l.radiusX,radiusY:l.radiusY,xRotation:l.xRotation,anticlockwise:0===a})},t}(_n(nn,Bn)),Hn=[].push,On=[].pop,Nn=[].splice,Vn=[].shift,Wn=[].slice,Un=[].unshift,jn=function(e){function t(t){void 0===t&&(t=[]),e.call(this),this.length=0,this._splice(0,t.length,t)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.elements=function(e){return e?(this._splice(0,this.length,e),this._change(),this):this.slice(0)},t.prototype.push=function(){var e=arguments,t=Hn.apply(this,e);return this._add(e),t},t.prototype.slice=function(){return Wn.call(this)},t.prototype.pop=function(){var e=this.length,t=On.apply(this);return e&&this._remove([t]),t},t.prototype.splice=function(e,t){var n=Wn.call(arguments,2),i=this._splice(e,t,n);return this._change(),i},t.prototype.shift=function(){var e=this.length,t=Vn.apply(this);return e&&this._remove([t]),t},t.prototype.unshift=function(){var e=arguments,t=Un.apply(this,e);return this._add(e),t},t.prototype.indexOf=function(e){var t,n=this,i=this.length;for(t=0;t1)&&(o=0),r=Math.min(Math.max(c,u),1),(r>1||r<0)&&(r=1),{min:o,max:r}},t.prototype._intersectionsTo=function(e,t){var n;return n=this.controlOut()&&e.controlIn()?Y([this.anchor(),this.controlOut(),e.controlIn(),e.anchor()],t,this.bboxTo(e)):Q(this.anchor(),e.anchor(),t)},t.prototype._isOnCurveTo=function(e,t,n,i){var o,r,a,s,l,d,c,u=this.bboxTo(e).expand(n,n);if(u.containsPoint(t))return o=this.anchor(),r=this.controlOut(),a=e.controlIn(),s=e.anchor(),\"start\"===i&&o.distanceTo(t)<=n?!W(o,r,t):\"end\"===i&&s.distanceTo(t)<=n?!W(s,a,t):(l=[o,r,a,s],!(!K(l,t,\"x\",\"y\",n)&&!K(l,t,\"y\",\"x\",n))||(d=M().rotate(45,t),c=[o.transformCopy(d),r.transformCopy(d),a.transformCopy(d),s.transformCopy(d)],K(c,t,\"x\",\"y\",n)||K(c,t,\"y\",\"x\",n)))},t.prototype._isOnLineTo=function(e,t,n){var i=this.anchor(),o=e.anchor(),a=r(Math.atan2(o.y-i.y,o.x-i.x)),s=new kn([i.x,i.y-n/2],[i.distanceTo(o),n]);return s.containsPoint(t.transformCopy(M().rotate(-a,i)))},t.prototype._isOnPathTo=function(e,t,n,i){var o;return o=this.controlOut()&&e.controlIn()?this._isOnCurveTo(e,t,n/2,i):this._isOnLineTo(e,t,n)},t}($n(nn,Kn)),Qn={l:function(e,t){var n,i,o=t.parameters,r=t.position;for(n=0;n0&&(i=u(this.segments),o=new Yn(n,t),this.suspend(),i.controlOut(e),this.resume(),this.segments.push(o)),this},t.prototype.arc=function o(e,t,n,i,r){var a,s,l,d,o;return this.segments.length>0&&(a=u(this.segments),s=a.anchor(),l=f(e),d=new bn(s.x-n*Math.cos(l),s.y-i*Math.sin(l)),o=new Ln(d,{startAngle:e,endAngle:t,radiusX:n,radiusY:i,anticlockwise:r}),this._addArcSegments(o)),this},t.prototype.arcTo=function(e,t,n,i,o,r){var a,s,l;return this.segments.length>0&&(a=u(this.segments),s=a.anchor(),l=Ln.fromPoints(s,bn.create(e),t,n,i,o,r),this._addArcSegments(l)),this},t.prototype._addArcSegments=function(e){var t,n,i=this;for(this.suspend(),t=e.curvePoints(),n=1;n1){if(i[0]._isOnPathTo(i[1],e,r,\"start\"))return!0;for(n=2;n<=o-2;n++)if(i[n-1]._isOnPathTo(i[n],e,r))return!0;if(i[o-2]._isOnPathTo(i[o-1],e,r,\"end\"))return!0}return!1},t.prototype._bbox=function(e){var t,n,i,o,r=this.segments,a=r.length;if(1===a)n=r[0].anchor().transformCopy(e),t=new kn(n,wn.ZERO);else if(a>0)for(i=1;i0&&u(this.paths).lineTo(e,t),this},t.prototype.curveTo=function(e,t,n){return this.paths.length>0&&u(this.paths).curveTo(e,t,n),this},t.prototype.arc=function(e,t,n,i,o){return this.paths.length>0&&u(this.paths).arc(e,t,n,i,o),this},t.prototype.arcTo=function(e,t,n,i,o,r){return this.paths.length>0&&u(this.paths).arcTo(e,t,n,i,o,r),this},t.prototype.close=function(){return this.paths.length>0&&u(this.paths).close(),this},t.prototype._bbox=function(e){return re(this.paths,!0,e)},t.prototype.rawBBox=function(){return re(this.paths,!1)},t.prototype._containsPoint=function(e){var t,n=this.paths;for(t=0;t0)for(t.moveTo(n[0].x,n[0].y),e=1;e=0&&(this.children.splice(t,1),e.parent=null,this.childrenChange(\"remove\",[e],t)),this},n.prototype.removeAt=function(e){if(0<=e&&e=0;n--)t(e[n],n)},mi=function(t){function n(n,i){t.call(this,e.extend({},hi,i)),this._rect=n,this._fieldMap={}}return Yt(n,t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor,n.prototype.rect=function(e){return e?(this._rect=e,this):this._rect},n.prototype._initMap=function(){var e=this.options,t=this._fieldMap;\"horizontal\"===e.orientation?(t.sizeField=\"width\",t.groupsSizeField=\"height\",t.groupAxis=\"x\",t.groupsAxis=\"y\"):(t.sizeField=\"height\",t.groupsSizeField=\"width\",t.groupAxis=\"y\",t.groupsAxis=\"x\"),e.reverse?(this.forEach=fi,this.justifyAlign=de):(this.forEach=pi,this.justifyAlign=le)},n.prototype.reflow=function(){var e,t,n,i,o,r,a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C=this;if(this._rect&&0!==this.children.length){for(this._initMap(),this.options.transform&&this.transform(null),e=this.options,t=this._rect,n=this._initGroups(),i=n.groups,o=n.groupsSize,r=this._fieldMap,a=r.sizeField,s=r.groupsSizeField,l=r.groupAxis,d=r.groupsAxis,c=new bn,u=new bn,h=new wn,p=le(o,t,e.alignContent,d,s),v=function(t,n){var i=m.elements[n];u[l]=f,u[d]=le(t.size[s],g,e.alignItems,d,s),se(u,t,i),f+=t.size[a]+e.spacing},_=0;_t.size[a]&&(b=t.size[a]/g.size[a],w=g.topLeft().scale(b,b),k=g.size[s]*b,y=le(k,t,e.alignContent,d,s),x=M(),\"x\"===l?x.translate(t.origin.x-w.x,y-w.y):x.translate(y-w.x,t.origin.y-w.y),x.scale(b,b),this.transform(x))}},n.prototype._initGroups=function(){var e,t,n,i=this,o=this,r=o.options,a=o.children,s=r.lineSpacing,l=r.wrap,d=r.spacing,c=this._fieldMap.sizeField,u=this._newGroup(),h=[],p=function(){h.push(u),f+=u.lineSize+s},f=-s;for(e=0;ei._rect.size[c]?0===u.bboxes.length?(i._addToGroup(u,n,t),p(),u=i._newGroup()):(p(),u=i._newGroup(),i._addToGroup(u,n,t)):i._addToGroup(u,n,t));return u.bboxes.length&&p(),{groups:h,groupsSize:f}},n.prototype._addToGroup=function(e,t,n){e.size+=t.size[this._fieldMap.sizeField]+this.options.spacing,e.lineSize=Math.max(t.size[this._fieldMap.groupsSizeField],e.lineSize),e.bboxes.push(t),e.elements.push(n)},n.prototype._newGroup=function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}},n}(ui),gi=function(e){function t(t,n){void 0===t&&(t=new kn),void 0===n&&(n={}),e.call(this,n),this.geometry(t),i(this.options.stroke)||this.stroke(\"#000\")}Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor;var n={nodeType:{}};return n.nodeType.get=function(){return\"Rect\"},t.prototype._bbox=function(e){return this._geometry.bbox(e)},t.prototype.rawBBox=function(){return this._geometry.bbox()},t.prototype._containsPoint=function(e){return this._geometry.containsPoint(e)},t.prototype._isOnPath=function(e){return this.geometry()._isOnPath(e,this.options.stroke.width/2)},Object.defineProperties(t.prototype,n),t}(Dn(An(En(xn)))),vi=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype._change=function(){this.optionsChange({field:\"stops\"})},t}(jn),_i=function(e,t){var n=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t}(e);return xe(n.prototype,t),n},bi=[\"offset\",\"color\",\"opacity\"],wi=function(e){function t(t,n,o){e.call(this),this.options=new vn({offset:t,color:n,opacity:i(o)?o:1}),this.options.addObserver(this)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.create=function(e){if(i(e)){var n;return n=e instanceof t?e:e.length>1?new t(e[0],e[1],e[2]):new t(e.offset,e.color,e.opacity)}},t}(_i(nn,bi)),ki=function(e){function t(t){void 0===t&&(t={}),e.call(this),this.stops=new vi(this._createStops(t.stops)),this.stops.addObserver(this),this._userSpace=t.userSpace,this.id=o()}Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor;var n={nodeType:{}};return n.nodeType.get=function(){return\"Gradient\"},t.prototype.userSpace=function(e){return i(e)?(this._userSpace=e,this.optionsChange(),this):this._userSpace},t.prototype._createStops=function(e){var t,n;for(void 0===e&&(e=[]),t=[],n=0;n=0&&this.stops.splice(t,1)},t.prototype.optionsChange=function(e){this.trigger(\"optionsChange\",{field:\"gradient\"+(e?\".\"+e.field:\"\"),value:this})},t.prototype.geometryChange=function(){this.optionsChange()},Object.defineProperties(t.prototype,n),t}(nn),yi=[\"start\",\"end\"],xi=function(e){function t(t){void 0===t&&(t={}),e.call(this,t),this.start(t.start||new bn),this.end(t.end||new bn(1,0))}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t}($n(ki,yi)),Ci=function(e){function t(t){void 0===t&&(t={}),e.call(this,t),this.center(t.center||new bn),this._radius=i(t.radius)?t.radius:1,this._fallbackFill=t.fallbackFill}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.radius=function(e){return i(e)?(this._radius=e,this.geometryChange(),this):this._radius},t.prototype.fallbackFill=function(e){return i(e)?(this._fallbackFill=e,this.optionsChange(),this):this._fallbackFill},t}($n(ki,[\"center\"])),Si={swing:Ce,linear:Se,easeOutElastic:Te},Di=function(e){function t(){e.call(this),this._items=[]}Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor;var n={current:{}};return n.current.get=function(){return Ti||(Ti=new t),Ti},t.prototype.register=function(e,t){this._items.push({name:e,type:t})},t.prototype.create=function(e,t){var n,i,o,r=this._items;if(t&&t.type)for(i=t.type.toLowerCase(),o=0;o0||t.height>0)&&(!n||t.width!==n.width||t.height!==n.height))&&(this.currentSize(t),this._resize(t,e),this.trigger(\"resize\",t))},n.prototype.size=function(e){return e?void this.setSize(e):this.getSize()},n.prototype.suspendTracking=function(){this._suspendedTracking=!0},n.prototype.resumeTracking=function(){this._suspendedTracking=!1},n.prototype._enableTracking=function(){},n.prototype._resize=function(){},n.prototype._handler=function(e){var t=this;return function(n){var i=t.eventTarget(n);i&&!t._suspendedTracking&&t.trigger(e,{element:i,originalEvent:n,type:e})}},n.prototype._elementOffset=function(){var e=this.element,t=C(e),n=b(e),i=n.left,o=n.top;return{left:i+t.left,top:o+t.top}},n.prototype._surfacePoint=function(e){var t=this._elementOffset(),n=l(e),i=n.x-t.left,o=n.y-t.top,r=D(this.element).invert(),a=new bn(i,o).transform(r);return a},n}(kendo.Observable),Pi={},zi=\"http://www.w3.org/2000/svg\",Bi=\"none\",Li=function(e,t){e.innerHTML=t},\"undefined\"!=typeof document&&(Hi=\"\",Oi=document.createElement(\"div\"),Ni=\"undefined\"!=typeof DOMParser,Oi.innerHTML=Hi,Ni&&Oi.firstChild.namespaceURI!==zi&&(Li=function(e,t){var n=new DOMParser,i=n.parseFromString(t,\"text/xml\"),o=document.adoptNode(i.documentElement);e.innerHTML=\"\",e.appendChild(o)})),Vi=Li,Wi=\"transform\",Ui={clip:\"clip-path\",fill:\"fill\"},ji=function(e){function t(t,n){e.call(this,t),this.definitions={},this.options=n}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.destroy=function(){this.element&&(this.element._kendoNode=null,\nthis.element=null),this.clearDefinitions(),e.prototype.destroy.call(this)},t.prototype.load=function(e,t){var n,o,r,a,s,l=this;for(n=0;n0&&a.load(r),s=l.element,s&&a.attachTo(s,t)},t.prototype.root=function n(){for(var n=this;n.parent;)n=n.parent;return n},t.prototype.attachTo=function(e,t){var n,o=document.createElement(\"div\");Vi(o,\"\"+this.render()+\"\"),n=o.firstChild.firstChild,n&&(i(t)?e.insertBefore(n,e.childNodes[t]||null):e.appendChild(n),this.setElement(n))},t.prototype.setElement=function(e){var t,n,i;for(this.element&&(this.element._kendoNode=null),this.element=e,this.element._kendoNode=this,t=this.childNodes,n=0;n\"},t.prototype.renderOffset=function(){return De(\"offset\",this.srcElement.offset())},t.prototype.mapStyle=function(){var e=this.srcElement;return[[\"stop-color\",e.color()],[\"stop-opacity\",e.opacity()]]},t.prototype.optionsChange=function(e){\"offset\"===e.field?this.attr(e.field,e.value):\"color\"!==e.field&&\"opacity\"!==e.field||this.css(\"stop-\"+e.field,e.value)},t}(ji),qi=function(e){function t(t){e.call(this,t),this.id=t.id,this.loadStops()}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.loadStops=function(){var e,t,n=this,i=this.srcElement.stops,o=this.element;for(e=0;e\"+this.renderChildren()+\"\"},t.prototype.mapCoordinates=function(){var e=this.srcElement,t=e.start(),n=e.end(),i=[[\"x1\",t.x],[\"y1\",t.y],[\"x2\",n.x],[\"y2\",n.y],this.mapSpace()];return i},t}(qi),Ki=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.template=function(){return\"\"+this.renderChildren()+\"\"},t.prototype.mapCoordinates=function(){var e=this.srcElement,t=e.center(),n=e.radius(),i=[[\"cx\",t.x],[\"cy\",t.y],[\"r\",n],this.mapSpace()];return i},t}(qi),Yi=function(e){function t(t){e.call(this),this.srcElement=t,this.id=t.id,this.load([t])}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.template=function(){return\"\"+this.renderChildren()+\"\"},t}(ji),Qi=function(e){function t(){e.call(this),this.definitionMap={}}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.attachTo=function(e){this.element=e},t.prototype.template=function(){return\"\"+this.renderChildren()+\"\"},t.prototype.definitionChange=function(e){var t=e.definitions,n=e.action;\"add\"===n?this.addDefinitions(t):\"remove\"===n&&this.removeDefinitions(t)},t.prototype.createDefinition=function(e,t){var n;return\"clip\"===e?n=Yi:\"fill\"===e&&(t instanceof xi?n=$i:t instanceof Ci&&(n=Ki)),new n(t)},t.prototype.addDefinitions=function(e){var t,n=this;for(t in e)n.addDefinition(t,e[t])},t.prototype.addDefinition=function(e,t){var n,i=this,o=i.element,r=i.definitionMap,a=t.id,s=r[a];s?s.count++:(n=this.createDefinition(e,t),r[a]={element:n,count:1},this.append(n),o&&n.attachTo(this.element))},t.prototype.removeDefinitions=function(e){var t,n=this;for(t in e)n.removeDefinition(e[t])},t.prototype.removeDefinition=function(e){var t=this.definitionMap,n=e.id,i=t[n];i&&(i.count--,0===i.count&&(this.remove(this.childNodes.indexOf(i.element),1),delete t[n]))},t}(ji),Xi=function(e){function t(t){e.call(this),this.options=t,this.defs=new Qi}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.attachTo=function(e){this.element=e,this.defs.attachTo(e.firstElementChild)},t.prototype.clear=function(){Ri.prototype.clear.call(this)},t.prototype.template=function(){return this.defs.render()+this.renderChildren()},t.prototype.definitionChange=function(e){this.defs.definitionChange(e)},t}(ji),Zi={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},Ji=\"solid\",eo=\"butt\",to={\"fill.opacity\":\"fill-opacity\",\"stroke.color\":\"stroke\",\"stroke.width\":\"stroke-width\",\"stroke.opacity\":\"stroke-opacity\"},no=\" \",io=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.geometryChange=function(){this.attr(\"d\",this.renderData()),this.invalidate()},t.prototype.optionsChange=function(t){switch(t.field){case\"fill\":t.value?this.allAttr(this.mapFill(t.value)):this.removeAttr(\"fill\");break;case\"fill.color\":this.allAttr(this.mapFill({color:t.value}));break;case\"stroke\":t.value?this.allAttr(this.mapStroke(t.value)):this.removeAttr(\"stroke\");break;case\"transform\":this.transformChange(t.value);break;default:var n=to[t.field];n&&this.attr(n,t.value)}e.prototype.optionsChange.call(this,t)},t.prototype.content=function(){this.element&&(this.element.textContent=this.srcElement.content())},t.prototype.renderData=function(){return this.printPath(this.srcElement)},t.prototype.printPath=function(e){var t,n,i,o,r,a=this,s=e.segments,l=s.length;if(l>0){for(t=[],o=1;o\"},t}(ji),oo=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.renderData=function(){return this.printPath(this.srcElement.toPath())},t}(io),ro=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.geometryChange=function(){var e=this.center();this.attr(\"cx\",e.x),this.attr(\"cy\",e.y),this.attr(\"r\",this.radius()),this.invalidate()},t.prototype.center=function(){return this.srcElement.geometry().center},t.prototype.radius=function(){return this.srcElement.geometry().radius},t.prototype.template=function(){return\"\"},t}(io),ao=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.template=function(){return\"\"+this.renderChildren()+\"\"},t.prototype.optionsChange=function(t){\"transform\"===t.field&&this.transformChange(t.value),e.prototype.optionsChange.call(this,t)},t}(ji),so=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.geometryChange=function(){this.allAttr(this.mapPosition()),this.invalidate()},t.prototype.optionsChange=function(t){\"src\"===t.field&&this.allAttr(this.mapSource()),e.prototype.optionsChange.call(this,t)},t.prototype.mapPosition=function(){var e=this.srcElement.rect(),t=e.topLeft();return[[\"x\",t.x],[\"y\",t.y],[\"width\",e.width()+\"px\"],[\"height\",e.height()+\"px\"]]},t.prototype.renderPosition=function(){return Ie(this.mapPosition())},t.prototype.mapSource=function(e){var t=this.srcElement.src();return e&&(t=kendo.htmlEncode(t)),[[\"xlink:href\",t]]},t.prototype.renderSource=function(){return Ie(this.mapSource(!0))},t.prototype.template=function(){return\"\"},t}(io),lo=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.renderData=function(){var e,t,n=this,i=this.srcElement.paths;if(i.length>0){for(e=[],t=0;t\"},t}(io),uo=/&(?:[a-zA-Z]+|#\\d+);/g,\"undefined\"!=typeof document&&(Me._element=document.createElement(\"span\")),ho=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.geometryChange=function(){var e=this.pos();this.attr(\"x\",e.x),this.attr(\"y\",e.y),this.invalidate()},t.prototype.optionsChange=function(t){\"font\"===t.field?(this.attr(\"style\",Ae(this.mapStyle())),this.geometryChange()):\"content\"===t.field&&e.prototype.content.call(this,this.srcElement.content()),e.prototype.optionsChange.call(this,t)},t.prototype.mapStyle=function(t){var n=e.prototype.mapStyle.call(this,t),i=this.srcElement.options.font;return t&&(i=kendo.htmlEncode(i)),n.push([\"font\",i],[\"white-space\",\"pre\"]),n},t.prototype.pos=function n(){var n=this.srcElement.position(),e=this.srcElement.measure();return n.clone().setY(n.y+e.baseline)},t.prototype.renderContent=function(){var e=this.srcElement.content();return e=Me(e),e=kendo.htmlEncode(e),Xt.normalizeText(e)},t.prototype.renderTextAnchor=function(){var e;return!(this.options||{}).rtl||Jt.msie||Jt.edge||(e=\"end\"),De(\"text-anchor\",e)},t.prototype.template=function(){return\"\"+this.renderContent()+\"\"},t}(io),Pi.Arc=oo,Pi.Circle=ro,Pi.Group=ao,Pi.Image=so,Pi.MultiPath=lo,Pi.Path=io,Pi.Rect=co,Pi.Text=ho,po=\"rtl\",fo=function(t){function n(n,i){t.call(this,n,i),this._root=new Xi(e.extend({rtl:w(n,\"direction\").direction===po},this.options)),Vi(this.element,this._template()),this._rootElement=this.element.firstElementChild,Fe(this._rootElement),this._root.attachTo(this._rootElement),_(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove}),this.resize()}Yt(n,t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.fn=n.prototype,n.fn.init=n.fn.constructor;var i={type:{}};return i.type.get=function(){return\"svg\"},n.prototype.destroy=function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,x(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),t.prototype.destroy.call(this)},n.prototype.translate=function(e){var t=Math.round(e.x)+\" \"+Math.round(e.y)+\" \"+this._size.width+\" \"+this._size.height;this._offset=e,this._rootElement.setAttribute(\"viewBox\",t)},n.prototype.draw=function(e){t.prototype.draw.call(this,e),this._root.load([e])},n.prototype.clear=function(){t.prototype.clear.call(this),this._root.clear()},n.prototype.svg=function(){return\"\"+this._template()},n.prototype.exportVisual=function(){var e,t=this,n=t._visual,i=t._offset;return i&&(e=new ui,e.children.push(n),e.transform(M().translate(-i.x,-i.y)),n=e),n},n.prototype._resize=function(){this._offset&&this.translate(this._offset)},n.prototype._template=function(){return\"\"+this._root.render()+\"\"},Object.defineProperties(n.prototype,i),n}(Fi),mo={},go=function(e){function t(t){e.call(this,t),t&&this.initClip()}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.initClip=function(){var e=this.srcElement.clip();e&&(this.clip=e,e.addObserver(this))},t.prototype.clear=function(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),e.prototype.clear.call(this)},t.prototype.clearClip=function(){this.clip&&(this.clip.removeObserver(this),delete this.clip)},t.prototype.setClip=function(e){this.clip&&(e.beginPath(),Pe(e,this.clip),e.clip())},t.prototype.optionsChange=function(t){\"clip\"===t.field&&(this.clearClip(),this.initClip()),e.prototype.optionsChange.call(this,t)},t.prototype.setTransform=function(e){if(this.srcElement){var t=this.srcElement.transform();t&&e.transform.apply(e,t.matrix().toArray(6))}},t.prototype.loadElements=function(e,t,n){var o,r,a,s,l=this;for(o=0;o0&&s.load(a,t,n),i(t)?l.insertAt(s,t):l.append(s)},t.prototype.load=function(e,t,n){this.loadElements(e,t,n),this.invalidate()},t.prototype.setOpacity=function(e){if(this.srcElement){var t=this.srcElement.opacity();i(t)&&this.globalAlpha(e,t)}},t.prototype.globalAlpha=function(e,t){var n=t;n&&e.globalAlpha&&(n*=e.globalAlpha),e.globalAlpha=n},t.prototype.visible=function(){var e=this.srcElement;return!e||e&&e.options.visible!==!1},t}(Ri),vo=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.renderTo=function(e){var t,n,i;if(this.visible()){for(e.save(),this.setTransform(e),this.setClip(e),this.setOpacity(e),t=this.childNodes,n=0;n0;)n=e.pop(),n.addObserver(i),\"Group\"===n.nodeType?t(e,n.children):i._insertShape(n)},n.prototype._insertShape=function(e){var t,n,i,o,r=e.bbox();r&&(t=this.getSectors(r),n=t[0][0],i=t[1][0],this.inRoot(t)?this.root.insert(e,r):(o=this.rootMap,o[n]||(o[n]={}),o[n][i]||(o[n][i]=new yo(new kn([n*xo,i*xo],[xo,xo]))),o[n][i].insert(e,r)))},n.prototype.remove=function(e){var t,n,i=this;if(e.removeObserver(this),\"Group\"===e.nodeType)for(t=e.children,n=0;n1||e[1].length>1},n.prototype.getSectors=function(e){var t,n,i=e.bottomRight(),o=Math.floor(i.x/xo),r=Math.floor(i.y/xo),a=[[],[]];for(t=Math.floor(e.origin.x/xo);t<=o;t++)a[0].push(t);for(n=Math.floor(e.origin.y/xo);n<=r;n++)a[1].push(n);return a},n}(Qt),Do=function(e){e.bind(\"mouseenter\",this._mouseenter.bind(this)),e.bind(\"mouseleave\",this._mouseleave.bind(this)),this.element=e.element},Do.prototype.clear=function(){this._resetCursor()},Do.prototype.destroy=function(){this._resetCursor(),delete this.element},Do.prototype._mouseenter=function(e){var t=this._shapeCursor(e);t?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(t)):this._resetCursor()},Do.prototype._mouseleave=function(){this._resetCursor()},Do.prototype._shapeCursor=function(e){for(var t=e.element;t&&!i(t.options.cursor);)t=t.parent;if(t)return t.options.cursor},Do.prototype._getCursor=function(){if(this.element)return this.element.style.cursor},Do.prototype._setCursor=function(e){this.element&&(this.element.style.cursor=e,this._current=e)},Do.prototype._resetCursor=function(){this._current&&(this._setCursor(this._defaultCursor||\"\"),delete this._current)},Io=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.renderTo=function(e){e.save(),this.setTransform(e),this.setClip(e),this.setOpacity(e),e.beginPath(),this.renderPoints(e,this.srcElement),this.setLineDash(e),this.setLineCap(e),this.setLineJoin(e),this.setFill(e),this.setStroke(e),e.restore()},t.prototype.setFill=function(e){var t=this.srcElement.options.fill,n=!1;return t&&(\"Gradient\"===t.nodeType?(this.setGradientFill(e,t),n=!0):c(t.color)||(e.fillStyle=t.color,e.save(),this.globalAlpha(e,t.opacity),e.fill(),e.restore(),n=!0)),n},t.prototype.setGradientFill=function(e,t){var n,i,o,r,a=this.srcElement.rawBBox();t instanceof xi?(i=t.start(),o=t.end(),n=e.createLinearGradient(i.x,i.y,o.x,o.y)):t instanceof Ci&&(r=t.center(),n=e.createRadialGradient(r.x,r.y,0,r.x,r.y,t.radius())),Be(n,t.stops),e.save(),t.userSpace()||e.transform(a.width(),0,0,a.height(),a.origin.x,a.origin.y),e.fillStyle=n,e.fill(),e.restore()},t.prototype.setStroke=function(e){var t=this.srcElement.options.stroke;if(t&&!c(t.color)&&t.width>0)return e.strokeStyle=t.color,e.lineWidth=v(t.width,1),e.save(),this.globalAlpha(e,t.opacity),e.stroke(),e.restore(),!0},t.prototype.dashType=function(){var e=this.srcElement.options.stroke;if(e&&e.dashType)return e.dashType.toLowerCase()},t.prototype.setLineDash=function(e){var t,n=this.dashType();n&&n!==Ji&&(t=Zi[n],e.setLineDash?e.setLineDash(t):(e.mozDash=t,e.webkitLineDash=t))},t.prototype.setLineCap=function(e){var t=this.dashType(),n=this.srcElement.options.stroke;t&&t!==Ji?e.lineCap=eo:n&&n.lineCap&&(e.lineCap=n.lineCap)},t.prototype.setLineJoin=function(e){var t=this.srcElement.options.stroke;t&&t.lineJoin&&(e.lineJoin=t.lineJoin)},t.prototype.renderPoints=function(e,t){Pe(e,t)},t}(go),Ao=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.renderPoints=function(e){var t=this.srcElement.toPath();Pe(e,t)},t}(Io),Eo=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.renderPoints=function(e){var t=this.srcElement.geometry(),n=t.center,i=t.radius;e.arc(n.x,n.y,i,0,2*Math.PI)},t}(Io),Ro=function(e){function t(t,n){e.call(this,t),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=en();var i=this.img=new Image;n&&!/^data:/i.test(t.src())&&(i.crossOrigin=n),i.src=t.src(),i.complete?this.onLoad():(i.onload=this.onLoad,i.onerror=this.onError)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.renderTo=function(e){\"resolved\"===this.loading.state()&&(e.save(),this.setTransform(e),this.setClip(e),this.drawImage(e),e.restore())},t.prototype.optionsChange=function(t){\"src\"===t.field?(this.loading=en(),this.img.src=this.srcElement.src()):e.prototype.optionsChange.call(this,t)},t.prototype.onLoad=function(){this.loading.resolve(),this.invalidate()},t.prototype.onError=function(){this.loading.reject(Error(\"Unable to load image '\"+this.img.src+\"'. Check for connectivity and verify CORS headers.\"))},t.prototype.drawImage=function(e){var t=this.srcElement.rect(),n=t.topLeft();e.drawImage(this.img,n.x,n.y,t.width(),t.height())},t}(Io),Mo=function(e){function t(){e.apply(this,arguments)}return Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor,t.prototype.renderPoints=function(e){var t,n=this.srcElement.paths;for(t=0;t\"},t.prototype._enableTracking=function(){this._searchTree=new To,this._cursor=new Do(this),e.prototype._enableTracking.call(this)},t.prototype._trackMouse=function(e){var t,n;this._suspendedTracking||(t=this.eventTarget(e),\"click\"!==e.type?(n=this._currentShape,n&&n!==t&&this.trigger(\"mouseleave\",{element:n,originalEvent:e,type:\"mouseleave\"}),t&&n!==t&&this.trigger(\"mouseenter\",{element:t,originalEvent:e,type:\"mouseenter\"}),this.trigger(\"mousemove\",{element:t,originalEvent:e,type:\"mousemove\"}),this._currentShape=t):t&&this.trigger(\"click\",{element:t,originalEvent:e,type:\"click\"}))},Object.defineProperties(t.prototype,n),t}(Fi),Ho=function(){return\"undefined\"!=typeof document},Oo=function(){return Ho()&&document.createElement(\"canvas\").getContext},No=function(){return Ho()&&document.implementation.hasFeature(\"http://www.w3.org/TR/SVG11/feature#BasicStructure\",\"1.1\")},Vo=function(e){function t(){e.call(this),this._items=[{name:\"svg\",type:fo},{name:\"canvas\",type:zo}]}Yt(t,e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.fn=t.prototype,t.fn.init=t.fn.constructor;var n={support:{},current:{}};return n.support.get=function(){return Lo||(Lo={canvas:Oo(),svg:No()}),Lo},n.current.get=function(){return Bo||(Bo=new t),Bo},t.prototype.create=function(e,t){var n,i,o=this._items,r=o[0];if(t&&t.type)for(n=t.type.toLowerCase(),i=0;is&&(a.push(o(t.substring(s,l))),s=l+u[0].length),l+=u[0].length):l++;return s0)&&t.preventDefault()}).on(\"mouseleave\"+U,function(){o._hovered=!1}),o.wrapper=e(),n.animation===!1&&(n.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),W(n.animation.open,{complete:function(){o.wrapper.css({overflow:A}),o._activated=!0,o._trigger(_)}}),W(n.animation.close,{complete:function(){o._animationClose()}}),o._mousedownProxy=function(e){o._mousedown(e)},o._resizeProxy=u.mobileOS.android?function(e){setTimeout(function(){o._resize(e)},600)}:function(e){o._resize(e)},n.toggleTarget&&e(n.toggleTarget).on(n.toggleEvent+U,e.proxy(o.toggle,o))},events:[m,_,g,v],options:{name:\"Popup\",toggleEvent:\"click\",origin:x+\" \"+w,position:y+\" \"+w,anchor:T,appendTo:null,collision:\"flip fit\",viewport:window,copyAnchorStyles:!0,autosize:!1,modal:!1,adjustSize:{width:0,height:0},animation:{open:{effects:\"slideIn:down\",transition:!0,duration:200},close:{duration:100,hide:!0}},omitOriginOffsets:!1},_animationClose:function(){var e=this,t=e.wrapper.data(D);e.wrapper.hide(),t&&e.wrapper.css(t),e.options.anchor!=T&&e._hideDirClass(),e._closing=!1,e._trigger(v)},destroy:function(){var t,n=this,i=n.options,o=n.element.off(U);d.fn.destroy.call(n),i.toggleTarget&&e(i.toggleTarget).off(U),i.modal||(B.off(n.downEvent,n._mousedownProxy),n._toggleResize(!1)),s.destroy(n.element.children()),o.removeData(),i.appendTo[0]===document.body&&(t=o.parent(\".k-animation-container\"),t[0]?t.remove():o.remove())},open:function(n,i){var o,r,a=this,l={isFixed:!isNaN(parseInt(i,10)),x:n,y:i},d=a.element,c=a.options,h=e(c.anchor),p=d[0]&&d.hasClass(\"km-widget\");if(!a.visible()){if(c.copyAnchorStyles&&(p&&\"font-size\"==j[0]&&j.shift(),d.css(s.getComputedStyles(h[0],j))),d.data(\"animating\")||a._trigger(m))return;a._activated=!1,c.modal||(B.off(a.downEvent,a._mousedownProxy).on(a.downEvent,a._mousedownProxy),a._toggleResize(!1),a._toggleResize(!0)),a.wrapper=r=s.wrap(d,c.autosize).css({overflow:S,display:\"block\",position:C}).attr(\"aria-hidden\",!1),u.mobileOS.android&&r.css(V,\"translatez(0)\"),r.css(I),e(c.appendTo)[0]==document.body&&r.css(y,\"-10000px\"),a.flipped=a._position(l),o=a._openAnimation(),c.anchor!=T&&a._showDirClass(o),d.is(\":visible\")||d.data(\"olddisplay\")!==t||(d.show(),d.data(\"olddisplay\",d.css(\"display\")),d.hide()),d.data(E,o.effects).kendoStop(!0).kendoAnimate(o).attr(\"aria-hidden\",!1)}},_location:function(t){var n,i,o=this,r=o.element,a=o.options,l=e(a.anchor),d=r[0]&&r.hasClass(\"km-widget\");return a.copyAnchorStyles&&(d&&\"font-size\"==j[0]&&j.shift(),r.css(s.getComputedStyles(l[0],j))),o.wrapper=n=s.wrap(r,a.autosize).css({overflow:S,display:\"block\",position:C}),u.mobileOS.android&&n.css(V,\"translatez(0)\"),n.css(I),e(a.appendTo)[0]==document.body&&n.css(y,\"-10000px\"),o._position(t||{}),i=n.offset(),{width:s._outerWidth(n),height:s._outerHeight(n),left:i.left,top:i.top}},_openAnimation:function(){var e=W(!0,{},this.options.animation.open);return e.effects=s.parseEffects(e.effects,this.flipped),e},_hideDirClass:function(){var t=e(this.options.anchor),n=((t.attr(\"class\")||\"\").match(F)||[\"\",\"down\"])[1],i=M+\"-\"+n;t.removeClass(i).children(P).removeClass(R).removeClass(i),this.element.removeClass(M+\"-\"+s.directions[n].reverse)},_showDirClass:function(t){var n=t.effects.slideIn?t.effects.slideIn.direction:\"down\",i=M+\"-\"+n;e(this.options.anchor).addClass(i).children(P).addClass(R).addClass(i),this.element.addClass(M+\"-\"+s.directions[n].reverse)},position:function(){this.visible()&&(this.flipped=this._position())},toggle:function(){var e=this;e[e.visible()?g:m]()},visible:function(){return this.element.is(\":\"+A)},close:function(n){var i,o,r,a,l=this,d=l.options;if(l.visible()){if(i=l.wrapper[0]?l.wrapper:s.wrap(l.element).hide(),l._toggleResize(!1),l._closing||l._trigger(g))return l._toggleResize(!0),t;l.element.find(\".k-popup\").each(function(){var t=e(this),i=t.data(\"kendoPopup\");i&&i.close(n)}),B.off(l.downEvent,l._mousedownProxy),n?o={hide:!0,effects:{}}:(o=W(!0,{},d.animation.close),r=l.element.data(E),a=o.effects,!a&&!s.size(a)&&r&&s.size(r)&&(o.effects=r,o.reverse=!0),l._closing=!0),l.element.kendoStop(!0).attr(\"aria-hidden\",!0),i.css({overflow:S}).attr(\"aria-hidden\",!0),l.element.kendoAnimate(o),n&&l._animationClose()}},_trigger:function(e){return this.trigger(e,{type:e})},_resize:function(e){var t=this;u.resize.indexOf(e.type)!==-1?(clearTimeout(t._resizeTimeout),t._resizeTimeout=setTimeout(function(){t._position(),t._resizeTimeout=null},50)):(!t._hovered||t._activated&&t.element.hasClass(\"k-list-container\"))&&t.close()},_toggleResize:function(e){var t=e?\"on\":\"off\",n=u.resize;u.mobileOS.ios||u.mobileOS.android||u.browser.safari||(n+=\" \"+O),e&&!this.scrollableParents&&(this.scrollableParents=this._scrollableParents()),this.scrollableParents&&this.scrollableParents.length&&this.scrollableParents[t](O,this._resizeProxy),H[t](n,this._resizeProxy)},_mousedown:function(t){var i=this,o=i.element[0],r=i.options,a=e(r.anchor)[0],l=r.toggleTarget,d=s.eventTarget(t),c=e(d).closest(\".k-popup\"),u=c.parent().parent(\".km-shim\").length;c=c[0],!u&&c&&c!==i.element[0]||\"popover\"!==e(t.target).closest(\"a\").data(\"rel\")&&(n(o,d)||n(a,d)||l&&n(e(l)[0],d)||i.close())},_fit:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},_flip:function(e,t,n,i,o,r,a){var s=0;return a=a||t,r!==o&&r!==b&&o!==b&&(e+a>i&&(s+=-(n+t)),e+s<0&&(s+=n+t)),s},_scrollableParents:function(){return e(this.options.anchor).parentsUntil(\"body\").filter(function(e,t){return s.isScrollable(t)})},_position:function(t){var n,i,o,r,a,l,d,c,m,g,v,_,b,w,k,y,x,S=this,T=S.element,A=S.wrapper,E=S.options,R=e(E.viewport),M=u.zoomLevel(),F=!!(R[0]==window&&window.innerWidth&&M<=1.02),P=e(E.anchor),z=E.origin.toLowerCase().split(\" \"),B=E.position.toLowerCase().split(\" \"),L=S.collisions,H=10002,O=0,N=document.documentElement;if(a=E.viewport===window?{top:window.pageYOffset||document.documentElement.scrollTop||0,left:window.pageXOffset||document.documentElement.scrollLeft||0}:R.offset(),F?(l=window.innerWidth,d=window.innerHeight):(l=R.width(),d=R.height()),F&&N.scrollHeight-N.clientHeight>0&&(c=E.isRtl?-1:1,l-=c*s.support.scrollbar()),n=P.parents().filter(A.siblings()),n[0])if(o=Math.max(+n.css(\"zIndex\"),0))H=o+10;else for(i=P.parentsUntil(n),r=i.length;O=0&&e(n).is(\":visible\")&&!e(n).is(\"[disabled]\")});return this.element.is(\"[tabindex]\")&&t.push(this.element[0]),t},_sortFocusableElements:function(e){var t,n;return i?t=e.sort(function(e,t){return e.tabIndex-t.tabIndex}):(n=\"__k_index\",e.each(function(e,t){t.setAttribute(n,e)}),t=e.sort(function(e,t){return e.tabIndex===t.tabIndex?parseInt(e.getAttribute(n),10)-parseInt(t.getAttribute(n),10):e.tabIndex-t.tabIndex}),e.removeAttr(n)),t},_nextFocusable:function(e,t){var n=t.length,i=t.index(e.target);return t.get((i+(e.shiftKey?-1:1))%n)},_focus:function(e){return\"IFRAME\"==e.nodeName?(e.contentWindow.document.body.focus(),t):(e.focus(),\"INPUT\"==e.nodeName&&e.setSelectionRange&&this._haveSelectionRange(e)&&e.setSelectionRange(0,e.value.length),t)},_haveSelectionRange:function(e){var t=e.type.toLowerCase();return\"text\"===t||\"search\"===t||\"url\"===t||\"tel\"===t||\"password\"===t}}),l.Popup.TabKeyTrap=a}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/surface-tooltip.min\",[\"kendo.popup.min\",\"drawing/kendo-drawing.min\"],e)}(function(){!function(e){var t=\".kendo\",n=window.kendo,i=n.deepExtend,o=n.drawing.util,r=o.defined,a=o.limitValue,s=o.eventCoordinates,l=n._outerWidth,d=n._outerHeight,c=e.proxy,u='
    ',h='',p=n.Class.extend({init:function(t,n){this.element=e(u),this.content=this.element.children(\".k-tooltip-content\"),n=n||{},this.options=i({},this.options,this._tooltipOptions(n)),this.popupOptions={appendTo:n.appendTo,animation:n.animation,copyAnchorStyles:!1,collision:\"fit fit\"},this._openPopupHandler=e.proxy(this._openPopup,this),this.surface=t,this._bindEvents()},options:{position:\"top\",showOn:\"mouseenter\",offset:7,autoHide:!0,hideDelay:0,showAfter:100},_bindEvents:function(){this._showHandler=c(this._showEvent,this),this._surfaceLeaveHandler=c(this._surfaceLeave,this),this._mouseleaveHandler=c(this._mouseleave,this),this._mousemoveHandler=c(this._mousemove,this),this.surface.bind(\"click\",this._showHandler),this.surface.bind(\"mouseenter\",this._showHandler),this.surface.bind(\"mouseleave\",this._mouseleaveHandler),this.surface.bind(\"mousemove\",this._mousemoveHandler),this.surface.element.on(\"mouseleave\"+t,this._surfaceLeaveHandler),this.element.on(\"click\"+t,\".k-tooltip-button\",c(this._hideClick,this)),this.element.on(\"mouseleave\"+t,c(this._tooltipLeave,this))},getPopup:function(){return this.popup||(this.popup=new n.ui.Popup(this.element,this.popupOptions)),this.popup},destroy:function(){var e=this.popup;this.surface.unbind(\"click\",this._showHandler),this.surface.unbind(\"mouseenter\",this._showHandler),this.surface.unbind(\"mouseleave\",this._mouseleaveHandler),this.surface.unbind(\"mousemove\",this._mousemoveHandler),this.surface.element.off(\"mouseleave\"+t,this._surfaceLeaveHandler),this.element.off(\"click\"+t),this.element.off(\"mouseleave\"+t),e&&(e.destroy(),delete this.popup),delete this.popupOptions,clearTimeout(this._timeout),delete this.element,delete this.content,delete this.surface},_tooltipOptions:function(e){return e=e||{},{position:e.position,showOn:e.showOn,offset:e.offset,autoHide:e.autoHide,width:e.width,height:e.height,content:e.content,shared:e.shared,hideDelay:e.hideDelay,showAfter:e.showAfter}},_tooltipShape:function(e){for(;e&&!e.options.tooltip;)e=e.parent;return e},_updateContent:function(e,t,i){var o=i.content;if(n.isFunction(o)&&(o=o({element:t,target:e})),o)return this.content.html(o),!0},_position:function(e,t,n,i){var o,r=t.position,l=t.offset||0,d=this.surface,c=d._instance._elementOffset(),u=d.getSize(),h=d._instance._offset,p=e.bbox(),f=n.width,m=n.height,g=0,v=0;return p.origin.translate(c.left,c.top),h&&p.origin.translate(-h.x,-h.y),\"cursor\"==r&&i?(o=s(i),g=o.x-f/2,v=o.y-m-l):\"left\"==r?(g=p.origin.x-f-l,v=p.center().y-m/2):\"right\"==r?(g=p.bottomRight().x+l,v=p.center().y-m/2):\"bottom\"==r?(g=p.center().x-f/2,v=p.bottomRight().y+l):(g=p.center().x-f/2,v=p.origin.y-m-l),{left:a(g,c.left,c.left+u.width),top:a(v,c.top,c.top+u.height)}},show:function(e,t){this._show(e,e,i({},this.options,this._tooltipOptions(e.options.tooltip),t))},hide:function(){var e=this.popup,t=this._current;delete this._current,clearTimeout(this._showTimeout),e&&e.visible()&&t&&!this.surface.trigger(\"tooltipClose\",{element:t.shape,target:t.target,popup:e})&&e.close()},_hideClick:function(e){e.preventDefault(),this.hide()},_show:function(e,t,n,i,o){var r,a,s=this._current;clearTimeout(this._timeout),s&&(s.shape===t&&n.shared||s.target===e)||(clearTimeout(this._showTimeout),r=this.getPopup(),!this.surface.trigger(\"tooltipOpen\",{element:t,target:e,popup:r})&&this._updateContent(e,t,n)&&(this._autoHide(n),a=this._measure(n),r.visible()&&r.close(!0),this._current={options:n,elementSize:a,shape:t,target:e,position:this._position(n.shared?t:e,n,a,i)},o?this._showTimeout=setTimeout(this._openPopupHandler,n.showAfter||0):this._openPopup()))},_openPopup:function(){var e=this._current,t=e.position;this.getPopup().open(t.left,t.top)},_autoHide:function(t){t.autoHide&&this._closeButton&&(this.element.removeClass(\"k-tooltip-closable\"),this._closeButton.remove(),delete this._closeButton),t.autoHide||this._closeButton||(this.element.addClass(\"k-tooltip-closable\"),this._closeButton=e(h).appendTo(this.element))},_showEvent:function(e){var t,n=this._tooltipShape(e.element);n&&(t=i({},this.options,this._tooltipOptions(n.options.tooltip)),t&&t.showOn==e.type&&this._show(e.element,n,t,e.originalEvent,!0))},_measure:function(e){var t,n,i,o=this.getPopup();return this.element.css({width:\"auto\",height:\"auto\"}),i=o.visible(),i||o.wrapper.show(),this.element.css({width:r(e.width)?e.width:\"auto\",height:r(e.height)?e.height:\"auto\"}),t=l(this.element),n=d(this.element),i||o.wrapper.hide(),{width:t,height:n}},_mouseleave:function(e){var t,n;this.popup&&!this._popupRelatedTarget(e.originalEvent)&&(t=this,n=t._current,n&&n.options.autoHide&&(t._timeout=setTimeout(function(){clearTimeout(t._showTimeout),t.hide()},n.options.hideDelay||0)))},_mousemove:function(e){var t,n,i=this._current;i&&e.element&&(t=i.options,\"cursor\"==t.position&&(n=this._position(e.element,t,i.elementSize,e.originalEvent),i.position=n,this.getPopup().wrapper.css({left:n.left,top:n.top})))},_surfaceLeave:function(e){this.popup&&!this._popupRelatedTarget(e)&&(clearTimeout(this._showTimeout),this.hide())},_popupRelatedTarget:function(t){return t.relatedTarget&&e(t.relatedTarget).closest(this.popup.wrapper).length},_tooltipLeave:function(){var e=this,t=e._current;t&&t.options.autoHide&&(e._timeout=setTimeout(function(){e.hide()},t.options.hideDelay||0))}});n.drawing.SurfaceTooltip=p}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/surface.min\",[\"drawing/kendo-drawing.min\",\"drawing/surface-tooltip.min\"],e)}(function(){!function(e){function t(e){this._instance.translate(e)}var n,i=window.kendo,o=i.drawing,r=o.Surface,a=i.ui.Widget,s=i.deepExtend,l=e.proxy;i.support.svg=r.support.svg,i.support.canvas=r.support.canvas,n=a.extend({init:function(e,n){a.fn.init.call(this,e,{}),this.options=s({},this.options,n),this._instance=r.create(this.element[0],n),this._instance.translate&&(this.translate=t),this._triggerInstanceHandler=l(this._triggerInstanceEvent,this),this._bindHandler(\"click\"),this._bindHandler(\"mouseenter\"),this._bindHandler(\"mouseleave\"),this._bindHandler(\"mousemove\"),this._enableTracking()},options:{name:\"Surface\",tooltip:{}},events:[\"click\",\"mouseenter\",\"mouseleave\",\"mousemove\",\"resize\",\"tooltipOpen\",\"tooltipClose\"],_triggerInstanceEvent:function(e){this.trigger(e.type,e)},_bindHandler:function(e){this._instance.bind(e,this._triggerInstanceHandler)},draw:function(e){this._instance.draw(e)},clear:function(){this._instance&&this._instance.clear(),this.hideTooltip()},destroy:function(){this._instance&&(this._instance.destroy(),delete this._instance),this._tooltip&&(this._tooltip.destroy(),delete this._tooltip),a.fn.destroy.call(this)},exportVisual:function(){return this._instance.exportVisual()},eventTarget:function(e){return this._instance.eventTarget(e)},showTooltip:function(e,t){this._tooltip&&this._tooltip.show(e,t)},hideTooltip:function(){this._tooltip&&this._tooltip.hide()},suspendTracking:function(){this._instance.suspendTracking(),this.hideTooltip()},resumeTracking:function(){this._instance.resumeTracking()},getSize:function(){return{width:this.element.width(),height:this.element.height()}},setSize:function(e){this.element.css({width:e.width,height:e.height}),this._size=e,this._instance.currentSize(e),this._resize()},_resize:function(){this._instance.currentSize(this._size),this._instance._resize()},_enableTracking:function(){i.ui.Popup&&(this._tooltip=new o.SurfaceTooltip(this,this.options.tooltip||{}))}}),i.ui.plugin(n),n.create=function(e,t){return new n(e,t)},i.drawing.Surface=n}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"drawing/html.min\",[\"drawing/kendo-drawing.min\"],e)}(function(){!function(e){var t=window.kendo,n=t.drawing,i=n.drawDOM;n.drawDOM=function(t,n){return i(e(t)[0],n)},n.drawDOM.drawText=n.drawText,n.drawDOM.getFontFaces=n.getFontFaces}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.drawing.min\",[\"drawing/util.min\",\"drawing/kendo-drawing.min\",\"drawing/surface-tooltip.min\",\"drawing/surface.min\",\"drawing/html.min\"],e)}(function(){},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.validator.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){function n(t){var n,i=c.ui.validator.ruleResolvers||{},o={};for(n in i)e.extend(!0,o,i[n].resolve(t));return o}function i(e){return e.replace(/&/g,\"&\").replace(/"/g,'\"').replace(/'/g,\"'\").replace(/</g,\"<\").replace(/>/g,\">\")}function o(e){return e=(e+\"\").split(\".\"),e.length>1?e[1].length:0}function r(t){return e(e.parseHTML?e.parseHTML(t):t)}function a(t,n){var i,o,r,a,s=e();for(r=0,a=t.length;r#for(var i = 0; i < errors.length; i += 1){#
  • #= errors[i].message #
  • # } #',d=u.extend({init:function(t,i){var o=this,r=n(t),a=\"[\"+c.attr(\"validate\")+\"!=false]\";\ni=i||{},i.rules=e.extend({},c.ui.validator.rules,r.rules,i.rules),i.messages=e.extend({},c.ui.validator.messages,r.messages,i.messages),u.fn.init.call(o,t,i),o._errorTemplate=c.template(o.options.errorTemplate),o._summaryTemplate=c.template(o.options.validationSummary.template||l),o.element.is(A)&&o.element.attr(E,E),o._inputSelector=C+a,o._checkboxSelector=S+a,o._errors={},o._attachEvents(),o._isValidated=!1,o._validateOnInit()&&o.validate()},events:[R,M,F],options:{name:\"Validator\",errorTemplate:'#= message #',messages:{required:\"{0} is required\",pattern:\"{0} is not valid\",min:\"{0} should be greater than or equal to {1}\",max:\"{0} should be smaller than or equal to {1}\",step:\"{0} is not valid\",email:\"{0} is not valid email\",url:\"{0} is not valid URL\",date:\"{0} is not valid date\",dateCompare:\"End date should be greater than or equal to the start date\",captcha:\"The text you entered doesn't match the image.\"},rules:{required:function(e){var t=!e.attr(\"name\")&&!e.is(\":checked\"),n=e.attr(\"name\")&&!this.element.find('input[name=\"'+e.attr(\"name\")+'\"]:checked').length,i=e.filter(\"[type=checkbox]\").length&&(t||n),o=e.filter(\"[type=radio]\").length&&!this.element.find('input[name=\"'+e.attr(\"name\")+'\"]:checked').length,r=e.val();return!(L(e,\"required\")&&(!r||\"\"===r||0===r.length||i||o))},pattern:function(e){return!e.filter(\"[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password]\").filter(\"[pattern]\").length||\"\"===e.val()||z(e.val(),e.attr(\"pattern\"))},min:function(e){if(e.filter(T+\",[\"+c.attr(\"type\")+\"=number]\").filter(\"[min]\").length&&\"\"!==e.val()){var t=parseFloat(e.attr(\"min\"))||0,n=c.parseFloat(e.val());return t<=n}return!0},max:function(e){if(e.filter(T+\",[\"+c.attr(\"type\")+\"=number]\").filter(\"[max]\").length&&\"\"!==e.val()){var t=parseFloat(e.attr(\"max\"))||0,n=c.parseFloat(e.val());return t>=n}return!0},step:function(e){if(e.filter(T+\",[\"+c.attr(\"type\")+\"=number]\").filter(\"[step]\").length&&\"\"!==e.val()){var t,n=parseFloat(e.attr(\"min\"))||0,i=parseFloat(e.attr(\"step\"))||1,r=parseFloat(e.val()),a=o(i);return a?(t=Math.pow(10,a),Math.floor((r-n)*t)%(i*t)/Math.pow(100,a)===0):(r-n)%i===0}return!0},email:function(e){return B(e,\"[type=email],[\"+c.attr(\"type\")+\"=email]\",y)},url:function(e){return B(e,\"[type=url],[\"+c.attr(\"type\")+\"=url]\",x)},date:function(e){return!e.filter(\"[type^=date],[\"+c.attr(\"type\")+\"=date]\").length||\"\"===e.val()||null!==c.parseDate(e.val(),e.attr(c.attr(\"format\")))},captcha:function(e){if(e.filter(\"[\"+c.attr(\"role\")+\"=captcha]\").length){var n=this,i=c.widgetInstance(e),o=function(e){return t!==e&&null!==e};if(e.data(\"captcha_validating\")||o(i.isValid())||!i.getCaptchaId()||(e.data(\"captcha_validating\",!0),n._validating=!0,i.validate().done(function(){n._validating=!1,n._checkElement(e)}).fail(function(e){n._validating=!1,e.error&&\"handler_not_defined\"===e.error&&window.console.warn(\"Captcha's validationHandler is not defined! You should either define a proper validation endpoint or declare a callback function to ensure the required behavior.\")})),o(i.isValid()))return e.removeData(\"captcha_validating\"),i.isValid()}return!0}},validateOnBlur:!0,validationSummary:!1},_allowSubmit:function(){return c.ui.validator.allowSubmit(this.element,this.errors())},_validateOnInit:function(){return c.ui.validator.validateOnInit(this.element)},destroy:function(){u.fn.destroy.call(this),this.element.off(h),this.validationSummary&&(this.validationSummary.off(h),this.validationSummary=null)},value:function(){return!!this._isValidated&&0===this.errors().length},_submit:function(e){return!(!this.validate()&&!this._allowSubmit()||this._validating)||(e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),!1)},_checkElement:function(e){var t=this.value();this.validateInput(e),this.value()!==t&&this.trigger(M)},_attachEvents:function(){var t=this;t.element.is(A)&&t.element.on(\"submit\"+h,P(t._submit,t)),t.options.validateOnBlur&&(t.element.is(C)?(t.element.on(D+h,function(){t._checkElement(t.element)}),t.element.is(S)&&t.element.on(\"click\"+h,function(){t._checkElement(t.element)})):(t.element.on(D+h,t._inputSelector,function(){t._checkElement(e(this))}),t.element.on(\"click\"+h,t._checkboxSelector,function(){t._checkElement(e(this))})))},validate:function(){var e,t,n,i,o=!1,r=this.value();if(this._errors={},this.element.is(C))o=this.validateInput(this.element);else{for(i=!1,e=this.element.find(this._inputSelector),t=0,n=e.length;t\").insertBefore(n.element),t.addClass([v,b].join(\" \")),t.attr(\"role\",\"alert\"),t.on(\"click\"+h,P(n._summaryClick,n)),t},_summaryClick:function(t){t.preventDefault();var n,i=this,o=e(t.target),r=i.element.find(\"[name='\"+o.data(\"field\")+\"']\");r.length&&(n=c.getWidgetFocusableElement(r),n&&n.trigger(\"focus\"))},showValidationSummary:function(){var e,t=this,n=t.validationSummary,i=t._errorsByName();n||(n=t.validationSummary=t._renderSummary()),e=r(t._summaryTemplate({errors:i})),n.html(e),n.toggleClass(\"k-hidden\",!i.length)},hideValidationSummary:function(){var e=this,t=e.validationSummary;t&&t.addClass(\"k-hidden\")}}),c.ui.plugin(d)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.userevents.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){function n(e,t){var n=e.x.location,i=e.y.location,o=t.x.location,r=t.y.location,a=n-o,s=i-r;return{center:{x:(n+o)/2,y:(i+r)/2},distance:Math.sqrt(a*a+s*s)}}function i(e){var t,n,i,o=[],r=e.originalEvent,s=e.currentTarget,l=0;if(e.api)o.push({id:2,event:e,target:e.target,currentTarget:e.target,location:e,type:\"api\"});else if(e.type.match(/touch/))for(n=r?r.changedTouches:[],t=n.length;l1},_maxTouchesReached:function(){return this.touches.length>=this._maxTouches},_disposeAll:function(){for(var e=this.touches;e.length>0;)e.pop().dispose()},_isMoved:function(){return e.grep(this.touches,function(e){return e.isMoved()}).length},_select:function(e){this.allowSelection&&!this.trigger(_,{event:e})||e.preventDefault()},_start:function(t){var n,o,r=this,a=0,s=r.filter,l=i(t),d=l.length,c=t.which;if(!(c&&c>1||r._maxTouchesReached()))for(P.current=null,r.currentTarget=t.currentTarget,r.stopPropagation&&t.stopPropagation();a1){for(n=0;nthis.max||eo,e||t.trigger(P,t))}}),q=C.extend({init:function(e){var t=this;C.fn.init.call(t),t.x=new G(D({horizontal:!0},e)),t.y=new G(D({horizontal:!1},e)),t.container=e.container,t.forcedMinScale=e.minScale,t.maxScale=e.maxScale||100,t.bind(P,e)},rescale:function(e){this.x.rescale(e),this.y.rescale(e),this.refresh()},centerCoordinates:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}},refresh:function(){var e=this;e.x.update(),e.y.update(),e.enabled=e.x.enabled||e.y.enabled,e.minScale=e.forcedMinScale||Math.min(e.x.minScale,e.y.minScale),e.fitScale=Math.max(e.x.minScale,e.y.minScale),e.trigger(P)}}),$=C.extend({init:function(e){var t=this;D(t,e),C.fn.init.call(t)},outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},dragMove:function(e){var t=this,n=t.dimension,i=t.axis,o=t.movable,r=o[i]+e;n.enabled&&((rn.max&&e>0)&&(e*=t.resistance),o.translateAxis(i,e),t.trigger(P,t))}}),K=y.extend({init:function(t){var n,i,o,r,a=this;D(a,{elastic:!0},t),o=a.elastic?.5:0,r=a.movable,a.x=n=new $({axis:\"x\",dimension:a.dimensions.x,resistance:o,movable:r}),a.y=i=new $({axis:\"y\",dimension:a.dimensions.y,resistance:o,movable:r}),a.userEvents.bind([\"press\",\"move\",\"end\",\"gesturestart\",\"gesturechange\"],{gesturestart:function(e){a.gesture=e,a.offset=a.dimensions.container.offset()},press:function(t){e(t.event.target).closest(\"a\").is(\"[data-navigate-on-press=true]\")&&t.sender.cancel()},gesturechange:function(e){var t,o,s,l=a.gesture,d=l.center,c=e.center,u=e.distance/l.distance,h=a.dimensions.minScale,p=a.dimensions.maxScale;r.scale<=h&&u<1&&(u+=.8*(1-u)),r.scale*u>=p&&(u=p/r.scale),o=r.x+a.offset.left,s=r.y+a.offset.top,t={x:(o-d.x)*u+c.x-o,y:(s-d.y)*u+c.y-s},r.scaleWith(u),n.dragMove(t.x),i.dragMove(t.y),a.dimensions.rescale(r.scale),a.gesture=e,e.preventDefault()},move:function(e){e.event.target.tagName.match(/textarea|input/i)||(n.dimension.enabled||i.dimension.enabled?(n.dragMove(e.x.delta),i.dragMove(e.y.delta),e.preventDefault()):e.touch.skip())},end:function(e){e.preventDefault()}})}}),Y=b.transitions.prefix+\"Transform\";p=b.hasHW3D?function(e,t,n){return\"translate3d(\"+e+\"px,\"+t+\"px,0) scale(\"+n+\")\"}:function(e,t,n){return\"translate(\"+e+\"px,\"+t+\"px) scale(\"+n+\")\"},f=C.extend({init:function(t){var n=this;C.fn.init.call(n),n.element=e(t),n.element[0].style.webkitTransformOrigin=\"left top\",n.x=0,n.y=0,n.scale=1,n._saveCoordinates(p(n.x,n.y,n.scale))},translateAxis:function(e,t){this[e]+=t,this.refresh()},scaleTo:function(e){this.scale=e,this.refresh()},scaleWith:function(e){this.scale*=e,this.refresh()},translate:function(e){this.x+=e.x,this.y+=e.y,this.refresh()},moveAxis:function(e,t){this[e]=t,this.refresh()},moveTo:function(e){D(this,e),this.refresh()},refresh:function(){var e,t=this,n=t.x,i=t.y;t.round&&(n=Math.round(n),i=Math.round(i)),e=p(n,i,t.scale),e!=t.coordinates&&(_.support.browser.msie&&_.support.browser.version<10?(t.element[0].style.position=\"absolute\",t.element[0].style.left=t.x+\"px\",t.element[0].style.top=t.y+\"px\"):t.element[0].style[Y]=e,t._saveCoordinates(e),t.trigger(P))},_saveCoordinates:function(e){this.coordinates=e}}),m=x.extend({init:function(e,t){var n,i=this;x.fn.init.call(i,e,t),n=i.options.group,n in E?E[n].push(i):E[n]=[i]},events:[V,W,U],options:{name:\"DropTarget\",group:\"default\"},destroy:function(){s(E,this)},_trigger:function(e,t){var n=this,i=A[n.options.group];if(i)return n.trigger(e,D({},t.event,{draggable:i,dropTarget:t.dropTarget}))},_over:function(e){this._trigger(V,e)},_out:function(e){this._trigger(W,e)},_drop:function(e){var t=this,n=A[t.options.group];n&&(n.dropped=!t._trigger(U,e))}}),m.destroyGroup=function(e){var t,n=E[e]||R[e];if(n){for(t=0;tk.height(),n=w.body.scrollWidth>k.width()):(t=l.offsetHeight<=l.scrollHeight,n=l.offsetWidth<=l.scrollWidth),o=l.scrollTop+c.y,r=t&&o>0&&o0&&at.max?t.max:t.min;e._moveTo(n)},_moveTo:function(e){this.transition.moveTo({location:e,duration:g,ease:p.easeOutExpo})}}),M=f.extend({init:function(e){var t=this;n.effects.Animation.fn.init.call(this),s(t,e,{origin:{},destination:{},offset:{}})},tick:function(){this._updateCoordinates(),this.moveTo(this.origin)},done:function(){return m(this.offset.y)');i&&o.attr(\"aria-orientation\",\"horizontal\"),s(n,t,{element:o,elementSize:0,movable:new c(o),scrollMovable:t.movable,alwaysVisible:t.alwaysVisible,size:i?\"width\":\"height\"}),n.scrollMovable.bind(T,a(n.refresh,n)),n.container.append(o),t.alwaysVisible&&n.show()},refresh:function(){var e=this,t=e.axis,n=e.dimension,i=n.size,o=e.scrollMovable,r=i/n.total,a=Math.round(-o[t]*r),s=Math.round(i*r);r>=1?this.element.css(\"display\",\"none\"):this.element.css(\"display\",\"\"),a+s>i?s=i-a:a<0&&(s+=a,a=0),e.elementSize!=s&&(e.element.css(e.size,s+\"px\"),e.elementSize=s),e._ariaValue(a,n.size-e.elementSize),e.movable.moveAxis(t,a)},show:function(){this.element.css({opacity:v,visibility:\"visible\"})},hide:function(){this.alwaysVisible||this.element.css({opacity:0})},_ariaValue:function(e,t){var n=this.element;e>t&&(e=t),n.attr(\"aria-valuemax\",t),n.attr(\"aria-valuenow\",e)}}),P=l.extend({init:function(i,o){var r,d,p,f,g,v,_,b,w,k=this;return l.fn.init.call(k,i,o),i=k.element,(k._native=k.options.useNative&&n.support.hasNativeScrolling)?(i.addClass(\"km-native-scroller\").prepend('
    '),s(k,{scrollElement:i,fixedContainer:i.children().first()}),t):(i.css(\"overflow\",\"hidden\").addClass(\"km-scroll-wrapper\").wrapInner('
    ').prepend('
    '),r=i.children().eq(1),d=new n.TapCapture(i),p=new c(r),f=new h({element:r,container:i,forcedEnabled:k.options.zoom}),g=this.options.avoidScrolling,v=new n.UserEvents(i,{touchAction:\"pan-y\",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:k.options.zoom,supportDoubleTap:k.options.supportDoubleTap,start:function(t){f.refresh();var n=m(t.x.velocity),i=m(t.y.velocity),o=2*n>=i,r=e.contains(k.fixedContainer[0],t.event.target),a=2*i>=n;!r&&!g(t)&&k.enabled&&(f.x.enabled&&o||f.y.enabled&&a)?v.capture():v.cancel()}}),_=new u({movable:p,dimensions:f,userEvents:v,elastic:k.options.elastic}),b=new E({movable:p,dimensions:f,userEvents:v,tapCapture:d}),w=new M({moveTo:function(e){k.scrollTo(e.x,e.y)}}),p.bind(T,function(){k.scrollTop=-p.y,k.scrollLeft=-p.x,k.trigger(I,{scrollTop:k.scrollTop,scrollLeft:k.scrollLeft})}),k.options.mousewheelScrolling&&i.on(\"DOMMouseScroll mousewheel\",a(this,\"_wheelScroll\")),s(k,{movable:p,dimensions:f,zoomSnapBack:b,animatedScroller:w,userEvents:v,pane:_,tapCapture:d,pulled:!1,enabled:!0,scrollElement:r,scrollTop:0,scrollLeft:0,fixedContainer:i.children().first()}),k._initAxis(\"x\"),k._initAxis(\"y\"),k._wheelEnd=function(){k._wheel=!1,k.userEvents.end(0,k._wheelY)},f.refresh(),k.options.pullToRefresh&&k._initPullToRefresh(),t)},_wheelScroll:function(e){if(!e.ctrlKey){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var t=n.wheelDeltaY(e);t&&(this._wheelY+=t,this.userEvents.move(0,this._wheelY)),e.preventDefault()}},makeVirtual:function(){this.dimensions.y.makeVirtual()},virtualSize:function(e,t){this.dimensions.y.virtualSize(e,t)},height:function(){return this.dimensions.y.size},scrollHeight:function(){return this.scrollElement[0].scrollHeight},scrollWidth:function(){return this.scrollElement[0].scrollWidth},options:{name:\"Scroller\",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:\"Pull to refresh\",releaseTemplate:\"Release to refresh\",refreshTemplate:\"Refreshing\"}},events:[S,I,D],_resize:function(){this._native||this.contentResized()},setOptions:function(e){var t=this;l.fn.setOptions.call(t,e),e.pullToRefresh&&t._initPullToRefresh()},reset:function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))},contentResized:function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis(\"x\",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis(\"y\",this.dimensions.y.min)},zoomOut:function(){var e=this.dimensions;e.refresh(),this._scale(e.fitScale),this.movable.moveTo(e.centerCoordinates())},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},scrollTo:function(e,t){this._native?(n.scrollLeft(this.scrollElement,m(e)),this.scrollElement.scrollTop(m(t))):(this.dimensions.refresh(),this.movable.moveTo({x:e,y:t}))},animatedScrollTo:function(e,t,n){var i,o;this._native?this.scrollTo(e,t):(i={x:this.movable.x,y:this.movable.y},o={x:e,y:t},this.animatedScroller.setCoordinates(i,o),this.animatedScroller.setCallback(n),this.animatedScroller.start())},pullHandled:function(){var e=this;e.refreshHint.removeClass(C),e.hintContainer.html(e.pullTemplate({})),e.yinertia.onEnd(),e.xinertia.onEnd(),e.userEvents.cancel()},destroy:function(){l.fn.destroy.call(this),this.userEvents&&this.userEvents.destroy()},_scale:function(e){this.dimensions.rescale(e),this.movable.scaleTo(e)},_initPullToRefresh:function(){var e=this;e.dimensions.y.forceEnabled(),e.pullTemplate=n.template(e.options.messages.pullTemplate),e.releaseTemplate=n.template(e.options.messages.releaseTemplate),e.refreshTemplate=n.template(e.options.messages.refreshTemplate),e.scrollElement.prepend(''+e.pullTemplate({})+\"\"),e.refreshHint=e.scrollElement.children().first(),e.hintContainer=e.refreshHint.children(\".km-template\"),e.pane.y.bind(\"change\",a(e._paneChange,e)),e.userEvents.bind(\"end\",a(e._dragEnd,e))},_dragEnd:function(){var e=this;e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(x).addClass(C),e.hintContainer.html(e.refreshTemplate({})),e.yinertia.freeze(e.options.pullOffset/2),e.trigger(\"pull\"))},_paneChange:function(){var e=this;e.movable.y/k>e.options.pullOffset?e.pulled||(e.pulled=!0,e.refreshHint.removeClass(C).addClass(x),e.hintContainer.html(e.releaseTemplate({}))):e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(x),e.hintContainer.html(e.pullTemplate({})))},_initAxis:function(e){var t,i=this,o=i.element.attr(\"id\"),r=i.movable,a=i.dimensions[e],s=i.tapCapture,l=i.pane[e];o||(o=n.guid(),i.element.attr(\"id\",o)),t=new F({axis:e,movable:r,dimension:a,container:i.element,alwaysVisible:i.options.visibleScrollHints,controlsId:o}),a.bind(T,function(){t.refresh()}),l.bind(T,function(){t.show()}),i[e+\"inertia\"]=new R({axis:e,paneAxis:l,movable:r,tapCapture:s,userEvents:i.userEvents,dimension:a,elastic:i.options.elastic,friction:i.options.friction||_,velocityMultiplier:i.options.velocityMultiplier||b,end:function(){t.hide(),i.trigger(\"scrollEnd\",{axis:e,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft})}})}});r.plugin(P)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.groupable.min\",[\"kendo.core.min\",\"kendo.draganddrop.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=n._outerWidth,r=n.attr,a=e.extend,s=e.each,l=e.proxy,d=!1,c=\"dir\",u=\"field\",h=\"title\",p=\"asc\",f=\"desc\",m=\"group-sort\",g=\".kendoGroupable\",v=\"change\",_=n.template('',{useWithBlock:!1}),b=function(t){var i=t.attr(n.attr(\"title\"));return i&&(i=n.htmlEncode(i)),e('
    ').html(i||t.attr(n.attr(\"field\"))).prepend('')},w=e('
    '),k=i.extend({init:function(s,u){var h,_,k=this,y=n.guid(),x=l(k._intializePositions,k),C=k._dropCuePositions=[];i.fn.init.call(k,s,u),d=n.support.isRtl(s),_=d?\"right\":\"left\",k.draggable=h=k.options.draggable||new n.ui.Draggable(k.element,{filter:k.options.draggableElements,hint:b,group:y}),k.groupContainer=e(k.options.groupContainer,k.element).kendoDropTarget({group:h.options.group,dragenter:function(e){k._canDrag(e.draggable.currentTarget)&&(e.draggable.hint.find(\".k-drag-status\").removeClass(\"k-i-cancel\").addClass(\"k-i-plus\"),w.css(_,0).appendTo(k.groupContainer))},dragleave:function(e){e.draggable.hint.find(\".k-drag-status\").removeClass(\"k-i-plus\").addClass(\"k-i-cancel\"),w.remove()},drop:function(t){var i,o=t.draggable.currentTarget,r=o.attr(n.attr(\"field\")),s=o.attr(n.attr(\"title\")),l=k.indicator(r),c=k._dropCuePositions,u=c[c.length-1],h=a({},k.options.sort,o.data(m)),p=h.dir;(o.hasClass(\"k-group-indicator\")||k._canDrag(o))&&(u?(i=k._dropCuePosition(n.getOffset(w).left+parseInt(u.element.css(\"marginLeft\"),10)*(d?-1:1)+parseInt(u.element.css(\"marginRight\"),10)),i&&k._canDrop(e(l),i.element,i.left)&&(i.before?i.element.before(l||k.buildIndicator(r,s,p)):i.element.after(l||k.buildIndicator(r,s,p)),k._setIndicatorSortOptions(r,h),k._change())):(k.groupContainer.empty(),k.groupContainer.append(k.buildIndicator(r,s,p)),k._setIndicatorSortOptions(r,h),k._change()))}}).kendoDraggable({filter:\"div.k-group-indicator\",hint:b,group:h.options.group,dragcancel:l(k._dragCancel,k),dragstart:function(e){var t=e.currentTarget,n=parseInt(t.css(\"marginLeft\"),10),i=t.position(),r=d?i.left-n:i.left+o(t);x(),w.css(\"left\",r).appendTo(k.groupContainer),this.hint.find(\".k-drag-status\").removeClass(\"k-i-cancel\").addClass(\"k-i-plus\")},dragend:function(){k._dragEnd(this)},drag:l(k._drag,k)}).on(\"click\"+g,\".k-button\",function(t){t.preventDefault(),k._removeIndicator(e(this).parent())}).on(\"click\"+g,\".k-link\",function(t){var n=e(this).parent(),i=n.attr(r(c))===p?f:p;n.attr(r(c),i),k._change(),t.preventDefault()}),h.bind([\"dragend\",\"dragcancel\",\"dragstart\",\"drag\"],{dragend:function(){k._dragEnd(this)},dragcancel:l(k._dragCancel,k),dragstart:function(e){var n,i,r;return k.options.allowDrag||k._canDrag(e.currentTarget)?(x(),C.length?(n=C[C.length-1].element,i=parseInt(n.css(\"marginRight\"),10),r=n.position().left+o(n)+i):r=0,t):(e.preventDefault(),t)},drag:l(k._drag,k)}),k.dataSource=k.options.dataSource,k.dataSource&&k._refreshHandler?k.dataSource.unbind(v,k._refreshHandler):k._refreshHandler=l(k.refresh,k),k.dataSource&&(k.dataSource.bind(\"change\",k._refreshHandler),k.refresh())},refresh:function(){var t,n=this,i=n.dataSource,o=i.group()||[],l=r(u),d=r(h);n.groupContainer&&(n.groupContainer.empty(),s(o,function(i,o){var r=o.field,s=o.dir,c=n.element.find(n.options.filter).filter(function(){return e(this).attr(l)===r});t=n.buildIndicator(r,c.attr(d),s),n.groupContainer.append(t),n._setIndicatorSortOptions(r,a({},n.options.sort,{dir:s,compare:o.compare}))})),n._invalidateGroupContainer()},destroy:function(){var e=this;i.fn.destroy.call(e),e.groupContainer.off(g),e.groupContainer.data(\"kendoDropTarget\")&&e.groupContainer.data(\"kendoDropTarget\").destroy(),e.groupContainer.data(\"kendoDraggable\")&&e.groupContainer.data(\"kendoDraggable\").destroy(),e.options.draggable||e.draggable.destroy(),e.dataSource&&e._refreshHandler&&(e.dataSource.unbind(\"change\",e._refreshHandler),e._refreshHandler=null),e.groupContainer=e.element=e.draggable=null},events:[\"change\"],options:{name:\"Groupable\",filter:\"th\",draggableElements:\"th\",messages:{empty:\"Drag a column header and drop it here to group by that column\"},sort:{dir:p,compare:null}},indicator:function(t){var i=e(\".k-group-indicator\",this.groupContainer);return e.grep(i,function(i){return e(i).attr(n.attr(\"field\"))===t})[0]},buildIndicator:function(e,t,i){var o=this,r=_({ns:n.ns,field:e.replace(/\"/g,\"'\"),title:t,dir:i||(o.options.sort||{}).dir||p});return r},_setIndicatorSortOptions:function(t,n){var i=e(this.indicator(t));i.data(m,n)},aggregates:function(){var t,i,o,r=this;return r.element.find(r.options.filter).map(function(){var r=e(this),a=r.attr(n.attr(\"aggregates\")),s=r.attr(n.attr(\"field\"));if(a&&\"\"!==a)for(t=a.split(\",\"),a=[],i=0,o=t.length;i=r&&!d||te.right})[0],t&&(t={left:d?t.element.position().left+o(t.element)+s:t.element.position().left-a,element:t.element,before:!0})),t},_drag:function(e){var t=this._dropCuePosition(e.x.location);t&&w.css({left:t.left,right:\"auto\"})},_canDrag:function(e){var t=e.attr(n.attr(\"field\"));return\"false\"!=e.attr(n.attr(\"groupable\"))&&t&&(e.hasClass(\"k-group-indicator\")||!this.indicator(t))},_canDrop:function(e,t,n){var i=e.next(),o=e[0]!==t[0]&&(!i[0]||t[0]!==i[0]||!d&&n>i.position().left||d&&nu._index(u._draggable)&&d.smartPosition&&(s[l?\"left\":\"top\"]+=l?i(t):o(t)),u.reorderDropCue.css({height:o(t),top:s.top,left:s.left}).appendTo(document.body),d.positionDropCue&&d.positionDropCue(u.reorderDropCue,t)))},dragleave:function(e){u.toggleHintClass(e.draggable.hint,!0),u.reorderDropCue.remove(),u._dropTarget=null},drop:function(){var e,t,n,i;u._dropTarget=null,u._draggable&&(e=this.element,t=u._draggable,n=u._index(e),i=\"horizontal\"===u.options.orientation?r(u.reorderDropCue).left>r(e).left:r(u.reorderDropCue).top>r(e).top,n=i?n+1:n,u._dropTargetAllowed(e)&&!u._isLastDraggable()&&u._index(t)!==n&&u.trigger(s,{element:u._draggable,target:e,oldIndex:u._index(t),newIndex:u._index(e),position:i?\"after\":\"before\"}),u.reorderDropCue&&u.reorderDropCue.remove())}}),c.bind([\"dragcancel\",\"dragend\",\"dragstart\",\"drag\"],{dragcancel:e.proxy(u._dragcancel,u),dragend:e.proxy(u._dragend,u),dragstart:e.proxy(u._dragstart,u),drag:e.proxy(u._drag,u)})},options:{name:\"Reorderable\",filter:\"*\",orientation:\"horizontal\",deniedIcon:\"k-i-cancel\",allowIcon:\"k-i-plus\",reorderDropCue:e('
    '),smartPosition:!0},events:[s],toggleHintClass:function(t,n){var i=this,o=i.options;t=e(t),n?t.find(\".k-drag-status\").removeClass(o.allowIcon).addClass(o.deniedIcon):t.find(\".k-drag-status\").removeClass(o.deniedIcon).addClass(o.allowIcon)},_handleExternalDraggable:function(t){var n=this;n._dragcancelHandler=e.proxy(n._dragcancel,n),n._dragendHandler=e.proxy(n._dragend,n),n._dragstartHandler=e.proxy(n._dragstart,n),n._dragHandler=e.proxy(n._drag,n),n._draggable=t.currentTarget.closest(n.options.dropFilter),n._draggableInstance=t,n._elements=n.element.find(n.options.dropFilter),t.bind([\"dragcancel\",\"dragend\",\"dragstart\",\"drag\"],{dragcancel:n._dragcancelHandler,dragend:n._dragendHandler,dragstart:n._dragstartHandler,drag:n._dragHandler})},_dragcancel:function(){var e=this;e._draggableInstance&&(e._dragcancelHandler||e._dragendHandler||e._dragstartHandler||e._dragHandler)&&e._draggableInstance.unbind({dragcancel:e._dragcancelHandler,dragend:e._dragendHandler,dragstart:e._dragstartHandler,drag:e._dragHandler}),e.reorderDropCue&&e.reorderDropCue.remove(),e._draggable=null,e._elements=null},_dragend:function(){var e=this;e._draggableInstance&&(e._dragcancelHandler||e._dragendHandler||e._dragstartHandler||e._dragHandler)&&e._draggableInstance.unbind({dragcancel:e._dragcancelHandler,dragend:e._dragendHandler,dragstart:e._dragstartHandler,drag:e._dragHandler}),e.reorderDropCue&&e.reorderDropCue.remove(),e._draggable=null,e._elements=null},_dragstart:function(t){var n=this;n._draggable=e(t.currentTarget).closest(n.options.dropFilter),n._elements=n.element.find(n.options.dropFilter)},_drag:function(t){var n,a,s,l,d,c,u,h=this,p={},f=e(t.currentTarget).closest(h.options.dropFilter);!h._dropTarget||h.options.smartPosition&&t.sender.hint.find(\".k-drag-status\").hasClass(\"k-i-cancel\")||(n=h._index(h._dropTarget),a=h._index(f),a=n>a?a+1:a,\"horizontal\"===h.options.orientation?(l=r(h._dropTarget).left,d=i(h._dropTarget),t.pageX>l+d/2?(p.left=l+d,n+=1):p.left=l):(c=r(h._dropTarget).top,u=o(h._dropTarget),t.pageY>c+u/2?(p.top=c+u,n+=1):p.top=c),h.reorderDropCue.css(p),h.options.positionDropCue&&h.options.positionDropCue(h.reorderDropCue,h._dropTarget),h._isPartOfSortable(f)&&(s=a===n||h.options.dragOverContainers&&!h.options.dragOverContainers(a,n),h.toggleHintClass(t.sender.hint,s)))},_isPartOfSortable:function(e){var t=this;return t._elements.index(e)>=0},_externalDraggable:function(e){var t=this,n=t.options;return!t._draggable&&n.externalDraggable?n.externalDraggable(e):null},_isLastDraggable:function(){var e,t=this.options.inSameContainer,n=this._draggable[0],i=this._elements.get(),o=!1;if(!t)return!1;for(;!o&&i.length>0;)e=i.pop(),o=n!==e&&t({source:n,target:e,sourceIndex:this._index(n),targetIndex:this._index(e)});return!o},_dropTargetAllowed:function(e){var t=this.options.inSameContainer,n=this.options.dragOverContainers,i=this._draggable;return i[0]!==e[0]&&(!t||!n||(!!t({source:i,target:e,sourceIndex:this._index(i),targetIndex:this._index(e)})||n(this._index(i),this._index(e))))},_index:function(e){return this._elements.index(e)},destroy:function(){var t=this;a.fn.destroy.call(t),t.element.find(t.options.dropFilter).each(function(){var t=e(this);t.data(\"kendoDropTarget\")&&t.data(\"kendoDropTarget\").destroy()}),t.draggable&&(t.draggable.destroy(),t.draggable.element=t.draggable=null),t.reorderDropCue.remove(),t.elements=t.reorderDropCue=t._elements=t._draggable=null}});n.ui.plugin(d)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.resizable.min\",[\"kendo.core.min\",\"kendo.draganddrop.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,o=i.Widget,r=e.proxy,a=n.isFunction,s=e.extend,l=\"horizontal\",d=\"vertical\",c=\"start\",u=\"resize\",h=\"resizeend\",p=o.extend({init:function(e,t){var n=this;o.fn.init.call(n,e,t),n.orientation=n.options.orientation.toLowerCase()!=d?l:d,n._positionMouse=n.orientation==l?\"x\":\"y\",n._position=n.orientation==l?\"left\":\"top\",n._sizingDom=n.orientation==l?\"outerWidth\":\"outerHeight\",n.draggable=new i.Draggable(t.draggableElement||e,{distance:1,filter:t.handle,drag:r(n._resize,n),dragcancel:r(n._cancel,n),dragstart:r(n._start,n),dragend:r(n._stop,n)}),n.userEvents=n.draggable.userEvents},events:[u,h,c],options:{name:\"Resizable\",orientation:l},resize:function(){},_max:function(e){var n=this,i=n.hint?n.hint[n._sizingDom]():0,o=n.options.max;return a(o)?o(e):o!==t?n._initialElementPosition+o-i:o},_min:function(e){var n=this,i=n.options.min;return a(i)?i(e):i!==t?n._initialElementPosition+i:i},_start:function(t){var n=this,i=n.options.hint,o=e(t.currentTarget);n._initialElementPosition=o.position()[n._position],n._initialMousePosition=t[n._positionMouse].startLocation,i&&(n.hint=a(i)?e(i(o)):i,n.hint.css({position:\"absolute\"}).css(n._position,n._initialElementPosition).appendTo(n.element)),n.trigger(c,t),n._maxPosition=n._max(t),n._minPosition=n._min(t),e(document.body).css(\"cursor\",o.css(\"cursor\"))},_resize:function(e){var n,i=this,o=i._maxPosition,r=i._minPosition,a=i._initialElementPosition+(e[i._positionMouse].location-i._initialMousePosition);n=r!==t?Math.max(r,a):a,i.position=n=o!==t?Math.min(o,n):n,i.hint&&i.hint.toggleClass(i.options.invalidClass||\"\",n==o||n==r).css(i._position,n),i.resizing=!0,i.trigger(u,s(e,{position:n}))},_stop:function(t){var n=this;n.hint&&n.hint.remove(),n.resizing=!1,n.trigger(h,s(t,{position:n.position})),e(document.body).css(\"cursor\",\"\")},_cancel:function(e){var n=this;n.hint&&(n.position=t,n.hint.css(n._position,n._initialElementPosition),n._stop(e))},destroy:function(){var e=this;o.fn.destroy.call(e),e.draggable&&e.draggable.destroy()},press:function(e){if(e){var t=e.position(),n=this;n.userEvents.press(t.left,t.top,e[0]),n.targetPosition=t,n.target=e}},move:function(e){var n=this,i=n._position,o=n.targetPosition,r=n.position;r===t&&(r=o[i]),o[i]=r+e,n.userEvents.move(o.left,o.top)},end:function(){this.userEvents.end(),this.target=this.position=t}});n.ui.plugin(p)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.sortable.min\",[\"kendo.draganddrop.min\"],e)}(function(){return function(e,t){function n(t,n){try{return e.contains(t,n)||t==n}catch(i){return!1}}function i(e){return e.clone()}function o(e){return e.clone().removeAttr(\"id\").css(\"visibility\",\"hidden\")}var r=window.kendo,a=r.ui.Widget,s=r._outerWidth,l=r._outerHeight,d=\"start\",c=\"beforeMove\",u=\"move\",h=\"end\",p=\"change\",f=\"cancel\",m=\"sort\",g=\"remove\",v=\"receive\",_=\">*\",b=-1,w=a.extend({init:function(e,t){var n=this;a.fn.init.call(n,e,t),n.options.placeholder||(n.options.placeholder=o),n.options.hint||(n.options.hint=i),n.draggable=n._createDraggable()},events:[d,c,u,h,p,f],options:{name:\"Sortable\",hint:null,placeholder:null,filter:_,holdToDrag:!1,disabled:null,container:null,connectWith:null,handler:null,cursorOffset:null,axis:null,ignore:null,autoScroll:!1,cursor:\"auto\",moveOnDragEnter:!1},destroy:function(){this.draggable.destroy(),a.fn.destroy.call(this)},_createDraggable:function(){var t=this,n=t.element,i=t.options;return new r.ui.Draggable(n,{filter:i.filter,hint:r.isFunction(i.hint)?i.hint:e(i.hint),holdToDrag:i.holdToDrag,container:i.container?e(i.container):null,cursorOffset:i.cursorOffset,axis:i.axis,ignore:i.ignore,autoScroll:i.autoScroll,dragstart:e.proxy(t._dragstart,t),dragcancel:e.proxy(t._dragcancel,t),drag:e.proxy(t._drag,t),dragend:e.proxy(t._dragend,t)})},_dragstart:function(t){var n=this.draggedElement=t.currentTarget,i=this.options.disabled,o=this.options.handler,a=this.options.placeholder,s=this.placeholder=e(r.isFunction(a)?a.call(this,n):a);i&&n.is(i)?t.preventDefault():o&&!e(t.initialTarget).is(o)?t.preventDefault():this.trigger(d,{item:n,draggableEvent:t})?t.preventDefault():(n.css(\"display\",\"none\"),n.before(s),this._setCursor())},_dragcancel:function(){this._cancel(),this.trigger(f,{item:this.draggedElement}),this._resetCursor()},_drag:function(n){var i,o,r,a,s,l=this.draggedElement,d=this._findTarget(n),c={left:n.x.location,top:n.y.location},u={x:n.x.delta,y:n.y.delta},h=this.options.axis,p=this.options.moveOnDragEnter,f={item:l,list:this,draggableEvent:n};if(\"x\"===h||\"y\"===h)return this._movementByAxis(h,c,u[h],f),t;if(d){if(i=this._getElementCenter(d.element),o={left:Math.round(c.left-i.left),top:Math.round(c.top-i.top)},e.extend(f,{target:d.element}),d.appendToBottom)return this._movePlaceholder(d,null,f),t;if(d.appendAfterHidden&&this._movePlaceholder(d,\"next\",f),this._isFloating(d.element)?u.x<0&&p||!p&&o.left<0?r=\"prev\":(u.x>0&&p||!p&&o.left>0)&&(r=\"next\"):u.y<0&&p||!p&&o.top<0?r=\"prev\":(u.y>0&&p||!p&&o.top>0)&&(r=\"next\"),r){for(s=\"prev\"===r?jQuery.fn.prev:jQuery.fn.next,a=s.call(d.element);a.length&&!a.is(\":visible\");)a=s.call(a);a[0]!=this.placeholder[0]&&this._movePlaceholder(d,r,f)}}},_dragend:function(n){var i,o,r,a,s=this.placeholder,l=this.draggedElement,d=this.indexOf(l),c=this.indexOf(s),u=this.options.connectWith;return this._resetCursor(),r={action:m,item:l,oldIndex:d,newIndex:c,draggableEvent:n},c>=0?o=this.trigger(h,r):(i=s.parents(u).getKendoSortable(),r.action=g,a=e.extend({},r,{action:v,oldIndex:b,newIndex:i.indexOf(s)}),o=!(!this.trigger(h,r)&&!i.trigger(h,a))),o||c===d?(this._cancel(),t):(s.replaceWith(l),l.show(),this.draggable.dropped=!0,r={action:this.indexOf(l)!=b?m:g,item:l,oldIndex:d,newIndex:this.indexOf(l),draggableEvent:n},this.trigger(p,r),i&&(a=e.extend({},r,{action:v,oldIndex:b,newIndex:i.indexOf(l)}),i.trigger(p,a)),t)},_findTarget:function(n){var i,o,r=this._findElementUnderCursor(n),a=this.options.connectWith;return e.contains(this.element[0],r)?(i=this.items(),o=i.filter(r)[0]||i.has(r)[0],o?{element:e(o),sortable:this}:null):this.element[0]==r&&this._isEmpty()?{element:this.element,sortable:this,appendToBottom:!0}:this.element[0]==r&&this._isLastHidden()?(o=this.items().eq(0),{element:o,sortable:this,appendAfterHidden:!0}):a?this._searchConnectedTargets(r,n):t},_findElementUnderCursor:function(e){var t=r.elementUnderCursor(e),i=e.sender;return n(i.hint[0],t)&&(i.hint.hide(),t=r.elementUnderCursor(e),t||(t=r.elementUnderCursor(e)),i.hint.show()),t},_searchConnectedTargets:function(t,n){var i,o,r,a,s=e(this.options.connectWith);for(a=0;a0&&a-r>0&&this._movePlaceholder({element:s,sortable:this},\"next\",o))},_movePlaceholder:function(e,t,n){var i=this.placeholder;e.sortable.trigger(c,n)||(t?\"prev\"===t?e.element.before(i):\"next\"===t&&e.element.after(i):e.element.append(i),e.sortable.trigger(u,n))},_setCursor:function(){var t,n=this.options.cursor;n&&\"auto\"!==n&&(t=e(document.body),this._originalCursorType=t.css(\"cursor\"),t.css({cursor:n}),this._cursorStylesheet||(this._cursorStylesheet=e(\"\")),this._cursorStylesheet.appendTo(t))},_resetCursor:function(){this._originalCursorType&&(e(document.body).css(\"cursor\",this._originalCursorType),this._originalCursorType=null,this._cursorStylesheet.remove())},_getElementCenter:function(e){var t=e.length?r.getOffset(e):null;return t&&(t.top+=l(e)/2,t.left+=s(e)/2),t},_isFloating:function(e){var t=/left|right/.test(e.css(\"float\")),n=/inline|table-cell/.test(e.css(\"display\")),i=/flex/.test(e.parent().css(\"display\"))&&(/row|row-reverse/.test(e.parent().css(\"flex-direction\"))||!e.parent().css(\"flex-direction\"));return t||n||i},_cancel:function(){this.draggedElement.show(),this.placeholder.remove(),this.draggable.dropped=!0},_items:function(){var e,t=this.options.filter;return e=t?this.element.find(t):this.element.children()},indexOf:function(e){var t=this._items(),n=this.placeholder,i=this.draggedElement;return n&&e[0]==n[0]?t.not(i).index(e):t.not(n).index(e)},items:function(){var e=this.placeholder,t=this._items();return e&&(t=t.not(e)),t},_isEmpty:function(){return!this.items().length},_isLastHidden:function(){return 1===this.items().length&&this.items().is(\":hidden\")}});r.ui.plugin(w)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.selectable.min\",[\"kendo.core.min\",\"kendo.userevents.min\"],e)}(function(){return function(e,t){function n(e,t){if(!e.is(\":visible\"))return!1;var n=r.getOffset(e),i=t.left+t.width,o=t.top+t.height;return n.right=n.left+r._outerWidth(e),n.bottom=n.top+r._outerHeight(e),!(n.left>i||n.righto||n.bottom=t.right||e.bottom<=t.top||e.top>=t.bottom)}var o,r=window.kendo,a=r.ui.Widget,s=e.proxy,l=Math.abs,d=\"aria-selected\",c=\"k-state-selected\",u=\"k-state-selecting\",h=\"k-selectable\",p=\"change\",f=\".kendoSelectable\",m=\"unselect\",g=\"k-state-unselecting\",v=\"input,a,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-arrow-60-down,span.k-icon.k-i-arrow-60-up,label.k-checkbox-label.k-no-text,.k-icon.k-i-collapse,.k-icon.k-i-expand,span.k-numeric-wrap,.k-focusable\",_=r.support.browser.msie,b=!1,w=e.extend;!function(e){!function(){e('
    ').on(\"click\",\">*\",function(){b=!0}).find(\"span\").trigger(\"click\").end().off()}()}(e),o=a.extend({init:function(t,n){var i,o=this;a.fn.init.call(o,t,n),o._marquee=e(\"
    \"),o._lastActive=null,o.element.addClass(h),o.relatedTarget=o.options.relatedTarget,\ni=o.options.multiple,o.userEvents=new r.UserEvents(o.element,{global:!0,allowSelection:!0,filter:(b?\"\":\".\"+h+\" \")+o.options.filter,tap:s(o._tap,o),touchAction:i?\"none\":\"pan-x pan-y\"}),i&&o.userEvents.bind(\"start\",s(o._start,o)).bind(\"move\",s(o._move,o)).bind(\"end\",s(o._end,o)).bind(\"select\",s(o._select,o))},events:[p,m],options:{name:\"Selectable\",filter:\">*\",inputSelectors:v,multiple:!1,relatedTarget:e.noop,ignoreOverlapped:!1,addIdToRanges:!1},_isElement:function(e){var t,n=this.element,i=n.length,o=!1;for(e=e[0],t=0;te.x.location?e.x.location:e.x.startLocation,top:e.y.startLocation>e.y.location?e.y.location:e.y.startLocation,width:l(e.x.initialDelta),height:l(e.y.initialDelta)};t._marquee.css(n),t._invalidateSelectables(n,e.event.ctrlKey||e.event.metaKey),e.preventDefault()},_end:function(t){var n,i,o=this,a=r.attr(\"range-selected\"),s=r.guid();if(o._marquee.remove(),o._unselect(o.element.find(o.options.filter+\".\"+g)).removeClass(g),n=o.element.find(o.options.filter+\".\"+u),n=n.add(o.relatedTarget(n)),o.options.addIdToRanges)for(i=0;io.right)return!0;s=!i(o,t)}return s},value:function(e,n){var i=this,o=s(i._selectElement,i);return e?(e.each(function(){o(this)}),i._notify(p,n),t):i.element.find(i.options.filter+\".\"+c)},selectedRanges:function(){var t=this,n=r.attr(\"range-selected\"),i={};return t.element.find(\"[\"+n+\"]\").each(function(t,o){var r=e(o).attr(n),a=i[r];a||(a=i[r]=[]),a.push(e(o))}),i},selectedSingleItems:function(){var t=this,n=r.attr(\"range-selected\");return t.element.find(t.options.filter+\".\"+c+\":not([\"+n+\"])\").toArray().map(function(t){return e(t)})},_firstSelectee:function(){var e,t=this;return null!==t._lastActive?t._lastActive:(e=t.value(),e.length>0?e[0]:t.element.find(t.options.filter)[0])},_selectElement:function(t,n){var i=e(t),o=!n&&this._notify(\"select\",{element:t});i.removeClass(u),o||(i.addClass(c),this.options.aria&&i.attr(d,!0))},_notify:function(e,t){return t=t||{},this.trigger(e,t)},_unselect:function(e){if(!this.trigger(m,{element:e})){var t=r.attr(\"range-selected\");return e.removeClass(c).removeAttr(t),this.options.aria&&e.attr(d,!1),e}},_select:function(t){this._allowSelection(t.event.target)&&(!_||_&&!e(r._activeElement()).is(this.options.inputSelectors))&&t.preventDefault()},_allowSelection:function(t){return!e(t).is(this.options.inputSelectors)||(this.userEvents.cancel(),this._downTarget=null,!1)},resetTouchEvents:function(){this.userEvents.cancel()},clear:function(){var e=this.element.find(this.options.filter+\".\"+c);this._unselect(e)},selectRange:function(t,n,i){var o,r,a,s=this;for(s.clear(),s.element.length>1&&(a=s.options.continuousItems()),a&&a.length||(a=s.element.find(s.options.filter)),t=e.inArray(e(t)[0],a),n=e.inArray(e(n)[0],a),t>n&&(r=t,t=n,n=r),s.options.useAllItems||(n+=s.element.length-1),o=t;o<=n;o++)s._selectElement(a[o]);s._notify(p,i)},destroy:function(){var e=this;a.fn.destroy.call(e),e.element.off(f),e.userEvents.destroy(),e._marquee=e._lastActive=e.element=e.userEvents=null}}),o.parseOptions=function(e){var t=e.mode||e,n=\"string\"==typeof t&&t.toLowerCase();return{multiple:n&&n.indexOf(\"multiple\")>-1,cell:n&&n.indexOf(\"cell\")>-1}},r.ui.plugin(o)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"chat/messageBox.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.extend,r=e.proxy,a=\".\",s=\".kendoChat\",l=n.keys,d='',c=' ',u={input:\"k-input\",button:\"k-button\",buttonFlat:\"k-flat\",buttonIcon:\"k-button-icon\",buttonSend:\"k-button-send\",buttonToggle:\"k-button-toggle\",iconAdd:\"k-icon k-i-add\",hidden:\"k-hidden\"},h=i.extend({init:function(e,t){i.fn.init.call(this,e,t),this._wrapper(),this._attachEvents(),this._typing=!1},events:[],options:{messages:{placeholder:\"Type a message...\",toggleButton:\"Toggle toolbar\",sendButton:\"Send message\"}},destroy:function(){i.fn.destroy.call(this),this.input&&(this.input.off(s),this.input.remove(),this.input=null),this.element.off(s),this.element.empty()},_wrapper:function(){var t=h.styles,i=this.options,o=i.messages,r=\"inputId_\"+n.guid();e(\"
    \";this.wrapper=this.element.addClass(e.wrapper).append(o),t.toolbar&&t.toolbar.buttons&&t.toolbar.buttons.length&&this.wrapper.find(r+e.toolbarBoxWrapper).show(),n&&this.wrapper.height(n),i&&this.wrapper.css(\"max-width\",i)},_view:function(){var e=this,t=s.styles,i=o(!0,{},this.options),a=this.wrapper.find(r+t.viewWrapper+\"\");this.view=new n.chat.ChatView(a,i),this.view.bind(\"actionClick\",function(t){e.trigger(\"actionClick\",t),e.postMessage(t.text)})},_messageBox:function(){var e=this,t=s.styles,i=o(!0,{},this.options),a=this.wrapper.find(r+t.messageBoxWrapper+\"\");this.messageBox=new n.chat.ChatMessageBox(a,i),this.messageBox.bind(\"typingStart\",function(t){e.trigger(\"typingStart\",t)}).bind(\"typingEnd\",function(t){e.trigger(\"typingEnd\",t)}).bind(\"sendMessage\",function(t){e.trigger(\"sendMessage\",t),e.postMessage(t.text)}).bind(\"toggleToolbar\",function(){e.toggleToolbar()})},_toolbar:function(){var e=this,i=s.styles,a=o(!0,{},e.options),l=e.wrapper.find(r+i.toolbarBoxWrapper+\"\");a.toolbar.scrollable===t&&(this.options.toolbar.scrollable=a.toolbar.scrollable=!0),a.toolbar.toggleable===t&&(this.options.toolbar.toggleable=a.toolbar.toggleable=!1),e.toolbar=new n.chat.ChatToolBar(l,a),e.toolbar.bind(\"click\",function(t){e.trigger(\"toolClick\",{sender:e,name:t.name,button:t.button,messageBox:e.messageBox.input[0],originalEvent:t.originalEvent})})},postMessage:function(e){var t=o(!0,{},{text:e,type:\"message\",timestamp:new Date,from:this.getUser()});this.trigger(\"post\",t),this.renderMessage(t,t.from)},renderMessage:function(e,t){this.view.renderMessage(e,t)},renderSuggestedActions:function(e){this.view.renderSuggestedActions(e)},renderAttachments:function(e,t){this.view.renderAttachments(e,t)},toggleToolbar:function(e){this.toolbar.toggle(e)},renderUserTypingIndicator:function(e){this.view._renderTypingIndicator(e)},clearUserTypingIndicator:function(e){this.view._removeTypingParticipant(e)},removeTypingIndicator:function(){this.view._removeTypingIndicator()}});n.ui.plugin(s),o(!0,s,{styles:a})}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.badge.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=n.ui,r=\"k-hidden\",a=\"\",s=\"#= icon #\",l=i.extend({init:function(e,t){var o=this;i.fn.init.call(o,e,t),o._content(),o._appearance(),n.notify(o)},destroy:function(){var e=this;i.fn.destroy.call(e)},options:{name:\"Badge\",cutoutBorder:!1,data:{},fill:\"solid\",icon:\"\",max:1/0,position:\"inline\",align:\"\",sizes:{small:\"sm\",medium:\"md\",large:\"lg\"},size:\"medium\",shape:\"rounded\",template:null,text:\"\",themeColor:\"secondary\",visible:!0,_classNames:[]},_content:function(){var e=this,i=e.options.text,o=e.options.template,r=e.options.data,a=e.options.icon;return null!==o?(e._text=i,e._template=n.template(o).bind(e),e.element.html(e._template(r)),t):\"\"!==a?(e.icon(a),t):\"\"!==i?(e.text(i),t):(e.text(e.element.html()),t)},_appearance:function(){var e=this;e._themeColor=e.options.themeColor,e._shape=e.options.shape,e._sizes=e.options.sizes,e._size=e.options.size,e._fill=e.options.fill,e._cutoutBorder=e.options.cutoutBorder,e._align=e.options.align,e._position=e.options.position,e._visible=e.options.visible,e._updateClassNames()},_updateClassNames:function(){var e=this,n=[\"k-badge\"],i=e.options._classNames,o=e._themeColor,a=e._shape,s=e._sizes,l=e._size,d=s[l]===t?l:s[l],c=e._fill,u=e._cutoutBorder,h=e._align,p=e._position,f=e._visible;e.element.removeClass(function(t,n){0===n.indexOf(\"k-\")&&i.indexOf(n)===-1&&e.element.removeClass(n)}),\"string\"==typeof c&&\"\"!==c&&n.push(\"k-badge-\"+c),\"string\"==typeof o&&\"\"!==o&&n.push(\"k-badge-\"+o),\"string\"==typeof l&&\"\"!==l&&n.push(\"k-badge-\"+d),\"string\"==typeof a&&\"\"!==a&&n.push(\"k-badge-\"+a),\"boolean\"==typeof u&&u===!0&&n.push(\"k-badge-border-cutout\"),\"string\"==typeof p&&\"\"!==p&&n.push(\"k-badge-\"+p),\"string\"==typeof p&&\"\"!==p&&\"inline\"!==p&&\"string\"==typeof h&&2==h.split(\" \").length&&n.push(\"k-\"+h.replace(\" \",\"-\")),f===!1&&n.push(r),e.element.addClass(n.join(\" \"))},setOptions:function(e){var t=this;t.element.removeClass(function(e,n){n.indexOf(\"k-\")>=0&&t.element.removeClass(n)}),i.fn.setOptions.call(t,e),t._content(),t._appearance()},text:function(e){var n=this,i=n.options.max;return 0===arguments.length||e===t?n._text:(n._text=e,e===!0||e===!1||null===e?(n.element.html(\"\"),t):\"string\"==typeof e?(n.element.html(e),t):\"number\"==typeof e?(n.element.html(e>i?i+\"+\":e),t):\"object\"==typeof e&&\"toString\"in e?(n.element.html(\"\"+e),t):t)},icon:function(e){var i,o=this;return 0===arguments.length||e===t?o._icon:(o._icon=e,0===e.indexOf(\"0)&&(o=!1)}),a.addClass(o?p:f)),u?(n=a.children(\"img.k-image\").first(),n[0]||(n=e('\"icon\"').prependTo(a)),n.attr(\"src\",u)):l||d?(t=a.children(\"span.k-icon\").first(),t[0]||(t=e(\"\").prependTo(a)),t.attr(\"class\",l?\"k-icon k-i-\"+l:d)):c&&(t=a.children(\"span.k-sprite\").first(),t[0]||(t=e('').prependTo(a)),t.addClass(c))},enable:function(e){var n=this,i=n.element;e===t&&(e=!0),e=!!e,n.options.enable=e,i.toggleClass(v,!e).attr(\"aria-disabled\",!e).attr(g,!e),e&&n._tabindex();try{i.trigger(\"blur\")}catch(o){}},_badge:function(){var n,i=this,o=i.options.badge;null!==o&&o!==t&&(o.constructor!==Object&&(o={text:o}),o.position!==t&&\"\"!==o.position||(o.position=\"edge\",o.align!==t&&\"\"!==o.align||(o.align=\"top end\")),o._classNames=[\"k-button-badge\"],i.element.addClass(\"k-badge-container\"),n=e(\"\").appendTo(i.element),i.badge=new r.Badge(n,o))}}),n.fn.hasOwnProperty(\"defaults\")===!1&&Object.defineProperty(n.fn,\"defaults\",{get:function(){return i.defaults.button}}),i.ui.plugin(n)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.buttongroup.min\",[\"kendo.core.min\",\"kendo.badge.min\"],e)}(function(){return function(e,t){function n(n,i){var r;null!==n&&n!==t&&(n.constructor!==Object&&(n={text:n}),n.position!==t&&\"\"!==n.position||(n.position=\"edge\",n.align!==t&&\"\"!==n.align||(n.align=\"top end\")),n._classNames=[\"k-button-badge\"],i.addClass(\"k-badge-container\"),r=e(\"\").appendTo(i),i.badge=new o.Badge(r,n))}var i=window.kendo,o=i.ui,r=o.Widget,a=i.keys,s=e.proxy,l=i.template,d=\".kendoButtonGroup\",c=\"k-widget\",u=\"k-button-group\",h=\"k-button\",p=\"k-button-icontext\",f=\"k-button-icon\",m=\"k-state-active\",g=\"k-state-disabled\",v=\"select\",_=\"click\",b=\"keydown\",w=\"focus\",k=\"focusout\",y=\"mousedown\",x=i.support.browser.msie,C={item:l('#= icon(iconClass) ##= image(item) ##= text #'),image:l('\"icon\"'),icon:l(''),empty:l(\"\")},S=r.extend({init:function(t,n){var i=this;r.fn.init.call(i,t,n),i.wrapper=i.element,i.options.items&&i._renderItems(i.options.items),i.selectedIndices=[],i.element.addClass(c+\" \"+u).attr(\"role\",\"group\").attr(\"tabindex\",i.element.attr(\"tabindex\")||\"0\").children().each(function(){var t=e(this);i._updateClasses.bind(i)(t)}),i._enable=!0,i.options.enable&&i.options.enabled||(i._enable=!1,i.element.attr(\"aria-disabled\",!0).addClass(g)),i.select(i.options.index),i._attachEvents()},events:[v],options:{name:\"ButtonGroup\",selection:\"single\",index:-1,enable:!0,enabled:!0},current:function(){return this.element.find(\".\"+m)},_attachEvents:function(){var e=this;e.element.on(_+d,\".\"+h,s(e._click,e)).on(w+d,s(e._focus,e)).on(k+d,s(e._focusout,e)).on(b+d,s(e._keyDown,e)).on(y+d,s(e._mouseDown,e))},_renderItems:function(t){var o=this;t.forEach(function(t){var r=e(C.item({image:t.imageUrl?C.image:C.empty,icon:t.imageUrl||!t.iconClass&&!t.icon?C.empty:C.icon,iconClass:t.iconClass||\"k-icon k-i-\"+t.icon,item:t,text:t.text?t.encoded===!1?t.text:i.htmlEncode(t.text):\"\"}));t.attributes&&r.attr(t.attributes),t.selected&&r.addClass(m),(t.iconClass||t.icon||t.imageUrl)&&r.addClass(t.text?\"k-button-icontext\":\"k-button-icon\"),t.badge&&n(t.badge,r),r.appendTo(o.element)})},_mouseDown:function(e){var t=e.clientX,n=e.clientY,i=document.elementFromPoint(t,n);i!==this.element[0]&&(this.preventFocus=!0,this.preventFocusOut=!0),x&&this._focus()},_focus:function(){var n=e(this.element);return n.removeAttr(\"tabindex\"),n.find(\"[role='button']\").attr(\"tabindex\",\"0\"),this.preventFocus?(this.preventFocus=!1,t):(n.find(\".\"+m).length?n.find(\".\"+m).first().trigger(\"focus\"):n.children().first().trigger(\"focus\"),t)},_focusout:function(){var e=this,n=e.wrapper;return this.preventFocusOut?(this.preventFocusOut=!1,t):(setTimeout(function(){n[0].contains(document.activeElement)||(n.attr(\"tabindex\",\"0\"),n.find(\"[role='button']\").removeAttr(\"tabindex\"))}),t)},_keyDown:function(t){var n,o=this,r=e(o.element),s=r.find(\".\"+h),l=r.find(\":focus\"),d=s.index(l),c=i.support.isRtl(o.element);t.keyCode===a.LEFT&&!c||t.keyCode===a.RIGHT&&c?(n=0===d?s.eq(s.length-1):e(s[d-1]),n.trigger(\"focus\"),t.preventDefault()):t.keyCode===a.LEFT&&c||t.keyCode===a.RIGHT&&!c?(n=d+1===s.length?s.eq(0):e(s[d+1]),n.trigger(\"focus\"),t.preventDefault()):t.keyCode!==a.ENTER&&t.keyCode!==a.SPACEBAR||(o._select(l),t.preventDefault())},select:function(n){var i,o=this,r=-1;n!==t&&n!==-1&&(\"number\"==typeof n?(r=n,n=o.element.children().eq(n)):n.nodeType&&(n=e(n),r=n.index()),\"multiple\"===o.options.selection?(i=\"true\"===n.attr(\"aria-pressed\"),n.attr(\"aria-pressed\",!i).toggleClass(m),o.selectedIndices.indexOf(r)===-1?o.selectedIndices.push(r):o.selectedIndices.splice(o.selectedIndices.indexOf(r),1)):(o.selectedIndices=[],o.current().attr(\"aria-pressed\",!1).removeClass(m),n.attr(\"aria-pressed\",!0).addClass(m),o.selectedIndices.push(r)))},badge:function(e,o){var r,a=this.element,s=isNaN(e)?a.find(e):a.children().eq(e),l=o||0===o;if(s.length){if(r=s.children(\".k-badge\").eq(0).data(\"kendoBadge\"),!r&&l)return n({text:i.htmlEncode(o)},s),i.htmlEncode(o);if(l)r.text(i.htmlEncode(o));else if(o===!1)return r.element.empty().remove(),r.destroy(),t;return r?r.text():null}},enable:function(e){t===e&&(e=!0),this.element.attr(\"aria-disabled\",!e).toggleClass(g,!e),this._enable=this.options.enable=e},destroy:function(){var t=this;t.element.off(d),t.element.find(\".k-badge\").each(function(){e(this).data(\"kendoBadge\").destroy()}),r.fn.destroy.call(t)},_updateClasses:function(t){var o=i.attrValue(t,\"icon\"),r=i.attrValue(t,\"badge\"),a=t.find(\"img\").addClass(\"k-image\"),s=!0;t.attr(\"aria-pressed\",!1).attr(\"role\",\"button\").addClass(h),(t.is(\"[disabled]\")||t.hasClass(g))&&t.addClass(g).attr(\"aria-disabled\",!0).removeAttr(\"disabled\"),t.is(\".\"+m)&&(t.removeClass(m),(!t.hasClass(g)&&\"single\"===this.options.selection||\"multiple\"===this.options.selection)&&this.select(t[0])),!a[0]&&o&&t.prepend(e(C.icon(\"k-icon k-i-\"+o))),t.contents().filter(function(){return!e(this).hasClass(\"k-icon\")&&!e(this).hasClass(\"k-image\")}).each(function(){(1==this.nodeType||3==this.nodeType&&i.trim(this.nodeValue).length>0)&&(s=!1)}),(a[0]||o)&&t.addClass(s?f:p),(r||0===r)&&n(r,t)},_click:function(t){var n=e(t.target).closest(\".\"+h);t.isDefaultPrevented()||(t.target.focus(),this._select(n))},_select:function(e){var t=e;this._enable&&!t.is(\".\"+g)&&(this.select(e[0]),this.trigger(v,{indices:this.selectedIndices}))}});o.plugin(S)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.breadcrumb.min\",[\"kendo.core.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui.Widget,o=e.extend,r=e.isPlainObject,a=e.proxy,s=\".kendoBreadcrumb\",l=\"aria-hidden\",d=\"aria-label\",c=\"click\",u=\"focus\",h=\"blur\",p=\"keydown\",f=\"change\",m=\".\",g={widget:\"k-widget k-breadcrumb\",overlay:\"k-breadcrumb-container\",textbox:\"k-textbox\",link:\"k-breadcrumb-link\",item:\"k-breadcrumb-item\",delimiter:\"k-breadcrumb-delimiter-icon\",rootItem:\"k-breadcrumb-root-item\",rootLink:\"k-breadcrumb-root-link\",overflowIcon:\"k-breadcrumb-overflow-icon\",focused:\"k-state-focused\",hidden:\"k-hidden\",inputWrapper:\"k-breadcrumb-input-container\"},v=i.extend({init:function(e,t){var o=this;t=t||{},i.fn.init.call(o,e,t),o._wrapper(),t.editable&&(o._editable(),o._tabindex()),o.wrapper.on(c+s,\"a:not(.k-state-disabled)\",a(o._click,o)),t.value||t.bindToLocation||!t.items?o._value():t.items&&o.items(t.items),o._resizeHandler=n.onResize(function(){o.resize(!0)})},options:{editable:!1,navigational:!1,bindToLocation:!1,items:null,name:\"Breadcrumb\",gap:0,rootIcon:\"home\",delimiterIcon:\"arrow-chevron-right\",messages:{rootTitle:\"Go to root\"}},events:[f,c],destroy:function(){var e=this;i.fn.destroy.call(e),n.unbindResize(e._resizeHandler),e.wrapper.add(e.wrapper.find(\"input\")).add(e.wrapper.find(\"a\")).off(s)},items:function(e){var n=this;return e===t?n.options.items:(n.options.items=e,n._segments=e,n.refresh(),t)},_update:function(e){var t=this;e!==t.value()&&(t._generateSegments(e),t.refresh(),t.trigger(f,{sender:this,value:e}))},_generateSegments:function(e){var n,i,o=this,r=o.options,a=r.items,s=o._split(e);if(!a)return o.options.items=o._segments=s,t;for(o._segments=[],i=0;i-1&&a[i]&&a[i].text===s[i]?a[i]:s[i])},_click:function(t){var n=this,i=n.options,o=e(t.target).closest(m+g.item),r=o.prevAll().addBack(),a=n._getItems(r),s=n._path(a),l=n._segments[o.index()];i.navigational||t.preventDefault(),n.trigger(c,{sender:n,originalEvent:t,isRoot:\"rootitem\"===l.type,item:l})||n._update(s)},_getItems:function(t){var n=this;return e.map(t,function(t){return n._segments[e(t).index()]||t.innerText})},_edit:function(){var e=this,t=e.input;e.oldValue=e.value(),e.inputWrapper.css(\"height\",e.wrapper.height()),e.overlay.hide(),e.input.val(e.value()),e.input.attr(l,!1),e.inputWrapper.show(),setTimeout(function(){t.select()})},_blur:function(e){var t=this,n=t.input,i=t.inputWrapper,o=t.wrapper,r=t.overlay,a=n.val().replace(/\\/{2,}/g,\"/\");r.is(\":visible\")||(e&&(a=t.oldValue),n.attr(l,!0),i.hide(),r.show(),n.val(\"\"),t._update(a),o.removeClass(g.focused))},_keydown:function(e){var t=this,i=e.keyCode,o=i===n.keys.ENTER,r=i===n.keys.ESC;(o||r)&&(t._blur(r),setTimeout(function(){t.overlay.find(\"a\").first().trigger(\"focus\")}))},isNavigational:function(e){var t=e.hasClass(g.textbox)||e.closest(m+g.item);return e[0]!==this.wrapper[0]&&(t&&!e.hasClass(\"k-breadcrumb-last-item\"))},_wrapperKeydown:function(t){var i=this,o=e(t.target),r=i.isNavigational(o);t.keyCode!==n.keys.ENTER||r||i._edit()},_wrapperClick:function(t){var n=this,i=e(t.target),o=n.isNavigational(i);o||this._edit()},_wrapperFocus:function(t){e(t.target).addClass(g.focused)},_wrapperBlur:function(t){e(t.target).removeClass(g.focused)},_wrapper:function(){var t=this,n=this.element,i=n.is(\"input\");t.wrapper=i?n.wrap(e(\"
    \",indent:function(e){return e.replace(/<\\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,\"\\n\").replace(/<(ul|ol)([^>]*)>
  • \\n/gi,\"
    \\n\").replace(/\\n$/,\"\")}}),n.ui.editor.ViewHtmlCommand=c,o.EditorUtils.registerTool(\"viewHtml\",new s({command:c,template:new l({template:r.buttonTemplate,title:\"View HTML\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/format.min\",[\"editor/command.min\"],e)}(function(){!function(e){var t=window.kendo,n=e.extend,i=t.ui.editor,o=i.Tool,r=i.Command,a=i.EditorUtils,s=r.extend({init:function(e){e.formatter=e.formatter();var t=e.formatter.finder;t&&a.formatByName(\"immutable\",t.format)&&t._initOptions({immutables:e.immutables}),r.fn.init.call(this,e)}}),l=o.extend({init:function(e){o.fn.init.call(this,e)},command:function(e){var t=this;return new s(n(e,{formatter:t.options.formatter}))},update:function(e,t){var n=this.options.finder.isFormatted(t);e.toggleClass(\"k-state-selected\",n),e.attr(\"aria-pressed\",n)}});e.extend(i,{FormatCommand:s,FormatTool:l})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/inlineformat.min\",[\"editor/plugins/format.min\"],e)}(function(){!function(e){var t=window.kendo,n=t.Class,i=t.ui.editor,o=t.ui.Editor.fn.options.formats,r=i.EditorUtils,a=i.Tool,s=i.ToolTemplate,l=i.FormatTool,d=i.Dom,c=i.RangeUtils,u=e.extend,h=i.EditorUtils.registerTool,p=i.EditorUtils.registerFormat,f=\"mousedown.kendoEditor\",m=\"keydown.kendoEditor\",g=\"k-marker\",v=n.extend({init:function(e){this.format=e},numberOfSiblings:function(e){var t,n=0,i=0,o=0,r=e.parentNode;for(t=r.firstChild;t;t=t.nextSibling)t!=e&&(t.className==g?o++:3==t.nodeType?n++:i++);return o>1&&r.firstChild.className==g&&r.lastChild.className==g?0:i+n},findSuitable:function(e,t){var n,i;if(!t&&this.numberOfSiblings(e)>0)return null;for(n=e.parentNode,i=this.format[0].tags;!d.ofType(n,i);){if(this.numberOfSiblings(n)>0)return null;n=n.parentNode}return n},findFormat:function(e){var t,n,i,o,r,a=this.format,s=d.attrEquals;for(t=0,n=a.length;t0&&this.activate(e,n)},immutables:function(){return this.editor&&this.editor.options.immutables},apply:function(e){var t,n,i,o,r=[];if(e.length>1)for(t=0,n=e.length;t0)for(t=0;t1;)if(t=e.pop(),n=e[e.length-1],t.previousSibling&&t.previousSibling.className==g&&n.appendChild(t.previousSibling),t.tagName==n.tagName&&t.previousSibling==n&&t.style.cssText==n.style.cssText&&t.className===n.className){for(;t.firstChild;)n.appendChild(t.firstChild);d.remove(t)}}}),b=v.extend({init:function(e,t,n){this.format=e,this.greedyProperty=t,this.fontAttr=n,v.fn.init.call(this,e)},getInlineCssValue:function(e){var n,i,o,r,a,s,l,c,u,h,p,f,m=e.attributes,g=t.trim;if(m)for(n=0,i=m.length;n=0?d.toHex(f):f}if(this.fontAttr&&o.specified&&r==this.fontAttr)return p=o.nodeValue,f=o.nodeValue,p.indexOf(\"color\")>=0?d.toHex(f):f}},getFormatInner:function(t){var n,i,o,r=e(d.isDataNode(t)?t.parentNode:t),a=r.parentsUntil(\"[contentEditable]\").addBack().toArray().reverse();for(n=0,i=a.length;n
  • \")({messages:this.editor.options.messages})},exec:function(){var t,n,i,o,r=this.editor.options.messages;this._initialText=\"\",this._range=this.lockRange(!0),this.formatter.immutables=this.immutables(),t=v(this._range),n=t.length?this.formatter.finder.findSuitable(t[0]):null,\ni=t.length&&\"img\"==d.name(t[0]),o=this.createDialog(this._dialogTemplate(),{title:r.createLink,close:s(this._close,this),visible:!1}),n&&(this._range.selectNodeContents(n),t=v(this._range)),this._initialText=this.linkText(t),o.find(\".k-dialog-insert\").on(\"click\",s(this._apply,this)).end().find(\".k-dialog-close\").on(\"click\",s(this._close,this)).end().find(\".k-edit-field input\").on(\"keydown\",s(this._keydown,this)).end().find(\"#k-editor-link-url\").val(this.linkUrl(n)).end().find(\"#k-editor-link-text\").val(this._initialText).end().find(\"#k-editor-link-title\").val(n?n.title:\"\").end().find(\"#k-editor-link-target\").attr(\"checked\",!!n&&\"_blank\"==n.target).end().find(\".k-editor-link-text-row\").toggle(!i),this._dialog=o.data(\"kendoWindow\").center().open(),e(\"#k-editor-link-url\",o).trigger(\"focus\").select()},_keydown:function(e){var t=o.keys;e.keyCode==t.ENTER?this._apply(e):e.keyCode==t.ESC&&this._close(e)},_apply:function(t){var n,i,r,a=this._dialog.element,s=e(\"#k-editor-link-url\",a).val(),l=e(\"#k-editor-link-text\",a);s&&s!=k&&(s.indexOf(\"@\")>0&&!/^(\\w+:)|(\\/\\/)/i.test(s)&&(s=\"mailto:\"+s),this.attributes={href:s},n=e(\"#k-editor-link-title\",a).val(),n&&(this.attributes.title=n),l.is(\":visible\")&&(i=o.trim(l.val()),i||this._initialText?i&&i!==this._initialText&&(this.attributes.innerText=d.stripBom(i)):this.attributes.innerText=s),r=e(\"#k-editor-link-target\",a).is(\":checked\"),this.attributes.target=r?\"_blank\":null,this.formatter.apply(this._range,this.attributes)),this._close(t),this.change&&this.change()},_close:function(e){e.preventDefault(),this._dialog.destroy(),d.windowFromDocument(c.documentFromRange(this._range)).focus(),this.releaseRange(this._range)},linkUrl:function(e){return e?e.getAttribute(\"href\",2):k},linkText:function(e){var t,n=\"\";for(t=0;t-1)return this.end.node=t,this.end.offset=i+1,!1},_detectStart:function(e,t){var i=n(e,/\\s/),o=i+1;if(this.text=e.substring(o)+this.text,this.start.node=t,this.start.offset=o,i>-1)return!1},_skipStartPuntuation:function(e,t,n){var o=i(e,/\\w/),r=o;if(o===-1&&(r=e.length),this.text=this.text.substring(r),this.start.node=t,this.start.offset=r+(0|n),o>-1)return!1}}),R=function(){return{node:null,offset:null,blank:function(){return null===this.node&&null===this.offset}}},M=r.extend({init:function(n){this.node=n.node,this.offset=n.offset===t?d.isDataNode(this.node)&&this.node.length||0:n.offset,this.cancelAtNode=n.cancelAtNode||this.cancelAtNode||e.noop},traverse:function(e){e&&(this.cancel=!1,this._traverse(e,this.node,this.offset))},_traverse:function(e,n,i){var o,r,a,s;if(n&&!this.cancel){if(3!==n.nodeType)return r=this.edgeNode(n),this.cancel=this.cancel||this.cancelAtNode(r),this._traverse(e,r);if(o=n.data,i!==t&&(o=this.subText(o,i)),this.cancel=e(o,n,i)===!1,a=this.next(n),!a)for(s=n.parentNode;!a&&d.isInline(s);)a=this.next(s),s=s.parentNode;this.cancel=this.cancel||this.cancelAtNode(a),this._traverse(e,a)}},extendOptions:function(t){return e.extend({node:this.node,offset:this.offset,cancelAtNode:this.cancelAtNode},t||{})},edgeNode:function(e){},next:function(e){},subText:function(e,t){}}),F=M.extend({subText:function(e,t){return e.substring(0,t)},next:function(e){return e.previousSibling},edgeNode:function(e){return e.lastChild},clone:function(e){var t=this.extendOptions(e);return new F(t)}}),P=M.extend({subText:function(e,t){return e.substring(t)},next:function(e){return e.nextSibling},edgeNode:function(e){return e.firstChild},clone:function(e){var t=this.extendOptions(e);return new P(t)}});a(o.ui.editor,{LinkFormatFinder:C,LinkFormatter:S,UnlinkCommand:T,LinkCommand:D,AutoLinkCommand:I,UnlinkTool:A,DomTextLinkDetection:E,LeftDomTextTraverser:F,RightDomTextTraverser:P}),b(\"createLink\",new p({key:\"K\",ctrl:!0,command:D,template:new f({template:u.buttonTemplate,title:\"Create Link\"})})),b(\"unlink\",new A({key:\"K\",ctrl:!0,shift:!0,template:new f({template:u.buttonTemplate,title:\"Remove Link\"})})),b(\"autoLink\",new p({key:[w.ENTER,w.SPACEBAR],keyPressCommand:!0,command:I}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/formatblock.min\",[\"editor/plugins/format.min\"],e)}(function(){!function(e){var t,n=window.kendo,i=n.Class,o=e.extend,r=n.ui.editor,a=n.ui.Editor.fn.options.formats,s=r.Dom,l=r.ToolTemplate,d=r.FormatTool,c=r.EditorUtils,u=c.registerTool,h=c.registerFormat,p=r.RangeUtils,f=i.extend({init:function(e){this.format=e},contains:function(e,t){var n,i,o;for(n=0,i=t.length;n=0&&!(o=s.ofType(t[n],a[r].tags)?t[n]:s.closestEditableOfType(t[n],a[r].tags));r--);if(!o||\"true\"===o.contentEditable)return[];e.inArray(o,l)<0&&l.push(o)}for(this._resolveListsItems(l),n=0,i=l.length;n=0;a--)l=i.immutableParent(e[a]),l&&(l!==e[a+1]&&(t?s.attr(l,n.attr):s.unstyle(l,n.attr.style)),e.splice(a,1))},immutables:function(){return this.editor&&this.editor.options.immutables},remove:function(e){var t,n,i,o,r;for(this._handleImmutables(e,!1),t=0,n=e.length;t=0?new i.GreedyInlineFormatter(a):new i.GreedyBlockFormatter(a),t.editor=n.editor,t}})},initialize:function(e,t){var i,r=t.editor,a=this.options,s=a.name,l=this;l.editor=r,e.width(a.width),i=e.kendoSelectBox({dataTextField:\"text\",dataValueField:\"value\",dataSource:a.items||r.options[s],title:r.options.messages[s],autoSize:!0,change:function(){var e=this.dataItem();e&&o.exec(r,s,e.toJSON())},dataBound:function(){var e,t=this.dataSource.data();for(e=0;e#:data.text#')}).data(\"kendoSelectBox\"),e.attr(\"title\",t.title),i.wrapper.attr(\"title\",t.title),e.addClass(\"k-decorated\").closest(\".k-widget\").removeClass(\"k-\"+s).find(\"*\").addBack().attr(\"unselectable\",\"on\")},getFormattingValue:function(t,n){var i,o,r,a,s,l,d;for(i=0;i=0;t--)n=e[t],this.immutableParent(n)||this.clean(n);this.releaseRange(i)},clean:function(n){var o,r,a,s,d;if(n&&!l.isMarker(n)){if(o=l.name(n),\"ul\"==o||\"ol\"==o)for(r=new i.ListFormatter(o),a=n.previousSibling,s=n.nextSibling,r.unwrap(n);a&&a!=s;a=a.nextSibling)this.clean(a);else if(\"blockquote\"==o)l.changeTag(n,\"p\");else if(1!=n.nodeType||l.insignificant(n))t(n);else{for(d=n.childNodes.length-1;d>=0;d--)this.clean(n.childNodes[d]);n.removeAttribute(\"style\"),n.removeAttribute(\"class\")}e.inArray(o,this.tagsToClean)>-1&&l.unwrap(n)}},immutableParent:function(e){return this.immutables()&&i.Immutables.immutableParent(e)}});e.extend(i,{FormattingTool:h,CleanFormatCommand:p}),u(\"formatting\",new h({template:new r({template:d.dropDownListTemplate,title:\"Format\"})})),u(\"cleanFormatting\",new o({command:p,template:new r({template:d.buttonTemplate,title:\"Clean formatting\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/image.min\",[\"kendo.imagebrowser.min\",\"editor/command.min\"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,o=n.ui.editor,r=o.EditorUtils,a=o.Dom,s=r.registerTool,l=o.ToolTemplate,d=o.RangeUtils,c=o.Command,u=n.keys,h=\"#k-editor-image-url\",p=\"#k-editor-image-title\",f=\"#k-editor-image-width\",m=\"#k-editor-image-height\",g=c.extend({init:function(e){var t=this;c.fn.init.call(t,e),t.async=!0,t.attributes={}},insertImage:function(e,t){var n,i=this.attributes,o=d.documentFromRange(t);if(i.src&&\"http://\"!=i.src){if(n=function(){setTimeout(function(){i.width||e.removeAttribute(\"width\"),i.height||e.removeAttribute(\"height\"),e.removeAttribute(\"complete\")})},!e)return e=a.create(o,\"img\",i),e.onload=e.onerror=n,t.deleteContents(),t.insertNode(e),e.nextSibling||a.insertAfter(o.createTextNode(\"\\ufeff\"),e),n(),t.setStartAfter(e),t.setEndAfter(e),d.selectRange(t),!0;e.onload=e.onerror=n,a.attr(e,i),n()}return!1},_dialogTemplate:function(e){return n.template('
    # if (showBrowser) { #
    # } #
    ')({messages:this.editor.options.messages,showBrowser:e})},redo:function(){var e=this,t=e.lockRange();e.insertImage(d.image(t),t)||e.releaseRange(t)},exec:function(){function e(e){var t=s.element,n=parseInt(t.find(f).val(),10),i=parseInt(t.find(m).val(),10);g.attributes={src:t.find(h).val().replace(/ /g,\"%20\"),alt:t.find(p).val()},g.attributes.width=null,g.attributes.height=null,!isNaN(n)&&n>0&&(g.attributes.width=n),!isNaN(i)&&i>0&&(g.attributes.height=i),_=g.insertImage(b,v),o(e),g.change&&g.change()}function o(e){e.preventDefault(),s.destroy(),a.windowFromDocument(d.documentFromRange(v)).focus(),_||g.releaseRange(v)}function r(t){t.keyCode==u.ENTER?e(t):t.keyCode==u.ESC&&o(t)}var s,l,c,g=this,v=g.lockRange(),_=!1,b=d.image(v),w=b&&b.getAttribute(\"width\")||\"\",k=b&&b.getAttribute(\"height\")||\"\",y=n.support.browser.msie,x=g.editor.options,C=x.messages,S=x.imageBrowser,T=!!(n.ui.ImageBrowser&&S&&S.transport&&S.transport.read!==t),D={title:C.insertImage,visible:!1,resizable:T};this.expandImmutablesIn(v),D.close=o,T&&(D.width=750),s=this.createDialog(g._dialogTemplate(T),D).toggleClass(\"k-filebrowser-dialog\",T).find(\".k-dialog-insert\").on(\"click\",e).end().find(\".k-dialog-close\").on(\"click\",o).end().find(\".k-edit-field input\").on(\"keydown\",r).end().find(h).val(b?b.getAttribute(\"src\",2):\"http://\").end().find(p).val(b?b.alt:\"\").end().find(f).val(w).end().find(m).val(k).end().data(\"kendoWindow\"),l=s.element,T&&(this._imageBrowser=new n.ui.ImageBrowser(l.find(\".k-imagebrowser\"),i({},S)),this._imageBrowser.bind(\"change\",function(e){\"f\"===e.selected.get(\"type\")&&l.find(h).val(this.value())}),this._imageBrowser.bind(\"apply\",e)),y&&(c=l.closest(\".k-window\").height(),l.css(\"max-height\",c)),s.center().open(),l.find(h).trigger(\"focus\").select()}});n.ui.editor.ImageCommand=g,s(\"insertImage\",new o.Tool({command:g,template:new l({template:r.buttonTemplate,title:\"Insert Image\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/import.min\",[\"editor/main.min\"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,o=e.proxy,r=n.ui.editor,a=r.EditorUtils,s=r.Command,l=r.Tool,d=a.registerTool,c=r.ToolTemplate,u='
    ',h=s.extend({exec:function(){(this.editor._uploadWidget||this._initializeUploadWidget()).element.click()},_initializeUploadWidget:function(){var t=this,n=t.editor,i=n.options[\"import\"],r=e('').kendoUpload({success:o(t._onUploadSuccess,t),progress:o(t._onUploadProgress,t),select:o(t._onUploadSelect,t),error:o(t._onUploadError,t),complete:o(t._onUploadComplete,t),showFileList:!1,multiple:!1,async:{saveUrl:i.proxyURL,autoUpload:!0,saveField:\"file\"},validation:{allowedExtensions:i.allowedExtensions,maxFileSize:i.maxFileSize}}).getKendoUpload();return n._uploadWidget=r,r},_onUploadComplete:function(e){this._trigger(\"complete\",e),e.sender.clearAllFiles(),this._removeLoadingOverlay()},_onUploadSuccess:function(e){this.editor.value(e.response.html.replace(/<\\/?body>/gi,\"\")),this._trigger(\"success\",e)},_onUploadProgress:function(e){this._trigger(\"progress\",e)},_onUploadSelect:function(e){this._trigger(\"select\",e),e.files[0].validationErrors||this._initLoadingOverlay()},_onUploadError:function(e){this._trigger(\"error\",e)},_trigger:function(e,t){var n=this.editor,i=n.options[\"import\"];\"function\"==typeof i[e]&&i[e].call(n,t)},_initLoadingOverlay:function(){var t=this.editor.body;r.Dom.is(t,\"body\")?this._iframeWrapper=this._container=this.editor.wrapper.find(\"iframe\").parent().css({position:\"relative\"}).append(u):this._container=e(t).append(u),n.ui.progress(this._container,!0)},_removeLoadingOverlay:function(){n.ui.progress(this._container,!1),e(this._iframeWrapper).css({position:\"\"}),delete this._container,delete this._iframeWrapper}});i(r,{ImportCommand:h}),d(\"import\",new l({command:h,template:new c({template:a.iconTextButtonTemplate,title:\"Import\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/insert.min\",[\"editor/command.min\"],e)}(function(){!function(e){var t=window.kendo,n=t.ui.editor,i=n.Command,o=n.GenericCommand,r=n.EditorUtils,a=r.registerTool,s=n.Tool,l=n.ToolTemplate,d=n.RestorePoint,c=e.extend,u=i.extend({init:function(e){i.fn.init.call(this,e),this.managesUndoRedo=!0},exec:function(){var e,t=this.editor,n=this.options,i=n.range,r=t.body,a=new d(i,r),s=n.html||n.value||\"\";t.selectRange(i),t.clipboard.paste(s,n),n.postProcess&&n.postProcess(t,t.getRange()),e=new o(a,new d(t.getRange(),r)),e.editor=t,t.undoRedoStack.push(e),t.focus()}}),h=s.extend({initialize:function(e,t){var i=t.editor,o=this.options,r=o.items?o.items:i.options.insertHtml;this._selectBox=new n.SelectBox(e,{dataSource:r,dataTextField:\"text\",dataValueField:\"value\",change:function(){s.exec(i,\"insertHtml\",this.value())},title:i.options.messages.insertHtml,highlightFirst:!1}),e.attr(\"title\",t.title),this._selectBox.wrapper.attr(\"title\",t.title)},command:function(e){return new u(e)},update:function(e){var t=e.data(\"kendoSelectBox\")||e.find(\"select\").data(\"kendoSelectBox\");t.close(),t.value(t.options.title)}});c(n,{InsertHtmlCommand:u,InsertHtmlTool:h}),a(\"insertHtml\",new h({template:new l({template:r.dropDownListTemplate,title:\"Insert HTML\",initialValue:\"Insert HTML\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/export.min\",[\"editor/main.min\"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,o=e.proxy,r=n.ui.editor,a=r.EditorUtils,s=r.Command,l=r.Tool,d=a.registerTool,c=r.ToolTemplate,u=[{text:\"Docx\",value:\"docx\"},{text:\"Rtf\",value:\"rtf\"},{text:\"Pdf\",value:\"pdf\"},{text:\"Html\",value:\"html\"},{text:\"Plain Text\",value:\"txt\"}],h=s.extend({init:function(e){var t=this;t.options=e,s.fn.init.call(t,e),t.attributes=null,t.exportType=e.exportType},exec:function(){var e=this,t=this.lockRange(!0);\ne.postToProxy(),e.releaseRange(t)},postToProxy:function(){this.generateForm().appendTo(\"body\").submit().remove()},generateForm:function(){var t=this,n=t.editor.options.exportAs,i=e(\"\").attr({action:n&&n.proxyURL||\"\",method:\"POST\"});return i.append([t.valueInput(),t.exportTypeInput(),t.fileNameInput()]),i},valueInput:function(){var t=this.editor;return e(\"\").attr({value:t.encodedValue(),name:\"value\",type:\"hidden\"})},exportTypeInput:function(){var t=this;return e(\"\").attr({value:t.exportType,name:\"exportType\",type:\"hidden\"})},fileNameInput:function(){var t=this.editor,n=t.options.exportAs,i=n&&n.fileName||t.element.attr(\"id\")||\"editor\";return e(\"\").attr({value:i,name:\"fileName\",type:\"hidden\"})}}),p=l.extend({init:function(e){var t=this;l.fn.init.call(t,n.deepExtend({},t.options,e)),t.type=\"kendoSelectBox\"},options:{items:u,width:140},command:function(e){var t=e.value;return new r.ExportAsCommand({range:e.range,exportType:t.exportType})},initialize:function(e,t){var i,r=this,a=t.editor,s=r.options,l=s.name,d=o(r.changeHandler,r),c=s.items||a.options[l],u=a.options.messages[l];c.unshift({text:u,value:\"\"}),r.editor=a,e.width(s.width),i=e.kendoSelectBox({dataTextField:\"text\",dataValueField:\"value\",dataSource:c,autoSize:!0,change:d,open:function(e){var t=e.sender;t.items()[0].style.display=\"none\",t.unbind(\"open\")},highlightFirst:!1,template:n.template('#:data.text#'),valueTemplate:''+u+\"\"}).data(\"kendoSelectBox\"),e.attr(\"title\",t.title),i.wrapper.attr(\"title\",t.title),e.addClass(\"k-decorated\").closest(\".k-widget\").removeClass(\"k-\"+l).find(\"*\").addBack().attr(\"unselectable\",\"on\")},changeHandler:function(e){var t=e.sender,n=t.dataItem(),i=n&&n.value;this._exec(i),t.value(\"\")},_exec:function(e){e&&l.exec(this.editor,this.options.name,{exportType:e})},destroy:function(){this._ancestor=null}});i(r,{ExportAsTool:p,ExportAsCommand:h}),d(\"exportAs\",new p({template:new c({template:a.dropDownListTemplate,title:\"Export As\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/indent.min\",[\"editor/plugins/formatblock.min\"],e)}(function(){!function(e,t){function n(n,i){var o=\"rtl\"==e(n).css(\"direction\"),r=o?\"Right\":\"Left\",a=\"td\"!=s.name(n)?\"margin\"+r:\"padding\"+r;return i===t?n.style[a]||0:(i>0?n.style[a]=i+\"px\":(n.style[a]=\"\",n.style.cssText||n.removeAttribute(\"style\")),t)}var i=window.kendo,o=i.Class,r=e.extend,a=i.ui.editor,s=a.Dom,l=a.EditorUtils,d=l.registerTool,c=a.Command,u=a.Tool,h=a.ToolTemplate,p=a.RangeUtils,f=s.blockElements,m=a.BlockFormatFinder,g=a.BlockFormatter,v=o.extend({init:function(){this.finder=new m([{tags:s.blockElements}])},apply:function(t){var i,o,r,a,l,d,c,u,h,p,f,m;if(t=s.filterBy(t,s.htmlIndentSpace,!0),i=this.finder.findSuitable(t),o=[],i=this.mapImmutables(i),i.length){for(r=0,a=i.length;r1||n(u.parentNode))||s.ofType(u,[\"ul\",\"ol\"])&&l>0),r)return i.removeClass(\"k-state-disabled\"),t;i.addClass(\"k-state-disabled\").removeClass(\"k-state-hover\")}});r(a,{IndentFormatter:v,IndentCommand:_,OutdentCommand:b,OutdentTool:w}),d(\"indent\",new u({command:_,template:new h({template:l.buttonTemplate,title:\"Indent\"})})),d(\"outdent\",new w({command:b,template:new h({template:l.buttonTemplate,title:\"Outdent\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/linebreak.min\",[\"editor/plugins/formatblock.min\"],e)}(function(){!function(e){var t=window.kendo,n=e.extend,i=t.ui.editor,o=i.Dom,r=i.Command,a=i.Tool,s=i.BlockFormatter,l=o.normalize,d=i.RangeUtils,c=i.EditorUtils.registerTool,u=r.extend({init:function(e){this.options=e,r.fn.init.call(this,e)},_insertMarker:function(e,t){var n,i=o.create(e,\"a\");return i.className=\"k-marker\",t.insertNode(i),i.parentNode||(n=t.commonAncestorContainer,n.innerHTML=\"\",n.appendChild(i)),l(i.parentNode),i},_moveFocus:function(e,t){var n,i;if(o.isEmpty(t))e.setStartBefore(t);else{if(e.selectNodeContents(t),n=d.textNodes(e)[0],!n){for(;t.childNodes.length&&!o.is(t.firstChild,\"br\");)t=t.firstChild;n=t}o.isEmpty(n)?e.setStartBefore(n):(o.emptyNode(n)&&(n.innerHTML=\"\\ufeff\"),i=n.firstChild||n,o.isDataNode(i)?e.setStart(i,0):e.setStartBefore(i))}},shouldTrim:function(e){var t=\"p,h1,h2,h3,h4,h5,h6\".split(\",\"),n=o.parentOfType(e.startContainer,t),i=o.parentOfType(e.endContainer,t);return n&&!i||!n&&i},_blankAfter:function(e){for(;e&&(o.isMarker(e)||\"\"===o.stripBom(e.nodeValue));)e=e.nextSibling;return!e},exec:function(){var t,n,r,a,c,u,h,p,f,m,g,v,_,b,w=this.getRange(),k=d.documentFromRange(w),y=i.emptyElementContent;this.expandImmutablesIn(w),m=this.shouldTrim(w),w.deleteContents(),c=this._insertMarker(k,w),o.stripBomNode(c.previousSibling),o.stripBomNode(c.nextSibling),u=o.closestEditableOfType(c,[\"li\"]),h=o.closestEditableOfType(c,\"h1,h2,h3,h4,h5,h6\".split(\",\")),p=o.is(c.parentNode,\"table\")&&c.parentNode,u?o.emptyNode(u)&&(a=o.create(k,\"p\"),o.next(u)&&(f=w.cloneRange(),f.selectNode(u),d.split(f,u.parentNode)),g=e(\"br\",u),1==g.length&&g.remove(),v=u.parentNode,_=u.parentNode.children.length,b=_>1&&1==u.childNodes.length&&u.children[0],o.insertAfter(a,v),o.remove(1==_?u.parentNode:u),b&&b!==c?(a.appendChild(b),a.appendChild(c)):a.innerHTML=y,r=a):h&&this._blankAfter(c)?(a=this._insertParagraphAfter(h),o.remove(c),r=a):p&&(a=this._insertParagraphAfter(p),o.remove(c),r=a),r||(u||h||new s([{tags:[\"p\"]}]).apply([c]),w.selectNode(c),t=o.parentOfType(c,[u?\"li\":h?o.name(h):\"p\"]),d.split(w,t,m),n=t.previousSibling,o.is(n,\"li\")&&n.firstChild&&!o.is(n.firstChild,\"br\")&&(n=n.firstChild),r=t.nextSibling,this.clean(n,{links:!0}),this.clean(r,{links:!0}),o.is(r,\"li\")&&r.firstChild&&!o.is(r.firstChild,\"br\")&&(r=r.firstChild),o.remove(t),l(n)),l(r),this._moveFocus(w,r),w.collapse(!0),o.scrollTo(r,!0),d.selectRange(w)},_insertParagraphAfter:function(e){var t=this.getRange(),n=d.documentFromRange(t),r=i.emptyElementContent,a=o.create(n,\"p\");return o.insertAfter(a,e),a.innerHTML=r,a},clean:function(t,n){var r,a=t;if(t.firstChild&&o.is(t.firstChild,\"br\")&&o.remove(t.firstChild),o.isDataNode(t)&&!t.nodeValue&&(t=t.parentNode),t){for(r=!1;t.firstChild&&1==t.firstChild.nodeType;)r=r||o.significantNodes(t.childNodes).length>1,t=t.firstChild;if(o.isEmpty(t)||\"k-br\"==t.className||!/^\\s*$/.test(t.innerHTML)||r||(e(a).find(\".k-br\").remove(),t.innerHTML=i.emptyElementContent),n&&n.links)for(;t!=a;){if(o.is(t,\"a\")&&o.emptyNode(t)){o.unwrap(t);break}t=t.parentNode}}}}),h=r.extend({init:function(e){this.options=e,r.fn.init.call(this,e)},exec:function(){var n,i,r,a,s,c,u,h=this.getRange();this.expandImmutablesIn(h),n=o.create(d.documentFromRange(h),\"br\"),i=h.startContainer,a=t.support.browser,s=a.msie&&a.version<11,c=o.is(i,\"table\")&&i,h.deleteContents(),c?o.insertAfter(n,c):(u=e(i).closest(\".k-br\"),h.insertNode(n),u.length&&o.unwrap(u[0])),l(n.parentNode),s||n.nextSibling&&!o.isWhitespace(n.nextSibling)||(n.nextSibling&&o.isWhitespace(n.nextSibling)&&e(n.nextSibling).remove(),r=n.cloneNode(!0),r.className=\"k-br\",o.insertAfter(r,n)),h.setStartAfter(n),h.collapse(!0),o.scrollTo(n.nextSibling||n,!0),d.selectRange(h)}});n(i,{ParagraphCommand:u,NewLineCommand:h}),c(\"insertLineBreak\",new a({key:13,shift:!0,command:h})),c(\"insertParagraph\",new a({key:13,command:u}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/file.min\",[\"kendo.filebrowser.min\",\"editor/plugins/link.min\"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,o=n.ui.editor,r=o.EditorUtils,a=o.Dom,s=r.registerTool,l=o.ToolTemplate,d=o.RangeUtils,c=o.Command,u=o.LinkFormatter,h=d.textNodes,p=n.keys,f=\"#k-editor-file-url\",m=\"#k-editor-file-text\",g=\"#k-editor-file-title\",v=c.extend({init:function(e){var t=this;c.fn.init.call(t,e),t.formatter=new u,t.async=!0,t.attributes={}},insertFile:function(e,t){var n=this.attributes,i=d.documentFromRange(t);if(n.href&&\"http://\"!=n.href){if(!e)return e=a.create(i,\"a\",{href:n.href}),e.innerHTML=n.innerHTML,e.title=n.title,t.deleteContents(),t.insertNode(e),e.nextSibling||a.insertAfter(i.createTextNode(\"\\ufeff\"),e),t.setStartAfter(e),t.setEndAfter(e),d.selectRange(t),!0;a.attr(e,n)}return!1},_dialogTemplate:function(e){return n.template('
    # if (showBrowser) { #
    # } #
    ')({messages:this.editor.options.messages,showBrowser:e})},redo:function(){var e=this,t=e.lockRange();this.formatter.apply(t,this.attributes),e.releaseRange(t)},exec:function(){function e(e){var t=s.element,n=t.find(f).val().replace(/ /g,\"%20\"),i=t.find(m).val(),r=t.find(g).val();u.attributes={href:n,innerHTML:\"\"!==i?i:n,title:r},b=u.insertFile(w,v),o(e),u.change&&u.change()}function o(e){e.preventDefault(),s.destroy(),a.windowFromDocument(d.documentFromRange(v)).focus(),b||u.releaseRange(v)}function r(t){t.keyCode==p.ENTER?e(t):t.keyCode==p.ESC&&o(t)}var s,l,c,u=this,v=u.lockRange(),_=h(v),b=!1,w=_.length?this.formatter.finder.findSuitable(_[0]):null,k=n.support.browser.msie,y=u.editor.options,x=y.messages,C=y.fileBrowser,S=!!(n.ui.FileBrowser&&C&&C.transport&&C.transport.read!==t),T={title:x.insertFile,visible:!1,resizable:S};this.expandImmutablesIn(v),T.close=o,S&&(T.width=750),s=this.createDialog(u._dialogTemplate(S),T).toggleClass(\"k-filebrowser-dialog\",S).find(\".k-dialog-insert\").on(\"click\",e).end().find(\".k-dialog-close\").on(\"click\",o).end().find(\".k-edit-field input\").on(\"keydown\",r).end().find(f).val(w?w.getAttribute(\"href\",2):\"http://\").end().find(m).val(w?w.innerText:\"\").end().find(g).val(w?w.title:\"\").end().data(\"kendoWindow\"),l=s.element,S&&(u._fileBrowser=new n.ui.FileBrowser(l.find(\".k-filebrowser\"),i({},C)),u._fileBrowser.bind(\"change\",function(e){\"f\"===e.selected.get(\"type\")&&l.find(f).val(this.value())}),u._fileBrowser.bind(\"apply\",e)),k&&(c=l.closest(\".k-window\").height(),l.css(\"max-height\",c)),s.center().open(),l.find(f).trigger(\"focus\").select()}});n.ui.editor.FileCommand=v,s(\"insertFile\",new o.Tool({command:v,template:new l({template:r.buttonTemplate,title:\"Insert File\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/tables.min\",[\"editor/plugins/formatblock.min\",\"editor/plugins/insert.min\"],e)}(function(){!function(e,t){var n=window.kendo,i=e.extend,o=e.proxy,r=n.ui.editor,a=r.Dom,s=r.EditorUtils,l=r.RangeUtils,d=r.Command,c=\"kendoEditor\",u=\"k-state-active\",h=\"k-state-selected\",p=\"scope\",f=\"row\",m=\"col\",g=\"rowgroup\",v=\"colgroup\",_=\"colspan\",b=\"rowspan\",w=\"table\",k=\"thead\",y=\"tbody\",x=\"tr\",C=\"td\",S=\"th\",T=r.Tool,D=r.ToolTemplate,I=r.InsertHtmlCommand,A=r.BlockFormatFinder,E=r.BlockFormatTool,R=r.FormatCommand,M=r.EditorUtils.registerTool,F=r.EditorUtils.registerFormat,P=n.ui.Editor.fn.options.formats,z=n.getTouches,B=n.template,L=\"#=content#\",H=new A([{tags:[w]}]),O=I.extend({init:function(t){var n=e.extend({postProcess:this.postProcess,skipCleaners:!0},t||{});I.fn.init.call(this,n)},_tableHtml:function(e,t){var n,i;return e=e||1,t=t||1,n=B(L)({width:100/t,content:r.emptyTableCellContent}),i=100/e,\"\"+Array(e+1).join(\"\"+Array(t+1).join(n)+\"\")+\"
    \"},postProcess:function(t,n){var i=e(\"table[data-last]\",t.document).removeAttr(\"data-last\");n.setStart(i.find(C)[0],0),n.collapse(!0),t.selectRange(n)},exec:function(){var e=this.options;e.html=this._tableHtml(e.rows,e.columns),I.fn.exec.call(this)}}),N=T.extend({initialize:function(t,n){var i,a,l,d;T.fn.initialize.call(this,t,n),i=e(this.options.popupTemplate).appendTo(\"body\").kendoPopup({anchor:t,copyAnchorStyles:!1,open:o(this._open,this),activate:o(this._activate,this),close:o(this._close,this)}).data(\"kendoPopup\"),t.on(\"click\",o(this._toggle,this)).on(\"keydown\",o(this._keydown,this)),a=this._editor=n.editor,this._popup=i,l=new r.TableWizardTool({template:new D({template:s.tableWizardButtonTemplate,title:a.options.messages.tableWizard}),command:r.TableWizardCommand,insertNewTable:!0}),M(\"tableWizardInsert\",l),d=e(\"
    \"+l.options.template.getHtml()+\"
    \"),d.appendTo(i.element),a.toolbar&&a.toolbar.attachToolsEvents(d)},popup:function(){return this._popup},_activate:e.noop,_open:function(){this._popup.options.anchor.addClass(u)},_close:function(){this._popup.options.anchor.removeClass(u)},_keydown:function(e){var t=n.keys,i=e.keyCode;i==t.DOWN&&e.altKey?this._popup.open():i==t.ESC&&this._popup.close()},_toggle:function(t){var n=e(t.target).closest(\".k-tool\");n.hasClass(\"k-state-disabled\")||this.popup().toggle()},update:function(e){var t=this.popup();t.wrapper&&\"block\"==t.wrapper.css(\"display\")&&t.close(),e.removeClass(\"k-state-hover\")},destroy:function(){this._popup.destroy()}}),V=N.extend({init:function(t){this.cols=8,this.rows=6,N.fn.init.call(this,e.extend(t,{command:O,popupTemplate:\"
    \"+Array(this.cols*this.rows+1).join(\"\")+\"
    \"}))},_activate:function(){function t(t){var n=e(window);return{row:Math.floor((t.clientY+n.scrollTop()-u.top)/o)+1,col:Math.floor((t.clientX+n.scrollLeft()-u.left)/i)+1}}var i,o,r=this,a=r._popup.element,s=a.find(\".k-ct-cell\"),l=s.eq(0),d=s.eq(s.length-1),u=n.getOffset(l),h=n.getOffset(d),p=r.cols,f=r.rows;a.find(\"*\").addBack().attr(\"unselectable\",\"on\"),h.left+=d[0].offsetWidth,h.top+=d[0].offsetHeight,i=(h.left-u.left)/p,o=(h.top-u.top)/f,a.autoApplyNS(c).on(\"mousemove\",\".k-ct-cell\",function(e){r._setTableSize(t(e))}).on(\"mouseleave\",\".k-ct-cell\",function(){r._setTableSize()}).on(\"down\",\".k-ct-cell\",function(e){e.preventDefault();var n=z(e)[0];r._exec(t(n.location))})},_valid:function(e){return e&&e.row>0&&e.col>0&&e.row<=this.rows&&e.col<=this.cols},_exec:function(e){this._valid(e)&&(this._editor.exec(\"createTable\",{rows:e.row,columns:e.col}),this._popup.close())},_setTableSize:function(t){var i=this._popup.element,o=i.find(\".k-status\"),r=i.find(\".k-ct-cell\"),a=this.cols,s=this._editor.options.messages;this._valid(t)?(o.text(n.format(s.createTableHint,t.row,t.col)),r.each(function(n){e(this).toggleClass(h,n%a=0;a--)if(o=t.rows[a],r=e(o).find(\"[col-index=\"+i+\"]\"),r.length)return r},_resetElementResizing:function(e){e._destroyResizings(),e._initializeColumnResizing(),e._initializeRowResizing(),e._initializeElementResizing()},_findNextTdInRow:function(e,t){var n,i,o=e.find(\"td:last-child\"),r=parseInt(o.attr(\"col-index\"),10)+o.prop(\"colSpan\")-1;for(i=t;i<=r;i++)if(n=e.find(\"[col-index=\"+i+\"]\"),n.length)return n},_adjustColgroups:function(e,t){for(var n,i,o,r=t.getElementsByTagName(m),s=t.getElementsByTagName(v),l=e.cells,d=l.length;r.length>0;)r[0].remove();for(;s.length>0;)s[0].remove();for(n=d-1;n>=0;n--)o=l[n],o.getAttribute(p)===v?(i=a.createEmptyNode(this.editor.document,v),i.setAttribute(\"span\",o.getAttribute(_)),t.prepend(i)):t.prepend(a.createEmptyNode(this.editor.document,m))},_associateHeaderIds:function(t){a.clearTableMappings(t,\"col-index\"),a.reMapTableColumns(t,\"col-index\"),e(t).find(\"th, td\").removeAttr(\"id headers\"),a.associateWithIds(t)},_getNumberOfColumns:function(e){return a._getNumberOfColumns(e,\"td, th\")}}),U=W.extend({exec:function(){var n,i,o,s,l,d,c,u,h=this.lockRange(!0),m=a.closest(h.endContainer,[C,S]),v=a.closest(m,w),_=this.options.position||\"after\";if(!v||this.immutables()&&r.Immutables.immutableParent(m))return this.releaseRange(h),t;for(this._mapColIndices(v),i=m.parentNode,l=a.findNodeIndex(i,!0),m.rowSpan>1&&\"after\"===_&&(i=v.rows[l+m.rowSpan-1]),n=this._getNumberOfColumns(v),s=i.cloneNode(!0),e(s).empty(),u=0;u1&&\"after\"===_&&o?o.attr(b,o.prop(\"rowSpan\")+1):this._appendCell(s,o):(l=a.findNodeIndex(i,!0),o=this._findRowSpanCell(i.parentElement,l,u),d=o.closest(x).index(),d+o.prop(\"rowSpan\")-1===l&&\"after\"===_?this._appendCell(s,o):o.attr(b,o.prop(\"rowSpan\")+1)),c=e(s).find(\"[col-index=\"+u+\"]\"),c.attr(p)!==g||c.attr(b)||c.attr(p,f);\"before\"==_?a.insertBefore(s,i):a.insertAfter(s,i),e(v).find(\"[headers]\").length>0&&this._associateHeaderIds(v),this._clearColIndexAttr(v),this.releaseRange(h),this._resetElementResizing(this.editor)},_appendCell:function(e,t){var n;n=t.clone(),n.html(r.emptyTableCellContent),n.removeAttr(b),n.appendTo(e)}}),j=W.extend({exec:function(){var n,i,o,s,l=this.lockRange(!0),d=a.closest(l.endContainer,[C,S]),c=a.closest(d,w),u=c.getElementsByTagName(m),h=c.getElementsByTagName(v),f=c&&c.rows,g=this.options.position||\"after\";if(!d||this.immutables()&&r.Immutables.immutableParent(d))return this.releaseRange(l),t;for(this._mapColIndices(c),n=parseInt(d.getAttribute(\"col-index\"),10),d.colSpan>1&&\"after\"===g&&(d.setAttribute(\"col-index\",n+d.colSpan-1),n=n+d.colSpan-1),i=0;i0||h.length>0)&&this._adjustColgroups(f[0],c),e(c).find(\"[headers]\").length>0&&this._associateHeaderIds(c),this._clearColIndexAttr(c),this.releaseRange(l),this._resetElementResizing(this.editor)},_processForColSpan:function(n,i,o,r){var a,s,l=i-1;if(a=e(n).find(\"[col-index=\"+i+\"]\")[0],a&&a.colSpan>1&&\"after\"===o&&a!==r)return a.colSpan+=1,t;if(a)return a;for(l;l>=0&&(a=e(n).find(\"[col-index=\"+l+\"]\")[0],!(a&&a.colSpan>1));l--);return a?(s=parseInt(a.getAttribute(\"col-index\"),10)+a.colSpan-1,s===i&&\"after\"===o?a:(i<=s&&a.setAttribute(_,a.colSpan+1),t)):t},_resizeCells:function(e,t){var n,i,o,r=e.style.width;r&&(n=parseFloat(r),i=r.slice((\"\"+n).length),o=n/2+i,e.style.width=o,t.style.width=o)}}),G=W.extend({exec:function(){var n,i,o,s=this.lockRange(),d=l.mapAll(s,function(t){return e(t).closest(x)[0]}),c=a.closest(s.endContainer,[C,S]),u=d[0],h=c?c.rowSpan:1,p=e(d[0]).index(),f=a.closest(u,w),m=u.parentElement;if(!f||this.immutables()&&r.Immutables.immutableParent(u))return this.releaseRange(s),t;for(i=0;i0?this._associateHeaderIds(f):a.is(m,k)&&e(f).find(\"[scope]\").length>0&&this._adjustColgroups(m.rows[0],f),n&&this._focusElement(s,n),this._resetElementResizing(this.editor)},_focusElement:function(e,t){e.setStart(t,0),e.collapse(!0),this.editor.selectRange(e)},_handleRowSpanCells:function(t,n){var i,o,r,s,l=a.findNodeIndex(n,!0),d=t.rows[0],c=d.cells[d.cells.length-1],u=parseInt(c.getAttribute(\"col-index\"),10)+c.colSpan-1;for(i=0;i<=u;i+=o.prop(\"colSpan\"))o=e(n).find(\"[col-index=\"+i+\"]\"),o.length&&o.prop(\"rowSpan\")>1&&(s=t.rows[l+1],r=e(s).find(\"[col-index=\"+(i+1)+\"]\"),r.length?r.before(o):e(s).append(o),this._reduceRowSpan(o)),o.length||(o=this._findRowSpanCell(n.parentElement,l,i),this._reduceRowSpan(o))},_reduceRowSpan:function(e){var t=e.prop(\"rowSpan\")-1;t<=1?(e.removeAttr(b),e.attr(p)===g&&e.attr(p,f)):e.attr(b,t)}}),q=W.extend({exec:function(){var n,i,o,s,l=this.lockRange(),d=a.closest(l.endContainer,[C,S]),c=a.closest(d,w),u=c&&c.rows,h=a.findNodeIndex(d,!0),p=u&&u[0].cells.length,f=c.getElementsByTagName(m),g=c.getElementsByTagName(v);if(!d||this.immutables()&&r.Immutables.immutableParent(d))return this.releaseRange(l),t;if(1==p||d.colSpan==p)n=a.next(c),n&&!a.insignificant(n)||(n=a.prev(c)),n&&n.rows&&(n=n.rows[0].cells[0]),a.remove(c),this._resetElementResizing(this.editor);else{for(a.removeTextSiblings(d),n=a.next(d)||a.prev(d),this._mapColIndices(c),h=parseInt(d.getAttribute(\"col-index\"),10),s=0;s0||g.length>0)&&this._adjustColgroups(u[0],c),e(c).find(\"[headers]\").length>0&&this._associateHeaderIds(c),n&&(l.setStart(n,0),l.collapse(!0),this.editor.selectRange(l)),this._resetElementResizing(this.editor)},_handleColSpanCells:function(n,i){var o,r,a=e(n).find(\"[col-index=\"+i+\"]\");if(a.length&&a.prop(\"colSpan\")>1)return o=a.clone(!0),a.after(o),this._reduceColSpan(o),o.attr(\"col-index\",parseInt(a.attr(\"col-index\"),10)+1),a.remove(),t;for(r=i;r>=0;r--)if(a=e(n).find(\"[col-index=\"+r+\"]\"),a.length)return this._reduceColSpan(a),a.attr(\"col-index\",parseInt(a.attr(\"col-index\"),10)+1),t},_reduceColSpan:function(e){var t=e.prop(\"colSpan\")-1;t<=1?(e.removeAttr(_),e.attr(p)===v&&e.attr(p,m)):e.attr(_,t)}}),$=W.extend({exec:function(){var n,i,o,s,l,d=this.lockRange(),c=a.closest(d.endContainer,[C,S]);return c?(n=a.closest(c,w),i=c.parentNode,o=a.findNodeIndex(c,!0),s=i.children[o+1],this.immutables()&&r.Immutables.immutableParent(c)?(this.releaseRange(d),t):(this._mapColIndices(n),o=parseInt(e(c).attr(\"col-index\"),10),s=e(i).find(\"[col-index=\"+(o+1+this._getColspan(c)-1)+\"]\").get(0),s&&s.rowSpan===c.rowSpan&&c.tagName===s.tagName?(l=this._getColspan(c)+this._getColspan(s),e(c).prop(_,l).append(a.emptyNode(s)?\"\":\"
    \"+s.innerHTML),e(c).width(c.offsetWidth),e(s).remove(),c.getAttribute(p)===m&&c.setAttribute(p,v),c.getAttribute(p)===v&&this._adjustColgroups(i,n),e(n).find(\"[headers]\").length>0&&this._associateHeaderIds(n),this._clearColIndexAttr(n),this.releaseRange(d),this._resetElementResizing(this.editor),t):(this._clearColIndexAttr(n),this.releaseRange(d),t))):(this.releaseRange(d),t)},_getColspan:function(e){return parseInt(e.getAttribute(_),10)||1}}),K=W.extend({exec:function(){var n,i,o,s,l,d,c,u=this.lockRange(),h=a.closest(u.endContainer,[C,S]);return h?(n=a.closest(h,x),i=a.closest(h,[k,y]),o=a.closest(h,w),s=a.findNodeIndex(h,!0),l=a.findNodeIndex(n,!0),l+1===i.rows.length?(this.releaseRange(u),t):(d=i.rows[l+this._getRowspan(h)],c=d&&d.children[s],this.immutables()&&r.Immutables.immutableParent(h)?(this.releaseRange(u),t):(this._mapColIndices(o),s=e(h).attr(\"col-index\"),c=e(d).find(\"[col-index=\"+s+\"]\").get(0),c&&c.colSpan===h.colSpan&&h.tagName===c.tagName?(e(h).prop(b,this._getRowspan(h)+this._getRowspan(c)).append(a.emptyNode(c)?\"\":\"
    \"+c.innerHTML),h.getAttribute(p)===f&&h.setAttribute(p,g),e(c).remove(),e(o).find(\"[headers]\").length>0&&this._associateHeaderIds(o),this._clearColIndexAttr(o),this.releaseRange(u),t):(this._clearColIndexAttr(o),this.releaseRange(u),t)))):(this.releaseRange(u),t)},_getRowspan:function(e){return parseInt(e.getAttribute(b),10)||1}}),Y=W.extend({exec:function(){var n=this.lockRange(),i=this.options.type,o=\"row\"===i?_:b,s=a.closest(n.endContainer,[C,S]),l=a.closest(s,[k,y]),d=a.closest(s,w),c=a.createEmptyNode(this.editor.document,s.nodeName.toLowerCase());return!s||this.immutables()&&r.Immutables.immutableParent(s)?(this.releaseRange(n),t):(this._mapColIndices(d),\"row\"===i&&e(s).is(\"[\"+o+\"]\")?this._splitCellHorizontally(s,l,o,c):\"column\"===i&&e(s).is(\"[\"+o+\"]\")&&this._splitCellVertically(s,l,o,c),e(s).prop(o.toLowerCase())<=1&&e(s).removeAttr(o),e(d).find(\"[headers]\").length>0&&this._associateHeaderIds(d),this._clearColIndexAttr(d),this.releaseRange(n),t)},_getRowspanValue:function(e){return parseInt(e.getAttribute(b),10)},_getColspanValue:function(e){return parseInt(e.getAttribute(_),10)},_splitCellHorizontally:function(t,n,i,o){var r=t.rowSpan,a=t.colSpan,s=e(o),l=Math.floor(a/2);l>1&&s.attr(_,l),r>1&&s.attr(b,r),e(t).prop(i,a-l).after(s),e(t).width(t.offsetWidth),s.width(s[0].offsetWidth),t.hasAttribute(p)&&(t.getAttribute(p)===v?(s.attr(p,m),t.getAttribute(_)&&\"1\"!==t.getAttribute(_)||t.setAttribute(p,m),this._adjustColgroups(t.parentNode,n.parentNode)):s.attr(p,t.getAttribute(p)))},_splitCellVertically:function(t,n,i,o){var r=a.closest(t,x),s=parseInt(e(t).attr(\"col-index\"),10),l=a.findNodeIndex(r,!0),d=t.rowSpan,c=t.colSpan,u=Math.floor(d/2),h=e(n).find(x).eq(l+d-u),m=this._findNextTdInRow(h,s+c),v=e(o);u>1&&v.attr(b,u),c>1&&v.attr(_,c),m&&m.length?m.before(v):h.append(v),e(t).prop(i,d-u),t.hasAttribute(p)&&(t.getAttribute(p)===g?(v.attr(p,f),t.getAttribute(b)&&\"1\"!==t.getAttribute(b)||t.setAttribute(p,f)):v.attr(p,t.getAttribute(p)))}}),Q=T.extend({command:function(e){var t={row:{insert:U,\"delete\":G,merge:$,split:Y},column:{insert:j,\"delete\":q,merge:K,split:Y}};return e=i(e,this.options),e.action=e.action||\"insert\",new t[e.type][e.action](e)},initialize:function(e,t){T.fn.initialize.call(this,e,t),e.addClass(\"k-state-disabled\"),e.attr(\"disabled\",\"disabled\")},update:function(e,t){var n=!H.isFormatted(t);n===!0?(e.parent().addClass(\"k-hidden k-state-disabled\"),e.attr(\"disabled\",\"disabled\"),e.addClass(\"k-state-disabled\")):(e.parent().removeClass(\"k-hidden k-state-disabled\"),e.prop(\"disabled\",!1),e.removeClass(\"k-state-disabled\"))}}),X=R.extend({exec:function(){var e=this,t=e.editor;R.fn.exec.call(this),t.elementResizing&&t.elementResizing._showResizeHandles()}}),Z=E.extend({initialize:function(e,t){E.fn.initialize.call(this,e,t),e.addClass(\"k-state-disabled\"),e.attr(\"disabled\",\"disabled\")},update:function(e,t){var n=!H.isFormatted(t),i=this.options.finder.isFormatted(t,this.isTable);n===!0?(e.parent().addClass(\"k-hidden k-state-disabled\"),e.attr(\"disabled\",\"disabled\"),e.addClass(\"k-state-disabled\")):(e.parent().removeClass(\"k-hidden k-state-disabled\"),e.prop(\"disabled\",!1),e.removeClass(\"k-state-disabled\")),e.toggleClass(\"k-state-selected\",i),e.attr(\"aria-pressed\",i)},command:function(e){var t=this;return new X(i(e,{formatter:t.options.formatter}))},isTable:function(e){return a.is(e,\"table\")}});i(n.ui.editor,{PopupTool:N,TableCommand:O,InsertTableTool:V,TableFormatTool:Z,TableFormatCommand:X,TableModificationTool:Q,InsertRowCommand:U,InsertColumnCommand:j,DeleteRowCommand:G,DeleteColumnCommand:q,MergeCellsHorizontallyCommand:$,MergeCellsVerticallyCommand:K,SplitCellCommand:Y}),M(\"createTable\",new V({template:new D({template:s.buttonTemplate,popup:!0,title:\"Create table\"})})),M(\"addColumnLeft\",new Q({type:\"column\",position:\"before\",template:new D({template:s.buttonTemplate,title:\"Add column on the left\"})})),M(\"addColumnRight\",new Q({type:\"column\",template:new D({template:s.buttonTemplate,title:\"Add column on the right\"})})),M(\"addRowAbove\",new Q({type:\"row\",position:\"before\",template:new D({template:s.buttonTemplate,title:\"Add row above\"})})),M(\"addRowBelow\",new Q({type:\"row\",template:new D({template:s.buttonTemplate,title:\"Add row below\"})})),M(\"deleteRow\",new Q({type:\"row\",action:\"delete\",template:new D({template:s.buttonTemplate,title:\"Delete row\"})})),M(\"deleteColumn\",new Q({type:\"column\",action:\"delete\",template:new D({template:s.buttonTemplate,title:\"Delete column\"})})),M(\"mergeCellsHorizontally\",new Q({type:\"row\",action:\"merge\",template:new D({template:s.buttonTemplate,title:\"Merge Cell Right\"})})),M(\"mergeCellsVertically\",new Q({type:\"column\",action:\"merge\",template:new D({template:s.buttonTemplate,title:\"Merge Cell Down\"})})),M(\"splitCellHorizontally\",new Q({\ntype:\"row\",action:\"split\",template:new D({template:s.buttonTemplate,title:\"Split Cell\"})})),M(\"splitCellVertically\",new Q({type:\"column\",action:\"split\",template:new D({template:s.buttonTemplate,title:\"Split Cell\"})})),F(\"tableAlignLeft\",[{tags:[\"table\"],attr:{style:{marginLeft:\"\",marginRight:\"auto\"}}},{tags:[\"table\"],attr:{align:\"left\"}}]),M(\"tableAlignLeft\",new Z({format:P.tableAlignLeft,template:new D({template:s.buttonTemplate,title:\"Table Align Left\"})})),F(\"tableAlignCenter\",[{tags:[\"table\"],attr:{style:{marginLeft:\"auto\",marginRight:\"auto\"}}},{tags:[\"table\"],attr:{align:\"center\"}}]),M(\"tableAlignCenter\",new Z({format:P.tableAlignCenter,template:new D({template:s.buttonTemplate,title:\"Table Align Center\"})})),F(\"tableAlignRight\",[{tags:[\"table\"],attr:{style:{marginLeft:\"auto\",marginRight:\"\"}}},{tags:[\"table\"],attr:{align:\"right\"}}]),M(\"tableAlignRight\",new Z({format:P.tableAlignRight,template:new D({template:s.buttonTemplate,title:\"Table Align Left\"})}))}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/clipboard.min\",[\"editor/command.min\"],e)}(function(){!function(e){var t=window.kendo,n=t.Class,i=t.ui.editor,o=i.RangeUtils,r=i.Dom,a=i.RestorePoint,s=i.Marker,l=t.support.browser,d=e.extend,c=n.extend({init:function(e){this.editor=e;var t=e.options.pasteCleanup;this.cleaners=[new h(t),new p(t),new f(t),new m(t),new v(t),new _(t),new y(t),new x(t)]},htmlToFragment:function(e){var t=this.editor,n=t.document,i=r.create(n,\"div\"),o=n.createDocumentFragment();for(i.innerHTML=e;i.firstChild;)o.appendChild(i.firstChild);return o},isBlock:function(e){return/<(div|p|ul|ol|table|h[1-6])/i.test(e)},_startModification:function(){var e,t,n=this.editor;if(!this._inProgress)return this._inProgress=!0,e=n.getRange(),t=new a(e,n.body),r.persistScrollTop(n.document),{range:e,restorePoint:t}},_endModification:function(e){i._finishUpdate(this.editor,e.restorePoint),this.editor._selectionChange(),this._inProgress=!1},_contentModification:function(e,t){var n=this,i=n.editor,o=n._startModification();o&&(e.call(n,i,o.range),setTimeout(function(){t.call(n,i,o.range),n._endModification(o)}))},_removeBomNodes:function(e){var t,n=o.textNodes(e);for(t=0;t10))return t=e.clipboardData||e.originalEvent.clipboardData||window.clipboardData||{},n=t.items||t.files,this._insertImages(n)},_insertImages:function(t){var n,i,o;if(t&&(n=e.grep(t,function(e){return/^image\\//i.test(e.type)}),i=e.grep(t,function(e){return/^text\\/html/i.test(e.type)}),!i.length&&n.length&&(o=this._startModification())))return e.when.apply(e,e.map(n,this._fileToDataURL)).done(e.proxy(function(){var t=Array.prototype.slice.call(arguments),n=e.map(t,function(e){return''}).join(\"\");this._triggerPaste(n),this._endModification(o)},this)),!0},onpaste:function(n){if(\"false\"!==this.editor.body.contentEditable){if(this._handleImagePaste(n))return void n.preventDefault();this.expandImmutablesIn(),this._contentModification(function(i,o){var a,s,l,d=r.create(i.document,\"div\",{className:\"k-paste-container\",innerHTML:\"\\ufeff\"}),c=t.support.browser,u=i.body;this._decoreateClipboardNode(d,u),u.appendChild(d),c.webkit&&this._moveToCaretPosition(d,o),c.msie&&c.version<11?(n.preventDefault(),a=i.createRange(),a.selectNodeContents(d),i.selectRange(a),s=i.document.body.createTextRange(),s.moveToElementText(d),e(u).off(\"paste\"),s.execCommand(\"Paste\"),e(u).on(\"paste\",e.proxy(this.onpaste,this))):(l=i.createRange(),l.selectNodeContents(d),i.selectRange(l)),o.deleteContents()},function(t,n){var i,o=\"\";t.selectRange(n),i=e(t.body).children(\".k-paste-container\"),i.each(function(){var e=this.lastChild;e&&r.is(e,\"br\")&&r.remove(e),o+=this.innerHTML}),i.remove(),this._triggerPaste(o,{clean:!0})})}},ondragover:function(e){(l.msie||l.edge)&&(e.stopPropagation(),e.preventDefault())},ondrop:function(e){var t,n;\"FileReader\"in window&&(t=(e.originalEvent||e).dataTransfer||{},n=t.items||t.files,this._insertImages(n)&&e.preventDefault())},_decoreateClipboardNode:function(t,n){var i,o,r,a;(l.msie||l.webkit)&&(t=e(t),t.css({borderWidth:\"0px\",width:\"0px\",height:\"0px\",overflow:\"hidden\",margin:\"0\",padding:\"0\"}),l.msie&&(i=e(n.ownerDocument.documentElement),t.css({fontVariant:\"normal\",fontWeight:\"normal\",lineSpacing:\"normal\",lineHeight:\"normal\",textDecoration:\"none\"}),o=i.css(\"color\"),o&&t.css(\"color\",o),r=i.css(\"fontFamily\"),r&&t.css(\"fontFamily\",r),a=i.css(\"fontSize\"),a&&t.css(\"fontSize\",a)))},_moveToCaretPosition:function(t,n){var i=this,o=i.editor.body,a=r.offset(t,o),s=i._caretOffset(n,o),l=s.left-a.left,d=s.top-a.top,c=\"translate(\"+l+\"px,\"+d+\"px)\";e(t).css({\"-webkit-transform\":c,transform:c})},_caretOffset:function(e,t){var n,i,o,a,s,l,d=this.editor,c=r.create(d.document,\"span\",{innerHTML:\"\\ufeff\"}),u=e.startContainer;return e.collapsed?(i=r.isDataNode(u),i&&(r.isBom(u)||0===e.startOffset)?r.insertBefore(c,u):i&&e.startOffset===u.length?r.insertAfter(c,u):(e.insertNode(c),n=!0)):(u=u===t?u.childNodes[e.startOffset]:u,r.insertBefore(c,u)),o=r.offset(c,t),a=c.previousSibling,s=c.nextSibling,r.remove(c),n&&r.isDataNode(a)&&r.isDataNode(s)&&!r.isBom(a)&&!r.isBom(s)&&(l=a.length,s.data=a.data+s.data,e.setStart(s,l),r.remove(a),e.collapse(!0),d.selectRange(e)),o},expandImmutablesIn:function(e){var n,i,o,r=this.editor;r&&r.options.immutables&&(n=r.body,e=e||r.getRange(),t.ui.editor.Immutables.expandImmutablesIn(e),e.startContainer===n&&0===e.startOffset&&(i=n.ownerDocument,o=i.createTextNode(\"\\ufeff\"),n.insertBefore(o,n.childNodes[0]),e.setStartBefore(o)),r.selectRange(e))},splittableParent:function(e,t){var n,i;if(e)return r.closestEditableOfType(t,[\"p\",\"ul\",\"ol\"])||t.parentNode;if(n=t.parentNode,i=t.ownerDocument.body,r.isInline(n))for(;n.parentNode!=i&&!r.isBlock(n.parentNode);)n=n.parentNode;return n},paste:function(t,n){var i,a,l,c,u,h,p,f,m,g,v,_,b,w,k,y,x,C=this.editor;if(this.expandImmutablesIn(),n=d({clean:!1,split:!0},n),!n.skipCleaners)for(i=0,a=this.cleaners.length;i(\\s| )*)+(<\\/?(div|p|li|col|t))/gi,\"$3\"),t=t.replace(/<(a|span)[^>]*><\\/\\1>/gi,\"\")),t=t.replace(/<(a|span|font)([^>]*)> <\\/\\1>/gi,\"<$1$2> \"),t=t.replace(/^
  • $/g,\"li>\"),c=this.isBlock(t),C.focus(),u=C.getRange(),u.deleteContents(),u.startContainer==C.document&&u.selectNodeContents(C.body),h=new s,p=h.addCaret(u),f=this.splittableParent(c,p),m=!1,g=f!=C.body&&!r.is(f,\"td\"),n.split&&g&&(c||r.isInline(f))&&(u.selectNode(p),o.split(u,f,!0),m=!0),v=this.htmlToFragment(t),v.firstChild&&\"k-paste-container\"===v.firstChild.className){for(_=[],i=0,a=v.childNodes.length;i\"))}if(l=v.childNodes,e(l).filter(\"table\").addClass(\"k-table\").end().find(\"table\").addClass(\"k-table\"),e(l).each(function(e,t){r.isBlock(t)&&!r.isSelfClosing(t)&&\"\"===t.innerHTML&&t.appendChild(C.document.createTextNode(\"\\ufeff\"))}),u.insertNode(v),f=this.splittableParent(c,p),m){for(;p.parentNode!=f;)r.unwrap(p.parentNode);r.unwrap(p.parentNode)}if(r.normalize(u.commonAncestorContainer),p.style.display=\"inline\",r.restoreScrollTop(C.document),r.scrollTo(p),h.removeCaret(u),b=u.commonAncestorContainer.parentNode,(u.collapsed&&\"tbody\"==r.name(b)||u.collapsed&&\"thead\"==r.name(b))&&(u.setStartAfter(e(b).closest(\"table\")[0]),u.collapse(!0)),w=e(u.commonAncestorContainer.parentNode).closest(\"table\"),w.get(0)){for(k=w.parent().contents(),y=k.length-1,x=k.get(y);null!==x.nodeValue&&(\" \"===x.nodeValue||\"\"===x.nodeValue);)y-=1,x=k.get(y);x!==w.get(0)||w.parents(\"table\").length||r.insertAfter(r.createEmptyNode(C.document,\"p\"),w[0])}C.selectRange(u)}}),u=n.extend({init:function(e){this.options=e||{},this.replacements=[]},clean:function(e,t){var n,i,o=this,r=t||o.replacements;for(n=0,i=r.length;n]*)>/i,\"<$1telerik:script$2>\"]},applicable:function(e){return!this.options.none&&/]*>/i.test(e)}}),p=u.extend({init:function(e){u.fn.init.call(this,e);var t=\" \";this.replacements=[/]*>\\s*<\\/span>/gi,t,/\\t/gi,t,/    /gi,t]},applicable:function(e){return/    |class=\"?Apple-tab-span/i.test(e)}}),f=u.extend({init:function(e){u.fn.init.call(this,e),this.junkReplacements=[/<\\?xml[^>]*>/gi,\"\",//g,\"\",/"/g,\"'\",/ <\\/o:p>/gi,\" \",/<\\/?(meta|link|style|o:|v:|x:)[^>]*>((?:.|\\n)*?<\\/(meta|link|style|o:|v:|x:)[^>]*>)?/gi,\"\",/<\\/o>/g,\"\"],this.replacements=this.junkReplacements.concat([/(?:
     [\\s\\r\\n]+|
    )*(<\\/?(h[1-6]|hr|p|div|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|address|pre|form|blockquote|dl|dt|dd|dir|fieldset)[^>]*>)(?:
     [\\s\\r\\n]+|
    )*/g,\"$1\",/

    /g,\"

    \",/
    (?!\\n)/g,\" \",/]*)>(\\s| )+]*>(\\s| )*<\\/tr>/gi,\"\",/]*>(\\s| )*<\\/tbody>/gi,\"\",/]*>(\\s| )*<\\/table>/gi,\"\",/

    /g,\"
    \",/^\\s*( )+/gi,\"\",/( |]*>)+\\s*$/gi,\"\",/mso-[^;\"]*;?/gi,\"\",/<(\\/?)b(\\s[^>]*)?>/gi,\"<$1strong$2>\",/<(\\/?)font(\\s[^>]*)?>/gi,this.convertFontMatch,/<(\\/?)i(\\s[^>]*)?>/gi,\"<$1em$2>\",/style=([\"|'])\\s*\\1/g,\"\",/(]*>)?\\n/g,function(e,t){return t?e:\" \"}])},convertFontMatch:function(e,t,n){var i=/face=['\"]([^'\"]+)['\"]/i,o=i.exec(n),r=n&&o&&o[1];return t?\"\":r?'':\"\"},applicable:function(e){return/class=\"?Mso/i.test(e)||/style=\"[^\"]*mso-/i.test(e)||/urn:schemas-microsoft-com:office/.test(e)},stripEmptyAnchors:function(e){return e.replace(/]*)>\\s*<\\/a>/gi,function(e,t){return!t||t.indexOf(\"href\")<0?\"\":e})},listType:function(e,t){var n,i=e.innerHTML,o=r.innerText(e),a=i.match(/^(?:]*texhtml[^>]*>)?]*(?:Symbol|Wingdings)[^>]*>([^<]+)/i),s=a&&a[1],l=/^[a-z\\d]/i.test(s),d=function(e){return e.replace(/^(?: |[\\u00a0\\n\\r\\s])+/,\"\")};return a&&(n=!0),i=i.replace(/<\\/?\\w+[^>]*>/g,\"\").replace(/ /g,\"Â \"),!n&&/^[\\u2022\\u00b7\\u00a7\\u00d8o]\\u00a0+/.test(i)||n&&/^.\\u00a0+/.test(i)||s&&!l&&t?{tag:\"ul\",style:this._guessUnorderedListStyle(d(o))}:/^\\s*\\w+[\\.\\)][\\u00a0 ]{2,}/.test(i)?{tag:\"ol\",style:this._guessOrderedListStyle(d(o))}:void 0},_convertToLi:function(e){var t;return 1==e.childNodes.length?(t=e.firstChild.nodeType===r.nodeTypes.TEXT_NODE?r.innerText(e):e.firstChild.innerHTML.replace(/^\\w+[\\.\\)]( )+ /,\"\"),t=this._checkForBullet(t)):t=this._getHtmlNoBullet(e),r.remove(e),r.create(document,\"li\",{innerHTML:t})},_checkForBullet:function(e){var t=r.create(document,\"p\",{innerHTML:e}),n=/^\\s*\\w+[\\.\\)]\\s+/;return n.test(t.innerText)?this._getHtmlNoBullet(t):e},_getHtmlNoBullet:function(e){var t,n=r.name(e);return r.remove(e.firstChild),3==e.firstChild.nodeType&&/^[ivxlcdm]+\\.$/i.test(e.firstChild.nodeValue)&&r.remove(e.firstChild),/^( |\\s)+$/i.test(e.firstChild.innerHTML)&&r.remove(e.firstChild),t=\"p\"!=n?\"<\"+n+\">\"+e.innerHTML+\"\":e.innerHTML},_guessUnorderedListStyle:function(e){return/^[\\u2022\\u00b7\\u00FC\\u00D8\\u002dv-]/.test(e)?null:/^o/.test(e)?\"circle\":\"square\"},_guessOrderedListStyle:function(e){var t=null;return/^\\d/.test(e)||(t=(/^[a-z]/.test(e)?\"lower-\":\"upper-\")+(/^[ivxlcdm]/i.test(e)?\"roman\":\"alpha\")),t},extractListLevels:function(e){var n=/style=['\"]?[^'\"]*?mso-list:\\s?[a-zA-Z]+(\\d+)\\s[a-zA-Z]+(\\d+)\\s(\\w+)/gi;return e=e.replace(n,function(e,n,i){return t.format('data-list=\"{0}\" data-level=\"{1}\" {2}',n,i,e)})},_createList:function(e,t){return r.create(document,e,{style:{listStyleType:t}})},lists:function(t){var n,i,o,a,s,d,c,u,h,p,f,m,g,v,_,b,w=e(t).find(r.blockElements.join(\",\")),k=-1,y={},x=[\"p\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"],C=!1;for(u=0;uk||!m)&&(m=this._createList(p,_.style),y[f][b]=m,i.appendChild(m)),i=this._convertToLi(h),m.appendChild(i),d?o=k=-1:k=f))},removeAttributes:function(e){for(var t=e.attributes,n=t.length;n--;)\"colspan\"!=r.name(t[n])&&e.removeAttributeNode(t[n])},createColGroup:function(n){var i=n.cells,o=e(n).closest(\"table\"),r=o.children(\"colgroup\");i.length<2||(r.length&&(i=r.children(),r[0].parentNode.removeChild(r[0])),r=e(e.map(i,function(e){var n=e.width;return n&&0!==parseInt(n,10)?t.format('',n):\"\"}).join(\"\")),r.is(\"colgroup\")||(r=e(\"\").append(r)),r.prependTo(o))},convertHeaders:function(t){var n,i=t.cells,o=e.map(i,function(t){var n=e(t).children(\"p\").children(\"strong\")[0];if(n&&\"strong\"==r.name(n))return n});if(o.length==i.length){for(n=0;n\").end().find(\"thead\").append(t),n=0;no.cells.length&&(o=n[a]);l.createColGroup(o),l.convertHeaders(i),l.removeAttributes(s[r]),l.removeParagraphs(s.eq(r).find(\"td,th\")),l.removeDefaultColors(s.eq(r).find(\"span\")),l.removeTextNodes(s.eq(r).find(\"tr\"))}},headers:function(t){var n,i=e(t).find(\"p.MsoTitle\");for(n=0;n]*)\\s+class=\"?[^\"\\s>]*\"?/gi,\"$1\")),e}}),m=u.extend({init:function(e){u.fn.init.call(this,e),this.replacements=[/\\s+class=\"Apple-style-span[^\"]*\"/gi,\"\",/<(div|p|h[1-6])\\s+style=\"[^\"]*\"/gi,\"<$1\",/^
    (.*)<\\/div>$/,\"$1\"]},applicable:function(e){return/class=\"?Apple-style-span|style=\"[^\"]*-webkit-nbsp-mode/i.test(e)}}),g=u.extend({clean:function(e){var t=r.create(document,\"div\",{innerHTML:e});return t=this.cleanDom(t),t.innerHTML},cleanDom:function(e){return e}}),v=g.extend({cleanDom:function(t){var n=this.collectTags();return e(t).find(n).each(function(){r.unwrap(this)}),t},collectTags:function(){if(this.options.span)return\"span\"},applicable:function(){return this.options.span}}),_=g.extend({cleanDom:function(t){var n=this.collectAttr(),i=e(t).find(\"[\"+n.join(\"],[\")+\"]\");return i.removeAttr(n.join(\" \")),t},collectAttr:function(){return this.options.css?[\"class\",\"style\"]:[]},applicable:function(){return this.options.css}}),b=function(){this.text=\"\",this.add=function(e){this.text+=e}},w=n.extend({init:function(e){this.separators=e||{text:\" \",line:\"
    \"},this.lines=[],this.inlineBlockText=[],this.resetLine()},appendText:function(e){3===e.nodeType&&(e=e.nodeValue),this.textContainer.add(e)},appendInlineBlockText:function(e){this.inlineBlockText.push(e)},flashInlineBlockText:function(){this.inlineBlockText.length&&(this.appendText(this.inlineBlockText.join(\" \")),this.inlineBlockText=[])},endLine:function(){this.flashInlineBlockText(),this.resetLine()},html:function(){var e,t,n,i,o,r,a,s,l=this.separators,d=\"\",c=this.lines;for(this.flashInlineBlockText(),e=0,t=c.length,n=t-1;e\"}},actions:{ul:e.noop,ol:e.noop,table:e.noop,thead:e.noop,tbody:e.noop,td:function(e,t){var n=new y({all:!0}),i=n.cleanDom(t);return e.htmlLines.appendInlineBlockText(i),!0},block:function(e){e.htmlLines.endLine()}}}),x=u.extend({clean:function(e){return this.options.custom(e)},applicable:function(){return\"function\"==typeof this.options.custom}});d(i,{Clipboard:c,Cleaner:u,ScriptCleaner:h,TabCleaner:p,MSWordFormatCleaner:f,WebkitFormatCleaner:m,HtmlTagsCleaner:v,HtmlAttrCleaner:_,HtmlContentCleaner:y,HtmlTextLines:w,CustomCleaner:x})}(window.kendo.jQuery)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/plugins/keyboard.min\",[\"editor/command.min\"],e)}(function(){!function(e){function t(e,t){return t.startContainer===e&&t.endContainer===e&&0===t.startOffset&&t.endOffset==e.childNodes.length}function n(e,t,n){for(var i=e?e[t]:null;i&&!n(i);)i=i[t];return i}var i=window.kendo,o=i.Class,r=i.ui.editor,a=r.RangeUtils,s=r.Dom,l=r.RestorePoint,d=r.Marker,c=i.support.browser,u=\"\\ufeff\",h=e.extend,p=s.nodeTypes,f=\"previousSibling\",m=\"td,th,caption\",g=\"table,tbody,thead,tfoot,tr\",v=g+\",\"+m,_=function(t){return!t.collapsed&&e(t.commonAncestorContainer).is(g)},b=o.extend({remove:function(t){var n,i,o,r,l,c,u,h=this,p=new d;p.add(t,!1),n=a.getAll(t,function(t){return e(t).is(v)}),i=a.documentFromRange(t),o=p.start,r=p.end,l=m.split(\",\"),c=s.parentOfType(o,l),u=s.parentOfType(r,l),h._removeContent(o,c,!0),h._removeContent(r,u,!1),e(n).each(function(t,n){n=e(n),(n.is(m)?n:n.find(m)).each(function(e,t){t.innerHTML=\"\"})}),c&&!o.previousSibling&&s.insertBefore(i.createTextNode(\"\\ufeff\"),o),u&&!r.nextSibling&&s.insertAfter(i.createTextNode(\"\\ufeff\"),r),c?t.setStartBefore(o):n[0]&&(c=e(n[0]),c=c.is(m)?c:c.find(m).first(),c.length&&t.setStart(c.get(0),0)),t.collapse(!0),s.remove(o),s.remove(r)},_removeContent:function(t,n,i){if(n){var o,r=i?\"nextSibling\":\"previousSibling\",a=function(t){for(;t&&!t[r];)t=t.parentNode;return t&&e.contains(n,t)?t[r]:null};for(t=a(t);t;)o=a(t),s.remove(t),t=o}}}),w=o.extend({init:function(e){this.editor=e},keydown:function(n){var i,o,a,s,d=this,u=d.editor,p=u.keyboard,f=p.isTypingKey(n),m=h(e.Event(),n);return d.editor.trigger(\"keydown\",m),m.isDefaultPrevented()?(n.preventDefault(),!0):!(m.isDefaultPrevented()||!f||p.isTypingInProgress())&&(i=u.getRange(),o=u.body,d.startRestorePoint=new l(i,o),_(i)&&(a=new b(u),a.remove(i),u.selectRange(i)),c.webkit&&!i.collapsed&&t(o,i)&&(o.innerHTML=\"\"),u.immutables&&r.Immutables.immutablesContext(i)&&(s=new r.BackspaceHandler(u),s.deleteSelection(i)),p.startTyping(function(){d._removeBomSpan(),d.endRestorePoint=r._finishUpdate(u,d.startRestorePoint)}),!0)},keyup:function(e){var t=this.editor.keyboard;return this.editor.trigger(\"keyup\",e),!!t.isTypingInProgress()&&(t.endTyping(),!0)},_removeBomSpan:function(){var e=this.editor.getRange().commonAncestorContainer;s.emptyNode(e)||(3===e.nodeType&&(e=e.parentNode),s.insignificant(e)&&(e.textContent=s.stripBom(e.textContent),s.unwrap(e)))}}),k=o.extend({init:function(e){this.editor=e},_addCaret:function(e){var t=s.create(this.editor.document,\"a\");return!i.support.browser.chrome&&e.firstChild&&e.firstChild.nodeType===p.ELEMENT_NODE&&(e=e.firstChild),s.insertAt(e,t,0),s.stripBomNode(t.previousSibling),s.stripBomNode(t.nextSibling),t},_restoreCaret:function(e){var t=this.editor.createRange();!e.nextSibling&&s.isDataNode(e.previousSibling)?t.setStart(e.previousSibling,e.previousSibling.length):t.setStartAfter(e),t.collapse(!0),this.editor.selectRange(t),s.remove(e)},_handleDelete:function(e){var t,n,i,o=e.endContainer,a=s.closestEditableOfType(o,s.blockElements);return!(!a||!r.RangeUtils.isEndOf(e,a))&&(t=s.next(a),!(!t||\"p\"!=s.name(t))&&(n=s.significantChildNodes(t)[0],n=n&&s.isInline(n)?n:t,i=this._addCaret(n),this._merge(a,t),this._restoreCaret(i),!0))},_cleanBomBefore:function(e){for(var t=e.startOffset,n=e.startContainer,i=n.nodeValue,o=0;t-o>=0&&\"\\ufeff\"==i[t-o-1];)o++;o>0&&(n.deleteData(t-o,o),e.setStart(n,Math.max(0,t-o)),e.collapse(!0),this.editor.selectRange(e))},_handleBackspace:function(t){var i,o,a,l,d,c,u,h,p,m,g,v,_,b,w=t.startContainer,k=s.closestEditableOfType(w,[\"li\"]),y=s.closestEditableOfType(w,\"p,h1,h2,h3,h4,h5,h6\".split(\",\")),x=this.editor;if(s.isDataNode(w)){if(t.collapsed&&/^\\s[\\ufeff]+$/.test(w.nodeValue))return t.setStart(w,0),t.setEnd(w,w.length),x.selectRange(t),!1;this._cleanBomBefore(t)}return i=n(y,f,function(e){return!s.htmlIndentSpace(e)}),t.collapsed&&t.startOffset!==t.endOffset&&t.startOffset<0&&(t.startOffset=0,t.endOffset=0,x.selectRange(t)),o=k&&r.RangeUtils.isStartOf(t,k),a=k&&e(k).index(),l=o&&a>0,l&&(y=k,i=s.prev(k)),y&&i&&s.is(i,\"table\")&&r.RangeUtils.isStartOf(t,y)?(\"\"===y.innerText&&(y.innerHTML=\"\\ufeff\"),!0):r.RangeUtils.isStartOf(t,y)&&parseInt(y.style.marginLeft,10)>0?(x.exec(\"outdent\"),!0):y&&i&&r.RangeUtils.isStartOf(t,y)||l?(d=s.significantChildNodes(y)[0],d=d&&s.isInline(d)?d:y,c=this._addCaret(d),this._merge(i,y),this._restoreCaret(c),!0):o&&0===a?(u=k.firstChild,u||(k.innerHTML=r.emptyElementContent,u=k.firstChild),h=new r.ListFormatter(s.name(k.parentNode),\"p\"),t.selectNodeContents(k),h.toggle(t),s.insignificant(u)?t.setStartBefore(u):t.setStart(u,0),x.selectRange(t),!0):(p=w.childNodes[t.startOffset-1],m=t,g=p&&s.closestEditableOfType(p,[\"a\"]),v=n(p||w,f,function(e){return!s.isDataNode(e)||!s.isBom(e)&&e.length>0}),(g||(0===t.startOffset||p)&&s.is(v,\"a\"))&&(g=g||v,m=x.createRange(),m.setStart(g,g.childNodes.length),m.collapse(!0)),g=g||s.closestEditableOfType(p||m.startContainer,[\"a\"]),_=g&&r.RangeUtils.isEndOf(m,g),_&&(b=new r.UnlinkCommand({range:m,body:x.body,immutables:!!x.immutables}),x.execCommand(b),x._selectionChange()),!1)},_handleSelection:function(t){var n,i,o,a,l,c=t.commonAncestorContainer,u=s.closest(c,\"table\"),h=r.emptyElementContent,p=this.editor;return _(t)?(i=new b(p),i.remove(t),p.selectRange(t),!0):(o=new d,o.add(t,!1),t.commonAncestorContainer===p.body&&this._surroundFullyContent(o,t),p.immutables&&this._handleImmutables(o),this._surroundFullySelectedAnchor(o,t),t.setStartAfter(o.start),t.setEndBefore(o.end),a=t.startContainer,l=t.endContainer,t.deleteContents(),\"li\"===l.tagName.toLocaleLowerCase()&&s.emptyNode(l)&&(t.selectNode(l),t.deleteContents()),u&&\"\"===e(u).text()&&(t.selectNode(u),t.deleteContents()),c=t.commonAncestorContainer,\"p\"===s.name(c)&&\"\"===c.innerHTML&&(c.innerHTML=h,t.setStart(c,0)),this._join(a,l),s.insertAfter(p.document.createTextNode(\"\\ufeff\"),o.start),o.remove(t),a=t.startContainer,\"tr\"==s.name(a)&&(a=a.childNodes[Math.max(0,t.startOffset-1)],t.setStart(a,s.getNodeLength(a))),t.collapse(!0),p.selectRange(t),n=a.parentElement||a.parentNode,s.isDataNode(a)&&!s.emptyNode(n)&&this._cleanBomBefore(t),!0)},_handleImmutables:function(e){var t=r.Immutables.immutableParent,n=t(e.start),i=t(e.start);n&&s.insertBefore(e.start,n),i&&s.insertAfter(e.end,i),n&&s.remove(n),i&&i.parentNode&&s.remove(i)},_surroundFullyContent:function(e,t){var n=t.commonAncestorContainer.children,i=n[0],o=n[n.length-1];this._moveMarker(e,t,i,o)},_surroundFullySelectedAnchor:function(t,n){var i=t.start,o=e(i).closest(\"a\").get(0),r=t.end,a=e(r).closest(\"a\").get(0);this._moveMarker(t,n,o,a)},_moveMarker:function(e,t,n,i){var o=e.start,r=e.end;n&&a.isStartOf(t,n)&&s.insertBefore(o,n),i&&a.isEndOf(t,i)&&s.insertAfter(r,i)},_root:function(e){for(;e&&\"body\"!=s.name(e)&&e.parentNode&&\"body\"!=s.name(e.parentNode);)e=e.parentNode;return e},_join:function(e,t){e=this._root(e),t=this._root(t),e!=t&&s.is(t,\"p\")&&this._merge(e,t)},_merge:function(e,t){for(s.removeTrailingBreak(e);e&&t.firstChild;)1==e.nodeType?(e=s.list(e)?e.children[e.children.length-1]:e,e&&e.appendChild(t.firstChild)):e.nodeType===p.TEXT_NODE?this._mergeWithTextNode(e,t.firstChild):e.parentNode.appendChild(t.firstChild);s.remove(t)},_mergeWithTextNode:function(e,t){e&&e.nodeType===p.TEXT_NODE&&(e.nextSibling&&this._isCaret(e.nextSibling)?s.insertAfter(t,e.nextSibling):s.insertAfter(t,e))},_isCaret:function(t){return e(t).is(\"a\")},keydown:function(e){var t,n,o=this.editor,a=o.getRange(),s=e.keyCode,d=i.keys,c=s===d.BACKSPACE,u=s==d.DELETE;o.immutables&&o.immutables.keydown(e,a)||(!c&&!u||a.collapsed?c?t=\"_handleBackspace\":u&&(t=\"_handleDelete\"):t=\"_handleSelection\",t&&(n=new l(a,o.body),this[t](a)&&(e.preventDefault(),r._finishUpdate(o,n))))},deleteSelection:function(e){this._handleSelection(e)},keyup:e.noop}),y=o.extend({init:function(e){this.editor=e,this.systemCommandIsInProgress=!1},createUndoCommand:function(){this.startRestorePoint=this.endRestorePoint=r._finishUpdate(this.editor,this.startRestorePoint)},changed:function(){return!!this.startRestorePoint&&this.startRestorePoint.html!=this.editor.body.innerHTML},keydown:function(e){var t=this,n=t.editor,i=n.keyboard;return i.isModifierKey(e)?(i.isTypingInProgress()&&i.endTyping(!0),t.startRestorePoint=new l(n.getRange(),n.body),!0):!!i.isSystem(e)&&(t.systemCommandIsInProgress=!0,t.changed()&&(t.systemCommandIsInProgress=!1,t.createUndoCommand()),!0)},keyup:function(){var e=this;return!(!e.systemCommandIsInProgress||!e.changed())&&(e.systemCommandIsInProgress=!1,e.createUndoCommand(),!0)}}),x=o.extend({init:function(e){this.editor=e},keydown:function(e){!c.webkit||e.isDefaultPrevented()||!e.ctrlKey||65!=e.keyCode||e.altKey||e.shiftKey||(this.editor.options.immutables&&this._toSelectableImmutables(),this._selectEditorBody())},_selectEditorBody:function(){var e=this.editor,t=e.getRange();t.selectNodeContents(e.body),setTimeout(function(){e.selectRange(t)})},_toSelectableImmutables:function(){for(var t=this.editor,n=t.body,i=r.Immutables.immutable,o=s.emptyTextNode,a=n.firstChild,l=n.lastChild;o(a);)a=a.nextSibling;for(;o(l);)l=l.previousSibling;a&&i(a)&&e(u).prependTo(n),l&&i(l)&&e(u).appendTo(n)},keyup:e.noop}),C=o.extend({init:function(e){this.handlers=e,this.typingInProgress=!1},isCharacter:function(e){return e>=48&&e<=90||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||229==e},toolFromShortcut:function(t,n){var i,o,r=String.fromCharCode(n.keyCode),a=this._getShortcutModifier(n,navigator.platform);for(i in t)if(o=e.extend({ctrl:!1,alt:!1,shift:!1},t[i].options),(o.key==r||o.key==n.keyCode)&&o.ctrl==a&&o.alt==n.altKey&&o.shift==n.shiftKey)return i},_getShortcutModifier:function(e,t){var n=t.toUpperCase().indexOf(\"MAC\")>=0;return n?e.metaKey:e.ctrlKey},toolsFromShortcut:function(t,n){var i,o,r,a=String.fromCharCode(n.keyCode),s=[],l=function(e){return e==a||e==n.keyCode||e==n.charCode};for(i in t)o=e.extend({ctrl:!1,alt:!1,shift:!1},t[i].options),r=Array.isArray(o.key)?e.grep(o.key,l).length>0:l(o.key),r&&o.ctrl==n.ctrlKey&&o.alt==n.altKey&&o.shift==n.shiftKey&&s.push(t[i]);return s},isTypingKey:function(e){var t=e.keyCode;return this.isCharacter(t)&&!e.ctrlKey&&!e.altKey||32==t||13==t||8==t||46==t&&!e.shiftKey&&!e.ctrlKey&&!e.altKey},isModifierKey:function(e){var t=e.keyCode;return 17==t&&!e.shiftKey&&!e.altKey||16==t&&!e.ctrlKey&&!e.altKey||18==t&&!e.ctrlKey&&!e.shiftKey},isSystem:function(e){return 46==e.keyCode&&e.ctrlKey&&!e.altKey&&!e.shiftKey},startTyping:function(e){this.onEndTyping=e,this.typingInProgress=!0},stopTyping:function(){this.typingInProgress&&this.onEndTyping&&this.onEndTyping(),this.typingInProgress=!1},endTyping:function(t){var n=this;n.clearTimeout(),t?n.stopTyping():n.timeout=window.setTimeout(e.proxy(n.stopTyping,n),1e3)},isTypingInProgress:function(){return this.typingInProgress},clearTimeout:function(){window.clearTimeout(this.timeout)},notify:function(e,t){var n,i=this.handlers;for(n=0;n0)for(t=0;tt.clientHeight?e.support.scrollbar():0}function o(e,t){return r(e)?p(e):p(e)/t*100}function r(e){return typeof e===k&&b.test(e)}function a(e){return typeof e===k&&w.test(e)}function s(e){return p(e)+v}function l(e){return p(e)+_}var d=window,c=d.Math,u=c.min,h=c.max,p=d.parseFloat,f=e.jQuery,m=f.extend,g=e.ui.editor,v=\"%\",_=\"px\",b=/(\\d+)(\\.?)(\\d*)%/,w=/(\\d+)(\\.?)(\\d*)px/,k=\"string\",y={constrain:n,getScrollBarWidth:i,calculatePercentageRatio:o,inPercentages:r,inPixels:a,toPercentages:s,toPixels:l};m(g,{ResizingUtils:y})}(window.kendo)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/resizing/table-element-resizing.min\",[\"editor/main.min\",\"kendo.resizable.min\",\"editor/resizing/resizing-utils.min\"],e)}(function(){!function(e,t){var n=e.jQuery,i=n.extend,o=n.noop,r=n.proxy,a=e.ui.editor,s=e.Class,l=\"keydown\",d=\"mousedown\",c=\"mouseenter\",u=\"mouseleave\",h=\"mousemove\",p=\"mouseup\",f=\",\",m=\".\",g=\":last-child\",v=\"table\",_=s.extend({init:function(e,t){var o=this;o.options=i({},o.options,t),o.options.tags=Array.isArray(o.options.tags)?o.options.tags:[o.options.tags],n(e).is(v)&&(o.element=e,o._attachEventHandlers())},destroy:function(){var e=this,t=e.options.eventNamespace;e.element&&(n(e.element).off(t),e.element=null),n(e.options.rootElement).off(l+t),e._destroyResizeHandle()},options:{tags:[],min:0,rootElement:null,eventNamespace:\"\",rtl:!1,handle:{dataAttribute:\"\",height:0,width:0,classNames:{},template:\"\"}},_attachEventHandlers:function(){var e=this,t=e.options;n(e.element).on(h+t.eventNamespace,t.tags.join(f),r(e.detectElementBorderHovering,e))},resizingInProgress:function(){var e=this,t=e._resizable;return!!t&&!!t.resizing},resize:o,detectElementBorderHovering:function(e){var t=this,i=t.options,o=i.handle,r=n(e.currentTarget),a=t.resizeHandle,s=o.dataAttribute;t.resizingInProgress()||(!r.is(g)&&t.elementBorderHovered(r,e)?a?a.data(s)&&a.data(s)!==r[0]&&t.showResizeHandle(r,e):t.showResizeHandle(r,e):a&&t._destroyResizeHandle())},elementBorderHovered:o,showResizeHandle:function(e,t){var n=this;0===t.buttons&&(n._initResizeHandle(),n.setResizeHandlePosition(e),n.setResizeHandleDimensions(),n.setResizeHandleDataAttributes(e[0]),n._attachResizeHandleEventHandlers(),n._initResizable(e),n._hideResizeMarker(),n.resizeHandle.show())},_initResizeHandle:function(){var e=this,t=e.options;e._destroyResizeHandle(),e.resizeHandle=n(t.handle.template).appendTo(t.rootElement)},setResizeHandlePosition:o,setResizeHandleDimensions:o,setResizeHandleDataAttributes:function(e){var t=this;t.resizeHandle.data(t.options.handle.dataAttribute,e)},_attachResizeHandleEventHandlers:function(){var e=this,t=e.options,n=t.eventNamespace,i=t.handle.classNames.marker,o=e.resizeHandle;e.resizeHandle.on(d+n,function(){o.find(m+i).show()}).on(p+n,function(){o.find(m+i).hide()})},_hideResizeMarker:function(){var e=this;e.resizeHandle.find(m+e.options.handle.classNames.marker).hide()},_destroyResizeHandle:function(){var e=this;e.resizeHandle&&(e._destroyResizable(),e.resizeHandle.off(e.options.eventNamespace).remove(),e.resizeHandle=null)},_initResizable:function(t){var n=this;n.resizeHandle&&(n._destroyResizable(),n._resizable=new e.ui.Resizable(t,{draggableElement:n.resizeHandle[0],start:r(n.onResizeStart,n),resize:r(n.onResize,n),resizeend:r(n.onResizeEnd,n)}))},_destroyResizable:function(){var e=this;e._resizable&&(e._resizable.destroy(),e._resizable=null)},onResizeStart:function(){this._disableKeyboard()},onResize:function(e){this.setResizeHandleDragPosition(e)},setResizeHandleDragPosition:o,onResizeEnd:function(e){var t=this;t.resize(e),t._destroyResizeHandle(),t._enableKeyboard()},_enableKeyboard:function(){var e=this.options;n(e.rootElement).off(l+e.eventNamespace)},_disableKeyboard:function(){var e=this.options;n(e.rootElement).on(l+e.eventNamespace,function(e){e.preventDefault()})},_forceResizing:function(e){var t=this._resizable;t&&t.userEvents&&t.userEvents._end(e)}}),b=s.extend({create:function(e,t){var i=this,o=t.name,r=t.eventNamespace;n(e.body).on(c+r,v,function(n){var r=n.currentTarget,a=e[o];n.stopPropagation(),a?a.element===r||a.resizingInProgress()||(i._destroyResizing(e,t),i._initResizing(e,r,t)):i._initResizing(e,r,t)}).on(u+r,v,function(r){var a,s=e[o];r.stopPropagation(),!s||s.resizingInProgress()||s.resizeHandle||(a=n(s.element).parents(v)[0],a&&(i._destroyResizing(e,t),i._initResizing(e,a,t)))}).on(u+r,function(){var n=e[o];n&&!n.resizingInProgress()&&i._destroyResizing(e,t)}).on(p+r,function(r){var a,s=e[o];s&&s.resizingInProgress()&&(a=n(r.target).parents(v)[0],a&&(s._forceResizing(r),i._destroyResizing(e,t),i._initResizing(e,a,t)))})},dispose:function(e,t){n(e.body).off(t.eventNamespace)},_initResizing:function(t,n,i){var o=i.name,r=i.type;t[o]=new r(n,{rtl:e.support.isRtl(t.element),rootElement:t.body})},_destroyResizing:function(e,t){var n=t.name;e[n]&&(e[n].destroy(),e[n]=null)}});b.current=new b,_.create=function(e,t){b.current.create(e,t)},_.dispose=function(e,t){b.current.dispose(e,t)},i(a,{TableElementResizing:_})}(window.kendo)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/resizing/column-resizing.min\",[\"editor/main.min\",\"editor/resizing/resizing-utils.min\",\"editor/resizing/table-element-resizing.min\",\"editor/dom.min\"],e)}(function(){!function(e,t){var n=window,i=n.Math,o=i.abs,r=e.jQuery,a=r.extend,s=e.ui.editor,l=s.Dom,d=s.TableElementResizing,c=s.ResizingUtils,u=c.constrain,h=c.calculatePercentageRatio,p=c.getScrollBarWidth,f=c.inPercentages,m=c.toPercentages,g=c.toPixels,v=e._outerWidth,_=\".kendoEditorColumnResizing\",b=\"k-column-resize-handle\",w=\"k-column-resize-marker\",k=\"body\",y=\"tbody\",x=\"thead\",C=\"td\",S=\"th\",T=\"tr\",D=\"col-index\",I=\",\",A=\"width\",E=d.extend({options:{tags:[C,S],min:20,rootElement:null,eventNamespace:_,rtl:!1,handle:{dataAttribute:\"column\",width:10,height:0,classNames:{handle:b,marker:w},template:'
    '}},elementBorderHovered:function(e,t){var n=this,i=n.options,o=i.handle.width,a=e.offset().left+(i.rtl?0:v(e)),s=t.clientX+r(e[0].ownerDocument).scrollLeft();return s>a-o&&s=85)&&(c*=-1),n.resizeHandle.css({top:m+d,left:f+u+(c-h)-s/2,position:\"absolute\"})},setResizeHandleDimensions:function(){var e=this,t=r(e.element).children(x),n=r(e.element).children(y),i=t.length>0?t.height()+n.height():n.height();e.resizeHandle.css({width:e.options.handle.width,height:i})},setResizeHandleDragPosition:function(t){var n,i=this,o=r(r(t.currentTarget).data(i.options.handle.dataAttribute)),a=i.options,s=r(a.rootElement),l=a.handle?a.handle.width:0,d=a.min,c=a.rtl,h=v(o),f=o.offset().left-(s.offset().left+parseFloat(s.css(\"borderLeftWidth\")))-parseFloat(o.css(\"marginLeft\")),m=v(o.next()),g=r(i.resizeHandle),_=s.is(k)?0:e.scrollLeft(s),b=c?p(s[0]):0,w=g.offset().left-(s.offset().left+parseFloat(s.css(\"borderLeftWidth\")))-parseFloat(g.css(\"marginLeft\")),y=e.support.browser;c&&(y.mozilla||y.webkit&&y.version>=85)&&(_*=-1),n=u({value:w+(_-b)+t.x.delta,min:f+(_-b)-(c?m:0)+d,max:f+h+(_-b)+(c?0:m)-l-d}),g.css({left:n})},resize:function(e){var t,n,i,o,a,s=this,d=r(r(e.currentTarget).data(s.options.handle.dataAttribute)),c=s.options,h=c.rtl?-1:1,p=c.min,f=h*e.x.initialDelta;l.reMapTableColumns(s.element,D),o=parseInt(d.attr(D),10),d.prop(\"colSpan\")>1&&(d=r(s.element).find(\"[\"+D+\"=\"+(o+d.prop(\"colSpan\")-1)+\"]\").eq(0),o=parseInt(d.attr(D),10)),a=r(s.element).find(\"[\"+D+\"=\"+(o+1)+\"]:not([colspan])\"),s._setTableComputedWidth(),s._setColumnsComputedWidth(),i=v(d),n=v(a),t=u({value:i+f,min:p,max:i+n-p}),s._resizeColumn(d[0],t),s._resizeTopAndBottomColumns(d[0],t),s._resizeAdjacentColumns(parseInt(d.attr(D),10),n,i,i-t),l.clearTableMappings(s.element,D)},_setTableComputedWidth:function(){var e=this.element;\"\"===e.style[A]&&(e.style[A]=g(v(r(e))))},_setColumnsComputedWidth:function(){var e,t=this,n=r(t.element.tHead||t.element.tBodies[0]),i=v(n),o=n.children(T).children(C),a=o.length,s=o.map(function(){return v(r(this))});for(e=0;e
    '}},elementBorderHovered:function(e,t){var n=this,i=n.options.handle[S],r=e.offset().top+m(e),a=t.clientY+o(e[0].ownerDocument).scrollTop();return a>r-i&&a=85)&&(l*=-1),n.resizeHandle.css({top:h+m(t)+s-r/2,left:u+(l-c),position:\"absolute\"})},setResizeHandleDimensions:function(){var e=this,t=o(e.element.tHead||e.element.tBodies[0]);e.resizeHandle.css({width:t.width(),height:e.options.handle[S]})},setResizeHandleDragPosition:function(e){var t=this,n=t.options,i=n.min,r=o(t.element).children(x),a=o(t.element).children(y),s=r.length>0?r:a,l=o(t.resizeHandle),d=o(e.currentTarget).data(n.handle.dataAttribute),u=o(d),h=o(n.rootElement),p=h.is(w)?0:h.scrollTop(),f=s.offset().top-(h.offset().top+parseFloat(h.css(\"borderTopWidth\")))-parseFloat(s.css(\"marginTop\")),g=u.offset().top-(h.offset().top+parseFloat(h.css(\"borderTopWidth\")))-parseFloat(u.css(\"marginTop\")),v=l.offset().top-(Math.max(0,h.offset().top)+parseFloat(h.css(\"borderTopWidth\")))-parseFloat(l.css(\"marginTop\")),_=c({value:v+p+e.y.delta,min:g+p+i,max:f+m(r)+m(a)+p-n.handle[S]-i});l.css({top:_})},resize:function(e){var t=this,n=t.options,r=o(e.currentTarget).data(n.handle.dataAttribute),a=m(o(r)),s=o(t.element),l=m(s),d=s.children(x),u=d.length>0?d.height():0,p=s.children(y),g=p.height(),v=r.style[S],_=c({value:a+e.y.initialDelta,min:n.min,max:i(u+g-n.min)});t._setRowsHeightInPixels(),r.style[S]=f(_),t._setTableHeight(l+(_-a)),h(v)&&t._setRowsHeightInPercentages()},_setRowsHeightInPixels:function(){var e,t=this,n=o(t.element).children(y+C+x).children(k),i=n.length,r=n.map(function(){return m(o(this))});for(e=0;e0?n.height():0,r=o(t.element).children(y),a=r.height(),s=o(t.element).children(x+C+y).children(k),l=s.length,d=s.map(function(){return m(o(this))});for(e=0;e
  • \"},events:[L,H,O,V,W],show:function(){this._setPosition()},_setPosition:function(){var e=this,t=e._positioningStrategy.getPosition();C(e.element).css({top:t.top,left:t.left,position:\"absolute\"})},_attachEventHandlers:function(){var e=this;C(e.element).on(V+z,D(e._onMouseOver,e)).on(W+z,D(e._onMouseOut,e))},_onMouseOver:function(){this.trigger(V)},_onMouseOut:function(){this.trigger(W)},_addStyles:function(){var e=this;C(e.element).children(J+B).addClass(\"k-resize-\"+e.options.direction)},_initPositioningStrategy:function(){var e=this,t=e.options;e._positioningStrategy=n.create({name:t.direction,handle:e.element,resizableElement:t.resizableElement,rootElement:t.rootElement,rtl:t.rtl})},_initDraggable:function(){var e=this,t=e.element;!e._draggable&&t&&(e._draggable=new E(t,{dragstart:D(e._onDragStart,e),drag:D(e._onDrag,e),dragend:D(e._onDragEnd,e)}))},_onDragStart:function(){this.trigger(L)},_onDrag:function(e){var t=this;t.trigger(H,t._draggingStrategy.adjustDragDelta({deltaX:e.x.delta,deltaY:e.y.delta,initialDeltaX:e.x.initialDelta,initialDeltaY:e.y.initialDelta}))},_onDragEnd:function(){this.trigger(O)},_destroyDraggable:function(){var e=this;e._draggable&&(e._draggable.destroy(),e._draggable=null)},_initDraggingStrategy:function(){var e=this;e._draggingStrategy=h.create({name:e.options.direction})}}),te=A.extend({init:function(){this._items=[]},register:function(e,t){this._items.push({name:e,type:t})},create:function(e){var t,n,i,o=this._items,r=o.length,a=e.name?e.name.toLowerCase():\"\";for(i=0;i=85)&&(n*=-1),{top:t.top+(o.scrollTop()||0),left:t.left+n-r})}}),n.create=function(e){return ne.current.create(e)},i=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position(),n=parseInt(e.css(\"marginLeft\"),10);return{top:t.top+P(e)/2,left:t.left+F(e)+n}}}),ne.current.register(G,i),o=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position(),n=parseInt(e.css(\"marginLeft\"),10);return{top:t.top,left:t.left+F(e)/2+n}}}),ne.current.register(q,o),r=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position(),n=parseInt(e.css(\"marginLeft\"),10);return{top:t.top,left:t.left+F(e)+n}}}),ne.current.register($,r),a=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position(),n=parseInt(e.css(\"marginLeft\"),10);return{top:t.top,left:t.left+n}}}),ne.current.register(K,a),s=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position(),n=parseInt(e.css(\"marginLeft\"),10);return{top:t.top+P(e),left:t.left+F(e)/2+n}}}),ne.current.register(Y,s),l=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position(),n=parseInt(e.css(\"marginLeft\"),10);return{top:t.top+P(e),left:t.left+F(e)+n}}}),ne.current.register(Q,l),d=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position(),n=parseInt(e.css(\"marginLeft\"),10);return{top:t.top+P(e),left:t.left+n}}}),ne.current.register(X,d),c=n.extend({calculatePosition:function(){var e=C(this.options.resizableElement),t=e.position(),n=parseInt(e.css(\"marginLeft\"),10);return{top:t.top+P(e)/2,left:t.left+n}}}),ne.current.register(Z,c),u=te.extend({}),u.current=new u,h=A.extend({init:function(e){var t=this;t.options=S({},t.options,e)},options:{deltaX:{adjustment:null,modifier:null},deltaY:{adjustment:null,modifier:null}},adjustDragDelta:function(e){var t=this.options,n=t.deltaX.adjustment*t.deltaX.modifier,i=t.deltaY.adjustment*t.deltaY.modifier;return{deltaX:e.deltaX*n,deltaY:e.deltaY*i,initialDeltaX:e.initialDeltaX*n,initialDeltaY:e.initialDeltaY*i}}}),h.create=function(e){return u.current.create(e)},p=h.extend({options:{deltaX:{adjustment:1,modifier:1},deltaY:{adjustment:0,modifier:0}}}),f=p.extend({options:{deltaX:{modifier:1}}}),u.current.register(G,f),m=p.extend({options:{deltaX:{modifier:-1}}}),u.current.register(Z,m),g=h.extend({options:{deltaX:{adjustment:0,modifier:0},deltaY:{adjustment:1,modifier:1}}}),v=g.extend({options:{deltaY:{modifier:-1}}}),u.current.register(q,v),_=g.extend({options:{deltaY:{modifier:1}}}),u.current.register(Y,_),b=h.extend({options:{deltaX:{adjustment:1,modifier:1},deltaY:{adjustment:1,modifier:1}}}),w=b.extend({options:{deltaX:{modifier:1},deltaY:{modifier:-1}}}),u.current.register($,w),k=b.extend({options:{deltaX:{modifier:-1},deltaY:{modifier:-1}}}),u.current.register(K,k),y=b.extend({options:{deltaX:{modifier:1},deltaY:{modifier:1}}}),u.current.register(Q,y),x=b.extend({options:{deltaX:{modifier:-1},deltaY:{modifier:1}}}),u.current.register(X,x),S(I,{ElementResizeHandle:ee})}(window.kendo)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/resizing/element-resizing.min\",[\"editor/main.min\",\"editor/resizing/element-resize-handle.min\",\"editor/resizing/resizing-utils.min\"],e)}(function(){!function(e,t){function n(e){return t===e}var i=window,o=i.Math,r=o.min,a=o.max,s=e.jQuery,l=s.contains,d=s.extend,c=s.proxy,u=e.support.browser,h=e.ui.editor,p=e.Class,f=h.ElementResizeHandle,m=h.ResizingUtils,g=m.calculatePercentageRatio,v=m.constrain,_=m.inPercentages,b=m.inPixels,w=m.toPercentages,k=m.toPixels,y=e._outerWidth,x=e._outerHeight,C=h.RangeUtils,S=\".kendoEditorElementResizing\",T=\"k-element-resize-handle-wrapper\",D=\"k-table\",I=\"k-element-resizing\",A=\"dragStart\",E=\"drag\",R=\"dragEnd\",M=\"keydown\",F=\"mousedown\",P=\"mouseover\",z=\"mouseout\",B=\"select\",L=\"drop\",H=\"td\",O=\"tr\",N=\"tbody\",V=\"thead\",W=\"table\",U=\"img\",j=[\"TABLE\",\"IMG\"],G=\",\",q=\"width\",$=\"height\",K=\"east\",Y=\"north\",Q=\"northeast\",X=\"northwest\",Z=\"south\",J=\"southeast\",ee=\"southwest\",te=\"west\",ne=\".\",ie=p.extend({init:function(e,t){var n=this;n.options=d({},n.options,t),n.handles=[],j.indexOf(e.nodeName)>=0&&(n.element=e)},destroy:function(){var e=this;s(e.element).off(S),e.element=null,s(e.options.rootElement).off(M+S),e._destroyResizeHandles()},options:{appendHandlesTo:null,rtl:!1,rootElement:null,minWidth:10,minHeight:10,handles:[{direction:X},{direction:Y},{direction:Q},{direction:K},{direction:J},{direction:Z},{direction:ee},{direction:te}]},resize:function(e){var t=this,n=d({},{deltaX:0,deltaY:0,initialDeltaX:0,initialDeltaY:0},e);t._resizeWidth(n.deltaX,n.initialDeltaX),t._resizeHeight(n.deltaY,n.initialDeltaY),t.showResizeHandles()},_resizeWidth:function(){return!1},_resizeHeight:function(){return!1},_getMaxDimensionValue:function(t){var n=this,i=s(n.element),o=t.toLowerCase(),r=n.options.rtl?-1:1,a=s(n.element).parent(),l=a[0],d=a[o](),c=r*(t===q?e.scrollLeft(a):a.scrollTop());return l&&l===i.closest(H)[0]?\"\"!==l.style[o]||_(n.element.style[o])?d+c:1/0:d+c},showResizeHandles:function(){var e=this;e._initResizeHandles(),e._showResizeHandles()},_initResizeHandles:function(){var e,t=this,n=t.handles,i=t.options,o=t.options.handles,r=o.length;if(!(n&&n.length>0)){for(e=0;ef?(o=a(d,f),l=r(d,f)):(o=r(d,f),l=a(d,f)),i=w(g(o,l))):i=k(d),c._setColumnsWidth(),u[0].style[q]=i)},_resizeHeight:function(e,t){var i,o,l,d,c=this,u=s(c.element),h=u[0].style[$],p=x(u),f=u.parent(),m=f.height(),b=c._getMaxDimensionValue($),y=c.options.minHeight,C=c._hasRowsInPixels();0!==e&&(n(c._initialElementHeight)&&(c._initialElementHeight=p),d=v({value:c._initialElementHeight+t,min:y,max:b}),C&&e<0&&c._setRowsHeightInPercentages(),_(h)?(p+e>m?(o=a(d,m),l=r(d,m)):(o=r(d,m),l=a(d,m)),i=w(g(o,l))):i=k(d),u[0].style[$]=i,C&&e<0&&c._setRowsHeightInPixels())},_setColumnsWidth:function(){function e(e){var t=e.style.width;return\"\"!==t?!!_(t):!!s(e).hasClass(D)}var t,n=this,i=s(n.element),o=i.parent()[0],r=i.closest(H),a=r.closest(O).children(),l=a.length;if(e(i[0])&&o===r[0]&&\"\"===o.style[q])for(t=0;t0?n.height():0,o=s(t.element).children(N),r=o.height(),a=s(t.element).children(V+G+N).children(O),l=a.length,d=a.map(function(){return x(s(this))});for(e=0;e1&&e.elementResizing._destroyResizeHandles()}).on(L+S,function(){setTimeout(function(){var t=C.image(e.getRange());t&&(e.elementResizing._destroyResizeHandles(),e.elementResizing.element=t,e.elementResizing.showResizeHandles())})}).on(F+S,W+G+U,function(n){var i=n.target,o=n.currentTarget,r=e.elementResizing,a=r?r.element:null;if(r){if(a&&o!==a){if(l(o,a)&&a!==i&&l(a,i))return;a!==i&&(e._destroyElementResizing(),t._initResizing(e,o))}}else t._initResizing(e,o);e._showElementResizeHandles()}).on(F+S,function(t){var n=e.elementResizing,i=n?n.element:null,o=t.target,r=s(o).hasClass(T)||s(o).parents(ne+T).length>0;!n||i===o||l(i,o)||r||e._destroyElementResizing()})},dispose:function(e){\ns(e.body).off(S)},_initResizing:function(t,n){u.msie||(s(n).is(W)?t.elementResizing=t.tableResizing=new oe(n,{appendHandlesTo:t.body,rtl:e.support.isRtl(t.element),rootElement:t.body}):s(n).is(U)&&(t.elementResizing=new re(n,{appendHandlesTo:t.body,rtl:e.support.isRtl(t.element),rootElement:t.body})),t._showElementResizeHandlesProxy&&(t.unbind(B,t._showElementResizeHandlesProxy),t.bind(B,t._showElementResizeHandlesProxy)))}});ae.current=new ae,d(h,{TableResizing:oe,ImageResizing:re,ElementResizing:ie,ElementResizingFactory:ae})}(window.kendo)},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/table-wizard/table-wizard-command.min\",[\"editor/plugins/tables.min\"],e)}(function(){!function(e,t){var n=window.kendo,i=n.ui.editor,o=i.EditorUtils,r=i.RangeUtils,a=i.Dom,s=o.registerTool,l=i.ToolTemplate,d=i.Command,c=new i.BlockFormatFinder([{tags:[\"table\"]}]),u=new i.BlockFormatFinder([{tags:[\"td\",\"th\"]}]),h=/([a-z]+|%)$/i,p=\"col\",f=\"row\",m=\"colgroup\",g=\"scope\",v=\"col-index\",_=\"th\",b=\"td\",w=\"thead\",k=\"headers\",y=\"table\",x=d.extend({exec:function(){var o=this,r=o.editor,a=o.range=o.lockRange(),s=o._sourceTable=o.options.insertNewTable?t:o._selectedTable(a),l=o._selectedTableCells=s?o._selectedCells(a):t,d={visible:!1,messages:r.options.messages,closeCallback:e.proxy(o.onDialogClose,o),table:o.parseTable(s,l),dialogOptions:r.options.dialogOptions,isRtl:n.support.isRtl(r.wrapper)},c=new i.TableWizardDialog(d);c.open()},onDialogClose:function(e){var t=this;t.releaseRange(t.range),e&&(t.options.insertNewTable?t.insertTable(t.createNewTable(e)):t.updateTable(e,t._sourceTable,t._selectedTableCells))},releaseRange:function(e){var t=this,n=t.editor.document;a.windowFromDocument(n).focus(),d.fn.releaseRange.call(t,e)},insertTable:function(e){var t=this.range;t.insertNode(e),t.collapse(!0),this.editor.selectRange(t),this._ensureFocusableAfterTable(e)},_ensureFocusableAfterTable:function(t){for(var n=e(t).parent().contents(),i=n.length-1,o=n.get(i);null!==o.nodeValue&&(\" \"===o.nodeValue||\"\"===o.nodeValue);)i-=1,o=n.get(i);o===t&&a.insertAfter(a.createEmptyNode(this.editor.document,\"p\"),t)},updateTable:function(t,n,i){for(var o,r,s=this,l=e(n.rows).toArray(),d=t.tableProperties,c=d.rows,u=n.tHead,h=s._lastInCollection;i.length>1;)i.pop();o=i.length?h(i).parentNode:h(l),s._deleteTableRows(l,l.length-c),l.length-1};return i.each(function(e,t){t.id&&a.is(t,_)&&o.push(t.id)}),n=i.filter(function(e,t){var n,i=t.getAttribute(k);return!!(i&&!a.is(t,_)&&(n=i.split(\" \"),n&&n.length>0))&&n.some(r)}),!!n.length},_insertCells:function(e,t,n){n=isNaN(n)?-1:n;for(var i,o=0;o0&&(t=s.createTHead(),i._createTableRows(e,t,l,!0),l+=r.headerRows),n=s.createTBody(),i._createTableRows(e,n,l,!1),a.reMapTableColumns(s,v),\"ids\"===r.cellsWithHeaders?a.associateWithIds(s):\"scope\"===r.cellsWithHeaders&&i._addScopes(s,r.headerRows,r.headerColumns),a.clearTableMappings(s,v),s},_createTableRows:function(e,t,n,i){var o,r,a,s,l=this,d=e.tableProperties,c=e.cellProperties,u=d.columns,h=i?d.headerRows:d.rows,p=c.selectAllCells,f=d.headerColumns;for(o=n;oa?document.createElement(_):document.createElement(b),r.appendChild(s),s.innerHTML=\" \",0===o&&0===a&&c.id&&(s.id=c.id),l._updateCellProperties(s,p||0===o&&0===a?c:{})},_addRows:function(t,n,i){for(var o,r=this,a=e(t).index(),s=t.cells.length,l=n-i.length,d=t.parentNode;l;)o=d.insertRow(a+1),r._insertCells(s-o.cells.length,o),l--},_updateColumns:function(t,n,i,o){var r,a=this,s=a._lastInCollection,l=s(t[0].cells),d=+l.getAttribute(v)+l.colSpan;d>n&&e(t).each(function(e,t){for(var i=s(t.cells),o=+i.getAttribute(v)+i.colSpan;o>n;)i.colSpan&&i.colSpan>1?i.colSpan-=1:t.deleteCell(-1),i=s(t.cells),o=+i.getAttribute(v)+i.colSpan}),do.getAttribute(v))?a.changeTag(o,_,!1):l._isHeadingCell(o)&&r>=d.headerRows&&d.headerColumns<=o.getAttribute(v)&&a.changeTag(o,b,!1)},_updateHeadersWithThead:function(e,t){var n,i,o,r=this,s=t.tableProperties,l=e.tHead,d=0,c=e.tBodies[0];if(c||(c=e.createTBody()),s.headerRows&&s.headerRows>0){for(l||(l=e.createTHead());l.rows.lengths.headerRows;)c.appendChild(l.rows[0]);r._swapToHeaderCells(l)}else if(l){for(;l.rows.length>0;)c.appendChild(l.rows[l.rows.length-1]);e.deleteTHead()}for(;c.rows.length>d;){for(n=c.rows[d],o=0;oi.getAttribute(v)&&a.changeTag(i,_,!1);d+=1}},_updateHeaderAssociates:function(e,t){var n=this;\"ids\"===t.cellsWithHeaders?(n.cellsWithHeadersAssociated(e)||n._removeScopes(e),a.associateWithIds(e)):\"scope\"===t.cellsWithHeaders?(n.cellsWithHeadersAssociated(e)&&n._removeAssociates(e),n._addScopes(e,t.headerRows,t.headerColumns)):n.cellsWithHeadersAssociated(e)?n._removeAssociates(e):n._removeScopes(e)},_addScopes:function(e,t,n){var i,o,r,a,s=e.rows;for(i=0;i0?\"scope\":\"none\",a.reMapTableColumns(n,v),m=a._getNumberOfColumns(n),g=a._getNumberOfHeaderColumns(n,p),a.clearTableMappings(n,v),_={tableProperties:{width:r.width||n.width?parseFloat(r.width||n.width):null,height:r.height||n.height?parseFloat(r.height||n.height):null,columns:m,rows:s.length,widthUnit:o._getUnit(r.width),heightUnit:o._getUnit(r.height),cellSpacing:n.cellSpacing,cellPadding:n.cellPadding,alignment:u.textAlign,bgColor:r.backgroundColor||n.bgColor,className:c,id:n.id,borderWidth:r.borderWidth||n.border,borderColor:r.borderColor,borderStyle:r.borderStyle||\"\",collapseBorders:!!r.borderCollapse,summary:n.summary,captionContent:l?d.html():\"\",captionAlignment:l&&h.textAlign?h.textAlign+\" \"+h.verticalAlign:\"\",headerRows:p,headerColumns:g,cellsWithHeaders:f},selectedCells:[]},_.rows=o.parseTableRows(s,i,_),_):{tableProperties:{},selectedCells:[]}},parseTableRows:function(t,n,i){var o,r,a,s,l,d,c,u=this,h=[];for(d=0;d\")})}function i(e){var t=e.children(\".k-item\");t.filter(\".k-first:not(:first-child)\").removeClass(E),t.filter(\".k-last:not(:last-child)\").removeClass(S),t.filter(\":first-child\").addClass(E),t.filter(\":last-child\").addClass(S)}function o(e,t){return\"\"}var r=window.kendo,a=r.ui,s=r.keys,l=e.map,d=e.each,c=r.trim,u=e.extend,h=r.isFunction,p=r.template,f=r._outerWidth,m=r._outerHeight,g=a.Widget,v=/^(a|div)$/i,_=\".kendoTabStrip\",b=\"img\",w=\"href\",k=\"prev\",y=\"next\",x=\"show\",C=\"k-link\",S=\"k-last\",T=\"click\",D=\"error\",I=\":empty\",A=\"k-image\",E=\"k-first\",R=\"select\",M=\"activate\",F=\"k-tabstrip-content k-content\",P=\"contentUrl\",z=\"mouseenter\",B=\"mouseleave\",L=\"contentLoad\",H=\"k-state-disabled\",O=\"k-state-default\",N=\"k-state-active\",V=\"k-state-focused\",W=\"k-state-hover\",U=\"k-tab-on-top\",j=\".k-item:not(.\"+H+\")\",G=\".k-item\",q=\".k-tabstrip-items > \"+j+\":not(.\"+N+\")\",$=200,K={content:p(\"
    #= content(item) #
    \"),itemWrapper:p(\"<#= tag(item) # class='k-link' #= contentUrl(item) # #= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #\"),item:p(\"\"),image:p(\"\"),sprite:p(\"\"),empty:p(\"\")},Y={wrapperCssClass:function(e,t){var n=[\"k-tabstrip-item\",\"k-item\"],i=t.index;return n.push(t.enabled===!1?\"k-state-disabled\":\"k-state-default\"),0===i&&n.push(\"k-first\"),i==e.length-1&&n.push(\"k-last\"),n.join(\" \")},textAttributes:function(e){return e.url?\" href='\"+e.url+\"'\":\"\"},text:function(e){return e.encoded===!1?e.text:r.htmlEncode(e.text)},tag:function(e){return e.url?\"a\":\"span\"},contentAttributes:function(e){return e.active!==!0?\" style='display:none' aria-hidden='true' aria-expanded='false'\":\"\"},content:function(e){return e.content?e.content:e.contentUrl?\"\":\" \"},contentUrl:function(e){return e.contentUrl?r.attr(\"content-url\")+'=\"'+e.contentUrl+'\"':\"\"}},Q=g.extend({init:function(e,t){var n,i=this;g.fn.init.call(i,e,t),i._animations(i.options),t=i.options,i._contentUrls=t.contentUrls||[],i._wrapper(),i._isRtl=r.support.isRtl(i.wrapper),i._tabindex(),i._updateClasses(),i._dataSource(),i.tabGroup.attr(\"role\",\"none\"),i.wrapper.attr(\"role\",\"tablist\"),t.dataSource&&i.dataSource.fetch(),i._tabPosition(),i._scrollable(),i._processContentUrls(),i._attachEvents(),i.options.value&&(n=i.options.value),i._initialActivate(),i.value(n),r.notify(i)},events:[R,M,x,D,L,\"change\",\"dataBinding\",\"dataBound\"],options:{name:\"TabStrip\",dataEncodedField:\"\",dataTextField:\"\",dataContentField:\"\",dataImageUrlField:\"\",dataUrlField:\"\",dataSpriteCssClass:\"\",dataContentUrlField:\"\",tabPosition:\"top\",animation:{open:{effects:\"expand:vertical fadeIn\",duration:200},close:{duration:200}},collapsible:!1,navigatable:!0,contentUrls:!1,scrollable:{distance:$}},setDataSource:function(e){var t=this;t.options.dataSource=e,t._dataSource(),t.dataSource.fetch()},setOptions:function(e){var t=this,n=t.options.animation;t._animations(e),e.contentUrls&&(t._contentUrls=e.contentUrls),e.animation=u(!0,n,e.animation),e.navigatable?t.wrapper.on(\"keydown\"+_,t._keyDownProxy):t.wrapper.off(\"keydown\"+_,t._keyDownProxy),g.fn.setOptions.call(t,e)},activateTab:function(e){var t,n,i,o,a,s,l,d,c,h,p,f,g,v,_,b;if(!this.tabGroup.children(\"[data-animating]\").length)return e=this.tabGroup.find(e),t=this,n=t.options.animation,i=n.open,o=u({},n.close),a=o&&\"effects\"in o,s=e.parent().children(),l=s.filter(\".\"+N),d=s.index(e),c=i&&\"duration\"in i&&\"effects\"in i,o=u(a?o:u({reverse:!0},i),{hide:!0}),r.size(i.effects)?(l.kendoRemoveClass(N,{duration:o.duration}),e.kendoRemoveClass(W,{duration:o.duration})):(l.removeClass(N),e.removeClass(W)),h=t.contentAnimators,t.inRequest&&(t.xhr.abort(),t.inRequest=!1),0===h.length?(t.tabGroup.find(\".\"+U).removeClass(U),e.addClass(U).css(\"z-index\"),e.addClass(N),t._current(e),t.trigger(\"change\"),t._scrollableModeActive&&t._scrollTabsToItem(e),!1):(p=h.filter(\".\"+N),f=t.contentHolder(d),g=f.closest(\".k-content\"),t.tabsHeight=m(t.tabGroup)+parseInt(t.wrapper.css(\"border-top-width\"),10)+parseInt(t.wrapper.css(\"border-bottom-width\"),10),0===f.length?(p.removeClass(N).attr(\"aria-hidden\",!0).kendoStop(!0,!0).kendoAnimate(o),!1):(e.attr(\"data-animating\",!0),v=(e.children(\".\"+C).data(P)||t._contentUrls[d]||!1)&&f.is(I),_=function(){l.removeAttr(\"aria-selected\"),e.attr(\"aria-selected\",!0),t._current(e),g.addClass(N).removeAttr(\"aria-hidden\").kendoStop(!0,!0).attr(\"aria-expanded\",!0).kendoAnimate(u({init:function(){t.trigger(x,{item:e[0],contentElement:f[0]}),r.resize(f)}},i,{complete:function(){e.removeAttr(\"data-animating\"),t.trigger(M,{item:e[0],contentElement:f[0]}),r.resize(f),c&&(r.support.browser.msie||r.support.browser.edge)&&f.finish().animate({opacity:.9},\"fast\",\"linear\",function(){f.finish().animate({opacity:1},\"fast\",\"linear\")})}}))},b=function(){v?(e.removeAttr(\"data-animating\"),t.ajaxRequest(e,f,function(){e.attr(\"data-animating\",!0),_(),t.trigger(\"change\")})):(_(),t.trigger(\"change\")),t._scrollableModeActive&&t._scrollTabsToItem(e)},p.removeClass(N),t.tabGroup.find(\".\"+U).removeClass(U),e.addClass(U).css(\"z-index\"),r.size(i.effects)?(l.kendoAddClass(O,{duration:i.duration}),e.kendoAddClass(N,{duration:i.duration})):(l.addClass(O),e.addClass(N)),p.attr(\"aria-hidden\",!0),p.attr(\"aria-expanded\",!1),p.length?p.kendoStop(!0,!0).kendoAnimate(u({complete:b},o)):b(),!0))},ajaxRequest:function(t,n,i,o){var a,s,l,d,c,u,p,f,m,g;t=this.tabGroup.find(t),a=this,s=e.ajaxSettings.xhr,l=t.find(\".\"+C),d={},c=t.width()/2,u=!1,p=t.find(\".k-loading\").removeClass(\"k-complete\"),p[0]||(p=e(\"\").prependTo(t)),f=2*c-p.width(),m=function(){p.animate({marginLeft:(parseInt(p.css(\"marginLeft\"),10)||0) \"+j,e.proxy(t._itemClick,t))},_click:function(e){var t,n,i=this,o=e.find(\".\"+C),r=o.attr(w),a=i.options.collapsible,s=e.index(),l=i.contentHolder(s),d=e.parent().children(),c=d.filter(\".\"+V);if(e.closest(\".k-widget\")[0]==i.wrapper[0]){if(e.is(\".\"+H+(a?\"\":\",.\"+N)))return c.removeClass(V),i._focused=e,e.addClass(V),i._current(e),i._scrollableModeActive&&i._scrollTabsToItem(e),!0;if(n=o.data(P)||i._contentUrls[s]||r&&(\"#\"==r.charAt(r.length-1)||r.indexOf(\"#\"+i.element[0].id+\"-\")!=-1),t=!r||n,i.tabGroup.children(\"[data-animating]\").length)return t;if(i.trigger(R,{item:e[0],contentElement:l[0]}))return!0;if(t!==!1)return a&&e.is(\".\"+N)?(i.deactivateTab(e),!0):(i.activateTab(e)&&(t=!0),t)}},_create:function(t){var i,o,a,s=this,d=!1;return t=t instanceof r.data.ObservableArray?t.toJSON():t,e.isPlainObject(t)||Array.isArray(t)?(t=Array.isArray(t)?t:[t],d=!0,i=l(t,function(n,i){return s._appendUrlItem(t[i].contentUrl||null),e(Q.renderItem({group:s.tabGroup,item:u(n,{index:i})}))}),o=l(t,function(t,n){if(\"string\"==typeof t.content||t.contentUrl)return e(Q.renderContent({item:u(t,{index:n})}))})):(i=\"string\"==typeof t&&\"<\"!=t[0]?s.element.find(t):e(t),o=e(),i.each(function(){if(/k-tabstrip-items/.test(this.parentNode.className)){var t=s.element.find(\"[id='\"+this.getAttribute(\"aria-controls\")+\"']\");a=t}else a=e(\"
    \");o=o.add(a)}),n(i)),{tabs:i,contents:o,newTabsCreated:d}},_current:function(e){var n=this,i=n._focused;return e===t?i:(i&&i.removeClass(V),e&&(e.hasClass(N)||e.addClass(V),e[0].id&&n.element.attr(\"aria-activedescendant\",e[0].id)),n._focused=e,t)},_dataSource:function(){var t=this;t.dataSource&&t._refreshHandler?t.dataSource.unbind(\"change\",t._refreshHandler):t._refreshHandler=e.proxy(t.refresh,t),t.dataSource=r.data.DataSource.create(t.options.dataSource).bind(\"change\",t._refreshHandler)},_elementId:function(e,t,n){var i,o=e.attr(\"id\"),a=this.element.attr(\"id\"),s=r.guid();return!o||o.indexOf(a+\"-\")>-1?(i=(a||s)+\"-\",n&&(i+=\"tab-\"),i+(t+1)):o},_endItem:function(e){return this.tabGroup.children(j)[e]()},_getItem:function(e){return this.tabGroup.children(G)[e]()},_initialActivate:function(){var e=this,t=e.tabGroup.children(\"li.\"+N),n=e.contentHolder(t.index());t[0]&&n.length>0&&0===n[0].childNodes.length&&e.activateTab(t.eq(0))},_item:function(e,t){var n;return n=t===k?\"last\":\"first\",e?(e=e[t](),e[0]||(e=this.tabGroup.children(G)[n]()),e.hasClass(H)&&e.addClass(V),(e.hasClass(H)||e.hasClass(N))&&(this._focused=e),e):this._endItem(n)},_itemClick:function(t){var n,i=this,o=i.wrapper[0];if(o!==document.activeElement)if(n=r.support.browser.msie)try{o.setActive()}catch(a){o.focus()}else o.focus();i._click(e(t.currentTarget))&&t.preventDefault()},_keydown:function(e){var n,i=this,o=e.keyCode,r=i._current(),a=i._isRtl,l=/top|bottom/.test(i.options.tabPosition);if(e.target==e.currentTarget&&r){if(o!==s.DOWN||l)if(o!==s.UP||l)if(o===s.RIGHT&&l)n=a?k:y;else if(o===s.LEFT&&l)n=a?y:k;else if(o==s.ENTER||o==s.SPACEBAR)i._click(r),e.preventDefault();else{if(o==s.HOME)return i._click(i._getItem(\"first\")),e.preventDefault(),t;if(o==s.END)return i._click(i._getItem(\"last\")),e.preventDefault(),t}else n=k;else n=y;n&&(i._click(i._item(r,n)),e.preventDefault())}},_moveUrlItem:function(e,t){this._contentUrls.splice(t,0,this._contentUrls.splice(e,1)[0])},_processContentUrls:function(){var t=this;t._contentUrls.length?t.tabGroup.children(\".k-item\").each(function(n,i){var o=t._contentUrls[n];\"string\"==typeof o&&e(i).find(\">.\"+C).data(P,o)}):t._contentUrls.length=t.tabGroup.find(\"li.k-item\").length},_removeUrlItem:function(e){this._contentUrls.splice(e,1)},_resize:function(){this._scrollable()},_scrollable:function(){var e,t,n,i,a,s,l,d,c=this,u=c.options;c._scrollableAllowed()&&(c.wrapper.addClass(\"k-tabstrip-scrollable\"),e=c.wrapper[0].offsetWidth,t=c.tabGroup[0].scrollWidth,t>e&&!c._scrollableModeActive?(c._nowScrollingTabs=!1,c._isRtl=r.support.isRtl(c.element),a=r.support.touch?\"touchstart\":\"mousedown\",s=r.support.touch?\"touchend\":\"mouseup\",l=r.support.browser,d=c._isRtl&&!l.msie&&!l.edge,c.tabWrapper.prepend(o(\"prev\",\"k-i-arrow-60-left\")),c.tabWrapper.append(o(\"next\",\"k-i-arrow-60-right\")),n=c._scrollPrevButton=c.tabWrapper.children(\".k-tabstrip-prev\"),i=c._scrollNextButton=c.tabWrapper.children(\".k-tabstrip-next\"),n.on(a+_,function(){c._nowScrollingTabs=!0,c._scrollTabsByDelta(u.scrollable.distance*(d?1:-1))}),i.on(a+_,function(){c._nowScrollingTabs=!0,c._scrollTabsByDelta(u.scrollable.distance*(d?-1:1))}),n.add(i).on(s+_,function(){c._nowScrollingTabs=!1}),c._scrollableModeActive=!0,c._toggleScrollButtons()):c._scrollableModeActive&&t<=e?(c._scrollableModeActive=!1,c.wrapper.removeClass(\"k-tabstrip-scrollable\"),c._scrollPrevButton.off().remove(),c._scrollNextButton.off().remove()):c._scrollableModeActive?c._toggleScrollButtons():c.wrapper.removeClass(\"k-tabstrip-scrollable\"))},_scrollableAllowed:function(){var e=this.options;return e.scrollable&&!e.scrollable.distance&&(e.scrollable={distance:$}),e.scrollable&&!isNaN(e.scrollable.distance)&&(\"top\"==e.tabPosition||\"bottom\"==e.tabPosition)},_scrollTabsToItem:function(e){var t,n=this,i=n.tabGroup,o=r.scrollLeft(i),a=f(e),s=n._isRtl?e.position().left:e.position().left-i.children().first().position().left,l=i[0].offsetWidth,d=r.support.browser;n._isRtl&&(d.mozilla||d.webkit&&d.version>=85)&&(o*=-1),n._isRtl?s<0?t=o+s-(l-o):s+a>l&&(t=o+s-a):o+ls&&(t=s),i.finish().animate({scrollLeft:t},\"fast\",\"linear\",function(){n._toggleScrollButtons()})},_scrollTabsByDelta:function(e){var t=this,n=t.tabGroup,i=r.scrollLeft(n),o=r.support.browser;t._isRtl&&(o.mozilla||o.webkit&&o.version>=85)&&(i*=-1),n.finish().animate({scrollLeft:i+e},\"fast\",\"linear\",function(){t._nowScrollingTabs&&!jQuery.fx.off?t._scrollTabsByDelta(e):t._toggleScrollButtons()})},_tabPosition:function(){var e=this,t=e.options.tabPosition;e.wrapper.addClass(\"k-floatwrap k-tabstrip-\"+t),\"bottom\"==t&&e.tabWrapper.appendTo(e.wrapper),\"left\"!==t&&\"right\"!==t||e.wrapper.attr(\"aria-orientation\",\"vertical\"),e.resize(!0)},_toggleHover:function(t){e(t.currentTarget).toggleClass(W,t.type==z)},_toggleDisabled:function(t,n){t=this.tabGroup.find(t),t.each(function(){e(this).toggleClass(O,n).toggleClass(H,!n).attr(\"aria-disabled\",!n)})},_toggleScrollButtons:function(){var e=this,t=e.tabGroup,n=r.scrollLeft(t);e._scrollPrevButton.toggleClass(\"k-disabled\",0===n),e._scrollNextButton.toggleClass(\"k-disabled\",n===t[0].scrollWidth-t[0].offsetWidth)},_updateClasses:function(){var o,r,a,s=this,l=/top|bottom/.test(s.options.tabPosition);s.wrapper.addClass(\"k-widget k-tabstrip\"),s.tabGroup||(s.tabGroup=s.wrapper.children(\"ul\"),s.tabGroup.wrap(\"
    \"),s.tabWrapper=s.tabGroup.parent()),s.tabGroup[0]||(s.tabGroup=e(\"
      \").prependTo(s.wrapper),s.tabGroup.wrap(\"
      \"),s.tabWrapper=s.tabGroup.parent()),s.tabWrapper.addClass(\"k-tabstrip-items-wrapper\"),s.tabWrapper.addClass(l?\"k-hstack\":\"k-vstack\"),s.tabGroup.addClass(\"k-tabstrip-items k-reset\"),o=s.tabGroup.find(\"li\").addClass(\"k-tabstrip-item k-item\"),o.length&&(r=o.filter(\".\"+N).index(),\na=r>=0?r:t,s.tabGroup.contents().filter(function(){return 3==this.nodeType&&!c(this.nodeValue)}).remove()),r>=0&&o.eq(r).addClass(U),s.contentElements=s.wrapper.children(\"div:not(.k-tabstrip-items-wrapper)\"),s.contentElements.addClass(F).eq(a).addClass(N).css({display:\"block\"}),o.length&&(n(o),i(s.tabGroup),s._updateContentElements(!0))},_updateContentElements:function(t){var n=this,i=n._contentUrls,o=n.tabGroup.children(\".k-item\"),a=n.wrapper.children(\"div:not(.k-tabstrip-items-wrapper)\"),s=n._elementId.bind(n);a.length&&o.length>a.length?a.each(function(n){var i,r=s(e(this),n),a=o.filter(\"[aria-controls=\"+(r||0)+\"]\")[0];!a&&t&&(a=o[n]),a&&(a.setAttribute(\"aria-controls\",r),i=a.id=s(e(a),n,!0),this.setAttribute(\"aria-labelledby\",i)),this.setAttribute(\"id\",r)}):o.each(function(t){var o,r=a.eq(t),l=s(r,t);this.setAttribute(\"aria-controls\",l),o=this.id=s(e(this),t,!0),!r.length&&i[t]?e(\"
      \").appendTo(n.wrapper).attr(\"id\",l):(r.attr(\"id\",l),e(this).children(\".k-loading\")[0]||i[t]||e(\"\").prependTo(this)),r.attr(\"role\",\"tabpanel\"),r.attr(\"tabindex\",\"0\"),r.attr(\"aria-labelledby\",o),r.filter(\":not(.\"+N+\")\").attr(\"aria-hidden\",!0).attr(\"aria-expanded\",!1),r.filter(\".\"+N).attr(\"aria-expanded\",!0)}),n.contentElements=n.contentAnimators=n.wrapper.children(\"div:not(.k-tabstrip-items-wrapper)\"),n.tabsHeight=m(n.tabGroup)+parseInt(n.wrapper.css(\"border-top-width\"),10)+parseInt(n.wrapper.css(\"border-bottom-width\"),10),r.kineticScrollNeeded&&r.mobile.ui.Scroller&&(r.touchScroller(n.contentElements),n.contentElements=n.contentElements.children(\".km-scroll-container\"))},_wrapper:function(){var e=this;e.wrapper=e.element.is(\"ul\")?e.element.wrapAll(\"
      \").parent():e.element}});u(Q,{renderItem:function(e){e=u({tabStrip:{},group:{}},e);var t=K.empty,n=e.item;return K.item(u(e,{image:n.imageUrl?K.image:t,sprite:n.spriteCssClass?K.sprite:t,itemWrapper:K.itemWrapper},Y))},renderContent:function(e){return K.content(u(e,Y))}}),r.ui.plugin(Q)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"editor/table-wizard/table-wizard-dialog.min\",[\"editor/table-wizard/table-wizard-command.min\",\"kendo.tabstrip.min\"],e)}(function(){!function(e,t){var n=window.kendo,i={format:\"0\",min:0},o=[\"px\",\"em\"],r=[\"solid\",\"dotted\",\"dashed\",\"double\",\"groove\",\"ridge\",\"inset\",\"outset\",\"initial\",\"inherit\",\"none\",\"hidden\"],a=4,s={dataSource:[{className:\"k-icon k-i-table-align-middle-left\",value:\"left\"},{className:\"k-icon k-i-table-align-middle-center\",value:\"center\"},{className:\"k-icon k-i-table-align-middle-right\",value:\"right\"},{className:\"k-icon k-i-align-remove\",value:\"\"}],dataTextField:\"className\",dataValueField:\"value\",template:\"\",valueTemplate:\"\"},l={dataSource:[{className:\"k-icon k-i-table-align-top-left\",value:\"left top\"},{className:\"k-icon k-i-table-align-top-center\",value:\"center top\"},{className:\"k-icon k-i-table-align-top-right\",value:\"right top\"},{className:\"k-icon k-i-table-align-middle-left\",value:\"left middle\"},{className:\"k-icon k-i-table-align-middle-center\",value:\"center middle\"},{className:\"k-icon k-i-table-align-middle-right\",value:\"right middle\"},{className:\"k-icon k-i-table-align-bottom-left\",value:\"left bottom\"},{className:\"k-icon k-i-table-align-bottom-center\",value:\"center bottom\"},{className:\"k-icon k-i-table-align-bottom-right\",value:\"right bottom\"},{className:\"k-icon k-i-align-remove\",value:\"\"}],dataTextField:\"className\",dataValueField:\"value\",template:\"\",valueTemplate:\"\"},d={dataSource:[{className:\"k-icon k-i-table-align-top-left\",value:\"left top\"},{className:\"k-icon k-i-table-align-top-center\",value:\"center top\"},{className:\"k-icon k-i-table-align-top-right\",value:\"right top\"},{className:\"k-icon k-i-table-align-bottom-left\",value:\"left bottom\"},{className:\"k-icon k-i-table-align-bottom-center\",value:\"center bottom\"},{className:\"k-icon k-i-table-align-bottom-right\",value:\"right bottom\"},{className:\"k-icon k-i-align-remove\",value:\"\"}],dataTextField:\"className\",dataValueField:\"value\",template:\"\",valueTemplate:\"\"},c='
      • #= messages.tableTab #
      • #= messages.cellTab #
      • #= messages.accessibilityTab #
       
       
      ',u=n.Class.extend({init:function(e){this.options=e},open:function(){function t(e){e.preventDefault(),l.destroy(),r.destroy()}function i(e){l.collectDialogValues(u),t(e),l.change&&l.change(),d.closeCallback(u)}function o(e){t(e),d.closeCallback()}var r,a,s,l=this,d=l.options,c=d.dialogOptions,u=d.table,h=d.messages,p=n.support.browser.msie;c.close=o,c.title=h.tableWizard,c.visible=d.visible,r=e(l._dialogTemplate(h)).appendTo(document.body).kendoWindow(c).closest(\".k-window\").toggleClass(\"k-rtl\",d.isRtl).end().find(\".k-dialog-ok\").on(\"click\",i).end().find(\".k-dialog-close\").on(\"click\",o).end().data(\"kendoWindow\"),a=r.element,l._initTabStripComponent(a),l._initTableViewComponents(a,u),l._initCellViewComponents(a,u),l._initAccessibilityViewComponents(a,u),r.center(),r.open(),p&&(s=a.closest(\".k-window\").height(),a.css(\"max-height\",s))},_initTabStripComponent:function(e){var t=this.components={};t.tabStrip=e.find(\"#k-table-wizard-tabs\").kendoTabStrip({animation:!1}).data(\"kendoTabStrip\")},collectDialogValues:function(){var e=this,t=e.options.table;e._collectTableViewValues(t),e._collectCellViewValues(t),e._collectAccessibilityViewValues(t)},_collectTableViewValues:function(e){var t=this.components.tableView,n=e.tableProperties;n.width=t.width.value(),n.widthUnit=t.widthUnit.value(),n.height=t.height.value(),n.columns=t.columns.value(),n.rows=t.rows.value(),n.heightUnit=t.heightUnit.value(),n.cellSpacing=t.cellSpacing.value(),n.cellPadding=t.cellPadding.value(),n.alignment=t.alignment.value(),n.bgColor=t.bgColor.value(),n.className=t.className.value,n.id=t.id.value,n.borderWidth=t.borderWidth.value(),n.borderColor=t.borderColor.value(),n.borderStyle=t.borderStyle.value(),n.collapseBorders=t.collapseBorders.checked},_collectCellViewValues:function(e){var t=e.cellProperties={},n=this.components.cellView;t.selectAllCells=n.selectAllCells.checked,t.width=n.width.value(),t.widthUnit=n.widthUnit.value(),t.height=n.height.value(),t.heightUnit=n.heightUnit.value(),t.cellMargin=n.cellMargin.value(),t.cellPadding=n.cellPadding.value(),t.alignment=n.alignment.value(),t.bgColor=n.bgColor.value(),t.className=n.className.value,t.id=n.id.value,t.borderWidth=n.borderWidth.value(),t.borderColor=n.borderColor.value(),t.borderStyle=n.borderStyle.value(),t.wrapText=n.wrapText.checked,t.width||(t.selectAllCells=!0,t.width=100/e.tableProperties.columns,t.widthUnit=\"%\")},_collectAccessibilityViewValues:function(e){var t=e.tableProperties,n=this.components.accessibilityView;t.captionContent=n.captionContent.value,t.captionAlignment=n.captionAlignment.value(),t.summary=n.summary.value,t.cellsWithHeaders=n.cellsWithHeaders.value(),t.headerRows=n.headerRows.value(),t.headerColumns=n.headerColumns.value()},_addUnit:function(t,n){n&&e.inArray(n,t)==-1&&t.push(n)},_initTableViewComponents:function(e,t){var n,i,s=this,l=s.components,d=l.tableView={},c=t.tableProperties=t.tableProperties||{};c.borderStyle=c.borderStyle||\"\",n=function(e){var t=s.components.accessibilityView,n=t.headerColumns,i=n.value(),o=e.sender.value();o\").insertAfter(t),r._label(),s.notify(r)},options:{name:\"MaskedTextBox\",clearPromptChar:!1,unmaskOnPost:!1,promptChar:\"_\",culture:\"\",rules:{},value:\"\",mask:\"\",label:null},events:[k],rules:{0:/\\d/,9:/\\d|\\s/,\"#\":/\\d|\\s|\\+|\\-/,L:/[a-zA-Z]/,\"?\":/[a-zA-Z]|\\s/,\"&\":/\\S/,C:/./,A:/[a-zA-Z0-9]/,a:/[a-zA-Z0-9]|\\s/},setOptions:function(t){var n=this;u.fn.setOptions.call(n,t),n._rules=e.extend({},n.rules,n.options.rules),n._tokenize(),this._unbindInput(),this._bindInput(),n.value(n.element.val())},destroy:function(){var e=this;e.floatingLabel&&e.floatingLabel.destroy(),e.element.off(h),e._formElement&&(e._formElement.off(\"reset\",e._resetHandler),e._formElement.off(\"submit\",e._submitHandler)),u.fn.destroy.call(e)},raw:function(){var e=this._unmask(this.element.val(),0);return e.replace(RegExp(o(this.options.promptChar),\"g\"),\"\")},value:function(e){var n=this.element,i=this._emptyMask;return e===t?this.element.val():(null===e&&(e=\"\"),i?(e=this._unmask(e+\"\"),n.val(e?i:\"\"),this._mask(0,this._maskLength,e),this._unmaskedValue=null,e=n.val(),this._oldValue=e,s._activeElement()!==n&&(e===i?n.val(\"\"):this._togglePrompt()),t):(this._oldValue=e,n.val(e),t))},_togglePrompt:function(e){var t=this.element[0],n=t.value;this.options.clearPromptChar&&(n=e?this._oldValue:n.replace(RegExp(o(this.options.promptChar),\"g\"),\" \"),t.value=this._old=n)},readonly:function(e){var n=this;this._editable({readonly:e===t||e,disable:!1}),n.floatingLabel&&n.floatingLabel.readonly(e===t||e)},enable:function(e){var n=this;this._editable({readonly:!1,disable:!(e=e===t||e)}),n.floatingLabel&&n.floatingLabel.enable(e=e===t||e)},_bindInput:function(){var e,t,i=this;i._maskLength&&(i.options.$angular&&i.element.off(T),i.element.on(n(C),f(i._keydown,i)).on(n(x),f(i._drop,i)).on(n(k),f(i._trackChange,i)).on(D,f(i._inputHandler,i)),s.support.browser.msie&&(e=s.support.browser.version,e>8&&e<11&&(t=[n(y),n(x),n(C),n(S)].join(\" \"),i.element.on(t,f(i._legacyIEInputHandler,i)))))},_unbindInput:function(){var e=[D,n(C),n(y),n(x),n(S)].join(\" \");this.element.off(e)},_editable:function(e){var t=this,n=t.element,i=t.wrapper,o=e.disable,r=e.readonly;t._unbindInput(),r||o?(n.attr(b,o).attr(w,r),i.toggleClass(v,o)):(n.prop(b,!1).prop(w,!1),i.removeClass(v),t._bindInput())},_change:function(){var e=this,t=e.value();t!==e._oldValue?(e._oldValue=t,e.trigger(k),e.element.trigger(k)):\"\"===t&&e.__changing&&e.element.trigger(k)},inputChange:function(e){var t,n,o,r,d,c=this,u=c._old,h=c.element[0],p=h.value,f=l(h),m=f[1],g=p.length-u.length,v=s.support.mobileOS;c.__dropping&&g<0||(g===-1&&v.android&&\"chrome\"===v.browser&&(e=!0),t=a(m,i(p,u)),n=p.substring(t,m),h.value=p.substring(0,t)+c._emptyMask.substring(t),o=c._mask(t,m,n),r=c._trimStartPromptChars(p.substring(m),a(g,o-t)),d=c._unmask(r,u.length-r.length),c._mask(o,o,d),e&&(o=c._findCaretPosBackwards(t)),l(h,o),c.__dropping=!1)},_trimStartPromptChars:function(e,t){for(var n=this.options.promptChar;t-- >0&&0===e.indexOf(n);)e=e.substring(1);return e},_findCaretPosBackwards:function(e){var t=this._find(e,!0);return t-1||e<=this._maskLength;){if(n.charAt(e)!==this.tokens[e])return e;e+=i}return-1},_mask:function(e,n,i,o){var r,a,d,c,u=this.element[0],h=u.value||this._emptyMask,p=this.options.promptChar,f=0;for(e=this._find(e,o),e>n&&(n=e),a=this._unmask(h.substring(n),n),i=this._unmask(i,e),r=i.length,i&&(a=a.replace(RegExp(\"^_{0,\"+r+\"}\"),\"\")),i+=a,h=h.split(\"\"),d=i.charAt(f);er&&(c=e),e=this._find(e+1);return u.value=this._old=h.join(\"\"),s._activeElement()===u&&(c===t&&(c=this._maskLength),l(u,c)),c},_unmask:function(e,t){var n,i,o,r,a,l,d,c;if(!e)return\"\";if(this._unmaskedValue===e)return this._unmaskedValue;for(e=(e+\"\").split(\"\"),o=0,r=t||0,a=this.options.promptChar,l=e.length,d=this.tokens.length,c=\"\";r=l)););return this._unmaskedValue=c,c},_label:function(){var t,n,i=this,o=i.element,r=i.options,a=o.attr(\"id\");null!==r.label&&(t=!!p(r.label)&&r.label.floating,n=p(r.label)?r.label.content:r.label,t&&(i._floatingLabelContainer=i.wrapper.wrap(\"\").parent(),i.floatingLabel=new s.ui.FloatingLabel(i._floatingLabelContainer,{widget:i})),s.isFunction(n)&&(n=n.call(i)),n||(n=\"\"),a||(a=r.name+\"_\"+s.guid(),o.attr(\"id\",a)),i._inputLabel=e(\"'\").insertBefore(i.wrapper))},_wrapper:function(){var e=this,t=e.element,n=t[0],i=t.wrap(\"\").parent();i[0].style.cssText=n.style.cssText,n.style.width=\"100%\",e.wrapper=i.addClass(n.className).removeClass(\"input-validation-error\")},_blinkInvalidState:function(){var e=this;e._addInvalidState(),clearTimeout(e._invalidStateTimeout),e._invalidStateTimeout=m(f(e._removeInvalidState,e),100)},_addInvalidState:function(){var e=this;e.wrapper.addClass(_),e._validationIcon.removeClass(\"k-hidden\")},_removeInvalidState:function(){var e=this;e.wrapper.removeClass(_),e._validationIcon.addClass(\"k-hidden\"),e._invalidStateTimeout=null},_tokenize:function(){for(var e,t,n,i,o=[],r=0,a=this.options.mask||\"\",l=a.split(\"\"),d=l.length,c=0,u=\"\",h=this.options.promptChar,p=s.getCulture(this.options.culture).numberFormat,f=this._rules;c
      ').parent().wrap('
      ').parent()}function o(t){e(t.target).closest(\"a.k-button\").length&&t.preventDefault()}function r(t,n){var i=\"next\"===n?e.fn.next:e.fn.prev,o=\"next\"===n?e.fn.first:e.fn.last,a=i.call(t);return!a.length&&t.is(\".\"+oe)?t:a.is(\":kendoFocusable\")||!a.length?a:a.find(\":kendoFocusable\").length?o.call(a.find(\":kendoFocusable\")):r(a,n)}var a,s,l,d,c,u,h,p,f,m,g,v,_,b,w,k,y,x=window.kendo,C=x.Class,S=x.ui.Widget,T=e.proxy,D=x.isFunction,I=x.keys,A=x._outerWidth,E=\".kendoToolBar\",R=\"k-toolbar\",M=\"k-button\",F=\"k-overflow-button\",P=\"k-toggle-button\",z=\"k-button-group\",B=\"k-split-button\",L=\"k-separator\",H=\"k-spacer\",O=\"spacer\",N=\"k-popup\",V=\"k-toolbar-resizable\",W=\"k-state-active\",U=\"k-state-disabled\",j=\"k-state-hidden\",G=\"k-hidden\",q=\"k-group-start\",$=\"k-group-end\",K=\"k-primary\",Y=\"role\",Q=\"aria-disabled\",X=\"aria-pressed\",Z=\"k-icon\",J=\"k-i-\",ee=\"k-button-icon\",te=\"k-button-icontext\",ne=\"k-list-container k-split-container\",ie=\"k-split-button-arrow\",oe=\"k-overflow-anchor\",re=\"k-overflow-container\",ae=\"k-toolbar-first-visible\",se=\"k-toolbar-last-visible\",le=\"click\",de=\"toggle\",ce=\"open\",ue=\"close\",he=\"overflowOpen\",pe=\"overflowClose\",fe=\"never\",me=\"auto\",ge=\"always\",ve=\"k-overflow-hidden\",_e=\"_optionlist\",be=x.attr(\"uid\");x.toolbar={},a={overflowAnchor:'
      ',overflowContainer:'
        '\n},x.toolbar.registerComponent=function(e,t,n){a[e]={toolbar:t,overflow:n}},s=x.Class.extend({addOverflowAttr:function(){this.element.attr(x.attr(\"overflow\"),this.options.overflow||me)},addUidAttr:function(){this.element.attr(be,this.options.uid)},addIdAttr:function(){this.options.id&&this.element.attr(\"id\",this.options.id)},addOverflowIdAttr:function(){this.options.id&&this.element.attr(\"id\",this.options.id+\"_overflow\")},attributes:function(){this.options.attributes&&this.element.attr(this.options.attributes)},show:function(){this.element.removeClass(j),this.element.removeClass(G),this.options.hidden=!1},hide:function(){this.element.addClass(j),this.element.addClass(G),this.overflow&&this.overflowHidden&&this.overflowHidden(),this.options.hidden=!0},remove:function(){this.element.remove()},enable:function(e){e===t&&(e=!0),this.element.toggleClass(U,!e),this.element.attr(Q,!e),this.options.enable=e},twin:function(){var n=this.element.attr(be);return this.overflow&&this.options.splitContainerId?e(\"#\"+this.options.splitContainerId).find(\"[\"+be+\"='\"+n+\"']\").data(this.options.type):this.overflow?this.toolbar.element.find(\"[\"+be+\"='\"+n+\"']\").data(this.options.type):this.toolbar.options.resizable?this.toolbar.popup.element.find(\"[\"+be+\"='\"+n+\"']\").data(this.options.type):t}}),x.toolbar.Item=s,l=s.extend({init:function(n,i){var o=e(n.useButtonTag?'':'
        ');this.element=o,this.options=n,this.toolbar=i,this.attributes(),n.primary&&o.addClass(K),n.togglable&&(o.addClass(P),this.toggle(n.selected)),n.url===t||n.useButtonTag||(o.attr(\"href\",n.url),n.mobile&&o.attr(x.attr(Y),\"button\")),n.group&&(o.attr(x.attr(\"group\"),n.group),this.group=this.toolbar.addToGroup(this,n.group)),!n.togglable&&n.click&&D(n.click)&&(this.clickHandler=n.click),n.togglable&&n.toggle&&D(n.toggle)&&(this.toggleHandler=n.toggle)},toggle:function(e,t){e=!!e,this.group&&e?this.group.select(this):this.group||this.select(e),t&&this.twin()&&this.twin().toggle(e)},getParentGroup:function(){if(this.options.isChild)return this.element.closest(\".\"+z).data(\"buttonGroup\")},_addGraphics:function(){var t,n,i,o=this.element,r=this.options.icon,a=this.options.spriteCssClass,s=this.options.imageUrl;(a||s||r)&&(t=!0,o.contents().filter(function(){return!e(this).hasClass(\"k-sprite\")&&!e(this).hasClass(Z)&&!e(this).hasClass(\"k-image\")}).each(function(e,n){(1==n.nodeType||3==n.nodeType&&x.trim(n.nodeValue).length>0)&&(t=!1)}),o.addClass(t?ee:te)),r?(n=o.children(\"span.\"+Z).first(),n[0]||(n=e('').prependTo(o)),n.addClass(J+r)):a?(n=o.children(\"span.k-sprite\").first(),n[0]||(n=e('').prependTo(o)),n.addClass(a)):s&&(i=o.children(\"img.k-image\").first(),i[0]||(i=e('\"icon\"').prependTo(o)),i.attr(\"src\",s))}}),x.toolbar.Button=l,d=l.extend({init:function(e,t){l.fn.init.call(this,e,t);var n=this.element;n.addClass(M),this.addIdAttr(),e.align&&n.addClass(\"k-align-\"+e.align),\"overflow\"!=e.showText&&e.text&&n.html(e.mobile?''+e.text+\"\":e.text),e.hasIcon=\"overflow\"!=e.showIcon&&(e.icon||e.spriteCssClass||e.imageUrl),e.hasIcon&&this._addGraphics(),this.addUidAttr(),this.addOverflowAttr(),this.enable(e.enable),e.hidden&&this.hide(),this.element.data({type:\"button\",button:this})},select:function(e){e===t&&(e=!1),this.options.togglable&&this.element.attr(X,e),this.element.toggleClass(W,e),this.options.selected=e}}),x.toolbar.ToolBarButton=d,c=l.extend({init:function(t,n){this.overflow=!0,l.fn.init.call(this,e.extend({},t),n);var i=this.element;\"toolbar\"!=t.showText&&t.text&&i.html(t.mobile?''+t.text+\"\":''+t.text+\"\"),t.hasIcon=\"toolbar\"!=t.showIcon&&(t.icon||t.spriteCssClass||t.imageUrl),t.hasIcon&&this._addGraphics(),t.isChild||this._wrap(),this.addOverflowIdAttr(),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.enable(t.enable),i.addClass(F+\" \"+M),t.hidden&&this.hide(),t.togglable&&this.toggle(t.selected),this.element.data({type:\"button\",button:this})},_wrap:function(){this.element=this.element.wrap(\"
      • \").parent()},overflowHidden:function(){this.element.addClass(ve)},select:function(e){e===t&&(e=!1),this.options.isChild?this.element.toggleClass(W,e):this.element.find(\".k-button\").toggleClass(W,e),this.options.selected=e}}),x.toolbar.OverflowButton=c,x.toolbar.registerComponent(\"button\",d,c),u=s.extend({createButtons:function(t){var n,i,o=this.options,r=o.buttons||[];for(i=0;i
        \");this.options=t,this.toolbar=n,this.addIdAttr(),t.align&&i.addClass(\"k-align-\"+t.align),this.createButtons(d),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.refresh(),i.addClass(z),this.element.data({type:\"buttonGroup\",buttonGroup:this})}}),x.toolbar.ToolBarButtonGroup=h,p=u.extend({init:function(t,n){var i=this.element=e(\"
      • \");this.options=t,this.toolbar=n,this.overflow=!0,this.addOverflowIdAttr(),this.createButtons(c),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.refresh(),i.addClass((t.mobile?\"\":z)+\" k-overflow-group\"),this.element.data({type:\"buttonGroup\",buttonGroup:this})},overflowHidden:function(){this.element.addClass(ve)}}),x.toolbar.OverflowButtonGroup=p,x.toolbar.registerComponent(\"buttonGroup\",h,p),f=s.extend({init:function(t,n){var i=this.element=e('
        ');this.options=t,this.toolbar=n,this.mainButton=new d(e.extend({},t,{hidden:!1}),n),this.arrowButton=e(''),this.popupElement=e('
          '),this.mainButton.element.removeAttr(\"href tabindex\").appendTo(i),this.arrowButton.appendTo(i),this.popupElement.appendTo(i),t.align&&i.addClass(\"k-align-\"+t.align),t.id||(t.id=t.uid),i.attr(\"id\",t.id+\"_wrapper\"),this.addOverflowAttr(),this.addUidAttr(),this.createMenuButtons(),this.createPopup(),this._navigatable(),this.mainButton.main=!0,this.enable(t.enable),t.hidden&&this.hide(),i.data({type:\"splitButton\",splitButton:this,kendoPopup:this.popup})},_navigatable:function(){var t=this;t.popupElement.on(\"keydown\"+E,\".\"+M,function(n){var i=e(n.target).parent();n.preventDefault(),n.keyCode===I.ESC||n.keyCode===I.TAB||n.altKey&&n.keyCode===I.UP?(t.toggle(),t.focus()):n.keyCode===I.DOWN?r(i,\"next\").trigger(\"focus\"):n.keyCode===I.UP?r(i,\"prev\").trigger(\"focus\"):n.keyCode===I.SPACEBAR||n.keyCode===I.ENTER?t.toolbar.userEvents.trigger(\"tap\",{target:e(n.target)}):n.keyCode===I.HOME?i.parent().find(\":kendoFocusable\").first().trigger(\"focus\"):n.keyCode===I.END&&i.parent().find(\":kendoFocusable\").last().trigger(\"focus\")})},createMenuButtons:function(){var t,n,i=this.options,o=i.menuButtons;for(n=0;n\").parent().appendTo(this.popupElement)},createPopup:function(){var n=this,r=this.options,a=this.element;this.popupElement.attr(\"id\",r.id+_e).attr(be,r.rootUid),r.mobile&&(this.popupElement=i(this.popupElement)),this.popup=this.popupElement.kendoPopup({appendTo:r.mobile?e(r.mobile).children(\".km-pane\"):null,anchor:a,isRtl:this.toolbar._isRtl,copyAnchorStyles:!1,animation:r.animation,open:function(e){var i=n.toolbar.trigger(ce,{target:a});return i?(e.preventDefault(),t):(n.adjustPopupWidth(e.sender),t)},activate:function(){this.element.find(\":kendoFocusable\").first().trigger(\"focus\")},close:function(e){var t=n.toolbar.trigger(ue,{target:a});t&&e.preventDefault(),a.trigger(\"focus\")}}).data(\"kendoPopup\"),this.popup.element.on(le+E,\"a.k-button\",o)},adjustPopupWidth:function(e){var t,n=e.options.anchor,i=A(n);x.wrap(e.element).addClass(\"k-split-wrapper\"),t=\"border-box\"!==e.element.css(\"box-sizing\")?i-(A(e.element)-e.element.width()):i,e.element.css({fontFamily:n.css(\"font-family\"),\"min-width\":t})},remove:function(){this.popup.element.off(le+E,\"a.k-button\"),this.popup.destroy(),this.element.remove()},toggle:function(){(this.options.enable||this.popup.visible())&&this.popup.toggle()},enable:function(e){e===t&&(e=!0),this.mainButton.enable(e),this.element.toggleClass(U,!e),this.element.attr(Q,!e),this.options.enable=e},focus:function(){this.element.trigger(\"focus\")},hide:function(){this.popup&&this.popup.close(),this.element.addClass(j),this.element.addClass(G),this.options.hidden=!0},show:function(){this.element.removeClass(j),this.element.removeClass(G),this.options.hidden=!1}}),x.toolbar.ToolBarSplitButton=f,m=s.extend({init:function(t,n){var i,o,r,a=this.element=e('
        • '),s=t.menuButtons;for(this.options=t,this.toolbar=n,this.overflow=!0,o=(t.id||t.uid)+_e,this.mainButton=new c(e.extend({isChild:!0},t)),this.mainButton.element.appendTo(a),r=0;r 
          \");this.element=i,this.options=t,this.toolbar=n,this.attributes(),this.addIdAttr(),this.addUidAttr(),this.addOverflowAttr(),i.addClass(L),i.attr(Y,\"separator\"),i.data({type:\"separator\",separator:this})}}),v=s.extend({init:function(t,n){var i=this.element=e(\"
        •  
        • \");this.element=i,this.options=t,this.toolbar=n,this.overflow=!0,this.attributes(),this.addUidAttr(),this.addOverflowIdAttr(),i.addClass(L),i.attr(Y,\"separator\"),i.data({type:\"separator\",separator:this})},overflowHidden:function(){this.element.addClass(ve)}}),x.toolbar.registerComponent(\"separator\",g,v),_=s.extend({init:function(t,n){var i=this.element=e(\"
           
          \");this.element=i,this.options=t,this.toolbar=n,i.addClass(H),i.data({type:O})}}),x.toolbar.registerComponent(O,_),b=s.extend({init:function(t,n,i){var o=D(t)?t(n):t;o=o instanceof jQuery?o.wrap(\"
          \").parent():e(\"
          \").html(o),this.element=o,this.options=n,this.options.type=\"template\",this.toolbar=i,this.attributes(),this.addUidAttr(),this.addIdAttr(),this.addOverflowAttr(),o.data({type:\"template\",template:this})}}),x.toolbar.TemplateItem=b,w=s.extend({init:function(t,n,i){var o=e(D(t)?t(n):t);o=o instanceof jQuery?o.wrap(\"
        • \").parent():e(\"
        • \").html(o),this.element=o,this.options=n,this.options.type=\"template\",this.toolbar=i,this.overflow=!0,this.attributes(),this.addUidAttr(),this.addOverflowIdAttr(),this.addOverflowAttr(),o.data({type:\"template\",template:this})},overflowHidden:function(){this.element.addClass(ve)}}),x.toolbar.OverflowTemplateItem=w,k=C.extend({init:function(e){this.name=e,this.buttons=[]},add:function(e){this.buttons[this.buttons.length]=e},remove:function(t){var n=e.inArray(t,this.buttons);this.buttons.splice(n,1)},select:function(e){var t,n;for(n=0;n'),n=i(n)):t.overflowAnchor.append(''),t.popup=new x.ui.Popup(n,{origin:\"bottom \"+s,position:\"top \"+s,anchor:t.overflowAnchor,isRtl:o,animation:t.animation,appendTo:t.isMobile?e(t.isMobile).children(\".km-pane\"):null,copyAnchorStyles:!1,open:function(n){var i=x.wrap(t.popup.element).addClass(\"k-overflow-wrapper\");t.isMobile?t.popup.container.css(\"max-height\",parseFloat(e(\".km-content:visible\").innerHeight())-15+\"px\"):i.css(\"margin-left\",(o?-1:1)*((A(i)-i.width())/2+1)),t.trigger(he)&&n.preventDefault()},activate:function(){this.element.find(\":kendoFocusable\").first().trigger(\"focus\")},close:function(e){t.trigger(pe)&&e.preventDefault(),this.element.trigger(\"focus\")}}),t.popup.element.on(\"keydown\"+E,\".\"+M,function(n){var i,o=e(n.target),a=o.parent(),s=a.is(\".\"+z)||a.is(\".\"+B);n.preventDefault(),n.keyCode===I.ESC||n.keyCode===I.TAB||n.altKey&&n.keyCode===I.UP?(t._toggleOverflow(),t.overflowAnchor.trigger(\"focus\")):n.keyCode===I.DOWN?(i=!s||s&&o.is(\":last-child\")?a:o,r(i,\"next\").trigger(\"focus\")):n.keyCode===I.UP?(i=!s||s&&o.is(\":first-child\")?a:o,r(i,\"prev\").trigger(\"focus\")):n.keyCode===I.SPACEBAR||n.keyCode===I.ENTER?(t.userEvents.trigger(\"tap\",{target:e(n.target)}),t.overflowAnchor.trigger(\"focus\")):n.keyCode===I.HOME?a.parent().find(\":kendoFocusable\").first().trigger(\"focus\"):n.keyCode===I.END&&a.parent().find(\":kendoFocusable\").last().trigger(\"focus\")}),t.popup.container=t.isMobile?t.popup.element.find(\".\"+re):t.popup.element,t.popup.container.attr(be,this.uid)},_toggleOverflowAnchor:function(){var e=!1,t=this._isRtl?\"padding-left\":\"padding-right\";e=this.options.mobile?this.popup.element.find(\".\"+re).children(\":not(.\"+ve+\", .\"+N+\")\").length>0:this.popup.element.children(\":not(.\"+ve+\", .\"+N+\")\").length>0,e?(this.overflowAnchor.css({visibility:\"visible\",width:\"\"}),this.wrapper.css(t,this.overflowAnchor.outerWidth(!0))):(this.overflowAnchor.css({visibility:\"hidden\",width:\"1px\"}),this.wrapper.css(t,\"\"))},_buttonClick:function(n){var i,o,r,a,s,l,d,c=this,u=n.target.closest(\".\"+ie).length;return n.preventDefault(),u?(c._toggle(n),t):(o=e(n.target).closest(\".\"+M,c.element),o.hasClass(oe)||(r=o.data(\"button\"),!r&&c.popup&&(o=e(n.target).closest(\".\"+F,c.popup.container),r=o.parent(\"li\").data(\"button\")),r&&r.options.enable&&(r.options.togglable?(s=D(r.toggleHandler)?r.toggleHandler:null,r.toggle(!r.options.selected,!0),l={target:o,group:r.options.group,checked:r.options.selected,id:r.options.id,item:r},s&&s.call(c,l),c.trigger(de,l)):(s=D(r.clickHandler)?r.clickHandler:null,l={sender:c,target:o,id:r.options.id,item:r},s&&s.call(c,l),c.trigger(le,l)),r.options.url&&(r.options.attributes&&r.options.attributes.target&&(d=r.options.attributes.target),window.open(r.options.url,d||\"_self\")),o.hasClass(F)&&c.popup.close(),a=o.closest(\".k-split-container\"),a[0]&&(i=a.data(\"kendoPopup\"),(i?i:a.parents(\".km-popup-wrapper\").data(\"kendoPopup\")).close()))),t)},_navigatable:function(){var t=this;t.element.attr(\"tabindex\",0).on(\"focusin\"+E,function(t){var n=e(t.target),i=e(this).find(\":kendoFocusable\").first();n.is(\".\"+R)&&0!==i.length&&(i.is(\".\"+oe)&&(i=r(i,\"next\")),i.length&&i[0].focus())}).on(\"keydown\"+E,T(t._keydown,t))},_keydown:function(n){var i,o,r,a,s,l,d,c,u,h=e(n.target),p=n.keyCode,f=this.element.children(\":not(.k-separator):visible\"),m=this._isRtl?-1:1;if(p===I.TAB&&(i=h.parentsUntil(this.element).last(),o=!1,r=!1,a=!1,f.not(\".\"+oe).length||(a=!0),i.length||(i=h),i.is(\".\"+oe)&&!a&&(s=f.last(),n.shiftKey&&n.preventDefault(),s.is(\":kendoFocusable\")?f.last().trigger(\"focus\"):f.last().find(\":kendoFocusable\").last().trigger(\"focus\")),n.shiftKey||f.index(i)!==f.length-1||(o=!i.is(\".\"+z)||h.is(\":last-child\")),l=f.index(i)===f.not(\".k-overflow-anchor\").first().index(),n.shiftKey&&l&&(r=!i.is(\".\"+z)||h.is(\":first-child\")),o&&this.overflowAnchor&&\"hidden\"!==this.overflowAnchor.css(\"visibility\")&&!a&&(n.preventDefault(),this.overflowAnchor.trigger(\"focus\")),(r||a&&n.shiftKey)&&(n.preventDefault(),d=this._getPrevFocusable(this.wrapper),d&&d.trigger(\"focus\")),this._preventNextFocus=!1),n.altKey&&p===I.DOWN)return c=e(document.activeElement).data(\"splitButton\"),u=e(document.activeElement).is(\".\"+oe),c?c.toggle():u&&this._toggleOverflow(),t;if((p===I.SPACEBAR||p===I.ENTER)&&!h.is(\"input, checkbox\"))return p===I.SPACEBAR&&n.preventDefault(),h.is(\".\"+B)?(h=h.children().first(),this.userEvents.trigger(\"tap\",{target:h})):p===I.SPACEBAR&&this.userEvents.trigger(\"tap\",{target:h}),t;if(p===I.HOME){if(h.is(\".k-dropdown\")||h.is(\"input\"))return;this.overflowAnchor?f.eq(1).trigger(\"focus\"):f.first().trigger(\"focus\"),n.preventDefault()}else if(p===I.END){if(h.is(\".k-dropdown\")||h.is(\"input\"))return;this.overflowAnchor&&\"hidden\"!=e(this.overflowAnchor).css(\"visibility\")?this.overflowAnchor.trigger(\"focus\"):f.last().trigger(\"focus\"),n.preventDefault()}else p!==I.RIGHT||this._preventNextFocus||h.is(\"input, select, .k-dropdown, .k-colorpicker\")||!this._getNextElement(n.target,1*m)?p!==I.LEFT||this._preventNextFocus||h.is(\"input, select, .k-dropdown, .k-colorpicker\")||!this._getNextElement(n.target,-1*m)||(this._getNextElement(n.target,-1*m).focus(),n.preventDefault()):(this._getNextElement(n.target,1*m).focus(),n.preventDefault())},_getNextElement:function(t,n){var i=this.element.children(\":not(.k-separator):visible\"),o=i.index(i.index(t)===-1?t.parentElement:t),r=this.overflowAnchor?1:0,a=n,s=1===n?i.length-1:r,l=1===n?r:i.length-1,d=i[o+n];if(this._preventNextFocus=!1,e(t).closest(\".\"+z).length&&!e(t).is(1===n?\":last-child\":\":first-child\"))return e(t).closest(\".\"+z).children()[e(t).closest(\".\"+z).children().index(t)+n];for(this.overflowAnchor&&t===this.overflowAnchor[0]&&n===-1&&(d=i[i.length-1]),o===s&&(d=!this.overflowAnchor||this.overflowAnchor&&\"hidden\"===e(this.overflowAnchor).css(\"visibility\")?i[l]:this.overflowAnchor);!e(d).is(\":kendoFocusable\");){if(d=n===-1&&e(d).closest(\".\"+z).length?e(d).children(\":not(label, div)\").last():e(d).children(\":not(label, div)\").first(),!d.length&&(a+=n,d=i[o+a],!d))return this.overflowAnchor;this._preventNextFocus=!e(d).closest(\".\"+z).length}return d},_getPrevFocusable:function(n){if(n.is(\"html\"))return n;var i,o,r=n.prevAll();return r.each(function(){return o=e(this),o.is(\":kendoFocusable\")?(i=o,!1):o.find(\":kendoFocusable\").length>0?(i=o.find(\":kendoFocusable\").last(),!1):t}),i?i:this._getPrevFocusable(n.parent())},_toggle:function(t){var n=e(t.target).closest(\".\"+B).data(\"splitButton\");t.preventDefault(),n.options.enable&&n.toggle()},_toggleOverflow:function(){this.popup.toggle()},_resize:function(e){var t=e.width;this.options.resizable&&(this.popup.close(),this._shrink(t),this._stretch(t),this._markVisibles(),this._toggleOverflowAnchor())},_childrenWidth:function(){var t=0;return this.element.children(\":visible:not(.\"+j+\", .\"+H+\")\").each(function(){t+=A(e(this),!0)}),Math.ceil(t)},_shrink:function(e){var t,n,i;if(e=0&&(t=n.eq(i),!(e>this._childrenWidth()));i--)this._hideItem(t)},_stretch:function(e){var t,n,i;if(e>this._childrenWidth())for(n=this.element.children(\":hidden:not('.\"+j+\"')\"),i=0;ili[data-uid='\"+e.data(\"uid\")+\"']\").removeClass(ve)},_showItem:function(e,t){e.removeClass(G);var n=A(e,!0);return e.addClass(G),!!(e.length&&t>this._childrenWidth()+n)&&(e.removeClass(G),this.popup&&this.popup.container.find(\">li[data-uid='\"+e.data(\"uid\")+\"']\").addClass(ve),!0)},_markVisibles:function(){var e=this.popup.container.children(),t=this.element.children(\":not(.k-overflow-anchor)\"),n=e.filter(\":not(.k-overflow-hidden)\"),i=t.filter(\":visible\");e.add(t).removeClass(ae+\" \"+se),n.first().add(i.first()).addClass(ae),n.last().add(i.last()).addClass(se)}}),x.ui.plugin(y)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.mediaplayer.min\",[\"kendo.slider.min\",\"kendo.toolbar.min\",\"kendo.dropdownlist.min\",\"kendo.tooltip.min\"],e)}(function(){return function(e,t){var n=window.kendo,i=\"end\",o=\"pause\",r=\"play\",a=\"ready\",s=\"timeChange\",l=\"volumeChange\",d=\"k-i-full-screen\",c=\"k-i-full-screen-exit\",u=\"k-i-volume-off\",h=\"k-i-volume-down\",p=\"k-i-volume-up\",f=\"k-mediaplayer-quality\",m=\"k-i-play\",g=\"k-i-pause\",v=\"k-mediaplayer-titlebar\",_=\"k-title\",b=\"k-mediaplayer-toolbar-wrap\",w=\"k-mediaplayer-toolbar\",k=\"k-mediaplayer-seekbar\",y=\"k-mediaplayer-volume\",x=\"k-mediaplayer-media\",C=\"k-mediaplayer-overlay\",S=\"k-mediaplayer-yt\",T=\".\",D=n.ui,I=\".kendoMediaPlayer\",A=new Date(1970,0,1),E=60*A.getTimezoneOffset(),R=n.ui.Widget,M=Array.isArray,F={shortTime:\"mm:ss\",longTime:\"HH:mm:ss\"},P=n.template,z=e.proxy,B=n.keys,L={htmlPlayer:\"\",titleBar:P(\"
          Video Title
          \"),toolBar:\"
          \",youtubePlayer:\"
          \",toolBarTime:\"00:00:00 / 00:00:00\",slider:\"\",volumeSlider:\"\",qualityDropDown:\"\",toolTip:\"#= kendo.toString(new Date(value), 'HH:mm:ss') #\"},H=R.extend({init:function(t,i){this.wrapper=e(t),R.fn.init.call(this,t,i),this.wrapper.addClass(\"k-mediaplayer k-widget\"),i=this.options,this._currentIndex=0,this._createTitlebar(),this._createToolbar(),this._createDropDown(),this._createSlider(),this._createVolumeSlider(),this._timers={},this._aria(),this._navigatable(),i.fullScreen&&this.fullScreen(!0),i.media&&this.media(this.options.media),n.notify(this)},events:[i,o,r,a,s,l],options:{name:\"MediaPlayer\",autoPlay:!1,autoRepeat:!1,volume:100,fullScreen:!1,mute:!1,navigatable:!1,forwardSeek:!0,media:null,messages:{pause:\"Pause\",play:\"Play\",mute:\"Mute\",unmute:\"Unmute\",quality:\"Quality\",fullscreen:\"Full Screen\"}},_msToTime:function(e){var t=new Date(A.getTime());return t.setSeconds(e),t},_timeToSec:function(e){var t=new Date(e).getTime();return t/1e3},_createTitlebar:function(){this._titleBar=this.wrapper.find(T+v),0===this._titleBar.length&&(this.wrapper.append(L.titleBar),this._titleBar=this.wrapper.find(T+v))},_createSlider:function(){var e=this.wrapper.find(T+k);this._slider||(this._sliderDragChangeHandler=z(this._sliderDragChange,this),this._sliderDraggingHandler=z(this._sliderDragging,this),e=this.wrapper.find(T+k),this._slider=new D.Slider(e[0],{smallStep:1e3,tickPlacement:\"none\",showButtons:!1,change:this._sliderDragChangeHandler,slide:this._sliderDraggingHandler,tooltip:{template:L.toolTip},dragHandleTitle:this.options.messages.time}))},_createVolumeSlider:function(){var e=this.wrapper.find(T+y);this._volumeSlider||(this._volumeDraggingHandler=z(this._volumeDragging,this),this._volumeChangeHandler=z(this._volumeChange,this),e.width(87),this._volumeSlider=new D.Slider(e[0],{smallStep:1,min:0,max:100,value:this.options.volume,slide:this._volumeDraggingHandler,change:this._volumeChangeHandler,tickPlacement:\"none\",showButtons:!1,tooltip:{enabled:!1},dragHandleTitle:this.options.messages.volume}))},_resetTime:function(){this._youTubeVideo?this._ytmedia.seekTo(0,!0):this._media.currentTime=0,this._mediaTimeUpdate(),e.grep(this._toolBar.options.items,function(e){return!!e.template}).template=L.toolBarTime},_currentUrl:function(){var e=this.media();return M(e.source)?e.source[this._currentIndex].url:e.source},_isYouTubeUrl:function(){return!!this._currentUrl().match(\"youtube.com/|youtu.be/\")},_setPlayerUrl:function(){var e,t=this._youTubeVideo;this.stop(),this._youTubeVideo=this._isYouTubeUrl(),t!==this._youTubeVideo&&(this.wrapper.find(T+S).toggle(),this.wrapper.find(T+x).toggle()),e=this._media||this._ytmedia,this._initializePlayer(),e&&(this.mute(this.mute()),this.volume(this.volume())),this._youTubeVideo?this._ytmedia&&(this._videoOverlay&&this._videoOverlay.hide(),this.options.autoPlay?(this._ytmedia.loadVideoById(this._getMediaId()),this._playStateToggle(!0)):(this._ytmedia.cueVideoById(this._getMediaId()),this._playStateToggle(!0))):(this._videoOverlay.show(),this.wrapper.find(T+x+\" > source\").remove(),this.wrapper.find(T+x).attr(\"src\",this._currentUrl()),this.options.autoPlay&&this.play())},_createToolbar:function(){var t=this.wrapper.find(T+w);0===t.length&&(this._toolbarClickHandler=z(this._toolbarClick,this),this.wrapper.append(L.toolBar),t=this.wrapper.find(T+w),t.width(this.wrapper.find(T+x).width()),this._toolBar=new D.ToolBar(t,{click:this._toolbarClickHandler,resizable:!1,items:[{type:\"button\",attributes:{\"class\":\"k-play-button\"},icon:\"play\"},{template:L.toolBarTime,attributes:{\"class\":\"k-mediaplayer-currenttime-wrap\"}},{type:\"spacer\"},{type:\"button\",attributes:{\"class\":\"k-volume-button\"},icon:\"volume-up\"},{template:L.volumeSlider,attributes:{\"class\":\"k-mediaplayer-volume-wrap\"}},{template:L.qualityDropDown,attributes:{\"class\":\"k-mediaplayer-quality-wrap\"}},{type:\"button\",attributes:{\"class\":\"k-fullscreen-button\"},icon:\"full-screen\"}]}),this._toolBar.wrapper.off(\"keydown\"),t.before(L.slider),this._volumeButton=t.find(\".k-volume-button\"),this._fullscreenButton=t.find(\".k-fullscreen-button\"),this._volumeButton.attr(\"title\",this.options.mute?this.options.messages.unmute:this.options.messages.mute),this._volumeButton.attr(\"aria-label\",this.options.mute?this.options.messages.unmute:this.options.messages.mute),this._fullscreenButton.attr(\"title\",this.options.messages.fullscreen),this._fullscreenButton.attr(\"aria-label\",this.options.messages.fullscreen),t.width(\"auto\"),this._currentTimeElement=t.find(\".k-mediaplayer-currenttime\"),this._durationElement=t.find(\".k-mediaplayer-duration\"),this._playButton=t.find(\".k-play-button\"),this._playButtonSpan=this._playButton.find(\".k-i-play\"),this.options.autoPlay&&this._playStateToggle(!0),n.support.cssFlexbox===!1&&e([this._volumeButton[0],t.find(\".k-mediaplayer-volume-wrap\")[0],t.find(\".k-mediaplayer-quality-wrap\")[0],this._fullscreenButton[0]]).wrapAll(\"
          \"),t.find(\".k-button\").addClass(\"k-flat\"))},_createDropDown:function(){var e=this.wrapper.find(T+f),n=this.media();t===e.data(\"kendoDropDownList\")&&(this._dropDownSelectHandler=z(this._dropDownSelect,this),this._dropDown=new D.DropDownList(e,{dataTextField:\"quality\",dataValueField:\"url\",popup:{position:\"bottom\",origin:\"top\",appendTo:this.wrapper},animation:{open:{effects:\"slideIn:up\",duration:1}},select:this._dropDownSelectHandler}),n&&M(n.source)&&(this._dropDown.setDataSource(n.source),this._dropDown.select(0)),this._dropDown.wrapper.addClass(\"k-button k-flat\"),this._dropDown.wrapper.attr(\"title\",this.options.messages.quality).hide(),this._dropDown.wrapper.find(\"span.k-i-arrow-60-down\").removeClass(\"k-i-arrow-60-down\").addClass(\"k-icon k-i-hd\"),this._dropDown.list.addClass(\"k-quality-list\"))},_dropDownSelect:function(e){this._currentIndex!==e.item.index()&&(this._currentIndex=e.item.index(),this._setPlayerUrl())},_toolbarClick:function(t){var n,i=e(t.target).children().first(),o=i.hasClass(m);this.media()&&((i.hasClass(m)||i.hasClass(g))&&(o?this.play():this.pause()),(i.hasClass(d)||i.hasClass(c))&&(this._isInFullScreen?(i.removeClass(c).addClass(d),this.fullScreen(!1)):(i.removeClass(d).addClass(c),this.fullScreen(!0))),(i.hasClass(u)||i.hasClass(h)||i.hasClass(p))&&(n=this.mute(),this.mute(!n)))},_sliderDragging:function(){this.media()&&(this._isDragging=!0)},_sliderDragChange:function(e){var t=this,n=e.sender,i=1e3*E;this.media()&&(t._sliderChangeFired=!0,t._isDragging=!1,!this.options.forwardSeek&&n.value()>this._seekBarLastPosition?setTimeout(function(){n.value(t._seekBarLastPosition)},1):this._youTubeVideo?t._ytmedia.seekTo(t._timeToSec(e.value-i)):t._media.currentTime=t._timeToSec(e.value-i),t.trigger(s),t._preventPlay=!0)},_changeVolumeButtonImage:function(e){\nvar t=this._volumeButton,n=t.find(\"span\"),i=n.attr(\"class\");i=i.substring(0,i.lastIndexOf(\" \")),0===e?(n.attr(\"class\",i+\" \"+u),t.attr(\"title\",this.options.messages.unmute),t.attr(\"aria-label\",this.options.messages.unmute)):e>0&&e<51?(n.attr(\"class\",i+\" \"+h),t.attr(\"title\",this.options.messages.mute),t.attr(\"aria-label\",this.options.messages.mute)):(n.attr(\"class\",i+\" \"+p),t.attr(\"title\",this.options.messages.mute),t.attr(\"aria-label\",this.options.messages.mute))},_volumeDragging:function(e){this.media()&&(this.volume(e.value),this._changeVolumeButtonImage(e.value),this.trigger(l))},_volumeChange:function(e){this.media()&&(this.volume(e.value),this._changeVolumeButtonImage(e.value),this.trigger(l))},_mediaTimeUpdate:function(){var e,t=this._youTubeVideo?this._ytmedia.getCurrentTime():this._media.currentTime;return t=t?t:0,e=this._msToTime(t),this._currentTimeElement.text(n.toString(e,this._timeFormat)),this._isDragging||(this._seekBarLastPosition=1e3*(t+E),this._slider.value(this._seekBarLastPosition)),this.isPlaying()},_playStateToggle:function(e){t===e&&(e=this._playButtonSpan.is(T+m)),e?(this._playButtonSpan.removeClass(m).addClass(g),this._playButton.attr(\"title\",this.options.messages.pause),this._playButton.attr(\"aria-label\",this.options.messages.pause)):(this._playButtonSpan.removeClass(g).addClass(m),this._playButton.attr(\"title\",this.options.messages.play),this._playButton.attr(\"aria-label\",this.options.messages.play))},_mediaEnded:function(){this._playStateToggle(!1),this._currentTimeElement.text(n.toString(this._msToTime(0),this._timeFormat)),this._slider.value(1e3*(0+E)),this.trigger(i)},_mediaPlay:function(){this.trigger(r)},_mediaReady:function(){this.trigger(a)},_mediaDurationChange:function(){var e=this._msToTime(this._youTubeVideo?this._ytmedia.getDuration():this._media.duration);this._timeFormat=0===e.getHours()?F.shortTime:F.longTime,this._durationElement.text(n.toString(e,this._timeFormat)),this._slider.setOptions({min:A.getTime(),max:e.getTime()}),this._isFirstRun||(this._resetTime(),this._isFirstRun=!0)},_createYoutubePlayer:function(){this._mediaTimeUpdateHandler=z(this._mediaTimeUpdate,this),this._mediaDurationChangeHandler=z(this._mediaDurationChange,this),this.wrapper.prepend(L.youtubePlayer),this._ytPlayer=this.wrapper.find(T+S)[0],e(this._ytPlayer).css({width:this.wrapper.width(),height:this.wrapper.height()}),window.YT&&window.YT.Player?this._configurePlayer():(window.onYouTubeIframeAPIReadyRegister||(window.onYouTubeIframeAPIReadyRegister=[],e.getScript(\"https://www.youtube.com/iframe_api\"),window.onYouTubeIframeAPIReady=function(){if(window.onYouTubeIframeAPIReadyRegister)for(var e=0;e
          \"),this._videoOverlay=this.wrapper.find(\".k-mediaplayer-overlay\").on(\"click\"+I,this._mouseClickHanlder)),this._mediaTimeUpdateHandler=z(this._mediaTimeUpdate,this),this._mediaDurationChangeHandler=z(this._mediaDurationChange,this),this._mediaEndedHandler=z(this._mediaEnded,this),this._mediaCanPlayHandler=z(this._mediaReady,this),this._mediaPlayHandler=z(this._mediaPlay,this),this._videoOverlay.after(L.htmlPlayer),this._media=this.wrapper.find(T+x)[0],e(this._media).css({width:\"100%\",height:\"100%\"}),this.options.mute&&this.mute(!0),this._media.ontimeupdate=this._mediaTimeUpdateHandler,this._media.ondurationchange=this._mediaDurationChangeHandler,this._media.oncanplay=this._mediaCanPlayHandler,this._media.onplay=this._mediaPlayHandler,this._media.onended=this._mediaEndedHandler,this._media.loop=this.options.autoRepeat},_mouseIn:function(){this._uiDisplay(!0)},_mouseOut:function(){this._poll(\"mouseIdle\",this._mouseIdle,3e3,this)},_mouseIdle:function(){return this._uiDisplay(!1),!1},_mouseMove:function(){this._titleBar.is(\":animated\")||this._toolBar.element.is(\":animated\")||this._slider.wrapper.is(\":animated\")||this._uiDisplay(!0),this._poll(\"mouseIdle\",this._mouseIdle,3e3,this)},_uiDisplay:function(e){var t=\"slow\",n=this._titleBar.add(this._toolBar.element.parent());e?n.fadeIn(t):(n.fadeOut(t),this.options.navigatable&&this.wrapper.trigger(\"focus\"))},setOptions:function(e){R.fn.setOptions.call(this,e)},destroy:function(){R.fn.destroy.call(this),this.isPaused()||this.pause(),this.element.off(I),this.element.find(T+C).off(I),this._timers=null,this._mouseMoveHandler=null,this._mouseOutHandler=null,this._mouseInHandler=null,this._mouseClickHanlder=null,this._keyDownHandler=null,this._fullscreenHandler=null,this._toolbarClickHandler=null,this._sliderDragChangeHandler=null,this._sliderDraggingHandler=null,this._volumeDraggingHandler=null,this._volumeChangeHandler=null,this._youtubeApiReadyHandler=null,this._onYouTubePlayerReady=null,this._onPlayerStateChangeHandler=null,this._dropDownSelectHandler=null,this._youTubeVideo?this._ytmedia.destroy():(this._media.ontimeupdate=this._mediaTimeUpdateHandler=null,this._media.ondurationchange=this._mediaDurationChangeHandler=null,this._media.oncanplay=this._mediaCanPlayHandler=null,this._media.onplay=this._mediaPlayHandler=null,this._media.onended=this._mediaEndedHandler=null,this._media.src=\"\",this._media.remove()),this._mouseMoveTimer=null,clearTimeout(this._mouseMoveTimer),n.destroy(this.element)},seek:function(e){if(t===e)return 1e3*this._youTubeVideo?this._ytmedia.getCurrentTime():this._media?this._media.currentTime:0;var n=e/1e3;return this._youTubeVideo?n+3>=this._ytmedia.getDuration()|0?this._ytmedia.seekTo(this._ytmedia.getDuration()-3|0,!0):this._ytmedia.seekTo(n,!0):this._media.currentTime=n,this},play:function(){return this._youTubeVideo?this._ytmedia.playVideo():(n.support.mobileOS&&this._uiDisplay(!1),this._media.play()),this._paused=!1,this._playStateToggle(!0),this},stop:function(){return this._youTubeVideo&&this._ytmedia?this._ytmedia.stopVideo():this._media&&!this._youTubeVideo&&(n.support.mobileOS&&this._uiDisplay(!0),this._media.pause(),this._media.currentTime=0),this._paused=!0,this._playStateToggle(!1),this},pause:function(){return this._youTubeVideo?this._ytmedia.pauseVideo():(n.support.mobileOS&&this._uiDisplay(!0),this._media.pause()),this._paused=!0,this._playStateToggle(!1),this.trigger(o),this},toolbar:function(){return this._toolBar},dropdown:function(){return this._dropDown},titlebar:function(){return this._titleBar},fullScreen:function(e){if(t===e)return this._isInFullScreen||!1;var n=this.element.get(0);e?(this.element.addClass(\"k-mediaplayer-fullscreen\"),n.requestFullscreen?n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen(),this._isInFullScreen=!0):(document.cancelFullscreen?document.cancelFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msCancelFullscreen?document.msCancelFullscreen():document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),this.element.removeClass(\"k-mediaplayer-fullscreen\"),this._isInFullScreen=!1),this._slider.resize()},volume:function(e){return t===e?t!==this._volume?this._volume:this._volume=this.options.volume:(this._volume=e,this.mute(e<=0),this._youTubeVideo?this._ytmedia.setVolume(this._volume):this._media.volume=this._volume/100,this._volumeSlider.value(e),t)},mute:function(e){var n=this._youTubeVideo?this._ytmedia&&this._ytmedia.isMuted():this._media&&this._media.muted;return t===e||e===n?n:(this._youTubeVideo?e?this._ytmedia.mute():this._ytmedia.unMute():this._media.muted=e,this._volumeSlider.value(e?0:this._media&&100*this._media.volume||this._ytmedia&&this._ytmedia.getVolume()),this.trigger(l),this._changeVolumeButtonImage(this._volumeSlider.value()),t)},isEnded:function(){return this._youTubeVideo?0===this._ytmedia.getPlayerState():this._media.ended},media:function(e){var n=this.dropdown();return t===e?t!==this._mediaData?this._mediaData:this._mediaData=this.options.media:(M(e.source)?(n.setDataSource(e.source),n.wrapper.show()):n.wrapper.hide(),this._mediaData=e,this._updateTitle(),this._setPlayerUrl(),t)},isPaused:function(){return this._paused},isPlaying:function(){return!this.isEnded()&&!this._paused},_aria:function(){this.wrapper.attr(\"role\",\"region\")},_navigatable:function(){this._fullscreenHandler=z(this._fullscreen,this),e(document).on(\"webkitfullscreenchange mozfullscreenchange fullscreenchange\"+I,this._fullscreenHandler),this.options.navigatable&&(this.wrapper.attr(\"tabIndex\",0),this._keyDownHandler=z(this._keyDown,this),this.wrapper.on(\"keydown\"+I,this._keyDownHandler))},_fullscreen:function(){var e=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;this._uiDisplay(!0),this._slider.resize(),e||(this.wrapper.find('span[class*=\"k-i-fullscreen\"]').removeClass(c).addClass(d),this.fullScreen(!1))},_keyDown:function(e){var t,n;e.preventDefault(),t=this.wrapper.find('span[class*=\"k-i-fullscreen\"]'),e.keyCode===B.SPACEBAR?this.isPlaying()?this.pause():this.play():e.keyCode!==B.ENTER||this._isInFullScreen?77===e.keyCode?(n=this.mute(),this.mute(!n)):e.keyCode===B.ESC&&this._isInFullScreen&&(t.removeClass(c).addClass(d),this.fullScreen(!1)):(t.removeClass(d).addClass(c),this.fullScreen(!0))},_error:function(){},_progress:function(){}});D.plugin(H)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"pivotgrid/common.min\",[\"kendo.core.min\"],e)}(function(){!function(){window.kendo.pivotgrid=window.kendo.pivotgrid||{},window.kendo.pivotgrid.common=function(e){function t(e,t){var i,o=\"\",r=\"\";for(i=e.length-1;i>=0;i--)r=\"SELECT (\",r+=n(e[i]),r+=\") ON 0\",i===e.length-1?(r+=\" FROM [\"+t+\"]\",o=r):o=r+\" FROM ( \"+o+\" )\";return o}function n(e){var t=\"\",n=e.value+\"\",o=e.field,r=e.operator;return r===H[\"in\"]?(t+=\"{\",t+=n,t+=\"}\"):(t+=r===H.neq||r===H.doesnotcontain?\"-\":\"\",t+=\"Filter(\",t+=o+\".MEMBERS\",t+=i(L[r],o,n),t+=\")\"),t}function i(e){var t,n=[];for(t=1;t1||t.length>1){for(u.push(d(r,t));p1)l.push(n);else{for(o=h(i[0]),r=0,a=d.length;r1&&n.push(\"{\"+r(t).join(\",\")+\"}\"),p(n)}function c(e,t){var n=e.length-1,i=e[n],o=u(t,i);return o&&o.dir?i=\"ORDER(\"+i+\".Children,\"+o.field+\".CurrentMember.MEMBER_CAPTION,\"+o.dir+\")\":i+=\".Children\",e[n]=i,e}function u(e,t){for(var n=0,i=e.length;n2?t[0]+\".\"+t[1]:e}function p(e){var t,n=\"CROSSJOIN({\";return e.length>2?(t=e.pop(),n+=p(e)):(n+=e.shift(),t=e.pop()),n+=\"},{\",n+=t,n+=\"})\"}function f(e){var n='
          ',i=e.columnAxes,a=void 0===i?[]:i,s=e.rowAxes,l=void 0===s?[]:s,d=e.measureAxes,c=void 0===d?[]:d,u=e.sort,h=void 0===u?[]:u,p=e.filter,f=void 0===p?[]:p,m=\"rows\"===e.measuresAxis;return n+=\"SELECT NON EMPTY {\",!a.length&&l.length&&(!c.length||c.length&&m)&&(a=l,l=[],m=!1),a.length||l.length||(m=!1),a.length?n+=o(a,m?[]:c,h):c.length&&!m&&(n+=r(c).join(\",\")),n+=\"} DIMENSION PROPERTIES CHILDREN_CARDINALITY, PARENT_UNIQUE_NAME ON COLUMNS\",(l.length||m&&c.length>1)&&(n+=\", NON EMPTY {\",n+=l.length?o(l,m?c:[],h):r(c).join(\",\"),n+=\"} DIMENSION PROPERTIES CHILDREN_CARDINALITY, PARENT_UNIQUE_NAME ON ROWS\"),f.length?(n+=\" FROM \",n+=\"(\",n+=t(f,e.connection.cube),n+=\")\"):n+=\" FROM [\"+e.connection.cube+\"]\",1===c.length&&a.length&&(n+=\" WHERE (\"+r(c).join(\",\")+\")\"),n+=\"\"+e.connection.catalog+\"Multidimensional\",n.replace(/&/g,\"&\")}function m(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function a(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i[\"throw\"](e))}catch(t){r(t)}}function l(e){e.done?n(e.value):o(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())})}function g(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError(\"Generator is already executing.\");for(;l;)try{if(o=1,r&&(a=2&n[0]?r[\"return\"]:n[0]?r[\"throw\"]||((a=r[\"return\"])&&a.call(r),0):r.next)&&!(a=a.call(r,n[1])).done)return a;switch(r=0,a&&(n=[2&n[0],a.value]),n[0]){case 0:case 1:a=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,r=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!(a=a.length>0&&a[a.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1] Cell\")).map(function(e){return{fmtValue:b(e,\"FmtValue\"),ordinal:parseInt(e.getAttribute(\"CellOrdinal\"),10),value:b(e,\"Value\")}}),a={tuples:[]},s={tuples:[]},l=[];return o.forEach(function(e){if(\"SlicerAxis\"!==e.getAttribute(\"name\")){var t=0===a.tuples.length?a.tuples:s.tuples;Array.prototype.push.apply(t,w(e))}}),t=Array(s.tuples.length*a.tuples.length).fill(null),r.forEach(function(e){t[e.ordinal]=e}),n=0,s.tuples.forEach(function(e){a.tuples.forEach(function(i){l.push({columnTuple:i,data:t[n],rowTuple:e}),n++})}),{columns:a,data:l,rows:s}}function b(e,t){var n=e.querySelector(t);return n?n.textContent:\"\"}function w(e){var t=Array.from(e.querySelectorAll(\"Tuple\"));return t.map(function(e){var t=Array.from(e.querySelectorAll(\"Member\")),n=t.map(function(e){var t=parseInt(b(e,\"LNum\")||\"0\",10),n=parseInt(b(e,\"CHILDREN_CARDINALITY\")||\"0\",10)>0;return{caption:b(e,\"Caption\"),children:[],hasChildren:n,hierarchy:e.getAttribute(\"Hierarchy\"),levelName:b(e,\"LName\"),levelNum:t,name:b(e,\"UName\"),parentName:b(e,\"PARENT_UNIQUE_NAME\")}});return{members:n}})}function k(e){var t={},n='
          ';return n+=\"\"+(N[e.command]||e.command)+\"\",n+=\"\"+y(\"RestrictionList\",e.restrictions,!0)+\"\",e.connection&&e.connection.catalog&&(t.Catalog=e.connection.catalog),n+=\"\"+y(\"PropertyList\",t,!1)+\"\",n+=\"\"}function y(e,t,n){var i,o,r=\"\";if(t){r+=\"<\"+e+\">\",i=void 0;for(o in t)t[o]&&(i=t[o],n&&(o=o.replace(/([A-Z]+(?=$|[A-Z][a-z])|[A-Z]?[a-z]+)/g,\"$1_\").toUpperCase().replace(/_$/,\"\")),r+=\"<\"+o+\">\"+i+\"\");r+=\"\"}else r+=\"<\"+e+\"/>\";return r}function x(e){var t=(new DOMParser).parseFromString(e,\"text/xml\"),n=Array.from(t.querySelectorAll(\"DiscoverResponse > return > root > row\")).map(function(e){return{name:b(e,\"CUBE_NAME\"),caption:b(e,\"CUBE_CAPTION\"),description:b(e,\"DESCRIPTION\"),type:b(e,\"CUBE_TYPE\")}});return n}function C(e){var t=(new DOMParser).parseFromString(e,\"text/xml\"),n=Array.from(t.querySelectorAll(\"DiscoverResponse > return > root > row\")).map(function(e){return{name:b(e,\"CATALOG_NAME\"),description:b(e,\"DESCRIPTION\")}});return n}function S(e){var t=(new DOMParser).parseFromString(e,\"text/xml\"),n=Array.from(t.querySelectorAll(\"DiscoverResponse > return > root > row\")).map(function(e){return{name:b(e,\"MEASURE_NAME\"),caption:b(e,\"MEASURE_CAPTION\"),uniqueName:b(e,\"MEASURE_UNIQUE_NAME\"),description:b(e,\"DESCRIPTION\"),aggregator:b(e,\"MEASURE_AGGREGATOR\"),groupName:b(e,\"MEASUREGROUP_NAME\"),displayFolder:b(e,\"MEASURE_DISPLAY_FOLDER\"),defaultFormat:b(e,\"DEFAULT_FORMAT_STRING\")}});return n}function T(e){var t=(new DOMParser).parseFromString(e,\"text/xml\"),n=Array.from(t.querySelectorAll(\"DiscoverResponse > return > root > row\")).map(function(e){return{name:b(e,\"KPI_NAME\"),uniqueName:b(e,\"KPI_NAME\"),caption:b(e,\"KPI_CAPTION\"),value:b(e,\"KPI_VALUE\"),goal:b(e,\"KPI_GOAL\"),status:b(e,\"KPI_STATUS\"),trend:b(e,\"KPI_TREND\"),statusGraphic:b(e,\"KPI_STATUS_GRAPHIC\"),trendGraphic:b(e,\"KPI_TREND_GRAPHIC\"),description:b(e,\"KPI_DESCRIPTION\"),groupName:b(e,\"MEASUREGROUP_NAME\"),type:\"kpi\"}});return n}function D(e){var t=(new DOMParser).parseFromString(e,\"text/xml\"),n=Array.from(t.querySelectorAll(\"DiscoverResponse > return > root > row\")).map(function(e){return{caption:b(e,\"DIMENSION_CAPTION\"),defaultHierarchy:b(e,\"DEFAULT_HIERARCHY\"),description:b(e,\"DESCRIPTION\"),name:b(e,\"DIMENSION_NAME\"),type:parseInt(b(e,\"DIMENSION_TYPE\"),10),uniqueName:b(e,\"DIMENSION_UNIQUE_NAME\")}});return n}function I(e){var t=(new DOMParser).parseFromString(e,\"text/xml\"),n=Array.from(t.querySelectorAll(\"DiscoverResponse > return > root > row\")).map(function(e){return{name:b(e,\"HIERARCHY_NAME\"),caption:b(e,\"HIERARCHY_CAPTION\"),description:b(e,\"DESCRIPTION\"),uniqueName:b(e,\"HIERARCHY_UNIQUE_NAME\"),dimensionUniqueName:b(e,\"DIMENSION_UNIQUE_NAME\"),displayFolder:b(e,\"HIERARCHY_DISPLAY_FOLDER\"),origin:b(e,\"HIERARCHY_ORIGIN\"),defaultMember:b(e,\"DEFAULT_MEMBER\")}});return n}function A(e){var t=(new DOMParser).parseFromString(e,\"text/xml\"),n=Array.from(t.querySelectorAll(\"DiscoverResponse > return > root > row\")).map(function(e){return{name:b(e,\"LEVEL_NAME\"),caption:b(e,\"LEVEL_CAPTION\"),description:b(e,\"DESCRIPTION\"),uniqueName:b(e,\"LEVEL_UNIQUE_NAME\"),dimensionUniqueName:b(e,\"DIMENSION_UNIQUE_NAME\"),displayFolder:b(e,\"LEVEL_DISPLAY_FOLDER\"),orderingProperty:b(e,\"LEVEL_ORDERING_PROPERTY\"),origin:b(e,\"LEVEL_ORIGIN\"),hierarchyUniqueName:b(e,\"HIERARCHY_UNIQUE_NAME\")}});return n}function E(e){var t=(new DOMParser).parseFromString(e,\"text/xml\"),n=Array.from(t.querySelectorAll(\"DiscoverResponse > return > root > row\")).map(function(e){return{name:b(e,\"MEMBER_NAME\"),caption:b(e,\"MEMBER_CAPTION\"),uniqueName:b(e,\"MEMBER_UNIQUE_NAME\"),dimensionUniqueName:b(e,\"DIMENSION_UNIQUE_NAME\"),hierarchyUniqueName:b(e,\"HIERARCHY_UNIQUE_NAME\"),levelUniqueName:b(e,\"LEVEL_UNIQUE_NAME\"),childrenCardinality:b(e,\"CHILDREN_CARDINALITY\")}});return n}function R(e){var t,n,i,o=[];for(t=0,n=Object.keys(e);t 0',doesnotcontain:', InStr({0}.CurrentMember.MEMBER_CAPTION,\"{1}\")',endswith:', Right({0}.CurrentMember.MEMBER_CAPTION,Len(\"{1}\"))=\"{1}\"',eq:', {0}.CurrentMember.MEMBER_CAPTION = \"{1}\"',neq:', {0}.CurrentMember.MEMBER_CAPTION = \"{1}\"',startswith:', Left({0}.CurrentMember.MEMBER_CAPTION,Len(\"{1}\"))=\"{1}\"'},H={doesnotcontain:\"doesnotcontain\",\"in\":\"in\",neq:\"neq\"},O=function(){return O=Object.assign||function(e){var t,n,i,o;for(n=1,i=arguments.length;n=t&&(t=m.index);else if(h[t]&&h[t].cells.length){for(b=t;b=1&&t&&!t.children.some(function(e){return e.total&&e.name===o.name})&&!e.total&&(s=e.children[0].hierarchy,e.hierarchy===s&&t.children.splice(n+1,0,o)),e},J=function(e){var t,n={children:[]},i={},o=function(t){var o,r=M(e[t]),a=\"\",s=function(e){var t,o,s,l=r.members[e];n.children&&0===n.children.length?t=n:i[a]&&!i[a+l.name]&&0===l.levelNum?t=i[a]:i[a+l.parentName]&&l.levelNum>0&&!i[a+l.parentName+l.name]?t=i[a+l.parentName]:!i[a+l.parentName]&&l.levelNum>0&&!i[a+l.parentName+l.name]&&(o=Object.keys(i).find(function(e){return 0===e.indexOf(l.hierarchy)&&e.lastIndexOf(a+l.parentName)+(a+l.parentName).length===e.length}),o&&(t=i[o])),t&&(l.path=Q(l,t),l.normalizedPath=Y(l,t),s=t.children.findIndex(function(e){return e.hierarchy!==t.hierarchy}),s!==-1?t.children.splice(Math.max(s,0),0,l):t.children.push(l)),a+=l.parentName+=l.name,i[a]||(i[a]=l)};for(o=0;o1?void 0:{name:n.payload,expand:!1}:e}).filter(Boolean);default:return t}},e.PIVOT_CONFIGURATOR_ACTION=void 0,function(e){e.toggleSelection=\"PIVOT_CONFIGURATOR_ACTION_TOGGLE_SELECTION\",e.addColumnAxis=\"PIVOT_CONFIGURATOR_ACTION_ADD_COLUMN_AXIS\",e.addColumnAxes=\"PIVOT_CONFIGURATOR_ACTION_ADD_COLUMN_AXES\",e.removeColumnAxis=\"PIVOT_CONFIGURATOR_ACTION_REMOVE_COLUMN_AXIS\",e.removeColumnAxes=\"PIVOT_CONFIGURATOR_ACTION_REMOVE_COLUMN_AXES\",e.addRowAxis=\"PIVOT_CONFIGURATOR_ACTION_ADD_ROW_AXIS\",e.addRowAxes=\"PIVOT_CONFIGURATOR_ACTION_ADD_ROW_AXES\",e.removeRowAxis=\"PIVOT_CONFIGURATOR_ACTION_REMOVE_ROW_AXIS\",e.removeRowAxes=\"PIVOT_CONFIGURATOR_ACTION_REMOVE_ROW_AXES\",e.addMeasureAxis=\"PIVOT_CONFIGURATOR_ACTION_ADD_MEASURE_AXIS\",e.addMeasureAxes=\"PIVOT_CONFIGURATOR_ACTION_ADD_MEASURE_AXES\",e.removeMeasureAxis=\"PIVOT_CONFIGURATOR_ACTION_REMOVE_MEASURE_AXIS\",e.removeMeasureAxes=\"PIVOT_CONFIGURATOR_ACTION_REMOVE_MEASURE_AXES\",e.remove=\"PIVOT_CONFIGURATOR_ACTION_REMOVE\",e.setSort=\"PIVOT_CONFIGURATOR_ACTION_SET_SORT\",e.setFilter=\"PIVOT_CONFIGURATOR_ACTION_SET_FILTER\",e.addFilter=\"PIVOT_CONFIGURATOR_ACTION_ADD_FILTER\",e.changeFilter=\"PIVOT_CONFIGURATOR_ACTION_CHANGE_FILTER\",e.removeFilter=\"PIVOT_CONFIGURATOR_ACTION_REMOVE_FILTER\",e.setDragItem=\"PIVOT_CONFIGURATOR_ACTION_SET_DRAGITEM\",e.drop=\"PIVOT_CONFIGURATOR_ACTION_DROP\",e.setDropZone=\"PIVOT_CONFIGURATOR_ACTION_SET_DROP_ZONE\",e.setDropTarget=\"PIVOT_CONFIGURATOR_ACTION_SET_DROP_TARGET\",e.setDropDirection=\"PIVOT_CONFIGURATOR_ACTION_SET_DROP_DIRECTION\"}(e.PIVOT_CONFIGURATOR_ACTION||(e.PIVOT_CONFIGURATOR_ACTION={})),\nB=function(t,n){var i,o,r,a,s,l,d,c,u,h,p,f,m,g,_,b,w;switch(n.type){case e.PIVOT_CONFIGURATOR_ACTION.toggleSelection:if(!Array.isArray(n.payload))return h=n.payload,2===h.type||\"aggregator\"in h?t.measureAxes.some(function(e){return ae(e,h)})?B(t,O(O({},n),{type:e.PIVOT_CONFIGURATOR_ACTION.removeMeasureAxis})):B(t,O(O({},n),{type:e.PIVOT_CONFIGURATOR_ACTION.addMeasureAxis})):\"kpi\"===h.type?(p=F(h),p.every(function(e){return t.measureAxes.some(function(t){return ae(t,e)})})?B(t,O(O({},n),{type:e.PIVOT_CONFIGURATOR_ACTION.removeMeasureAxes,payload:p})):B(t,O(O({},n),{type:e.PIVOT_CONFIGURATOR_ACTION.addMeasureAxes,payload:p.filter(function(e){return!t.measureAxes.some(function(t){return ae(t,e)})})}))):n.payload.kpi?t.measureAxes.some(function(e){return ae(e,h)})?B(t,O(O({},n),{type:e.PIVOT_CONFIGURATOR_ACTION.removeMeasureAxis})):B(t,O(O({},n),{type:e.PIVOT_CONFIGURATOR_ACTION.addMeasureAxis})):t.columnAxes.some(function(e){return ae(e,h)})?B(t,O(O({},n),{type:e.PIVOT_CONFIGURATOR_ACTION.removeColumnAxis})):t.rowAxes.some(function(e){return ae(e,h)})?B(t,O(O({},n),{type:e.PIVOT_CONFIGURATOR_ACTION.removeRowAxis})):!t.columnAxes||!t.columnAxes.length||t.rowAxes&&t.rowAxes.length?B(t,O(O({},n),{type:e.PIVOT_CONFIGURATOR_ACTION.addColumnAxis})):B(t,O(O({},n),{type:e.PIVOT_CONFIGURATOR_ACTION.addRowAxis}));break;case e.PIVOT_CONFIGURATOR_ACTION.addColumnAxis:o=v(t.columnAxes||[],[{name:[n.payload.defaultHierarchy||n.payload.uniqueName]}]);break;case e.PIVOT_CONFIGURATOR_ACTION.addColumnAxes:break;case e.PIVOT_CONFIGURATOR_ACTION.removeColumnAxis:o=v((t.columnAxes||[]).filter(function(e){return!ae(e,n.payload)}));break;case e.PIVOT_CONFIGURATOR_ACTION.removeColumnAxes:break;case e.PIVOT_CONFIGURATOR_ACTION.addRowAxis:i=v(t.rowAxes||[],[{name:[n.payload.defaultHierarchy||n.payload.uniqueName]}]);break;case e.PIVOT_CONFIGURATOR_ACTION.addRowAxes:break;case e.PIVOT_CONFIGURATOR_ACTION.removeRowAxis:i=v((t.rowAxes||[]).filter(function(e){return!ae(e,n.payload)}));break;case e.PIVOT_CONFIGURATOR_ACTION.removeRowAxes:break;case e.PIVOT_CONFIGURATOR_ACTION.addMeasureAxis:r=v(t.measureAxes||[],[{name:[n.payload.defaultHierarchy||n.payload.uniqueName]}]);break;case e.PIVOT_CONFIGURATOR_ACTION.removeMeasureAxis:r=v((t.measureAxes||[]).filter(function(e){return!ae(e,n.payload)}));break;case e.PIVOT_CONFIGURATOR_ACTION.addMeasureAxes:r=v(t.measureAxes||[],(n.payload||[]).map(function(e){return{name:[e.defaultHierarchy||e.uniqueName]}}));break;case e.PIVOT_CONFIGURATOR_ACTION.removeMeasureAxes:r=v((t.measureAxes||[]).filter(function(e){return!n.payload.some(function(t){return ae(e,t)})}));break;case e.PIVOT_CONFIGURATOR_ACTION.remove:t.columnAxes.some(function(e){return se(e,n.payload)})&&(o=v(t.columnAxes.filter(function(e){return!se(e,n.payload)}))),t.rowAxes.some(function(e){return se(e,n.payload)})&&(i=v(t.rowAxes.filter(function(e){return!se(e,n.payload)}))),t.measureAxes.some(function(e){return se(e,n.payload)})&&(r=v(t.measureAxes.filter(function(e){return!se(e,n.payload)})));break;case e.PIVOT_CONFIGURATOR_ACTION.setDragItem:l=n.payload;break;case e.PIVOT_CONFIGURATOR_ACTION.setDropZone:d=n.payload;break;case e.PIVOT_CONFIGURATOR_ACTION.setDropTarget:u=n.payload;break;case e.PIVOT_CONFIGURATOR_ACTION.setDropDirection:c=n.payload;break;case e.PIVOT_CONFIGURATOR_ACTION.drop:if(t.dragItem&&t.dropZone)switch(f=t.columnAxes.find(function(e){return se(e,n.payload)}),m=t.rowAxes.find(function(e){return se(e,n.payload)}),g=t.measureAxes.find(function(e){return se(e,n.payload)}),_=void 0,f&&(_=f,o=v(t.columnAxes.filter(function(e){return!se(e,n.payload)}))),m&&(_=m,i=v(t.rowAxes.filter(function(e){return!se(e,n.payload)}))),g&&(_=g,r=v(t.measureAxes.filter(function(e){return!se(e,n.payload)}))),t.dropZone){case\"columnAxes\":o=o||t.columnAxes.slice(),b=-1,t.dropTarget&&t.dropDirection&&(w=t.dropDirection?\"before\"===t.dropDirection?0:1:0,b=o.findIndex(function(e){return se(e,t.dropTarget)})+w),b>=0?o.splice(b,0,_):o.push(_);break;case\"rowAxes\":i=i||t.rowAxes.slice(),b=-1,t.dropTarget&&t.dropDirection&&(w=t.dropDirection?\"before\"===t.dropDirection?0:1:0,b=i.findIndex(function(e){return se(e,t.dropTarget)})+w),b>=0?i.splice(b,0,_):i.push(_);break;case\"measureAxes\":r=r||t.measureAxes.slice(),b=-1,t.dropTarget&&t.dropDirection&&(w=t.dropDirection?\"before\"===t.dropDirection?0:1:0,b=r.findIndex(function(e){return se(e,t.dropTarget)})+w),b>=0?r.splice(b,0,_):r.push(_)}l=null,d=null,u=null;break;case e.PIVOT_CONFIGURATOR_ACTION.setSort:a=n.payload;break;case e.PIVOT_CONFIGURATOR_ACTION.setFilter:s=Array.isArray(n.payload)?n.payload:[n.payload];break;case e.PIVOT_CONFIGURATOR_ACTION.addFilter:s=(t.filter||[]).slice(),Array.isArray(n.payload)?s.push.apply(s,n.payload):s.push(n.payload);break;case e.PIVOT_CONFIGURATOR_ACTION.changeFilter:s=(t.filter||[]).map(Array.isArray(n.payload)?function(e){return n.payload.some(function(t){return t.field===e.field})?n.payload.find(function(t){return t.field===e.field}):e}:function(e){return e.field===n.payload.field?n.payload:e});break;case e.PIVOT_CONFIGURATOR_ACTION.removeFilter:s=(t.filter||[]).slice(),s=s.filter(Array.isArray(n.payload)?function(e){return!n.payload.some(function(t){return t.field===e.field&&t.operator===e.operator})}:function(e){return!(e.field===n.payload.field&&e.operator===n.payload.operator)})}return{dragItem:l,dropTarget:u,dropDirection:c,dropZone:d,columnAxes:o,rowAxes:i,measureAxes:r,filter:s,sort:a}},e.addKPI=re,e.buildKPIMeasures=F,e.compareAxes=se,e.configuratorReducer=B,e.createAxisDescriptors=R,e.createDataState=j,e.createDiscoverBody=k,e.createRequestBody=f,e.discoverCommands=N,e.fetchData=W,e.fetchDiscover=U,e.headersReducer=z,e.parseResponse=_,e.setFilter=q,e.setSort=G,e.toColumns=ne,e.toData=ee,e.toRows=ie,e.toTree=J,Object.defineProperty(e,\"__esModule\",{value:!0}),e}({})}()},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.pivotgrid.min\",[\"pivotgrid/common.min\",\"kendo.dom.min\",\"kendo.data.min\"],e)}(function(){return function(e,t){function n(e){var n=\"string\"==typeof e?[{name:e}]:e,i=\"[object Array]\"===Be.call(n)?n:n!==t?[n]:[];return He(i,function(e){return\"string\"==typeof e?{name:e}:{name:e.name,type:e.type}})}function i(e){var n=\"string\"==typeof e?[{name:[e],expand:!1}]:e,i=\"[object Array]\"===Be.call(n)?n:n!==t?[n]:[];return He(i,function(e){return\"string\"==typeof e?{name:[e],expand:!1}:{name:\"[object Array]\"===Be.call(e.name)?e.name.slice():[e.name],expand:e.expand}})}function o(e){return e.indexOf(\" \")!==-1&&(e='[\"'+e+'\"]'),e}function r(e,t,n,i){var o,a,s,l;if(n||(n=t),i||(i=0),l=n.members[i],l&&!l.measure){if(s=l.children,a=s.length,n===t?e[Ce.stringify([l.name])]=!!a:a&&(e[Ce.stringify(ge(n,i))]=!0),a)for(o=0;o0});return n}function d(e,t,n){var o,r;return e=e||{},s(t,e),n.length>1&&t.push({name:tt,measure:!0,children:i(n)}),o={members:t},e.tuples&&(r=D(e.tuples,o),r.tuple&&(t=l(r.tuple))),t}function c(e){var t=Ce.getter(e.field,!0);return function(n,i){return e.aggregate(t(n.dataItem),i,n)}}function u(e){return\"number\"==typeof e&&!isNaN(e)}function h(e){return e&&e.getTime}function p(){var e,t=0;return document&&document.createElement&&(e=document.createElement(\"div\"),e.style.cssText=\"overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block\",e.innerHTML=\" \",document.body.appendChild(e),t=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)),t}function f(e){var t,n=[];for(t=0;t2?t[0]+\".\"+t[1]:e}function L(e,t){var n=e.length-1,i=e[n],o=H(t,i);return o&&o.dir?i=\"ORDER(\"+i+\".Children,\"+o.field+\".CurrentMember.MEMBER_CAPTION,\"+o.dir+\")\":i+=\".Children\",e[n]=i,e}function H(e,t){for(var n=0,i=e.length;n2?(t=e.pop(),n+=O(e)):(n+=e.shift(),t=e.pop()),n+=\"},{\",n+=t,n+=\"})\"}function N(e,t){var n=e.slice(0);return t.length>1&&n.push(\"{\"+V(t).join(\",\")+\"}\"),O(n)}function V(e){for(var n,i=0,o=e.length,r=[];i1)l.push(t);else{for(r=B(o[0]),n=0,i=d.length;n1||t.length>1){for(a.push(N(r,t));l=0;i--)n=\"SELECT (\",n+=K(r[i]),n+=\") ON 0\",i==a-1?(n+=\" FROM [\"+t+\"]\",o=n):o=n+\" FROM ( \"+o+\" )\";return o}function Q(e,t,n){var i,o,r=\"\";if(t){r+=\"<\"+e+\">\";for(o in t)i=t[o],n&&(o=o.replace(/([A-Z]+(?=$|[A-Z][a-z])|[A-Z]?[a-z]+)/g,\"$1_\").toUpperCase().replace(/_$/,\"\")),r+=\"<\"+o+\">\"+i+\"\";r+=\"\"}else r+=\"<\"+e+\"/>\";return r}function X(e){if(null==e)return[];var t=Be.call(e);return\"[object Array]\"!==t?[e]:e}function Z(e){var t,n,i,o,r={tuples:[]},a=X(Ce.getter(\"Tuples.Tuple\",!0)(e)),s=Ce.getter(\"Caption['#text']\"),l=Ce.getter(\"UName['#text']\"),d=Ce.getter(\"LName['#text']\"),c=Ce.getter(\"LNum['#text']\"),u=Ce.getter(\"CHILDREN_CARDINALITY['#text']\",!0),h=Ce.getter(\"['@Hierarchy']\"),p=Ce.getter(\"PARENT_UNIQUE_NAME['#text']\",!0);for(t=0;t0,parentName:p(i[o]),hierarchy:h(i[o])});r.tuples.push({members:n})}return r}var J,ee,te,ne,ie,oe,re,ae,se,le,de,ce,ue,he,pe,fe,me,ge,ve,_e,be,we,ke,ye,xe,Ce=window.kendo,Se=Ce.ui,Te=Ce.Class,De=Ce.data.Comparer,Ie=Se.Widget,Ae=Ce.data.DataSource,Ee=Ce._outerWidth,Re=Ce._outerHeight,Me=window.kendo.pivotgrid.common,Fe=Me.fetchDiscover,Pe=Ce.data.Query.normalizeFilter,ze=Ce.data.Query.normalizeSort,Be={}.toString,Le=function(e){return e},He=e.map,Oe=e.extend,Ne=Ce.isFunction,Ve=Me.fetchData,We=Me.createDataState,Ue=Me.toColumns,je=Me.toRows,Ge=Me.toTree,qe=Me.toData,$e=Me.headersReducer,Ke=\"resize\",Ye=\"read\",Qe=\"change\",Xe=\"error\",Ze=\"requestStart\",Je=\"progress\",et=\"requestEnd\",tt=\"Measures\",nt=\"stateReset\",it=\"auto\",ot=\"
          \",rt=\".kendoPivotGrid\",at=\"__row_total__\",st=\"dataBinding\",lt=\"dataBound\",dt=\"expandMember\",ct='#if (expandable) {# #}#',ut=\"collapseMember\",ht=\"k-i-collapse\",pt=\"k-i-expand\",ft=\"#: data.member.caption || data.member.name #\",mt=' 0 ? \"open\" : data.dataItem.value < 0 ? \"deny\" : \"hold\"#\" title=\"#:data.dataItem.value#\">',gt=' 0 ? \"increase\" : data.dataItem.value < 0 ? \"decrease\" : \"equal\"#\" title=\"#:data.dataItem.value#\">',vt='#= data.dataItem ? kendo.htmlEncode(data.dataItem.fmtValue || data.dataItem.value) || \" \" : \" \" #',_t='
          ',bt=\"rows\",wt=\"columns\",kt={sum:function(e,t){var n=t.accumulator;return u(n)?u(e)&&(n+=e):n=e,n},count:function(e,t){return(t.accumulator||0)+1},average:{aggregate:function(e,n){var i=n.accumulator;return n.count===t&&(n.count=0),u(i)?u(e)&&(i+=e):i=e,u(e)&&n.count++,i},result:function(e){var t=e.accumulator;return u(t)&&(t/=e.count),t}},max:function(e,t){var n=t.accumulator;return u(n)||h(n)||(n=e),ne&&(u(e)||h(e))&&(n=e),n}},yt=Te.extend({init:function(e){this.options=Oe({},this.options,e),this.dimensions=this._normalizeDescriptors(\"field\",this.options.dimensions),this.measures=this._normalizeDescriptors(\"name\",this.options.measures)},_normalizeDescriptors:function(e,t){var n,i,o,r;if(t=t||{},n={},\"[object Array]\"===Be.call(t)){for(o=0,r=t.length;o1?r[0]:t,hierarchy:o};s>1&&(i.members[i.members.length]={children:[],caption:n[d].caption,name:n[d].descriptor.name,levelName:\"MEASURES\",levelNum:\"0\",hasChildren:!1,parentName:t,hierarchy:\"MEASURES\"}),u[u.length]=i}h.push(at)}return{keys:h,tuples:u}},_sortMap:function(t,n){var i,o,r,a,s=[],l=[],d=[];for(o in t)t[o].directParentName||l.push(e.extend({},{name:o,parentName:t[o].parentName}));if(!l.length)for(o in t)l.push(e.extend({},{name:o,parentName:t[o].parentName}));for(g(l,t),r=0;r1?f[0]:t,hierarchy:m});v>1&&(s.members[s.members.length]={children:[],caption:o[a].caption,name:o[a].descriptor.name,levelName:\"MEASURES\",levelNum:\"0\",hasChildren:!0,parentName:t,hierarchy:\"MEASURES\"}),c[c.length]=s}b[h.index]=c,w[h.index]=u}return{keys:w,tuples:b}},_findExpandedMember:function(e,t){for(var n=0;n0;)if(o=l[--d].split(\"&\"),o.length>1&&(r=o[0],a=o[1],s=i[r](e),s=s!==t&&null!==s?\"\"+s:s,s!=a))return!1;return!0},_calculateAggregate:function(e,t,n){var i,o,r,a={};for(r=0;r1?r[t[0]]=Ce.getter(t[0],!0):r[n]=Ce.getter(o(n),!0);return r},_parseDescriptors:function(e){var t,n=q(e),i=j(n.root),o=n.expanded,r=[];for(t=0;t1)||n.columns&&n.columns.length||(a={root:[],expanded:[]}),E=this._asTuples(d,a,r?[]:p,n.sort?n.sort:[]),R=this._asTuples(c,s,r?p:[],n.sort?n.sort:[]),d=E.tuples,c=R.tuples,l=this._toDataArray(l,this._measuresInfo(p,r),R.keys,E.keys)):l=d=c=[],{axes:{columns:{tuples:d},rows:{tuples:c}},data:l}}}),xt=Te.extend({init:function(e,t){this.transport=t,this.options=t.options||{},this.transport.discover||Ne(e.discover)&&(this.discover=e.discover)},read:function(e){return this.transport.read(e)},update:function(e){return this.transport.update(e)},create:function(e){return this.transport.create(e)},destroy:function(e){return this.transport.destroy(e)},discover:function(e){return this.transport.discover?this.transport.discover(e):(e.success({}),t)},catalog:function(n){var i,o=this.options||{};return n===t?(o.connection||{}).catalog:(i=o.connection||{},i.catalog=n,this.options.connection=i,e.extend(this.transport.options,{connection:i}),t)},cube:function(e){var n,i=this.options||{};return e===t?(i.connection||{}).cube:(n=i.connection||{},n.cube=e,this.options.connection=n,Oe(!0,this.transport.options,{connection:n}),t)}}),Ct=Ae.extend({init:function(e){var t,o;Ae.fn.init.call(this,Oe(!0,{},{},e)),t=this.options.transport||{},\"xmla\"===(this.options.type||\"xmla\").toLowerCase()&&(this._online=!0,this.transport=new ie(t)),this._columns=i(this.options.columns),this._rows=i(this.options.rows),o=this.options.measures||[],\"[object Object]\"===Be.call(o)&&(this._measuresAxis=o.axis||\"columns\",o=o.values||[]),this._measures=n(o)},options:{serverSorting:!0,serverPaging:!0,serverFiltering:!0,serverGrouping:!0,serverAggregates:!0},axes:function(){return{columns:x(this.columns()),rows:x(this.rows())}},catalog:function(e){return e===t?this.transport.catalog():(this.transport.catalog(e),this._mergeState({}),this.read(),t)},cube:function(e){return e===t?this.transport.cube():(this.transport.cube(e),this._mergeState({}),this.read(),t)},measuresAxis:function(){return this._measuresAxis||\"columns\"},fetch:function(){\"xmla\"!==this.options.type.toLowerCase()||this._data!==t&&0!==this._data.length||this._query()},read:function(e){var t=this,n=t.trigger(Ze,{type:Ye}),i=t._params(e);n||(t.trigger(Je),t.transport.read({data:i,success:function(e){t._saveState(e),t.trigger(et,{response:e,type:Ye}),t.trigger(Qe),t._preventRefresh&&(t._preventRefresh=!1)},error:function(e){t.trigger(Xe,{error:e})}}))},_params:function(e){var t=this,n=Ae.fn._params.call(t,e);return n=Oe({connection:t.options.transport.connection,columnAxes:JSON.parse(JSON.stringify(t._columns)),rowAxes:JSON.parse(JSON.stringify(t._rows)),measuresAxis:t.measuresAxis(),measureAxes:t._measures},n),n.filter&&(n.filter=Pe(n.filter),n.filter=(n.filter||{}).filters),n.sort&&(n.sort=ze(n.sort)),n},discover:function(e){var t=this,n=t.transport;if(n.discover)return n.discover(e)},schemaMeasures:function(){var e=this;return e.discover({command:\"schemaMeasures\",restrictions:{catalogName:e.transport.catalog(),cubeName:e.transport.cube()}},function(e){return e})},schemaKPIs:function(){var e=this;return e.discover({command:\"schemaKPIs\",restrictions:{catalogName:e.transport.catalog(),cubeName:e.transport.cube()}},function(e){return e})},schemaDimensions:function(){var e=this;return e.discover({command:\"schemaDimensions\",restrictions:{catalogName:e.transport.catalog(),cubeName:e.transport.cube()}},function(e){return e})},schemaHierarchies:function(e){var t=this;return t.discover({command:\"schemaHierarchies\",restrictions:{catalogName:t.transport.catalog(),cubeName:t.transport.cube(),dimensionUniqueName:e}},function(e){return e})},schemaLevels:function(e){var t=this;return t.discover({command:\"schemaLevels\",restrictions:{catalogName:t.transport.catalog(),cubeName:t.transport.cube(),hierarchyUniqueName:e}},function(e){return e})},schemaCubes:function(){var e=this;return e.discover({command:\"schemaCubes\",restrictions:{catalogName:e.transport.catalog()}},function(e){return e})},schemaCatalogs:function(){var e=this;return e.discover({command:\"schemaCatalogs\"},function(e){return e})},schemaMembers:function(e){var t=this;return t.discover({command:\"schemaMembers\",restrictions:Oe({catalogName:t.transport.catalog(),cubeName:t.transport.cube()},e)},function(e){return e})},_saveState:function(e){var t=this;t._columnTuples=e.columns,t._rowTuples=e.rows,t._view=e.data},columns:function(e){return e===t?this._columns:(this._columns=i(e),this.read(),t)},rows:function(e){return e===t?this._rows:(this._rows=i(e),this.read(),t)},measures:function(e){return e===t?this._measures:(this._measures=n(e),this.read(),t)},_mergeState:function(e){return e=Ae.fn._mergeState.call(this,e)},_query:function(e){var t=this,n=Oe({},{sort:t.sort(),measuresAxis:t.measuresAxis(),filter:t.filter()},e),i=this._mergeState(n);return this.read(i)}}),St=Ae.extend({init:function(t){var o,r=((t||{}).schema||{}).cube,a=\"columns\",s={axes:Le,cubes:Le,catalogs:Le,measures:Le,dimensions:Le,hierarchies:Le,levels:Le,members:Le};r&&(s=e.extend(s,this._cubeSchema(r)),this.cubeBuilder=new yt(r)),Ae.fn.init.call(this,Oe(!0,{},{schema:s},t)),this.transport=new xt(this.options.transport||{},this.transport),this._columns=i(this.options.columns),this._rows=i(this.options.rows),o=this.options.measures||[],\"[object Object]\"===Be.call(o)&&(a=o.axis||\"columns\",o=o.values||[]),this._measures=n(o),this._measuresAxis=a,this._skipNormalize=0,this._axes={}},_cubeSchema:function(t){return{dimensions:function(){var e,n=[],i=t.dimensions;for(e in i)n.push({name:e,caption:i[e].caption||e,uniqueName:e,defaultHierarchy:e,type:1});return t.measures&&n.push({name:tt,caption:tt,uniqueName:tt,type:2}),n},hierarchies:function(){return[]},measures:function(){var e,n=[],i=t.measures;for(e in i)n.push({name:e,caption:e,uniqueName:e,aggregator:e});return n},members:e.proxy(function(e,n){var i,r,a=n.levelUniqueName||n.memberUniqueName,s=this.options.schema.data,l=Ne(s)?s:Ce.getter(s,!0),d=this.options.data&&l(this.options.data)||this._rawData||[],c=[],u=0,h={};if(a&&(a=a.split(\".\")[0]),!n.treeOp)return c.push({caption:t.dimensions[a].caption||a,childrenCardinality:\"1\",dimensionUniqueName:a,hierarchyUniqueName:a,levelUniqueName:a,name:a,uniqueName:a}),c;for(i=Ce.getter(o(a),!0);u0&&(this._skipNormalize-=1),this.cubeBuilder||(e=this._normalizeData({columnsLength:t.columns.tuples.length,rowsLength:t.rows.tuples.length,columnIndexes:i,rowIndexes:o,data:e})),\"rows\"==this._lastExpanded?(r=t.columns.tuples,s=this._columnMeasures(),a=_(t.columns,this._axes.columns,s),a&&(l=\"columns\",t.columns=a,b(r,a.tuples,t.rows.tuples.length,s,e),this.cubeBuilder||(e=this._normalizeData({columnsLength:y(t.columns.tuples,s),rowsLength:t.rows.tuples.length,data:e})))):\"columns\"==this._lastExpanded&&(r=t.rows.tuples,s=this._rowMeasures(),a=_(t.rows,this._axes.rows,s),a&&(l=\"rows\",t.rows=a,w(r,a.tuples,t.columns.tuples.length,s,e),this.cubeBuilder||(e=this._normalizeData({columnsLength:y(t.rows.tuples,s),rowsLength:t.columns.tuples.length,data:e})))),this._lastExpanded=null,h=this._mergeAxes(t,e,l),this._axes=h.axes,h.data},_readData:function(e){var t=this.reader.axes(e),n=this.reader.data(e);return this.cubeBuilder&&(this._rawData=n),this._processResult(n,t)},_createTuple:function(e,t,n){var i,o,r,a,s,l,d,c,u=e.members,h=u.length,p={members:[]},f=0;for(t&&(h-=1);f0&&(d=c,o-=c),r=0;r0&&(n-=l,e.splice(0,i*l)),o=0;o1&&(t=e)),t},_rowMeasures:function(){var e=this.measures(),t=[];return\"rows\"===this.measuresAxis()&&(0===this.rows().length?t=e:e.length>1&&(t=e)),t},_updateLocalData:function(e,t){this.cubeBuilder&&(t&&(this._requestData=t),e=this._processResult(e)),this._data=this._observe(e),this._ranges=[],this._addRange(this._data),this._total=this._data.length,this._pristineTotal=this._total,this._process(this._data)},data:function(e){var n=this;return e===t?n._data:(this._pristineData=e.slice(0),this._updateLocalData(e,{columns:this.columns(),rows:this.rows(),measures:this.measures()}),t)},_normalizeTuples:function(e,t,n,i){var o,r,a,s=i.length||1,l=0,d=[],c={},u=0;if(e.length){if(this._skipNormalize<=0&&!this._hasRoot(e[0],t,n)){for(this._skipNormalize=0;l=s&&(u=0),o.members[r].name!==i[u].name&&(e.splice(l,0,this._createTuple(o,i[u])),c[l]=l),l+=1,u+=1,o=e[l],s>u&&(!o||ve(a,r-1)!==ve(o,r-1))){for(;u1)for(i+=1;i 0',doesnotcontain:', InStr({0}.CurrentMember.MEMBER_CAPTION,\"{1}\")',startswith:', Left({0}.CurrentMember.MEMBER_CAPTION,Len(\"{1}\"))=\"{1}\"',endswith:', Right({0}.CurrentMember.MEMBER_CAPTION,Len(\"{1}\"))=\"{1}\"',eq:', {0}.CurrentMember.MEMBER_CAPTION = \"{1}\"',neq:', {0}.CurrentMember.MEMBER_CAPTION = \"{1}\"'},ee={schemaCubes:\"MDSCHEMA_CUBES\",schemaCatalogs:\"DBSCHEMA_CATALOGS\",schemaMeasures:\"MDSCHEMA_MEASURES\",schemaDimensions:\"MDSCHEMA_DIMENSIONS\",schemaHierarchies:\"MDSCHEMA_HIERARCHIES\",schemaLevels:\"MDSCHEMA_LEVELS\",schemaMembers:\"MDSCHEMA_MEMBERS\",schemaKPIs:\"MDSCHEMA_KPIS\"},te={read:function(e){var t,n,i,o,r,a='
          ';return a+=\"SELECT NON EMPTY {\",t=e.columns||[],n=e.rows||[],i=e.measures||[],o=\"rows\"===e.measuresAxis,r=e.sort||[],!t.length&&n.length&&(!i.length||i.length&&o)&&(t=n,n=[],o=!1),t.length||n.length||(o=!1),t.length?a+=$(t,o?[]:i,r):i.length&&!o&&(a+=V(i).join(\",\")),a+=\"} DIMENSION PROPERTIES CHILDREN_CARDINALITY, PARENT_UNIQUE_NAME ON COLUMNS\",(n.length||o&&i.length>1)&&(a+=\", NON EMPTY {\",a+=n.length?$(n,o?i:[],r):V(i).join(\",\"),a+=\"} DIMENSION PROPERTIES CHILDREN_CARDINALITY, PARENT_UNIQUE_NAME ON ROWS\"),e.filter?(a+=\" FROM \",a+=\"(\",a+=Y(e.filter,e.connection.cube),a+=\")\"):a+=\" FROM [\"+e.connection.cube+\"]\",1==i.length&&t.length&&(a+=\" WHERE (\"+V(i).join(\",\")+\")\"),a+=\"\"+e.connection.catalog+\"Multidimensional\",a.replace(/\\&/g,\"&\")},discover:function(t){t=t||{};var n='
          ';return n+=\"\"+(ee[t.command]||t.command)+\"\",n+=\"\"+Q(\"RestrictionList\",t.restrictions,!0)+\"\",t.connection&&t.connection.catalog&&(t.properties=e.extend({},{Catalog:t.connection.catalog},t.properties)),n+=\"\"+Q(\"PropertyList\",t.properties)+\"\",n+=\"\"}},ne=Ce.data.RemoteTransport.extend({init:function(e){var t=e;e=this.options=Oe(!0,{},this.options,e),Ce.data.RemoteTransport.call(this,e),Ne(t.discover)?this.discover=t.discover:\"string\"==typeof t.discover?this.options.discover={url:t.discover}:t.discover||(this.options.discover=this.options.read)},setup:function(t,n){return t.data=t.data||{},e.extend(!0,t.data,{connection:this.options.connection}),Ce.data.RemoteTransport.fn.setup.call(this,t,n)},options:{read:{dataType:\"text\",contentType:\"text/xml\",type:\"POST\"},discover:{dataType:\"text\",contentType:\"text/xml\",type:\"POST\"},parameterMap:function(e,t){return te[t](e,t)}},discover:function(t){return e.ajax(this.setup(t,\"discover\"))}}),ie=Te.extend({init:function(e){e=this.options=Oe(!0,{},this.options,e)},setup:function(t){return e.extend(!0,t||{},{connection:this.options.connection})},read:function(t){var n=this,i=n.setup(t.data,Ye),o=t.success||e.noop,r=t.error||e.noop;t.parameterMap&&(i=n.parameterMap(i,Ye)),Ve({url:n.options.read},i).then(We).then(function(e){o(e)})[\"catch\"](function(e){r(e)})},catalog:function(n){var i,o=this.options||{};return n===t?(o.connection||{}).catalog:(i=o.connection||{},i.catalog=n,this.options.connection=i,e.extend(this.transport.options,{connection:i}),t)},cube:function(e){var n,i=this.options||{};return e===t?(i.connection||{}).cube:(n=i.connection||{},n.cube=e,this.options.connection=n,Oe(!0,this.transport.options,{connection:n}),t)},discover:function(e){return Fe({url:this.options.read},e)}}),oe={cubes:{name:Ce.getter(\"CUBE_NAME['#text']\",!0),caption:Ce.getter(\"CUBE_CAPTION['#text']\",!0),description:Ce.getter(\"DESCRIPTION['#text']\",!0),type:Ce.getter(\"CUBE_TYPE['#text']\",!0)},catalogs:{name:Ce.getter(\"CATALOG_NAME['#text']\",!0),description:Ce.getter(\"DESCRIPTION['#text']\",!0)},measures:{name:Ce.getter(\"MEASURE_NAME['#text']\",!0),caption:Ce.getter(\"MEASURE_CAPTION['#text']\",!0),uniqueName:Ce.getter(\"MEASURE_UNIQUE_NAME['#text']\",!0),description:Ce.getter(\"DESCRIPTION['#text']\",!0),aggregator:Ce.getter(\"MEASURE_AGGREGATOR['#text']\",!0),groupName:Ce.getter(\"MEASUREGROUP_NAME['#text']\",!0),displayFolder:Ce.getter(\"MEASURE_DISPLAY_FOLDER['#text']\",!0),defaultFormat:Ce.getter(\"DEFAULT_FORMAT_STRING['#text']\",!0)},kpis:{name:Ce.getter(\"KPI_NAME['#text']\",!0),caption:Ce.getter(\"KPI_CAPTION['#text']\",!0),value:Ce.getter(\"KPI_VALUE['#text']\",!0),goal:Ce.getter(\"KPI_GOAL['#text']\",!0),status:Ce.getter(\"KPI_STATUS['#text']\",!0),trend:Ce.getter(\"KPI_TREND['#text']\",!0),statusGraphic:Ce.getter(\"KPI_STATUS_GRAPHIC['#text']\",!0),trendGraphic:Ce.getter(\"KPI_TREND_GRAPHIC['#text']\",!0),description:Ce.getter(\"KPI_DESCRIPTION['#text']\",!0),groupName:Ce.getter(\"MEASUREGROUP_NAME['#text']\",!0)},dimensions:{name:Ce.getter(\"DIMENSION_NAME['#text']\",!0),caption:Ce.getter(\"DIMENSION_CAPTION['#text']\",!0),description:Ce.getter(\"DESCRIPTION['#text']\",!0),uniqueName:Ce.getter(\"DIMENSION_UNIQUE_NAME['#text']\",!0),defaultHierarchy:Ce.getter(\"DEFAULT_HIERARCHY['#text']\",!0),type:Ce.getter(\"DIMENSION_TYPE['#text']\",!0)},hierarchies:{name:Ce.getter(\"HIERARCHY_NAME['#text']\",!0),caption:Ce.getter(\"HIERARCHY_CAPTION['#text']\",!0),description:Ce.getter(\"DESCRIPTION['#text']\",!0),uniqueName:Ce.getter(\"HIERARCHY_UNIQUE_NAME['#text']\",!0),dimensionUniqueName:Ce.getter(\"DIMENSION_UNIQUE_NAME['#text']\",!0),displayFolder:Ce.getter(\"HIERARCHY_DISPLAY_FOLDER['#text']\",!0),origin:Ce.getter(\"HIERARCHY_ORIGIN['#text']\",!0),defaultMember:Ce.getter(\"DEFAULT_MEMBER['#text']\",!0)},levels:{name:Ce.getter(\"LEVEL_NAME['#text']\",!0),caption:Ce.getter(\"LEVEL_CAPTION['#text']\",!0),description:Ce.getter(\"DESCRIPTION['#text']\",!0),uniqueName:Ce.getter(\"LEVEL_UNIQUE_NAME['#text']\",!0),dimensionUniqueName:Ce.getter(\"DIMENSION_UNIQUE_NAME['#text']\",!0),displayFolder:Ce.getter(\"LEVEL_DISPLAY_FOLDER['#text']\",!0),orderingProperty:Ce.getter(\"LEVEL_ORDERING_PROPERTY['#text']\",!0),origin:Ce.getter(\"LEVEL_ORIGIN['#text']\",!0),hierarchyUniqueName:Ce.getter(\"HIERARCHY_UNIQUE_NAME['#text']\",!0)},members:{name:Ce.getter(\"MEMBER_NAME['#text']\",!0),caption:Ce.getter(\"MEMBER_CAPTION['#text']\",!0),uniqueName:Ce.getter(\"MEMBER_UNIQUE_NAME['#text']\",!0),dimensionUniqueName:Ce.getter(\"DIMENSION_UNIQUE_NAME['#text']\",!0),hierarchyUniqueName:Ce.getter(\"HIERARCHY_UNIQUE_NAME['#text']\",!0),levelUniqueName:Ce.getter(\"LEVEL_UNIQUE_NAME['#text']\",!0),childrenCardinality:Ce.getter(\"CHILDREN_CARDINALITY['#text']\",!0)}},re=[\"axes\",\"catalogs\",\"cubes\",\"dimensions\",\"hierarchies\",\"levels\",\"measures\"],ae=Ce.data.XmlDataReader.extend({init:function(e){Ce.data.XmlDataReader.call(this,e),this._extend(e)},_extend:function(e){for(var t,n,i=0,o=re.length;i${data.name || data}'+(i.options.enabled?'':\"\")+\"
        \"),i.template=Ce.template(i.options.template),i.emptyTemplate=Ce.template(i.options.emptyTemplate),i._sortable(),i.element.on(\"click\"+rt,\".k-button,.k-item\",function(t){var n=e(t.target),o=n.closest(\"[\"+Ce.attr(\"name\")+\"]\").attr(Ce.attr(\"name\"));o&&(n.hasClass(\"k-i-close\")?i.remove(o):i.options.sortable&&n[0]===t.currentTarget&&i.sort({field:o,dir:n.find(\".k-i-sort-asc-sm\")[0]?\"desc\":\"asc\"}))}),(n.filterable||n.sortable)&&(i.fieldMenu=new Se.PivotFieldMenu(i.element,{messages:i.options.messages.fieldMenu,filter:\".k-setting-fieldmenu\",filterable:n.filterable,sortable:n.sortable,dataSource:i.dataSource})),i.refresh()},options:{name:\"PivotSettingTarget\",template:null,filterable:!1,sortable:!1,emptyTemplate:\"
        ${data}
        \",setting:\"columns\",enabled:!0,messages:{empty:\"Drop Fields Here\"}},setDataSource:function(e){this.dataSource.unbind(Qe,this._refreshHandler),this.dataSource=this.options.dataSource=e,this.fieldMenu&&this.fieldMenu.setDataSource(e),e.first(Qe,this._refreshHandler),this.refresh()},_sortable:function(){var e=this;e.options.enabled&&(this.sortable=this.element.kendoSortable({connectWith:this.options.connectWith,hint:e.options.hint,filter:\">*:not(.k-empty)\",cursor:\"move\",start:function(e){e.item.trigger(\"focus\").trigger(\"blur\")},change:function(t){var n=t.item.attr(Ce.attr(\"name\"));\"receive\"==t.action?e.add(n):\"remove\"==t.action?e.remove(n):\"sort\"==t.action&&e.move(n,t.newIndex)}}).data(\"kendoSortable\"))},_isKPI:function(e){return\"kpi\"===e.type||e.measure},validate:function(e){var t,n,i=2==e.type||\"aggregator\"in e||this._isKPI(e);return i?\"measures\"===this.options.setting:\"measures\"===this.options.setting?i:(t=this.dataSource[this.options.setting](),n=e.defaultHierarchy||e.uniqueName,!(W(n,t)>-1)&&(t=this.dataSource[\"columns\"===this.options.setting?\"rows\":\"columns\"](),!(W(n,t)>-1)))},add:function(e){var t,n,i=this.dataSource[this.options.setting]();for(e=Array.isArray(e)?e.slice(0):[e],t=0,n=e.length;t-1&&(e=n.splice(i,1)[0],n.splice(t,0,e),this.dataSource[this.options.setting](n))},remove:function(e){var t=this.dataSource[this.options.setting](),n=W(e,t),i=this.dataSource.sort(),o=this.dataSource.filter();n>-1&&(o&&(o.filters=le(o.filters,e),this.dataSource._filter.filters=o.filters,o.filters.length||(this.dataSource._filter=null)),i&&(i=le(i,e),this.dataSource._sort=i),t.splice(n,1),this.dataSource[this.options.setting](t))},sort:function(e){var t=this.options.sortable,n=t===!0||t.allowUnsort,i=n&&\"asc\"===e.dir,o=this.dataSource.sort()||[],r=le(o,e.field);i&&o.length!==r.length&&(e=null),e&&r.push(e),this.dataSource.sort(r)},refresh:function(){var e,n=\"\",i=this.dataSource[this.options.setting](),o=i.length,r=0;if(o)for(;r*:not(.k-empty)\",cursor:\"move\",start:function(e){e.item.focus().blur()},change:function(t){var n=t.item.find(\".k-chip-label\").text();\"receive\"==t.action?e.add(n):\"remove\"==t.action?e.remove(n):\"sort\"==t.action&&e.move(n,t.newIndex)}}).data(\"kendoSortable\")},add:function(t){var n,i,o=this._state();for(t=e.isArray(t)?t.slice(0):[t],n=0,i=t.length;n-1&&(e=n.splice(i,1)[0],n.splice(t,0,e),this._state(n),this._redraw())},remove:function(e){var t=this._state(),n=W(e,t),i=this.dataSource.sort(),o=this.dataSource.filter();n>-1&&(o&&(o.filters=le(o.filters,e),this._savedFilter=this.dataSource._filter,this._savedFilter.filters=o.filters,o.filters.length||(this._savedFilter=null)),i&&(i=le(i,e),this._sortState=i),t.splice(n,1),this._state(t),this._redraw())},_emptyState:function(e){var t=this;e?t.element.html(this.options.messages.empty).addClass(\"k-settings-description\").removeClass(\"k-chip-list\"):t.element.removeClass(\"k-settings-description\").addClass(\"k-chip-list\")},_redraw:function(){var e=this._state()||[];this._emptyState(!e.length),e.length&&this.element.html(this._targetsHTML(e))},_targetsHTML:function(e){var n,i=\"\",o=0,r=this.options,a=!1;if(\"measures\"!=this.options.setting&&(a=r.filterable||r.sortable),e.length)for(;o{0}\",e.text))}}),ce=Ie.extend({init:function(t,n){var i=this;Ie.fn.init.call(i,t,n),i.element=e(t),i.options=n,i._addClasses()},options:{name:\"PivotContainer\",configuratorPosition:\"left\"},setOptions:function(e){var t=this;Ce.deepExtend(t.options,e),this.init(this.element,this.options)},_addClasses:function(){var e,t=this.options;switch(this.element.removeClass(\"k-flex-row k-flex-row-reverse k-flex-column k-flex-column-reverse\"),t.configuratorPosition){case\"right\":e=\"k-flex-row\";break;case\"left\":e=\"k-flex-row-reverse\";break;case\"bottom\":e=\"k-flex-column\";break;case\"top\":e=\"k-flex-column-reverse\";break;default:e=\"k-flex-row\"}this.element.addClass(\"k-d-flex k-pos-relative\").addClass(e)}}),ue=Ie.extend({init:function(t,n){var i=this;Ie.fn.init.call(i,t,n),i._dataSource(),i._bindConfigurator(),i._wrapper(),i._columnHeadersWrapper=e('
        '),i._rowHeadersWrapper=e('
        '),i._contentWrapper=e('
        '),i.wrapper.append(i._columnHeadersWrapper),i.wrapper.append(i._rowHeadersWrapper),i.wrapper.append(i._contentWrapper),i._columnBuilder=new be({template:this.options.columnHeaderTemplate,axes:\"columns\"}),i._rowBuilder=new be({template:this.options.rowHeaderTemplate,axes:\"rows\"}),i._contentBuilder=new _e({template:this.options.dataCellTemplate||vt}),i._scrollable(),i._rowHeadersWrapper.add(i._columnHeadersWrapper).on(\"click\",\"span.k-icon\",function(){var t,n,o,r=e(this),a=r.parent().attr(Ce.attr(\"key\")),s=r.hasClass(\"k-i-arrow-chevron-up\"),l=0!==r.closest(\".k-pivotgrid-row-headers\").length,d=a.split(\",\"),c=s?ut:dt;i.trigger(c,{path:d,axis:l?\"rows\":\"columns\"})||(t={type:\"HEADERS_ACTION_TOGGLE\",payload:d,tree:l?i._rowBuilder.getTree():i._columnBuilder.getTree()},n=l?i.dataSource._rows:i.dataSource._columns,o=$e(n,t),i.dataSource._preventRefresh=!0,l?i.dataSource.rows(o):i.dataSource.columns(o))}),i.options.autoBind&&i.dataSource.fetch(),Ce.notify(i)},events:[st,lt,dt,ut],options:{name:\"PivotGridV2\",autoBind:!0,height:null,columnWidth:null,configurator:\"\",columnHeaderTemplate:null,rowHeaderTemplate:null,dataCellTemplate:null},destroy:function(){var t=this;Ie.fn.destroy.call(t),t._windowResizeHandler&&(e(window).off(Ke+rt,t._windowResizeHandler),t._windowResizeHandler=null)},_dataSource:function(){var t=this,n=t.options.dataSource;n=e.isArray(n)?{data:n}:n,t.dataSource&&this._refreshHandler?t.dataSource.unbind(Qe,t._refreshHandler).unbind(Je,t._progressHandler).unbind(Xe,t._errorHandler):(t._refreshHandler=e.proxy(t.refresh,t),t._progressHandler=e.proxy(t._requestStart,t),t._errorHandler=e.proxy(t._error,t)),t.dataSource=Ce.data.PivotDataSourceV2.create(n).bind(Qe,t._refreshHandler).bind(Je,t._progressHandler).bind(Xe,t._errorHandler)},_resize:function(){var e=this;e.wrapper[0].style.setProperty(\"--kendo-scrollbar-width\",Ce.format(\"{0}px\",p()))},_scrollable:function(){var t=this,n=t._columnHeadersWrapper,i=t._rowHeadersWrapper;t._resize(),t._windowResizeHandler=e.proxy(t._resize,t),t._contentWrapper.scroll(function(){Ce.scrollLeft(n,this.scrollLeft),i.scrollTop(this.scrollTop)}),i.bind(\"DOMMouseScroll\"+rt+\" mousewheel\"+rt,e.proxy(t._wheelScroll,t)),e(window).on(Ke+rt,t._windowResizeHandler)},_wheelScroll:function(t){var n,i;t.ctrlKey||(n=Ce.wheelDeltaY(t),i=this._contentWrapper.scrollTop(),n&&(t.preventDefault(),e(t.currentTarget).one(\"wheel\"+rt,!1),this._rowHeadersWrapper.scrollTop(i+-n),this._contentWrapper.scrollTop(i+-n)))},_wrapper:function(){var e=this.options.height;this.wrapper=this.element.addClass(\"k-widget k-pivotgrid\"),this.wrapper.append(''),e&&this.wrapper.css(\"height\",e)},_progress:function(e){Ce.ui.progress(this.wrapper,e)},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_updateDimensions:function(){var e=this;e.wrapper.css({\"grid-template-columns\":Ce.format(\"{0}px 1fr\",e._rowHeadersWrapper.find(\".k-pivotgrid-table\")[0].offsetWidth),\"grid-template-rows\":Ce.format(\"{0}px 1fr\",e._columnHeadersWrapper.find(\".k-pivotgrid-table\")[0].offsetHeight)})},_setContentWidth:function(){var e,t,n,i,o;this.options.columnWidth&&(e=this._contentWrapper.find(\"table\"),t=this._columnHeadersWrapper.children(\"table\"),n=e.children(\"colgroup\").children().length,i=n*this.options.columnWidth,o=Math.ceil(i/this._contentWrapper.width()*100),o<100&&(o=100),e.add(t).css(\"width\",o+\"%\"))},_bindConfigurator:function(){var t=this.options.configurator;t&&e(t).kendoPivotConfiguratorV2(\"setDataSource\",this.dataSource)},cellInfoByElement:function(t){return t=e(t),this.cellInfo(t.index(),t.parent(\"tr\").index())},cellInfo:function(e,t){var n,i,o=this._contentBuilder;return e>=o.columnsCount||e<0||t>=o.rowsCount||t<0?null:(n=t*o.columnsCount+e,i=o.hash[n<0?0:n],{columnTuple:i.columnTuple,rowTuple:i.rowTuple,dataItem:i.data\n})},refresh:function(){var e=this,t=e.dataSource;e.trigger(st,{action:\"rebind\"})||(e._columnBuilder.setTuples(t._columnTuples),e._columnHeadersWrapper.html(e._columnBuilder.build()),e._rowBuilder.setTuples(t._rowTuples),e._rowHeadersWrapper.html(e._rowBuilder.build()),e._contentBuilder.setRowColumnInfo({columnHeaderLeafs:e._columnBuilder.getHeaderLeafs(),rowHeaderLeafs:e._rowBuilder.getHeaderLeafs(),columnHeaderBreadth:e._columnBuilder.getBreadth(),rowHeaderDepth:e._rowBuilder.getBreadth(),data:t._view}),e._contentWrapper.html(e._contentBuilder.build()),e._setContentWidth(),e._updateDimensions(),e._progress(!1),e.trigger(lt))}}),Se.plugin(de),Se.plugin(ce),Se.plugin(ue),he=Ie.extend({init:function(n,i){var o,r,a=this;Ie.fn.init.call(a,n,i),a._dataSource(),a._bindConfigurator(),a._wrapper(),a._createLayout(),a._columnBuilder=o=new we,a._rowBuilder=r=new ke,a._contentBuilder=new ye,a._templates(),a.columnsHeader.add(a.rowsHeader).on(\"click\",\"span.k-icon\",function(){var n,i,s,l,d=e(this),c=o,u=\"expandColumn\",h=d.attr(Ce.attr(\"path\")),p={axis:\"columns\",path:e.parseJSON(h)};d.parent().is(\"td\")&&(c=r,u=\"expandRow\",p.axis=\"rows\"),i=d.hasClass(ht),s=c.metadata[h],l=s.expanded===t,n=i?ut:dt,p.childrenLoaded=s.maxChildren>s.children,a.trigger(n,p)||(c.metadata[h].expanded=!i,d.toggleClass(ht,!i).toggleClass(pt,i),!i&&l?a.dataSource[u](p.path):a.refresh())}),a._scrollable(),a.options.autoBind&&a.dataSource.fetch(),Ce.notify(a)},events:[st,lt,dt,ut],options:{name:\"PivotGrid\",autoBind:!0,reorderable:!0,filterable:!1,sortable:!1,height:null,columnWidth:100,configurator:\"\",columnHeaderTemplate:null,rowHeaderTemplate:null,dataCellTemplate:null,kpiStatusTemplate:null,kpiTrendTemplate:null,messages:{measureFields:\"Drop Data Fields Here\",columnFields:\"Drop Column Fields Here\",rowFields:\"Drop Rows Fields Here\"}},_templates:function(){var e=this.options.columnHeaderTemplate,t=this.options.rowHeaderTemplate,n=this.options.dataCellTemplate,i=this.options.kpiStatusTemplate,o=this.options.kpiTrendTemplate;this._columnBuilder.template=Ce.template(e||ft,{useWithBlock:!!e}),this._contentBuilder.dataTemplate=Ce.template(n||vt,{useWithBlock:!!n}),this._contentBuilder.kpiStatusTemplate=Ce.template(i||mt,{useWithBlock:!!i}),this._contentBuilder.kpiTrendTemplate=Ce.template(o||gt,{useWithBlock:!!o}),this._rowBuilder.template=Ce.template(t||ft,{useWithBlock:!!t})},_bindConfigurator:function(){var t=this.options.configurator;t&&e(t).kendoPivotConfigurator(\"setDataSource\",this.dataSource)},cellInfoByElement:function(t){return t=e(t),this.cellInfo(t.index(),t.parent(\"tr\").index())},cellInfo:function(e,t){var n,i=this._contentBuilder,o=i.columnIndexes[e||0],r=i.rowIndexes[t||0];return o&&r?(n=r.index*i.rowLength+o.index,{columnTuple:o.tuple,rowTuple:r.tuple,measure:o.measure||r.measure,dataItem:this.dataSource.view()[n]}):null},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.measuresTarget&&this.measuresTarget.setDataSource(e),this.rowsTarget&&this.rowsTarget.setDataSource(e),this.columnsTarget&&this.columnsTarget.setDataSource(e),this._bindConfigurator(),this.options.autoBind&&e.fetch()},setOptions:function(e){Ie.fn.setOptions.call(this,e),this._templates()},destroy:function(){Ie.fn.destroy.call(this),clearTimeout(this._headerReflowTimeout)},_dataSource:function(){var t=this,n=t.options.dataSource;n=Array.isArray(n)?{data:n}:n,t.dataSource&&this._refreshHandler?t.dataSource.unbind(Qe,t._refreshHandler).unbind(nt,t._stateResetHandler).unbind(Je,t._progressHandler).unbind(Xe,t._errorHandler):(t._refreshHandler=e.proxy(t.refresh,t),t._progressHandler=e.proxy(t._requestStart,t),t._stateResetHandler=e.proxy(t._stateReset,t),t._errorHandler=e.proxy(t._error,t)),t.dataSource=Ce.data.PivotDataSource.create(n).bind(Qe,t._refreshHandler).bind(Je,t._progressHandler).bind(nt,t._stateResetHandler).bind(Xe,t._errorHandler)},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_stateReset:function(){this._columnBuilder.reset(),this._rowBuilder.reset()},_wrapper:function(){var e=this.options.height;this.wrapper=this.element.addClass(\"k-widget k-pivot\"),e&&this.wrapper.css(\"height\",e)},_measureFields:function(){this.measureFields=e(ot).addClass(\"k-pivot-toolbar k-toolbar k-header k-settings-measures\"),this.measuresTarget=this._createSettingTarget(this.measureFields,{setting:\"measures\",messages:{empty:this.options.messages.measureFields}})},_createSettingTarget:function(t,n){var i='${data.name}',o=n.sortable,r=\"\";return o&&(r+=\"#if (data.sortIcon) {#\",r+='',r+=\"#}#\"),(n.filterable||o)&&(r+=''),this.options.reorderable&&(r+=''),r&&(i+=''+r+\"\"),i+=\"\",new Ce.ui.PivotSettingTarget(t,e.extend({template:i,emptyTemplate:'${data}',enabled:this.options.reorderable,dataSource:this.dataSource},n))},_initSettingTargets:function(){this.columnsTarget=this._createSettingTarget(this.columnFields,{connectWith:this.rowFields,setting:\"columns\",filterable:this.options.filterable,sortable:this.options.sortable,messages:{empty:this.options.messages.columnFields,fieldMenu:this.options.messages.fieldMenu}}),this.rowsTarget=this._createSettingTarget(this.rowFields,{connectWith:this.columnFields,setting:\"rows\",filterable:this.options.filterable,sortable:this.options.sortable,messages:{empty:this.options.messages.rowFields,fieldMenu:this.options.messages.fieldMenu}})},_createLayout:function(){var t=this,n=e(_t),i=n.find(\".k-pivot-rowheaders\"),o=n.find(\".k-pivot-table\"),r=e(ot).addClass(\"k-grid k-widget\");t._measureFields(),t.columnFields=e(ot).addClass(\"k-pivot-toolbar k-toolbar k-header k-settings-columns\"),t.rowFields=e(ot).addClass(\"k-pivot-toolbar k-toolbar k-header k-settings-rows\"),t.columnsHeader=e('
        ').wrap('
        '),t.columnsHeader.parent().css(\"padding-right\",Ce.support.scrollbar()),t.rowsHeader=e('
        '),t.content=e('
        '),i.append(t.measureFields),i.append(t.rowFields),i.append(t.rowsHeader),r.append(t.columnsHeader.parent()),r.append(t.content),o.append(t.columnFields),o.append(r),t.wrapper.append(n),t.columnsHeaderTree=new Ce.dom.Tree(t.columnsHeader[0]),t.rowsHeaderTree=new Ce.dom.Tree(t.rowsHeader[0]),t.contentTree=new Ce.dom.Tree(t.content[0]),t._initSettingTargets()},_progress:function(e){Ce.ui.progress(this.wrapper,e)},_resize:function(){this.content[0].firstChild&&(this._setSectionsWidth(),this._setSectionsHeight(),this._setContentWidth(),this._setContentHeight(),this._columnHeaderReflow())},_columnHeaderReflow:function(){var e=this.columnsHeader.children(\"table\");Ce.support.browser.mozilla&&(clearTimeout(this._headerReflowTimeout),e.css(\"table-layout\",\"auto\"),this._headerReflowTimeout=setTimeout(function(){e.css(\"table-layout\",\"\")}))},_setSectionsWidth:function(){var e=this.rowsHeader,t=e.parent(\".k-pivot-rowheaders\").width(it),n=Math.max(Ee(this.measureFields),Ee(this.rowFields));n=Math.max(e.children(\"table\").width(),n),t.width(n)},_setSectionsHeight:function(){var e=this.measureFields.height(it).height(),t=this.columnFields.height(it).height(),n=this.rowFields.height(it).innerHeight(),i=this.columnsHeader.height(it).innerHeight(),o=n-this.rowFields.height(),r=t>e?t:e,a=i>n?i:n;this.measureFields.height(r),this.columnFields.height(r),this.rowFields.height(a-o),this.columnsHeader.height(a)},_setContentWidth:function(){var e=this.content.find(\"table\"),t=this.columnsHeader.children(\"table\"),n=e.children(\"colgroup\").children().length,i=n*this.options.columnWidth,o=Math.ceil(i/this.content.width()*100);o<100&&(o=100),e.add(t).css(\"width\",o+\"%\"),this._resetColspan(t)},_setContentHeight:function(){var e=this,n=e.content,i=e.rowsHeader,o=e.wrapper.innerHeight(),r=Ce.support.scrollbar(),a=n[0].offsetHeight===n[0].clientHeight,s=e.options.height;if(e.wrapper.is(\":visible\")){if(!o||!s)return a&&(r=0),n.height(\"auto\"),i.height(n.height()-r),t;o-=Re(e.columnFields),o-=Re(e.columnsHeader.parent()),o<=2*r&&(o=2*r+1,a||(o+=r)),n.height(o),a&&(r=0),i.height(o-r)}},_resetColspan:function(e){var n=this,i=e.children(\"tbody\").children().first().children().first();n._colspan===t&&(n._colspan=i.attr(\"colspan\")),i.attr(\"colspan\",1),clearTimeout(n._layoutTimeout),n._layoutTimeout=setTimeout(function(){i.attr(\"colspan\",n._colspan),n._colspan=t})},_axisMeasures:function(e){var t=[],n=this.dataSource,i=n.measures(),o=i.length>1||i[0]&&i[0].type;return n.measuresAxis()===e&&(0===n[e]().length||o)&&(t=i),t},items:function(){return[]},refresh:function(){var e,t=this,n=t.dataSource,i=n.axes(),o=(i.columns||{}).tuples||[],r=(i.rows||{}).tuples||[],a=t._columnBuilder,s=t._rowBuilder,l={},d={};t.trigger(st,{action:\"rebind\"})||(a.measures=t._axisMeasures(wt),s.measures=t._axisMeasures(bt),t.columnsHeaderTree.render(a.build(o)),t.rowsHeaderTree.render(s.build(r)),l={indexes:a._indexes,measures:a.measures,metadata:a.metadata},d={indexes:s._indexes,measures:s.measures,metadata:s.metadata},t.contentTree.render(t._contentBuilder.build(n.view(),l,d)),t._resize(),t.touchScroller?t.touchScroller.contentResized():(e=Ce.touchScroller(t.content),e&&e.movable&&(t.touchScroller=e,e.movable.bind(\"change\",function(e){Ce.scrollLeft(t.columnsHeader,-e.sender.x),t.rowsHeader.scrollTop(-e.sender.y)}))),t._progress(!1),t.trigger(lt))},_scrollable:function(){var t=this,n=t.columnsHeader,i=t.rowsHeader;t.content.on(\"scroll\",function(){Ce.scrollLeft(n,this.scrollLeft),i.scrollTop(this.scrollTop)}),i.on(\"DOMMouseScroll\"+rt+\" mousewheel\"+rt,e.proxy(t._wheelScroll,t))},_wheelScroll:function(t){var n,i;t.ctrlKey||(n=Ce.wheelDeltaY(t),i=this.content.scrollTop(),n&&(t.preventDefault(),e(t.currentTarget).one(\"wheel\"+rt,!1),this.rowsHeader.scrollTop(i+-n),this.content.scrollTop(i+-n)))}}),pe=Ce.dom.element,fe=Ce.dom.html,me=function(e,t){return{maxChildren:0,children:0,maxMembers:0,members:0,measures:1,levelNum:e,parentMember:0!==t}},ge=function(e,t){for(var n=[],i=0;i<=t;i++)n.push(e.members[i].name);return n},ve=function(e,t){for(var n=\"\",i=0;i<=t;i++)n+=e.members[i].name;return n},_e=Te.extend({init:function(e){this.template=Ce.template(e.template),this.hash=[]},setRowColumnInfo:function(e){this.data=e.data,this.columnHeaderLeafs=e.columnHeaderLeafs,this.rowHeaderLeafs=e.rowHeaderLeafs,this.columnHeaderBreadth=e.columnHeaderBreadth,this.rowHeaderDepth=e.rowHeaderDepth,this.hash.length=0},addColElements:function(e){var t,n=\"\";for(t=0;t\";this.table.find(\"colgroup\").append(n)},addRowElements:function(t){var n,i,o=this,r=o.table.find(\"tbody\");for(i=0;i'),r.append(n),o.addColumCell(n,t[i],i);this.rowsCount=t.length},addColumCell:function(t,n,i){var o,r,a,s=this;for(o=0;o'),(this.rowHeaderLeafs[i].total||this.columnHeaderLeafs[o].total)&&a.addClass(\"k-pivotgrid-header-total\"),a.append(s.template({dataItem:r.data,rowTuple:r.rowTuple,columnTuple:r.columnTuple})),this.hash.push(r),t.append(a))},build:function(){var t=qe((this.data||[]).slice(),this.columnHeaderLeafs,this.rowHeaderLeafs,this.columnHeaderBreadth,this.rowHeaderDepth),n=this,i=e(\"
        \");return n.table=i,n.addColElements(this.columnHeaderLeafs.length),n.addRowElements(t),this.rowsCount=t.length,this.columnsCount=this.columnHeaderLeafs.length,n.table}}),be=Te.extend({init:function(e){this.tuples=e.tuples,this.axes=e.axes,this.headerTemplate=Ce.template(ct),e.template&&(this.template=Ce.template(e.template))},setTuples:function(e){this.tuples=e},addColElements:function(e){var t,n=\"\";for(t=0;t\";this.table.find(\"colgroup\").append(n)},addRowElements:function(t){var n,i,o=this,r=o.table.find(\"tbody\");for(i=0;i'),r.append(n),o.addColumCell(n,t[i])},addColumCell:function(t,n){var i,o,r,a=this;for(r=0;r\"),l.table=t,l.addColElements(\"columns\"==this.axes?r.length:s),l.addRowElements(o),l.table},getTree:function(){return this._tree},getBreadth:function(){return this._breadth},getHeaderLeafs:function(){return this._headerLeafs}}),we=Te.extend({init:function(){this.measures=1,this.metadata={}},build:function(e){var t=this._tbody(e),n=this._colGroup();return[pe(\"table\",null,[n,t])]},reset:function(){this.metadata={}},_colGroup:function(){for(var e=this._rowLength(),t=[],n=0;n1&&(l.attr.colSpan=p,o.colSpan+=p-1));return h.maxMembers1&&(i.attr.rowSpan=y.rowSpan),s.children=y.rowSpan,o=this._cell(\"k-grid-footer\",[this._content(p,e)],p),o.colSpan=x,a=this._row([o]),a.colSpan[\"dim\"+t]=o,a.allCell=!0,u[b+p.name+\"all\"]=a,f&&(r=this._buildRows(e,t+1),o.attr.rowSpan=r.rowSpan),y.rowSpan+=a.rowSpan,s.members=a.rowSpan}else f&&(y.hasChild=!1,this._buildRows(e,t+1),(o||i).attr.rowSpan=y.rowSpan,s.members=y.rowSpan);return s.maxChildren-1){for(r=0;r=0;else for(;a0}}},transport:{read:function(t){var n=e.dataSource.transport.catalog(),i=e.dataSource.transport.cube(),o={catalogName:n,cubeName:i},a={command:\"schemaMembers\"},s=e.treeView.dataSource.get(t.data.uniqueName),l=t.data.uniqueName;l?(o.memberUniqueName=s.uniqueName.replace(/\\&/g,\"&\"),o.treeOp=1):o.levelUniqueName=e.currentMember+\".[(ALL)]\",a.connection={catalog:n,cube:i},a.restrictions=o,e.dataSource.discover(a).then(function(n){s&&!s.checked||r(e.dataSource.filter(),e.currentMember,n),t.success(n)})}}})},_click:function(t){var n=e(t.currentTarget),i=n.next();n.hasClass(\"k-expander\")?this._toggle(i,n):n.hasClass(\"k-columnmenu-item\")&&n.find(\".k-i-sort-asc-sm\").length?this._sort(\"asc\"):n.hasClass(\"k-columnmenu-item\")&&n.find(\".k-i-sort-desc-sm\").length&&this._sort(\"desc\")},_attachFilterHandlers:function(){this._applyIncludesProxy=u(this._applyIncludes,this),this._resetIncludesProxy=u(this._resetIncludes,this),this.menu.element.on(\"click\"+h,\".k-button-includes-reset\",this._resetIncludesProxy).on(\"click\"+h,\".k-button-includes-apply\",this._applyIncludesProxy)},_includesHandler:function(t){t.preventDefault(),e(t.target).hasClass(\"k-button-includes-reset\")?this._resetIncludes():this._applyIncludes()},_applyIncludes:function(e){var t,n,i;e.preventDefault(),t=this.treeView.dataSource.view(),n=this.dataSource.filter(),i=s(t,n,this.currentMember),this._includesCache={},i&&(this.dataSource._preventRefresh=!0,this.dataSource.filter(i),this.menu.close())},_resetIncludes:function(t){var n,i,o;t.preventDefault(),n=this;for(o in n._includesCache)i=e(n._includesCache[o]).find(\".k-checkbox\"),i.prop(\"checked\",!i.prop(\"checked\")),n.treeView._checkboxChange({target:i}),delete n._includesCache[o]},_initFilterForm:function(){var e=this.menu.element.find(\".kendo-grid-filter-menu-container\"),t=u(this._filter,this);this._filterOperator=new l.ui.DropDownList(e.find(\"select\"),{popup:{appendTo:document.body}}),this._filterValue=e.find(\".k-textbox\"),this._filterForm=e,this._updateFilterAriaLabel(),e.on(\"click\"+h,\".k-button-filter\",t).on(\"click\"+h,\".k-button-filter-clear\",u(this._reset,this))},_updateFilterAriaLabel:function(){var e=this._filterOperator.value(),t=this.options.messages.operators[e];this._filterForm.find(\"select\").attr(m,t)},_filter:function(e){var i,o,r=this,a=n(r._filterValue.val(),r.dataSource,r.currentMember);return e.preventDefault(),\"\"===a?(r.menu.close(),t):(i={field:r.currentMember,operator:r._filterOperator.value(),value:a},o=r._clearFilters(r.currentMember),o.filters.push(i),r.dataSource._preventRefresh=!0,r.dataSource.filter(o),r.menu.close(),t)},_reset:function(e){var t=this,n=t._clearFilters(t.currentMember);e.preventDefault(),n.filters[0]||(n={}),t.dataSource._preventRefresh=!0,t.dataSource.filter(n),t._setFilterForm(null),t.menu.close()},_clearFilters:function(e){var t,n,i=this.dataSource.filter()||{},r=0;for(i.filters=i.filters||[],t=o(i,e),n=t.length;r0}}},transport:{read:function(t){var n={},i=e.treeView.dataSource.get(t.data.uniqueName),o=t.data.uniqueName;o?(n.memberUniqueName=i.uniqueName.replace(/\\&/g,\"&\"),n.treeOp=1):n.levelUniqueName=e.currentMember+\".[(ALL)]\",e.dataSource.schemaMembers(n).done(function(n){r(e.dataSource.filter(),e.currentMember,n),t.success(n)}).fail(t.error)}}})},_createTreeView:function(e){var t=this;t.treeView=new d.TreeView(e,{autoBind:!1,dataSource:t._treeViewDataSource(),dataTextField:\"caption\",template:\"#: data.item.caption || data.item.name #\",checkboxes:{checkChildren:!0},dataBound:function(){d.progress(t.includeWindow.element,!1)}})},_menuOpen:function(t){if(t.event){var n=l.attr(\"name\");this.currentMember=e(t.event.target).closest(\"[\"+n+\"]\").attr(n),this.options.filterable&&this._setFilterForm(o(this.dataSource.filter(),this.currentMember)[0])}},_select:function(t){var n=e(t.item);e(\".k-pivot-filter-window\").not(this.includeWindow.element).kendoWindow(\"close\"),n.hasClass(\"k-include-item\")?this.includeWindow.center().open():n.hasClass(\"k-sort-asc\")?this._sort(\"asc\"):n.hasClass(\"k-sort-desc\")?this._sort(\"desc\"):n.hasClass(f)&&this._updateFilterAriaLabel()},_windowOpen:function(){this.treeView||this._createTreeView(this.includeWindow.element.find(\".k-treeview\")),d.progress(this.includeWindow.element,!0),this.treeView.dataSource.read()},destroy:function(){p.fn.destroy.call(this),this.menu&&(this.menu.destroy(),this.menu=null),this.treeView&&(this.treeView.destroy(),this.treeView=null),this.includeWindow&&(this.includeWindow.destroy(),this.includeWindow=null),this.wrapper=null,this.element=null}}),_='
        #=messages.info#
        ',b='
        #:messages.sortAscending#
        #:messages.sortDescending#
        #:messages.include#
        #:messages.filterFields#
        ',w='
          # if (sortable) {#
        • ${messages.sortAscending}
        • ${messages.sortDescending}
        • # if (filterable) {#
        • # } ## } ## if (filterable) {#
        • ${messages.include}
        • ${messages.filterFields}
          • '+_+\"
        • # } #
        \",k='
        ';d.plugin(v),d.plugin(g)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.filter.min\",[\"kendo.core.min\",\"kendo.buttongroup.min\"],e)}(function(){var e={number:\"\",string:\"\",\"boolean\":\"\",date:\"\"},t=\"\",n=\"
        #for(var op in operators){##=operators[op]##}#
        \",i=\"
        \",o=\"
        \"+n+\"
        \",r=\"
      • \"+n+\"
      • \",a=\"
      • \";return function(n){function s(e){var t,n;for(t in e)if(n=e[t],n.handler&&\"function\"==typeof n.handler||\"object\"==typeof n&&null!==n&&s(n))return!0;return!1}function l(e,t){var n,i;if(e.uid===t)return e;if(e.filters)for(n=0;n
        ').insertAfter(o.element.children().eq(0))),i=o._createPreview(o.filterModel.toJSON()),o._previewContainer.html(i)),o._attachEvents(),o.hasCustomOperators()},events:[p],options:{name:\"Filter\",dataSource:null,expression:null,applyButton:!1,fields:[],mainLogic:\"and\",messages:{and:\"And\",or:\"Or\",apply:\"Apply\",close:\"Close\",addExpression:\"Add Expression\",fields:\"Fields\",operators:\"Operators\",addGroup:\"Add Group\"},operators:{string:{eq:m,neq:g,startswith:\"Starts with\",contains:\"Contains\",doesnotcontain:\"Does not contain\",endswith:\"Ends with\",isnull:\"Is null\",isnotnull:\"Is not null\",isempty:\"Is empty\",isnotempty:\"Is not empty\",isnullorempty:\"Has no value\",isnotnullorempty:\"Has value\"},number:{eq:m,neq:g,gte:\"Is greater than or equal to\",gt:\"Is greater than\",lte:\"Is less than or equal to\",lt:\"Is less than\",isnull:\"Is null\",isnotnull:\"Is not null\"},date:{eq:m,neq:g,gte:\"Is after or equal to\",gt:\"Is after\",lte:\"Is before or equal to\",lt:\"Is before\",isnull:\"Is null\",isnotnull:\"Is not null\"},\"boolean\":{eq:m,neq:g}}},applyFilter:function(){var e=this.filterModel.toJSON();this._hasCustomOperators&&this._mapOperators(e),this._hasFieldsFilter(e.filters||[])?(this._removeEmptyGroups(e.filters),this.dataSource.filter(e)):this.dataSource.filter({})},destroy:function(){this.element.off(f),d.destroy(this.element.find(\".k-filter-group-main\")),this._previewContainer=null,this._applyButton=null,this._modelChangeHandler=null,u.fn.destroy.call(this)},setOptions:function(e){d.deepExtend(this.options,e),this.destroy(),this.element.empty(),this.init(this.element,this.options)},getOptions:function(){var e=n.extend(!0,{},this.options);return delete e.dataSource,e.expression=this.filterModel.toJSON(),e},_addExpressionTree:function(e){var t,n;if(e.filters)for(t=this.element.find(\"[id=\"+e.uid+\"]\"),n=0;n\").appendTo(e.closest(\"li\"))),u=n(d.template(a)({fields:o._fields,operators:o.operators[c.type],close:o.options.messages.close,fieldsLabel:o.options.messages.fields,uid:i.uid,ns:d.ns})).appendTo(s),o._addExpressionControls(u.find(\".k-toolbar\"),c,i),t||o._expressionChange()},_addExpressionControls:function(e,t,n){var i=e.find(\".k-filter-toolbar-item\"),o=i.eq(1),r=i.eq(2);d.destroy(o),d.destroy(r),o.empty(),r.empty(),this._appendOperators(o,t),this._appendEditor(r,t),this._bindModel(e,n),this._showHideEditor(e,n)},_appendOperators:function(e,i){n(d.template(t)({operators:i.operators&&i.operators[i.type]?i.operators[i.type]:this.operators[i.type],operatorsLabel:this.options.messages.operators,ns:d.ns})).appendTo(e)},_appendEditor:function(e,t){d.isFunction(t.editor)?t.editor(e,n.extend(!0,{},{field:t.name})):n(d.template(t.editor)({ns:d.ns,field:t.name,id:d.guid()})).appendTo(e)},_addNewModel:function(e,t){var n,i,o=t.type,r=t.operators;return r||(r=this.options.operators),i=Object.keys(r[o])[0],e.push({field:t.name}),n=e[e.length-1],n.set(\"value\",t.defaultValue),n.set(\"operator\",i),n},_addGroup:function(e,t){var i,o=this,a=o.filterModel,s=e.attr(\"id\"),c=e.closest(\".k-filter-toolbar\").next(\"ul.k-filter-lines\");t?a=t:(a=l(a,s),a.filters||a.set(\"filters\",[]),a.filters.push({logic:o.options.mainLogic}),a=a.filters[a.filters.length-1]),c.length||(c=n(\"
          \").appendTo(e.closest(\"li\"))),i=n(d.template(r)({operators:{and:o.options.messages.and,or:o.options.messages.or},addExpression:o.options.messages.addExpression,addGroup:o.options.messages.addGroup,close:o.options.messages.close,ns:d.ns})).appendTo(c),o._bindModel(i.find(\".k-toolbar\"),a),t||o._expressionChange()},_bindModel:function(e,t){e.attr(\"id\",t.uid),t.bind(\"change\",this._modelChangeHandler),d.bind(e,t),e.parent().attr(d.attr(\"stop\"),!0)},_createPreview:function(e){var t,n,i,o=\"\",r=!1,a=this._hasFieldsFilter(e.filters||[]),s=\"\";if(!e.filters||!e.filters.length||!a)return\"\";for(o+='(',i=0;i '+e.logic.toLocaleUpperCase()+\" \"),r=!0),o+=s),t.field&&(n=this._fields[t.field],r&&(o+=' '+e.logic.toLocaleUpperCase()+\" \"),r=!0,o+=''+n.label+\"\",o+=' '+this._getOperatorText(t.field,t.operator),t.operator.indexOf(\"is\")<0?(o+=\" \",o+=\"'\"+d.htmlEncode(n.previewFormat?d.toString(t.value,n.previewFormat):t.value)+\"'\"):o+=\"\");return o+=')'},_expressionChange:function(){var e=this,t=e.filterModel.toJSON(),n=\"\";e.options.expressionPreview&&(n=e._createPreview(t),e._previewContainer.html(n)),e.trigger(p,{expression:t})},_getOperatorText:function(e,t){var n=this._fields[e].type,i=this._fields[e].operators;return i||(i=this.options.operators),i[n][t].text||i[n][t]},_addField:function(t,i){var o=this;t=n.extend(!0,{},{name:t.name||i,editor:t.editorTemplate||e[t.type||\"string\"],defaultValue:t.defaultValue||t.defaultValue===!1||0===t.defaultValue?t.defaultValue:\"\",type:t.type||\"string\",label:t.label||t.name||i,operators:t.operators,previewFormat:t.previewFormat}),o._fields[t.name]=t,o._defaultField||(o._defaultField=t)},_getFieldsInfo:function(){var e,t,n,i=this,o=i.options.fields.length?i.options.fields:(i.options.dataSource.options.schema.model||{}).fields;if(i._fields={},Array.isArray(o))for(t=0;t=0;t--)e[t].logic&&!e[t].filters||e[t].filters&&!this._hasFieldsFilter(e[t].filters)?e.splice(t,1):e[t].filters&&this._removeEmptyGroups(e[t].filters)},_modelChange:function(e){var t,n,i,o,r=this,a=r.element.find(\"[id=\"+e.sender.uid+\"]\");return r._showHideEditor(a,e.sender),\"field\"!==e.field?void(\"filters\"!==e.field&&r._expressionChange()):(t=e.sender.field,n=e.sender.parent(),i=r._fields[t],o=r._addNewModel(n,i),e.sender.unbind(\"change\",r._modelChangeHandler),n.remove(e.sender),r._addExpressionControls(a,i,o),void r._expressionChange())},_renderMain:function(){var e=this;n(i).appendTo(e.element),e.filterModel=d.observable(e.options.expression?e.options.expression:{logic:e.options.mainLogic}),n(d.template(o)({operators:{and:e.options.messages.and,or:e.options.messages.or},addExpression:e.options.messages.addExpression,addGroup:e.options.messages.addGroup,close:e.options.messages.close,uid:e.filterModel.uid,ns:d.ns})).appendTo(e.element.find(\"li\").first()),e._bindModel(e.element.find(\".k-toolbar\").first(),e.filterModel)},_removeExpression:function(e){var t,n,i=this,o=e.attr(\"id\"),r=e.closest(\"li\"),a=r.hasClass(\"k-filter-group-main\");a?(r=r.find(\".k-filter-lines\"),i.filterModel.filters&&(i.filterModel.filters.empty(),delete i.filterModel.filters)):(n=l(i.filterModel,o),t=n.parent(),n.unbind(\"change\",i._modelChangeHandler),t.remove(n),t.length||delete t.parent().filters,r.siblings().length||(r=r.parent())),d.destroy(r),r.remove(),i._expressionChange()},_renderApplyButton:function(){var e=this;e.options.applyButton&&(e._applyButton||(e._applyButton=n(d.format('',e.options.messages.apply)).appendTo(e.element)))},_showHideEditor:function(e,t){var n,i;t.logic||(n=t.operator,i=e.find(\".k-filter-toolbar-item\").eq(2),\"isnull\"==n||\"isnotnull\"==n||\"isempty\"==n||\"isnotempty\"==n||\"isnullorempty\"==n||\"isnotnullorempty\"==n?i.hide():i.show())},_mapOperators:function(e){var t=this;e.filters&&e.filters.forEach(function(e){var n,i,o;e.filters?t._mapOperators(e):(i=t._fields[e.field],o=i.type,n=i.operators&&i.operators[o][e.operator]?i.operators[o][e.operator]:t.operators[o][e.operator],n&&(e.operator=n.handler||e.operator))})},hasCustomOperators:function(){var e,t=n.extend(!0,{},this.operators);for(e in this._fields)t=n.extend(!0,{},t,this._fields[e].operators);this._hasCustomOperators=s(t)}});c.plugin(b),c.plugin(_)}(window.kendo.jQuery),window.kendo},\"function\"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define(\"kendo.filtercell.min\",[\"kendo.autocomplete.min\",\"kendo.datepicker.min\",\"kendo.numerictextbox.min\",\"kendo.combobox.min\",\"kendo.dropdownlist.min\"],e)}(function(){return function(e,t){function n(t){var n=\"string\"==typeof t?t:t.operator;return e.inArray(n,v)>-1}function i(t,n){var o,r,a=[];if(e.isPlainObject(t))if(t.hasOwnProperty(\"filters\"))a=t.filters;else if(t.field==n)return t;for(Array.isArray(t)&&(a=t),o=0;o\").appendTo(i),s=this,m=o,b=s.operators=o.operators||{},w=s.input=e(\"\").attr(a.attr(\"bind\"),\"value: value\").appendTo(r),k=o?o.suggestDataSource:null,k&&(o=e.extend({},o,{suggestDataSource:{}})),d.fn.init.call(s,i[0],o),k&&(s.options.suggestDataSource=k),o=s.options,l=s.dataSource=o.dataSource,s.model=l.reader.model,_=o.type=p,y=a.getter(\"reader.model.fields\",!0)(l)||{},x=y[o.field],x&&x.type&&(_=o.type=x.type),o.values&&(o.type=_=h),b=b[_]||o.operators[_],!m.operator)for(v in b){o.operator=v;break}s._parse=function(e){return null!=e?e+\"\":e},s.model&&s.model.fields&&(C=s.model.fields[o.field],C&&C.parse&&(s._parse=g(C.parse,C))),s.defaultOperator=o.operator,s.viewModel=f=a.observable({operator:o.operator,value:null,operatorVisible:function(){var e=this.get(\"value\");return null!==e&&e!==t&&\"undefined\"!=e||n(this.get(\"operator\"))&&s.dataSource.filter()&&!s._clearInProgress}}),s._prevOperator=o.operator,f.bind(c,g(s.updateDsFilter,s)),_==p&&s.initSuggestDataSource(o),null!==o.inputWidth&&(w.addClass(\"k-sized-input\"),w.width(o.inputWidth)),w.attr(\"aria-label\",s._getColumnTitle()),w.attr(\"title\",s._getColumnTitle()),s._setInputType(o,_),_!=u&&o.showOperators!==!1?s._createOperatorDropDown(b):(e('
          ').css(\"display\",\"none\").text(\"eq\").appendTo(r),r.addClass(\"k-operator-hidden\")),s._createClearIcon(),a.bind(this.wrapper,f),_==p&&(o.template||s.setAutoCompleteSource()),_==h&&s.setComboBoxSource(s.options.values),s._refreshUI(),s._refreshHandler=g(s._refreshUI,s),s.dataSource.bind(c,s._refreshHandler)},_setInputType:function(t,n){var i,o,r,s,l,d=this,c=d.input;\"function\"==typeof t.template?(t.template.call(d.viewModel,{element:d.input,dataSource:d.suggestDataSource}),d._angularItems(\"compile\")):n==p?c.attr(a.attr(\"role\"),\"autocomplete\").attr(a.attr(\"text-field\"),t.dataTextField||t.field).attr(a.attr(\"filter\"),t.suggestionOperator).attr(a.attr(\"delay\"),t.delay).attr(a.attr(\"min-length\"),t.minLength).attr(a.attr(\"value-primitive\"),!0):\"date\"==n?c.attr(a.attr(\"role\"),\"datepicker\").attr(\"id\",a.guid()):n==u?(c.remove(),i=e(\"\"),o=d.wrapper,r=a.guid(),s=e(\"