/** * Copyright 2015 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ (function(f,define){define([],f)})(function(){!function(e,t,n){function i(){}function r(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 o(e,t,n){return e+="",t=t||2,n=t-e.length,n?Y[t].substring(0,n)+e:e}function a(e){var t=e.css(gt.support.transitions.css+"box-shadow")||e.css("box-shadow"),n=t?t.match(St)||[0,0,0,0,0]:[0,0,0,0,0],i=kt.max(+n[3],+(n[4]||0));return{left:-n[1]+i,right:+n[1]+i,bottom:+n[2]+i}}function s(t,n){var i,r,o,s,l,u,c,d,f=Tt.browser,p="rtl"==t.css("direction");return t.parent().hasClass("k-animation-container")?(c=t.parent(".k-animation-container"),d=c[0].style,c.is(":hidden")&&c.show(),i=Mt.test(d.width)||Mt.test(d.height),i||c.css({width:t.outerWidth(),height:t.outerHeight(),boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"})):(r=a(t),o=t[0].style.width,s=t[0].style.height,l=Mt.test(o),u=Mt.test(s),f.opera&&(r.left=r.right=r.bottom=5),i=l||u,!l&&(!n||n&&o)&&(o=t.outerWidth()),!u&&(!n||n&&s)&&(s=t.outerHeight()),t.wrap(e("
").addClass("k-animation-container").css({width:o,height:s,marginLeft:r.left*(p?1:-1),paddingLeft:r.left,paddingRight:r.right,paddingBottom:r.bottom})),i&&t.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})),f.msie&&kt.floor(f.version)<=7&&(t.css({zoom:1}),t.children(".k-menu").width(t.width())),t.parent()}function l(e){var t=1,n=arguments.length;for(t=1;n>t;t++)u(e,arguments[t]);return e}function u(e,t){var n,i,r,o,a,s=gt.data.ObservableArray,l=gt.data.LazyObservableArray,c=gt.data.DataSource,d=gt.data.HierarchicalDataSource;for(n in t)i=t[n],r=typeof i,o=r===At&&null!==i?i.constructor:null,o&&o!==Array&&o!==s&&o!==l&&o!==c&&o!==d?i instanceof Date?e[n]=new Date(i.getTime()):F(i.clone)?e[n]=i.clone():(a=e[n],e[n]=typeof a===At?a||{}:{},u(e[n],i)):r!==Pt&&(e[n]=i);return e}function c(e,t,i){for(var r in t)if(t.hasOwnProperty(r)&&t[r].test(e))return r;return i!==n?i:e}function d(e){return e.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()})}function f(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()})}function p(t,n){var i,r={};return document.defaultView&&document.defaultView.getComputedStyle?(i=document.defaultView.getComputedStyle(t,""),n&&e.each(n,function(e,t){r[t]=i.getPropertyValue(t)})):(i=t.currentStyle,n&&e.each(n,function(e,t){r[t]=i[f(t)]})),gt.size(r)||(r=i),r}function m(e){return"visible"!=p(e,["overflow"]).overflow}function h(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&"toJSON"!=t&&n++;return n}function g(e,n,i){n||(n="offset");var r=e[n]();return Tt.browser.msie&&(Tt.pointers||Tt.msPointers)&&!i&&(r.top-=t.pageYOffset-document.documentElement.scrollTop,r.left-=t.pageXOffset-document.documentElement.scrollLeft),r}function v(e){var t={};return _t("string"==typeof e?e.split(" "):e,function(e){t[e]=this}),t}function _(e){return new gt.effects.Element(e)}function y(e,t,n,i){return typeof e===zt&&(F(t)&&(i=t,t=400,n=!1),F(n)&&(i=n,n=!1),typeof t===Et&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:i}),vt({effects:{},duration:400,reverse:!1,init:bt,teardown:bt,hide:!1},e,{completeCallback:e.complete,complete:bt})}function w(t,n,i,r,o){for(var a,s=0,l=t.length;l>s;s++)a=e(t[s]),a.queue(function(){L.promise(a,y(n,i,r,o))});return t}function b(e,t,n,i){return t&&(t=t.split(" "),_t(t,function(t,n){e.toggleClass(n,i)})),e}function k(e){return(""+e).replace(B,"&").replace($,"<").replace(J,">").replace(j,""").replace(q,"'")}function x(e,t){var i;return 0===t.indexOf("data")&&(t=t.substring(4),t=t.charAt(0).toLowerCase()+t.substring(1)),t=t.replace(it,"-$1"),i=e.getAttribute("data-"+gt.ns+t),null===i?i=n:"null"===i?i=null:"true"===i?i=!0:"false"===i?i=!1:Ct.test(i)?i=parseFloat(i):tt.test(i)&&!nt.test(i)&&(i=Function("return ("+i+")")()),i}function T(t,i){var r,o,a={};for(r in i)o=x(t,r),o!==n&&(et.test(r)&&(o=gt.template(e("#"+o).html())),a[r]=o);return a}function M(t,n){return e.contains(t,n)?-1:1}function D(){var t=e(this);return e.inArray(t.attr("data-"+gt.ns+"role"),["slider","rangeslider"])>-1||t.is(":visible")}function S(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&C(e)}function C(t){return!e(t).parents().addBack().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 z,F,A,H,E,P,N,I,V,W,R,Y,U,L,B,$,j,q,J,G,K,Q,Z,X,et,tt,nt,it,rt,ot,at,st,lt,ut,ct,dt,ft,pt,mt,ht,gt=t.kendo=t.kendo||{cultures:{}},vt=e.extend,_t=e.each,yt=e.isArray,wt=e.proxy,bt=e.noop,kt=Math,xt=t.JSON||{},Tt={},Mt=/%/,Dt=/\{(\d+)(:[^\}]+)?\}/g,St=/(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+)?/i,Ct=/^(\+|-?)\d+(\.?)\d*$/,Ot="function",zt="string",Ft="number",At="object",Ht="null",Et="boolean",Pt="undefined",Nt={},It={},Vt=[].slice,Wt=t.Globalize;gt.version="$KENDO_VERSION",i.extend=function(e){var t,n,i=function(){},r=this,o=e&&e.init?e.init:function(){r.apply(this,arguments)};i.prototype=r.prototype,n=o.fn=o.prototype=new i;for(t in e)n[t]=null!=e[t]&&e[t].constructor===Object?vt(!0,{},i.prototype[t],e[t]):e[t];return n.constructor=o,o.extend=r.extend,o},i.prototype._initOptions=function(e){this.options=l({},this.options,e)},F=gt.isFunction=function(e){return"function"==typeof e},A=function(){this._defaultPrevented=!0},H=function(){return this._defaultPrevented===!0},E=i.extend({init:function(){this._events={}},bind:function(e,t,i){var r,o,a,s,l,u=this,c=typeof e===zt?[e]:e,d=typeof t===Ot;if(t===n){for(r in e)u.bind(r,e[r]);return u}for(r=0,o=c.length;o>r;r++)e=c[r],s=d?t:t[e],s&&(i&&(a=s,s=function(){u.unbind(e,s),a.apply(u,arguments)},s.original=a),l=u._events[e]=u._events[e]||[],l.push(s));return u},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,i,r,o,a=this,s=typeof e===zt?[e]:e,l=typeof t===Ot;for(n=0,i=s.length;i>n;n++)e=s[n],r=l?t:t[e],r&&(o=a._events[e]=a._events[e]||[],o.unshift(r));return a},trigger:function(e,t){var n,i,r=this,o=r._events[e];if(o){for(t=t||{},t.sender=r,t._defaultPrevented=!1,t.preventDefault=A,t.isDefaultPrevented=H,o=o.slice(),n=0,i=o.length;i>n;n++)o[n].call(r,t);return t._defaultPrevented===!0}return!1},unbind:function(e,t){var i,r=this,o=r._events[e];if(e===n)r._events={};else if(o)if(t)for(i=o.length-1;i>=0;i--)(o[i]===t||o[i].original===t)&&o.splice(i,1);else r._events[e]=[];return r}}),P=/^\w+/,N=/\$\{([^}]*)\}/g,I=/\\\}/g,V=/__CURLY__/g,W=/\\#/g,R=/__SHARP__/g,Y=["","0","00","000","0000"],z={paramName:"data",useWithBlock:!0,render:function(e,t){var n,i,r="";for(n=0,i=t.length;i>n;n++)r+=e(t[n]);return r},compile:function(e,t){var n,i,o,a=vt({},this,t),s=a.paramName,l=s.match(P)[0],u=a.useWithBlock,c="var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;";if(F(e))return e;for(c+=u?"with("+s+"){":"",c+="$kendoOutput=",i=e.replace(I,"__CURLY__").replace(N,"#=$kendoHtmlEncode($1)#").replace(V,"}").replace(W,"__SHARP__").split("#"),o=0;i.length>o;o++)c+=r(i[o],o%2===0);c+=u?";}":";",c+="return $kendoOutput;",c=c.replace(R,"#");try{return n=Function(l,c),n._slotCount=Math.floor(i.length/2),n}catch(d){throw Error(gt.format("Invalid template:'{0}' Generated code:'{1}'",e,c))}}},function(){function e(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,function(e){var t=s[e];return typeof t===zt?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function t(o,a){var s,u,c,d,f,p,m=n,h=a[o];if(h&&typeof h===At&&typeof h.toJSON===Ot&&(h=h.toJSON(o)),typeof r===Ot&&(h=r.call(a,o,h)),p=typeof h,p===zt)return e(h);if(p===Ft)return isFinite(h)?h+"":Ht;if(p===Et||p===Ht)return h+"";if(p===At){if(!h)return Ht;if(n+=i,f=[],"[object Array]"===l.apply(h)){for(d=h.length,s=0;d>s;s++)f[s]=t(s,h)||Ht;return c=0===f.length?"[]":n?"[\n"+n+f.join(",\n"+n)+"\n"+m+"]":"["+f.join(",")+"]",n=m,c}if(r&&typeof r===At)for(d=r.length,s=0;d>s;s++)typeof r[s]===zt&&(u=r[s],c=t(u,h),c&&f.push(e(u)+(n?": ":":")+c));else for(u in h)Object.hasOwnProperty.call(h,u)&&(c=t(u,h),c&&f.push(e(u)+(n?": ":":")+c));return c=0===f.length?"{}":n?"{\n"+n+f.join(",\n"+n)+"\n"+m+"}":"{"+f.join(",")+"}",n=m,c}}var n,i,r,a=/[\\\"\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",'"':'\\"',"\\":"\\\\"},l={}.toString;typeof Date.prototype.toJSON!==Ot&&(Date.prototype.toJSON=function(){var e=this;return isFinite(e.valueOf())?o(e.getUTCFullYear(),4)+"-"+o(e.getUTCMonth()+1)+"-"+o(e.getUTCDate())+"T"+o(e.getUTCHours())+":"+o(e.getUTCMinutes())+":"+o(e.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof xt.stringify!==Ot&&(xt.stringify=function(e,o,a){var s;if(n="",i="",typeof a===Ft)for(s=0;a>s;s+=1)i+=" ";else typeof a===zt&&(i=a);if(r=o,o&&typeof o!==Ot&&(typeof o!==At||typeof o.length!==Ft))throw Error("JSON.stringify");return t("",{"":e})})}(),function(){function t(e){if(e){if(e.numberFormat)return e;if(typeof e===zt){var t=gt.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function i(e){return e&&(e=t(e)),e||gt.cultures.current}function r(e){e.groupSizes=e.groupSize,e.percent.groupSizes=e.percent.groupSize,e.currency.groupSizes=e.currency.groupSize}function a(e,t,r){r=i(r);var a=r.calendars.standard,s=a.days,l=a.months;return t=a.patterns[t]||t,t.replace(c,function(t){var i,r,u;return"d"===t?r=e.getDate():"dd"===t?r=o(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=o(e.getMonth()+1):"MMM"===t?r=l.namesAbbr[e.getMonth()]:"MMMM"===t?r=l.names[e.getMonth()]:"yy"===t?r=o(e.getFullYear()%100):"yyyy"===t?r=o(e.getFullYear(),4):"h"===t?r=e.getHours()%12||12:"hh"===t?r=o(e.getHours()%12||12):"H"===t?r=e.getHours():"HH"===t?r=o(e.getHours()):"m"===t?r=e.getMinutes():"mm"===t?r=o(e.getMinutes()):"s"===t?r=e.getSeconds():"ss"===t?r=o(e.getSeconds()):"f"===t?r=kt.floor(e.getMilliseconds()/100):"ff"===t?(r=e.getMilliseconds(),r>99&&(r=kt.floor(r/10)),r=o(r)):"fff"===t?r=o(e.getMilliseconds(),3):"tt"===t?r=e.getHours()<12?a.AM[0]:a.PM[0]:"zzz"===t?(i=e.getTimezoneOffset(),u=0>i,r=(""+kt.abs(i/60)).split(".")[0],i=kt.abs(i)-60*r,r=(u?"+":"-")+o(r),r+=":"+o(i)):("zz"===t||"z"===t)&&(r=e.getTimezoneOffset()/60,u=0>r,r=(""+kt.abs(r)).split(".")[0],r=(u?"+":"-")+("zz"===t?o(r):r)),r!==n?r:t.slice(1,t.length-1)})}function s(e,t,r){r=i(r);var o,a,s,u,c,w,b,k,x,T,M,D,S,C,O,z,F,A,H,E,P,N,I,V=r.numberFormat,W=V.groupSize[0],R=V[g],Y=V[h],U=V.decimals,L=V.pattern[0],B=[],$=0>e,j=m,q=m,J=-1;if(e===n)return m;if(!isFinite(e))return e;if(!t)return r.name.length?e.toLocaleString():""+e;if(c=d.exec(t)){if(t=c[1].toLowerCase(),a="c"===t,s="p"===t,(a||s)&&(V=a?V.currency:V.percent,W=V.groupSize[0],R=V[g],Y=V[h],U=V.decimals,o=V.symbol,L=V.pattern[$?0:1]),u=c[2],u&&(U=+u),"e"===t)return u?e.toExponential(U):e.toExponential();if(s&&(e*=100),e=l(e,U),$=0>e,e=e.split(h),w=e[0],b=e[1],$&&(w=w.substring(1)),q=w,k=w.length,k>=W)for(q=m,T=0;k>T;T++)T>0&&(k-T)%W===0&&(q+=R),q+=w.charAt(T);if(b&&(q+=Y+b),"n"===t&&!$)return q;for(e=m,T=0,M=L.length;M>T;T++)D=L.charAt(T),e+="n"===D?q:"$"===D||"%"===D?o:D;return e}if($&&(e=-e),(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1)&&(t=t.replace(f,function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return B.push(n),y})),t=t.split(";"),$&&t[1])t=t[1],C=!0;else if(0===e){if(t=t[2]||t[0],-1==t.indexOf(v)&&-1==t.indexOf(_))return t}else t=t[0];if(E=t.indexOf("%"),P=t.indexOf("$"),s=-1!=E,a=-1!=P,s&&(e*=100),a&&"\\"===t[P-1]&&(t=t.split("\\").join(""),a=!1),(a||s)&&(V=a?V.currency:V.percent,W=V.groupSize[0],R=V[g],Y=V[h],U=V.decimals,o=V.symbol),S=t.indexOf(g)>-1,S&&(t=t.replace(p,m)),O=t.indexOf(h),M=t.length,-1!=O?(b=(""+e).split("e"),b=b[1]?l(e,Math.abs(b[1])):b[0],b=b.split(h)[1]||m,F=t.lastIndexOf(_)-O,z=t.lastIndexOf(v)-O,A=F>-1,H=z>-1,T=b.length,A||H||(t=t.substring(0,O)+t.substring(O+1),M=t.length,O=-1,T=0),A&&F>z?T=F:z>F&&(H&&T>z?T=z:A&&F>T&&(T=F)),T>-1&&(e=l(e,T))):e=l(e),z=t.indexOf(v),N=F=t.indexOf(_),J=-1==z&&-1!=F?F:-1!=z&&-1==F?z:z>F?F:z,z=t.lastIndexOf(v),F=t.lastIndexOf(_),I=-1==z&&-1!=F?F:-1!=z&&-1==F?z:z>F?z:F,J==M&&(I=J),-1!=J){if(q=(""+e).split(h),w=q[0],b=q[1]||m,k=w.length,x=b.length,$&&-1*e>=0&&($=!1),S)if(k===W&&O-N>k)w=R+w;else if(k>W){for(q=m,T=0;k>T;T++)T>0&&(k-T)%W===0&&(q+=R),q+=w.charAt(T);w=q}for(e=t.substring(0,J),$&&!C&&(e+="-"),T=J;M>T;T++){if(D=t.charAt(T),-1==O){if(k>I-T){e+=w;break}}else if(-1!=F&&T>F&&(j=m),k>=O-T&&O-T>-1&&(e+=w,T=O),O===T){e+=(b?Y:m)+b,T+=I-O+1;continue}D===_?(e+=D,j=D):D===v&&(e+=j)}if(I>=J&&(e+=t.substring(I+1)),a||s){for(q=m,T=0,M=e.length;M>T;T++)D=e.charAt(T),q+="$"===D||"%"===D?o:D;e=q}if(M=B.length)for(T=0;M>T;T++)e=e.replace(y,B[T])}return e}var l,u,c=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|"[^"]*"|'[^']*'/g,d=/^(n|c|p|e)(\d*)$/i,f=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,p=/\,/g,m="",h=".",g=",",v="#",_="0",y="??",w="en-US",b={}.toString;gt.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}}},gt.culture=function(e){var i,o=gt.cultures;return e===n?o.current:(i=t(e)||o[w],i.calendar=i.calendars.standard,o.current=i,Wt&&!Wt.load&&r(i.numberFormat),n)},gt.findCulture=t,gt.getCulture=i,gt.culture(w),l=function(e,t){return t=t||0,e=(""+e).split("e"),e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t))),e=(""+e).split("e"),e=+(e[0]+"e"+(e[1]?+e[1]-t:-t)),e.toFixed(t)},u=function(e,t,i){if(t){if("[object Date]"===b.call(e))return a(e,t,i);if(typeof e===Ft)return s(e,t,i)}return e!==n?e:""},Wt&&!Wt.load&&(u=function(t,n,i){return e.isPlainObject(i)&&(i=i.name),Wt.format(t,n,i)}),gt.format=function(e){var t=arguments;return e.replace(Dt,function(e,n,i){var r=t[parseInt(n,10)+1];return u(r,i?i.substring(1):"")})},gt._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},gt._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},gt._round=l,gt.toString=u}(),function(){function t(e,t,n){return!(e>=t&&n>=e)}function i(e){return e.charAt(0)}function r(t){return e.map(t,i)}function o(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}function a(e){for(var t=0,n=e.length,i=[];n>t;t++)i[t]=(e[t]+"").toLowerCase();return i}function s(e){var t,n={};for(t in e)n[t]=a(e[t]);return n}function l(e,i,a){if(!e)return null;var l,u,c,d,m,h,g,_,y,w,b,k,x,T=function(e){for(var t=0;i[N]===e;)t++,N++;return t>0&&(N-=1),t},M=function(t){var n=v[t]||RegExp("^\\d{1,"+t+"}"),i=e.substr(I,t).match(n);return i?(i=i[0],I+=i.length,parseInt(i,10)):null},D=function(t,n){for(var i,r,o,a=0,s=t.length;s>a;a++)if(i=t[a],r=i.length,o=e.substr(I,r),n&&(o=o.toLowerCase()),o==i)return I+=r,a+1;return null},S=function(){var t=!1;return e.charAt(I)===i[N]&&(I++,t=!0),t},C=a.calendars.standard,O=null,z=null,F=null,A=null,H=null,E=null,P=null,N=0,I=0,V=!1,W=new Date,R=C.twoDigitYearMax||2029,Y=W.getFullYear();for(i||(i="d"),d=C.patterns[i],d&&(i=d),i=i.split(""),c=i.length;c>N;N++)if(l=i[N],V)"'"===l?V=!1:S();else if("d"===l){if(u=T("d"),C._lowerDays||(C._lowerDays=s(C.days)),F=3>u?M(2):D(C._lowerDays[3==u?"namesAbbr":"names"],!0),null===F||t(F,1,31))return null}else if("M"===l){if(u=T("M"),C._lowerMonths||(C._lowerMonths=s(C.months)),z=3>u?M(2):D(C._lowerMonths[3==u?"namesAbbr":"names"],!0),null===z||t(z,1,12))return null;z-=1}else if("y"===l){if(u=T("y"),O=M(u),null===O)return null;2==u&&("string"==typeof R&&(R=Y+parseInt(R,10)),O=Y-Y%100+O,O>R&&(O-=100))}else if("h"===l){if(T("h"),A=M(2),12==A&&(A=0),null===A||t(A,0,11))return null}else if("H"===l){if(T("H"),A=M(2),null===A||t(A,0,23))return null}else if("m"===l){if(T("m"),H=M(2),null===H||t(H,0,59))return null}else if("s"===l){if(T("s"),E=M(2),null===E||t(E,0,59))return null}else if("f"===l){if(u=T("f"),x=e.substr(I,u).match(v[3]),P=M(u),null!==P&&(x=x[0].length,3>x&&(P*=Math.pow(10,3-x)),u>3&&(P=parseInt((""+P).substring(0,3),10))),null===P||t(P,0,999))return null}else if("t"===l){if(u=T("t"),_=C.AM,y=C.PM,1===u&&(_=r(_),y=r(y)),m=D(y),!m&&!D(_))return null}else if("z"===l){if(h=!0,u=T("z"),"Z"===e.substr(I,1)){S();continue}if(g=e.substr(I,6).match(u>2?p:f),!g)return null;if(g=g[0].split(":"),w=g[0],b=g[1],!b&&w.length>3&&(I=w.length-2,b=w.substring(I),w=w.substring(0,I)),w=parseInt(w,10),t(w,-12,13))return null;if(u>2&&(b=parseInt(b,10),isNaN(b)||t(b,0,59)))return null}else if("'"===l)V=!0,S();else if(!S())return null;return k=null!==A||null!==H||E||null,null===O&&null===z&&null===F&&k?(O=Y,z=W.getMonth(),F=W.getDate()):(null===O&&(O=Y),null===F&&(F=1)),m&&12>A&&(A+=12),h?(w&&(A+=-w),b&&(H+=-b),e=new Date(Date.UTC(O,z,F,A,H,E,P))):(e=new Date(O,z,F,A,H,E,P),o(e,A)),100>O&&e.setFullYear(O),e.getDate()!==F&&h===n?null:e}function u(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}var c=/\u00A0/g,d=/[eE][\-+]?[0-9]+/,f=/[+|\-]\d{1,2}/,p=/[+|\-]\d{1,2}:?\d{2}/,m=/^\/Date\((.*?)\)\/$/,h=/[+-]\d*/,g=["G","g","d","F","D","y","m","T","t"],v={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},_={}.toString;gt.parseDate=function(e,t,n){var i,r,o,a,s;if("[object Date]"===_.call(e))return e;if(i=0,r=null,e&&0===e.indexOf("/D")&&(r=m.exec(e)))return r=r[1],s=h.exec(r.substring(1)),r=new Date(parseInt(r,10)),s&&(s=u(s[0]),r=gt.timezone.apply(r,0),r=gt.timezone.convert(r,0,-1*s)),r;if(n=gt.getCulture(n),!t){for(t=[],a=n.calendar.patterns,o=g.length;o>i;i++)t[i]=a[g[i]];i=0,t=["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:mm:ss.fffffff","yyyy-MM-ddTHH:mm:ss.fff","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","HH:mm:ss","HH:mm"].concat(t)}for(t=yt(t)?t:[t],o=t.length;o>i;i++)if(r=l(e,t[i],n))return r;return r},gt.parseInt=function(e,t){var n=gt.parseFloat(e,t);return n&&(n=0|n),n},gt.parseFloat=function(e,t,n){if(!e&&0!==e)return null;if(typeof e===Ft)return e;e=""+e,t=gt.getCulture(t);var i,r,o=t.numberFormat,a=o.percent,s=o.currency,l=s.symbol,u=a.symbol,f=e.indexOf("-");return d.test(e)?(e=parseFloat(e.replace(o["."],".")),isNaN(e)&&(e=null),e):f>0?null:(f=f>-1,e.indexOf(l)>-1||n&&n.toLowerCase().indexOf("c")>-1?(o=s,i=o.pattern[0].replace("$",l).split("n"),e.indexOf(i[0])>-1&&e.indexOf(i[1])>-1&&(e=e.replace(i[0],"").replace(i[1],""),f=!0)):e.indexOf(u)>-1&&(r=!0,o=a,l=u),e=e.replace("-","").replace(l,"").replace(c," ").split(o[","].replace(c," ")).join("").replace(o["."],"."),e=parseFloat(e),isNaN(e)?e=null:f&&(e*=-1),e&&r&&(e/=100),e)},Wt&&!Wt.load&&(gt.parseDate=function(e,t,n){return"[object Date]"===_.call(e)?e:Wt.parseDate(e,t,n)},gt.parseFloat=function(t,i){return typeof t===Ft?t:t===n||null===t?null:(e.isPlainObject(i)&&(i=i.name),t=Wt.parseFloat(t,i),isNaN(t)?null:t)})}(),function(){var i,r,o,a,s,l,u;Tt._scrollbar=n,Tt.scrollbar=function(e){if(isNaN(Tt._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),Tt._scrollbar=t=n.offsetWidth-n.scrollWidth,document.body.removeChild(n),t}return Tt._scrollbar},Tt.isRtl=function(t){return e(t).closest(".k-rtl").length>0},i=document.createElement("table");try{i.innerHTML="",Tt.tbodyInnerHtml=!0}catch(d){Tt.tbodyInnerHtml=!1}Tt.touch="ontouchstart"in t,Tt.msPointers=t.MSPointerEvent,Tt.pointers=t.PointerEvent,r=Tt.transitions=!1,o=Tt.transforms=!1,a="HTMLElement"in t?HTMLElement.prototype:[],Tt.hasHW3D="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix||"MozPerspective"in document.documentElement.style||"msPerspective"in document.documentElement.style,_t(["Moz","webkit","O","ms"],function(){var e,t=""+this,a=typeof i.style[t+"Transition"]===zt;return a||typeof i.style[t+"Transform"]===zt?(e=t.toLowerCase(),o={css:"ms"!=e?"-"+e+"-":"",prefix:t,event:"o"===e||"webkit"===e?e:""},a&&(r=o,r.event=r.event?r.event+"TransitionEnd":"transitionend"),!1):n}),i=null,Tt.transforms=o,Tt.transitions=r,Tt.devicePixelRatio=t.devicePixelRatio===n?1:t.devicePixelRatio;try{Tt.screenWidth=t.outerWidth||t.screen?t.screen.availWidth:t.innerWidth,Tt.screenHeight=t.outerHeight||t.screen?t.screen.availHeight:t.innerHeight}catch(d){Tt.screenWidth=t.screen.availWidth,Tt.screenHeight=t.screen.availHeight}Tt.detectOS=function(e){var n,i,r=!1,o=[],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/},u={tablet:/playbook|ipad|fire/i},d={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)&&(o=e.match(s[i]))){if("windows"==i&&"plugins"in navigator)return!1;r={},r.device=i,r.tablet=c(i,u,!1),r.browser=c(e,d,"default"),r.name=c(i,l),r[r.name]=!0,r.majorVersion=o[2],r.minorVersion=o[3].replace("_","."),n=r.minorVersion.replace(".","").substr(0,2),r.flatVersion=r.majorVersion+n+Array(3-(3>n.length?n.length:2)).join("0"),r.cordova=typeof t.PhoneGap!==Pt||typeof t.cordova!==Pt,r.appMode=t.navigator.standalone||/file|local|wmapp/.test(t.location.protocol)||r.cordova,r.android&&(1.5>Tt.devicePixelRatio&&400>r.flatVersion||a)&&(Tt.screenWidth>800||Tt.screenHeight>800)&&(r.tablet=i);break}return r},s=Tt.mobileOS=Tt.detectOS(navigator.userAgent),Tt.wpDevicePixelRatio=s.wp?screen.width/320:0,Tt.kineticScrollNeeded=s&&(Tt.touch||Tt.msPointers||Tt.pointers),Tt.hasNativeScrolling=!1,(s.ios||s.android&&s.majorVersion>2||s.wp)&&(Tt.hasNativeScrolling=s),Tt.mouseAndTouchPresent=Tt.touch&&!(Tt.mobileOS.ios||Tt.mobileOS.android),Tt.detectBrowser=function(e){var t,n=!1,i=[],r={webkit:/(chrome)[ \/]([\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 r)if(r.hasOwnProperty(t)&&(i=e.match(r[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},Tt.browser=Tt.detectBrowser(navigator.userAgent),Tt.zoomLevel=function(){var e,n,i;try{return e=Tt.browser,n=0,i=document.documentElement,e.msie&&11==e.version&&i.scrollHeight>i.clientHeight&&!Tt.touch&&(n=Tt.scrollbar()),Tt.touch?i.clientWidth/t.innerWidth:e.msie&&e.version>=10?((top||t).document.documentElement.offsetWidth+n)/(top||t).innerWidth:1}catch(r){return 1}},Tt.cssBorderSpacing=n!==document.documentElement.style.borderSpacing&&!(Tt.browser.msie&&8>Tt.browser.version),function(t){var n="",i=e(document.documentElement),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&&(n="k-"+n+" k-"+n+r),Tt.mobileOS&&(n+=" k-mobile"),i.addClass(n)}(Tt.browser),Tt.eventCapture=document.documentElement.addEventListener,l=document.createElement("input"),Tt.placeholder="placeholder"in l,Tt.propertyChangeEvent="onpropertychange"in l,Tt.input=function(){for(var e,t=["number","date","time","month","week","datetime","datetime-local"],n=t.length,i="test",r={},o=0;n>o;o++)e=t[o],l.setAttribute("type",e),l.value=i,r[e.replace("-","")]="text"!==l.type&&l.value!==i;return r}(),l.style.cssText="float:left;",Tt.cssFloat=!!l.style.cssFloat,l=null,Tt.stableSort=function(){var e,t=513,n=[{index:0,field:"b"}];for(e=1;t>e;e++)n.push({index:e,field:"a"});return n.sort(function(e,t){return e.field>t.field?1:t.field>e.field?-1:0}),1===n[0].index}(),Tt.matchesSelector=a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.matchesSelector||a.matches||function(t){for(var n=document.querySelectorAll?(this.parentNode||document).querySelectorAll(t)||[]:e(t),i=n.length;i--;)if(n[i]==this)return!0;return!1},Tt.pushState=t.history&&t.history.pushState,u=document.documentMode,Tt.hashChange="onhashchange"in t&&!(Tt.browser.msie&&(!u||8>=u))}(),U={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},L={},e.extend(L,{enabled:!0,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()},disable:function(){this.enabled=!1,this.promise=this.promiseShim},enable:function(){this.enabled=!0,this.promise=this.animatedPromise}}),L.promiseShim=L.promise,"kendoAnimate"in e.fn||vt(e.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,i){return w(this,e,t,n,i)},kendoAddClass:function(e,t){return gt.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return gt.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return gt.toggleClass(this,e,t,n)}}),B=/&/g,$=//g,G=function(e){return e.target},Tt.touch&&(G=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},_t(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(t,n){e.fn[n]=function(e){return this.bind(n,e)}})),Tt.touch?Tt.mobileOS?(Tt.mousedown="touchstart",Tt.mouseup="touchend",Tt.mousemove="touchmove",Tt.mousecancel="touchcancel",Tt.click="touchend",Tt.resize="orientationchange"):(Tt.mousedown="mousedown touchstart",Tt.mouseup="mouseup touchend",Tt.mousemove="mousemove touchmove",Tt.mousecancel="mouseleave touchcancel",Tt.click="click",Tt.resize="resize"):Tt.pointers?(Tt.mousemove="pointermove",Tt.mousedown="pointerdown",Tt.mouseup="pointerup",Tt.mousecancel="pointercancel",Tt.click="pointerup",Tt.resize="orientationchange resize"):Tt.msPointers?(Tt.mousemove="MSPointerMove",Tt.mousedown="MSPointerDown",Tt.mouseup="MSPointerUp",Tt.mousecancel="MSPointerCancel",Tt.click="MSPointerUp",Tt.resize="orientationchange resize"):(Tt.mousemove="mousemove",Tt.mousedown="mousedown",Tt.mouseup="mouseup",Tt.mousecancel="mouseleave",Tt.click="click",Tt.resize="resize"),K=function(e,t){var n,i,r,o,a=t||"d",s=1;for(i=0,r=e.length;r>i;i++)o=e[i],""!==o&&(n=o.indexOf("["),0!==n&&(-1==n?o="."+o:(s++,o="."+o.substring(0,n)+" || {})"+o.substring(n))),s++,a+=o+(r-1>i?" || {})":")"));return Array(s).join("(")+a},Q=/^([a-z]+:)?\/\//i,vt(gt,{ui:gt.ui||{},fx:gt.fx||_,effects:gt.effects||L,mobile:gt.mobile||{},data:gt.data||{},dataviz:gt.dataviz||{},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,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110},support:gt.support||Tt,animate:gt.animate||w,ns:"",attr:function(e){return"data-"+gt.ns+e},getShadows:a,wrap:s,deepExtend:l,getComputedStyles:p,isScrollable:m,size:h,toCamelCase:f,toHyphens:d,getOffset:gt.getOffset||g,parseEffects:gt.parseEffects||v,toggleClass:gt.toggleClass||b,directions:gt.directions||U,Observable:E,Class:i,Template:z,template:wt(z.compile,z),render:wt(z.render,z),stringify:wt(xt.stringify,xt),eventTarget:G,htmlEncode:k,isLocalUrl:function(e){return e&&!Q.test(e)},expr:function(e,t,n){return e=e||"",typeof t==zt&&(n=t,t=!1),n=n||"d",e&&"["!==e.charAt(0)&&(e="."+e),t?(e=e.replace(/"([^.]*)\.([^"]*)"/g,'"$1_$DOT$_$2"'),e=e.replace(/'([^.]*)\.([^']*)'/g,"'$1_$DOT$_$2'"),e=K(e.split("."),n),e=e.replace(/_\$DOT\$_/g,".")):e=n+e,e},getter:function(e,t){var n=e+t;return Nt[n]=Nt[n]||Function("d","return "+gt.expr(e,t))},setter:function(e){return It[e]=It[e]||Function("d,value",gt.expr(e)+"=value")},accessor:function(e){return{get:gt.getter(e),set:gt.setter(e)}},guid:function(){var e,t,n="";for(e=0;32>e;e++)t=16*kt.random()|0,(8==e||12==e||16==e||20==e)&&(n+="-"),n+=(12==e?4:16==e?3&t|8:t).toString(16);return n},roleSelector:function(e){return e.replace(/(\S+)/g,"["+gt.attr("role")+"=$1],").slice(0,-1)},directiveSelector:function(e){var t,n=e.split(" ");if(n)for(t=0;n.length>t;t++)"view"!=n[t]&&(n[t]=n[t].replace(/(\w*)(view|bar|strip|over)$/,"$1-$2"));return n.join(" ").replace(/(\S+)/g,"kendo-mobile-$1,").slice(0,-1)},triggeredByInput:function(e){return/^(label|input|textarea|select)$/i.test(e.target.tagName)},logToConsole:function(e){var i=t.console;!gt.suppressLog&&n!==i&&i.log&&i.log(e)}}),Z=E.extend({init:function(e,t){var n,i=this;i.element=gt.jQuery(e).handler(i),i.angular("init",t),E.fn.init.call(i),n=t?t.dataSource:null,n&&(t=vt({},t,{dataSource:{}})),t=i.options=vt(!0,{},i.options,t),n&&(t.dataSource=n),i.element.attr(gt.attr("role"))||i.element.attr(gt.attr("role"),(t.name||"").toLowerCase()),i.element.data("kendo"+t.prefix+t.name,i),i.bind(i.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",i=e.attr(n)||t.attr(n);t.removeAttr(n),e.attr(n,isNaN(i)?0:i)},setOptions:function(t){this._setEvents(t),e.extend(this.options,t)},_setEvents:function(e){for(var t,n=this,i=0,r=n.events.length;r>i;i++)t=n.events[i],n.options[t]&&e[t]&&n.unbind(t,n.options[t]);n.bind(n.events,e)},resize:function(e){var t=this.getSize(),n=this._size;(e||(t.width>0||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 gt.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()},angular:function(){}}),X=Z.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} })}})}}),gt.dimensions=function(e,t){var n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}},gt.notify=bt,et=/template$/i,tt=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,nt=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]*\]$/,it=/([A-Z])/g,gt.initWidget=function(i,r,o){var a,s,l,u,c,d,f,p,m,h,g,v,_;if(o?o.roles&&(o=o.roles):o=gt.ui.roles,i=i.nodeType?i:i[0],d=i.getAttribute("data-"+gt.ns+"role")){m=-1===d.indexOf("."),l=m?o[d]:gt.getter(d)(t),g=e(i).data(),v=l?"kendo"+l.fn.options.prefix+l.fn.options.name:"",h=m?RegExp("^kendo.*"+d+"$","i"):RegExp("^"+v+"$","i");for(_ in g)if(_.match(h)){if(_!==v)return g[_];a=g[_]}if(l){for(p=x(i,"dataSource"),r=e.extend({},T(i,l.fn.options),r),p&&(r.dataSource=typeof p===zt?gt.getter(p)(t):p),u=0,c=l.fn.events.length;c>u;u++)s=l.fn.events[u],f=x(i,s),f!==n&&(r[s]=gt.getter(f)(t));return a?e.isEmptyObject(r)||a.setOptions(r):a=new l(i,r),a}}},gt.rolesFromNamespaces=function(e){var t,n,i=[];for(e[0]||(e=[gt.ui,gt.dataviz.ui]),t=0,n=e.length;n>t;t++)i[t]=e[t].roles;return vt.apply(null,[{}].concat(i.reverse()))},gt.init=function(t){var n=gt.rolesFromNamespaces(Vt.call(arguments,1));e(t).find("[data-"+gt.ns+"role]").addBack().each(function(){gt.initWidget(this,{},n)})},gt.destroy=function(t){e(t).find("[data-"+gt.ns+"role]").addBack().each(function(){var t,n=e(this).data();for(t in n)0===t.indexOf("kendo")&&typeof n[t].destroy===Ot&&n[t].destroy()})},gt.resize=function(t,n){var i,r=e(t).find("[data-"+gt.ns+"role]").addBack().filter(D);r.length&&(i=e.makeArray(r),i.sort(M),e.each(i,function(){var t=gt.widgetInstance(e(this));t&&t.resize(n)}))},gt.parseOptions=T,vt(gt.ui,{Widget:Z,DataBoundWidget:X,roles:{},progress:function(t,n){var i,r,o,a,s=t.find(".k-loading-mask"),l=gt.support,u=l.browser;n?s.length||(i=l.isRtl(t),r=i?"right":"left",a=t.scrollLeft(),o=u.webkit&&i?t[0].scrollWidth-t.width()-2*a:0,s=e("
Loading...
").width("100%").height("100%").css("top",t.scrollTop()).css(r,Math.abs(a)+o).prependTo(t)):s&&s.remove()},plugin:function(t,i,r){var o,a=t.fn.options.name;i=i||gt.ui,r=r||"",i[a]=t,i.roles[a.toLowerCase()]=t,o="getKendo"+r+a,a="kendo"+r+a,e.fn[a]=function(i){var r,o=this;return typeof i===zt?(r=Vt.call(arguments,1),this.each(function(){var t,s,l=e.data(this,a);if(!l)throw Error(gt.format("Cannot call method '{0}' of {1} before it is initialized",i,a));if(t=l[i],typeof t!==Ot)throw Error(gt.format("Cannot find method '{0}' of {1}",i,a));return s=t.apply(l,r),s!==n?(o=s,!1):n})):this.each(function(){new t(this,i)}),o},e.fn[a].widget=t,e.fn[o]=function(){return this.data(a)}}}),rt={bind:function(){return this},nullObject:!0,options:{}},ot=Z.extend({init:function(e,t){Z.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass("km-widget")},destroy:function(){Z.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],view:function(){var e=this.element.closest(gt.roleSelector("view splitview modalview drawer"));return gt.widgetInstance(e,gt.mobile.ui)||rt},viewHasNativeScrolling:function(){var e=this.view();return e&&e.options.useNativeScrolling},container:function(){var e=this.element.closest(gt.roleSelector("view layout modalview drawer splitview"));return gt.widgetInstance(e.eq(0),gt.mobile.ui)||rt}}),vt(gt.mobile,{init:function(e){gt.init(e,gt.mobile.ui,gt.ui,gt.dataviz.ui)},appLevelNativeScrolling:function(){return gt.mobile.application&>.mobile.application.options&>.mobile.application.options.useNativeScrolling},roles:{},ui:{Widget:ot,DataBoundWidget:X.extend(ot.prototype),roles:{},plugin:function(e){gt.ui.plugin(e,gt.mobile.ui,"Mobile")}}}),l(gt.dataviz,{init:function(e){gt.init(e,gt.dataviz.ui)},ui:{roles:{},themes:{},views:[],plugin:function(e){gt.ui.plugin(e,gt.dataviz.ui)}},roles:{}}),gt.touchScroller=function(t,n){return e(t).map(function(t,i){return i=e(i),Tt.kineticScrollNeeded&>.mobile.ui.Scroller&&!i.data("kendoMobileScroller")?(i.kendoMobileScroller(n),i.data("kendoMobileScroller")):!1})[0]},gt.preventDefault=function(e){e.preventDefault()},gt.widgetInstance=function(e,n){var i,r,o,a,s=e.data(gt.ns+"role"),l=[];if(s){if("content"===s&&(s="scroller"),n)if(n[0])for(i=0,r=n.length;r>i;i++)l.push(n[i].roles[s]);else l.push(n.roles[s]);else l=[gt.ui.roles[s],gt.dataviz.ui.roles[s],gt.mobile.ui.roles[s]];for(s.indexOf(".")>=0&&(l=[gt.getter(s)(t)]),i=0,r=l.length;r>i;i++)if(o=l[i],o&&(a=e.data("kendo"+o.fn.options.prefix+o.fn.options.name)))return a}},gt.onResize=function(n){var i=n;return Tt.mobileOS.android&&(i=function(){setTimeout(n,600)}),e(t).on(Tt.resize,i),i},gt.unbindResize=function(n){e(t).off(Tt.resize,n)},gt.attrValue=function(e,t){return e.data(gt.ns+t)},gt.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},e.extend(e.expr[":"],{kendoFocusable:function(t){var n=e.attr(t,"tabindex");return S(t,!isNaN(n)&&n>-1)}}),at=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"],st="label, input, [data-rel=external]",lt={setupMouseMute:function(){var t,n=0,i=at.length,r=document.documentElement;if(!lt.mouseTrap&&Tt.eventCapture)for(lt.mouseTrap=!0,lt.bustClick=!1,lt.captureMouse=!1,t=function(t){lt.captureMouse&&("click"===t.type?lt.bustClick&&!e(t.target).is(st)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};i>n;n++)r.addEventListener(at[n],t,!0)},muteMouse:function(e){lt.captureMouse=!0,e.data.bustClick&&(lt.bustClick=!0),clearTimeout(lt.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(lt.mouseTrapTimeoutID),lt.mouseTrapTimeoutID=setTimeout(function(){lt.captureMouse=!1,lt.bustClick=!1},400)}},ut={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},Tt.touch&&(Tt.mobileOS.ios||Tt.mobileOS.android)?ut={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:Tt.pointers?ut={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:Tt.msPointers&&(ut={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),!Tt.msPointers||"onmspointerenter"in t||e.each({MSPointerEnter:"MSPointerOver",MSPointerLeave:"MSPointerOut"},function(t,n){e.event.special[t]={delegateType:n,bindType:n,handle:function(t){var i,r=this,o=t.relatedTarget,a=t.handleObj;return(!o||o!==r&&!e.contains(r,o))&&(t.type=a.origType,i=a.handler.apply(this,arguments),t.type=n),i}}}),ct=function(e){return ut[e]||e},dt=/([^ ]+)/g,gt.applyEventMap=function(e,t){return e=e.replace(dt,ct),t&&(e=e.replace(dt,"$1."+t)),e},ft=e.fn.on,vt(!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,pt)},O.fn.init.prototype=O.fn,pt=O(document),vt(O.fn,{handler:function(e){return this.data("handler",e),this},autoApplyNS:function(e){return this.data("kendoNS",e||gt.guid()),this},on:function(){var e,t,n,i,r,o,a=this,s=a.data("kendoNS");return 1===arguments.length?ft.call(a,arguments[0]):(e=a,t=Vt.call(arguments),typeof t[t.length-1]===Pt&&t.pop(),n=t[t.length-1],i=gt.applyEventMap(t[0],s),Tt.mouseAndTouchPresent&&i.search(/mouse|click/)>-1&&this[0]!==document.documentElement&&(lt.setupMouseMute(),r=2===t.length?null:t[1],o=i.indexOf("click")>-1&&i.indexOf("touchend")>-1,ft.call(this,{touchstart:lt.muteMouse,touchend:lt.unMuteMouse},r,{bustClick:o})),typeof n===zt&&(e=a.data("handler"),n=e[n],t[t.length-1]=function(t){n.call(e,t)}),t[0]=i,ft.apply(a,t),a)},kendoDestroy:function(e){return e=e||this.data("kendoNS"),e&&this.off("."+e),this}}),gt.jQuery=O,gt.eventMap=ut,gt.timezone=function(){function e(e,t){var n,i,r,o=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[o]+1,1,s[0]-24,s[1],s[2],0)),i=d[a.substr(4,3)],r=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-r-(i>r?7:0))):a.indexOf(">=")>=0&&(n=new Date(Date.UTC(e,c[o],a.substr(5),s[0],s[1],s[2],0)),i=d[a.substr(0,3)],r=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+i-r+(r>i?7:0))):n=new Date(Date.UTC(e,c[o],a,s[0],s[1],s[2],0)),l[e]=n)}function t(t,n,i){var r,o,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 a>=t&&(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):(r=i.split(":"),o=0,r.length>1&&(o=60*r[0]+ +r[1]),[-1e6,"max","-","Jan",1,[0,0,0],o,"-"])}function n(e,t,n){var i,r,o,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&&(r=a[i][3],!(r&&e>r));i--);if(o=a[i+1],!o)throw Error('Timezone "'+n+'" not found on '+e+".");return o}function i(e,i,r,o){typeof e!=Ft&&(e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));var a=n(e,i,o);return{zone:a,rule:t(e,r,a[1])}}function r(e,t){var n,r,o;return"Etc/UTC"==t||"Etc/GMT"==t?0:(n=i(e,this.zones,this.rules,t),r=n.zone,o=n.rule,gt.parseFloat(o?r[0]-o[6]:r[0]))}function o(e,t){var n=i(e,this.zones,this.rules,t),r=n.zone,o=n.rule,a=r[2];return a.indexOf("/")>=0?a.split("/")[o&&+o[6]?1:0]:a.indexOf("%s")>=0?a.replace("%s",o&&"-"!=o[7]?o[7]:""):a}function a(e,t,n){var i,r;return typeof t==zt&&(t=this.offset(e,t)),typeof n==zt&&(n=this.offset(e,n)),i=e.getTimezoneOffset(),e=new Date(e.getTime()+6e4*(t-n)),r=e.getTimezoneOffset(),new Date(e.getTime()+6e4*(r-i))}function s(e,t){return this.convert(e,e.getTimezoneOffset(),t)}function l(e,t){return this.convert(e,t,e.getTimezoneOffset())}function u(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},d={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};return{zones:{},rules:{},offset:r,convert:a,apply:s,remove:l,abbr:o,toLocalDate:u}}(),gt.date=function(){function e(e,t){return 0===t&&23===e.getHours()?(e.setHours(e.getHours()+2),!0):!1}function t(t,n,i){var r=t.getHours();i=i||1,n=(n-t.getDay()+7*i)%7,t.setDate(t.getDate()+n),e(t,r)}function n(e,n,i){return e=new Date(e),t(e,n,i),e}function i(e){return new Date(e.getFullYear(),e.getMonth(),1)}function r(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=i(e),r=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return r&&t.setHours(n.getHours()+r/60),t}function o(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()-o(e)}function l(e,t,n){var i,r=s(t),o=s(n);return e&&r!=o?(t>=n&&(n+=g),i=s(e),r>i&&(i+=g),r>o&&(o+=g),i>=r&&o>=i):!0}function u(e,t,n){var i,r=t.getTime(),o=n.getTime();return r>=o&&(o+=g),i=e.getTime(),i>=r&&o>=i}function c(t,n){var i=t.getHours();return t=new Date(t),d(t,n*g),e(t,i),t}function d(e,t,n){var i,r=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(i=e.getTimezoneOffset()-r,e.setTime(e.getTime()+i*h))}function f(){return o(new Date)}function p(e){return o(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=6e4,g=864e5;return{adjustDST:e,dayOfWeek:n,setDayOfWeek:t,getDate:o,isInDateRange:u,isInTimeRange:l,isToday:p,nextDay:function(e){return c(e,1)},previousDay:function(e){return c(e,-1)},toUtcTime:a,MS_PER_DAY:g,MS_PER_HOUR:60*h,MS_PER_MINUTE:h,setTime:d,addDays:c,today:f,toInvariantTime:m,firstDayOfMonth:i,lastDayOfMonth:r,getMilliseconds:s}}(),gt.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;e.childNodes.length>n;n++)i=e.childNodes[n],3!=i.nodeType||/\S/.test(i.nodeValue)||(e.removeChild(i),n--),1==i.nodeType&>.stripWhitespace(i)},mt=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},gt.animationFrame=function(e){mt.call(t,e)},ht=[],gt.queueAnimation=function(e){ht[ht.length]=e,1===ht.length&>.runNextAnimation()},gt.runNextAnimation=function(){gt.animationFrame(function(){ht[0]&&(ht.shift()(),ht[0]&>.runNextAnimation())})},gt.parseQueryStringParams=function(e){for(var t=e.split("?")[1]||"",n={},i=t.split(/&|=/),r=i.length,o=0;r>o;o+=2)""!==i[o]&&(n[decodeURIComponent(i[o])]=decodeURIComponent(i[o+1]));return n},gt.elementUnderCursor=function(e){return n!==e.x.client?document.elementFromPoint(e.x.client,e.y.client):n},gt.wheelDeltaY=function(e){var t,i=e.originalEvent,r=i.wheelDeltaY;return i.wheelDelta?(r===n||r)&&(t=i.wheelDelta):i.detail&&i.axis===i.VERTICAL_AXIS&&(t=10*-i.detail),t},gt.throttle=function(e,t){var i,r,o=0;return!t||0>=t?e:(r=function(){function r(){e.apply(a,l),o=+new Date}var a=this,s=+new Date-o,l=arguments;return o?(i&&clearTimeout(i),s>t?r():i=setTimeout(r,t-s),n):r()},r.cancel=function(){clearTimeout(i)},r)},gt.caret=function(t,i,r){var o,a,s,l,u=i!==n;if(r===n&&(r=i),t[0]&&(t=t[0]),!u||!t.disabled){try{t.selectionStart!==n?u?(t.focus(),t.setSelectionRange(i,r)):i=[t.selectionStart,t.selectionEnd]:document.selection&&(e(t).is(":visible")&&t.focus(),o=t.createTextRange(),u?(o.collapse(!0),o.moveStart("character",i),o.moveEnd("character",r-i),o.select()):(a=o.duplicate(),o.moveToBookmark(document.selection.createRange().getBookmark()),a.setEndPoint("EndToStart",o),s=a.text.length,l=s+o.text.length,i=[s,l]))}catch(c){i=[]}return i}},gt.compileMobileDirective=function(e,n){var i=t.angular;return e.attr("data-"+gt.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()}]),gt.widgetInstance(e,gt.mobile.ui)},gt.antiForgeryTokens=function(){var t={},i=e("meta[name=csrf-token],meta[name=_csrf]").attr("content"),r=e("meta[name=csrf-param],meta[name=_csrf_header]").attr("content");return e("input[name^='__RequestVerificationToken']").each(function(){t[this.name]=this.value}),r!==n&&i!==n&&(t[r]=i),t},function(){function n(t,n,i,r){var o,a,s=e("
").attr({action:i,method:"POST",target:r}),l=gt.antiForgeryTokens();l.fileName=n,o=t.split(";base64,"),l.contentType=o[0].replace("data:",""),l.base64=o[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,r,o,a,s=e;if("string"==typeof e){for(n=e.split(";base64,"),i=n[0],r=atob(n[1]),o=new Uint8Array(r.length),a=0;r.length>a;a++)o[a]=r.charCodeAt(a);s=new Blob([o.buffer],{type:i})}navigator.msSaveBlob(s,t)}function r(e,n){t.Blob&&e instanceof Blob&&(e=URL.createObjectURL(e)),o.download=n,o.href=e;var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),o.dispatchEvent(i)}var o=document.createElement("a"),a="download"in o;gt.saveAs=function(e){var t=n;e.forceProxy||(a?t=r:navigator.msSaveBlob&&(t=i)),t(e.dataURI,e.fileName,e.proxyURL,e.proxyTarget)}}()}(jQuery,window),function(e,t){function n(e,t,n,i){var r,o=e.getFullYear(),a=t.getFullYear(),s=n.getFullYear();return o-=o%i,r=o+(i-1),a>o&&(o=a),r>s&&(r=s),o+"-"+r}function i(e){for(var t,n=0,i=e.min,r=e.max,o=e.start,a=e.setter,l=e.build,u=e.cells||12,c=e.perRow||4,d=e.content||F,f=e.empty||A,p=e.html||'';u>n;n++)n>0&&n%c===0&&(p+=''),t=l(o,n),p+=s(o,i,r)?d(t):f(t),a(o,1);return p+"
"}function r(e,t,n){var i=e.getFullYear(),r=t.getFullYear(),o=r,a=0;return n&&(r-=r%n,o=r-r%n+n-1),i>o?a=1:r>i&&(a=-1),a}function o(){var e=new mt;return new mt(e.getFullYear(),e.getMonth(),e.getDate())}function a(e,t,n){var i=o();return e&&(i=new mt(+e)),t>i?i=new mt(+t):i>n&&(i=new mt(+n)),i}function s(e,t,n){return+e>=+t&&+n>=+e}function l(e,t){return e.slice(t).concat(e.slice(0,t))}function u(e,t,n){t=t instanceof mt?t.getFullYear():e.getFullYear()+n*t,e.setFullYear(t)}function c(t){e(this).toggleClass(q,it.indexOf(t.type)>-1||t.type==tt)}function d(e){e.preventDefault()}function f(e){return C(e).calendars.standard}function p(e){var n=ht[e.start],i=ht[e.depth],r=C(e.culture);e.format=D(e.format||r.calendars.standard.patterns.d),isNaN(n)&&(n=0,e.start=U),(i===t||i>n)&&(e.depth=U),e.dates||(e.dates=[])}function m(e){E&&e.find("*").attr("unselectable","on")}function h(e,t){for(var n=0,i=t.length;i>n;n++)if(e===+t[n])return!0;return!1}function g(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function v(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth():!1}var _,y=window.kendo,w=y.support,b=y.ui,k=b.Widget,x=y.keys,T=y.parseDate,M=y.date.adjustDST,D=y._extractFormat,S=y.template,C=y.getCulture,O=y.support.transitions,z=O?O.css+"transform-origin":"",F=S('#=data.value#',{useWithBlock:!1}),A=S(' ',{useWithBlock:!1}),H=y.support.browser,E=H.msie&&9>H.version,P=".kendoCalendar",N="click"+P,I="keydown"+P,V="id",W="min",R="left",Y="slideIn",U="month",L="century",B="change",$="navigate",j="value",q="k-state-hover",J="k-state-disabled",G="k-state-focused",K="k-other-month",Q=' class="'+K+'"',Z="k-nav-today",X="td:has(.k-link)",et="blur"+P,tt="focus",nt=tt+P,it=w.touch?"touchstart":"mouseenter",rt=w.touch?"touchstart"+P:"mouseenter"+P,ot=w.touch?"touchend"+P+" touchmove"+P:"mouseleave"+P,at=6e4,st=864e5,lt="_prevArrow",ut="_nextArrow",ct="aria-disabled",dt="aria-selected",ft=e.proxy,pt=e.extend,mt=Date,ht={month:0,year:1,decade:2,century:3},gt=k.extend({init:function(t,n){var i,r,o=this;k.fn.init.call(o,t,n),t=o.wrapper=o.element,n=o.options,n.url=window.unescape(n.url),o._templates(),o._header(),o._footer(o.footer),r=t.addClass("k-widget k-calendar").on(rt+" "+ot,X,c).on(I,"table.k-content",ft(o._move,o)).on(N,X,function(t){var n=t.currentTarget.firstChild;-1!=n.href.indexOf("#")&&t.preventDefault(),o._click(e(n))}).on("mouseup"+P,"table.k-content, .k-footer",function(){o._focusView(o.options.focusOnNav!==!1)}).attr(V),r&&(o._cellID=r+"_cell_selected"),p(n),i=T(n.value,n.format,n.culture),o._index=ht[n.start],o._current=new mt(+a(i,n.min,n.max)),o._addClassProxy=function(){o._active=!0,o._cell.addClass(G)},o._removeClassProxy=function(){o._active=!1,o._cell.removeClass(G)},o.value(i),y.notify(o)},options:{name:"Calendar",value:null,min:new mt(1900,0,1),max:new mt(2099,11,31),dates:[],url:"",culture:"",footer:"",format:"",month:{},start:U,depth:U,animation:{horizontal:{effects:Y,reverse:!0,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}}},events:[B,$],setOptions:function(e){var t=this;p(e),e.dates[0]||(e.dates=t.options.dates),k.fn.setOptions.call(t,e),t._templates(),t._footer(t.footer),t._index=ht[t.options.start],t.navigate()},destroy:function(){var e=this,t=e._today;e.element.off(P),e._title.off(P),e[lt].off(P),e[ut].off(P),y.destroy(e._table),t&&y.destroy(t.off(P)),k.fn.destroy.call(e)},current:function(){return this._current},view:function(){return this._view},focus:function(e){e=e||this._table,this._bindTable(e),e.focus()},min:function(e){return this._option(W,e)},max:function(e){return this._option("max",e)},navigateToPast:function(){this._navigate(lt,-1)},navigateToFuture:function(){this._navigate(ut,1)},navigateUp:function(){var e=this,t=e._index;e._title.hasClass(J)||e.navigate(e._current,++t)},navigateDown:function(e){var n=this,i=n._index,r=n.options.depth;if(e)return i===ht[r]?(+n._value!=+e&&(n.value(e),n.trigger(B)),t):(n.navigate(e,--i),t)},navigate:function(n,i){i=isNaN(i)?ht[i]:i;var r,o,s,l,u=this,c=u.options,d=c.culture,f=c.min,p=c.max,h=u._title,g=u._table,v=u._oldTable,y=u._value,w=u._current,b=n&&+n>+w,k=i!==t&&i!==u._index;n||(n=w),u._current=n=new mt(+a(n,f,p)),i===t?i=u._index:u._index=i,u._view=o=_.views[i],s=o.compare,l=i===ht[L],h.toggleClass(J,l).attr(ct,l),l=s(n,f)<1,u[lt].toggleClass(J,l).attr(ct,l),l=s(n,p)>-1,u[ut].toggleClass(J,l).attr(ct,l),g&&v&&v.data("animating")&&(v.kendoStop(!0,!0),g.kendoStop(!0,!0)),u._oldTable=g,(!g||u._changeView)&&(h.html(o.title(n,f,p,d)),u._table=r=e(o.content(pt({min:f,max:p,date:n,url:c.url,dates:c.dates,format:c.format,culture:d},u[o.name]))),m(r),u._animate({from:g,to:r,vertical:k,future:b}),u._focus(n),u.trigger($)),i===ht[c.depth]&&y&&u._class("k-state-selected",o.toDateString(y)),u._class(G,o.toDateString(n)),!g&&u._cell&&u._cell.removeClass(G),u._changeView=!0},value:function(e){var n=this,i=n._view,r=n.options,o=n._view,a=r.min,l=r.max;return e===t?n._value:(e=T(e,r.format,r.culture),null!==e&&(e=new mt(+e),s(e,a,l)||(e=null)),n._value=e,o&&null===e&&n._cell?n._cell.removeClass("k-state-selected"):(n._changeView=!e||i&&0!==i.compare(e,n._current),n.navigate(e)),t)},_move:function(t){var n,i,r,o,s=this,l=s.options,u=t.keyCode,c=s._view,d=s._index,f=new mt(+s._current),p=y.support.isRtl(s.wrapper);return t.target===s._table[0]&&(s._active=!0),t.ctrlKey?u==x.RIGHT&&!p||u==x.LEFT&&p?(s.navigateToFuture(),i=!0):u==x.LEFT&&!p||u==x.RIGHT&&p?(s.navigateToPast(),i=!0):u==x.UP?(s.navigateUp(),i=!0):u==x.DOWN&&(s._click(e(s._cell[0].firstChild)),i=!0):(u==x.RIGHT&&!p||u==x.LEFT&&p?(n=1,i=!0):u==x.LEFT&&!p||u==x.RIGHT&&p?(n=-1,i=!0):u==x.UP?(n=0===d?-7:-4,i=!0):u==x.DOWN?(n=0===d?7:4,i=!0):u==x.ENTER?(s._click(e(s._cell[0].firstChild)),i=!0):u==x.HOME||u==x.END?(r=u==x.HOME?"first":"last",o=c[r](f),f=new mt(o.getFullYear(),o.getMonth(),o.getDate(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds()),i=!0):u==x.PAGEUP?(i=!0,s.navigateToPast()):u==x.PAGEDOWN&&(i=!0,s.navigateToFuture()),(n||r)&&(r||c.setDate(f,n),s._focus(a(f,l.min,l.max)))),i&&t.preventDefault(),s._current},_animate:function(e){var t=this,n=e.from,i=e.to,r=t._active;n?n.parent().data("animating")?(n.off(P),n.parent().kendoStop(!0,!0).remove(),n.remove(),i.insertAfter(t.element[0].firstChild),t._focusView(r)):n.is(":visible")&&t.options.animation!==!1?t[e.vertical?"_vertical":"_horizontal"](n,i,e.future):(i.insertAfter(n),n.off(P).remove(),t._focusView(r)):(i.insertAfter(t.element[0].firstChild),t._bindTable(i))},_horizontal:function(e,t,n){var i=this,r=i._active,o=i.options.animation.horizontal,a=o.effects,s=e.outerWidth();a&&-1!=a.indexOf(Y)&&(e.add(t).css({width:s}),e.wrap("
"),i._focusView(r,e),e.parent().css({position:"relative",width:2*s,"float":R,"margin-left":n?0:-s}),t[n?"insertAfter":"insertBefore"](e),pt(o,{effects:Y+":"+(n?"right":R),complete:function(){e.off(P).remove(),i._oldTable=null,t.unwrap(),i._focusView(r)}}),e.parent().kendoStop(!0,!0).kendoAnimate(o))},_vertical:function(e,t){var n,i,r=this,o=r.options.animation.vertical,a=o.effects,s=r._active;a&&-1!=a.indexOf("zoom")&&(t.css({position:"absolute",top:e.prev().outerHeight(),left:0}).insertBefore(e),z&&(n=r._cellByDate(r._view.toDateString(r._current)),i=n.position(),i=i.left+parseInt(n.width()/2,10)+"px "+(i.top+parseInt(n.height()/2,10)+"px"),t.css(z,i)),e.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){e.off(P).remove(),r._oldTable=null,t.css({position:"static",top:0,left:0}),r._focusView(s)}}),t.kendoStop(!0,!0).kendoAnimate(o))},_cellByDate:function(t){return this._table.find("td:not(."+K+")").filter(function(){return e(this.firstChild).attr(y.attr(j))===t})},_class:function(t,n){var i=this,r=i._cellID,o=i._cell;o&&o.removeAttr(dt).removeAttr("aria-label").removeAttr(V),o=i._table.find("td:not(."+K+")").removeClass(t).filter(function(){return e(this.firstChild).attr(y.attr(j))===n}).attr(dt,!0),t!==G||i._active||i.options.focusOnNav===!1||(t=""),o.addClass(t),o[0]&&(i._cell=o),r&&(o.attr(V,r),i._table.removeAttr("aria-activedescendant").attr("aria-activedescendant",r))},_bindTable:function(e){e.on(nt,this._addClassProxy).on(et,this._removeClassProxy)},_click:function(e){var t=this,n=t.options,i=new Date(+t._current),r=e.attr(y.attr(j)).split("/");r=new mt(r[0],r[1],r[2]),M(r,0),t._view.setDate(i,r),t.navigateDown(a(i,n.min,n.max))},_focus:function(e){var t=this,n=t._view;0!==n.compare(e,t._current)?t.navigate(e):(t._current=e,t._class(G,n.toDateString(e)))},_focusView:function(e,t){e&&this.focus(t)},_footer:function(n){var i=this,r=o(),a=i.element,s=a.find(".k-footer");return n?(s[0]||(s=e('').appendTo(a)),i._today=s.show().find(".k-link").html(n(r)).attr("title",y.toString(r,"D",i.options.culture)),i._toggle(),t):(i._toggle(!1),s.hide(),t)},_header:function(){var e,t=this,n=t.element;n.find(".k-header")[0]||n.html('
'),e=n.find(".k-link").on(rt+" "+ot+" "+nt+" "+et,c).click(!1),t._title=e.eq(1).on(N,function(){t._active=t.options.focusOnNav!==!1,t.navigateUp()}),t[lt]=e.eq(0).on(N,function(){t._active=t.options.focusOnNav!==!1,t.navigateToPast()}),t[ut]=e.eq(2).on(N,function(){t._active=t.options.focusOnNav!==!1,t.navigateToFuture()})},_navigate:function(e,t){var n=this,i=n._index+1,r=new mt(+n._current);e=n[e],e.hasClass(J)||(i>3?r.setFullYear(r.getFullYear()+100*t):_.views[i].setDate(r,t),n.navigate(r))},_option:function(e,n){var i,r=this,o=r.options,a=r._value||r._current;return n===t?o[e]:(n=T(n,o.format,o.culture),n&&(o[e]=new mt(+n),i=e===W?n>a:a>n,(i||v(a,n))&&(i&&(r._value=null),r._changeView=!0),r._changeView||(r._changeView=!(!o.month.content&&!o.month.empty)),r.navigate(r._value),r._toggle()),t)},_toggle:function(e){var n=this,i=n.options,r=n._today;e===t&&(e=s(o(),i.min,i.max)),r&&(r.off(N),e?r.addClass(Z).removeClass(J).on(N,ft(n._todayClick,n)):r.removeClass(Z).addClass(J).on(N,d))},_todayClick:function(e){var t=this,n=ht[t.options.depth],i=o();e.preventDefault(),0===t._view.compare(t._current,i)&&t._index==n&&(t._changeView=!1),t._value=i,t.navigate(i,n),t.trigger(B)},_templates:function(){var e=this,t=e.options,n=t.footer,i=t.month,r=i.content,o=i.empty;e.month={content:S(''+(r||"#=data.value#")+"",{useWithBlock:!!r}),empty:S(''+(o||" ")+"",{useWithBlock:!!o})},e.footer=n!==!1?S(n||'#= kendo.toString(data,"D","'+t.culture+'") #',{useWithBlock:!1}):null}});b.plugin(gt),_={firstDayOfMonth:function(e){return new mt(e.getFullYear(),e.getMonth(),1)},firstVisibleDay:function(e,t){t=t||y.culture().calendar;for(var n=t.firstDay,i=new mt(e.getFullYear(),e.getMonth(),0,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());i.getDay()!=n;)_.setTime(i,-1*st);return i},setTime:function(e,t){var n=e.getTimezoneOffset(),i=new mt(e.getTime()+t),r=i.getTimezoneOffset()-n;e.setTime(i.getTime()+r*at)},views:[{name:U,title:function(e,t,n,i){return f(i).months.names[e.getMonth()]+" "+e.getFullYear()},content:function(e){for(var t=this,n=0,r=e.min,o=e.max,a=e.date,s=e.dates,u=e.format,c=e.culture,d=e.url,p=d&&s[0],m=f(c),g=m.firstDay,v=m.days,w=l(v.names,g),b=l(v.namesShort,g),k=_.firstVisibleDay(a,m),x=t.first(a),T=t.last(a),D=t.toDateString,S=new mt,C='';7>n;n++)C+='";return S=new mt(S.getFullYear(),S.getMonth(),S.getDate()),M(S,0),S=+S,i({cells:42,perRow:7,html:C+='',start:new mt(k.getFullYear(),k.getMonth(),k.getDate()),min:new mt(r.getFullYear(),r.getMonth(),r.getDate()),max:new mt(o.getFullYear(),o.getMonth(),o.getDate()),content:e.content,empty:e.empty,setter:t.setDate,build:function(e){var t=[],n=e.getDay(),i="",r="#";return(x>e||e>T)&&t.push(K),+e===S&&t.push("k-today"),(0===n||6===n)&&t.push("k-weekend"),p&&h(+e,s)&&(r=d.replace("{0}",y.toString(e,u,c)),i=" k-action-link"),{date:e,dates:s,ns:y.ns,title:y.toString(e,"D",c),value:e.getDate(),dateString:D(e),cssClass:t[0]?' class="'+t.join(" ")+'"':"",linkClass:i,url:r}}})},first:function(e){return _.firstDayOfMonth(e)},last:function(e){var t=new mt(e.getFullYear(),e.getMonth()+1,0),n=_.firstDayOfMonth(e),i=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return i&&t.setHours(n.getHours()+i/60),t},compare:function(e,t){var n,i=e.getMonth(),r=e.getFullYear(),o=t.getMonth(),a=t.getFullYear();return n=r>a?1:a>r?-1:i==o?0:i>o?1:-1},setDate:function(e,t){var n=e.getHours();t instanceof mt?e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):_.setTime(e,t*st),M(e,n)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/"+e.getDate()}},{name:"year",title:function(e){return e.getFullYear()},content:function(e){var t=f(e.culture).months.namesAbbr,n=this.toDateString,r=e.min,o=e.max;return i({min:new mt(r.getFullYear(),r.getMonth(),1),max:new mt(o.getFullYear(),o.getMonth(),1),start:new mt(e.date.getFullYear(),0,1),setter:this.setDate,build:function(e){return{value:t[e.getMonth()],ns:y.ns,dateString:n(e),cssClass:""}}})},first:function(e){return new mt(e.getFullYear(),0,e.getDate())},last:function(e){return new mt(e.getFullYear(),11,e.getDate())},compare:function(e,t){return r(e,t)},setDate:function(e,t){var n,i=e.getHours();t instanceof mt?(n=t.getMonth(),e.setFullYear(t.getFullYear(),n,e.getDate()),n!==e.getMonth()&&e.setDate(0)):(n=e.getMonth()+t,e.setMonth(n),n>11&&(n-=12),n>0&&e.getMonth()!=n&&e.setDate(0)),M(e,i)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/1"}},{name:"decade",title:function(e,t,i){return n(e,t,i,10)},content:function(e){var t=e.date.getFullYear(),n=this.toDateString;return i({start:new mt(t-t%10-1,0,1),min:new mt(e.min.getFullYear(),0,1),max:new mt(e.max.getFullYear(),0,1),setter:this.setDate,build:function(e,t){return{value:e.getFullYear(),ns:y.ns,dateString:n(e),cssClass:0===t||11==t?Q:""}}})},first:function(e){var t=e.getFullYear();return new mt(t-t%10,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return new mt(t-t%10+9,e.getMonth(),e.getDate())},compare:function(e,t){return r(e,t,10)},setDate:function(e,t){u(e,t,1)},toDateString:function(e){return e.getFullYear()+"/0/1"}},{name:L,title:function(e,t,i){return n(e,t,i,100)},content:function(e){var t=e.date.getFullYear(),n=e.min.getFullYear(),r=e.max.getFullYear(),o=this.toDateString,a=n,s=r;return a-=a%10,s-=s%10,10>s-a&&(s=a+9),i({start:new mt(t-t%100-10,0,1),min:new mt(a,0,1),max:new mt(s,0,1),setter:this.setDate,build:function(e,t){var i=e.getFullYear(),a=i+9;return n>i&&(i=n),a>r&&(a=r),{ns:y.ns,value:i+" - "+a,dateString:o(e),cssClass:0===t||11==t?Q:""}}})},first:function(e){var t=e.getFullYear();return new mt(t-t%100,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return new mt(t-t%100+99,e.getMonth(),e.getDate())},compare:function(e,t){return r(e,t,100)},setDate:function(e,t){u(e,t,10)},toDateString:function(e){var t=e.getFullYear();return t-t%10+"/0/1"}}]},_.isEqualDatePart=g,_.makeUnselectable=m,_.restrictValue=a,_.isInRange=s,_.normalize=p,_.viewsEnum=ht,y.calendar=_}(window.kendo.jQuery),function(e){function t(t,n){return t===n||e.contains(t,n) }var n=window.kendo,i=n.ui,r=i.Widget,o=n.support,a=n.getOffset,s="open",l="close",u="deactivate",c="activate",d="center",f="left",p="right",m="top",h="bottom",g="absolute",v="hidden",_="body",y="location",w="position",b="visible",k="effects",x="k-state-active",T="k-state-border",M=/k-state-border-(\w+)/,D=".k-picker-wrap, .k-dropdown-wrap, .k-link",S="down",C=e(document.documentElement),O=e(window),z="scroll",F="resize scroll",A=o.transitions.css,H=A+"transform",E=e.extend,P=".kendoPopup",N=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],I=r.extend({init:function(t,i){var o,a=this;i=i||{},i.isRtl&&(i.origin=i.origin||h+" "+p,i.position=i.position||m+" "+p),r.fn.init.call(a,t,i),t=a.element,i=a.options,a.collisions=i.collision?i.collision.split(" "):[],a.downEvent=n.applyEventMap(S,n.guid()),1===a.collisions.length&&a.collisions.push(a.collisions[0]),o=e(a.options.anchor).closest(".k-popup,.k-group").filter(":not([class^=km-])"),i.appendTo=e(e(i.appendTo)[0]||o[0]||_),a.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!i.isRtl).css({position:g}).appendTo(i.appendTo).on("mouseenter"+P,function(){a._hovered=!0}).on("mouseleave"+P,function(){a._hovered=!1}),a.wrapper=e(),i.animation===!1&&(i.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),E(i.animation.open,{complete:function(){a.wrapper.css({overflow:b}),a._activated=!0,a._trigger(c)}}),E(i.animation.close,{complete:function(){a._animationClose()}}),a._mousedownProxy=function(e){a._mousedown(e)},a._resizeProxy=function(e){a._resize(e)},i.toggleTarget&&e(i.toggleTarget).on(i.toggleEvent+P,e.proxy(a.toggle,a))},events:[s,c,l,u],options:{name:"Popup",toggleEvent:"click",origin:h+" "+f,position:m+" "+f,anchor:_,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}}},_animationClose:function(){var t,i,r,o,a=this,s=a.options;a.wrapper.hide(),t=a.wrapper.data(y),i=e(s.anchor),t&&a.wrapper.css(t),s.anchor!=_&&(r=((i.attr("class")||"").match(M)||["","down"])[1],o=T+"-"+r,i.removeClass(o).children(D).removeClass(x).removeClass(o),a.element.removeClass(T+"-"+n.directions[r].reverse)),a._closing=!1,a._trigger(u)},destroy:function(){var t,i=this,o=i.options,a=i.element.off(P);r.fn.destroy.call(i),o.toggleTarget&&e(o.toggleTarget).off(P),o.modal||(C.unbind(i.downEvent,i._mousedownProxy),i._scrollableParents().unbind(z,i._resizeProxy),O.unbind(F,i._resizeProxy)),n.destroy(i.element.children()),a.removeData(),o.appendTo[0]===document.body&&(t=a.parent(".k-animation-container"),t[0]?t.remove():a.remove())},open:function(t,i){var r,a,l,u=this,c={isFixed:!isNaN(parseInt(i,10)),x:t,y:i},d=u.element,f=u.options,p="down",h=e(f.anchor),y=d[0]&&d.hasClass("km-widget");if(!u.visible()){if(f.copyAnchorStyles&&(y&&"font-size"==N[0]&&N.shift(),d.css(n.getComputedStyles(h[0],N))),d.data("animating")||u._trigger(s))return;u._activated=!1,f.modal||(C.unbind(u.downEvent,u._mousedownProxy).bind(u.downEvent,u._mousedownProxy),o.mobileOS.ios||o.mobileOS.android||(u._scrollableParents().unbind(z,u._resizeProxy).bind(z,u._resizeProxy),O.unbind(F,u._resizeProxy).bind(F,u._resizeProxy))),u.wrapper=a=n.wrap(d,f.autosize).css({overflow:v,display:"block",position:g}),o.mobileOS.android&&a.css(H,"translatez(0)"),a.css(w),e(f.appendTo)[0]==document.body&&a.css(m,"-10000px"),r=E(!0,{},f.animation.open),u.flipped=u._position(c),r.effects=n.parseEffects(r.effects,u.flipped),p=r.effects.slideIn?r.effects.slideIn.direction:p,f.anchor!=_&&(l=T+"-"+p,d.addClass(T+"-"+n.directions[p].reverse),h.addClass(l).children(D).addClass(x).addClass(l)),d.data(k,r.effects).kendoStop(!0).kendoAnimate(r)}},position:function(){this.visible()&&this._position()},toggle:function(){var e=this;e[e.visible()?l:s]()},visible:function(){return this.element.is(":"+b)},close:function(t){var i,r,o,a,s=this,u=s.options;if(s.visible()){if(i=s.wrapper[0]?s.wrapper:n.wrap(s.element).hide(),s._closing||s._trigger(l))return;s.element.find(".k-popup").each(function(){var n=e(this),i=n.data("kendoPopup");i&&i.close(t)}),C.unbind(s.downEvent,s._mousedownProxy),s._scrollableParents().unbind(z,s._resizeProxy),O.unbind(F,s._resizeProxy),t?r={hide:!0,effects:{}}:(r=E(!0,{},u.animation.close),o=s.element.data(k),a=r.effects,!a&&!n.size(a)&&o&&n.size(o)&&(r.effects=o,r.reverse=!0),s._closing=!0),s.element.kendoStop(!0),i.css({overflow:v}),s.element.kendoAnimate(r)}},_trigger:function(e){return this.trigger(e,{type:e})},_resize:function(e){var t=this;"resize"===e.type?(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()},_mousedown:function(i){var r=this,o=r.element[0],a=r.options,s=e(a.anchor)[0],l=a.toggleTarget,u=n.eventTarget(i),c=e(u).closest(".k-popup"),d=c.parent().parent(".km-shim").length;c=c[0],(d||!c||c===r.element[0])&&"popover"!==e(i.target).closest("a").data("rel")&&(t(o,u)||t(s,u)||l&&t(e(l)[0],u)||r.close())},_fit:function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),0>e&&(i=-e),i},_flip:function(e,t,n,i,r,o,a){var s=0;return a=a||t,o!==r&&o!==d&&r!==d&&(e+a>i&&(s+=-(n+t)),0>e+s&&(s+=n+t)),s},_scrollableParents:function(){return e(this.options.anchor).parentsUntil("body").filter(function(e,t){return n.isScrollable(t)})},_position:function(t){var i,r,s,l,u,c,d,f,p,m,h,v=this,_=v.element,b=v.wrapper,k=v.options,x=e(k.viewport),T=x.offset(),M=e(k.anchor),D=k.origin.toLowerCase().split(" "),S=k.position.toLowerCase().split(" "),C=v.collisions,O=o.zoomLevel(),z=10002,F=!!(x[0]==window&&window.innerWidth&&1.02>=O),A=0,H=document.documentElement,P=F?window.innerWidth:x.width(),N=F?window.innerHeight:x.height();if(F&&H.scrollHeight-H.clientHeight>0&&(P-=n.support.scrollbar()),i=M.parents().filter(b.siblings()),i[0])if(s=Math.max(+i.css("zIndex"),0))z=s+10;else for(r=M.parentsUntil(i),l=r.length;l>A;A++)s=+e(r[A]).css("zIndex"),s&&s>z&&(z=s+10);return b.css("zIndex",z),b.css(t&&t.isFixed?{left:t.x,top:t.y}:v._align(D,S)),u=a(b,w,M[0]===b.offsetParent()[0]),c=a(b),d=M.offsetParent().parent(".k-animation-container,.k-popup,.k-group"),d.length&&(u=a(b,w,!0),c=a(b)),x[0]===window?(c.top-=window.pageYOffset||document.documentElement.scrollTop||0,c.left-=window.pageXOffset||document.documentElement.scrollLeft||0):(c.top-=T.top,c.left-=T.left),v.wrapper.data(y)||b.data(y,E({},u)),f=E({},c),p=E({},u),m=k.adjustSize,"fit"===C[0]&&(p.top+=v._fit(f.top,b.outerHeight()+m.height,N/O)),"fit"===C[1]&&(p.left+=v._fit(f.left,b.outerWidth()+m.width,P/O)),h=E({},p),"flip"===C[0]&&(p.top+=v._flip(f.top,_.outerHeight(),M.outerHeight(),N/O,D[0],S[0],b.outerHeight())),"flip"===C[1]&&(p.left+=v._flip(f.left,_.outerWidth(),M.outerWidth(),P/O,D[1],S[1],b.outerWidth())),_.css(w,g),b.css(p),p.left!=h.left||p.top!=h.top},_align:function(t,n){var i,r=this,o=r.wrapper,s=e(r.options.anchor),l=t[0],u=t[1],c=n[0],f=n[1],m=a(s),g=e(r.options.appendTo),v=o.outerWidth(),_=o.outerHeight(),y=s.outerWidth(),w=s.outerHeight(),b=m.top,k=m.left,x=Math.round;return g[0]!=document.body&&(i=a(g),b-=i.top,k-=i.left),l===h&&(b+=w),l===d&&(b+=x(w/2)),c===h&&(b-=_),c===d&&(b-=x(_/2)),u===p&&(k+=y),u===d&&(k+=x(y/2)),f===p&&(k-=v),f===d&&(k-=x(v/2)),{top:b,left:k}}});i.plugin(I)}(window.kendo.jQuery),function(e,t){function n(t){var n=t.parseFormats,i=t.format;N.normalize(t),n=e.isArray(n)?n:[n],n.length||n.push("yyyy-MM-dd"),-1===e.inArray(i,n)&&n.splice(0,0,t.format),t.parseFormats=n}function i(e){e.preventDefault()}var r,o=window.kendo,a=o.ui,s=a.Widget,l=o.parseDate,u=o.keys,c=o.template,d=o._activeElement,f="
",p="",m=".kendoDatePicker",h="click"+m,g="open",v="close",_="change",y="disabled",w="readonly",b="k-state-default",k="k-state-focused",x="k-state-selected",T="k-state-disabled",M="k-state-hover",D="mouseenter"+m+" mouseleave"+m,S="mousedown"+m,C="id",O="min",z="max",F="month",A="aria-disabled",H="aria-expanded",E="aria-hidden",P="aria-readonly",N=o.calendar,I=N.isInRange,V=N.restrictValue,W=N.isEqualDatePart,R=e.extend,Y=e.proxy,U=Date,L=function(t){var n,i=this,r=document.body,s=e(f).attr(E,"true").addClass("k-calendar-container").appendTo(r);i.options=t=t||{},n=t.id,n&&(n+="_dateview",s.attr(C,n),i._dateViewID=n),i.popup=new a.Popup(s,R(t.popup,t,{name:"Popup",isRtl:o.support.isRtl(t.anchor)})),i.div=s,i.value(t.value)};L.prototype={_calendar:function(){var t,n=this,r=n.calendar,s=n.options;r||(t=e(f).attr(C,o.guid()).appendTo(n.popup.element).on(S,i).on(h,"td:has(.k-link)",Y(n._click,n)),n.calendar=r=new a.Calendar(t),n._setOptions(s),o.calendar.makeUnselectable(r.element),r.navigate(n._value||n._current,s.start),n.value(n._value))},_setOptions:function(e){this.calendar.setOptions({focusOnNav:!1,change:e.change,culture:e.culture,dates:e.dates,depth:e.depth,footer:e.footer,format:e.format,max:e.max,min:e.min,month:e.month,start:e.start})},setOptions:function(e){var t=this.options;this.options=R(t,e,{change:t.change,close:t.close,open:t.open}),this.calendar&&this._setOptions(this.options)},destroy:function(){this.popup.destroy()},open:function(){var e=this;e._calendar(),e.popup.open()},close:function(){this.popup.close()},min:function(e){this._option(O,e)},max:function(e){this._option(z,e)},toggle:function(){var e=this;e[e.popup.visible()?v:g]()},move:function(e){var n=this,i=e.keyCode,r=n.calendar,o=e.ctrlKey&&i==u.DOWN||i==u.ENTER;if(e.altKey)i==u.DOWN?(n.open(),e.preventDefault()):i==u.UP&&(n.close(),e.preventDefault());else if(n.popup.visible()){if(i==u.ESC||o&&r._cell.hasClass(x))return n.close(),e.preventDefault(),t;n._current=r._move(e)}},current:function(e){this._current=e,this.calendar._focus(e)},value:function(e){var t=this,n=t.calendar,i=t.options;t._value=e,t._current=new U(+V(e,i.min,i.max)),n&&n.value(e)},_click:function(e){-1!==e.currentTarget.className.indexOf(x)&&this.close()},_option:function(e,t){var n=this,i=n.calendar;n.options[e]=t,i&&i[e](t)}},L.normalize=n,o.DateView=L,r=s.extend({init:function(t,i){var r,a,u=this;s.fn.init.call(u,t,i),t=u.element,i=u.options,i.min=l(t.attr("min"))||l(i.min),i.max=l(t.attr("max"))||l(i.max),n(i),u._initialOptions=R({},i),u._wrapper(),u.dateView=new L(R({},i,{id:t.attr(C),anchor:u.wrapper,change:function(){u._change(this.value()),u.close()},close:function(e){u.trigger(v)?e.preventDefault():(t.attr(H,!1),a.attr(E,!0))},open:function(e){var n,i=u.options;u.trigger(g)?e.preventDefault():(u.element.val()!==u._oldText&&(n=l(t.val(),i.parseFormats,i.culture),u.dateView[n?"current":"value"](n)),t.attr(H,!0),a.attr(E,!1),u._updateARIA(n))}})),a=u.dateView.div,u._icon();try{t[0].setAttribute("type","text")}catch(c){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1,"aria-owns":u.dateView._dateViewID}),u._reset(),u._template(),r=t.is("[disabled]")||e(u.element).parents("fieldset").is(":disabled"),r?u.enable(!1):u.readonly(t.is("[readonly]")),u._old=u._update(i.value||u.element.val()),u._oldText=t.val(),o.notify(u)},events:[g,v,_],options:{name:"DatePicker",value:null,footer:"",format:"",culture:"",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:F,depth:F,animation:{},month:{},dates:[],ARIATemplate:'Current focused date is #=kendo.toString(data.current, "D")#'},setOptions:function(e){var t=this,i=t._value;s.fn.setOptions.call(t,e),e=t.options,e.min=l(e.min),e.max=l(e.max),n(e),t.dateView.setOptions(e),i&&(t.element.val(o.toString(i,e.format,e.culture)),t._updateARIA(i))},_editable:function(e){var t=this,n=t._dateIcon.off(m),r=t.element.off(m),o=t._inputWrapper.off(m),a=e.readonly,s=e.disable;a||s?(o.addClass(s?T:b).removeClass(s?b:T),r.attr(y,s).attr(w,a).attr(A,s).attr(P,a)):(o.addClass(b).removeClass(T).on(D,t._toggleHover),r.removeAttr(y).removeAttr(w).attr(A,!1).attr(P,!1).on("keydown"+m,Y(t._keydown,t)).on("focusout"+m,Y(t._blur,t)).on("focus"+m,function(){t._inputWrapper.addClass(k)}),n.on(h,Y(t._click,t)).on(S,i))},readonly:function(e){this._editable({readonly:e===t?!0:e,disable:!1})},enable:function(e){this._editable({readonly:!1,disable:!(e=e===t?!0:e)})},destroy:function(){var e=this;s.fn.destroy.call(e),e.dateView.destroy(),e.element.off(m),e._dateIcon.off(m),e._inputWrapper.off(m),e._form&&e._form.off("reset",e._resetHandler)},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(e){return this._option(O,e)},max:function(e){return this._option(z,e)},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),null===n._old&&n.element.val(""),n._oldText=n.element.val(),t)},_toggleHover:function(t){e(t.currentTarget).toggleClass(M,"mouseenter"===t.type)},_blur:function(){var e=this,t=e.element.val();e.close(),t!==e._oldText&&e._change(t),e._inputWrapper.removeClass(k)},_click:function(){var e=this,t=e.element;e.dateView.toggle(),o.support.touch||t[0]===d()||t.focus()},_change:function(e){var t=this;e=t._update(e),+t._old!=+e&&(t._old=e,t._oldText=t.element.val(),t.element.trigger(_),t.trigger(_))},_keydown:function(e){var t=this,n=t.dateView,i=t.element.val();n.popup.visible()||e.keyCode!=u.ENTER||i===t._oldText?(n.move(e),t._updateARIA(n._current)):t._change(i)},_icon:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('select').insertAfter(i)),n._dateIcon=t.attr({role:"button","aria-controls":n.dateView._dateViewID})},_option:function(e,n){var i=this,r=i.options;return n===t?r[e]:(n=l(n,r.parseFormats,r.culture),n&&(r[e]=new U(+n),i.dateView[e](n)),t)},_update:function(e){var t,n=this,i=n.options,r=i.min,a=i.max,s=n._value,u=l(e,i.parseFormats,i.culture),c=null===u&&null===s||u instanceof Date&&s instanceof Date;return+u===+s&&c?(t=o.toString(u,i.format,i.culture),t!==e&&n.element.val(null===u?e:t),u):(null!==u&&W(u,r)?u=V(u,r,a):I(u,r,a)||(u=null),n._value=u,n.dateView.value(u),n.element.val(u?o.toString(u,i.format,i.culture):e),n._updateARIA(u),u)},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-datepicker"),t[0]||(t=i.wrap(p).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(p).parent()),t[0].style.cssText=i[0].style.cssText,i.css({width:"100%",height:i[0].style.height}),n.wrapper=t.addClass("k-widget k-datepicker k-header").addClass(i[0].className),n._inputWrapper=e(t[0].firstChild)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),r=i?e("#"+i):n.closest("form");r[0]&&(t._resetHandler=function(){t.value(n[0].defaultValue),t.max(t._initialOptions.max),t.min(t._initialOptions.min)},t._form=r.on("reset",t._resetHandler))},_template:function(){this._ariaTemplate=c(this.options.ARIATemplate)},_updateARIA:function(e){var t,n=this,i=n.dateView.calendar;n.element.removeAttr("aria-activedescendant"),i&&(t=i._cell,t.attr("aria-label",n._ariaTemplate({current:e||i.current()})),n.element.attr("aria-activedescendant",t.attr("id")))}}),a.plugin(r)}(window.kendo.jQuery),function(e,t){function n(e,t,n){var i,r=e.getTimezoneOffset();e.setTime(e.getTime()+t),n||(i=e.getTimezoneOffset()-r,e.setTime(e.getTime()+i*H))}function i(){var e=new q,t=new q(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),n=new q(e.getFullYear(),e.getMonth(),e.getDate(),12,0,0);return-1*(t.getTimezoneOffset()-n.getTimezoneOffset())}function r(e){return 60*e.getHours()*H+e.getMinutes()*H+1e3*e.getSeconds()+e.getMilliseconds()}function o(e,t,n){var i,o=r(t),a=r(n);return e&&o!=a?(i=r(e),o>i&&(i+=E),o>a&&(a+=E),i>=o&&a>=i):!0}function a(e){var t=e.parseFormats;e.format=m(e.format||c.getCulture(e.culture).calendars.standard.patterns.t),t=B(t)?t:[t],t.splice(0,0,e.format),e.parseFormats=t}function s(e){e.preventDefault()}var l,u,c=window.kendo,d=c.keys,f=c.parseDate,p=c._activeElement,m=c._extractFormat,h=c.support,g=h.browser,v=c.ui,_=v.Widget,y="open",w="close",b="change",k=".kendoTimePicker",x="click"+k,T="k-state-default",M="disabled",D="readonly",S="li",C="",O="k-state-focused",z="k-state-hover",F="mouseenter"+k+" mouseleave"+k,A="mousedown"+k,H=6e4,E=864e5,P="k-state-selected",N="k-state-disabled",I="aria-selected",V="aria-expanded",W="aria-hidden",R="aria-disabled",Y="aria-readonly",U="aria-activedescendant",L="id",B=e.isArray,$=e.extend,j=e.proxy,q=Date,J=new q;J=new q(J.getFullYear(),J.getMonth(),J.getDate(),0,0,0),l=function(t){var n=this,i=t.id;n.options=t,n.ul=e('
'+b[n]+"