!function(define){return define([],function(){!function(e,t,n){function r(){}function o(e){return"function"==typeof e}function i(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),r=e.substring(1);return"="===n?"+("+r+")+":":"===n?"+e("+r+")+":";"+e+";o+="}function a(e,t,n){return e+="",t=t||2,n=t-e.length,n?_[t].substring(0,n)+e:e}function s(t){var n,r,o,i,a,s,u,l,c,d,f,p,m,h=mt.browser,g="rtl"==t.css("direction");return t.parent().hasClass("k-animation-container")?(p=t.parent(".k-animation-container"),m=p[0].style,p.is(":hidden")&&p.show(),n=ht.test(m.width)||ht.test(m.height),n||p.css({width:t.outerWidth(),height:t.outerHeight()})):(r=t.css(at.support.transitions.css+"box-shadow")||t.css("box-shadow"),o=r?r.match(yt)||[0,0,0,0,0]:[0,0,0,0,0],i=ft.max(+o[3],+(o[4]||0)),a=-o[1]+i,s=+o[1]+i,u=+o[2]+i,l=t[0].style.width,c=t[0].style.height,d=ht.test(l),f=ht.test(c),h.opera&&(a=s=u=5),n=d||f,d||(l=t.outerWidth()),f||(c=t.outerHeight()),t.wrap(e("
").addClass("k-animation-container").css({width:l,height:c,marginLeft:a*(g?1:-1),paddingLeft:a,paddingRight:s,paddingBottom:u})),n&&t.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})),h.msie&&ft.floor(h.version)<=7&&(t.css({zoom:1}),t.children(".k-menu").width(t.width())),t.parent()}function u(e){var t=1,n=arguments.length;for(t=1;n>t;t++){l(e,arguments[t])}return e}function l(e,t){var n,r,o,i,a=at.data.ObservableArray,s=at.data.DataSource;for(n in t){r=t[n],o=typeof r,o===St&&null!==r&&r.constructor!==Array&&r.constructor!==a&&r.constructor!==s?r instanceof Date?e[n]=new Date(r.getTime()):(i=e[n],e[n]=typeof i===St?i||{}:{},l(e[n],r)):o!==Ot&&(e[n]=r)}return e}function c(e,t,r){for(var o in t){if(t.hasOwnProperty(o)&&t[o].test(e)){return o}}return r!==n?r:e}function d(t,n){var r,o={};return document.defaultView&&document.defaultView.getComputedStyle?(r=document.defaultView.getComputedStyle(t,""),n&&e.each(n,function(e,t){o[t]=r.getPropertyValue(t)})):(r=t.currentStyle,n&&e.each(n,function(e,t){o[t]=r[t.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()})]})),at.size(o)||(o=r),o}function f(e){var t,n=0;for(t in e){e.hasOwnProperty(t)&&"toJSON"!=t&&n++}return n}function p(e,t,n){var r,o,i,a;return t||(t="offset"),r=e[t](),o=mt.mobileOS,mt.touch&&o.ios&&o.flatVersion<410&&(i="offset"==t?r:e.offset(),a=r.left==i.left&&r.top==i.top)?{top:r.top-window.scrollY,left:r.left-window.scrollX}:(!at.support.pointers&&!at.support.msPointers||n||(r.top-=window.pageYOffset-document.documentElement.scrollTop,r.left-=window.pageXOffset-document.documentElement.scrollLeft),r)}function m(e){var t={};return ut("string"==typeof e?e.split(" "):e,function(e){t[e]=this}),t}function h(e){return new at.effects.Element(e)}function g(e,t,n,r){return typeof e===bt&&(o(t)&&(r=t,t=400,n=!1),o(n)&&(r=n,n=!1),typeof t===xt&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:r}),st({effects:{},duration:400,reverse:!1,init:dt,teardown:dt,hide:!1},e,{completeCallback:e.complete,complete:dt})}function y(t,n,r,o,i){for(var a,s=0,u=t.length;u>s;s++){a=e(t[s]),a.queue(function(){W.promise(a,g(n,r,o,i))})}return t}function v(e,t,n,r,o,i){return W.transitionPromise(e,t,g(n,r,o,i))}function w(e,t,n,r){return t&&(t=t.split(" "),ut(t,function(t,n){e.toggleClass(n,r)})),e}function b(e){return(""+e).replace(U,"&").replace(L,"<").replace(j,">")}function M(e,r){var o;return 0===r.indexOf("data")&&(r=r.substring(4),r=r.charAt(0).toLowerCase()+r.substring(1)),r=r.replace(K,"-$1"),o=e.getAttribute("data-"+at.ns+r),null===o?o=n:"null"===o?o=null:"true"===o?o=!0:"false"===o?o=!1:vt.test(o)?o=parseFloat(o):V.test(o)&&!G.test(o)&&(o=t("("+o+")")),o}function S(t,r){var o,i,a={};for(o in r){i=M(t,o),i!==n&&(Y.test(o)&&(i=at.template(e("#"+i).html())),a[o]=i)}return a}function T(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&x(e)}function x(t){return !e(t).parents().andSelf().filter(function(){return"hidden"===e.css(this,"visibility")||e.expr.filters.hidden(this)}).length}function O(e,t){return new O.fn.init(e,t)}var D,k,C,z,H,E,P,A,N,F,_,I,W,U,L,j,R,B,J,$,Y,V,G,K,Q,q,X,Z,et,tt,nt,rt,ot,it,at=window.kendo=window.kendo||{cultures:{}},st=e.extend,ut=e.each,lt=e.proxy,ct=e.isArray,dt=e.noop,ft=Math,pt=window.JSON||{},mt={},ht=/%/,gt=/\{(\d+)(:[^\}]+)?\}/g,yt=/(\d+?)px\s*(\d+?)px\s*(\d+?)px\s*(\d+?)?/i,vt=/^(\+|-?)\d+(\.?)\d*$/,wt="function",bt="string",Mt="number",St="object",Tt="null",xt="boolean",Ot="undefined",Dt={},kt={},Ct=[].slice,zt=window.Globalize;at.version="2013.2.918",r.extend=function(e){var t,n,r=function(){},o=this,i=e&&e.init?e.init:function(){o.apply(this,arguments)};r.prototype=o.prototype,n=i.fn=i.prototype=new r;for(t in e){n[t]=typeof e[t]!==St||e[t] instanceof Array||null===e[t]?e[t]:st(!0,{},r.prototype[t],e[t])}return n.constructor=i,i.extend=o.extend,i},at.isFunction=o,k=function(){this._defaultPrevented=!0},C=function(){return this._defaultPrevented===!0},z=r.extend({init:function(){this._events={}},bind:function(e,t,r){var o,i,a,s,u,l=this,c=typeof e===bt?[e]:e,d=typeof t===wt;if(t===n){for(o in e){l.bind(o,e[o])}return l}for(o=0,i=c.length;i>o;o++){e=c[o],s=d?t:t[e],s&&(r&&(a=s,s=function(){l.unbind(e,s),a.apply(l,arguments)}),u=l._events[e]=l._events[e]||[],u.push(s))}return l},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,r,o,i,a=this,s=typeof e===bt?[e]:e,u=typeof t===wt;for(n=0,r=s.length;r>n;n++){e=s[n],o=u?t:t[e],o&&(i=a._events[e]=a._events[e]||[],i.unshift(o))}return a},trigger:function(e,t){var n,r,o=this,i=o._events[e];if(i){for(t=t||{},t.sender=o,t._defaultPrevented=!1,t.preventDefault=k,t.isDefaultPrevented=C,i=i.slice(),n=0,r=i.length;r>n;n++){i[n].call(o,t)}return t._defaultPrevented===!0}return !1},unbind:function(e,t){var r,o=this,i=o._events[e];if(e===n){o._events={}}else{if(i){if(t){for(r=i.length-1;r>=0;r--){i[r]===t&&i.splice(r,1)}}else{o._events[e]=[]}}}return o}}),H=/^\w+/,E=/\$\{([^}]*)\}/g,P=/\\\}/g,A=/__CURLY__/g,N=/\\#/g,F=/__SHARP__/g,_=["","0","00","000","0000"],D={paramName:"data",useWithBlock:!0,render:function(e,t){var n,r,o="";for(n=0,r=t.length;r>n;n++){o+=e(t[n])}return o},compile:function(t,n){var r,a,s,u=st({},this,n),l=u.paramName,c=l.match(H)[0],d=u.useWithBlock,f="var o,e=kendo.htmlEncode;";if(o(t)){return 2===t.length?function(n){return t(e,{data:n}).join("")}:t}for(f+=d?"with("+l+"){":"",f+="o=",a=t.replace(P,"__CURLY__").replace(E,"#=e($1)#").replace(A,"}").replace(N,"__SHARP__").split("#"),s=0;ss;s++){f[s]=t(s,h)||Tt}return c=0===f.length?"[]":n?"[\n"+n+f.join(",\n"+n)+"\n"+m+"]":"["+f.join(",")+"]",n=m,c}if(o&&typeof o===St){for(d=o.length,s=0;d>s;s++){typeof o[s]===bt&&(l=o[s],c=t(l,h),c&&f.push(e(l)+(n?": ":":")+c))}}else{for(l in h){Object.hasOwnProperty.call(h,l)&&(c=t(l,h),c&&f.push(e(l)+(n?": ":":")+c))}}return c=0===f.length?"{}":n?"{\n"+n+f.join(",\n"+n)+"\n"+m+"}":"{"+f.join(",")+"}",n=m,c}}var n,r,o,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},u={}.toString;typeof Date.prototype.toJSON!==wt&&(Date.prototype.toJSON=function(){var e=this;return isFinite(e.valueOf())?a(e.getUTCFullYear(),4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof pt.stringify!==wt&&(pt.stringify=function(e,i,a){var s;if(n="",r="",typeof a===Mt){for(s=0;a>s;s+=1){r+=" "}}else{typeof a===bt&&(r=a)}if(o=i,i&&typeof i!==wt&&(typeof i!==St||typeof i.length!==Mt)){throw Error("JSON.stringify")}return t("",{"":e})})}(),function(){function e(e){if(e){if(e.numberFormat){return e}if(typeof e===bt){var t=at.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function t(t){return t&&(t=e(t)),t||at.cultures.current}function r(e){e.groupSizes=e.groupSize,e.percent.groupSizes=e.percent.groupSize,e.currency.groupSizes=e.currency.groupSize}function o(e,r,o){o=t(o);var i=o.calendars.standard,s=i.days,u=i.months;return r=i.patterns[r]||r,r.replace(l,function(t){var r;return"d"===t?r=e.getDate():"dd"===t?r=a(e.getDate()):"ddd"===t?r=s.namesAbbr[e.getDay()]:"dddd"===t?r=s.names[e.getDay()]:"M"===t?r=e.getMonth()+1:"MM"===t?r=a(e.getMonth()+1):"MMM"===t?r=u.namesAbbr[e.getMonth()]:"MMMM"===t?r=u.names[e.getMonth()]:"yy"===t?r=a(e.getFullYear()%100):"yyyy"===t?r=a(e.getFullYear(),4):"h"===t?r=e.getHours()%12||12:"hh"===t?r=a(e.getHours()%12||12):"H"===t?r=e.getHours():"HH"===t?r=a(e.getHours()):"m"===t?r=e.getMinutes():"mm"===t?r=a(e.getMinutes()):"s"===t?r=e.getSeconds():"ss"===t?r=a(e.getSeconds()):"f"===t?r=ft.floor(e.getMilliseconds()/100):"ff"===t?r=ft.floor(e.getMilliseconds()/10):"fff"===t?r=e.getMilliseconds():"tt"===t&&(r=e.getHours()<12?i.AM[0]:i.PM[0]),r!==n?r:t.slice(1,t.length-1)})}function i(e,r,o){o=t(o);var i,a,u,l,w,b,M,S,T,x,O,D,k,C,z,H,E,P,A,N,F,_,I,W=o.numberFormat,U=W.groupSize[0],L=W[h],j=W[m],R=W.decimals,B=W.pattern[0],J=[],$=0>e,Y=p,V=p,G=-1;if(e===n){return p}if(!isFinite(e)){return e}if(!r){return o.name.length?e.toLocaleString():""+e}if(w=c.exec(r)){if(r=w[1].toLowerCase(),a="c"===r,u="p"===r,(a||u)&&(W=a?W.currency:W.percent,U=W.groupSize[0],L=W[h],j=W[m],R=W.decimals,i=W.symbol,B=W.pattern[$?0:1]),l=w[2],l&&(R=+l),"e"===r){return l?e.toExponential(R):e.toExponential()}if(u&&(e*=100),e=s(e,R),e=e.split(m),b=e[0],M=e[1],$&&(b=b.substring(1)),V=b,S=b.length,S>=U){for(V=p,x=0;S>x;x++){x>0&&0===(S-x)%U&&(V+=L),V+=b.charAt(x)}}if(M&&(V+=j+M),"n"===r&&!$){return V}for(e=p,x=0,O=B.length;O>x;x++){D=B.charAt(x),e+="n"===D?V:"$"===D||"%"===D?i:D}return e}if($&&(e=-e),(r.indexOf("'")>-1||r.indexOf('"')>-1||r.indexOf("\\")>-1)&&(r=r.replace(d,function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return J.push(n),v})),r=r.split(";"),$&&r[1]){r=r[1],C=!0}else{if(0===e){if(r=r[2]||r[0],-1==r.indexOf(g)&&-1==r.indexOf(y)){return r}}else{r=r[0]}}if(N=r.indexOf("%"),F=r.indexOf("$"),u=-1!=N,a=-1!=F,u&&(e*=100),a&&"\\"===r[F-1]&&(r=r.split("\\").join(""),a=!1),(a||u)&&(W=a?W.currency:W.percent,U=W.groupSize[0],L=W[h],j=W[m],R=W.decimals,i=W.symbol),k=r.indexOf(h)>-1,k&&(r=r.replace(f,p)),z=r.indexOf(m),O=r.length,-1!=z?(M=(""+e).split("e"),M=M[1]?s(e,Math.abs(M[1])):M[0],M=M.split(m)[1]||p,E=r.lastIndexOf(y)-z,H=r.lastIndexOf(g)-z,P=E>-1,A=H>-1,x=M.length,P||A||(r=r.substring(0,z)+r.substring(z+1),O=r.length,z=-1,x=0),P&&E>H?x=E:H>E&&(A&&x>H?x=H:P&&E>x&&(x=E)),x>-1&&(e=s(e,x))):e=s(e),H=r.indexOf(g),_=E=r.indexOf(y),G=-1==H&&-1!=E?E:-1!=H&&-1==E?H:H>E?E:H,H=r.lastIndexOf(g),E=r.lastIndexOf(y),I=-1==H&&-1!=E?E:-1!=H&&-1==E?H:H>E?H:E,G==O&&(I=G),-1!=G){if(V=(""+e).split(m),b=V[0],M=V[1]||p,S=b.length,T=M.length,k){if(S===U&&z-_>S){b=L+b}else{if(S>U){for(V=p,x=0;S>x;x++){x>0&&0===(S-x)%U&&(V+=L),V+=b.charAt(x)}b=V}}}for(e=r.substring(0,G),$&&!C&&(e+="-"),x=G;O>x;x++){if(D=r.charAt(x),-1==z){if(S>I-x){e+=b;break}}else{if(-1!=E&&x>E&&(Y=p),S>=z-x&&z-x>-1&&(e+=b,x=z),z===x){e+=(M?j:p)+M,x+=I-z+1;continue}}D===y?(e+=D,Y=D):D===g&&(e+=Y)}if(I>=G&&(e+=r.substring(I+1)),a||u){for(V=p,x=0,O=e.length;O>x;x++){D=e.charAt(x),V+="$"===D||"%"===D?i:D}e=V}if(O=J.length){for(x=0;O>x;x++){e=e.replace(v,J[x])}}}return e}var s,u,l=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|"[^"]*"|'[^']*'/g,c=/^(n|c|p|e)(\d*)$/i,d=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,f=/\,/g,p="",m=".",h=",",g="#",y="0",v="??",w="en-US",b={}.toString;at.cultures["en-US"]={name:w,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0,twoDigitYearMax:2029}}},at.culture=function(t){var o,i=at.cultures;return t===n?i.current:(o=e(t)||i[w],o.calendar=o.calendars.standard,i.current=o,zt&&r(o.numberFormat),n)},at.findCulture=e,at.getCulture=t,at.culture(w),s=function(e,t){var n=Math.pow(10,t||0);return(Math.round(e*n)/n).toFixed(t)},u=function(e,t,r){if(t){if("[object Date]"===b.call(e)){return o(e,t,r)}if(typeof e===Mt){return i(e,t,r)}}return e!==n?e:""},zt&&(u=lt(zt.format,zt)),at.format=function(e){var t=arguments;return e.replace(gt,function(e,n,r){var o=t[parseInt(n,10)+1];return u(o,r?r.substring(1):"")})},at._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},at._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},at._round=s,at.toString=u}(),function(){function t(e,t,n){return !(e>=t&&n>=e)}function r(e){return e.charAt(0)}function o(t){return e.map(t,r)}function i(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}function a(e){for(var t=0,n=e.length,r=[];n>t;t++){r[t]=(e[t]+"").toLowerCase()}return r}function s(e){var t,n={};for(t in e){n[t]=a(e[t])}return n}function u(e,r,a){if(!e){return null}var u,l,c,p,m,g,y,v,w,b,M,S,T=function(e){for(var t=0;r[F]===e;){t++,F++}return t>0&&(F-=1),t},x=function(t){var n=h[t]||RegExp("^\\d{1,"+t+"}"),r=e.substr(_,t).match(n);return r?(r=r[0],_+=r.length,parseInt(r,10)):null},O=function(t,n){for(var r,o,i,a=0,s=t.length;s>a;a++){if(r=t[a],o=r.length,i=e.substr(_,o),n&&(i=i.toLowerCase()),i==r){return _+=o,a+1}}return null},D=function(){var t=!1;return e.charAt(_)===r[F]&&(_++,t=!0),t},k=a.calendars.standard,C=null,z=null,H=null,E=null,P=null,A=null,N=null,F=0,_=0,I=!1,W=new Date,U=k.twoDigitYearMax||2029,L=W.getFullYear();for(r||(r="d"),p=k.patterns[r],p&&(r=p),r=r.split(""),c=r.length;c>F;F++){if(u=r[F],I){"'"===u?I=!1:D()}else{if("d"===u){if(l=T("d"),k._lowerDays||(k._lowerDays=s(k.days)),H=3>l?x(2):O(k._lowerDays[3==l?"namesAbbr":"names"],!0),null===H||t(H,1,31)){return null}}else{if("M"===u){if(l=T("M"),k._lowerMonths||(k._lowerMonths=s(k.months)),z=3>l?x(2):O(k._lowerMonths[3==l?"namesAbbr":"names"],!0),null===z||t(z,1,12)){return null}z-=1}else{if("y"===u){if(l=T("y"),C=x(l),null===C){return null}2==l&&("string"==typeof U&&(U=L+parseInt(U,10)),C=L-L%100+C,C>U&&(C-=100))}else{if("h"===u){if(T("h"),E=x(2),12==E&&(E=0),null===E||t(E,0,11)){return null}}else{if("H"===u){if(T("H"),E=x(2),null===E||t(E,0,23)){return null}}else{if("m"===u){if(T("m"),P=x(2),null===P||t(P,0,59)){return null}}else{if("s"===u){if(T("s"),A=x(2),null===A||t(A,0,59)){return null}}else{if("f"===u){if(l=T("f"),N=x(l),null!==N&&l>3&&(N=parseInt((""+N).substring(0,3),10)),null===N||t(N,0,999)){return null}}else{if("t"===u){if(l=T("t"),w=k.AM,b=k.PM,1===l&&(w=o(w),b=o(b)),m=O(b),!m&&!O(w)){return null}}else{if("z"===u){if(g=!0,l=T("z"),"Z"===e.substr(_,1)){if(!y){return null}D();continue}if(v=e.substr(_,6).match(l>2?f:d),!v){return null}if(v=v[0],_=v.length,v=v.split(":"),M=parseInt(v[0],10),t(M,-12,13)){return null}if(l>2&&(S=parseInt(v[1],10),isNaN(S)||t(S,0,59))){return null}}else{if("T"===u){y=D()}else{if("'"===u){I=!0,D()}else{if(!D()){return null}}}}}}}}}}}}}}}return null===C&&(C=L),m&&12>E&&(E+=12),null===H&&(H=1),g?(M&&(E+=-M),S&&(P+=-S),e=new Date(Date.UTC(C,z,H,E,P,A,N))):(e=new Date(C,z,H,E,P,A,N),i(e,E)),100>C&&e.setFullYear(C),e.getDate()!==H&&g===n?null:e}var l=/\u00A0/g,c=/[eE][\-+]?[0-9]+/,d=/[+|\-]\d{1,2}/,f=/[+|\-]\d{1,2}:\d{2}/,p=/^\/Date\((.*?)\)\/$/,m=["G","g","d","F","D","y","m","T","t"],h={2:/^\d{1,2}/,4:/^\d{4}/},g={}.toString;at.parseDate=function(e,t,n){if("[object Date]"===g.call(e)){return e}var r,o,i=0,a=null;if(e&&0===e.indexOf("/D")&&(a=p.exec(e))){return new Date(parseInt(a[1],10))}if(n=at.getCulture(n),!t){for(t=[],o=n.calendar.patterns,r=m.length;r>i;i++){t[i]=o[m[i]]}i=0,t.push("yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","ddd MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.fffffffzzz","yyyy-MM-ddTHH:mm:ss.fffzzz","yyyy-MM-ddTHH:mm:sszzz","yyyy-MM-ddTHH:mmzzz","yyyy-MM-ddTHH:mmzz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd")}for(t=ct(t)?t:[t],r=t.length;r>i;i++){if(a=u(e,t[i],n)){return a}}return a},at.parseInt=function(e,t){var n=at.parseFloat(e,t);return n&&(n=0|n),n},at.parseFloat=function(e,t,n){if(!e&&0!==e){return null}if(typeof e===Mt){return e}e=""+e,t=at.getCulture(t);var r,o,i=t.numberFormat,a=i.percent,s=i.currency,u=s.symbol,d=a.symbol,f=e.indexOf("-");return c.test(e)?(e=parseFloat(e.replace(i["."],".")),isNaN(e)&&(e=null),e):f>0?null:(f=f>-1,e.indexOf(u)>-1||n&&n.toLowerCase().indexOf("c")>-1?(i=s,r=i.pattern[0].replace("$",u).split("n"),e.indexOf(r[0])>-1&&e.indexOf(r[1])>-1&&(e=e.replace(r[0],"").replace(r[1],""),f=!0)):e.indexOf(d)>-1&&(o=!0,i=a,u=d),e=e.replace("-","").replace(u,"").replace(l," ").split(i[","].replace(l," ")).join("").replace(i["."],"."),e=parseFloat(e),isNaN(e)?e=null:f&&(e*=-1),e&&o&&(e/=100),e)},zt&&(at.parseDate=function(e,t,n){return"[object Date]"===g.call(e)?e:zt.parseDate(e,t,n)},at.parseFloat=function(e,t){return typeof e===Mt?e:e===n||null===e?null:(e=zt.parseFloat(e,t),isNaN(e)?null:e)})}(),function(){var t,r,o,i,a,s;mt.scrollbar=function(){var e,t=document.createElement("div");return t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both",t.innerHTML=" ",document.body.appendChild(t),e=t.offsetWidth-t.scrollWidth,document.body.removeChild(t),e},mt.isRtl=function(t){return e(t).closest(".k-rtl").length>0},t=document.createElement("table");try{t.innerHTML="",mt.tbodyInnerHtml=!0}catch(u){mt.tbodyInnerHtml=!1}mt.touch="ontouchstart" in window,mt.msPointers=navigator.msPointerEnabled,mt.pointers=navigator.pointerEnabled,r=mt.transitions=!1,o=mt.transforms=!1,i="HTMLElement" in window?HTMLElement.prototype:[],mt.hasHW3D="WebKitCSSMatrix" in window&&"m11" in new window.WebKitCSSMatrix||"MozPerspective" in document.documentElement.style||"msPerspective" in document.documentElement.style,ut(["Moz","webkit","O","ms"],function(){var e,i=""+this,a=typeof t.style[i+"Transition"]===bt;return a||typeof t.style[i+"Transform"]===bt?(e=i.toLowerCase(),o={css:"ms"!=e?"-"+e+"-":"",prefix:i,event:"o"===e||"webkit"===e?e:""},a&&(r=o,r.event=r.event?r.event+"TransitionEnd":"transitionend"),!1):n}),mt.transforms=o,mt.transitions=r,mt.devicePixelRatio=window.devicePixelRatio===n?1:window.devicePixelRatio;try{mt.screenWidth=window.outerWidth||window.screen?window.screen.availWidth:window.innerWidth,mt.screenHeight=window.outerHeight||window.screen?window.screen.availHeight:window.innerHeight}catch(u){mt.screenWidth=window.screen.availWidth,mt.screenHeight=window.screen.availHeight}mt.detectOS=function(e){var t,n,r=!1,o=[],i=!/mobile safari/i.test(e),a={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+)?)/,wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},s={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,meego:/meego|ffos/},u={tablet:/playbook|ipad|fire/i},l={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,chrome:/chrome/i,webkit:/webkit/i,ie:/MSIE|Windows\sPhone/i};for(n in a){if(a.hasOwnProperty(n)&&(o=e.match(a[n]))){if("windows"==n&&"plugins" in navigator){return !1}r={},r.device=n,r.tablet=c(n,u,!1),r.browser=c(e,l,"default"),r.name=c(n,s),r[r.name]=!0,r.majorVersion=o[2],r.minorVersion=o[3].replace("_","."),t=r.minorVersion.replace(".","").substr(0,2),r.flatVersion=r.majorVersion+t+Array(3-(t.length<3?t.length:2)).join("0"),r.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||typeof window.PhoneGap!==Ot||typeof window.cordova!==Ot,r.android&&(mt.devicePixelRatio<1.5&&r.flatVersion<400||i)&&(mt.screenWidth>800||mt.screenHeight>800)&&(r.tablet=n);break}}return r},a=mt.mobileOS=mt.detectOS(navigator.userAgent),mt.wpDevicePixelRatio=a.wp?screen.width/320:0,mt.kineticScrollNeeded=a&&(mt.touch||mt.msPointers||mt.pointers),mt.hasNativeScrolling=!1,(a.ios&&a.majorVersion>4||a.android&&a.majorVersion>2||a.wp)&&(mt.hasNativeScrolling=a),mt.mouseAndTouchPresent=mt.touch&&!(mt.mobileOS.ios||mt.mobileOS.android),mt.detectBrowser=function(e){var t,n=!1,r=[],o={webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie|trident)(?:.*? rv:([\w.]+)| ([\w.]+))/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(t in o){if(o.hasOwnProperty(t)&&(r=e.match(o[t]))){n={},n[t]=!0,n[r[1].toLowerCase()]=!0,n.version=parseInt(document.documentMode||r[2],10);break}}return n},mt.browser=mt.detectBrowser(navigator.userAgent),mt.zoomLevel=function(){try{return mt.touch?document.documentElement.clientWidth/window.innerWidth:mt.browser.msie&&mt.browser.version>=10?(top||window).outerWidth/(top||window).innerWidth:1}catch(e){return 1}},mt.cssBorderSpacing=n!==document.documentElement.style.borderSpacing&&!(mt.browser.msie&&mt.browser.version<8),function(t){var n,r=parseInt(t.version,10);t.msie?n="ie":t.mozilla?n="ff":t.safari?n="safari":t.webkit?n="webkit":t.opera&&(n="opera"),n&&e(document.documentElement).addClass("k-"+n+" k-"+n+r)}(mt.browser),mt.eventCapture=document.documentElement.addEventListener,mt.placeholder="placeholder" in document.createElement("input"),mt.stableSort=function(){var e=[0,1,2,3,4,5,6,7,8,9,10,11,12].sort(function(){return 0});return 0===e[0]&&1===e[1]&&2===e[2]&&3===e[3]&&4===e[4]&&5===e[5]&&6===e[6]&&7===e[7]&&8===e[8]&&9===e[9]&&10===e[10]&&11===e[11]&&12===e[12]}(),mt.matchesSelector=i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.matchesSelector||function(t){for(var n=document.querySelectorAll?(this.parentNode||document).querySelectorAll(t)||[]:e(t),r=n.length;r--;){if(n[r]==this){return !0}}return !1},mt.pushState=window.history&&window.history.pushState,s=document.documentMode,mt.hashChange="onhashchange" in window&&!(mt.browser.msie&&(!s||8>=s))}(),I={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},W={},e.extend(W,{Element:function(t){this.element=e(t)},promise:function(e,t){e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.hide&&e.data("olddisplay",e.css("display")).hide(),t.init&&t.init(),t.completeCallback&&t.completeCallback(e),e.dequeue()},transitionPromise:function(e,t,n){var r=at.wrap(e);return r.append(t),e.hide(),t.show(),n.completeCallback&&n.completeCallback(e),e}}),"kendoAnimate" in e.fn||st(e.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,r){return y(this,e,t,n,r)},kendoAnimateTo:function(e,t,n,r,o){return v(this,e,t,n,r,o)},kendoAddClass:function(e,t){return at.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return at.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return at.toggleClass(this,e,t,n)}}),U=/&/g,L=//g,R=function(e){return e.target},mt.touch&&(R=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},ut(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(t,n){e.fn[n]=function(e){return this.bind(n,e)}})),mt.touch?mt.mobileOS?(mt.mousedown="touchstart",mt.mouseup="touchend",mt.mousemove="touchmove",mt.mousecancel="touchcancel",mt.click="touchend",mt.resize="orientationchange"):(mt.mousedown="mousedown touchstart",mt.mouseup="mouseup touchend",mt.mousemove="mousemove touchmove",mt.mousecancel="mouseleave touchcancel",mt.click="click",mt.resize="resize"):mt.pointers?(mt.mousemove="pointermove",mt.mousedown="pointerdown",mt.mouseup="pointerup",mt.mousecancel="pointercancel",mt.click="pointerup",mt.resize="orientationchange resize"):mt.msPointers?(mt.mousemove="MSPointerMove",mt.mousedown="MSPointerDown",mt.mouseup="MSPointerUp",mt.mousecancel="MSPointerCancel",mt.click="MSPointerUp",mt.resize="orientationchange resize"):(mt.mousemove="mousemove",mt.mousedown="mousedown",mt.mouseup="mouseup",mt.mousecancel="mouseleave",mt.click="click",mt.resize="resize"),B=function(e,t){var n,r,o,i,a=t||"d",s=1;for(r=0,o=e.length;o>r;r++){i=e[r],""!==i&&(n=i.indexOf("["),0!==n&&(-1==n?i="."+i:(s++,i="."+i.substring(0,n)+" || {})"+i.substring(n))),s++,a+=i+(o-1>r?" || {})":")"))}return Array(s).join("(")+a},J=/^([a-z]+:)?\/\//i,st(at,{ui:at.ui||{},fx:at.fx||h,effects:at.effects||W,mobile:at.mobile||{},data:at.data||{},dataviz:at.dataviz||{ui:{roles:{}}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123},support:at.support||mt,animate:at.animate||y,ns:"",attr:function(e){return"data-"+at.ns+e},wrap:s,deepExtend:u,getComputedStyles:d,size:f,getOffset:at.getOffset||p,parseEffects:at.parseEffects||m,toggleClass:at.toggleClass||w,directions:at.directions||I,Observable:z,Class:r,Template:D,template:lt(D.compile,D),render:lt(D.render,D),stringify:lt(pt.stringify,pt),eventTarget:R,htmlEncode:b,isLocalUrl:function(e){return e&&!J.test(e)},expr:function(e,t,n){return e=e||"",typeof t==bt&&(n=t,t=!1),n=n||"d",e&&"["!==e.charAt(0)&&(e="."+e),e=t?B(e.split("."),n):n+e},getter:function(e,t){return Dt[e]=Dt[e]||Function("d","return "+at.expr(e,t))},setter:function(e){return kt[e]=kt[e]||Function("d,value",at.expr(e)+"=value")},accessor:function(e){return{get:at.getter(e),set:at.setter(e)}},guid:function(){var e,t,n="";for(e=0;32>e;e++){t=0|16*ft.random(),(8==e||12==e||16==e||20==e)&&(n+="-"),n+=(12==e?4:16==e?8|3&t:t).toString(16)}return n},roleSelector:function(e){return e.replace(/(\S+)/g,"["+at.attr("role")+"=$1],").slice(0,-1)},triggeredByInput:function(e){return/^(label|input|textarea|select)$/i.test(e.target.tagName)},logToConsole:function(e){var t=window.console;n!==t&&t.log&&t.log(e)}}),$=z.extend({init:function(e,t){var n=this;n.element=at.jQuery(e).handler(n),z.fn.init.call(n),t=n.options=st(!0,{},n.options,t),n.element.attr(at.attr("role"))||n.element.attr(at.attr("role"),(t.name||"").toLowerCase()),n.element.data("kendo"+t.prefix+t.name,n),n.bind(n.events,t)},events:[],options:{prefix:""},_hasBindingTarget:function(){return !!this.element[0].kendoBindingTarget},_tabindex:function(e){e=e||this.wrapper;var t=this.element,n="tabindex",r=e.attr(n)||t.attr(n);t.removeAttr(n),e.attr(n,isNaN(r)?0:r)},setOptions:function(t){for(var n,r=this,o=0,i=r.events.length;i>o;o++){n=r.events[o],r.options[n]&&t[n]&&r.unbind(n,r.options[n])}e.extend(r.options,t),r.bind(r.events,t)},destroy:function(){var e=this;e.element.removeData("kendo"+e.options.prefix+e.options.name),e.element.removeData("handler"),e.unbind()}}),at.notify=dt,Y=/template$/i,V=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,G=/^\{(\d+)(:[^\}]+)?\}/,K=/([A-Z])/g,at.initWidget=function(t,r,o){var i,a,s,u,l,c,d,f;if(o?o.roles&&(o=o.roles):o=at.ui.roles,t=t.nodeType?t:t[0],c=t.getAttribute("data-"+at.ns+"role"),c&&(s=-1===c.indexOf(".")?o[c]:at.getter(c)(window))){for(f=M(t,"dataSource"),r=e.extend({},S(t,s.fn.options),r),f&&(r.dataSource=typeof f===bt?at.getter(f)(window):f),u=0,l=s.fn.events.length;l>u;u++){a=s.fn.events[u],d=M(t,a),d!==n&&(r[a]=at.getter(d)(window))}return i=e(t).data("kendo"+s.fn.options.prefix+s.fn.options.name),i?i.setOptions(r):i=new s(t,r),i}},at.rolesFromNamespaces=function(e){var t,n,r=[];for(e[0]||(e=[at.ui,at.dataviz.ui]),t=0,n=e.length;n>t;t++){r[t]=e[t].roles}return st.apply(null,[{}].concat(r.reverse()))},at.init=function(t){var n=at.rolesFromNamespaces(Ct.call(arguments,1));e(t).find("[data-"+at.ns+"role]").andSelf().each(function(){at.initWidget(this,{},n)})},at.destroy=function(t){e(t).find("[data-"+at.ns+"role]").andSelf().each(function(){var t=e(this),n=at.widgetInstance(t,at.ui)||at.widgetInstance(t,at.mobile.ui)||at.widgetInstance(t,at.dataviz.ui);n&&n.destroy()})},at.parseOptions=S,st(at.ui,{Widget:$,roles:{},progress:function(t,n){var r,o,i,a,s=t.find(".k-loading-mask"),u=at.support,l=u.browser;n?s.length||(r=u.isRtl(t),o=r?"right":"left",a=t.scrollLeft(),i=l.webkit?r?t[0].scrollWidth-t.width()-2*a:0:0,s=e("
Loading...
").width("100%").height("100%").css("top",t.scrollTop()).css(o,Math.abs(a)+i).prependTo(t)):s&&s.remove()},plugin:function(t,r,o){var i,a=t.fn.options.name;r=r||at.ui,o=o||"",r[a]=t,r.roles[a.toLowerCase()]=t,i="getKendo"+o+a,a="kendo"+o+a,e.fn[a]=function(r){var o,i=this;return typeof r===bt?(o=Ct.call(arguments,1),this.each(function(){var t,s,u=e.data(this,a);if(!u){throw Error(at.format("Cannot call method '{0}' of {1} before it is initialized",r,a))}if(t=u[r],typeof t!==wt){throw Error(at.format("Cannot find method '{0}' of {1}",r,a))}return s=t.apply(u,o),s!==n?(i=s,!1):n})):this.each(function(){new t(this,r)}),i},e.fn[i]=function(){return this.data(a)}}}),Q={bind:function(){return this}},q=$.extend({init:function(e,t){$.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass("km-widget")},destroy:function(){$.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],view:function(){var e=this.element.closest(at.roleSelector("view splitview modalview drawer"));return at.widgetInstance(e,at.mobile.ui)},container:function(){var e=this.element.closest(at.roleSelector("view layout modalview drawer"));return at.widgetInstance(e,at.mobile.ui)||Q}}),st(at.mobile,{init:function(e){at.init(e,at.mobile.ui,at.ui,at.dataviz.ui)},ui:{Widget:q,roles:{},plugin:function(e){at.ui.plugin(e,at.mobile.ui,"Mobile")}}}),at.touchScroller=function(t,n){return e(t).map(function(t,r){return r=e(r),mt.kineticScrollNeeded&&at.mobile.ui.Scroller&&!r.data("kendoMobileScroller")?(r.kendoMobileScroller(n),r.data("kendoMobileScroller")):!1})[0]},at.preventDefault=function(e){e.preventDefault()},at.widgetInstance=function(e,t){var r=t.roles[e.data(at.ns+"role")];return r?e.data("kendo"+r.fn.options.prefix+r.fn.options.name):n},at.onResize=function(t){var n=t;return mt.mobileOS.android&&(n=function(){setTimeout(t,600)}),e(window).on(mt.resize,n),n},at.unbindResize=function(t){e(window).off(mt.resize,t)},at.attrValue=function(e,t){return e.data(at.ns+t)},at.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},e.extend(e.expr[":"],{focusable:function(t){var n=e.attr(t,"tabindex");return T(t,!isNaN(n)&&n>-1)}}),X=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"],Z="label, input, [data-rel=external]",et={setupMouseMute:function(){var t,n=0,r=X.length,o=document.documentElement;if(!et.mouseTrap&&mt.eventCapture){for(et.mouseTrap=!0,et.bustClick=!1,et.captureMouse=!1,t=function(t){et.captureMouse&&("click"===t.type?et.bustClick&&!e(t.target).is(Z)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};r>n;n++){o.addEventListener(X[n],t,!0)}}},muteMouse:function(e){et.captureMouse=!0,e.data.bustClick&&(et.bustClick=!0),clearTimeout(et.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(et.mouseTrapTimeoutID),et.mouseTrapTimeoutID=setTimeout(function(){et.captureMouse=!1,et.bustClick=!1},400)}},tt={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},mt.touch&&(mt.mobileOS.ios||mt.mobileOS.android)?tt={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:mt.pointers?tt={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:mt.msPointers&&(tt={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),!mt.msPointers||"onmspointerenter" in window||e.each({MSPointerEnter:"MSPointerOver",MSPointerLeave:"MSPointerOut"},function(t,n){e.event.special[t]={delegateType:n,bindType:n,handle:function(t){var r,o=this,i=t.relatedTarget,a=t.handleObj;return(!i||i!==o&&!e.contains(o,i))&&(t.type=a.origType,r=a.handler.apply(this,arguments),t.type=n),r}}}),nt=function(e){return tt[e]||e},rt=/([^ ]+)/g,at.applyEventMap=function(e,t){return e=e.replace(rt,nt),t&&(e=e.replace(rt,"$1."+t)),e},ot=e.fn.on,st(!0,O,e),O.fn=O.prototype=new e,O.fn.constructor=O,O.fn.init=function(t,n){return n&&n instanceof e&&!(n instanceof O)&&(n=O(n)),e.fn.init.call(this,t,n,it)},O.fn.init.prototype=O.fn,it=O(document),st(O.fn,{handler:function(e){return this.data("handler",e),this},autoApplyNS:function(e){return this.data("kendoNS",e||at.guid()),this},on:function(){var e,t,n,r,o,i,a=this,s=a.data("kendoNS");return 1===arguments.length?ot.call(a,arguments[0]):(e=a,t=Ct.call(arguments),typeof t[t.length-1]===Ot&&t.pop(),n=t[t.length-1],r=at.applyEventMap(t[0],s),mt.mouseAndTouchPresent&&r.search(/mouse|click/)>-1&&this[0]!==document.documentElement&&(et.setupMouseMute(),o=2===t.length?null:t[1],i=r.indexOf("click")>-1&&r.indexOf("touchend")>-1,ot.call(this,{touchstart:et.muteMouse,touchend:et.unMuteMouse},o,{bustClick:i})),typeof n===bt&&(e=a.data("handler"),n=e[n],t[t.length-1]=function(t){n.call(e,t)}),t[0]=r,ot.apply(a,t),a)},kendoDestroy:function(e){return e=e||this.data("kendoNS"),e&&this.off("."+e),this}}),at.jQuery=O,at.eventMap=tt,at.timezone=function(){function e(e,t){var n,r,o,i=t[3],a=t[4],s=t[5],u=t[8];return u||(t[8]=u={}),u[e]?u[e]:(isNaN(a)?0===a.indexOf("last")?(n=new Date(Date.UTC(e,l[i]+1,1,s[0]-24,s[1],s[2],0)),r=c[a.substr(4,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+r-o-(r>o?7:0))):a.indexOf(">=")>=0&&(n=new Date(Date.UTC(e,l[i],a.substr(5),s[0],s[1],s[2],0)),r=c[a.substr(0,3)],o=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+r-o+(o>r?7:0))):n=new Date(Date.UTC(e,l[i],a,s[0],s[1],s[2],0)),u[e]=n)}function t(t,n,r){var o,i,a;return(n=n[r])?(a=new Date(t).getUTCFullYear(),n=jQuery.grep(n,function(e){var t=e[0],n=e[1];return a>=t&&(n>=a||t==a&&"only"==n||"max"==n)}),n.push(t),n.sort(function(t,n){return"number"!=typeof t&&(t=Number(e(a,t))),"number"!=typeof n&&(n=Number(e(a,n))),t-n}),n[jQuery.inArray(t,n)-1]):(o=r.split(":"),i=0,o.length>1&&(i=60*o[0]+Number(o[1])),[-1000000,"max","-","Jan",1,[0,0,0],i,"-"])}function n(e,t,n){var r,o,i;if(t=t[n],!t){throw Error('Timezone "'+n+'" is either incorrect, or kendo.timezones.min.js is not included.')}for(r=t.length-1;r>=0&&(o=t[r][3],!(o&&e>o));r--){}if(i=t[r+1],!i){throw Error('Timezone "'+n+'" not found on '+e+".")}return i}function r(e,r,o,i){typeof e!=Mt&&(e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));var a=n(e,r,i);return{zone:a,rule:t(e,o,a[1])}}function o(e,t){var n,o,i;return"Etc/UTC"==t||"Etc/GMT"==t?0:(n=r(e,this.zones,this.rules,t),o=n.zone,i=n.rule,i?o[0]-i[6]:o[0])}function i(e,t){var n=r(e,this.zones,this.rules,t),o=n.zone,i=n.rule,a=o[2];return a.indexOf("index.html")>=0?a.split("index.html")[i&&i[6]?1:0]:a.indexOf("%s")>=0?a.replace("%s",i&&"-"!=i[7]?i[7]:""):a}function a(e,t,n){var r,o;return typeof t==bt&&(t=this.offset(e,t)),typeof n==bt&&(n=this.offset(e,n)),r=e.getTimezoneOffset(),e=new Date(e.getTime()+60000*(t-n)),o=e.getTimezoneOffset(),new Date(e.getTime()+60000*(o-r))}function s(e,t){return this.convert(e,e.getTimezoneOffset(),t)}function u(e,t){return this.convert(e,t,e.getTimezoneOffset())}var l={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},c={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};return{zones:{},rules:{},offset:o,convert:a,apply:s,remove:u,abbr:i}}(),at.date=function(){function e(e,t){return 0===t&&23===e.getHours()?(e.setHours(e.getHours()+2),!0):!1}function t(t,n,r){var o=t.getHours();r=r||1,n=(n-t.getDay()+7*r)%7,t.setDate(t.getDate()+n),e(t,o)}function n(e,n,r){return e=new Date(e),t(e,n,r),e}function r(e){return new Date(e.getFullYear(),e.getMonth(),1)}function o(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=r(e),o=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return o&&t.setHours(n.getHours()+o/60),t}function i(t){return t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),e(t,0),t}function a(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function s(e){return e.getTime()-i(e)}function u(e,t,n){var r,o=s(t),i=s(n);return e&&o!=i?(t>=n&&(n+=g),r=s(e),o>r&&(r+=g),o>i&&(i+=g),r>=o&&i>=r):!0}function l(e,t,n){var r,o=t.getTime(),i=n.getTime();return o>=i&&(i+=g),r=e.getTime(),r>=o&&i>=r}function c(t,n){var r=t.getHours();return t=new Date(t),d(t,n*g),e(t,r),t}function d(e,t,n){var r,o=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(r=e.getTimezoneOffset()-o,e.setTime(e.getTime()+r*h))}function f(){return i(new Date)}function p(e){return i(e).getTime()==f().getTime()}function m(e){var t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}var h=60000,g=86400000;return{adjustDST:e,dayOfWeek:n,setDayOfWeek:t,getDate:i,isInDateRange:l,isInTimeRange:u,isToday:p,nextDay:function(e){return c(e,1)},previousDay:function(e){return c(e,-1)},toUtcTime:a,MS_PER_DAY:g,MS_PER_MINUTE:h,setTime:d,addDays:c,today:f,toInvariantTime:m,firstDayOfMonth:r,lastDayOfMonth:o,getMilliseconds:s}}(),at.stripWhitespace=function(e){for(var 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)}}}(jQuery,eval),"undefined"==typeof kendo_module&&(kendo_module=function(){})})}("function"==typeof define&&define.amd?define:function(e,t){return t()});!function(define){return define(["./kendo.core.min"],function(){!function(e){function o(o,t){return o===t||e.contains(o,t)}var t=window.kendo,n=t.ui,i=n.Widget,s=t.support,r=t.getOffset,a=t._activeElement,l="open",p="close",d="deactivate",c="activate",f="center",u="left",m="right",g="top",h="bottom",w="absolute",v="hidden",_="body",k="location",y="position",b="visible",x="effects",z="k-state-active",T="k-state-border",P=/k-state-border-(\w+)/,C=".k-picker-wrap, .k-dropdown-wrap, .k-link",S="down",E=e(window),I=e(document.documentElement),W="resize scroll",H=s.transitions.css,O=H+"transform",N=e.extend,A=".kendoPopup",L=["font-family","font-size","font-stretch","font-style","font-weight","line-height"],F=i.extend({init:function(o,n){var s,r=this;n=n||{},n.isRtl&&(n.origin=n.origin||h+" "+m,n.position=n.position||g+" "+m),i.fn.init.call(r,o,n),o=r.element,n=r.options,r.collisions=n.collision?n.collision.split(" "):[],1===r.collisions.length&&r.collisions.push(r.collisions[0]),s=e(r.options.anchor).closest(".k-popup,.k-group").filter(":not([class^=km-])"),n.appendTo=e(e(n.appendTo)[0]||s[0]||_),r.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!n.isRtl).css({position:w}).appendTo(n.appendTo).on("mouseenter"+A,function(){r._hovered=!0}).on("mouseleave"+A,function(){r._hovered=!1}),r.wrapper=e(),n.animation===!1&&(n.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),N(n.animation.open,{complete:function(){r.wrapper.css({overflow:b}),r.trigger(c)}}),N(n.animation.close,{complete:function(){r.wrapper.hide();var i,s,a=r.wrapper.data(k),l=e(n.anchor);a&&r.wrapper.css(a),n.anchor!=_&&(i=(l[0].className.match(P)||["","down"])[1],s=T+"-"+i,l.removeClass(s).children(C).removeClass(z).removeClass(s),o.removeClass(T+"-"+t.directions[i].reverse)),r._closing=!1,r.trigger(d)}}),r._mousedownProxy=function(e){r._mousedown(e)},r._resizeProxy=function(e){r._resize(e)},n.toggleTarget&&e(n.toggleTarget).on(n.toggleEvent+A,e.proxy(r.toggle,r))},events:[l,c,p,d],options:{name:"Popup",toggleEvent:"click",origin:h+" "+u,position:g+" "+u,anchor:_,collision:"flip fit",viewport:window,copyAnchorStyles:!0,modal:!1,animation:{open:{effects:"slideIn:down",transition:!0,duration:200},close:{duration:100,hide:!0}}},destroy:function(){var o,n=this,s=n.options,r=n.element.off(A);i.fn.destroy.call(n),s.toggleTarget&&e(s.toggleTarget).off(A),s.modal||(I.unbind(S,n._mousedownProxy),E.unbind(W,n._resizeProxy)),s.appendTo[0]===document.body&&(o=r.parent(".k-animation-container"),o[0]?o.remove():r.remove()),t.destroy(n.element.children())},open:function(o,n){var i,r,a,p=this,d={isFixed:!isNaN(parseInt(n,10)),x:o,y:n},c=p.element,f=p.options,u="down",m=e(f.anchor);if(!p.visible()){if(f.copyAnchorStyles&&c.css(t.getComputedStyles(m[0],L)),c.data("animating")||p.trigger(l)){return}f.modal||(I.unbind(S,p._mousedownProxy).bind(S,p._mousedownProxy),s.mobileOS.ios||s.mobileOS.android||E.unbind(W,p._resizeProxy).bind(W,p._resizeProxy)),p.wrapper=r=t.wrap(c).css({overflow:v,display:"block",position:w}),s.mobileOS.android&&r.add(m).css(O,"translatez(0)"),r.css(y),e(f.appendTo)[0]==document.body&&r.css(g,"-10000px"),i=N(!0,{},f.animation.open),p.flipped=p._position(d),i.effects=t.parseEffects(i.effects,p.flipped),u=i.effects.slideIn?i.effects.slideIn.direction:u,f.anchor!=_&&(a=T+"-"+u,c.addClass(T+"-"+t.directions[u].reverse),m.addClass(a).children(C).addClass(z).addClass(a)),c.data(x,i.effects).kendoStop(!0).kendoAnimate(i)}},toggle:function(){var e=this;e[e.visible()?p:l]()},visible:function(){return this.element.is(":"+b)},close:function(){var o,n,i,s,r=this,a=r.options;if(r.visible()){if(o=r.wrapper[0]?r.wrapper:t.wrap(r.element).hide(),r._closing||r.trigger(p)){return}r.element.find(".k-popup").each(function(){var o=e(this),t=o.data("kendoPopup");t&&t.close()}),I.unbind(S,r._mousedownProxy),E.unbind(W,r._resizeProxy),n=N(!0,{},a.animation.close),i=r.element.data(x),s=n.effects,!s&&!t.size(s)&&i&&t.size(i)&&(n.effects=i,n.reverse=!0),r._closing=!0,r.element.kendoStop(!0),o.css({overflow:v}),r.element.kendoAnimate(n)}},_resize:function(e){var t=this;"resize"===e.type?(clearTimeout(t._resizeTimeout),t._resizeTimeout=setTimeout(function(){t._position(),t._resizeTimeout=null},50)):t._hovered||o(t.element[0],a())||t.close()},_mousedown:function(n){var i=this,s=i.element[0],r=i.options,a=e(r.anchor)[0],l=r.toggleTarget,p=t.eventTarget(n),d=e(p).closest(".k-popup"),c=d.parent().parent(".km-shim").length;d=d[0],(c||!d||d===i.element[0])&&"popover"!==e(n.target).closest("a").data("rel")&&(o(s,p)||o(a,p)||l&&o(e(l)[0],p)||i.close())},_fit:function(e,o,t){var n=0;return e+o>t&&(n=t-(e+o)),0>e&&(n=-e),n},_flip:function(e,o,t,n,i,s,r){var a=0;return r=r||o,s!==i&&s!==f&&i!==f&&(e+r>n&&(a+=-(t+o)),0>e+a&&(a+=t+o)),a},_position:function(o){var t,n,i,a,l,p,d,c,f,u=this,m=u.element.css(y,""),g=u.wrapper,h=u.options,v=e(h.viewport),_=e(v).offset(),b=e(h.anchor),x=h.origin.toLowerCase().split(" "),z=h.position.toLowerCase().split(" "),T=u.collisions,P=s.zoomLevel(),C=10002,S=0,E=b.parents().filter(g.siblings());if(E[0]){if(n=Number(e(E).css("zIndex"))){C=n+1}else{for(t=b.parentsUntil(E),i=t.length;i>S;S++){n=Number(e(t[S]).css("zIndex")),n&&n>C&&(C=n+1)}}}return g.css("zIndex",C),o&&o.isFixed?g.css({left:o.x,top:o.y}):g.css(u._align(x,z)),a=r(g,y,b[0]===g.offsetParent()[0]),l=r(g),p=b.offsetParent().parent(".k-animation-container,.k-popup,.k-group"),p.length&&(a=r(g,y,!0),l=r(g)),v[0]===window?(l.top-=window.pageYOffset||document.documentElement.scrollTop||0,l.left-=window.pageXOffset||document.documentElement.scrollLeft||0):(l.top-=_.top,l.left-=_.left),u.wrapper.data(k)||g.data(k,N({},a)),d=N({},l),c=N({},a),"fit"===T[0]&&(c.top+=u._fit(d.top,g.outerHeight(),v.height()/P)),"fit"===T[1]&&(c.left+=u._fit(d.left,g.outerWidth(),v.width()/P)),f=N({},c),"flip"===T[0]&&(c.top+=u._flip(d.top,m.outerHeight(),b.outerHeight(),v.height()/P,x[0],z[0],g.outerHeight())),"flip"===T[1]&&(c.left+=u._flip(d.left,m.outerWidth(),b.outerWidth(),v.width()/P,x[1],z[1],g.outerWidth())),m.css(y,w),g.css(c),c.left!=f.left||c.top!=f.top},_align:function(o,t){var n,i=this,s=i.wrapper,a=e(i.options.anchor),l=o[0],p=o[1],d=t[0],c=t[1],u=r(a),g=e(i.options.appendTo),w=s.outerWidth(),v=s.outerHeight(),_=a.outerWidth(),k=a.outerHeight(),y=u.top,b=u.left,x=Math.round;return g[0]!=document.body&&(n=r(g),y-=n.top,b-=n.left),l===h&&(y+=k),l===f&&(y+=x(k/2)),d===h&&(y-=v),d===f&&(y-=x(v/2)),p===m&&(b+=_),p===f&&(b+=x(_/2)),c===m&&(b-=w),c===f&&(b-=x(w/2)),{top:y,left:b}}});n.plugin(F)}(window.kendo.jQuery)})}("function"==typeof define&&define.amd?define:function(e,o){return o()});!function(define){return define(["./kendo.popup.min"],function(){!function(e,t){function n(e,t){return e=e.split(" ")[!t+0]||e,e.replace("top","up").replace("bottom","down")}function i(e,t,n){e=e.split(" ")[!t+0]||e;var i={origin:["bottom",n?"right":"left"],position:["top",n?"right":"left"]},r=/left|right/.test(e);return r?(i.origin=["top",e],i.position[1]=l.directions[e].reverse):(i.origin[0]=e,i.position[0]=l.directions[e].reverse),i.origin=i.origin.join(" "),i.position=i.position.join(" "),i}function r(t,n){try{return e.contains(t,n)}catch(i){return !1}}function o(t){t=e(t),t.addClass("k-item").children(w).addClass(O),t.children("a").addClass(y).children(w).addClass(O),t.filter(":not([disabled])").addClass(W),t.filter(".k-separator:empty").append(" "),t.filter("li[disabled]").addClass(q).removeAttr("disabled").attr("aria-disabled",!0),t.filter("[role]").length||t.attr("role","menuitem"),t.children("."+y).length||t.contents().filter(function(){return !(this.nodeName.match(C)||3==this.nodeType&&!e.trim(this.nodeValue))}).wrapAll(""),a(t),s(t)}function a(t){t=e(t),t.find("> .k-link > [class*=k-i-arrow]").remove(),t.filter(":has(.k-group)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var t=e(this),n=t.parent().parent();t.append("")})}function s(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass(A),t.filter(".k-last:not(:last-child)").removeClass(I),t.filter(":first-child").addClass(A),t.filter(":last-child").addClass(I)}var l=window.kendo,c=l.ui,d=l._activeElement,u=l.support.touch&&l.support.mobileOS,p="mousedown",m="click",f=e.extend,h=e.proxy,v=e.each,g=l.template,k=l.keys,_=c.Widget,C=/^(ul|a|div)$/i,b=".kendoMenu",w="img",T="open",x="k-menu",y="k-link",I="k-last",H="close",P="timer",A="k-first",O="k-image",D="select",E="zIndex",R="activate",U="deactivate",S="touchstart"+b+" MSPointerDown"+b+" pointerdown"+b,z=l.support.pointers,L=l.support.msPointers,B=z?"pointerover":L?"MSPointerOver":"mouseenter",M=z?"pointerout":L?"MSPointerOut":"mouseleave",N=u||L||z,G="kendoPopup",W="k-state-default",j="k-state-hover",V="k-state-focused",q="k-state-disabled",F=".k-group",K=":not(.k-list) > .k-item",Z=".k-item.k-state-disabled",$=".k-item:not(.k-state-disabled)",Q=".k-item:not(.k-state-disabled) > .k-link",Y=":not(.k-item.k-separator)",J=Y+":eq(0)",X=Y+":last",et="div:not(.k-animation-container,.k-list-container)",tt={content:g("
#= content(item) #
"),group:g(""),itemWrapper:g("<#= tag(item) # class='#= textClass(item) #'#= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #"),item:g(""),image:g(""),arrow:g(""),sprite:g(""),empty:g("")},nt={wrapperCssClass:function(e,t){var n="k-item",i=t.index;return n+=t.enabled===!1?" k-state-disabled":" k-state-default",e.firstLevel&&0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),t.cssClass&&(n+=" "+t.cssClass),n},textClass:function(){return y},textAttributes:function(e){return e.url?" href='"+e.url+"'":""},arrowClass:function(e,t){var n="k-icon";return n+=t.horizontal?" k-i-arrow-s":" k-i-arrow-e"},text:function(e){return e.encoded===!1?e.text:l.htmlEncode(e.text)},tag:function(e){return e.url?"a":"span"},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},groupCssClass:function(){return"k-group"},content:function(e){return e.content?e.content:" "}},it=_.extend({init:function(t,n){var i=this;_.fn.init.call(i,t,n),t=i.wrapper=i.element,n=i.options,i._initData(n),i._updateClasses(),i._animations(n),i.nextItemZIndex=100,i._tabindex(),i._focusProxy=h(i._focusHandler,i),t.on(S,i._focusProxy).on(m+b,Z,!1).on(m+b,$,h(i._click,i)).on("keydown"+b,h(i._keydown,i)).on("focus"+b,h(i._focus,i)).on("focus"+b,".k-content",h(i._focus,i)).on(S+" "+p+b,".k-content",h(i._preventClose,i)).on("blur"+b,h(i._removeHoverItem,i)).on("blur"+b,"[tabindex]",h(i._checkActiveElement,i)).on(B+b,$,h(i._mouseenter,i)).on(M+b,$,h(i._mouseleave,i)).on(B+b+" "+M+b+" "+p+b+" "+m+b,Q,h(i._toggleHover,i)),n.openOnClick&&(i.clicked=!1,i._documentClickHandler=h(i._documentClick,i),e(document).click(i._documentClickHandler)),t.attr("role","menubar"),t[0].id&&(i._ariaId=l.format("{0}_mn_active",t[0].id)),l.notify(i)},events:[T,H,R,U,D],options:{name:"Menu",animation:{open:{duration:200},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100},_initData:function(e){var t=this;e.dataSource&&(t.element.empty(),t.append(e.dataSource,t.element))},setOptions:function(e){var t=this.options.animation;this._animations(e),e.animation=f(!0,t,e.animation),"dataSource" in e&&this._initData(e),_.fn.setOptions.call(this,e)},destroy:function(){var t=this;_.fn.destroy.call(t),t.element.off(b),t._documentClickHandler&&e(document).unbind("click",t._documentClickHandler)},enable:function(e,t){return this._toggleDisabled(e,t!==!1),this},disable:function(e){return this._toggleDisabled(e,!1),this},append:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.length?t.find("> .k-group, > .k-animation-container > .k-group"):null);return v(n.items,function(){n.group.append(this),a(this)}),a(t),s(n.group.find(".k-first, .k-last").add(n.items)),this},insertBefore:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return v(n.items,function(){t.before(this),a(this),s(this)}),s(t),this},insertAfter:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return v(n.items,function(){t.after(this),a(this),s(this)}),s(t),this},_insert:function(t,n,i){var r,a,s,l,c=this;return n&&n.length||(i=c.element),s=e.isPlainObject(t),l={firstLevel:i.hasClass(x),horizontal:i.hasClass(x+"-horizontal"),expanded:!0,length:i.children().length},n&&!i.length&&(i=e(it.renderGroup({group:l})).appendTo(n)),s||e.isArray(t)?r=e.map(s?[t]:t,function(t,n){return"string"==typeof t?e(t):e(it.renderItem({group:l,item:f(t,{index:n})}))}):(r=e(t),a=r.find("> ul").addClass("k-group").attr("role","menu"),r=r.filter("li"),r.add(a.find("> li")).each(function(){o(this)})),{items:r,group:i}},remove:function(e){var t,n,i,r;return e=this.element.find(e),t=this,n=e.parentsUntil(t.element,K),i=e.parent("ul"),e.remove(),i&&!i.children(K).length&&(r=i.parent(".k-animation-container"),r.length?r.remove():i.remove()),n.length&&(n=n.eq(0),a(n),s(n)),t},open:function(r){var o=this,a=o.options,s="horizontal"==a.orientation,c=a.direction,d=l.support.isRtl(o.wrapper);return r=o.element.find(r),/^(top|bottom|default)$/.test(c)&&(c=d?s?(c+" left").replace("default","bottom"):"left":s?(c+" right").replace("default","bottom"):"right"),r.siblings().find(">.k-popup:visible,>.k-animation-container>.k-popup:visible").each(function(){var t=e(this).data("kendoPopup");t&&t.close()}),r.each(function(){var r=e(this);clearTimeout(r.data(P)),r.data(P,setTimeout(function(){var e,l,u,p,m,h,v=r.find(".k-group:first:hidden");v[0]&&o.trigger(T,{item:r[0]})===!1&&(r.data(E,r.css(E)),r.css(E,o.nextItemZIndex++),e=v.data(G),l=r.parent().hasClass(x),u=l&&s,p=i(c,l,d),m=a.animation.open.effects,h=m!==t?m:"slideIn:"+n(c,l),e?(e=v.data(G),e.options.origin=p.origin,e.options.position=p.position,e.options.animation.open.effects=h):e=v.kendoPopup({activate:function(){o.trigger(R,{item:this.wrapper.parent()})},deactivate:function(){o.trigger(U,{item:this.wrapper.parent()})},origin:p.origin,position:p.position,collision:a.popupCollision!==t?a.popupCollision:u?"fit":"fit flip",anchor:r,appendTo:r,animation:{open:f(!0,{effects:h},a.animation.open),close:a.animation.close},close:function(e){var t=e.sender.wrapper.parent();o.trigger(H,{item:t[0]})?e.preventDefault():(t.css(E,t.data(E)),t.removeData(E),N&&(t.removeClass(j),o._removeHoverItem()))}}).data(G),v.removeAttr("aria-hidden"),e.open())},o.options.hoverDelay))}),o},close:function(t){var n=this,i=n.element;return t=i.find(t),t.length||(t=i.find(">.k-item")),t.each(function(){var t=e(this);clearTimeout(t.data(P)),t.data(P,setTimeout(function(){var e=t.find(".k-group:not(.k-list-container):first:visible").data(G);e&&(e.close(),e.element.attr("aria-hidden",!0))},n.options.hoverDelay))}),n},_toggleDisabled:function(t,n){this.element.find(t).each(function(){e(this).toggleClass(W,n).toggleClass(q,!n).attr("aria-disabled",!n)})},_toggleHover:function(t){var n=e(l.eventTarget(t)||t.target).closest(K),i=t.type==B||-1!==p.indexOf(t.type);n.parents("li."+q).length||n.toggleClass(j,i||"mousedown"==t.type||"click"==t.type),this._removeHoverItem()},_preventClose:function(){this.options.closeOnClick||(this._closurePrevented=!0)},_checkActiveElement:function(t){var n=this,i=e(this._hoverItem()[0]||(t?t.currentTarget:{})),o=n._findRootParent(i)[0];this._closurePrevented||setTimeout(function(){(!document.hasFocus()||!r(o,l._activeElement())&&t&&!r(o,t.currentTarget))&&n.close(o)},0),this._closurePrevented=!1},_removeHoverItem:function(){var e=this._hoverItem();e&&e.hasClass(V)&&(e.removeClass(V),this._oldHoverItem=null)},_updateClasses:function(){var e,t=this.element;t.addClass("k-widget k-reset k-header "+x).addClass(x+"-"+this.options.orientation),t.find("li > ul").addClass("k-group").attr("role","menu").attr("aria-hidden",t.is(":visible")).end().find("li > div").addClass("k-content").attr("tabindex","-1"),e=t.find("> li,.k-group > li"),e.each(function(){o(this)})},_mouseenter:function(t){var n=this,i=e(t.currentTarget),o=i.children(".k-animation-container").length||i.children(F).length;t.delegateTarget==i.parents(".k-menu")[0]&&((!n.options.openOnClick||n.clicked)&&!r(t.currentTarget,t.relatedTarget)&&o&&n.open(i),(n.options.openOnClick&&n.clicked||N)&&i.siblings().each(h(function(e,t){n.close(t)},n)))},_mouseleave:function(n){var i=this,o=e(n.currentTarget),a=o.children(".k-animation-container").length||o.children(F).length;return o.parentsUntil(".k-animation-container",".k-list-container,.k-calendar-container")[0]?(n.stopImmediatePropagation(),t):(i.options.openOnClick||u||(z||L)&&n.originalEvent.pointerType==n.originalEvent.MSPOINTER_TYPE_TOUCH||r(n.currentTarget,n.relatedTarget)||!a||i.close(o),t)},_click:function(n){var i,r,o,a=this,s=a.options,c=e(l.eventTarget(n)),d=c[0]?c[0].nodeName.toUpperCase():"",u="INPUT"==d||"SELECT"==d||"BUTTON"==d||"LABEL"==d,p=c.closest("."+y),m=c.closest(K),f=p.attr("href"),h=!!f&&f!==e("").attr("href");if(!m.children(et)[0]){if(m.hasClass(q)){return n.preventDefault(),t}if(n.handled||!a.trigger(D,{item:m[0]})||u||n.preventDefault(),n.handled=!0,r=m.children(F+",.k-animation-container"),o=r.is(":visible"),s.closeOnClick&&!h&&(!r.length||s.openOnClick&&o)){return m.removeClass(j).css("height"),a._oldHoverItem=a._findRootParent(m),a.close(p.parentsUntil(a.element,K)),a.clicked=!1,-1!="MSPointerUp".indexOf(n.type)&&n.preventDefault(),t}h&&n.enterKey&&p[0].click(),(m.parent().hasClass(x)&&s.openOnClick||l.support.touch)&&(h||u||n.preventDefault(),a.clicked=!0,i=r.is(":visible")?H:T,(s.closeOnClick||i!=H)&&a[i](m))}},_documentClick:function(e){r(this.element[0],e.target)||(this.clicked=!1)},_focus:function(n){var i=this,r=n.target,o=i._hoverItem(),a=d();return r==i.wrapper[0]||e(r).is(":focusable")?(a===n.currentTarget&&(o.length?i._moveHover([],o):i._oldHoverItem||i._moveHover([],i.wrapper.children().first())),t):(n.stopPropagation(),e(r).closest(".k-content").closest(".k-group").closest(".k-item").addClass(V),i.wrapper.focus(),t)},_keydown:function(e){var n,i,r,o=this,a=e.keyCode,s=o._oldHoverItem,c=l.support.isRtl(o.wrapper);if(e.target==e.currentTarget||a==k.ESC){if(s||(s=o._oldHoverItem=o._hoverItem()),i=o._itemBelongsToVertival(s),r=o._itemHasChildren(s),a==k.RIGHT){n=o[c?"_itemLeft":"_itemRight"](s,i,r)}else{if(a==k.LEFT){n=o[c?"_itemRight":"_itemLeft"](s,i,r)}else{if(a==k.DOWN){n=o._itemDown(s,i,r)}else{if(a==k.UP){n=o._itemUp(s,i,r)}else{if(a==k.ESC){n=o._itemEsc(s,i)}else{if(a==k.ENTER||a==k.SPACEBAR){n=s.children(".k-link"),n.length>0&&(o._click({target:n[0],preventDefault:function(){},enterKey:!0}),o._moveHover(s,o._findRootParent(s)))}else{if(a==k.TAB){return n=o._findRootParent(s),o._moveHover(s,n),o._checkActiveElement(),t}}}}}}}n&&n[0]&&(e.preventDefault(),e.stopPropagation())}},_hoverItem:function(){return this.wrapper.find(".k-item.k-state-hover,.k-item.k-state-focused").filter(":visible")},_itemBelongsToVertival:function(e){var t=this.wrapper.hasClass("k-menu-vertical");return e.length?e.parent().hasClass("k-group")||t:t},_itemHasChildren:function(e){return e.length?e.children("ul.k-group, div.k-animation-container").length>0:!1},_moveHover:function(e,t){var n=this,i=n._ariaId;e.length&&t.length&&(e.removeClass(V),e[0].id===i&&e.removeAttr("id")),t.length&&(t[0].id&&(i=t[0].id),t.addClass(V),n._oldHoverItem=t,i&&(n.element.removeAttr("aria-activedescendant"),t.attr("id",i),n.element.attr("aria-activedescendant",i)))},_findRootParent:function(e){return e.parent().hasClass("k-menu")?e:e.parentsUntil(".k-menu","li.k-item").last()},_isRootItem:function(e){return e.parent().hasClass("k-menu")},_itemRight:function(e,t,n){var i,r,o=this;if(!e.hasClass(q)){return t?n?(o.open(e),i=e.find(".k-group").children().first()):"horizontal"==o.options.orientation&&(r=o._findRootParent(e),o.close(r),i=r.nextAll(J)):(i=e.nextAll(J),i.length||(i=e.prevAll(X))),i&&!i.length?i=o.wrapper.children(".k-item").first():i||(i=[]),o._moveHover(e,i),i}},_itemLeft:function(e,t){var n,i=this;return t?(n=e.parent().closest(".k-item"),i.close(n),i._isRootItem(n)&&"horizontal"==i.options.orientation&&(n=n.prevAll(J))):(n=e.prevAll(J),n.length||(n=e.nextAll(X))),n.length||(n=i.wrapper.children(".k-item").last()),i._moveHover(e,n),n},_itemDown:function(e,t,n){var i,r=this;if(t){i=e.nextAll(J)}else{if(!n||e.hasClass(q)){return}r.open(e),i=e.find(".k-group").children().first()}return !i.length&&e.length?i=e.parent().children().first():e.length||(i=r.wrapper.children(".k-item").first()),r._moveHover(e,i),i},_itemUp:function(e,t){var n,i=this;if(t){return n=e.prevAll(J),!n.length&&e.length?n=e.parent().children().last():e.length||(n=i.wrapper.children(".k-item").last()),i._moveHover(e,n),n}},_itemEsc:function(e,t){var n,i=this;return t?(n=e.parent().closest(".k-item"),i.close(n),i._moveHover(e,n),n):e},_focusHandler:function(t){var n=this,i=e(l.eventTarget(t)).closest(K);setTimeout(function(){n._moveHover([],i),i.children(".k-content")[0]&&i.parent().closest(".k-item").removeClass(V)},200)},_animations:function(e){e&&"animation" in e&&!e.animation&&(e.animation={open:{effects:{}},close:{hide:!0,effects:{}}})}});f(it,{renderItem:function(e){e=f({menu:{},group:{}},e);var t=tt.empty,n=e.item;return tt.item(f(e,{image:n.imageUrl?tt.image:t,sprite:n.spriteCssClass?tt.sprite:t,itemWrapper:tt.itemWrapper,renderContent:it.renderContent,arrow:n.items||n.content?tt.arrow:t,subGroup:it.renderGroup},nt))},renderGroup:function(e){return tt.group(f({renderItems:function(e){for(var t="",n=0,i=e.items,r=i?i.length:0,o=f({length:r},e.group);r>n;n++){t+=it.renderItem(f(e,{group:o,item:f({index:n},i[n])}))}return t}},e,nt))},renderContent:function(e){return tt.content(f(e,nt))}}),l.ui.plugin(it)}(window.kendo.jQuery)})}("function"==typeof define&&define.amd?define:function(e,t){return t()});