text: !function(e,t){t([],e)}(function(){return 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?de[t].substring(0,n)+e:e}function a(e){var t=e.css(E.support.transitions.css+"box-shadow")||e.css("box-shadow"),n=t?t.match(W)||[0,0,0,0,0]:[0,0,0,0,0],i=P.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=R.browser,o="rtl"==t.css("direction");if(t.parent().hasClass("k-animation-container")){var s=t.parent(".k-animation-container"),l=s[0].style;s.is(":hidden")&&s.show(),i=B.test(l.width)||B.test(l.height),i||s.css({width:t.outerWidth(),height:t.outerHeight(),boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"})}else{var u=a(t),c=t[0].style.width,d=t[0].style.height,p=B.test(c),f=B.test(d);r.opera&&(u.left=u.right=u.bottom=5),i=p||f,!p&&(!n||n&&c)&&(c=t.outerWidth()),!f&&(!n||n&&d)&&(d=t.outerHeight()),t.wrap(e("<div/>").addClass("k-animation-container").css({width:c,height:d,marginLeft:u.left*(o?1:-1),paddingLeft:u.left,paddingRight:u.right,paddingBottom:u.bottom})),i&&t.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})}return r.msie&&P.floor(r.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=E.data.ObservableArray,l=E.data.LazyObservableArray,c=E.data.DataSource,d=E.data.HierarchicalDataSource;for(n in t)i=t[n],r=typeof i,o=r===G&&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()):te(i.clone)?e[n]=i.clone():(a=e[n],e[n]=typeof a===G?a||{}:{},u(e[n],i)):r!==Q&&(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 p(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()})}function f(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[p(t)]})),E.size(r)||(r=i),r}function h(e){var t=f(e,["overflow"]).overflow;return"auto"==t||"scroll"==t}function m(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]();R.mobileOS}return R.browser.msie&&(R.pointers||R.msPointers)&&!i&&(r.top-=t.pageYOffset-document.documentElement.scrollTop,r.left-=t.pageXOffset-document.documentElement.scrollLeft),r}function v(e){var t={};return A("string"==typeof e?e.split(" "):e,function(e){t[e]=this}),t}function _(e){return new E.effects.Element(e)}function w(e,t,n,i){return typeof e===$&&(te(t)&&(i=t,t=400,n=!1),te(n)&&(i=n,n=!1),typeof t===K&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:i}),O({effects:{},duration:400,reverse:!1,init:V,teardown:V,hide:!1},e,{completeCallback:e.complete,complete:V})}function b(t,n,i,r,o){for(var a,s=0,l=t.length;l>s;s++)a=e(t[s]),a.queue(function(){fe.promise(a,w(n,i,r,o))});return t}function y(e,t,n,i){return t&&(t=t.split(" "),A(t,function(t,n){e.toggleClass(n,i)})),e}function k(e){return(""+e).replace(he,"&amp;").replace(me,"&lt;").replace(_e,"&gt;").replace(ge,"&quot;").replace(ve,"&#39;")}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(De,"-$1"),i=e.getAttribute("data-"+E.ns+t),null===i?i=n:"null"===i?i=null:"true"===i?i=!0:"false"===i?i=!1:U.test(i)?i=parseFloat(i):Te.test(i)&&!Se.test(i)&&(i=new Function("return ("+i+")")()),i}function C(t,i){var r,o,a={};for(r in i)o=x(t,r),o!==n&&(Ce.test(r)&&(o=E.template(e("#"+o).html())),a[r]=o);return a}function T(t,n){return e.contains(t,n)?-1:1}function S(){var t=e(this);return e.inArray(t.attr("data-"+E.ns+"role"),["slider","rangeslider"])>-1||t.is(":visible")}function D(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&I(e)}function I(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}function F(e,t){return new F.fn.init(e,t)}var M,E=t.kendo=t.kendo||{cultures:{}},O=e.extend,A=e.each,H=e.isArray,z=e.proxy,V=e.noop,P=Math,L=t.JSON||{},R={},B=/%/,N=/\{(\d+)(:[^\}]+)?\}/g,W=/(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+)?/i,U=/^(\+|-?)\d+(\.?)\d*$/,q="function",$="string",j="number",G="object",Y="null",K="boolean",Q="undefined",J={},Z={},X=[].slice,ee=t.Globalize;E.version="2015.2.813",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?O(!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)};var te=E.isFunction=function(e){return"function"==typeof e},ne=function(){this._defaultPrevented=!0},ie=function(){return this._defaultPrevented===!0},re=i.extend({init:function(){this._events={}},bind:function(e,t,i){var r,o,a,s,l,u=this,c=typeof e===$?[e]:e,d=typeof t===q;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===$?[e]:e,l=typeof t===q;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=ne,t.isDefaultPrevented=ie,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}}),oe=/^\w+/,ae=/\$\{([^}]*)\}/g,se=/\\\}/g,le=/__CURLY__/g,ue=/\\#/g,ce=/__SHARP__/g,de=["","0","00","000","0000"];M={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=O({},this,t),s=a.paramName,l=s.match(oe)[0],u=a.useWithBlock,c="var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;";if(te(e))return e;for(c+=u?"with("+s+"){":"",c+="$kendoOutput=",i=e.replace(se,"__CURLY__").replace(ae,"#=$kendoHtmlEncode($1)#").replace(le,"}").replace(ue,"__SHARP__").split("#"),o=0;o<i.length;o++)c+=r(i[o],o%2===0);c+=u?";}":";",c+="return $kendoOutput;",c=c.replace(ce,"#");try{return n=new Function(l,c),n._slotCount=Math.floor(i.length/2),n}catch(d){throw new Error(E.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===$?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function t(o,a){var s,u,c,d,p,f,h=n,m=a[o];if(m&&typeof m===G&&typeof m.toJSON===q&&(m=m.toJSON(o)),typeof r===q&&(m=r.call(a,o,m)),f=typeof m,f===$)return e(m);if(f===j)return isFinite(m)?String(m):Y;if(f===K||f===Y)return String(m);if(f===G){if(!m)return Y;if(n+=i,p=[],"[object Array]"===l.apply(m)){for(d=m.length,s=0;d>s;s++)p[s]=t(s,m)||Y;return c=0===p.length?"[]":n?"[\n"+n+p.join(",\n"+n)+"\n"+h+"]":"["+p.join(",")+"]",n=h,c}if(r&&typeof r===G)for(d=r.length,s=0;d>s;s++)typeof r[s]===$&&(u=r[s],c=t(u,m),c&&p.push(e(u)+(n?": ":":")+c));else for(u in m)Object.hasOwnProperty.call(m,u)&&(c=t(u,m),c&&p.push(e(u)+(n?": ":":")+c));return c=0===p.length?"{}":n?"{\n"+n+p.join(",\n"+n)+"\n"+h+"}":"{"+p.join(",")+"}",n=h,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!==q&&(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 L.stringify!==q&&(L.stringify=function(e,o,a){var s;if(n="",i="",typeof a===j)for(s=0;a>s;s+=1)i+=" ";else typeof a===$&&(i=a);if(r=o,o&&typeof o!==q&&(typeof o!==G||typeof o.length!==j))throw new Error("JSON.stringify");return t("",{"":e})})}(),function(){function t(e){if(e){if(e.numberFormat)return e;if(typeof e===$){var t=E.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function i(e){return e&&(e=t(e)),e||E.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,u=a.months;return t=a.patterns[t]||t,t.replace(l,function(t){var i,r,l;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=u.namesAbbr[e.getMonth()]:"MMMM"===t?r=u.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=P.floor(e.getMilliseconds()/100):"ff"===t?(r=e.getMilliseconds(),r>99&&(r=P.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(),l=0>i,r=P.abs(i/60).toString().split(".")[0],i=P.abs(i)-60*r,r=(l?"+":"-")+o(r),r+=":"+o(i)):("zz"===t||"z"===t)&&(r=e.getTimezoneOffset()/60,l=0>r,r=P.abs(r).toString().split(".")[0],r=(l?"+":"-")+("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,l,_,w,y,k,x,C,T,S,D,I,F,M,E,O,A,H,z,V,P,L=r.numberFormat,R=L.groupSize[0],B=L[h],N=L[f],W=L.decimals,U=L.pattern[0],q=[],$=0>e,j=p,G=p,Y=-1;if(e===n)return p;if(!isFinite(e))return e;if(!t)return r.name.length?e.toLocaleString():e.toString();if(_=u.exec(t)){if(t=_[1].toLowerCase(),a="c"===t,s="p"===t,(a||s)&&(L=a?L.currency:L.percent,R=L.groupSize[0],B=L[h],N=L[f],W=L.decimals,o=L.symbol,U=L.pattern[$?0:1]),l=_[2],l&&(W=+l),"e"===t)return l?e.toExponential(W):e.toExponential();if(s&&(e*=100),e=b(e,W),$=0>e,e=e.split(f),w=e[0],y=e[1],$&&(w=w.substring(1)),G=w,k=w.length,k>=R)for(G=p,C=0;k>C;C++)C>0&&(k-C)%R===0&&(G+=B),G+=w.charAt(C);if(y&&(G+=N+y),"n"===t&&!$)return G;for(e=p,C=0,T=U.length;T>C;C++)S=U.charAt(C),e+="n"===S?G:"$"===S||"%"===S?o:S;return e}if($&&(e=-e),(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1)&&(t=t.replace(c,function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return q.push(n),v})),t=t.split(";"),$&&t[1])t=t[1],I=!0;else if(0===e){if(t=t[2]||t[0],-1==t.indexOf(m)&&-1==t.indexOf(g))return t}else t=t[0];if(H=t.indexOf("%"),z=t.indexOf("$"),s=-1!=H,a=-1!=z,s&&(e*=100),a&&"\\"===t[z-1]&&(t=t.split("\\").join(""),a=!1),(a||s)&&(L=a?L.currency:L.percent,R=L.groupSize[0],B=L[h],N=L[f],W=L.decimals,o=L.symbol),D=t.indexOf(h)>-1,D&&(t=t.replace(d,p)),F=t.indexOf(f),T=t.length,-1!=F?(y=e.toString().split("e"),y=y[1]?b(e,Math.abs(y[1])):y[0],y=y.split(f)[1]||p,E=t.lastIndexOf(g)-F,M=t.lastIndexOf(m)-F,O=E>-1,A=M>-1,C=y.length,O||A||(t=t.substring(0,F)+t.substring(F+1),T=t.length,F=-1,C=0),O&&E>M?C=E:M>E&&(A&&C>M?C=M:O&&E>C&&(C=E)),C>-1&&(e=b(e,C))):e=b(e),M=t.indexOf(m),V=E=t.indexOf(g),Y=-1==M&&-1!=E?E:-1!=M&&-1==E?M:M>E?E:M,M=t.lastIndexOf(m),E=t.lastIndexOf(g),P=-1==M&&-1!=E?E:-1!=M&&-1==E?M:M>E?M:E,Y==T&&(P=Y),-1!=Y){if(G=e.toString().split(f),w=G[0],y=G[1]||p,k=w.length,x=y.length,$&&-1*e>=0&&($=!1),D)if(k===R&&F-V>k)w=B+w;else if(k>R){for(G=p,C=0;k>C;C++)C>0&&(k-C)%R===0&&(G+=B),G+=w.charAt(C);w=G}for(e=t.substring(0,Y),$&&!I&&(e+="-"),C=Y;T>C;C++){if(S=t.charAt(C),-1==F){if(k>P-C){e+=w;break}}else if(-1!=E&&C>E&&(j=p),k>=F-C&&F-C>-1&&(e+=w,C=F),F===C){e+=(y?N:p)+y,C+=P-F+1;continue}S===g?(e+=S,j=S):S===m&&(e+=j)}if(P>=Y&&(e+=t.substring(P+1)),a||s){for(G=p,C=0,T=e.length;T>C;C++)S=e.charAt(C),G+="$"===S||"%"===S?o:S;e=G}if(T=q.length)for(C=0;T>C;C++)e=e.replace(v,q[C])}return e}var l=/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,u=/^(n|c|p|e)(\d*)$/i,c=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,d=/\,/g,p="",f=".",h=",",m="#",g="0",v="??",_="en-US",w={}.toString;E.cultures["en-US"]={name:_,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}}},E.culture=function(e){var i,o=E.cultures;return e===n?o.current:(i=t(e)||o[_],i.calendar=i.calendars.standard,o.current=i,ee&&!ee.load&&r(i.numberFormat),void 0)},E.findCulture=t,E.getCulture=i,E.culture(_);var b=function(e,t){return t=t||0,e=e.toString().split("e"),e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t))),e=e.toString().split("e"),e=+(e[0]+"e"+(e[1]?+e[1]-t:-t)),e.toFixed(t)},y=function(e,t,i){if(t){if("[object Date]"===w.call(e))return a(e,t,i);if(typeof e===j)return s(e,t,i)}return e!==n?e:""};ee&&!ee.load&&(y=function(t,n,i){return e.isPlainObject(i)&&(i=i.name),ee.format(t,n,i)}),E.format=function(e){var t=arguments;return e.replace(N,function(e,n,i){var r=t[parseInt(n,10)+1];return y(r,i?i.substring(1):"")})},E._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},E._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},E._round=b,E.toString=y}(),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,h,m,g,_,w,b,y,k,x,C=function(e){for(var t=0;i[V]===e;)t++,V++;return t>0&&(V-=1),t},T=function(t){var n=v[t]||new RegExp("^\\d{1,"+t+"}"),i=e.substr(P,t).match(n);return i?(i=i[0],P+=i.length,parseInt(i,10)):null},S=function(t,n){for(var i,r,o,a=0,s=t.length,l=0,u=0;s>a;a++)i=t[a],r=i.length,o=e.substr(P,r),n&&(o=o.toLowerCase()),o==i&&r>l&&(l=r,u=a);return l?(P+=l,u+1):null},D=function(){var t=!1;return e.charAt(P)===i[V]&&(P++,t=!0),t},I=a.calendars.standard,F=null,M=null,E=null,O=null,A=null,H=null,z=null,V=0,P=0,L=!1,R=new Date,B=I.twoDigitYearMax||2029,N=R.getFullYear();for(i||(i="d"),d=I.patterns[i],d&&(i=d),i=i.split(""),c=i.length;c>V;V++)if(l=i[V],L)"'"===l?L=!1:D();else if("d"===l){if(u=C("d"),I._lowerDays||(I._lowerDays=s(I.days)),null!==E&&u>2)continue;if(E=3>u?T(2):S(I._lowerDays[3==u?"namesAbbr":"names"],!0),null===E||t(E,1,31))return null}else if("M"===l){if(u=C("M"),I._lowerMonths||(I._lowerMonths=s(I.months)),M=3>u?T(2):S(I._lowerMonths[3==u?"namesAbbr":"names"],!0),null===M||t(M,1,12))return null;M-=1}else if("y"===l){if(u=C("y"),F=T(u),null===F)return null;2==u&&("string"==typeof B&&(B=N+parseInt(B,10)),F=N-N%100+F,F>B&&(F-=100))}else if("h"===l){if(C("h"),O=T(2),12==O&&(O=0),null===O||t(O,0,11))return null}else if("H"===l){if(C("H"),O=T(2),null===O||t(O,0,23))return null}else if("m"===l){if(C("m"),A=T(2),null===A||t(A,0,59))return null}else if("s"===l){if(C("s"),H=T(2),null===H||t(H,0,59))return null}else if("f"===l){if(u=C("f"),x=e.substr(P,u).match(v[3]),z=T(u),null!==z&&(x=x[0].length,3>x&&(z*=Math.pow(10,3-x)),u>3&&(z=parseInt(z.toString().substring(0,3),10))),null===z||t(z,0,999))return null}else if("t"===l){if(u=C("t"),_=I.AM,w=I.PM,1===u&&(_=r(_),w=r(w)),h=S(w),!h&&!S(_))return null}else if("z"===l){if(m=!0,u=C("z"),"Z"===e.substr(P,1)){D();continue}if(g=e.substr(P,6).match(u>2?f:p),!g)return null;if(g=g[0].split(":"),b=g[0],y=g[1],!y&&b.length>3&&(P=b.length-2,y=b.substring(P),b=b.substring(0,P)),b=parseInt(b,10),t(b,-12,13))return null;if(u>2&&(y=parseInt(y,10),isNaN(y)||t(y,0,59)))return null}else if("'"===l)L=!0,D();else if(!D())return null;return k=null!==O||null!==A||H||null,null===F&&null===M&&null===E&&k?(F=N,M=R.getMonth(),E=R.getDate()):(null===F&&(F=N),null===E&&(E=1)),h&&12>O&&(O+=12),m?(b&&(O+=-b),y&&(A+=-y),e=new Date(Date.UTC(F,M,E,O,A,H,z))):(e=new Date(F,M,E,O,A,H,z),o(e,O)),100>F&&e.setFullYear(F),e.getDate()!==E&&m===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]+/,p=/[+|\-]\d{1,2}/,f=/[+|\-]\d{1,2}:?\d{2}/,h=/^\/Date\((.*?)\)\/$/,m=/[+-]\d*/,g=["G","g","d","F","D","y","m","T","t"],v={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},_={}.toString;E.parseDate=function(e,t,n){if("[object Date]"===_.call(e))return e;var i,r,o,a=0,s=null;if(e&&0===e.indexOf("/D")&&(s=h.exec(e)))return s=s[1],o=m.exec(s.substring(1)),s=new Date(parseInt(s,10)),o&&(o=u(o[0]),s=E.timezone.apply(s,0),s=E.timezone.convert(s,0,-1*o)),s;if(n=E.getCulture(n),!t){for(t=[],r=n.calendar.patterns,i=g.length;i>a;a++)t[a]=r[g[a]];a=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=H(t)?t:[t],i=t.length;i>a;a++)if(s=l(e,t[a],n))return s;return s},E.parseInt=function(e,t){var n=E.parseFloat(e,t);return n&&(n=0|n),n},E.parseFloat=function(e,t,n){if(!e&&0!==e)return null;if(typeof e===j)return e;e=e.toString(),t=E.getCulture(t);var i,r,o=t.numberFormat,a=o.percent,s=o.currency,l=s.symbol,u=a.symbol,p=e.indexOf("-");return d.test(e)?(e=parseFloat(e.replace(o["."],".")),isNaN(e)&&(e=null),e):p>0?null:(p=p>-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],""),p=!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:p&&(e*=-1),e&&r&&(e/=100),e)},ee&&!ee.load&&(E.parseDate=function(e,t,n){return"[object Date]"===_.call(e)?e:ee.parseDate(e,t,n)},E.parseFloat=function(t,i){return typeof t===j?t:t===n||null===t?null:(e.isPlainObject(i)&&(i=i.name),t=ee.parseFloat(t,i),isNaN(t)?null:t)})}(),function(){R._scrollbar=n,R.scrollbar=function(e){if(isNaN(R._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="&nbsp;",document.body.appendChild(n),R._scrollbar=t=n.offsetWidth-n.scrollWidth,document.body.removeChild(n),t}return R._scrollbar},R.isRtl=function(t){return e(t).closest(".k-rtl").length>0};var i=document.createElement("table");try{i.innerHTML="<tr><td></td></tr>",R.tbodyInnerHtml=!0}catch(r){R.tbodyInnerHtml=!1}R.touch="ontouchstart"in t,R.msPointers=t.MSPointerEvent,R.pointers=t.PointerEvent;var o=R.transitions=!1,a=R.transforms=!1,s="HTMLElement"in t?HTMLElement.prototype:[];R.hasHW3D="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix||"MozPerspective"in document.documentElement.style||"msPerspective"in document.documentElement.style,A(["Moz","webkit","O","ms"],function(){var e=this.toString(),t=typeof i.style[e+"Transition"]===$;if(t||typeof i.style[e+"Transform"]===$){var n=e.toLowerCase();return a={css:"ms"!=n?"-"+n+"-":"",prefix:e,event:"o"===n||"webkit"===n?n:""},t&&(o=a,o.event=o.event?o.event+"TransitionEnd":"transitionend"),!1}}),i=null,R.transforms=a,R.transitions=o,R.devicePixelRatio=t.devicePixelRatio===n?1:t.devicePixelRatio;try{R.screenWidth=t.outerWidth||t.screen?t.screen.availWidth:t.innerWidth,R.screenHeight=t.outerHeight||t.screen?t.screen.availHeight:t.innerHeight}catch(r){R.screenWidth=t.screen.availWidth,R.screenHeight=t.screen.availHeight}R.detectOS=function(e){var n,i=!1,r=[],o=!/mobile safari/i.test(e),a={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/},s={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/},l={tablet:/playbook|ipad|fire/i},u={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(var d in a)if(a.hasOwnProperty(d)&&(r=e.match(a[d]))){if("windows"==d&&"plugins"in navigator)return!1;i={},i.device=d,i.tablet=c(d,l,!1),i.browser=c(e,u,"default"),i.name=c(d,s),i[i.name]=!0,i.majorVersion=r[2],i.minorVersion=r[3].replace("_","."),n=i.minorVersion.replace(".","").substr(0,2),i.flatVersion=i.majorVersion+n+new Array(3-(n.length<3?n.length:2)).join("0"),i.cordova=typeof t.PhoneGap!==Q||typeof t.cordova!==Q,i.appMode=t.navigator.standalone||/file|local|wmapp/.test(t.location.protocol)||i.cordova,i.android&&(R.devicePixelRatio<1.5&&i.flatVersion<400||o)&&(R.screenWidth>800||R.screenHeight>800)&&(i.tablet=d);break}return i};var l=R.mobileOS=R.detectOS(navigator.userAgent);R.wpDevicePixelRatio=l.wp?screen.width/320:0,R.kineticScrollNeeded=l&&(R.touch||R.msPointers||R.pointers),R.hasNativeScrolling=!1,(l.ios||l.android&&l.majorVersion>2||l.wp)&&(R.hasNativeScrolling=l),R.mouseAndTouchPresent=R.touch&&!(R.mobileOS.ios||R.mobileOS.android),R.detectBrowser=function(e){var t=!1,n=[],i={edge:/(edge)[ \/]([\w.]+)/i,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(var r in i)if(i.hasOwnProperty(r)&&(n=e.match(i[r]))){t={},t[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t},R.browser=R.detectBrowser(navigator.userAgent),R.zoomLevel=function(){try{var e=R.browser,n=0,i=document.documentElement;return e.msie&&11==e.version&&i.scrollHeight>i.clientHeight&&!R.touch&&(n=R.scrollbar()),R.touch?i.clientWidth/t.innerWidth:e.msie&&e.version>=10?((top||t).document.documentElement.offsetWidth+n)/(top||t).innerWidth:1}catch(r){return 1}},R.cssBorderSpacing="undefined"!=typeof document.documentElement.style.borderSpacing&&!(R.browser.msie&&R.browser.version<8),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),R.mobileOS&&(n+=" k-mobile"),i.addClass(n)}(R.browser),R.eventCapture=document.documentElement.addEventListener;var u=document.createElement("input");R.placeholder="placeholder"in u,R.propertyChangeEvent="onpropertychange"in u,R.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],u.setAttribute("type",e),u.value=i,r[e.replace("-","")]="text"!==u.type&&u.value!==i;return r}(),u.style.cssText="float:left;",R.cssFloat=!!u.style.cssFloat,u=null,R.stableSort=function(){for(var e=513,t=[{index:0,field:"b"}],n=1;e>n;n++)t.push({index:n,field:"a"});return t.sort(function(e,t){return e.field>t.field?1:e.field<t.field?-1:0}),1===t[0].index}(),R.matchesSelector=s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.matchesSelector||s.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},R.pushState=t.history&&t.history.pushState;var d=document.documentMode;R.hashChange="onhashchange"in t&&!(R.browser.msie&&(!d||8>=d))}();var pe={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},fe={};e.extend(fe,{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}}),fe.promiseShim=fe.promise,"kendoAnimate"in e.fn||O(e.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,i){return b(this,e,t,n,i)},kendoAddClass:function(e,t){return E.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return E.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return E.toggleClass(this,e,t,n)}});var he=/&/g,me=/</g,ge=/"/g,ve=/'/g,_e=/>/g,we=function(e){return e.target};R.touch&&(we=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},A(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(t,n){e.fn[n]=function(e){return this.bind(n,e)}})),R.touch?R.mobileOS?(R.mousedown="touchstart",R.mouseup="touchend",R.mousemove="touchmove",R.mousecancel="touchcancel",R.click="touchend",R.resize="orientationchange"):(R.mousedown="mousedown touchstart",R.mouseup="mouseup touchend",R.mousemove="mousemove touchmove",R.mousecancel="mouseleave touchcancel",R.click="click",R.resize="resize"):R.pointers?(R.mousemove="pointermove",R.mousedown="pointerdown",R.mouseup="pointerup",R.mousecancel="pointercancel",R.click="pointerup",R.resize="orientationchange resize"):R.msPointers?(R.mousemove="MSPointerMove",R.mousedown="MSPointerDown",R.mouseup="MSPointerUp",R.mousecancel="MSPointerCancel",R.click="MSPointerUp",R.resize="orientationchange resize"):(R.mousemove="mousemove",R.mousedown="mousedown",R.mouseup="mouseup",R.mousecancel="mouseleave",R.click="click",R.resize="resize");var be=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 new Array(s).join("(")+a},ye=/^([a-z]+:)?\/\//i;O(E,{ui:E.ui||{},fx:E.fx||_,effects:E.effects||fe,mobile:E.mobile||{},data:E.data||{},dataviz:E.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:E.support||R,animate:E.animate||b,ns:"",attr:function(e){return"data-"+E.ns+e},getShadows:a,wrap:s,deepExtend:l,getComputedStyles:f,isScrollable:h,size:m,toCamelCase:p,toHyphens:d,getOffset:E.getOffset||g,parseEffects:E.parseEffects||v,toggleClass:E.toggleClass||y,directions:E.directions||pe,Observable:re,Class:i,Template:M,template:z(M.compile,M),render:z(M.render,M),stringify:z(L.stringify,L),eventTarget:we,htmlEncode:k,isLocalUrl:function(e){return e&&!ye.test(e)},expr:function(e,t,n){return e=e||"",typeof t==$&&(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=be(e.split("."),n),e=e.replace(/_\$DOT\$_/g,".")):e=n+e,e},getter:function(e,t){var n=e+t;return J[n]=J[n]||new Function("d","return "+E.expr(e,t))},setter:function(e){return Z[e]=Z[e]||new Function("d,value",E.expr(e)+"=value")},accessor:function(e){return{get:E.getter(e),set:E.setter(e)}},guid:function(){var e,t,n="";for(e=0;32>e;e++)t=16*P.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,"["+E.attr("role")+"=$1],").slice(0,-1)},directiveSelector:function(e){var t=e.split(" ");if(t)for(var n=0;n<t.length;n++)"view"!=t[n]&&(t[n]=t[n].replace(/(\w*)(view|bar|strip|over)$/,"$1-$2"));return t.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 n=t.console;!E.suppressLog&&"undefined"!=typeof n&&n.log&&n.log(e)}});var ke=re.extend({init:function(e,t){var n=this;n.element=E.jQuery(e).handler(n),n.angular("init",t),re.fn.init.call(n);var i=t?t.dataSource:null;i&&(t=O({},t,{dataSource:{}})),t=n.options=O(!0,{},n.options,t),i&&(t.dataSource=i),n.element.attr(E.attr("role"))||n.element.attr(E.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",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 E.dimensions(this.element)},size:function(e){return e?void this.setSize(e):this.getSize()},setSize:e.noop,_resize:e.noop,destroy:function(){var e=this;e.element.removeData("kendo"+e.options.prefix+e.options.name),e.element.removeData("handler"),e.unbind()},_destroy:function(){this.destroy()},angular:function(){}}),xe=ke.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}})}})}});E.dimensions=function(e,t){var n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}},E.notify=V;var Ce=/template$/i,Te=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,Se=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]*\]$/,De=/([A-Z])/g;E.initWidget=function(i,r,o){var a,s,l,u,c,d,p,f,h,m;if(o?o.roles&&(o=o.roles):o=E.ui.roles,i=i.nodeType?i:i[0],d=i.getAttribute("data-"+E.ns+"role")){h=-1===d.indexOf("."),l=h?o[d]:E.getter(d)(t);var g=e(i).data(),v=l?"kendo"+l.fn.options.prefix+l.fn.options.name:"";m=h?new RegExp("^kendo.*"+d+"$","i"):new RegExp("^"+v+"$","i");for(var _ in g)if(_.match(m)){if(_!==v)return g[_];a=g[_]}if(l){for(f=x(i,"dataSource"),r=e.extend({},C(i,l.fn.options),r),f&&(r.dataSource=typeof f===$?E.getter(f)(t):f),u=0,c=l.fn.events.length;c>u;u++)s=l.fn.events[u],p=x(i,s),p!==n&&(r[s]=E.getter(p)(t));return a?e.isEmptyObject(r)||a.setOptions(r):a=new l(i,r),a}}},E.rolesFromNamespaces=function(e){var t,n,i=[];for(e[0]||(e=[E.ui,E.dataviz.ui]),t=0,n=e.length;n>t;t++)i[t]=e[t].roles;return O.apply(null,[{}].concat(i.reverse()))},E.init=function(t){var n=E.rolesFromNamespaces(X.call(arguments,1));e(t).find("[data-"+E.ns+"role]").addBack().each(function(){E.initWidget(this,{},n)})},E.destroy=function(t){e(t).find("[data-"+E.ns+"role]").addBack().each(function(){var t=e(this).data();for(var n in t)0===n.indexOf("kendo")&&typeof t[n].destroy===q&&t[n].destroy()})},E.resize=function(t,n){var i=e(t).find("[data-"+E.ns+"role]").addBack().filter(S);if(i.length){var r=e.makeArray(i);r.sort(T),e.each(r,function(){var t=E.widgetInstance(e(this));t&&t.resize(n)})}},E.parseOptions=C,O(E.ui,{Widget:ke,DataBoundWidget:xe,roles:{},progress:function(t,n){var i,r,o,a,s=t.find(".k-loading-mask"),l=E.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("<div class='k-loading-mask'><span class='k-loading-text'>Loading...</span><div class='k-loading-image'/><div class='k-loading-color'/></div>").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||E.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===$?(r=X.call(arguments,1),this.each(function(){var t,s,l=e.data(this,a);if(!l)throw new Error(E.format("Cannot call method '{0}' of {1} before it is initialized",i,a));if(t=l[i],typeof t!==q)throw new Error(E.format("Cannot find method '{0}' of {1}",i,a));return s=t.apply(l,r),s!==n?(o=s,!1):void 0})):this.each(function(){new t(this,i)}),o},e.fn[a].widget=t,e.fn[o]=function(){return this.data(a)}}});var Ie={bind:function(){return this},nullObject:!0,options:{}},Fe=ke.extend({init:function(e,t){ke.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass("km-widget")},destroy:function(){ke.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],view:function(){var e=this.element.closest(E.roleSelector("view splitview modalview drawer"));return E.widgetInstance(e,E.mobile.ui)||Ie},viewHasNativeScrolling:function(){var e=this.view();return e&&e.options.useNativeScrolling},container:function(){var e=this.element.closest(E.roleSelector("view layout modalview drawer splitview"));return E.widgetInstance(e.eq(0),E.mobile.ui)||Ie}});O(E.mobile,{init:function(e){E.init(e,E.mobile.ui,E.ui,E.dataviz.ui)},appLevelNativeScrolling:function(){return E.mobile.application&&E.mobile.application.options&&E.mobile.application.options.useNativeScrolling},roles:{},ui:{Widget:Fe,DataBoundWidget:xe.extend(Fe.prototype),roles:{},plugin:function(e){E.ui.plugin(e,E.mobile.ui,"Mobile")}}}),l(E.dataviz,{init:function(e){E.init(e,E.dataviz.ui)},ui:{roles:{},themes:{},views:[],plugin:function(e){E.ui.plugin(e,E.dataviz.ui)}},roles:{}}),E.touchScroller=function(t,n){return e(t).map(function(t,i){return i=e(i),R.kineticScrollNeeded&&E.mobile.ui.Scroller&&!i.data("kendoMobileScroller")?(i.kendoMobileScroller(n),i.data("kendoMobileScroller")):!1})[0]},E.preventDefault=function(e){e.preventDefault()},E.widgetInstance=function(e,n){var i,r,o=e.data(E.ns+"role"),a=[];if(o){if("content"===o&&(o="scroller"),n)if(n[0])for(i=0,r=n.length;r>i;i++)a.push(n[i].roles[o]);else a.push(n.roles[o]);else a=[E.ui.roles[o],E.dataviz.ui.roles[o],E.mobile.ui.roles[o]];for(o.indexOf(".")>=0&&(a=[E.getter(o)(t)]),i=0,r=a.length;r>i;i++){var s=a[i];if(s){var l=e.data("kendo"+s.fn.options.prefix+s.fn.options.name);if(l)return l}}}},E.onResize=function(n){var i=n;return R.mobileOS.android&&(i=function(){setTimeout(n,600)}),e(t).on(R.resize,i),i},E.unbindResize=function(n){e(t).off(R.resize,n)},E.attrValue=function(e,t){return e.data(E.ns+t)},E.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 D(t,!isNaN(n)&&n>-1)}});var Me=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"],Ee="label, input, [data-rel=external]",Oe={setupMouseMute:function(){var t=0,n=Me.length,i=document.documentElement;if(!Oe.mouseTrap&&R.eventCapture){Oe.mouseTrap=!0,Oe.bustClick=!1,Oe.captureMouse=!1;for(var r=function(t){Oe.captureMouse&&("click"===t.type?Oe.bustClick&&!e(t.target).is(Ee)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};n>t;t++)i.addEventListener(Me[t],r,!0)}},muteMouse:function(e){Oe.captureMouse=!0,e.data.bustClick&&(Oe.bustClick=!0),clearTimeout(Oe.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(Oe.mouseTrapTimeoutID),Oe.mouseTrapTimeoutID=setTimeout(function(){Oe.captureMouse=!1,Oe.bustClick=!1},400)}},Ae={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"};R.touch&&(R.mobileOS.ios||R.mobileOS.android)?Ae={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:R.pointers?Ae={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:R.msPointers&&(Ae={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),!R.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}}});var He=function(e){return Ae[e]||e},ze=/([^ ]+)/g;E.applyEventMap=function(e,t){return e=e.replace(ze,He),t&&(e=e.replace(ze,"$1."+t)),e};var Ve=e.fn.on;O(!0,F,e),F.fn=F.prototype=new e,F.fn.constructor=F,F.fn.init=function(t,n){return n&&n instanceof e&&!(n instanceof F)&&(n=F(n)),e.fn.init.call(this,t,n,Pe)},F.fn.init.prototype=F.fn;var Pe=F(document);O(F.fn,{handler:function(e){return this.data("handler",e),this},autoApplyNS:function(e){return this.data("kendoNS",e||E.guid()),this},on:function(){var e=this,t=e.data("kendoNS");if(1===arguments.length)return Ve.call(e,arguments[0]);var n=e,i=X.call(arguments);typeof i[i.length-1]===Q&&i.pop();var r=i[i.length-1],o=E.applyEventMap(i[0],t);if(R.mouseAndTouchPresent&&o.search(/mouse|click/)>-1&&this[0]!==document.documentElement){Oe.setupMouseMute();var a=2===i.length?null:i[1],s=o.indexOf("click")>-1&&o.indexOf("touchend")>-1;Ve.call(this,{touchstart:Oe.muteMouse,touchend:Oe.unMuteMouse},a,{bustClick:s})}return typeof r===$&&(n=e.data("handler"),r=n[r],i[i.length-1]=function(e){r.call(n,e)}),i[0]=o,Ve.apply(e,i),e},kendoDestroy:function(e){return e=e||this.data("kendoNS"),e&&this.off("."+e),this}}),E.jQuery=F,E.eventMap=Ae,E.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){if(n=n[i],!n){var r=i.split(":"),o=0;return r.length>1&&(o=60*r[0]+Number(r[1])),[-1e6,"max","-","Jan",1,[0,0,0],o,"-"]}var 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});var s=n[jQuery.inArray(t,n)-1]||n[n.length-1];return isNaN(s)?s:null}function n(e,t,n){var i=t[n];if("string"==typeof i&&(i=t[i]),!i)throw new Error('Timezone "'+n+'" is either incorrect, or kendo.timezones.min.js is not included.');for(var r=i.length-1;r>=0;r--){var o=i[r][3];if(o&&e>o)break}var a=i[r+1];if(!a)throw new Error('Timezone "'+n+'" not found on '+e+".");return a}function i(e,i,r,o){typeof e!=j&&(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){if("Etc/UTC"==t||"Etc/GMT"==t)return 0;var n=i(e,this.zones,this.rules,t),r=n.zone,o=n.rule;return E.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){typeof t==$&&(t=this.offset(e,t)),typeof n==$&&(n=this.offset(e,n));var i=e.getTimezoneOffset();e=new Date(e.getTime()+6e4*(t-n));var r=e.getTimezoneOffset();return 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}}(),E.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*m))}function p(){return o(new Date)}function f(e){return o(e).getTime()==p().getTime()}function h(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 m=6e4,g=864e5;return{adjustDST:e,dayOfWeek:n,setDayOfWeek:t,getDate:o,isInDateRange:u,isInTimeRange:l,isToday:f,nextDay:function(e){return c(e,1)},previousDay:function(e){return c(e,-1)},toUtcTime:a,MS_PER_DAY:g,MS_PER_HOUR:60*m,MS_PER_MINUTE:m,setTime:d,addDays:c,today:p,toInvariantTime:h,firstDayOfMonth:i,lastDayOfMonth:r,getMilliseconds:s}}(),E.stripWhitespace=function(e){if(document.createNodeIterator)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);else for(var n=0;n<e.childNodes.length;n++){var i=e.childNodes[n];3!=i.nodeType||/\S/.test(i.nodeValue)||(e.removeChild(i),n--),1==i.nodeType&&E.stripWhitespace(i)}};var Le=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)};E.animationFrame=function(e){Le.call(t,e)};var Re=[];E.queueAnimation=function(e){Re[Re.length]=e,1===Re.length&&E.runNextAnimation()},E.runNextAnimation=function(){E.animationFrame(function(){Re[0]&&(Re.shift()(),Re[0]&&E.runNextAnimation())})},E.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},E.elementUnderCursor=function(e){return"undefined"!=typeof e.x.client?document.elementFromPoint(e.x.client,e.y.client):void 0},E.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},E.throttle=function(e,t){var n,i=0;if(!t||0>=t)return e;var r=function(){function r(){e.apply(o,s),i=+new Date}var o=this,a=+new Date-i,s=arguments;return i?(n&&clearTimeout(n),void(a>t?r():n=setTimeout(r,t-a))):r()};return r.cancel=function(){clearTimeout(n)},r},E.caret=function(t,i,r){var o,a=i!==n;if(r===n&&(r=i),t[0]&&(t=t[0]),!a||!t.disabled){try{if(t.selectionStart!==n)a?(t.focus(),t.setSelectionRange(i,r)):i=[t.selectionStart,t.selectionEnd];else if(document.selection)if(e(t).is(":visible")&&t.focus(),o=t.createTextRange(),a)o.collapse(!0),o.moveStart("character",i),o.moveEnd("character",r-i),o.select();else{var s,l,u=o.duplicate();o.moveToBookmark(document.selection.createRange().getBookmark()),u.setEndPoint("EndToStart",o),s=u.text.length,l=s+o.text.length,i=[s,l]}}catch(c){i=[]}return i}},E.compileMobileDirective=function(e,n){var i=t.angular;return e.attr("data-"+E.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()}]),E.widgetInstance(e,E.mobile.ui)},E.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},E.cycleForm=function(e){function t(e){var t=E.widgetInstance(e);t&&t.focus?t.focus():e.focus()}var n=e.find("input, .k-widget").first(),i=e.find("button, .k-button").last();i.on("keydown",function(e){e.keyCode!=E.keys.TAB||e.shiftKey||(e.preventDefault(),t(n))}),n.on("keydown",function(e){e.keyCode==E.keys.TAB&&e.shiftKey&&(e.preventDefault(),t(i))})},function(){function n(t,n,i,r){var o=e("<form>").attr({action:i,method:"POST",target:r}),a=E.antiForgeryTokens();a.fileName=n;var s=t.split(";base64,");a.contentType=s[0].replace("data:",""),a.base64=s[1];for(var l in a)a.hasOwnProperty(l)&&e("<input>").attr({value:a[l],name:l,type:"hidden"}).appendTo(o);o.appendTo("body").submit().remove()}function i(e,t){var n=e;if("string"==typeof e){for(var i=e.split(";base64,"),r=i[0],o=atob(i[1]),a=new Uint8Array(o.length),s=0;s<o.length;s++)a[s]=o.charCodeAt(s);n=new Blob([a.buffer],{type:r})}navigator.msSaveBlob(n,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;E.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),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core"],e)}(function(){return function(e,t,n){function i(e,r){var s,d;if(null==e||"none"==e)return null;if(e instanceof l)return e;if(e=e.toLowerCase(),s=a.exec(e))return e="transparent"==s[1]?new u(1,1,1,0):i(o.namedColors[s[1]],r),e.match=[s[1]],e;if((s=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(e))?d=new c(n(s[1],16),n(s[2],16),n(s[3],16),1):(s=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(e))?d=new c(n(s[1]+s[1],16),n(s[2]+s[2],16),n(s[3]+s[3],16),1):(s=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(e))?d=new c(n(s[1],10),n(s[2],10),n(s[3],10),1):(s=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(e))?d=new c(n(s[1],10),n(s[2],10),n(s[3],10),t(s[4])):(s=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(e))?d=new u(t(s[1])/100,t(s[2])/100,t(s[3])/100,1):(s=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(e))&&(d=new u(t(s[1])/100,t(s[2])/100,t(s[3])/100,t(s[4]))),d)d.match=s;else if(!r)throw new Error("Cannot parse color: "+e);return d}function r(e,t,n){for(n||(n="0"),e=e.toString(16);t>e.length;)e="0"+e;return e}var o=function(e){var t,n,i,r,a,s=this,l=o.formats;if(1===arguments.length)for(e=s.resolveColor(e),r=0;r<l.length;r++)t=l[r].re,n=l[r].process,i=t.exec(e),i&&(a=n(i),s.r=a[0],s.g=a[1],s.b=a[2]);else s.r=arguments[0],s.g=arguments[1],s.b=arguments[2];s.r=s.normalizeByte(s.r),s.g=s.normalizeByte(s.g),s.b=s.normalizeByte(s.b)};o.prototype={toHex:function(){var e=this,t=e.padDigit,n=e.r.toString(16),i=e.g.toString(16),r=e.b.toString(16);return"#"+t(n)+t(i)+t(r)},resolveColor:function(e){return e=e||"black","#"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase(),e=o.namedColors[e]||e},normalizeByte:function(e){return 0>e||isNaN(e)?0:e>255?255:e},padDigit:function(e){return 1===e.length?"0"+e:e},brightness:function(e){var t=this,n=Math.round;return t.r=n(t.normalizeByte(t.r*e)),t.g=n(t.normalizeByte(t.g*e)),t.b=n(t.normalizeByte(t.b*e)),t},percBrightness:function(){var e=this;return Math.sqrt(.241*e.r*e.r+.691*e.g*e.g+.068*e.b*e.b)}},o.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[n(e[1],10),n(e[2],10),n(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[n(e[1],16),n(e[2],16),n(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[n(e[1]+e[1],16),n(e[2]+e[2],16),n(e[3]+e[3],16)]}}],o.namedColors={aqua:"00ffff",azure:"f0ffff",beige:"f5f5dc",black:"000000",blue:"0000ff",brown:"a52a2a",coral:"ff7f50",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgray:"a9a9a9",darkgreen:"006400",darkorange:"ff8c00",darkred:"8b0000",dimgray:"696969",fuchsia:"ff00ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lightblue:"add8e6",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumblue:"0000cd",navy:"000080",olive:"808000",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",pink:"ffc0cb",plum:"dda0dd",purple:"800080",red:"ff0000",royalblue:"4169e1",salmon:"fa8072",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",steelblue:"4682b4",tan:"d2b48c",teal:"008080",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};var a=["transparent"];for(var s in o.namedColors)o.namedColors.hasOwnProperty(s)&&a.push(s);a=new RegExp("^("+a.join("|")+")(\\W|$)","i");var l=kendo.Class.extend({toHSV:function(){return this},toRGB:function(){return this},toHex:function(){return this.toBytes().toHex()},toBytes:function(){return this},toCss:function(){return"#"+this.toHex()},toCssRgba:function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+t((+this.a).toFixed(3))+")"},toDisplay:function(){return kendo.support.browser.msie&&kendo.support.browser.version<9?this.toCss():this.toCssRgba()},equals:function(e){return e===this||null!==e&&this.toCssRgba()==i(e).toCssRgba()},diff:function(e){if(null==e)return 0/0;var t=this.toBytes();return e=e.toBytes(),Math.sqrt(Math.pow(.3*(t.r-e.r),2)+Math.pow(.59*(t.g-e.g),2)+Math.pow(.11*(t.b-e.b),2))},clone:function(){var e=this.toBytes();return e===this&&(e=new c(e.r,e.g,e.b,e.a)),e}}),u=l.extend({init:function(e,t,n,i){this.r=e,this.g=t,this.b=n,this.a=i},toHSV:function(){var e,t,n,i,r,o,a=this.r,s=this.g,l=this.b;return e=Math.min(a,s,l),t=Math.max(a,s,l),o=t,n=t-e,0===n?new d(0,0,o,this.a):(0!==t?(r=n/t,i=a==t?(s-l)/n:s==t?2+(l-a)/n:4+(a-s)/n,i*=60,0>i&&(i+=360)):(r=0,i=-1),new d(i,r,o,this.a))},toBytes:function(){return new c(255*this.r,255*this.g,255*this.b,this.a)}}),c=u.extend({init:function(e,t,n,i){this.r=Math.round(e),this.g=Math.round(t),this.b=Math.round(n),this.a=i},toRGB:function(){return new u(this.r/255,this.g/255,this.b/255,this.a)},toHSV:function(){return this.toRGB().toHSV()},toHex:function(){return r(this.r,2)+r(this.g,2)+r(this.b,2)},toBytes:function(){return this}}),d=l.extend({init:function(e,t,n,i){this.h=e,this.s=t,this.v=n,this.a=i},toRGB:function(){var e,t,n,i,r,o,a,s,l=this.h,c=this.s,d=this.v;if(0===c)t=n=i=d;else switch(l/=60,e=Math.floor(l),r=l-e,o=d*(1-c),a=d*(1-c*r),s=d*(1-c*(1-r)),e){case 0:t=d,n=s,i=o;break;case 1:t=a,n=d,i=o;break;case 2:t=o,n=d,i=s;break;case 3:t=o,n=a,i=d;break;case 4:t=s,n=o,i=d;break;default:t=d,n=o,i=a}return new u(t,n,i,this.a)},toBytes:function(){return this.toRGB().toBytes()}});o.fromBytes=function(e,t,n,i){return new c(e,t,n,null!=i?i:1)},o.fromRGB=function(e,t,n,i){return new u(e,t,n,null!=i?i:1)},o.fromHSV=function(e,t,n,i){return new d(e,t,n,null!=i?i:1)},kendo.Color=o,kendo.parseColor=i}(window.kendo.jQuery,parseFloat,parseInt),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core","./kendo.data.odata","./kendo.data.xml"],e)}(function(){return function(e,t){function n(e,t,n,i){return function(r){var o,a={};for(o in r)a[o]=r[o];a.field=i?n+"."+r.field:n,t==re&&e._notifyChange&&e._notifyChange(a),e.trigger(t,a)}}function i(t,n){if(t===n)return!0;var r,o=e.type(t),a=e.type(n);if(o!==a)return!1;if("date"===o)return t.getTime()===n.getTime();if("object"!==o&&"array"!==o)return!1;for(r in t)if(!i(t[r],n[r]))return!1;return!0}function r(e,t){var n,i;for(i in e){if(n=e[i],N(n)&&n.field&&n.field===t)return n;if(n===t)return n}return null}function o(e){this.data=e||[]}function a(e,n){if(e){var i=typeof e===Z?{field:e,dir:n}:e,r=U(i)?i:i!==t?[i]:[];return q(r,function(e){return!!e.dir})}}function s(e){var t,n,i,r,o=e.filters;if(o)for(t=0,n=o.length;n>t;t++)i=o[t],r=i.operator,r&&typeof r===Z&&(i.operator=Pe[r.toLowerCase()]||r),s(i)}function l(e){return e&&!W(e)?((U(e)||!e.filters)&&(e={logic:"and",filters:U(e)?e:[e]}),s(e),e):void 0}function u(e){return U(e)?e:[e]}function c(e,n){var i=typeof e===Z?{field:e,dir:n}:e,r=U(i)?i:i!==t?[i]:[];return L(r,function(e){return{field:e.field,dir:e.dir||"asc",aggregates:e.aggregates}})}function d(e,t){return e&&e.getTime&&t&&t.getTime?e.getTime()===t.getTime():e===t}function p(e,t,n,i,r,o){t=t||[];var a,s,l,u=t.length;for(a=0;u>a;a++){s=t[a],l=s.aggregate;var c=s.field;e[c]=e[c]||{},o[c]=o[c]||{},o[c][l]=o[c][l]||{},e[c][l]=Le[l.toLowerCase()](e[c][l],n,Y.accessor(c),i,r,o[c][l])}}function f(e){return"number"==typeof e&&!isNaN(e)}function h(e){return e&&e.getTime}function m(e){var t,n=e.length,i=new Array(n);for(t=0;n>t;t++)i[t]=e[t].toJSON();return i}function g(e,t,n,i,r){var o,a,s,l,u;for(l=0,u=e.length;u>l;l++){o=e[l];for(a in t)s=r[a],s&&s!==a&&(o[s]=t[a](o),delete o[a])}}function v(e,t,n,i,r){var o,a,s,l,u;for(l=0,u=e.length;u>l;l++){o=e[l];for(a in t)o[a]=n._parse(a,t[a](o)),s=r[a],s&&s!==a&&delete o[s]}}function _(e,t,n,i,r){var o,a,s,l;for(a=0,l=e.length;l>a;a++)o=e[a],s=i[o.field],s&&s!=o.field&&(o.field=s),o.value=n._parse(o.field,o.value),o.hasSubgroups?_(o.items,t,n,i,r):v(o.items,t,n,i,r)}function w(e,t,n,i,r,o){return function(a){return a=e(a),a&&!W(i)&&("[object Array]"===xe.call(a)||a instanceof Ie||(a=[a]),n(a,i,new t,r,o)),a||[]}}function b(e,t,n,i){for(var r,o,a=0;t.length&&i;){r=t[a],o=r.items;var s=o.length;if(e&&e.field===r.field&&e.value===r.value?(e.hasSubgroups&&e.items.length?b(e.items[e.items.length-1],r.items,n,i):(o=o.slice(n,n+i),e.items=e.items.concat(o)),t.splice(a--,1)):r.hasSubgroups&&o.length?(b(r,o,n,i),r.items.length||t.splice(a--,1)):(o=o.slice(n,n+i),r.items=o,r.items.length||t.splice(a--,1)),0===o.length?n-=s:(n=0,i-=o.length),++a>=t.length)break}a<t.length&&t.splice(a,t.length-a)}function y(e){var t,n,i,r,o=[];for(t=0,n=e.length;n>t;t++){var a=e.at(t);if(a.hasSubgroups)o=o.concat(y(a.items));else for(i=a.items,r=0;r<i.length;r++)o.push(i.at(r))}return o}function k(e,t){var n,i,r;if(t)for(n=0,i=e.length;i>n;n++)r=e.at(n),r.hasSubgroups?k(r.items,t):r.items=new Fe(r.items,t)}function x(e,t){for(var n=0,i=e.length;i>n;n++)if(e[n].hasSubgroups){if(x(e[n].items,t))return!0}else if(t(e[n].items,e[n]))return!0}function C(e,t,n,i){for(var r=0;r<e.length&&e[r].data!==t&&!T(e[r].data,n,i);r++);}function T(e,t,n){for(var i=0,r=e.length;r>i;i++){if(e[i]&&e[i].hasSubgroups)return T(e[i].items,t,n);if(e[i]===t||e[i]===n)return e[i]=n,!0}}function S(e,n,i,r,o){for(var a=0,s=e.length;s>a;a++){var l=e[a];if(l&&!(l instanceof r))if(l.hasSubgroups===t||o){for(var u=0;u<n.length;u++)if(n[u]===l){e[a]=n.at(u),C(i,n,l,e[a]);break}}else S(l.items,n,i,r,o)}}function D(e,t){var n,i;for(n=0,i=e.length;i>n;n++){var r=e.at(n);if(r.uid==t.uid)return e.splice(n,1),r}}function I(e,t){return t?M(e,function(e){return e.uid&&e.uid==t.uid||e[t.idField]===t.id&&t.id!==t._defaultId}):-1}function F(e,t){return t?M(e,function(e){return e.uid==t.uid}):-1}function M(e,t){var n,i;for(n=0,i=e.length;i>n;n++)if(t(e[n]))return n;return-1}function E(e,t){if(e&&!W(e)){var n,i=e[t];return n=N(i)?i.from||i.field||t:e[t]||t,K(n)?t:n}return t}function O(e,t){var n,i,r={};for(var o in e)"filters"!==o&&(r[o]=e[o]);if(e.filters)for(r.filters=[],n=0,i=e.filters.length;i>n;n++)r.filters[n]=O(e.filters[n],t);else r.field=E(t.fields,r.field);return r}function A(e,t){var n,i,r,o,a=[];for(n=0,i=e.length;i>n;n++){r={},o=e[n];for(var s in o)r[s]=o[s];r.field=E(t.fields,r.field),r.aggregates&&U(r.aggregates)&&(r.aggregates=A(r.aggregates,t)),a.push(r)}return a}function H(t,n){t=e(t)[0];var i,r,o,a,s,l,u=t.options,c=n[0],d=n[1],p=[];for(i=0,r=u.length;r>i;i++)s={},a=u[i],o=a.parentNode,o===t&&(o=null),a.disabled||o&&o.disabled||(o&&(s.optgroup=o.label),s[c.field]=a.text,l=a.attributes.value,l=l&&l.specified?a.value:a.text,s[d.field]=l,p.push(s));return p}function z(t,n){var i,r,o,a,s,l,u,c=e(t)[0].tBodies[0],d=c?c.rows:[],p=n.length,f=[];for(i=0,r=d.length;r>i;i++){for(s={},u=!0,a=d[i].cells,o=0;p>o;o++)l=a[o],"th"!==l.nodeName.toLowerCase()&&(u=!1,s[n[o].field]=l.innerHTML);u||f.push(s)}return f}function V(e){return function(){var t=this._data,n=Ue.fn[e].apply(this,ye.call(arguments));return this._data!=t&&this._attachBubbleHandlers(),n}}function P(t,n){function i(e,t){return e.filter(t).add(e.find(t))}var r,o,a,s,l,u,c,d,p=e(t).children(),f=[],h=n[0].field,m=n[1]&&n[1].field,g=n[2]&&n[2].field,v=n[3]&&n[3].field;for(r=0,o=p.length;o>r;r++)a={_loaded:!0},s=p.eq(r),u=s[0].firstChild,d=s.children(),t=d.filter("ul"),d=d.filter(":not(ul)"),l=s.attr("data-id"),l&&(a.id=l),u&&(a[h]=3==u.nodeType?u.nodeValue:d.text()),m&&(a[m]=i(d,"a").attr("href")),v&&(a[v]=i(d,"img").attr("src")),g&&(c=i(d,".k-sprite").prop("className"),a[g]=c&&e.trim(c.replace("k-sprite",""))),t.length&&(a.items=P(t.eq(0),n)),"true"==s.attr("data-hasChildren")&&(a.hasChildren=!0),f.push(a);return f}var L,R=e.extend,B=e.proxy,N=e.isPlainObject,W=e.isEmptyObject,U=e.isArray,q=e.grep,$=e.ajax,j=e.each,G=e.noop,Y=window.kendo,K=Y.isFunction,Q=Y.Observable,J=Y.Class,Z="string",X="function",ee="create",te="read",ne="update",ie="destroy",re="change",oe="sync",ae="get",se="error",le="requestStart",ue="progress",ce="requestEnd",de=[ee,te,ne,ie],pe=function(e){return e},fe=Y.getter,he=Y.stringify,me=Math,ge=[].push,ve=[].join,_e=[].pop,we=[].splice,be=[].shift,ye=[].slice,ke=[].unshift,xe={}.toString,Ce=Y.support.stableSort,Te=/^\/Date\((.*?)\)\/$/,Se=/(\r+|\n+)/g,De=/(?=['\\])/g,Ie=Q.extend({init:function(e,t){var n=this;n.type=t||Me,Q.fn.init.call(n),n.length=e.length,n.wrapAll(e,n)},at:function(e){return this[e]},toJSON:function(){var e,t,n=this.length,i=new Array(n);for(e=0;n>e;e++)t=this[e],t instanceof Me&&(t=t.toJSON()),i[e]=t;return i},parent:G,wrapAll:function(e,t){var n,i,r=this,o=function(){return r};for(t=t||[],n=0,i=e.length;i>n;n++)t[n]=r.wrap(e[n],o);return t},wrap:function(e,t){var n,i=this;return null!==e&&"[object Object]"===xe.call(e)&&(n=e instanceof i.type||e instanceof Ae,n||(e=e instanceof Me?e.toJSON():e,e=new i.type(e)),e.parent=t,e.bind(re,function(e){i.trigger(re,{field:e.field,node:e.node,index:e.index,items:e.items||[this],action:e.node?e.action||"itemloaded":"itemchange"})})),e},push:function(){var e,t=this.length,n=this.wrapAll(arguments);return e=ge.apply(this,n),this.trigger(re,{action:"add",index:t,items:n}),e},slice:ye,sort:[].sort,join:ve,pop:function(){var e=this.length,t=_e.apply(this);return e&&this.trigger(re,{action:"remove",index:e-1,items:[t]}),t},splice:function(e,t,n){var i,r,o,a=this.wrapAll(ye.call(arguments,2));if(i=we.apply(this,[e,t].concat(a)),i.length)for(this.trigger(re,{action:"remove",index:e,items:i}),r=0,o=i.length;o>r;r++)i[r]&&i[r].children&&i[r].unbind(re);return n&&this.trigger(re,{action:"add",index:e,items:a}),i},shift:function(){var e=this.length,t=be.apply(this);return e&&this.trigger(re,{action:"remove",index:0,items:[t]}),t},unshift:function(){var e,t=this.wrapAll(arguments);return e=ke.apply(this,t),this.trigger(re,{action:"add",index:0,items:t}),e},indexOf:function(e){var t,n,i=this;for(t=0,n=i.length;n>t;t++)if(i[t]===e)return t;return-1},forEach:function(e){for(var t=0,n=this.length;n>t;t++)e(this[t],t,this)},map:function(e){for(var t=0,n=[],i=this.length;i>t;t++)n[t]=e(this[t],t,this);return n},reduce:function(e,t){var n,i=0,r=this.length;for(2==arguments.length?n=arguments[1]:r>i&&(n=this[i++]);r>i;i++)n=e(n,this[i],i,this);return n},reduceRight:function(e,t){var n,i=this.length-1;for(2==arguments.length?n=arguments[1]:i>0&&(n=this[i--]);i>=0;i--)n=e(n,this[i],i,this);return n},filter:function(e){for(var t,n=0,i=[],r=this.length;r>n;n++)t=this[n],e(t,n,this)&&(i[i.length]=t);return i},find:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],e(t,n,this))return t},every:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],!e(t,n,this))return!1;return!0},some:function(e){for(var t,n=0,i=this.length;i>n;n++)if(t=this[n],e(t,n,this))return!0;return!1},remove:function(e){var t=this.indexOf(e);-1!==t&&this.splice(t,1)},empty:function(){this.splice(0,this.length)}}),Fe=Ie.extend({init:function(e,t){Q.fn.init.call(this),this.type=t||Me;for(var n=0;n<e.length;n++)this[n]=e[n];this.length=n,this._parent=B(function(){return this},this)},at:function(e){var t=this[e];return t instanceof this.type?t.parent=this._parent:t=this[e]=this.wrap(t,this._parent),t}}),Me=Q.extend({init:function(e){var t,n,i=this,r=function(){return i};Q.fn.init.call(this);for(n in e)t=e[n],"object"==typeof t&&t&&!t.getTime&&"_"!=n.charAt(0)&&(t=i.wrap(t,n,r)),i[n]=t;i.uid=Y.guid()},shouldSerialize:function(e){return this.hasOwnProperty(e)&&"_events"!==e&&typeof this[e]!==X&&"uid"!==e},forEach:function(e){for(var t in this)this.shouldSerialize(t)&&e(this[t],t)},toJSON:function(){var e,t,n={};for(t in this)this.shouldSerialize(t)&&(e=this[t],(e instanceof Me||e instanceof Ie)&&(e=e.toJSON()),
  n[t]=e);return n},get:function(e){var t,n=this;return n.trigger(ae,{field:e}),t="this"===e?n:Y.getter(e,!0)(n)},_set:function(e,t){var n=this,i=e.indexOf(".")>=0;if(i)for(var r=e.split("."),o="";r.length>1;){o+=r.shift();var a=Y.getter(o,!0)(n);if(a instanceof Me)return a.set(r.join("."),t),i;o+="."}return Y.setter(e)(n,t),i},set:function(e,t){var n=this,i=e.indexOf(".")>=0,r=Y.getter(e,!0)(n);r!==t&&(n.trigger("set",{field:e,value:t})||(i||(t=n.wrap(t,e,function(){return n})),(!n._set(e,t)||e.indexOf("(")>=0||e.indexOf("[")>=0)&&n.trigger(re,{field:e})))},parent:G,wrap:function(e,t,i){var r=this,o=xe.call(e);if(null!=e&&("[object Object]"===o||"[object Array]"===o)){var a=e instanceof Ie,s=e instanceof Ue;"[object Object]"!==o||s||a?("[object Array]"===o||a||s)&&(a||s||(e=new Ie(e)),e.parent()!=i()&&e.bind(re,n(r,re,t,!1))):(e instanceof Me||(e=new Me(e)),e.parent()!=i()&&(e.bind(ae,n(r,ae,t,!0)),e.bind(re,n(r,re,t,!0)))),e.parent=i}return e}}),Ee={number:function(e){return Y.parseFloat(e)},date:function(e){return Y.parseDate(e)},"boolean":function(e){return typeof e===Z?"true"===e.toLowerCase():null!=e?!!e:e},string:function(e){return null!=e?e+"":e},"default":function(e){return e}},Oe={string:"",number:0,date:new Date,"boolean":!1,"default":""},Ae=Me.extend({init:function(n){var i=this;if((!n||e.isEmptyObject(n))&&(n=e.extend({},i.defaults,n),i._initializers))for(var r=0;r<i._initializers.length;r++){var o=i._initializers[r];n[o]=i.defaults[o]()}Me.fn.init.call(i,n),i.dirty=!1,i.idField&&(i.id=i.get(i.idField),i.id===t&&(i.id=i._defaultId))},shouldSerialize:function(e){return Me.fn.shouldSerialize.call(this,e)&&"uid"!==e&&!("id"!==this.idField&&"id"===e)&&"dirty"!==e&&"_accessors"!==e},_parse:function(e,t){var n,i=this,o=e,a=i.fields||{};return e=a[e],e||(e=r(a,o)),e&&(n=e.parse,!n&&e.type&&(n=Ee[e.type.toLowerCase()])),n?n(t):t},_notifyChange:function(e){var t=e.action;("add"==t||"remove"==t)&&(this.dirty=!0)},editable:function(e){return e=(this.fields||{})[e],e?e.editable!==!1:!0},set:function(e,t,n){var r=this;r.editable(e)&&(t=r._parse(e,t),i(t,r.get(e))||(r.dirty=!0,Me.fn.set.call(r,e,t,n)))},accept:function(e){var t,n=this,i=function(){return n};for(t in e){var r=e[t];"_"!=t.charAt(0)&&(r=n.wrap(e[t],t,i)),n._set(t,r)}n.idField&&(n.id=n.get(n.idField)),n.dirty=!1},isNew:function(){return this.id===this._defaultId}});Ae.define=function(e,n){n===t&&(n=e,e=Ae);var i,r,o,a,s,l,u,c,d=R({defaults:{}},n),p={},f=d.id,h=[];if(f&&(d.idField=f),d.id&&delete d.id,f&&(d.defaults[f]=d._defaultId=""),"[object Array]"===xe.call(d.fields)){for(l=0,u=d.fields.length;u>l;l++)o=d.fields[l],typeof o===Z?p[o]={}:o.field&&(p[o.field]=o);d.fields=p}for(r in d.fields)o=d.fields[r],a=o.type||"default",s=null,c=r,r=typeof o.field===Z?o.field:r,o.nullable||(s=d.defaults[c!==r?c:r]=o.defaultValue!==t?o.defaultValue:Oe[a.toLowerCase()],"function"==typeof s&&h.push(r)),n.id===r&&(d._defaultId=s),d.defaults[c!==r?c:r]=s,o.parse=o.parse||Ee[a];return h.length>0&&(d._initializers=h),i=e.extend(d),i.define=function(e){return Ae.define(i,e)},d.fields&&(i.fields=d.fields,i.idField=d.idField),i};var He={selector:function(e){return K(e)?e:fe(e)},compare:function(e){var t=this.selector(e);return function(e,n){return e=t(e),n=t(n),null==e&&null==n?0:null==e?-1:null==n?1:e.localeCompare?e.localeCompare(n):e>n?1:n>e?-1:0}},create:function(e){var t=e.compare||this.compare(e.field);return"desc"==e.dir?function(e,n){return t(n,e,!0)}:t},combine:function(e){return function(t,n){var i,r,o=e[0](t,n);for(i=1,r=e.length;r>i;i++)o=o||e[i](t,n);return o}}},ze=R({},He,{asc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),r=t(n);return i&&i.getTime&&r&&r.getTime&&(i=i.getTime(),r=r.getTime()),i===r?e.__position-n.__position:null==i?-1:null==r?1:i.localeCompare?i.localeCompare(r):i>r?1:-1}},desc:function(e){var t=this.selector(e);return function(e,n){var i=t(e),r=t(n);return i&&i.getTime&&r&&r.getTime&&(i=i.getTime(),r=r.getTime()),i===r?e.__position-n.__position:null==i?1:null==r?-1:r.localeCompare?r.localeCompare(i):r>i?1:-1}},create:function(e){return this[e.dir](e.field)}});L=function(e,t){var n,i=e.length,r=new Array(i);for(n=0;i>n;n++)r[n]=t(e[n],n,e);return r};var Ve=function(){function e(e){return e.replace(De,"\\").replace(Se,"")}function t(t,n,i,r){var o;return null!=i&&(typeof i===Z&&(i=e(i),o=Te.exec(i),o?i=new Date(+o[1]):r?(i="'"+i.toLowerCase()+"'",n="("+n+" || '').toLowerCase()"):i="'"+i+"'"),i.getTime&&(n="("+n+"?"+n+".getTime():"+n+")",i=i.getTime())),n+" "+t+" "+i}return{quote:function(t){return t&&t.getTime?"new Date("+t.getTime()+")":"string"==typeof t?"'"+e(t)+"'":""+t},eq:function(e,n,i){return t("==",e,n,i)},neq:function(e,n,i){return t("!=",e,n,i)},gt:function(e,n,i){return t(">",e,n,i)},gte:function(e,n,i){return t(">=",e,n,i)},lt:function(e,n,i){return t("<",e,n,i)},lte:function(e,n,i){return t("<=",e,n,i)},startswith:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".lastIndexOf('"+n+"', 0) == 0"},endswith:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"', "+t+".length - "+(n||"").length+") >= 0"},contains:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"') >= 0"},doesnotcontain:function(t,n,i){return i&&(t="("+t+" || '').toLowerCase()",n&&(n=n.toLowerCase())),n&&(n=e(n)),t+".indexOf('"+n+"') == -1"}}}();o.filterExpr=function(e){var n,i,r,a,s,l,u=[],c={and:" && ",or:" || "},d=[],p=[],f=e.filters;for(n=0,i=f.length;i>n;n++)r=f[n],s=r.field,l=r.operator,r.filters?(a=o.filterExpr(r),r=a.expression.replace(/__o\[(\d+)\]/g,function(e,t){return t=+t,"__o["+(p.length+t)+"]"}).replace(/__f\[(\d+)\]/g,function(e,t){return t=+t,"__f["+(d.length+t)+"]"}),p.push.apply(p,a.operators),d.push.apply(d,a.fields)):(typeof s===X?(a="__f["+d.length+"](d)",d.push(s)):a=Y.expr(s),typeof l===X?(r="__o["+p.length+"]("+a+", "+Ve.quote(r.value)+")",p.push(l)):r=Ve[(l||"eq").toLowerCase()](a,r.value,r.ignoreCase!==t?r.ignoreCase:!0)),u.push(r);return{expression:"("+u.join(c[e.logic])+")",fields:d,operators:p}};var Pe={"==":"eq",equals:"eq",isequalto:"eq",equalto:"eq",equal:"eq","!=":"neq",ne:"neq",notequals:"neq",isnotequalto:"neq",notequalto:"neq",notequal:"neq","<":"lt",islessthan:"lt",lessthan:"lt",less:"lt","<=":"lte",le:"lte",islessthanorequalto:"lte",lessthanequal:"lte",">":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte",notsubstringof:"doesnotcontain"};o.normalizeFilter=l,o.prototype={toArray:function(){return this.data},range:function(e,t){return new o(this.data.slice(e,e+t))},skip:function(e){return new o(this.data.slice(e))},take:function(e){return new o(this.data.slice(0,e))},select:function(e){return new o(L(this.data,e))},order:function(e,t){var n={dir:t};return e&&(e.compare?n.compare=e.compare:n.field=e),new o(this.data.slice(0).sort(He.create(n)))},orderBy:function(e){return this.order(e,"asc")},orderByDescending:function(e){return this.order(e,"desc")},sort:function(e,t,n){var i,r,o=a(e,t),s=[];if(n=n||He,o.length){for(i=0,r=o.length;r>i;i++)s.push(n.create(o[i]));return this.orderBy({compare:n.combine(s)})}return this},filter:function(e){var t,n,i,r,a,s,u,c,d=this.data,p=[];if(e=l(e),!e||0===e.filters.length)return this;for(r=o.filterExpr(e),s=r.fields,u=r.operators,a=c=new Function("d, __f, __o","return "+r.expression),(s.length||u.length)&&(c=function(e){return a(e,s,u)}),t=0,i=d.length;i>t;t++)n=d[t],c(n)&&p.push(n);return new o(p)},group:function(e,t){e=c(e||[]),t=t||this.data;var n,i=this,r=new o(i.data);return e.length>0&&(n=e[0],r=r.groupBy(n).select(function(i){var r=new o(t).filter([{field:i.field,operator:"eq",value:i.value,ignoreCase:!1}]);return{field:i.field,value:i.value,items:e.length>1?new o(i.items).group(e.slice(1),r.toArray()).toArray():i.items,hasSubgroups:e.length>1,aggregates:r.aggregate(n.aggregates)}})),r},groupBy:function(e){if(W(e)||!this.data.length)return new o([]);var t,n,i,r,a=e.field,s=this._sortForGrouping(a,e.dir||"asc"),l=Y.accessor(a),u=l.get(s[0],a),c={field:a,value:u,items:[]},p=[c];for(i=0,r=s.length;r>i;i++)t=s[i],n=l.get(t,a),d(u,n)||(u=n,c={field:a,value:u,items:[]},p.push(c)),c.items.push(t);return new o(p)},_sortForGrouping:function(e,t){var n,i,r=this.data;if(!Ce){for(n=0,i=r.length;i>n;n++)r[n].__position=n;for(r=new o(r).sort(e,t,ze).toArray(),n=0,i=r.length;i>n;n++)delete r[n].__position;return r}return this.sort(e,t).toArray()},aggregate:function(e){var t,n,i={},r={};if(e&&e.length)for(t=0,n=this.data.length;n>t;t++)p(i,e,this.data[t],t,n,r);return i}};var Le={sum:function(e,t,n){var i=n.get(t);return f(e)?f(i)&&(e+=i):e=i,e},count:function(e){return(e||0)+1},average:function(e,n,i,r,o,a){var s=i.get(n);return a.count===t&&(a.count=0),f(e)?f(s)&&(e+=s):e=s,f(s)&&a.count++,r==o-1&&f(e)&&(e/=a.count),e},max:function(e,t,n){var i=n.get(t);return f(e)||h(e)||(e=i),i>e&&(f(i)||h(i))&&(e=i),e},min:function(e,t,n){var i=n.get(t);return f(e)||h(e)||(e=i),e>i&&(f(i)||h(i))&&(e=i),e}};o.process=function(e,n){n=n||{};var i,r=new o(e),s=n.group,l=c(s||[]).concat(a(n.sort||[])),u=n.filterCallback,d=n.filter,p=n.skip,f=n.take;return d&&(r=r.filter(d),u&&(r=u(r)),i=r.toArray().length),l&&(r=r.sort(l),s&&(e=r.toArray())),p!==t&&f!==t&&(r=r.range(p,f)),s&&(r=r.group(s,e)),{total:i,data:r.toArray()}};var Re=J.extend({init:function(e){this.data=e.data},read:function(e){e.success(this.data)},update:function(e){e.success(e.data)},create:function(e){e.success(e.data)},destroy:function(e){e.success(e.data)}}),Be=J.extend({init:function(e){var t,n=this;e=n.options=R({},n.options,e),j(de,function(t,n){typeof e[n]===Z&&(e[n]={url:e[n]})}),n.cache=e.cache?Ne.create(e.cache):{find:G,add:G},t=e.parameterMap,K(e.push)&&(n.push=e.push),n.push||(n.push=pe),n.parameterMap=K(t)?t:function(e){var n={};return j(e,function(e,i){e in t&&(e=t[e],N(e)&&(i=e.value(i),e=e.key)),n[e]=i}),n}},options:{parameterMap:pe},create:function(e){return $(this.setup(e,ee))},read:function(n){var i,r,o,a=this,s=a.cache;n=a.setup(n,te),i=n.success||G,r=n.error||G,o=s.find(n.data),o!==t?i(o):(n.success=function(e){s.add(n.data,e),i(e)},e.ajax(n))},update:function(e){return $(this.setup(e,ne))},destroy:function(e){return $(this.setup(e,ie))},setup:function(e,t){e=e||{};var n,i=this,r=i.options[t],o=K(r.data)?r.data(e.data):r.data;return e=R(!0,{},r,e),n=R(!0,{},o,e.data),e.data=i.parameterMap(n,t),K(e.url)&&(e.url=e.url(n)),e}}),Ne=J.extend({init:function(){this._store={}},add:function(e,n){e!==t&&(this._store[he(e)]=n)},find:function(e){return this._store[he(e)]},clear:function(){this._store={}},remove:function(e){delete this._store[he(e)]}});Ne.create=function(e){var t={inmemory:function(){return new Ne}};return N(e)&&K(e.find)?e:e===!0?new Ne:t[e]()};var We=J.extend({init:function(e){var t,n,i,r,o=this;e=e||{};for(t in e)n=e[t],o[t]=typeof n===Z?fe(n):n;r=e.modelBase||Ae,N(o.model)&&(o.model=i=r.define(o.model));var a=B(o.data,o);if(o._dataAccessFunction=a,o.model){var s,l=B(o.groups,o),u=B(o.serialize,o),c={},d={},p={},f={},h=!1;i=o.model,i.fields&&(j(i.fields,function(e,t){var n;s=e,N(t)&&t.field?s=t.field:typeof t===Z&&(s=t),N(t)&&t.from&&(n=t.from),h=h||n&&n!==e||s!==e,d[e]=fe(n||s),p[e]=fe(e),c[n||s]=e,f[e]=n||s}),!e.serialize&&h&&(o.serialize=w(u,i,g,p,c,f))),o._dataAccessFunction=a,o.data=w(a,i,v,d,c,f),o.groups=w(l,i,_,d,c,f)}},errors:function(e){return e?e.errors:null},parse:pe,data:pe,total:function(e){return e.length},groups:pe,aggregates:function(){return{}},serialize:function(e){return e}}),Ue=Q.extend({init:function(e){var n,i,r=this;if(e&&(i=e.data),e=r.options=R({},r.options,e),r._map={},r._prefetch={},r._data=[],r._pristineData=[],r._ranges=[],r._view=[],r._pristineTotal=0,r._destroyed=[],r._pageSize=e.pageSize,r._page=e.page||(e.pageSize?1:t),r._sort=a(e.sort),r._filter=l(e.filter),r._group=c(e.group),r._aggregate=e.aggregate,r._total=e.total,r._shouldDetachObservableParents=!0,Q.fn.init.call(r),r.transport=qe.create(e,i,r),K(r.transport.push)&&r.transport.push({pushCreate:B(r._pushCreate,r),pushUpdate:B(r._pushUpdate,r),pushDestroy:B(r._pushDestroy,r)}),null!=e.offlineStorage)if("string"==typeof e.offlineStorage){var o=e.offlineStorage;r._storage={getItem:function(){return JSON.parse(localStorage.getItem(o))},setItem:function(e){localStorage.setItem(o,he(r.reader.serialize(e)))}}}else r._storage=e.offlineStorage;r.reader=new Y.data.readers[e.schema.type||"json"](e.schema),n=r.reader.model||{},r._detachObservableParents(),r._data=r._observe(r._data),r._online=!0,r.bind(["push",se,re,le,oe,ce,ue],e)},options:{data:null,schema:{modelBase:Ae},offlineStorage:null,serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,batch:!1},clone:function(){return this},online:function(n){return n!==t?this._online!=n&&(this._online=n,n)?this.sync():e.Deferred().resolve().promise():this._online},offlineData:function(e){return null==this.options.offlineStorage?null:e!==t?this._storage.setItem(e):this._storage.getItem()||[]},_isServerGrouped:function(){var e=this.group()||[];return this.options.serverGrouping&&e.length},_pushCreate:function(e){this._push(e,"pushCreate")},_pushUpdate:function(e){this._push(e,"pushUpdate")},_pushDestroy:function(e){this._push(e,"pushDestroy")},_push:function(e,t){var n=this._readData(e);n||(n=e),this[t](n)},_flatData:function(e,t){if(e){if(this._isServerGrouped())return y(e);if(!t)for(var n=0;n<e.length;n++)e.at(n)}return e},parent:G,get:function(e){var t,n,i=this._flatData(this._data);for(t=0,n=i.length;n>t;t++)if(i[t].id==e)return i[t]},getByUid:function(e){var t,n,i=this._flatData(this._data);if(i)for(t=0,n=i.length;n>t;t++)if(i[t].uid==e)return i[t]},indexOf:function(e){return F(this._data,e)},at:function(e){return this._data.at(e)},data:function(e){var n=this;if(e===t){if(n._data)for(var i=0;i<n._data.length;i++)n._data.at(i);return n._data}n._detachObservableParents(),n._data=this._observe(e),n._pristineData=e.slice(0),n._storeData(),n._ranges=[],n.trigger("reset"),n._addRange(n._data),n._total=n._data.length,n._pristineTotal=n._total,n._process(n._data)},view:function(e){return e===t?this._view:void(this._view=this._observeView(e))},_observeView:function(e){var t=this;S(e,t._data,t._ranges,t.reader.model||Me,t._isServerGrouped());var n=new Fe(e,t.reader.model);return n.parent=function(){return t.parent()},n},flatView:function(){var e=this.group()||[];return e.length?y(this._view):this._view},add:function(e){return this.insert(this._data.length,e)},_createNewModel:function(e){return this.reader.model?new this.reader.model(e):e instanceof Me?e:new Me(e)},insert:function(e,t){return t||(t=e,e=0),t instanceof Ae||(t=this._createNewModel(t)),this._isServerGrouped()?this._data.splice(e,0,this._wrapInEmptyGroup(t)):this._data.splice(e,0,t),t},pushCreate:function(e){U(e)||(e=[e]);var t=[],n=this.options.autoSync;this.options.autoSync=!1;try{for(var i=0;i<e.length;i++){var r=e[i],o=this.add(r);t.push(o);var a=o.toJSON();this._isServerGrouped()&&(a=this._wrapInEmptyGroup(a)),this._pristineData.push(a)}}finally{this.options.autoSync=n}t.length&&this.trigger("push",{type:"create",items:t})},pushUpdate:function(e){U(e)||(e=[e]);for(var t=[],n=0;n<e.length;n++){var i=e[n],r=this._createNewModel(i),o=this.get(r.id);o?(t.push(o),o.accept(i),o.trigger(re),this._updatePristineForModel(o,i)):this.pushCreate(i)}t.length&&this.trigger("push",{type:"update",items:t})},pushDestroy:function(e){var t=this._removeItems(e);t.length&&this.trigger("push",{type:"destroy",items:t})},_removeItems:function(e){U(e)||(e=[e]);var t=[],n=this.options.autoSync;this.options.autoSync=!1;try{for(var i=0;i<e.length;i++){var r=e[i],o=this._createNewModel(r),a=!1;this._eachItem(this._data,function(e){for(var n=0;n<e.length;n++){var i=e.at(n);if(i.id===o.id){t.push(i),e.splice(n,1),a=!0;break}}}),a&&(this._removePristineForModel(o),this._destroyed.pop())}}finally{this.options.autoSync=n}return t},remove:function(e){var t,n=this,i=n._isServerGrouped();return this._eachItem(n._data,function(r){return t=D(r,e),t&&i?(t.isNew&&t.isNew()||n._destroyed.push(t),!0):void 0}),this._removeModelFromRanges(e),this._updateRangesLength(),e},destroyed:function(){return this._destroyed},created:function(){var e,t,n=[],i=this._flatData(this._data);for(e=0,t=i.length;t>e;e++)i[e].isNew&&i[e].isNew()&&n.push(i[e]);return n},updated:function(){var e,t,n=[],i=this._flatData(this._data);for(e=0,t=i.length;t>e;e++)i[e].isNew&&!i[e].isNew()&&i[e].dirty&&n.push(i[e]);return n},sync:function(){var t=this,n=[],i=[],r=t._destroyed,o=(t._flatData(t._data),e.Deferred().resolve().promise());if(t.online()){if(!t.reader.model)return o;n=t.created(),i=t.updated();var a=[];t.options.batch&&t.transport.submit?a=t._sendSubmit(n,i,r):(a.push.apply(a,t._send("create",n)),a.push.apply(a,t._send("update",i)),a.push.apply(a,t._send("destroy",r))),o=e.when.apply(null,a).then(function(){var e,n;for(e=0,n=arguments.length;n>e;e++)t._accept(arguments[e]);t._storeData(!0),t._change({action:"sync"}),t.trigger(oe)})}else t._storeData(!0),t._change({action:"sync"});return o},cancelChanges:function(e){var t=this;e instanceof Y.data.Model?t._cancelModel(e):(t._destroyed=[],t._detachObservableParents(),t._data=t._observe(t._pristineData),t.options.serverPaging&&(t._total=t._pristineTotal),t._ranges=[],t._addRange(t._data),t._change())},hasChanges:function(){var e,t,n=this._flatData(this._data);if(this._destroyed.length)return!0;for(e=0,t=n.length;t>e;e++)if(n[e].isNew&&n[e].isNew()||n[e].dirty)return!0;return!1},_accept:function(t){var n,i=this,r=t.models,o=t.response,a=0,s=i._isServerGrouped(),l=i._pristineData,u=t.type;if(i.trigger(ce,{response:o,type:u}),o&&!W(o)){if(o=i.reader.parse(o),i._handleCustomErrors(o))return;o=i.reader.data(o),U(o)||(o=[o])}else o=e.map(r,function(e){return e.toJSON()});for("destroy"===u&&(i._destroyed=[]),a=0,n=r.length;n>a;a++)"destroy"!==u?(r[a].accept(o[a]),"create"===u?l.push(s?i._wrapInEmptyGroup(r[a]):o[a]):"update"===u&&i._updatePristineForModel(r[a],o[a])):i._removePristineForModel(r[a])},_updatePristineForModel:function(e,t){this._executeOnPristineForModel(e,function(e,n){Y.deepExtend(n[e],t)})},_executeOnPristineForModel:function(e,t){this._eachPristineItem(function(n){var i=I(n,e);return i>-1?(t(i,n),!0):void 0})},_removePristineForModel:function(e){this._executeOnPristineForModel(e,function(e,t){t.splice(e,1)})},_readData:function(e){var t=this._isServerGrouped()?this.reader.groups:this.reader.data;return t.call(this.reader,e)},_eachPristineItem:function(e){this._eachItem(this._pristineData,e)},_eachItem:function(e,t){e&&e.length&&(this._isServerGrouped()?x(e,t):t(e))},_pristineForModel:function(e){var t,n,i=function(i){return n=I(i,e),n>-1?(t=i[n],!0):void 0};return this._eachPristineItem(i),t},_cancelModel:function(e){var t=this._pristineForModel(e);this._eachItem(this._data,function(n){var i=F(n,e);i>=0&&(!t||e.isNew()&&!t.__state__?n.splice(i,1):n[i].accept(t))})},_submit:function(t,n){var i=this;i.trigger(le,{type:"submit"}),i.transport.submit(R({success:function(n,i){var r=e.grep(t,function(e){return e.type==i})[0];r&&r.resolve({response:n,models:r.models,type:i})},error:function(e,n,r){for(var o=0;o<t.length;o++)t[o].reject(e);i.error(e,n,r)}},n))},_sendSubmit:function(t,n,i){var r=this,o=[];return r.options.batch&&(t.length&&o.push(e.Deferred(function(e){e.type="create",e.models=t})),n.length&&o.push(e.Deferred(function(e){e.type="update",e.models=n})),i.length&&o.push(e.Deferred(function(e){e.type="destroy",e.models=i})),r._submit(o,{data:{created:r.reader.serialize(m(t)),updated:r.reader.serialize(m(n)),destroyed:r.reader.serialize(m(i))}})),o},_promise:function(t,n,i){var r=this;return e.Deferred(function(e){r.trigger(le,{type:i}),r.transport[i].call(r.transport,R({success:function(t){e.resolve({response:t,models:n,type:i})},error:function(t,n,i){e.reject(t),r.error(t,n,i)}},t))}).promise()},_send:function(e,t){var n,i,r=this,o=[],a=r.reader.serialize(m(t));if(r.options.batch)t.length&&o.push(r._promise({data:{models:a}},t,e));else for(n=0,i=t.length;i>n;n++)o.push(r._promise({data:a[n]},[t[n]],e));return o},read:function(t){var n=this,i=n._params(t),r=e.Deferred();return n._queueRequest(i,function(){var e=n.trigger(le,{type:"read"});e?(n._dequeueRequest(),r.resolve(e)):(n.trigger(ue),n._ranges=[],n.trigger("reset"),n.online()?n.transport.read({data:i,success:function(e){n.success(e,i),r.resolve()},error:function(){var e=ye.call(arguments);n.error.apply(n,e),r.reject.apply(r,e)}}):null!=n.options.offlineStorage&&(n.success(n.offlineData(),i),r.resolve()))}),r.promise()},_readAggregates:function(e){return this.reader.aggregates(e)},success:function(e){var t=this,n=t.options;if(t.trigger(ce,{response:e,type:"read"}),t.online()){if(e=t.reader.parse(e),t._handleCustomErrors(e))return void t._dequeueRequest();t._total=t.reader.total(e),t._aggregate&&n.serverAggregates&&(t._aggregateResult=t._readAggregates(e)),e=t._readData(e)}else{e=t._readData(e);var i,r=[],o={},a=t.reader.model,s=a?a.idField:"id";for(i=0;i<this._destroyed.length;i++){var l=this._destroyed[i][s];o[l]=l}for(i=0;i<e.length;i++){var u=e[i],c=u.__state__;"destroy"==c?o[u[s]]||this._destroyed.push(this._createNewModel(u)):r.push(u)}e=r,t._total=e.length}t._pristineTotal=t._total,t._pristineData=e.slice(0),t._detachObservableParents(),t._data=t._observe(e),null!=t.options.offlineStorage&&t._eachItem(t._data,function(e){for(var t=0;t<e.length;t++){var n=e.at(t);"update"==n.__state__&&(n.dirty=!0)}}),t._storeData(),t._addRange(t._data),t._process(t._data),t._dequeueRequest()},_detachObservableParents:function(){if(this._data&&this._shouldDetachObservableParents)for(var e=0;e<this._data.length;e++)this._data[e].parent&&(this._data[e].parent=G)},_storeData:function(e){function t(e){for(var r=[],o=0;o<e.length;o++){var a=e.at(o),s=a.toJSON();n&&a.items?s.items=t(a.items):(s.uid=a.uid,i&&(a.isNew()?s.__state__="create":a.dirty&&(s.__state__="update"))),r.push(s)}return r}var n=this._isServerGrouped(),i=this.reader.model;if(null!=this.options.offlineStorage){for(var r=t(this._data),o=0;o<this._destroyed.length;o++){var a=this._destroyed[o].toJSON();a.__state__="destroy",r.push(a)}this.offlineData(r),e&&(this._pristineData=r)}},_addRange:function(e){var t=this,n=t._skip||0,i=n+t._flatData(e,!0).length;t._ranges.push({start:n,end:i,data:e,timestamp:(new Date).getTime()}),t._ranges.sort(function(e,t){return e.start-t.start})},error:function(e,t,n){this._dequeueRequest(),this.trigger(ce,{}),this.trigger(se,{xhr:e,status:t,errorThrown:n})},_params:function(e){var t=this,n=R({take:t.take(),skip:t.skip(),page:t.page(),pageSize:t.pageSize(),sort:t._sort,filter:t._filter,group:t._group,aggregate:t._aggregate},e);return t.options.serverPaging||(delete n.take,delete n.skip,delete n.page,delete n.pageSize),t.options.serverGrouping?t.reader.model&&n.group&&(n.group=A(n.group,t.reader.model)):delete n.group,t.options.serverFiltering?t.reader.model&&n.filter&&(n.filter=O(n.filter,t.reader.model)):delete n.filter,t.options.serverSorting?t.reader.model&&n.sort&&(n.sort=A(n.sort,t.reader.model)):delete n.sort,t.options.serverAggregates?t.reader.model&&n.aggregate&&(n.aggregate=A(n.aggregate,t.reader.model)):delete n.aggregate,n},_queueRequest:function(e,n){var i=this;i._requestInProgress?i._pending={callback:B(n,i),options:e}:(i._requestInProgress=!0,i._pending=t,n())},_dequeueRequest:function(){var e=this;e._requestInProgress=!1,e._pending&&e._queueRequest(e._pending.options,e._pending.callback)},_handleCustomErrors:function(e){if(this.reader.errors){var t=this.reader.errors(e);if(t)return this.trigger(se,{xhr:null,status:"customerror",errorThrown:"custom error",errors:t}),!0}return!1},_shouldWrap:function(e){var t=this.reader.model;return t&&e.length?!(e[0]instanceof t):!1},_observe:function(e){var t=this,n=t.reader.model;if(t._shouldDetachObservableParents=!0,e instanceof Ie)t._shouldDetachObservableParents=!1,t._shouldWrap(e)&&(e.type=t.reader.model,e.wrapAll(e,e));else{var i=t.pageSize()&&!t.options.serverPaging?Fe:Ie;e=new i(e,t.reader.model),e.parent=function(){return t.parent()}}return t._isServerGrouped()&&k(e,n),t._changeHandler&&t._data&&t._data instanceof Ie?t._data.unbind(re,t._changeHandler):t._changeHandler=B(t._change,t),e.bind(re,t._changeHandler)},_change:function(e){var t,n,i=this,r=e?e.action:"";if("remove"===r)for(t=0,n=e.items.length;n>t;t++)e.items[t].isNew&&e.items[t].isNew()||i._destroyed.push(e.items[t]);if(!i.options.autoSync||"add"!==r&&"remove"!==r&&"itemchange"!==r){var o=parseInt(i._total,10);f(i._total)||(o=parseInt(i._pristineTotal,10)),"add"===r?o+=e.items.length:"remove"===r?o-=e.items.length:"itemchange"===r||"sync"===r||i.options.serverPaging?"sync"===r&&(o=i._pristineTotal=parseInt(i._total,10)):o=i._pristineTotal,i._total=o,i._process(i._data,e)}else i.sync()},_calculateAggregates:function(e,t){t=t||{};var n=new o(e),i=t.aggregate,r=t.filter;return r&&(n=n.filter(r)),n.aggregate(i)},_process:function(e,n){var i,r=this,o={};r.options.serverPaging!==!0&&(o.skip=r._skip,o.take=r._take||r._pageSize,o.skip===t&&r._page!==t&&r._pageSize!==t&&(o.skip=(r._page-1)*r._pageSize)),r.options.serverSorting!==!0&&(o.sort=r._sort),r.options.serverFiltering!==!0&&(o.filter=r._filter),r.options.serverGrouping!==!0&&(o.group=r._group),r.options.serverAggregates!==!0&&(o.aggregate=r._aggregate,r._aggregateResult=r._calculateAggregates(e,o)),i=r._queryProcess(e,o),r.view(i.data),i.total===t||r.options.serverFiltering||(r._total=i.total),n=n||{},n.items=n.items||r._view,r.trigger(re,n)},_queryProcess:function(e,t){return o.process(e,t)},_mergeState:function(e){var n=this;return e!==t&&(n._pageSize=e.pageSize,n._page=e.page,n._sort=e.sort,n._filter=e.filter,n._group=e.group,n._aggregate=e.aggregate,n._skip=e.skip,n._take=e.take,n._skip===t&&(n._skip=n.skip(),e.skip=n.skip()),n._take===t&&n._pageSize!==t&&(n._take=n._pageSize,e.take=n._take),e.sort&&(n._sort=e.sort=a(e.sort)),e.filter&&(n._filter=e.filter=l(e.filter)),e.group&&(n._group=e.group=c(e.group)),e.aggregate&&(n._aggregate=e.aggregate=u(e.aggregate))),e},query:function(n){var i,r=this.options.serverSorting||this.options.serverPaging||this.options.serverFiltering||this.options.serverGrouping||this.options.serverAggregates;if(r||(this._data===t||0===this._data.length)&&!this._destroyed.length)return this.read(this._mergeState(n));var o=this.trigger(le,{type:"read"});return o||(this.trigger(ue),i=this._queryProcess(this._data,this._mergeState(n)),this.options.serverFiltering||(this._total=i.total!==t?i.total:this._data.length),this._aggregateResult=this._calculateAggregates(this._data,n),this.view(i.data),this.trigger(ce,{type:"read"}),this.trigger(re,{items:i.data})),e.Deferred().resolve(o).promise()},fetch:function(e){var t=this,n=function(n){n!==!0&&K(e)&&e.call(t)};return this._query().then(n)},_query:function(e){var t=this;return t.query(R({},{page:t.page(),pageSize:t.pageSize(),sort:t.sort(),filter:t.filter(),group:t.group(),aggregate:t.aggregate()},e))},next:function(e){var t=this,n=t.page(),i=t.total();return e=e||{},!n||i&&n+1>t.totalPages()?void 0:(t._skip=n*t.take(),n+=1,e.page=n,t._query(e),n)},prev:function(e){var t=this,n=t.page();return e=e||{},n&&1!==n?(t._skip=t._skip-t.take(),n-=1,e.page=n,t._query(e),n):void 0},page:function(e){var n,i=this;return e!==t?(e=me.max(me.min(me.max(e,1),i.totalPages()),1),void i._query({page:e})):(n=i.skip(),n!==t?me.round((n||0)/(i.take()||1))+1:t)},pageSize:function(e){var n=this;return e!==t?void n._query({pageSize:e,page:1}):n.take()},sort:function(e){var n=this;return e!==t?void n._query({sort:e}):n._sort},filter:function(e){var n=this;return e===t?n._filter:(n.trigger("reset"),void n._query({filter:e,page:1}))},group:function(e){var n=this;return e!==t?void n._query({group:e}):n._group},total:function(){return parseInt(this._total||0,10)},aggregate:function(e){var n=this;return e!==t?void n._query({aggregate:e}):n._aggregate},aggregates:function(){var e=this._aggregateResult;return W(e)&&(e=this._emptyAggregates(this.aggregate())),e},_emptyAggregates:function(e){var t={};if(!W(e)){var n={};U(e)||(e=[e]);for(var i=0;i<e.length;i++)n[e[i].aggregate]=0,t[e[i].field]=n}return t},_wrapInEmptyGroup:function(e){var t,n,i,r,o=this.group();for(i=o.length-1,r=0;i>=r;i--)n=o[i],t={value:e.get(n.field),field:n.field,items:t?[t]:[e],hasSubgroups:!!t,aggregates:this._emptyAggregates(n.aggregates)};return t},totalPages:function(){var e=this,t=e.pageSize()||e.total();return me.ceil((e.total()||0)/t)},inRange:function(e,t){var n=this,i=me.min(e+t,n.total());return!n.options.serverPaging&&n._data.length>0?!0:n._findRange(e,i).length>0},lastRange:function(){var e=this._ranges;return e[e.length-1]||{start:0,end:0,data:[]}},firstItemUid:function(){var e=this._ranges;return e.length&&e[0].data.length&&e[0].data[0].uid},enableRequestsInProgress:function(){this._skipRequestsInProgress=!1},_timeStamp:function(){return(new Date).getTime()},range:function(e,n){this._currentRequestTimeStamp=this._timeStamp(),this._skipRequestsInProgress=!0,e=me.min(e||0,this.total());var i,r=this,o=me.max(me.floor(e/n),0)*n,a=me.min(o+n,r.total());if(i=r._findRange(e,me.min(e+n,r.total())),i.length){r._pending=t,r._skip=e>r.skip()?me.min(a,(r.totalPages()-1)*r.take()):o,r._take=n;var s=r.options.serverPaging,l=r.options.serverSorting,u=r.options.serverFiltering,c=r.options.serverAggregates;try{r.options.serverPaging=!0,r._isServerGrouped()||r.group()&&r.group().length||(r.options.serverSorting=!0),r.options.serverFiltering=!0,r.options.serverPaging=!0,r.options.serverAggregates=!0,s&&(r._detachObservableParents(),r._data=i=r._observe(i)),r._process(i)}finally{r.options.serverPaging=s,r.options.serverSorting=l,r.options.serverFiltering=u,r.options.serverAggregates=c}}else n!==t&&(r._rangeExists(o,a)?e>o&&r.prefetch(a,n,function(){r.range(e,n)}):r.prefetch(o,n,function(){e>o&&a<r.total()&&!r._rangeExists(a,me.min(a+n,r.total()))?r.prefetch(a,n,function(){r.range(e,n)}):r.range(e,n)}))},_findRange:function(e,n){var i,r,o,s,l,u,d,p,f,h,m,g=this,v=g._ranges,_=[],w=g.options,b=w.serverSorting||w.serverPaging||w.serverFiltering||w.serverGrouping||w.serverAggregates;for(r=0,m=v.length;m>r;r++)if(i=v[r],e>=i.start&&e<=i.end){for(h=0,o=r;m>o;o++)if(i=v[o],f=g._flatData(i.data,!0),f.length&&e+h>=i.start){if(u=i.data,d=i.end,!b){var y=c(g.group()||[]).concat(a(g.sort()||[]));p=g._queryProcess(i.data,{sort:y,filter:g.filter()}),f=u=p.data,p.total!==t&&(d=p.total)}if(s=0,e+h>i.start&&(s=e+h-i.start),l=f.length,d>n&&(l-=d-n),h+=l-s,_=g._mergeGroups(_,u,s,l),n<=i.end&&h==n-e)return _}break}return[]},_mergeGroups:function(e,t,n,i){if(this._isServerGrouped()){var r,o=t.toJSON();return e.length&&(r=e[e.length-1]),b(r,o,n,i),e.concat(o)}return e.concat(t.slice(n,i))},skip:function(){var e=this;return e._skip===t?e._page!==t?(e._page-1)*(e.take()||1):t:e._skip},take:function(){return this._take||this._pageSize},_prefetchSuccessHandler:function(e,t,n,i){var r=this,o=r._timeStamp();return function(a){var s,l,u,c=!1,d={start:e,end:t,data:[],timestamp:r._timeStamp()};if(r._dequeueRequest(),r.trigger(ce,{response:a,type:"read"}),a=r.reader.parse(a),u=r._readData(a),u.length){for(s=0,l=r._ranges.length;l>s;s++)if(r._ranges[s].start===e){c=!0,d=r._ranges[s];break}c||r._ranges.push(d)}d.data=r._observe(u),d.end=d.start+r._flatData(d.data,!0).length,r._ranges.sort(function(e,t){return e.start-t.start}),r._total=r.reader.total(a),(i||o>=r._currentRequestTimeStamp||!r._skipRequestsInProgress)&&(n&&u.length?n():r.trigger(re,{}))}},prefetch:function(e,t,n){var i=this,r=me.min(e+t,i.total()),o={take:t,skip:e,page:e/t+1,pageSize:t,sort:i._sort,filter:i._filter,group:i._group,aggregate:i._aggregate};i._rangeExists(e,r)?n&&n():(clearTimeout(i._timeout),i._timeout=setTimeout(function(){i._queueRequest(o,function(){i.trigger(le,{type:"read"})?i._dequeueRequest():i.transport.read({
  data:i._params(o),success:i._prefetchSuccessHandler(e,r,n),error:function(){var e=ye.call(arguments);i.error.apply(i,e)}})})},100))},_multiplePrefetch:function(e,t,n){var i=this,r=me.min(e+t,i.total()),o={take:t,skip:e,page:e/t+1,pageSize:t,sort:i._sort,filter:i._filter,group:i._group,aggregate:i._aggregate};i._rangeExists(e,r)?n&&n():i.trigger(le,{type:"read"})||i.transport.read({data:i._params(o),success:i._prefetchSuccessHandler(e,r,n,!0)})},_rangeExists:function(e,t){var n,i,r=this,o=r._ranges;for(n=0,i=o.length;i>n;n++)if(o[n].start<=e&&o[n].end>=t)return!0;return!1},_removeModelFromRanges:function(e){for(var t,n,i,r=0,o=this._ranges.length;o>r&&(i=this._ranges[r],this._eachItem(i.data,function(i){t=D(i,e),t&&(n=!0)}),!n);r++);},_updateRangesLength:function(){for(var e,t,n=0,i=0,r=this._ranges.length;r>i;i++)e=this._ranges[i],e.start=e.start-n,t=this._flatData(e.data,!0).length,n=e.end-t,e.end=e.start+t}}),qe={};qe.create=function(t,n,i){var r,o=t.transport?e.extend({},t.transport):null;return o?(o.read=typeof o.read===Z?{url:o.read}:o.read,i&&(o.dataSource=i),t.type&&(Y.data.transports=Y.data.transports||{},Y.data.schemas=Y.data.schemas||{},Y.data.transports[t.type]&&!N(Y.data.transports[t.type])?r=new Y.data.transports[t.type](R(o,{data:n})):o=R(!0,{},Y.data.transports[t.type],o),t.schema=R(!0,{},Y.data.schemas[t.type],t.schema)),r||(r=K(o.read)?o:new Be(o))):r=new Re({data:t.data||[]}),r},Ue.create=function(e){(U(e)||e instanceof Ie)&&(e={data:e});var n,i,r,o=e||{},a=o.data,s=o.fields,l=o.table,u=o.select,c={};if(a||!s||o.transport||(l?a=z(l,s):u&&(a=H(u,s),o.group===t&&a[0]&&a[0].optgroup!==t&&(o.group="optgroup"))),Y.data.Model&&s&&(!o.schema||!o.schema.model)){for(n=0,i=s.length;i>n;n++)r=s[n],r.type&&(c[r.field]=r);W(c)||(o.schema=R(!0,o.schema,{model:{fields:c}}))}return o.data=a,u=null,o.select=null,l=null,o.table=null,o instanceof Ue?o:new Ue(o)};var $e=Ae.define({idField:"id",init:function(e){var t=this,n=t.hasChildren||e&&e.hasChildren,i="items",r={};Y.data.Model.fn.init.call(t,e),typeof t.children===Z&&(i=t.children),r={schema:{data:i,model:{hasChildren:n,id:t.idField,fields:t.fields}}},typeof t.children!==Z&&R(r,t.children),r.data=e,n||(n=r.schema.data),typeof n===Z&&(n=Y.getter(n)),K(n)&&(t.hasChildren=!!n.call(t,t)),t._childrenOptions=r,t.hasChildren&&t._initChildren(),t._loaded=!(!e||!e[i]&&!e._loaded)},_initChildren:function(){var e,t,n,i=this;i.children instanceof je||(e=i.children=new je(i._childrenOptions),t=e.transport,n=t.parameterMap,t.parameterMap=function(e,t){return e[i.idField||"id"]=i.id,n&&(e=n(e,t)),e},e.parent=function(){return i},e.bind(re,function(e){e.node=e.node||i,i.trigger(re,e)}),e.bind(se,function(e){var t=i.parent();t&&(e.node=e.node||i,t.trigger(se,e))}),i._updateChildrenField())},append:function(e){this._initChildren(),this.loaded(!0),this.children.add(e)},hasChildren:!1,level:function(){for(var e=this.parentNode(),t=0;e&&e.parentNode;)t++,e=e.parentNode?e.parentNode():null;return t},_updateChildrenField:function(){var e=this._childrenOptions.schema.data;this[e||"items"]=this.children.data()},_childrenLoaded:function(){this._loaded=!0,this._updateChildrenField()},load:function(){var n,i,r={},o="_query";return this.hasChildren?(this._initChildren(),n=this.children,r[this.idField||"id"]=this.id,this._loaded||(n._data=t,o="read"),n.one(re,B(this._childrenLoaded,this)),i=n[o](r)):this.loaded(!0),i||e.Deferred().resolve().promise()},parentNode:function(){var e=this.parent();return e.parent()},loaded:function(e){return e===t?this._loaded:void(this._loaded=e)},shouldSerialize:function(e){return Ae.fn.shouldSerialize.call(this,e)&&"children"!==e&&"_loaded"!==e&&"hasChildren"!==e&&"_childrenOptions"!==e}}),je=Ue.extend({init:function(e){var t=$e.define({children:e});Ue.fn.init.call(this,R(!0,{},{schema:{modelBase:t,model:t}},e)),this._attachBubbleHandlers()},_attachBubbleHandlers:function(){var e=this;e._data.bind(se,function(t){e.trigger(se,t)})},remove:function(e){var t,n=e.parentNode(),i=this;return n&&n._initChildren&&(i=n.children),t=Ue.fn.remove.call(i,e),n&&!i.data().length&&(n.hasChildren=!1),t},success:V("success"),data:V("data"),insert:function(e,t){var n=this.parent();return n&&n._initChildren&&(n.hasChildren=!0,n._initChildren()),Ue.fn.insert.call(this,e,t)},_find:function(e,t){var n,i,r,o,a;if(r=Ue.fn[e].call(this,t))return r;if(o=this._flatData(this._data))for(n=0,i=o.length;i>n;n++)if(a=o[n].children,a instanceof je&&(r=a[e](t)))return r},get:function(e){return this._find("get",e)},getByUid:function(e){return this._find("getByUid",e)}});je.create=function(e){e=e&&e.push?{data:e}:e;var t=e||{},n=t.data,i=t.fields,r=t.list;return n&&n._dataSource?n._dataSource:(n||!i||t.transport||r&&(n=P(r,i)),t.data=n,t instanceof je?t:new je(t))};var Ge=Y.Observable.extend({init:function(e,t,n){Y.Observable.fn.init.call(this),this._prefetching=!1,this.dataSource=e,this.prefetch=!n;var i=this;e.bind("change",function(){i._change()}),e.bind("reset",function(){i._reset()}),this._syncWithDataSource(),this.setViewSize(t)},setViewSize:function(e){this.viewSize=e,this._recalculate()},at:function(e){var t=this.pageSize,n=!0;return e>=this.total()?(this.trigger("endreached",{index:e}),null):this.useRanges?this.useRanges?((e<this.dataOffset||e>=this.skip+t)&&(n=this.range(Math.floor(e/t)*t)),e===this.prefetchThreshold&&this._prefetch(),e===this.midPageThreshold?this.range(this.nextMidRange,!0):e===this.nextPageThreshold?this.range(this.nextFullRange):e===this.pullBackThreshold&&this.range(this.offset===this.skip?this.previousMidRange:this.previousFullRange),n?this.dataSource.at(e-this.dataOffset):(this.trigger("endreached",{index:e}),null)):void 0:this.dataSource.view()[e]},indexOf:function(e){return this.dataSource.data().indexOf(e)+this.dataOffset},total:function(){return parseInt(this.dataSource.total(),10)},next:function(){var e=this,t=e.pageSize,n=e.skip-e.viewSize+t,i=me.max(me.floor(n/t),0)*t;this.offset=n,this.dataSource.prefetch(i,t,function(){e._goToRange(n,!0)})},range:function(e,t){if(this.offset===e)return!0;var n=this,i=this.pageSize,r=me.max(me.floor(e/i),0)*i,o=this.dataSource;return t&&(r+=i),o.inRange(e,i)?(this.offset=e,this._recalculate(),this._goToRange(e),!0):this.prefetch?(o.prefetch(r,i,function(){n.offset=e,n._recalculate(),n._goToRange(e,!0)}),!1):!0},syncDataSource:function(){var e=this.offset;this.offset=null,this.range(e)},destroy:function(){this.unbind()},_prefetch:function(){var e=this,t=this.pageSize,n=this.skip+t,i=this.dataSource;i.inRange(n,t)||this._prefetching||!this.prefetch||(this._prefetching=!0,this.trigger("prefetching",{skip:n,take:t}),i.prefetch(n,t,function(){e._prefetching=!1,e.trigger("prefetched",{skip:n,take:t})}))},_goToRange:function(e,t){this.offset===e&&(this.dataOffset=e,this._expanding=t,this.dataSource.range(e,this.pageSize),this.dataSource.enableRequestsInProgress())},_reset:function(){this._syncPending=!0},_change:function(){var e=this.dataSource;this.length=this.useRanges?e.lastRange().end:e.view().length,this._syncPending&&(this._syncWithDataSource(),this._recalculate(),this._syncPending=!1,this.trigger("reset",{offset:this.offset})),this.trigger("resize"),this._expanding&&this.trigger("expand"),delete this._expanding},_syncWithDataSource:function(){var e=this.dataSource;this._firstItemUid=e.firstItemUid(),this.dataOffset=this.offset=e.skip()||0,this.pageSize=e.pageSize(),this.useRanges=e.options.serverPaging},_recalculate:function(){var e=this.pageSize,t=this.offset,n=this.viewSize,i=Math.ceil(t/e)*e;this.skip=i,this.midPageThreshold=i+e-1,this.nextPageThreshold=i+n-1,this.prefetchThreshold=i+Math.floor(e/3*2),this.pullBackThreshold=this.offset-1,this.nextMidRange=i+e-n,this.nextFullRange=i,this.previousMidRange=t-n,this.previousFullRange=i-e}}),Ye=Y.Observable.extend({init:function(e,t){var n=this;Y.Observable.fn.init.call(n),this.dataSource=e,this.batchSize=t,this._total=0,this.buffer=new Ge(e,3*t),this.buffer.bind({endreached:function(e){n.trigger("endreached",{index:e.index})},prefetching:function(e){n.trigger("prefetching",{skip:e.skip,take:e.take})},prefetched:function(e){n.trigger("prefetched",{skip:e.skip,take:e.take})},reset:function(){n._total=0,n.trigger("reset")},resize:function(){n._total=Math.ceil(this.length/n.batchSize),n.trigger("resize",{total:n.total(),offset:this.offset})}})},syncDataSource:function(){this.buffer.syncDataSource()},at:function(e){var t,n=this.buffer,i=e*this.batchSize,r=this.batchSize,o=[];n.offset>i&&n.at(n.offset-1);for(var a=0;r>a&&(t=n.at(i+a),null!==t);a++)o.push(t);return o},total:function(){return this._total},destroy:function(){this.buffer.destroy(),this.unbind()}});R(!0,Y.data,{readers:{json:We},Query:o,DataSource:Ue,HierarchicalDataSource:je,Node:$e,ObservableObject:Me,ObservableArray:Ie,LazyObservableArray:Fe,LocalTransport:Re,RemoteTransport:Be,Cache:Ne,DataReader:We,Model:Ae,Buffer:Ge,BatchBuffer:Ye})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core"],e)}(function(){return 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||M,p=e.empty||E,f=e.html||'<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><tbody><tr role="row">';u>n;n++)n>0&&n%c===0&&(f+='</tr><tr role="row">'),t=l(o,n),f+=s(o,i,r)?d(t):p(t),a(o,1);return f+"</tr></tbody></table>"}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 fe;return new fe(e.getFullYear(),e.getMonth(),e.getDate())}function a(e,t,n){var i=o();return e&&(i=new fe(+e)),t>i?i=new fe(+t):i>n&&(i=new fe(+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 fe?t.getFullYear():e.getFullYear()+n*t,e.setFullYear(t)}function c(t){e(this).toggleClass(j,ne.indexOf(t.type)>-1||t.type==ee)}function d(e){e.preventDefault()}function p(e){return D(e).calendars.standard}function f(e){var n=he[e.start],i=he[e.depth],r=D(e.culture);e.format=T(e.format||r.calendars.standard.patterns.d),isNaN(n)&&(n=0,e.start=N),(i===t||i>n)&&(e.depth=N),e.dates||(e.dates=[])}function h(e){A&&e.find("*").attr("unselectable","on")}function m(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 _=window.kendo,w=_.support,b=_.ui,y=b.Widget,k=_.keys,x=_.parseDate,C=_.date.adjustDST,T=_._extractFormat,S=_.template,D=_.getCulture,I=_.support.transitions,F=I?I.css+"transform-origin":"",M=S('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#">#=data.value#</a></td>',{useWithBlock:!1}),E=S('<td role="gridcell">&nbsp;</td>',{useWithBlock:!1}),O=_.support.browser,A=O.msie&&O.version<9,H=".kendoCalendar",z="click"+H,V="keydown"+H,P="id",L="min",R="left",B="slideIn",N="month",W="century",U="change",q="navigate",$="value",j="k-state-hover",G="k-state-disabled",Y="k-state-focused",K="k-other-month",Q=' class="'+K+'"',J="k-nav-today",Z="td:has(.k-link)",X="blur"+H,ee="focus",te=ee+H,ne=w.touch?"touchstart":"mouseenter",ie=w.touch?"touchstart"+H:"mouseenter"+H,re=w.touch?"touchend"+H+" touchmove"+H:"mouseleave"+H,oe=6e4,ae=864e5,se="_prevArrow",le="_nextArrow",ue="aria-disabled",ce="aria-selected",de=e.proxy,pe=e.extend,fe=Date,he={month:0,year:1,decade:2,century:3},me=y.extend({init:function(t,n){var i,r,o=this;y.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(ie+" "+re,Z,c).on(V,"table.k-content",de(o._move,o)).on(z,Z,function(t){var n=t.currentTarget.firstChild;-1!=n.href.indexOf("#")&&t.preventDefault(),o._click(e(n))}).on("mouseup"+H,"table.k-content, .k-footer",function(){o._focusView(o.options.focusOnNav!==!1)}).attr(P),r&&(o._cellID=r+"_cell_selected"),f(n),i=x(n.value,n.format,n.culture),o._index=he[n.start],o._current=new fe(+a(i,n.min,n.max)),o._addClassProxy=function(){o._active=!0,o._cell.addClass(Y)},o._removeClassProxy=function(){o._active=!1,o._cell.removeClass(Y)},o.value(i),_.notify(o)},options:{name:"Calendar",value:null,min:new fe(1900,0,1),max:new fe(2099,11,31),dates:[],url:"",culture:"",footer:"",format:"",month:{},start:N,depth:N,animation:{horizontal:{effects:B,reverse:!0,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}}},events:[U,q],setOptions:function(e){var t=this;f(e),e.dates[0]||(e.dates=t.options.dates),y.fn.setOptions.call(t,e),t._templates(),t._footer(t.footer),t._index=he[t.options.start],t.navigate()},destroy:function(){var e=this,t=e._today;e.element.off(H),e._title.off(H),e[se].off(H),e[le].off(H),_.destroy(e._table),t&&_.destroy(t.off(H)),y.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(L,e)},max:function(e){return this._option("max",e)},navigateToPast:function(){this._navigate(se,-1)},navigateToFuture:function(){this._navigate(le,1)},navigateUp:function(){var e=this,t=e._index;e._title.hasClass(G)||e.navigate(e._current,++t)},navigateDown:function(e){var t=this,n=t._index,i=t.options.depth;if(e)return n===he[i]?void(+t._value!=+e&&(t.value(e),t.trigger(U))):void t.navigate(e,--n)},navigate:function(n,i){i=isNaN(i)?he[i]:i;var r,o,s,l,u=this,c=u.options,d=c.culture,p=c.min,f=c.max,m=u._title,g=u._table,v=u._oldTable,_=u._value,w=u._current,b=n&&+n>+w,y=i!==t&&i!==u._index;n||(n=w),u._current=n=new fe(+a(n,p,f)),i===t?i=u._index:u._index=i,u._view=o=ge.views[i],s=o.compare,l=i===he[W],m.toggleClass(G,l).attr(ue,l),l=s(n,p)<1,u[se].toggleClass(G,l).attr(ue,l),l=s(n,f)>-1,u[le].toggleClass(G,l).attr(ue,l),g&&v&&v.data("animating")&&(v.kendoStop(!0,!0),g.kendoStop(!0,!0)),u._oldTable=g,(!g||u._changeView)&&(m.html(o.title(n,p,f,d)),u._table=r=e(o.content(pe({min:p,max:f,date:n,url:c.url,dates:c.dates,format:c.format,culture:d},u[o.name]))),h(r),u._animate({from:g,to:r,vertical:y,future:b}),u._focus(n),u.trigger(q)),i===he[c.depth]&&_&&u._class("k-state-selected",o.toDateString(_)),u._class(Y,o.toDateString(n)),!g&&u._cell&&u._cell.removeClass(Y),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=x(e,r.format,r.culture),null!==e&&(e=new fe(+e),s(e,a,l)||(e=null)),n._value=e,void(o&&null===e&&n._cell?n._cell.removeClass("k-state-selected"):(n._changeView=!e||i&&0!==i.compare(e,n._current),n.navigate(e))))},_move:function(t){var n,i,r,o,s=this,l=s.options,u=t.keyCode,c=s._view,d=s._index,p=new fe(+s._current),f=_.support.isRtl(s.wrapper);return t.target===s._table[0]&&(s._active=!0),t.ctrlKey?u==k.RIGHT&&!f||u==k.LEFT&&f?(s.navigateToFuture(),i=!0):u==k.LEFT&&!f||u==k.RIGHT&&f?(s.navigateToPast(),i=!0):u==k.UP?(s.navigateUp(),i=!0):u==k.DOWN&&(s._click(e(s._cell[0].firstChild)),i=!0):(u==k.RIGHT&&!f||u==k.LEFT&&f?(n=1,i=!0):u==k.LEFT&&!f||u==k.RIGHT&&f?(n=-1,i=!0):u==k.UP?(n=0===d?-7:-4,i=!0):u==k.DOWN?(n=0===d?7:4,i=!0):u==k.ENTER?(s._click(e(s._cell[0].firstChild)),i=!0):u==k.HOME||u==k.END?(r=u==k.HOME?"first":"last",o=c[r](p),p=new fe(o.getFullYear(),o.getMonth(),o.getDate(),p.getHours(),p.getMinutes(),p.getSeconds(),p.getMilliseconds()),i=!0):u==k.PAGEUP?(i=!0,s.navigateToPast()):u==k.PAGEDOWN&&(i=!0,s.navigateToFuture()),(n||r)&&(r||c.setDate(p,n),s._focus(a(p,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(H),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(H).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(B)&&(e.add(t).css({width:s}),e.wrap("<div/>"),i._focusView(r,e),e.parent().css({position:"relative",width:2*s,"float":R,"margin-left":n?0:-s}),t[n?"insertAfter":"insertBefore"](e),pe(o,{effects:B+":"+(n?"right":R),complete:function(){e.off(H).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),F&&(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(F,i)),e.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){e.off(H).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(_.attr($))===t})},_class:function(t,n){var i=this,r=i._cellID,o=i._cell;o&&o.removeAttr(ce).removeAttr("aria-label").removeAttr(P),o=i._table.find("td:not(."+K+")").removeClass(t).filter(function(){return e(this.firstChild).attr(_.attr($))===n}).attr(ce,!0),t!==Y||i._active||i.options.focusOnNav===!1||(t=""),o.addClass(t),o[0]&&(i._cell=o),r&&(o.attr(P,r),i._table.removeAttr("aria-activedescendant").attr("aria-activedescendant",r))},_bindTable:function(e){e.on(te,this._addClassProxy).on(X,this._removeClassProxy)},_click:function(e){var t=this,n=t.options,i=new Date(+t._current),r=e.attr(_.attr($)).split("/");r=new fe(r[0],r[1],r[2]),C(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(Y,n.toDateString(e)))},_focusView:function(e,t){e&&this.focus(t)},_footer:function(t){var n=this,i=o(),r=n.element,a=r.find(".k-footer");return t?(a[0]||(a=e('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(r)),n._today=a.show().find(".k-link").html(t(i)).attr("title",_.toString(i,"D",n.options.culture)),void n._toggle()):(n._toggle(!1),void a.hide())},_header:function(){var e,t=this,n=t.element;n.find(".k-header")[0]||n.html('<div class="k-header"><a href="#" role="button" class="k-link k-nav-prev"><span class="k-icon k-i-arrow-w"></span></a><a href="#" role="button" aria-live="assertive" aria-atomic="true" class="k-link k-nav-fast"></a><a href="#" role="button" class="k-link k-nav-next"><span class="k-icon k-i-arrow-e"></span></a></div>'),e=n.find(".k-link").on(ie+" "+re+" "+te+" "+X,c).click(!1),t._title=e.eq(1).on(z,function(){t._active=t.options.focusOnNav!==!1,t.navigateUp()}),t[se]=e.eq(0).on(z,function(){t._active=t.options.focusOnNav!==!1,t.navigateToPast()}),t[le]=e.eq(2).on(z,function(){t._active=t.options.focusOnNav!==!1,t.navigateToFuture()})},_navigate:function(e,t){var n=this,i=n._index+1,r=new fe(+n._current);e=n[e],e.hasClass(G)||(i>3?r.setFullYear(r.getFullYear()+100*t):ge.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=x(n,o.format,o.culture),void(n&&(o[e]=new fe(+n),i=e===L?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())))},_toggle:function(e){var n=this,i=n.options,r=n._today;e===t&&(e=s(o(),i.min,i.max)),r&&(r.off(z),e?r.addClass(J).removeClass(G).on(z,de(n._todayClick,n)):r.removeClass(J).addClass(G).on(z,d))},_todayClick:function(e){var t=this,n=he[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(U)},_templates:function(){var e=this,t=e.options,n=t.footer,i=t.month,r=i.content,o=i.empty;e.month={content:S('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link#=data.linkClass#" href="#=data.url#" '+_.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(r||"#=data.value#")+"</a></td>",{useWithBlock:!!r}),empty:S('<td role="gridcell">'+(o||"&nbsp;")+"</td>",{useWithBlock:!!o})},e.footer=n!==!1?S(n||'#= kendo.toString(data,"D","'+t.culture+'") #',{useWithBlock:!1}):null}});b.plugin(me);var ge={firstDayOfMonth:function(e){return new fe(e.getFullYear(),e.getMonth(),1)},firstVisibleDay:function(e,t){t=t||_.culture().calendar;for(var n=t.firstDay,i=new fe(e.getFullYear(),e.getMonth(),0,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());i.getDay()!=n;)ge.setTime(i,-1*ae);return i},setTime:function(e,t){var n=e.getTimezoneOffset(),i=new fe(e.getTime()+t),r=i.getTimezoneOffset()-n;e.setTime(i.getTime()+r*oe)},views:[{name:N,title:function(e,t,n,i){return p(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,f=d&&s[0],h=p(c),g=h.firstDay,v=h.days,w=l(v.names,g),b=l(v.namesShort,g),y=ge.firstVisibleDay(a,h),k=t.first(a),x=t.last(a),T=t.toDateString,S=new fe,D='<table tabindex="0" role="grid" class="k-content" cellspacing="0"><thead><tr role="row">';7>n;n++)D+='<th scope="col" title="'+w[n]+'">'+b[n]+"</th>";return S=new fe(S.getFullYear(),S.getMonth(),S.getDate()),C(S,0),S=+S,y=new fe(y.getFullYear(),y.getMonth(),y.getDate()),C(y,0),i({cells:42,perRow:7,html:D+='</tr></thead><tbody><tr role="row">',start:y,min:new fe(r.getFullYear(),r.getMonth(),r.getDate()),max:new fe(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(k>e||e>x)&&t.push(K),+e===S&&t.push("k-today"),(0===n||6===n)&&t.push("k-weekend"),f&&m(+e,s)&&(r=d.replace("{0}",_.toString(e,u,c)),i=" k-action-link"),{date:e,dates:s,ns:_.ns,title:_.toString(e,"D",c),value:e.getDate(),dateString:T(e),cssClass:t[0]?' class="'+t.join(" ")+'"':"",linkClass:i,url:r}}})},first:function(e){return ge.firstDayOfMonth(e)},last:function(e){var t=new fe(e.getFullYear(),e.getMonth()+1,0),n=ge.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 fe?e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):ge.setTime(e,t*ae),C(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=p(e.culture).months.namesAbbr,n=this.toDateString,r=e.min,o=e.max;return i({min:new fe(r.getFullYear(),r.getMonth(),1),max:new fe(o.getFullYear(),o.getMonth(),1),start:new fe(e.date.getFullYear(),0,1),setter:this.setDate,build:function(e){return{value:t[e.getMonth()],ns:_.ns,dateString:n(e),cssClass:""}}})},first:function(e){return new fe(e.getFullYear(),0,e.getDate())},last:function(e){return new fe(e.getFullYear(),11,e.getDate())},compare:function(e,t){return r(e,t)},setDate:function(e,t){var n,i=e.getHours();t instanceof fe?(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)),C(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 fe(t-t%10-1,0,1),min:new fe(e.min.getFullYear(),0,1),max:new fe(e.max.getFullYear(),0,1),setter:this.setDate,build:function(e,t){return{value:e.getFullYear(),ns:_.ns,dateString:n(e),cssClass:0===t||11==t?Q:""}}})},first:function(e){var t=e.getFullYear();return new fe(t-t%10,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return new fe(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:W,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 fe(t-t%100-10,0,1),min:new fe(a,0,1),max:new fe(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:_.ns,value:i+" - "+a,dateString:o(e),cssClass:0===t||11==t?Q:""}}})},first:function(e){var t=e.getFullYear();return new fe(t-t%100,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return new fe(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"}}]};ge.isEqualDatePart=g,ge.makeUnselectable=h,ge.restrictValue=a,ge.isInRange=s,ge.normalize=f,ge.viewsEnum=he,_.calendar=ge}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core"],e)}(function(){return function(e,t){function n(t,n){return t===n||e.contains(t,n)}var i=window.kendo,r=i.ui,o=r.Widget,a=i.support,s=i.getOffset,l=(i._activeElement,"open"),u="close",c="deactivate",d="activate",p="center",f="left",h="right",m="top",g="bottom",v="absolute",_="hidden",w="body",b="location",y="position",k="visible",x="effects",C="k-state-active",T="k-state-border",S=/k-state-border-(\w+)/,D=".k-picker-wrap, .k-dropdown-wrap, .k-link",I="down",F=e(document.documentElement),M=e(window),E="scroll",O="resize scroll",A=a.transitions.css,H=A+"transform",z=e.extend,V=".kendoPopup",P=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],L=o.extend({init:function(t,n){var r,a=this;n=n||{},n.isRtl&&(n.origin=n.origin||g+" "+h,n.position=n.position||m+" "+h),o.fn.init.call(a,t,n),t=a.element,n=a.options,a.collisions=n.collision?n.collision.split(" "):[],a.downEvent=i.applyEventMap(I,i.guid()),1===a.collisions.length&&a.collisions.push(a.collisions[0]),r=e(a.options.anchor).closest(".k-popup,.k-group").filter(":not([class^=km-])"),n.appendTo=e(e(n.appendTo)[0]||r[0]||w),a.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!n.isRtl).css({position:v}).appendTo(n.appendTo).on("mouseenter"+V,function(){a._hovered=!0}).on("mouseleave"+V,function(){a._hovered=!1}),a.wrapper=e(),n.animation===!1&&(n.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),z(n.animation.open,{complete:function(){a.wrapper.css({overflow:k}),a._activated=!0,a._trigger(d)}}),z(n.animation.close,{complete:function(){a._animationClose()}}),a._mousedownProxy=function(e){a._mousedown(e)},a._resizeProxy=function(e){a._resize(e)},n.toggleTarget&&e(n.toggleTarget).on(n.toggleEvent+V,e.proxy(a.toggle,a))},events:[l,d,u,c],options:{name:"Popup",toggleEvent:"click",origin:g+" "+f,position:m+" "+f,anchor:w,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=this,n=t.options;t.wrapper.hide();var r,o,a=t.wrapper.data(b),s=e(n.anchor);a&&t.wrapper.css(a),n.anchor!=w&&(r=((s.attr("class")||"").match(S)||["","down"])[1],o=T+"-"+r,s.removeClass(o).children(D).removeClass(C).removeClass(o),t.element.removeClass(T+"-"+i.directions[r].reverse)),t._closing=!1,t._trigger(c)},destroy:function(){var t,n=this,r=n.options,a=n.element.off(V);o.fn.destroy.call(n),r.toggleTarget&&e(r.toggleTarget).off(V),r.modal||(F.unbind(n.downEvent,n._mousedownProxy),n._toggleResize(!1)),i.destroy(n.element.children()),a.removeData(),r.appendTo[0]===document.body&&(t=a.parent(".k-animation-container"),t[0]?t.remove():a.remove())},open:function(t,n){var r,o,s=this,u={isFixed:!isNaN(parseInt(n,10)),x:t,y:n},c=s.element,d=s.options,p="down",f=e(d.anchor),h=c[0]&&c.hasClass("km-widget");if(!s.visible()){if(d.copyAnchorStyles&&(h&&"font-size"==P[0]&&P.shift(),c.css(i.getComputedStyles(f[0],P))),c.data("animating")||s._trigger(l))return;if(s._activated=!1,d.modal||(F.unbind(s.downEvent,s._mousedownProxy).bind(s.downEvent,s._mousedownProxy),a.mobileOS.ios||a.mobileOS.android||(s._toggleResize(!1),s._toggleResize(!0))),s.wrapper=o=i.wrap(c,d.autosize).css({overflow:_,display:"block",position:v}),a.mobileOS.android&&o.css(H,"translatez(0)"),o.css(y),e(d.appendTo)[0]==document.body&&o.css(m,"-10000px"),r=z(!0,{},d.animation.open),s.flipped=s._position(u),r.effects=i.parseEffects(r.effects,s.flipped),p=r.effects.slideIn?r.effects.slideIn.direction:p,d.anchor!=w){var g=T+"-"+p;c.addClass(T+"-"+i.directions[p].reverse),f.addClass(g).children(D).addClass(C).addClass(g)}c.data(x,r.effects).kendoStop(!0).kendoAnimate(r)}},position:function(){this.visible()&&this._position()},toggle:function(){var e=this;e[e.visible()?u:l]()},visible:function(){return this.element.is(":"+k)},close:function(t){var n,r,o,a,s=this,l=s.options;if(s.visible()){if(n=s.wrapper[0]?s.wrapper:i.wrap(s.element).hide(),s._toggleResize(!1),s._closing||s._trigger(u))return void s._toggleResize(!0);s.element.find(".k-popup").each(function(){var n=e(this),i=n.data("kendoPopup");i&&i.close(t)}),F.unbind(s.downEvent,s._mousedownProxy),t?r={hide:!0,effects:{}}:(r=z(!0,{},l.animation.close),o=s.element.data(x),a=r.effects,!a&&!i.size(a)&&o&&i.size(o)&&(r.effects=o,r.reverse=!0),s._closing=!0),s.element.kendoStop(!0),n.css({overflow:_}),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()},_toggleResize:function(e){var t=e?"on":"off";this._scrollableParents()[t](E,this._resizeProxy),M[t](O,this._resizeProxy)},_mousedown:function(t){var r=this,o=r.element[0],a=r.options,s=e(a.anchor)[0],l=a.toggleTarget,u=i.eventTarget(t),c=e(u).closest(".k-popup"),d=c.parent().parent(".km-shim").length;c=c[0],(d||!c||c===r.element[0])&&"popover"!==e(t.target).closest("a").data("rel")&&(n(o,u)||n(s,u)||l&&n(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!==p&&r!==p&&(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 i.isScrollable(t)})},_position:function(t){var n,r,o,l,u,c,d=this,p=d.element,f=d.wrapper,h=d.options,m=e(h.viewport),g=m.offset(),_=e(h.anchor),w=h.origin.toLowerCase().split(" "),k=h.position.toLowerCase().split(" "),x=d.collisions,C=a.zoomLevel(),T=10002,S=!!(m[0]==window&&window.innerWidth&&1.02>=C),D=0,I=document.documentElement;if(u=S?window.innerWidth:m.width(),c=S?window.innerHeight:m.height(),S&&I.scrollHeight-I.clientHeight>0&&(u-=i.support.scrollbar()),n=_.parents().filter(f.siblings()),n[0])if(o=Math.max(Number(n.css("zIndex")),0))T=o+10;else for(r=_.parentsUntil(n),l=r.length;l>D;D++)o=Number(e(r[D]).css("zIndex")),o&&o>T&&(T=o+10);f.css("zIndex",T),f.css(t&&t.isFixed?{left:t.x,top:t.y}:d._align(w,k));var F=s(f,y,_[0]===f.offsetParent()[0]),M=s(f),E=_.offsetParent().parent(".k-animation-container,.k-popup,.k-group");E.length&&(F=s(f,y,!0),M=s(f)),m[0]===window?(M.top-=window.pageYOffset||document.documentElement.scrollTop||0,
  M.left-=window.pageXOffset||document.documentElement.scrollLeft||0):(M.top-=g.top,M.left-=g.left),d.wrapper.data(b)||f.data(b,z({},F));var O=z({},M),A=z({},F),H=h.adjustSize;"fit"===x[0]&&(A.top+=d._fit(O.top,f.outerHeight()+H.height,c/C)),"fit"===x[1]&&(A.left+=d._fit(O.left,f.outerWidth()+H.width,u/C));var V=z({},A);return"flip"===x[0]&&(A.top+=d._flip(O.top,p.outerHeight(),_.outerHeight(),c/C,w[0],k[0],f.outerHeight())),"flip"===x[1]&&(A.left+=d._flip(O.left,p.outerWidth(),_.outerWidth(),u/C,w[1],k[1],f.outerWidth())),p.css(y,v),f.css(A),A.left!=V.left||A.top!=V.top},_align:function(t,n){var i,r=this,o=r.wrapper,a=e(r.options.anchor),l=t[0],u=t[1],c=n[0],d=n[1],f=s(a),m=e(r.options.appendTo),v=o.outerWidth(),_=o.outerHeight(),w=a.outerWidth(),b=a.outerHeight(),y=f.top,k=f.left,x=Math.round;return m[0]!=document.body&&(i=s(m),y-=i.top,k-=i.left),l===g&&(y+=b),l===p&&(y+=x(b/2)),c===g&&(y-=_),c===p&&(y-=x(_/2)),u===h&&(k+=w),u===p&&(k+=x(w/2)),d===h&&(k-=v),d===p&&(k-=x(v/2)),{top:y,left:k}}});r.plugin(L)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.calendar","./kendo.popup"],e)}(function(){return function(e,t){function n(t){var n=t.parseFormats,i=t.format;z.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=window.kendo,o=r.ui,a=o.Widget,s=r.parseDate,l=r.keys,u=r.template,c=r._activeElement,d="<div />",p="<span />",f=".kendoDatePicker",h="click"+f,m="open",g="close",v="change",_="disabled",w="readonly",b="k-state-default",y="k-state-focused",k="k-state-selected",x="k-state-disabled",C="k-state-hover",T="mouseenter"+f+" mouseleave"+f,S="mousedown"+f,D="id",I="min",F="max",M="month",E="aria-disabled",O="aria-expanded",A="aria-hidden",H="aria-readonly",z=r.calendar,V=z.isInRange,P=z.restrictValue,L=z.isEqualDatePart,R=e.extend,B=e.proxy,N=Date,W=function(t){var n,i=this,a=document.body,s=e(d).attr(A,"true").addClass("k-calendar-container").appendTo(a);i.options=t=t||{},n=t.id,n&&(n+="_dateview",s.attr(D,n),i._dateViewID=n),i.popup=new o.Popup(s,R(t.popup,t,{name:"Popup",isRtl:r.support.isRtl(t.anchor)})),i.div=s,i.value(t.value)};W.prototype={_calendar:function(){var t,n=this,a=n.calendar,s=n.options;a||(t=e(d).attr(D,r.guid()).appendTo(n.popup.element).on(S,i).on(h,"td:has(.k-link)",B(n._click,n)),n.calendar=a=new o.Calendar(t),n._setOptions(s),r.calendar.makeUnselectable(a.element),a.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(I,e)},max:function(e){this._option(F,e)},toggle:function(){var e=this;e[e.popup.visible()?g:m]()},move:function(e){var t=this,n=e.keyCode,i=t.calendar,r=e.ctrlKey&&n==l.DOWN||n==l.ENTER,o=!1;if(e.altKey)n==l.DOWN?(t.open(),e.preventDefault(),o=!0):n==l.UP&&(t.close(),e.preventDefault(),o=!0);else if(t.popup.visible()){if(n==l.ESC||r&&i._cell.hasClass(k))return t.close(),e.preventDefault(),!0;t._current=i._move(e),o=!0}return o},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 N(+P(e,i.min,i.max)),n&&n.value(e)},_click:function(e){-1!==e.currentTarget.className.indexOf(k)&&this.close()},_option:function(e,t){var n=this,i=n.calendar;n.options[e]=t,i&&i[e](t)}},W.normalize=n,r.DateView=W;var U=a.extend({init:function(t,i){var o,l,u=this;a.fn.init.call(u,t,i),t=u.element,i=u.options,i.min=s(t.attr("min"))||s(i.min),i.max=s(t.attr("max"))||s(i.max),n(i),u._initialOptions=R({},i),u._wrapper(),u.dateView=new W(R({},i,{id:t.attr(D),anchor:u.wrapper,change:function(){u._change(this.value()),u.close()},close:function(e){u.trigger(g)?e.preventDefault():(t.attr(O,!1),l.attr(A,!0))},open:function(e){var n,i=u.options;u.trigger(m)?e.preventDefault():(u.element.val()!==u._oldText&&(n=s(t.val(),i.parseFormats,i.culture),u.dateView[n?"current":"value"](n)),t.attr(O,!0),l.attr(A,!1),u._updateARIA(n))}})),l=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(),o=t.is("[disabled]")||e(u.element).parents("fieldset").is(":disabled"),o?u.enable(!1):u.readonly(t.is("[readonly]")),u._old=u._update(i.value||u.element.val()),u._oldText=t.val(),r.notify(u)},events:[m,g,v],options:{name:"DatePicker",value:null,footer:"",format:"",culture:"",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:M,depth:M,animation:{},month:{},dates:[],ARIATemplate:'Current focused date is #=kendo.toString(data.current, "D")#'},setOptions:function(e){var t=this,i=t._value;a.fn.setOptions.call(t,e),e=t.options,e.min=s(e.min),e.max=s(e.max),n(e),t.dateView.setOptions(e),i&&(t.element.val(r.toString(i,e.format,e.culture)),t._updateARIA(i))},_editable:function(e){var t=this,n=t._dateIcon.off(f),r=t.element.off(f),o=t._inputWrapper.off(f),a=e.readonly,s=e.disable;a||s?(o.addClass(s?x:b).removeClass(s?b:x),r.attr(_,s).attr(w,a).attr(E,s).attr(H,a)):(o.addClass(b).removeClass(x).on(T,t._toggleHover),r.removeAttr(_).removeAttr(w).attr(E,!1).attr(H,!1).on("keydown"+f,B(t._keydown,t)).on("focusout"+f,B(t._blur,t)).on("focus"+f,function(){t._inputWrapper.addClass(y)}),n.on(h,B(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;a.fn.destroy.call(e),e.dateView.destroy(),e.element.off(f),e._dateIcon.off(f),e._inputWrapper.off(f),e._form&&e._form.off("reset",e._resetHandler)},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(e){return this._option(I,e)},max:function(e){return this._option(F,e)},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),null===n._old&&n.element.val(""),void(n._oldText=n.element.val()))},_toggleHover:function(t){e(t.currentTarget).toggleClass(C,"mouseenter"===t.type)},_blur:function(){var e=this,t=e.element.val();e.close(),t!==e._oldText&&e._change(t),e._inputWrapper.removeClass(y)},_click:function(){var e=this,t=e.element;e.dateView.toggle(),r.support.touch||t[0]===c()||t.focus()},_change:function(e){var t=this;e=t._update(e),+t._old!=+e&&(t._old=e,t._oldText=t.element.val(),t._typing||t.element.trigger(v),t.trigger(v)),t._typing=!1},_keydown:function(e){var t=this,n=t.dateView,i=t.element.val(),r=!1;n.popup.visible()||e.keyCode!=l.ENTER||i===t._oldText?(r=n.move(e),t._updateARIA(n._current),r||(t._typing=!0)):t._change(i)},_icon:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span></span>').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=s(n,r.parseFormats,r.culture),void(n&&(r[e]=new N(+n),i.dateView[e](n))))},_update:function(e){var t,n=this,i=n.options,o=i.min,a=i.max,l=n._value,u=s(e,i.parseFormats,i.culture),c=null===u&&null===l||u instanceof Date&&l instanceof Date;return+u===+l&&c?(t=r.toString(u,i.format,i.culture),t!==e&&n.element.val(null===u?e:t),u):(null!==u&&L(u,o)?u=P(u,o,a):V(u,o,a)||(u=null),n._value=u,n.dateView.value(u),n.element.val(u?r.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=u(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")))}});o.plugin(U)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.popup"],e)}(function(){return 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*E))}function i(){var e=new $,t=new $(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),n=new $(e.getFullYear(),e.getMonth(),e.getDate(),12,0,0);return-1*(t.getTimezoneOffset()-n.getTimezoneOffset())}function r(e){return 60*e.getHours()*E+e.getMinutes()*E+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+=O),o>a&&(a+=O),i>=o&&a>=i):!0}function a(e){var t=e.parseFormats;e.format=p(e.format||l.getCulture(e.culture).calendars.standard.patterns.t),t=W(t)?t:[t],t.splice(0,0,e.format),e.parseFormats=t}function s(e){e.preventDefault()}var l=window.kendo,u=l.keys,c=l.parseDate,d=l._activeElement,p=l._extractFormat,f=l.support,h=f.browser,m=l.ui,g=m.Widget,v="open",_="close",w="change",b=".kendoTimePicker",y="click"+b,k="k-state-default",x="disabled",C="readonly",T="li",S="<span/>",D="k-state-focused",I="k-state-hover",F="mouseenter"+b+" mouseleave"+b,M="mousedown"+b,E=6e4,O=864e5,A="k-state-selected",H="k-state-disabled",z="aria-selected",V="aria-expanded",P="aria-hidden",L="aria-disabled",R="aria-readonly",B="aria-activedescendant",N="id",W=e.isArray,U=e.extend,q=e.proxy,$=Date,j=new $;j=new $(j.getFullYear(),j.getMonth(),j.getDate(),0,0,0);var G=function(t){var n=this,i=t.id;n.options=t,n.ul=e('<ul tabindex="-1" role="listbox" aria-hidden="true" unselectable="on" class="k-list k-reset"/>').css({overflow:f.kineticScrollNeeded?"":"auto"}).on(y,T,q(n._click,n)).on("mouseenter"+b,T,function(){e(this).addClass(I)}).on("mouseleave"+b,T,function(){e(this).removeClass(I)}),n.list=e("<div class='k-list-container'/>").append(n.ul).on(M,s),i&&(n._timeViewID=i+"_timeview",n._optionID=i+"_option_selected",n.ul.attr(N,n._timeViewID)),n._popup(),n._heightHandler=q(n._height,n),n.template=l.template('<li tabindex="-1" role="option" class="k-item" unselectable="on">#=data#</li>',{useWithBlock:!1})};G.prototype={current:function(n){var i=this,r=i.options.active;return n===t?i._current:(i._current&&i._current.removeClass(A).removeAttr(z).removeAttr(N),n&&(n=e(n).addClass(A).attr(N,i._optionID).attr(z,!0),i.scroll(n[0])),i._current=n,r&&r(n),void 0)},close:function(){this.popup.close()},destroy:function(){var e=this;e.ul.off(b),e.list.off(b),e._touchScroller&&e._touchScroller.destroy(),e.popup.destroy()},open:function(){var e=this;e.ul[0].firstChild||e.bind(),e.popup.open(),e._current&&e.scroll(e._current[0])},dataBind:function(e){for(var t,n=this,i=n.options,r=i.format,a=l.toString,s=n.template,u=e.length,c=0,d="";u>c;c++)t=e[c],o(t,i.min,i.max)&&(d+=s(a(t,r,i.culture)));n._html(d)},refresh:function(){var e,t,o,a=this,s=a.options,u=s.format,c=i(),d=0>c,p=s.min,f=s.max,h=r(p),m=r(f),g=s.interval*E,v=l.toString,_=a.template,w=new $(+p),b=w.getDate(),y=0,k="";for(o=d?(O+c*E)/g:O/g,h!=m&&(h>m&&(m+=O),o=(m-h)/g+1),t=parseInt(o,10);o>y;y++)y&&n(w,g,d),m&&t==y&&(e=r(w),b<w.getDate()&&(e+=O),e>m&&(w=new $(+f))),k+=_(v(w,u,s.culture));a._html(k)},bind:function(){var e=this,t=e.options.dates;t&&t[0]?e.dataBind(t):e.refresh()},_html:function(e){var t=this;t.ul[0].innerHTML=e,t.popup.unbind(v,t._heightHandler),t.popup.one(v,t._heightHandler),t.current(null),t.select(t._value)},scroll:function(e){if(e){var t,n=this.ul[0],i=e.offsetTop,r=e.offsetHeight,o=n.scrollTop,a=n.clientHeight,s=i+r,l=this._touchScroller;l?(t=this.list.height(),i>t&&(i=i-t+r),l.scrollTo(0,-i)):n.scrollTop=o>i?i:s>o+a?s-a:o}},select:function(t){var n=this,i=n.options,r=n._current;t instanceof Date&&(t=l.toString(t,i.format,i.culture)),"string"==typeof t&&(r&&r.text()===t?t=r:(t=e.grep(n.ul[0].childNodes,function(e){return(e.textContent||e.innerText)==t}),t=t[0]?t:null)),n.current(t)},setOptions:function(e){var t=this.options;e.min=c(e.min),e.max=c(e.max),this.options=U(t,e,{active:t.active,change:t.change,close:t.close,open:t.open}),this.bind()},toggle:function(){var e=this;e.popup.visible()?e.close():e.open()},value:function(e){var t=this;t._value=e,t.ul[0].firstChild&&t.select(e)},_click:function(t){var n=this,i=e(t.currentTarget),r=i.text(),o=n.options.dates;o&&o.length>0&&(r=o[i.index()]),t.isDefaultPrevented()||(n.select(i),n.options.change(r,!0),n.close())},_height:function(){var e=this,t=e.list,n=t.parent(".k-animation-container"),i=e.options.height;e.ul[0].children.length&&t.add(n).show().height(e.ul[0].scrollHeight>i?i:"auto").hide()},_parse:function(e){var t=this,n=t.options,i=t._value||j;return e instanceof $?e:(e=c(e,n.parseFormats,n.culture),e&&(e=new $(i.getFullYear(),i.getMonth(),i.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),e)},_adjustListWidth:function(){var e,t,n=this.list,i=n[0].style.width,r=this.options.anchor;(n.data("width")||!i)&&(e=window.getComputedStyle?window.getComputedStyle(r[0],null):0,t=e?parseFloat(e.width):r.outerWidth(),e&&(h.mozilla||h.msie)&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),i=t-(n.outerWidth()-n.width()),n.css({fontFamily:r.css("font-family"),width:i}).data("width",i))},_popup:function(){var e=this,t=e.list,n=e.options,i=n.anchor;e.popup=new m.Popup(t,U(n.popup,{anchor:i,open:n.open,close:n.close,animation:n.animation,isRtl:f.isRtl(n.anchor)})),e._touchScroller=l.touchScroller(e.popup.element)},move:function(e){var t=this,n=e.keyCode,i=t.ul[0],r=t._current,o=n===u.DOWN;if(n===u.UP||o){if(e.altKey)return void t.toggle(o);r=o?r?r[0].nextSibling:i.firstChild:r?r[0].previousSibling:i.lastChild,r&&t.select(r),t.options.change(t._current.text()),e.preventDefault()}else(n===u.ENTER||n===u.TAB||n===u.ESC)&&(e.preventDefault(),r&&t.options.change(r.text(),!0),t.close())}},G.getMilliseconds=r,l.TimeView=G;var Y=g.extend({init:function(t,n){var i,r,o,s=this;g.fn.init.call(s,t,n),t=s.element,n=s.options,n.min=c(t.attr("min"))||c(n.min),n.max=c(t.attr("max"))||c(n.max),a(n),s._initialOptions=U({},n),s._wrapper(),s.timeView=r=new G(U({},n,{id:t.attr(N),anchor:s.wrapper,format:n.format,change:function(e,n){n?s._change(e):t.val(e)},open:function(e){s.timeView._adjustListWidth(),s.trigger(v)?e.preventDefault():(t.attr(V,!0),i.attr(P,!1))},close:function(e){s.trigger(_)?e.preventDefault():(t.attr(V,!1),i.attr(P,!0))},active:function(e){t.removeAttr(B),e&&t.attr(B,r._optionID)}})),i=r.ul,s._icon(),s._reset();try{t[0].setAttribute("type","text")}catch(u){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1,"aria-owns":r._timeViewID}),o=t.is("[disabled]")||e(s.element).parents("fieldset").is(":disabled"),o?s.enable(!1):s.readonly(t.is("[readonly]")),s._old=s._update(n.value||s.element.val()),s._oldText=t.val(),l.notify(s)},options:{name:"TimePicker",min:j,max:j,format:"",dates:[],parseFormats:[],value:null,interval:30,height:200,animation:{}},events:[v,_,w],setOptions:function(e){var t=this,n=t._value;g.fn.setOptions.call(t,e),e=t.options,a(e),t.timeView.setOptions(e),n&&t.element.val(l.toString(n,e.format,e.culture))},dataBind:function(e){W(e)&&this.timeView.dataBind(e)},_editable:function(e){var t=this,n=e.disable,i=e.readonly,r=t._arrow.off(b),o=t.element.off(b),a=t._inputWrapper.off(b);i||n?(a.addClass(n?H:k).removeClass(n?k:H),o.attr(x,n).attr(C,i).attr(L,n).attr(R,i)):(a.addClass(k).removeClass(H).on(F,t._toggleHover),o.removeAttr(x).removeAttr(C).attr(L,!1).attr(R,!1).on("keydown"+b,q(t._keydown,t)).on("focusout"+b,q(t._blur,t)).on("focus"+b,function(){t._inputWrapper.addClass(D)}),r.on(y,q(t._click,t)).on(M,s))},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;g.fn.destroy.call(e),e.timeView.destroy(),e.element.off(b),e._arrow.off(b),e._inputWrapper.off(b),e._form&&e._form.off("reset",e._resetHandler)},close:function(){this.timeView.close()},open:function(){this.timeView.open()},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),null===n._old&&n.element.val(""),void(n._oldText=n.element.val()))},_blur:function(){var e=this,t=e.element.val();e.close(),t!==e._oldText&&e._change(t),e._inputWrapper.removeClass(D)},_click:function(){var e=this,t=e.element;e.timeView.toggle(),f.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._typing||t.element.trigger(w),t.trigger(w)),t._typing=!1},_icon:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(i)),n._arrow=t.attr({role:"button","aria-controls":n.timeView._timeViewID})},_keydown:function(e){var t=this,n=e.keyCode,i=t.timeView,r=t.element.val();i.popup.visible()||e.altKey?i.move(e):n===u.ENTER&&r!==t._oldText?t._change(r):t._typing=!0},_option:function(e,n){var i=this,r=i.options;return n===t?r[e]:(n=i.timeView._parse(n),void(n&&(n=new $(+n),r[e]=n,i.timeView.options[e]=n,i.timeView.bind())))},_toggleHover:function(t){e(t.currentTarget).toggleClass(I,"mouseenter"===t.type)},_update:function(e){var t=this,n=t.options,i=t.timeView,r=i._parse(e);return o(r,n.min,n.max)||(r=null),t._value=r,t.element.val(r?l.toString(r,n.format,n.culture):e),i.value(r),r},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-timepicker"),t[0]||(t=i.wrap(S).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(S).parent()),t[0].style.cssText=i[0].style.cssText,n.wrapper=t.addClass("k-widget k-timepicker k-header").addClass(i[0].className),i.css({width:"100%",height:i[0].style.height}),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))}});m.plugin(Y)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.datepicker","./kendo.timepicker"],e)}(function(){return function(e,t){function n(e){var t=new Date(2100,0,1);return t.setMinutes(-e),t}function i(e){e.preventDefault()}function r(t){var n,i=o.getCulture(t.culture).calendars.standard.patterns,r=!t.parseFormats.length;t.format=u(t.format||i.g),t.timeFormat=n=u(t.timeFormat||i.t),o.DateView.normalize(t),r&&t.parseFormats.push("yyyy-MM-ddTHH:mm:ss"),-1===e.inArray(n,t.parseFormats)&&t.parseFormats.splice(1,0,n)}var o=window.kendo,a=o.TimeView,s=o.parseDate,l=o._activeElement,u=o._extractFormat,c=o.calendar,d=c.isInRange,p=c.restrictValue,f=c.isEqualDatePart,h=a.getMilliseconds,m=o.ui,g=m.Widget,v="open",_="close",w="change",b=".kendoDateTimePicker",y="click"+b,k="disabled",x="readonly",C="k-state-default",T="k-state-focused",S="k-state-hover",D="k-state-disabled",I="mouseenter"+b+" mouseleave"+b,F="mousedown"+b,M="month",E="<span/>",O="aria-activedescendant",A="aria-expanded",H="aria-hidden",z="aria-owns",V="aria-disabled",P="aria-readonly",L=Date,R=new L(1800,0,1),B=new L(2099,11,31),N={view:"date"},W={view:"time"},U=e.extend,q=g.extend({init:function(t,n){var i,a=this;g.fn.init.call(a,t,n),t=a.element,n=a.options,n.min=s(t.attr("min"))||s(n.min),n.max=s(t.attr("max"))||s(n.max),r(n),a._initialOptions=U({},n),a._wrapper(),a._views(),a._icons(),a._reset(),a._template();try{t[0].setAttribute("type","text")}catch(l){t[0].type="text"}t.addClass("k-input").attr({role:"combobox","aria-expanded":!1}),a._midnight=a._calculateMidnight(n.min,n.max),i=t.is("[disabled]")||e(a.element).parents("fieldset").is(":disabled"),i?a.enable(!1):a.readonly(t.is("[readonly]")),a._old=a._update(n.value||a.element.val()),a._oldText=t.val(),o.notify(a)},options:{name:"DateTimePicker",value:null,format:"",timeFormat:"",culture:"",parseFormats:[],dates:[],min:new L(R),max:new L(B),interval:30,height:200,footer:"",start:M,depth:M,animation:{},month:{},ARIATemplate:'Current focused date is #=kendo.toString(data.current, "d")#'},events:[v,_,w],setOptions:function(e){{var t,n,i,a=this,l=a._value;a.dateView.options,a.timeView.options}g.fn.setOptions.call(a,e),e=a.options,e.min=t=s(e.min),e.max=n=s(e.max),r(e),a._midnight=a._calculateMidnight(e.min,e.max),i=e.value||a._value||a.dateView._current,t&&!f(t,i)&&(t=new L(R)),n&&!f(n,i)&&(n=new L(B)),a.dateView.setOptions(e),a.timeView.setOptions(U({},e,{format:e.timeFormat,min:t,max:n})),l&&(a.element.val(o.toString(l,e.format,e.culture)),a._updateARIA(l))},_editable:function(t){var n=this,r=n.element.off(b),a=n._dateIcon.off(b),s=n._timeIcon.off(b),u=n._inputWrapper.off(b),c=t.readonly,d=t.disable;c||d?(u.addClass(d?D:C).removeClass(d?C:D),r.attr(k,d).attr(x,c).attr(V,d).attr(P,c)):(u.addClass(C).removeClass(D).on(I,n._toggleHover),r.removeAttr(k).removeAttr(x).attr(V,!1).attr(P,!1).on("keydown"+b,e.proxy(n._keydown,n)).on("focus"+b,function(){n._inputWrapper.addClass(T)}).on("focusout"+b,function(){n._inputWrapper.removeClass(T),r.val()!==n._oldText&&n._change(r.val()),n.close("date"),n.close("time")}),a.on(F,i).on(y,function(){n.toggle("date"),o.support.touch||r[0]===l()||r.focus()}),s.on(F,i).on(y,function(){n.toggle("time"),o.support.touch||r[0]===l()||r.focus()}))},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;g.fn.destroy.call(e),e.dateView.destroy(),e.timeView.destroy(),e.element.off(b),e._dateIcon.off(b),e._timeIcon.off(b),e._inputWrapper.off(b),e._form&&e._form.off("reset",e._resetHandler)},close:function(e){"time"!==e&&(e="date"),this[e+"View"].close()},open:function(e){"time"!==e&&(e="date"),this[e+"View"].open()},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},toggle:function(e){var t="timeView";"time"!==e?e="date":t="dateView",this[e+"View"].toggle(),this[t].close()},value:function(e){var n=this;return e===t?n._value:(n._old=n._update(e),null===n._old&&n.element.val(""),void(n._oldText=n.element.val()))},_change:function(e){var t=this;e=t._update(e),+t._old!=+e&&(t._old=e,t._oldText=t.element.val(),t.trigger(w),t._typing||t.element.trigger(w))},_option:function(e,i){var r,o,a=this,l=a.options,u=a.timeView,c=u.options,d=a._value||a._old;if(i===t)return l[e];if(i=s(i,l.parseFormats,l.culture)){if(l.min.getTime()===l.max.getTime()&&(c.dates=[]),l[e]=new L(i.getTime()),a.dateView[e](i),a._midnight=a._calculateMidnight(l.min,l.max),d&&(r=f(l.min,d),o=f(l.max,d)),r||o){if(c[e]=i,r&&!o&&(c.max=n(l.interval)),o){if(a._midnight)return void u.dataBind([B]);r||(c.min=R)}}else c.max=B,c.min=R;u.bind()}},_toggleHover:function(t){e(t.currentTarget).toggleClass(S,"mouseenter"===t.type)},_update:function(t){var i,r,a,l,u,c=this,h=c.options,m=h.min,g=h.max,v=h.dates,_=c.timeView,w=c._value,b=s(t,h.parseFormats,h.culture),y=null===b&&null===w||b instanceof Date&&w instanceof Date;return+b===+w&&y?(u=o.toString(b,h.format,h.culture),u!==t&&c.element.val(null===b?t:u),b):(null!==b&&f(b,m)?b=p(b,m,g):d(b,m,g)||(b=null),c._value=b,_.value(b),c.dateView.value(b),b&&(a=c._old,r=_.options,v[0]&&(v=e.grep(v,function(e){return f(b,e)}),v[0]&&(_.dataBind(v),l=!0)),l||(f(b,m)&&(r.min=m,r.max=n(h.interval),i=!0),f(b,g)&&(c._midnight?(_.dataBind([B]),l=!0):(r.max=g,i||(r.min=R),i=!0))),!l&&(!a&&i||a&&!f(a,b))&&(i||(r.max=B,r.min=R),_.bind())),c.element.val(b?o.toString(b,h.format,h.culture):t),c._updateARIA(b),b)},_keydown:function(e){var t=this,n=t.dateView,i=t.timeView,r=t.element.val(),a=n.popup.visible();e.altKey&&e.keyCode===o.keys.DOWN?t.toggle(a?"time":"date"):a?(n.move(e),t._updateARIA(n._current)):i.popup.visible()?i.move(e):e.keyCode===o.keys.ENTER&&r!==t._oldText?t._change(r):t._typing=!0},_views:function(){var e,t,n,i,r,l,u=this,c=u.element,p=u.options,f=c.attr("id");u.dateView=e=new o.DateView(U({},p,{id:f,anchor:u.wrapper,change:function(){var t,n=e.calendar.value(),i=+n,r=+p.min,o=+p.max;(i===r||i===o)&&(t=new L(+u._value),t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),d(t,r,o)&&(n=t)),u._change(n),u.close("date")},close:function(e){u.trigger(_,N)?e.preventDefault():(c.attr(A,!1),n.attr(H,!0),t.popup.visible()||c.removeAttr(z))},open:function(t){u.trigger(v,N)?t.preventDefault():(c.val()!==u._oldText&&(l=s(c.val(),p.parseFormats,p.culture),u.dateView[l?"current":"value"](l)),n.attr(H,!1),c.attr(A,!0).attr(z,e._dateViewID),u._updateARIA(l))}})),n=e.div,r=p.min.getTime(),u.timeView=t=new a({id:f,value:p.value,anchor:u.wrapper,animation:p.animation,format:p.timeFormat,culture:p.culture,height:p.height,interval:p.interval,min:new L(R),max:new L(B),dates:r===p.max.getTime()?[new Date(r)]:[],parseFormats:p.parseFormats,change:function(n,i){n=t._parse(n),n<p.min?(n=new L(+p.min),t.options.min=n):n>p.max&&(n=new L(+p.max),t.options.max=n),i?(u._timeSelected=!0,u._change(n)):(c.val(o.toString(n,p.format,p.culture)),e.value(n),u._updateARIA(n))},close:function(t){u.trigger(_,W)?t.preventDefault():(i.attr(H,!0),c.attr(A,!1),e.popup.visible()||c.removeAttr(z))},open:function(e){t._adjustListWidth(),u.trigger(v,W)?e.preventDefault():(c.val()!==u._oldText&&(l=s(c.val(),p.parseFormats,p.culture),u.timeView.value(l)),i.attr(H,!1),c.attr(A,!0).attr(z,t._timeViewID),t.options.active(t.current()))},active:function(e){c.removeAttr(O),e&&c.attr(O,t._optionID)}}),i=t.ul},_icons:function(){var t,n=this,i=n.element;t=i.next("span.k-select"),t[0]||(t=e('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(i)),t=t.children(),n._dateIcon=t.eq(0).attr({role:"button","aria-controls":n.dateView._dateViewID}),n._timeIcon=t.eq(1).attr({role:"button","aria-controls":n.timeView._timeViewID})},_wrapper:function(){var t,n=this,i=n.element;t=i.parents(".k-datetimepicker"),t[0]||(t=i.wrap(E).parent().addClass("k-picker-wrap k-state-default"),t=t.wrap(E).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-datetimepicker 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=o.template(this.options.ARIATemplate)},_calculateMidnight:function(e,t){return h(e)+h(t)===0},_updateARIA:function(e){var t,n=this,i=n.dateView.calendar;n.element.removeAttr(O),i&&(t=i._cell,t.attr("aria-label",n._ariaTemplate({current:e||i.current()})),n.element.attr(O,t.attr("id")))}});m.plugin(q)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.data","./kendo.popup"],e)}(function(){return function(e,t){function n(e,t){var n,i,r,o=t.length,a=[];for(i=0;i<e.length;i++)for(n=e[i],r=0;o>r;r++)n===t[r]&&a.push({index:i,item:n});return a}function i(t,n){var r,o=!1;return t.filters&&(r=e.grep(t.filters,function(e){return o=i(e,n),e.filters?e.filters.length:e.field!=n}),o||t.filters.length===r.length||(o=!0),t.filters=r),o}var r=window.kendo,o=r.ui,a=o.Widget,s=r.keys,l=r.support,u=r.htmlEncode,c=r._activeElement,d=r.data.ObservableArray,p="id",f="change",h="k-state-focused",m="k-state-hover",g="k-loading",v="open",_="close",w="select",b="selected",y="requestStart",k="requestEnd",x="width",C=e.extend,T=e.proxy,S=e.isArray,D=l.browser,I=D.msie&&D.version<9,F=/"/g,M={ComboBox:"DropDownList",DropDownList:"ComboBox"},E=r.ui.DataBoundWidget.extend({init:function(t,n){var i,r=this,o=r.ns;a.fn.init.call(r,t,n),t=r.element,n=r.options,r._isSelect=t.is(w),r._isSelect&&r.element[0].length&&(n.dataSource||(n.dataTextField=n.dataTextField||"text",n.dataValueField=n.dataValueField||"value")),r.ul=e('<ul unselectable="on" class="k-list k-reset"/>').attr({tabIndex:-1,"aria-hidden":!0}),r.list=e("<div class='k-list-container'/>").append(r.ul).on("mousedown"+o,T(r._listMousedown,r)),i=t.attr(p),i&&(r.list.attr(p,i+"-list"),r.ul.attr(p,i+"_listbox")),r._header(),r._accessors(),r._initValue()},options:{valuePrimitive:!1,headerTemplate:""},setOptions:function(e){a.fn.setOptions.call(this,e),e&&e.enable!==t&&(e.enabled=e.enable)},focus:function(){this._focused.focus()},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)})},_listOptions:function(e){var t=this.options;return e=e||{},e={height:e.height||t.height,dataValueField:e.dataValueField||t.dataValueField,dataTextField:e.dataTextField||t.dataTextField,groupTemplate:e.groupTemplate||t.groupTemplate,fixedGroupTemplate:e.fixedGroupTemplate||t.fixedGroupTemplate,template:e.template||t.template},e.template||(e.template="#:"+r.expr(e.dataTextField,"data")+"#"),e},_initList:function(){var n=this,i=n.options,o=i.virtual,a=!!o,s=i.value,l=T(n._listBound,n),u={autoBind:!1,selectable:!0,dataSource:n.dataSource,click:T(n._click,n),change:T(n._listChange,n),activate:T(n._activateItem,n),deactivate:T(n._deactivateItem,n),dataBinding:function(){n.trigger("dataBinding"),n._angularItems("cleanup")},dataBound:l,listBound:l,selectedItemChange:T(n._listChange,n)};u=e.extend(n._listOptions(),u,"object"==typeof o?o:{}),n.listView=a?new r.ui.VirtualList(n.ul,u):new r.ui.StaticList(n.ul,u),s!==t&&n.listView.value(s).done(function(){var e=i.text;!n.listView.filter()&&n.input&&(-1===n.selectedIndex?((e===t||null===e)&&(e=s),n._accessor(s),n.input.val(e),n._placeholder()):-1===n._oldIndex&&(n._oldIndex=n.selectedIndex))})},_listMousedown:function(e){this.filterInput&&this.filterInput[0]===e.target||e.preventDefault()},_filterSource:function(e,t){var n=this,r=n.options,o=n.dataSource,a=C({},o.filter()||{}),s=i(a,r.dataTextField);(e||s)&&n.trigger("filtering",{filter:e})||(e&&(a=a.filters||[],a.push(e)),t?o.read(a):o.filter(a))},_header:function(){var t,n=this,i=n.options.headerTemplate;e.isFunction(i)&&(i=i({})),i&&(n.list.prepend(i),t=n.ul.prev(),n.header=t[0]?t:null,n.header&&n.angular("compile",function(){return{elements:n.header}}))},_initValue:function(){var e=this,t=e.options.value;null!==t?e.element.val(t):(t=e._accessor(),e.options.value=t),e._old=t},_ignoreCase:function(){var e,t=this,n=t.dataSource.reader.model;n&&n.fields&&(e=n.fields[t.options.dataTextField],e&&e.type&&"string"!==e.type&&(t.options.ignoreCase=!1))},_focus:function(e){return this.listView.focus(e)},current:function(e){return this._focus(e)},items:function(){return this.ul[0].children},destroy:function(){var e=this,t=e.ns;a.fn.destroy.call(e),e._unbindDataSource(),e.listView.destroy(),e.list.off(t),e.popup.destroy(),
  e._form&&e._form.off("reset",e._resetHandler)},dataItem:function(n){var i=this;return n===t?i.listView.selectedDataItems()[0]:("number"!=typeof n&&(n=e(i.items()).index(n)),i.dataSource.flatView()[n])},_activateItem:function(){var e=this.listView.focus();e&&this._focused.add(this.filterInput).attr("aria-activedescendant",e.attr("id"))},_deactivateItem:function(){this._focused.add(this.filterInput).removeAttr("aria-activedescendant")},_accessors:function(){var e=this,t=e.element,n=e.options,i=r.getter,o=t.attr(r.attr("text-field")),a=t.attr(r.attr("value-field"));!n.dataTextField&&o&&(n.dataTextField=o),!n.dataValueField&&a&&(n.dataValueField=a),e._text=i(n.dataTextField),e._value=i(n.dataValueField)},_aria:function(e){var n=this,i=n.options,r=n._focused.add(n.filterInput);i.suggest!==t&&r.attr("aria-autocomplete",i.suggest?"both":"list"),e=e?e+" "+n.ul[0].id:n.ul[0].id,r.attr("aria-owns",e),n.ul.attr("aria-live",i.filter&&"none"!==i.filter?"polite":"off")},_blur:function(){var e=this;e._change(),e.close()},_change:function(){var e,n=this,i=n.selectedIndex,r=n.options.value,o=n.value();n._isSelect&&!n.listView.isBound()&&r&&(o=r),o!==n._old?e=!0:i!==t&&i!==n._oldIndex&&(e=!0),e&&(n._old=o,n._oldIndex=i,n._typing||n.element.trigger(f),n.trigger(f)),n.typing=!1},_data:function(){return this.dataSource.view()},_enable:function(){var e=this,n=e.options,i=e.element.is("[disabled]");n.enable!==t&&(n.enabled=n.enable),!n.enabled||i?e.enable(!1):e.readonly(e.element.is("[readonly]"))},_dataValue:function(e){var n=this._value(e);return n===t&&(n=this._text(e)),n},_offsetHeight:function(){var t=0,n=this.listView.content.prevAll(":visible");return n.each(function(){var n=e(this);t+=n.hasClass("k-list-filter")?n.children().outerHeight():n.outerHeight()}),t},_height:function(e){var t,n,i=this,r=i.list,o=i.options.height,a=i.popup.visible();return e&&(n=r.add(r.parent(".k-animation-container")).show(),o=i.listView.content[0].scrollHeight>o?o:"auto",n.height(o),"auto"!==o&&(t=i._offsetHeight(),t&&(o-=t)),i.listView.content.height(o),a||n.hide()),o},_adjustListWidth:function(){var e,t,n=this.list,i=n[0].style.width,r=this.wrapper;if(n.data(x)||!i)return e=window.getComputedStyle?window.getComputedStyle(r[0],null):0,t=e?parseFloat(e.width):r.outerWidth(),e&&D.msie&&(t+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),i="border-box"!==n.css("box-sizing")?t-(n.outerWidth()-n.width()):t,n.css({fontFamily:r.css("font-family"),width:i}).data(x,i),!0},_openHandler:function(e){this._adjustListWidth(),this.trigger(v)?e.preventDefault():(this._focused.attr("aria-expanded",!0),this.ul.attr("aria-hidden",!1))},_closeHandler:function(e){this.trigger(_)?e.preventDefault():(this._focused.attr("aria-expanded",!1),this.ul.attr("aria-hidden",!0))},_focusItem:function(){var e=this.listView,n=e.focus(),i=e.select();i=i[i.length-1],i===t&&this.options.highlightFirst&&!n&&(i=0),i!==t?e.focus(i):e.scrollToIndex(0)},_calculateGroupPadding:function(e){var t=this.ul.children(".k-first:first"),n=this.listView.content.prev(".k-group-header"),i=0;n[0]&&"none"!==n[0].style.display&&("auto"!==e&&(i=r.support.scrollbar()),i+=parseFloat(t.css("border-right-width"),10)+parseFloat(t.children(".k-group").css("padding-right"),10),n.css("padding-right",i))},_firstOpen:function(){var e=this._height(this.dataSource.flatView().length);this._calculateGroupPadding(e)},_popup:function(){var e=this;e.popup=new o.Popup(e.list,C({},e.options.popup,{anchor:e.wrapper,open:T(e._openHandler,e),close:T(e._closeHandler,e),animation:e.options.animation,isRtl:l.isRtl(e.wrapper)})),e.options.virtual||e.popup.one(v,T(e._firstOpen,e))},_makeUnselectable:function(){I&&this.list.find("*").not(".k-textbox").attr("unselectable","on")},_toggleHover:function(t){e(t.currentTarget).toggleClass(m,"mouseenter"===t.type)},_toggle:function(e,n){var i=this,r=l.mobileOS&&(l.touch||l.MSPointers||l.pointers);e=e!==t?e:!i.popup.visible(),n||r||i._focused[0]===c()||(i._prevent=!0,i._focused.focus(),i._prevent=!1),i[e?v:_]()},_triggerCascade:function(){var e=this;e._cascadeTriggered&&e._old===e.value()&&e._oldIndex===e.selectedIndex||(e._cascadeTriggered=!0,e.trigger("cascade",{userTriggered:e._userTriggered}))},_unbindDataSource:function(){var e=this;e.dataSource.unbind(y,e._requestStartHandler).unbind(k,e._requestEndHandler).unbind("error",e._errorHandler)}});C(E,{inArray:function(e,t){var n,i,r=t.children;if(!e||e.parentNode!==t)return-1;for(n=0,i=r.length;i>n;n++)if(e===r[n])return n;return-1}}),r.ui.List=E,o.Select=E.extend({init:function(e,t){E.fn.init.call(this,e,t),this._initial=this.element.val()},setDataSource:function(e){var t,n=this;n.options.dataSource=e,n._dataSource(),n.listView.setDataSource(n.dataSource),n.options.autoBind&&n.dataSource.fetch(),t=n._parentWidget(),t&&n._cascadeSelect(t)},close:function(){this.popup.close()},select:function(e){var n=this;return e===t?n.selectedIndex:(n._select(e),n._old=n._accessor(),n._oldIndex=n.selectedIndex,void 0)},search:function(e){e="string"==typeof e?e:this.text();var t=this,n=e.length,i=t.options,r=i.ignoreCase,o=i.filter,a=i.dataTextField;clearTimeout(t._typingTimeout),(!n||n>=i.minLength)&&(t._state="filter",t.listView.filter(!0),"none"===o?t._filter(e):(t._open=!0,t._filterSource({value:r?e.toLowerCase():e,field:a,operator:o,ignoreCase:r})))},_accessor:function(e,t){return this[this._isSelect?"_accessorSelect":"_accessorInput"](e,t)},_accessorInput:function(e){var n=this.element[0];return e===t?n.value:(null===e&&(e=""),void(n.value=e))},_accessorSelect:function(e,n){var i,r=this.element[0],o=r.selectedIndex;return e===t?(o>-1&&(i=r.options[o]),i&&(e=i.value),e||""):(o>-1&&r.options[o].removeAttribute(b),n===t&&(n=-1),null!==e&&""!==e&&-1==n?this._custom(e):(e?r.value=e:r.selectedIndex=n,r.selectedIndex>-1&&(i=r.options[r.selectedIndex]),i&&i.setAttribute(b,b)),void 0)},_custom:function(t){var n=this,i=n.element,r=n._customOption;r||(r=e("<option/>"),n._customOption=r,i.append(r)),r.text(t),r[0].setAttribute(b,b),r[0].selected=!0},_hideBusy:function(){var e=this;clearTimeout(e._busy),e._arrow.removeClass(g),e._focused.attr("aria-busy",!1),e._busy=null},_showBusy:function(){var e=this;e._request=!0,e._busy||(e._busy=setTimeout(function(){e._arrow&&(e._focused.attr("aria-busy",!0),e._arrow.addClass(g))},100))},_requestEnd:function(){this._request=!1,this._hideBusy()},_dataSource:function(){var t,n=this,i=n.element,o=n.options,a=o.dataSource||{};a=e.isArray(a)?{data:a}:a,n._isSelect&&(t=i[0].selectedIndex,t>-1&&(o.index=t),a.select=i,a.fields=[{field:o.dataTextField},{field:o.dataValueField}]),n.dataSource?n._unbindDataSource():(n._requestStartHandler=T(n._showBusy,n),n._requestEndHandler=T(n._requestEnd,n),n._errorHandler=T(n._hideBusy,n)),n.dataSource=r.data.DataSource.create(a).bind(y,n._requestStartHandler).bind(k,n._requestEndHandler).bind("error",n._errorHandler)},_firstItem:function(){this.listView.first()},_lastItem:function(){this.listView.last()},_nextItem:function(){this.listView.next()},_prevItem:function(){this.listView.prev()},_move:function(e){var t,n,i,r=this,o=e.keyCode,a=(r.ul[0],o===s.DOWN);if(o===s.UP||a){if(e.altKey)r.toggle(a);else{if(!r.listView.isBound())return r._fetch||(r.dataSource.one(f,function(){r._fetch=!1,r._move(e)}),r._fetch=!0,r._filterSource()),e.preventDefault(),!0;if(i=r._focus(),r._fetch||i&&!i.hasClass("k-state-selected")||(a?(r._nextItem(),r._focus()||r._lastItem()):(r._prevItem(),r._focus()||r._firstItem())),r.trigger(w,{item:r.listView.focus()}))return void r._focus(i);r._select(r._focus(),!0),r.popup.visible()||r._blur()}e.preventDefault(),n=!0}else if(o===s.ENTER||o===s.TAB){r.popup.visible()&&e.preventDefault(),i=r._focus(),t=r.dataItem(),r.popup.visible()||t&&r.text()===r._text(t)||(i=null);var l=r.filterInput&&r.filterInput[0]===c();if(i){if(r.trigger(w,{item:i}))return;r._select(i)}else r.input&&(r._accessor(r.input.val()),r.listView.value(r.input.val()));r._focusElement&&r._focusElement(r.wrapper),l&&o===s.TAB?r.wrapper.focusout():r._blur(),r.close(),n=!0}else o===s.ESC&&(r.popup.visible()&&e.preventDefault(),r.close(),n=!0);return n},_fetchData:function(){var e=this,t=!!e.dataSource.view().length;e._request||e.options.cascadeFrom||e.listView.isBound()||e._fetch||t||(e._fetch=!0,e.dataSource.fetch().done(function(){e._fetch=!1}))},_options:function(e,n,i){var r,o,a,s,l=this,c=l.element,d=e.length,p="",f=0;for(n&&(p=n);d>f;f++)r="<option",o=e[f],a=l._text(o),s=l._value(o),s!==t&&(s+="",-1!==s.indexOf('"')&&(s=s.replace(F,"&quot;")),r+=' value="'+s+'"'),r+=">",a!==t&&(r+=u(a)),r+="</option>",p+=r;c.html(p),i!==t&&(c[0].value=i)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),r=i?e("#"+i):n.closest("form");r[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initial)})},t._form=r.on("reset",t._resetHandler))},_parentWidget:function(){var t=this.options.name,n=e("#"+this.options.cascadeFrom),i=n.data("kendo"+t);return i||(i=n.data("kendo"+M[t])),i},_cascade:function(){var e,t=this,n=t.options,i=n.cascadeFrom;if(i){if(e=t._parentWidget(),!e)return;n.autoBind=!1,e.first("cascade",function(n){t._userTriggered=n.userTriggered,t.listView.isBound()&&t._clearSelection(e,!0),t._cascadeSelect(e)}),e.listView.isBound()?t._cascadeSelect(e):e.value()||t.enable(!1)}},_cascadeChange:function(e){var t=this,n=t._accessor();t._userTriggered?t._clearSelection(e,!0):n?(n!==t.listView.value()[0]&&t.value(n),t.dataSource.view()[0]&&-1!==t.selectedIndex||t._clearSelection(e,!0)):t.dataSource.flatView().length&&t.select(t.options.index),t.enable(),t._triggerCascade(),t._userTriggered=!1},_cascadeSelect:function(e){var t,n,r=this,o=e.dataItem(),a=o?e._value(o):null,s=r.options.cascadeFromField||e.options.dataValueField;if(a||0===a){t=r.dataSource.filter()||{},i(t,s),n=t.filters||[],n.push({field:s,operator:"eq",value:a});var l=function(){r.unbind("dataBound",l),r._cascadeChange(e)};r.first("dataBound",l),r.dataSource.filter(n)}else r.enable(!1),r._clearSelection(e),r._triggerCascade(),r._userTriggered=!1}});var O=".StaticList",A=r.ui.DataBoundWidget.extend({init:function(t,n){a.fn.init.call(this,t,n),this.element.attr("role","listbox").on("click"+O,"li",T(this._click,this)).on("mouseenter"+O,"li",function(){e(this).addClass(m)}).on("mouseleave"+O,"li",function(){e(this).removeClass(m)}),this.content=this.element.wrap("<div unselectable='on'></div>").parent().css({overflow:"auto",position:"relative"}),this.header=this.content.before('<div class="k-group-header" style="display:none"></div>').prev(),this._bound=!1,this._optionID=r.guid(),this._selectedIndices=[],this._view=[],this._dataItems=[],this._values=[];var i=this.options.value;i&&(this._values=e.isArray(i)?i.slice(0):[i]),this._getter(),this._templates(),this.setDataSource(this.options.dataSource),this._onScroll=T(function(){var e=this;clearTimeout(e._scrollId),e._scrollId=setTimeout(function(){e._renderHeader()},50)},this)},options:{name:"StaticList",dataValueField:null,selectable:!0,template:null,groupTemplate:null,fixedGroupTemplate:null},events:["click","change","activate","deactivate","dataBinding","dataBound","selectedItemChange"],setDataSource:function(t){var n,i=this,o=t||{};o=e.isArray(o)?{data:o}:o,o=r.data.DataSource.create(o),i.dataSource?(i.dataSource.unbind(f,i._refreshHandler),n=i.value(),i.value([]),i._bound=!1,i.value(n)):i._refreshHandler=T(i.refresh,i),i.dataSource=o.bind(f,i._refreshHandler),i._fixedHeader()},setOptions:function(e){a.fn.setOptions.call(this,e),this._getter(),this._templates(),this._render()},destroy:function(){this.element.off(O),this._refreshHandler&&this.dataSource.unbind(f,this._refreshHandler),a.fn.destroy.call(this)},scrollToIndex:function(e){var t=this.element[0].children[e];t&&this.scroll(t)},scroll:function(e){if(e){e[0]&&(e=e[0]);var t=this.content[0],n=e.offsetTop,i=e.offsetHeight,r=t.scrollTop,o=t.clientHeight,a=n+i;r>n?r=n:a>r+o&&(r=a-o),t.scrollTop=r}},selectedDataItems:function(n){var i=this._valueGetter;return n===t?this._dataItems.slice():(this._dataItems=n,void(this._values=e.map(n,function(e){return i(e)})))},next:function(){var e=this.focus();e=e?e.next():0,this.focus(e)},prev:function(){var e=this.focus();e=e?e.prev():this.element[0].children.length-1,this.focus(e)},first:function(){this.focus(this.element[0].children[0])},last:function(){this.focus(this.element[0].children[this.element[0].children.length-1])},focus:function(n){var i,r=this,o=r._optionID;return n===t?r._current:(n=r._get(n),n=n[n.length-1],n=e(this.element[0].children[n]),r._current&&(r._current.removeClass(h).removeAttr("aria-selected").removeAttr(p),r.trigger("deactivate")),i=!!n[0],i&&(n.addClass(h),r.scroll(n),n.attr("id",o)),r._current=i?n:null,void r.trigger("activate"))},focusIndex:function(){return this.focus()?this.focus().index():t},filter:function(e,n){return e===t?this._filtered:void(this._filtered=e)},skipUpdate:function(e){this._skipUpdate=e},select:function(n){var i,r=this,o=r.options.selectable,a="multiple"!==o&&o!==!1,s=r._selectedIndices,l=[],u=[];if(n===t)return s.slice();if(n=r._get(n),1===n.length&&-1===n[0]&&(n=[]),!r._filtered||a||!r._deselectFiltered(n)){if(a&&!r._filtered&&-1!==e.inArray(n[n.length-1],s))return void(r._dataItems.length&&r._view.length&&(r._dataItems=[r._view[s[0]].item]));i=r._deselect(n),u=i.removed,n=i.indices,n.length&&(a&&(n=[n[n.length-1]]),l=r._select(n)),(l.length||u.length)&&(r._valueComparer=null,r.trigger("change",{added:l,removed:u}))}},removeAt:function(e){return this._selectedIndices.splice(e,1),this._values.splice(e,1),this._valueComparer=null,{position:e,dataItem:this._dataItems.splice(e,1)[0]}},setValue:function(t){t=e.isArray(t)||t instanceof d?t.slice(0):[t],this._values=t,this._valueComparer=null},value:function(n){var i,r=this,o=r._valueDeferred;return n===t?r._values.slice():(r.setValue(n),o&&"resolved"!==o.state()||(r._valueDeferred=o=e.Deferred()),r.isBound()&&(i=r._valueIndices(r._values),"multiple"===r.options.selectable&&r.select(-1),r.select(i),o.resolve()),r._skipUpdate=!1,o)},_click:function(t){t.isDefaultPrevented()||this.trigger("click",{item:e(t.currentTarget)})},_valueExpr:function(e,n){var i,r,o,a=this,s=0,l=[];if(!a._valueComparer||a._valueType!==e){for(a._valueType=e;s<n.length;s++)i=n[s],i!==t&&""!==i&&null!==i&&("boolean"===e?i=Boolean(i):"number"===e?i=Number(i):"string"===e&&(i=i.toString())),l.push(i);r="for (var idx = 0; idx < "+l.length+"; idx++) { if (current === values[idx]) {   return idx; }} return -1;",o=new Function(["current","values"],r),a._valueComparer=function(e){return o(e,l)}}return a._valueComparer},_dataItemPosition:function(e,t){var n=this._valueGetter(e),i=this._valueExpr(typeof n,t);return i(n)},_getter:function(){this._valueGetter=r.getter(this.options.dataValueField)},_deselect:function(t){var n,i,r,o=this,a=o.element[0].children,s=o.options.selectable,l=o._selectedIndices,u=o._dataItems,c=o._values,d=[],p=0,f=0;if(t=t.slice(),s!==!0&&t.length){if("multiple"===s)for(;p<t.length;p++)if(i=t[p],e(a[i]).hasClass("k-state-selected"))for(n=0;n<l.length;n++)if(r=l[n],r===i){e(a[r]).removeClass("k-state-selected"),d.push({position:n+f,dataItem:u.splice(n,1)[0]}),l.splice(n,1),t.splice(p,1),c.splice(n,1),f+=1,p-=1,n-=1;break}}else{for(;p<l.length;p++)e(a[l[p]]).removeClass("k-state-selected"),d.push({position:p,dataItem:u[p]});o._values=[],o._dataItems=[],o._selectedIndices=[]}return{indices:t,removed:d}},_deselectFiltered:function(t){for(var n,i,r,o=this.element[0].children,a=[],s=0;s<t.length;s++)i=t[s],n=this._view[i].item,r=this._dataItemPosition(n,this._values),r>-1&&(a.push(this.removeAt(r)),e(o[i]).removeClass("k-state-selected"));return a.length?(this.trigger("change",{added:[],removed:a}),!0):!1},_select:function(t){var n,i,r=this,o=r.element[0].children,a=r._view,s=[],l=0;for(-1!==t[t.length-1]&&r.focus(t);l<t.length;l++)i=t[l],n=a[i],-1!==i&&n&&(n=n.item,r._selectedIndices.push(i),r._dataItems.push(n),r._values.push(r._valueGetter(n)),e(o[i]).addClass("k-state-selected").attr("aria-selected",!0),s.push({dataItem:n}));return s},_get:function(n){return"number"==typeof n?n=[n]:S(n)||(n=e(n).data("offset-index"),n===t&&(n=-1),n=[n]),n},_template:function(){var e=this,t=e.options,n=t.template;return n?(n=r.template(n),n=function(e){return'<li tabindex="-1" role="option" unselectable="on" class="k-item">'+n(e)+"</li>"}):n=r.template('<li tabindex="-1" role="option" unselectable="on" class="k-item">${'+r.expr(t.dataTextField,"data")+"}</li>",{useWithBlock:!1}),n},_templates:function(){var e,t={template:this.options.template,groupTemplate:this.options.groupTemplate,fixedGroupTemplate:this.options.fixedGroupTemplate};for(var n in t)e=t[n],e&&"function"!=typeof e&&(t[n]=r.template(e));this.templates=t},_normalizeIndices:function(e){for(var n=[],i=0;i<e.length;i++)e[i]!==t&&n.push(e[i]);return n},_valueIndices:function(e,t){var n,i=this._view,r=0;if(t=t?t.slice():[],!e.length)return[];for(;r<i.length;r++)n=this._dataItemPosition(i[r].item,e),-1!==n&&(t[n]=r);return this._normalizeIndices(t)},_firstVisibleItem:function(){for(var t=this.element[0],n=this.content[0],i=n.scrollTop,r=e(t.children[0]).height(),o=Math.floor(i/r)||0,a=t.children[o]||t.lastChild,s=a.offsetTop<i;a;)if(s){if(a.offsetTop+r>i||!a.nextSibling)break;a=a.nextSibling}else{if(a.offsetTop<=i||!a.previousSibling)break;a=a.previousSibling}return this._view[e(a).data("offset-index")]},_fixedHeader:function(){this.isGrouped()&&this.templates.fixedGroupTemplate?(this.header.show(),this.content.scroll(this._onScroll)):(this.header.hide(),this.content.off("scroll",this._onScroll))},_renderHeader:function(){var e=this.templates.fixedGroupTemplate;if(e){var t=this._firstVisibleItem();t&&this.header.html(e(t.group))}},_renderItem:function(e){var t='<li tabindex="-1" role="option" unselectable="on" class="k-item',n=e.item,i=0!==e.index,r=e.selected;return i&&e.newGroup&&(t+=" k-first"),r&&(t+=" k-state-selected"),t+='"'+(r?' aria-selected="true"':"")+' data-offset-index="'+e.index+'">',t+=this.templates.template(n),i&&e.newGroup&&(t+='<div class="k-group">'+this.templates.groupTemplate(e.group)+"</div>"),t+"</li>"},_render:function(){var e,t,n,i,r="",o=0,a=0,s=[],l=this.dataSource.view(),u=this.value(),c=this.isGrouped();if(c)for(o=0;o<l.length;o++)for(t=l[o],n=!0,i=0;i<t.items.length;i++)e={selected:this._selected(t.items[i],u),item:t.items[i],group:t.value,newGroup:n,index:a},s[a]=e,a+=1,r+=this._renderItem(e),n=!1;else for(o=0;o<l.length;o++)e={selected:this._selected(l[o],u),item:l[o],index:o},s[o]=e,r+=this._renderItem(e);this._view=s,this.element[0].innerHTML=r,c&&s.length&&this._renderHeader()},_selected:function(e,t){var n=!this._filtered||"multiple"===this.options.selectable;return n&&-1!==this._dataItemPosition(e,t)},refresh:function(e){var t,i=this,r=e&&e.action;i.trigger("dataBinding"),i._fixedHeader(),i._render(),i._bound=!0,"itemchange"===r?(t=n(i._dataItems,e.items),t.length&&i.trigger("selectedItemChange",{items:t})):i._filtered||i._skipUpdate?(i.focus(0),i._skipUpdate&&(i._skipUpdate=!1,i._selectedIndices=i._valueIndices(i._values,i._selectedIndices))):r&&"add"!==r||i.value(i._values),i._valueDeferred&&i._valueDeferred.resolve(),i.trigger("dataBound")},isBound:function(){return this._bound},isGrouped:function(){return(this.dataSource.group()||[]).length}});o.plugin(A)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core"],e)}(function(){return function(e,t){function n(e){return parseInt(e,10)}function i(e,t){return n(e.css(t))}function r(e){var t=[];for(var n in e)t.push(n);return t}function o(e){for(var t in e)-1!=M.indexOf(t)&&-1==E.indexOf(t)&&delete e[t];return e}function a(e,t){var n,i,r,o,a=[],s={};for(i in t)n=i.toLowerCase(),o=w&&-1!=M.indexOf(n),!v.hasHW3D&&o&&-1==E.indexOf(n)?delete t[i]:(r=t[i],o?a.push(i+"("+r+")"):s[i]=r);return a.length&&(s[K]=a.join(" ")),s}function s(e,t){if(w){var i=e.css(K);if(i==P)return"scale"==t?1:0;var r=i.match(new RegExp(t+"\\s*\\(([\\d\\w\\.]+)")),o=0;return r?o=n(r[1]):(r=i.match(C)||[0,0,0,0,0],t=t.toLowerCase(),S.test(t)?o=parseFloat(r[3]/r[2]):"translatey"==t?o=parseFloat(r[4]/r[2]):"scale"==t?o=parseFloat(r[2]):"rotate"==t&&(o=parseFloat(Math.atan2(r[2],r[1])))),o}return parseFloat(e.css(t))}function l(e){return e.charAt(0).toUpperCase()+e.substring(1)}function u(e,t){var n=ie.extend(t),i=n.prototype.directions;f[l(e)]=n,f.Element.prototype[e]=function(e,t,i,r){return new n(this.element,e,t,i,r)},h(i,function(t,i){f.Element.prototype[e+l(i)]=function(e,t,r){return new n(this.element,i,e,t,r)}})}function c(e,t,n,i){u(e,{directions:oe,startValue:function(e){return this._startValue=e,this},endValue:function(e){return this._endValue=e,this},shouldHide:function(){return this._shouldHide},prepare:function(e,r){var o,a,s=this,l="out"===this._direction,u=s.element.data(t),c=!(isNaN(u)||u==n);o=c?u:"undefined"!=typeof this._startValue?this._startValue:l?n:i,a="undefined"!=typeof this._endValue?this._endValue:l?i:n,this._reverse?(e[t]=a,r[t]=o):(e[t]=o,r[t]=a),s._shouldHide=r[t]===i}})}function d(e,t){var n=p.directions[t].vertical,i=e[n?B:R]()/2+"px";return se[t].replace("$size",i)}var p=window.kendo,f=p.effects,h=e.each,m=e.extend,g=e.proxy,v=p.support,_=v.browser,w=v.transforms,b=v.transitions,y={scale:0,scalex:0,scaley:0,scale3d:0},k={translate:0,translatex:0,translatey:0,translate3d:0},x="undefined"!=typeof document.documentElement.style.zoom&&!w,C=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,T=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,S=/translatex?$/i,D=/(zoom|fade|expand)(\w+)/,I=/(zoom|fade|expand)/,F=/[xy]$/i,M=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],E=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],O={rotate:"deg",scale:"",skew:"px",translate:"px"},A=w.css,H=Math.round,z="",V="px",P="none",L="auto",R="width",B="height",N="hidden",W="origin",U="abortId",q="overflow",$="translate",j="position",G="completeCallback",Y=A+"transition",K=A+"transform",Q=A+"backface-visibility",J=A+"perspective",Z="1500px",X="perspective("+Z+")",ee=(v.mobileOS&&7==v.mobileOS.majorVersion,{left:{reverse:"right",property:"left",transition:"translatex",vertical:!1,modifier:-1},right:{reverse:"left",property:"left",transition:"translatex",vertical:!1,modifier:1},down:{reverse:"up",property:"top",transition:"translatey",vertical:!0,modifier:1},up:{reverse:"down",property:"top",transition:"translatey",vertical:!0,modifier:-1},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out",modifier:-1},out:{reverse:"in",modifier:1},vertical:{reverse:"vertical"},horizontal:{reverse:"horizontal"}});if(p.directions=ee,m(e.fn,{kendoStop:function(e,t){return b?f.stopQueue(this,e||!1,t||!1):this.stop(e,t)}}),w&&!b){h(E,function(t,n){e.fn[n]=function(t){if("undefined"==typeof t)return s(this,n);var i=e(this)[0],r=n+"("+t+O[n.replace(F,"")]+")";return-1==i.style.cssText.indexOf(K)?e(this).css(K,r):i.style.cssText=i.style.cssText.replace(new RegExp(n+"\\(.*?\\)","i"),r),this},e.fx.step[n]=function(t){e(t.elem)[n](t.now)}});var te=e.fx.prototype.cur;e.fx.prototype.cur=function(){return-1!=E.indexOf(this.prop)?parseFloat(e(this.elem)[this.prop]()):te.apply(this,arguments)}}p.toggleClass=function(e,t,n,i){return t&&(t=t.split(" "),b&&(n=m({exclusive:"all",duration:400,ease:"ease-out"},n),e.css(Y,n.exclusive+" "+n.duration+"ms "+n.ease),setTimeout(function(){e.css(Y,"").css(B)},n.duration)),h(t,function(t,n){e.toggleClass(n,i)})),e},p.parseEffects=function(e,t){var n={};return"string"==typeof e?h(e.split(" "),function(e,i){var r=!I.test(i),o=i.replace(D,function(e,t,n){return t+":"+n.toLowerCase()}),a=o.split(":"),s=a[1],l={};a.length>1&&(l.direction=t&&r?ee[s].reverse:s),n[a[0]]=l}):h(e,function(e){var i=this.direction;i&&t&&!I.test(e)&&(this.direction=ee[i].reverse),n[e]=this}),n},b&&m(f,{transition:function(t,n,i){var o,s,l=0,u=t.data("keys")||[];i=m({duration:200,ease:"ease-out",complete:null,exclusive:"all"},i);var c=!1,d=function(){c||(c=!0,s&&(clearTimeout(s),s=null),t.removeData(U).dequeue().css(Y,"").css(Y),i.complete.call(t))};i.duration=e.fx?e.fx.speeds[i.duration]||i.duration:i.duration,o=a(t,n),e.merge(u,r(o)),t.data("keys",e.unique(u)).height(),t.css(Y,i.exclusive+" "+i.duration+"ms "+i.ease).css(Y),t.css(o).css(K),b.event&&(t.one(b.event,d),0!==i.duration&&(l=500)),s=setTimeout(d,i.duration+l),t.data(U,s),t.data(G,d)},stopQueue:function(e,t,n){var i,r=e.data("keys"),o=!n&&r,a=e.data(G);return o&&(i=p.getComputedStyles(e[0],r)),a&&a(),o&&e.css(i),e.removeData("keys").stop(t)}});var ne=p.Class.extend({init:function(e,t){var n=this;n.element=e,n.effects=[],n.options=t,n.restore=[]},run:function(t){var n,i,r,s,l,u,c=this,d=t.length,p=c.element,h=c.options,g=e.Deferred(),v={},_={};for(c.effects=t,g.then(e.proxy(c,"complete")),p.data("animating",!0),i=0;d>i;i++)for(n=t[i],n.setReverse(h.reverse),n.setOptions(h),c.addRestoreProperties(n.restore),n.prepare(v,_),l=n.children(),r=0,u=l.length;u>r;r++)l[r].duration(h.duration).run();for(var y in h.effects)m(_,h.effects[y].properties);for(p.is(":visible")||m(v,{display:p.data("olddisplay")||"block"}),w&&!h.reset&&(s=p.data("targetTransform"),s&&(v=m(s,v))),v=a(p,v),w&&!b&&(v=o(v)),p.css(v).css(K),i=0;d>i;i++)t[i].setup();return h.init&&h.init(),p.data("targetTransform",_),f.animate(p,_,m({},h,{complete:g.resolve})),g.promise()},stop:function(){e(this.element).kendoStop(!0,!0)},addRestoreProperties:function(e){for(var t,n=this.element,i=0,r=e.length;r>i;i++)t=e[i],this.restore.push(t),n.data(t)||n.data(t,n.css(t))},restoreCallback:function(){for(var e=this.element,t=0,n=this.restore.length;n>t;t++){var i=this.restore[t];e.css(i,e.data(i))}},complete:function(){var t=this,n=0,i=t.element,r=t.options,o=t.effects,a=o.length;for(i.removeData("animating").dequeue(),r.hide&&i.data("olddisplay",i.css("display")).hide(),this.restoreCallback(),x&&!w&&setTimeout(e.proxy(this,"restoreCallback"),0);a>n;n++)o[n].teardown();r.completeCallback&&r.completeCallback(i)}});f.promise=function(e,t){var n,i,r=[],o=new ne(e,t),a=p.parseEffects(t.effects);t.effects=a;for(var s in a)n=f[l(s)],n&&(i=new n(e,a[s].direction),r.push(i));r[0]?o.run(r):(e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.init&&t.init(),e.dequeue(),o.complete())},m(f,{animate:function(n,r,a){var s=a.transition!==!1;delete a.transition,b&&"transition"in f&&s?f.transition(n,r,a):w?n.animate(o(r),{queue:!1,show:!1,hide:!1,duration:a.duration,complete:a.complete}):n.each(function(){var n=e(this),o={};h(M,function(e,a){var s,l=r?r[a]+" ":null;if(l){var u=r;if(a in y&&r[a]!==t)s=l.match(T),w&&m(u,{scale:+s[0]});else if(a in k&&r[a]!==t){var c=n.css(j),d="absolute"==c||"fixed"==c;n.data($)||(d?n.data($,{top:i(n,"top")||0,left:i(n,"left")||0,bottom:i(n,"bottom"),right:i(n,"right")}):n.data($,{top:i(n,"marginTop")||0,left:i(n,"marginLeft")||0}));var p=n.data($);if(s=l.match(T)){var f=a==$+"y"?0:+s[1],h=a==$+"y"?+s[1]:+s[2];d?(isNaN(p.right)?isNaN(f)||m(u,{left:p.left+f}):isNaN(f)||m(u,{right:p.right-f}),isNaN(p.bottom)?isNaN(h)||m(u,{top:p.top+h}):isNaN(h)||m(u,{bottom:p.bottom-h})):(isNaN(f)||m(u,{marginLeft:p.left+f}),isNaN(h)||m(u,{marginTop:p.top+h}))}}!w&&"scale"!=a&&a in u&&delete u[a],u&&m(o,u)}}),_.msie&&delete o.scale,n.animate(o,{queue:!1,show:!1,hide:!1,duration:a.duration,complete:a.complete})})}}),f.animatedPromise=f.promise;var ie=p.Class.extend({init:function(e,t){var n=this;n.element=e,n._direction=t,n.options={},n._additionalEffects=[],n.restore||(n.restore=[])},reverse:function(){return this._reverse=!0,this.run()},play:function(){return this._reverse=!1,this.run()},add:function(e){return this._additionalEffects.push(e),this},direction:function(e){return this._direction=e,this},duration:function(e){return this._duration=e,this},compositeRun:function(){var e=this,t=new ne(e.element,{reverse:e._reverse,duration:e._duration}),n=e._additionalEffects.concat([e]);return t.run(n)},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var t,n,i=this,r=i.element,s=0,l=i.restore,u=l.length,c=e.Deferred(),d={},p={},h=i.children(),g=h.length;for(c.then(e.proxy(i,"_complete")),r.data("animating",!0),s=0;u>s;s++)t=l[s],r.data(t)||r.data(t,r.css(t));for(s=0;g>s;s++)h[s].duration(i._duration).run();return i.prepare(d,p),r.is(":visible")||m(d,{display:r.data("olddisplay")||"block"}),w&&(n=r.data("targetTransform"),n&&(d=m(n,d))),d=a(r,d),w&&!b&&(d=o(d)),r.css(d).css(K),i.setup(),r.data("targetTransform",p),f.animate(r,p,{duration:i._duration,complete:c.resolve}),c.promise()},stop:function(){var t=0,n=this.children(),i=n.length;for(t=0;i>t;t++)n[t].stop();return e(this.element).kendoStop(!0,!0),this},restoreCallback:function(){for(var e=this.element,t=0,n=this.restore.length;n>t;t++){var i=this.restore[t];e.css(i,e.data(i))}},_complete:function(){var t=this,n=t.element;n.removeData("animating").dequeue(),t.restoreCallback(),t.shouldHide()&&n.data("olddisplay",n.css("display")).hide(),x&&!w&&setTimeout(e.proxy(t,"restoreCallback"),0),t.teardown()},setOptions:function(e){m(!0,this.options,e)},children:function(){return[]},shouldHide:e.noop,setup:e.noop,prepare:e.noop,teardown:e.noop,directions:[],setReverse:function(e){return this._reverse=e,this}}),re=["left","right","up","down"],oe=["in","out"];u("slideIn",{directions:re,divisor:function(e){return this.options.divisor=e,this},prepare:function(e,t){var n,i=this,r=i.element,o=ee[i._direction],a=-o.modifier*(o.vertical?r.outerHeight():r.outerWidth()),s=a/(i.options&&i.options.divisor||1)+V,l="0px";i._reverse&&(n=e,e=t,t=n),w?(e[o.transition]=s,t[o.transition]=l):(e[o.property]=s,t[o.property]=l)}}),u("tile",{directions:re,init:function(e,t,n){ie.prototype.init.call(this,e,t),this.options={previous:n}},previousDivisor:function(e){return this.options.previousDivisor=e,this},children:function(){var e=this,t=e._reverse,n=e.options.previous,i=e.options.previousDivisor||1,r=e._direction,o=[p.fx(e.element).slideIn(r).setReverse(t)];return n&&o.push(p.fx(n).slideIn(ee[r].reverse).divisor(i).setReverse(!t)),o}}),c("fade","opacity",1,0),c("zoom","scale",1,.01),u("slideMargin",{prepare:function(e,t){var n,i=this,r=i.element,o=i.options,a=r.data(W),s=o.offset,l=i._reverse;l||null!==a||r.data(W,parseFloat(r.css("margin-"+o.axis))),n=r.data(W)||0,t["margin-"+o.axis]=l?n:n+s}}),u("slideTo",{prepare:function(e,t){var n=this,i=n.element,r=n.options,o=r.offset.split(","),a=n._reverse;w?(t.translatex=a?0:o[0],t.translatey=a?0:o[1]):(t.left=a?0:o[0],t.top=a?0:o[1]),i.css("left")}}),u("expand",{directions:["horizontal","vertical"],restore:[q],prepare:function(e,n){var i=this,r=i.element,o=i.options,a=i._reverse,s="vertical"===i._direction?B:R,l=r[0].style[s],u=r.data(s),c=parseFloat(u||l),d=H(r.css(s,L)[s]());e.overflow=N,c=o&&o.reset?d||c:c||d,n[s]=(a?0:c)+V,e[s]=(a?c:0)+V,u===t&&r.data(s,l)},shouldHide:function(){return this._reverse},teardown:function(){var e=this,t=e.element,n="vertical"===e._direction?B:R,i=t.data(n);(i==L||i===z)&&setTimeout(function(){t.css(n,L).css(n)},0)}});var ae={position:"absolute",marginLeft:0,marginTop:0,scale:1};u("transfer",{init:function(e,t){this.element=e,this.options={target:t},this.restore=[]},setup:function(){this.element.appendTo(document.body)},prepare:function(e,t){var n=this,i=n.element,r=f.box(i),o=f.box(n.options.target),a=s(i,"scale"),l=f.fillScale(o,r),u=f.transformOrigin(o,r);m(e,ae),t.scale=1,i.css(K,"scale(1)").css(K),i.css(K,"scale("+a+")"),e.top=r.top,e.left=r.left,e.transformOrigin=u.x+V+" "+u.y+V,n._reverse?e.scale=l:t.scale=l}});var se={top:"rect(auto auto $size auto)",bottom:"rect($size auto auto auto)",left:"rect(auto $size auto auto)",
  right:"rect(auto auto auto $size)"},le={top:{start:"rotatex(0deg)",end:"rotatex(180deg)"},bottom:{start:"rotatex(-180deg)",end:"rotatex(0deg)"},left:{start:"rotatey(0deg)",end:"rotatey(-180deg)"},right:{start:"rotatey(180deg)",end:"rotatey(0deg)"}};u("turningPage",{directions:re,init:function(e,t,n){ie.prototype.init.call(this,e,t),this._container=n},prepare:function(e,t){var n=this,i=n._reverse,r=i?ee[n._direction].reverse:n._direction,o=le[r];e.zIndex=1,n._clipInHalf&&(e.clip=d(n._container,p.directions[r].reverse)),e[Q]=N,t[K]=X+(i?o.start:o.end),e[K]=X+(i?o.end:o.start)},setup:function(){this._container.append(this.element)},face:function(e){return this._face=e,this},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},clipInHalf:function(e){return this._clipInHalf=e,this},temporary:function(){return this.element.addClass("temp-page"),this}}),u("staticPage",{directions:re,init:function(e,t,n){ie.prototype.init.call(this,e,t),this._container=n},restore:["clip"],prepare:function(e,t){var n=this,i=n._reverse?ee[n._direction].reverse:n._direction;e.clip=d(n._container,i),e.opacity=.999,t.opacity=1},shouldHide:function(){var e=this,t=e._reverse,n=e._face;return t&&!n||!t&&n},face:function(e){return this._face=e,this}}),u("pageturn",{directions:["horizontal","vertical"],init:function(e,t,n,i){ie.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i="horizontal"===t._direction?"left":"top",r=p.directions[i].reverse,o=t._reverse,a=n.face.clone(!0).removeAttr("id"),s=n.back.clone(!0).removeAttr("id"),l=t.element;return o&&(e=i,i=r,r=e),[p.fx(n.face).staticPage(i,l).face(!0).setReverse(o),p.fx(n.back).staticPage(r,l).setReverse(o),p.fx(a).turningPage(i,l).face(!0).clipInHalf(!0).temporary().setReverse(o),p.fx(s).turningPage(r,l).clipInHalf(!0).temporary().setReverse(o)]},prepare:function(e,t){e[J]=Z,e.transformStyle="preserve-3d",e.opacity=.999,t.opacity=1},teardown:function(){this.element.find(".temp-page").remove()}}),u("flip",{directions:["horizontal","vertical"],init:function(e,t,n,i){ie.prototype.init.call(this,e,t),this.options={},this.options.face=n,this.options.back=i},children:function(){var e,t=this,n=t.options,i="horizontal"===t._direction?"left":"top",r=p.directions[i].reverse,o=t._reverse,a=t.element;return o&&(e=i,i=r,r=e),[p.fx(n.face).turningPage(i,a).face(!0).setReverse(o),p.fx(n.back).turningPage(r,a).setReverse(o)]},prepare:function(e){e[J]=Z,e.transformStyle="preserve-3d"}});var ue=!v.mobileOS.android,ce=".km-touch-scrollbar, .km-actionsheet-wrapper";u("replace",{_before:e.noop,_after:e.noop,init:function(t,n,i){ie.prototype.init.call(this,t),this._previous=e(n),this._transitionClass=i},duration:function(){throw new Error("The replace effect does not support duration setting; the effect duration may be customized through the transition class rule")},beforeTransition:function(e){return this._before=e,this},afterTransition:function(e){return this._after=e,this},_both:function(){return e().add(this._element).add(this._previous)},_containerClass:function(){var e=this._direction,t="k-fx k-fx-start k-fx-"+this._transitionClass;return e&&(t+=" k-fx-"+e),this._reverse&&(t+=" k-fx-reverse"),t},complete:function(t){if(!(!this.deferred||t&&e(t.target).is(ce))){var n=this.container;n.removeClass("k-fx-end").removeClass(this._containerClass()).off(b.event,this.completeProxy),this._previous.hide().removeClass("k-fx-current"),this.element.removeClass("k-fx-next"),ue&&n.css(q,""),this.isAbsolute||this._both().css(j,""),this.deferred.resolve(),delete this.deferred}},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var t,n=this,i=n.element,r=n._previous,o=i.parents().filter(r.parents()).first(),a=n._both(),s=e.Deferred(),l=i.css(j);return o.length||(o=i.parent()),this.container=o,this.deferred=s,this.isAbsolute="absolute"==l,this.isAbsolute||a.css(j,"absolute"),ue&&(t=o.css(q),o.css(q,"hidden")),b?(i.addClass("k-fx-hidden"),o.addClass(this._containerClass()),this.completeProxy=e.proxy(this,"complete"),o.on(b.event,this.completeProxy),p.animationFrame(function(){i.removeClass("k-fx-hidden").addClass("k-fx-next"),r.css("display","").addClass("k-fx-current"),n._before(r,i),p.animationFrame(function(){o.removeClass("k-fx-start").addClass("k-fx-end"),n._after(r,i)})})):this.complete(),s.promise()},stop:function(){this.complete()}});var de=p.Class.extend({init:function(){var e=this;e._tickProxy=g(e._tick,e),e._started=!1},tick:e.noop,done:e.noop,onEnd:e.noop,onCancel:e.noop,start:function(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,p.animationFrame(this._tickProxy)))},enabled:function(){return!0},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var e=this;e._started&&(e.tick(),e.done()?(e._started=!1,e.onEnd()):p.animationFrame(e._tickProxy))}}),pe=de.extend({init:function(e){var t=this;m(t,e),de.fn.init.call(t)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,new Date-this.startDate)},moveTo:function(e){var t=this,n=t.movable;t.initial=n[t.axis],t.delta=e.location-t.initial,t.duration="number"==typeof e.duration?e.duration:300,t.tick=t._easeProxy(e.ease),t.startDate=new Date,t.start()},_easeProxy:function(e){var t=this;return function(){t.movable.moveAxis(t.axis,e(t.timePassed(),t.initial,t.delta,t.duration))}}});m(pe,{easeOutExpo:function(e,t,n,i){return e==i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t},easeOutBack:function(e,t,n,i,r){return r=1.70158,n*((e=e/i-1)*e*((r+1)*e+r)+1)+t}}),f.Animation=de,f.Transition=pe,f.createEffect=u,f.box=function(t){t=e(t);var n=t.offset();return n.width=t.outerWidth(),n.height=t.outerHeight(),n},f.transformOrigin=function(e,t){var n=(e.left-t.left)*t.width/(t.width-e.width),i=(e.top-t.top)*t.height/(t.height-e.height);return{x:isNaN(n)?0:n,y:isNaN(i)?0:i}},f.fillScale=function(e,t){return Math.min(e.width/t.width,e.height/t.height)},f.fitScale=function(e,t){return Math.max(e.width/t.width,e.height/t.height)}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core"],e)}(function(){return function(e,t){function n(e,t){var n=e.x.location,i=e.y.location,r=t.x.location,o=t.y.location,a=n-r,s=i-o;return{center:{x:(n+r)/2,y:(i+o)/2},distance:Math.sqrt(a*a+s*s)}}function i(e){var t,n,i,r=[],o=e.originalEvent,s=e.currentTarget,l=0;if(e.api)r.push({id:2,event:e,target:e.target,currentTarget:e.target,location:e,type:"api"});else if(e.type.match(/touch/))for(n=o?o.changedTouches:[],t=n.length;t>l;l++)i=n[l],r.push({location:i,event:e,target:i.target,currentTarget:s,id:i.identifier,type:"touch"});else r.push(a.pointers||a.msPointers?{location:o,event:e,target:e.target,currentTarget:s,id:o.pointerId,type:"pointer"}:{id:1,event:e,target:e.target,currentTarget:s,location:e,type:"mouse"});return r}function r(e){for(var t=o.eventMap.up.split(" "),n=0,i=t.length;i>n;n++)e(t[n])}var o=window.kendo,a=o.support,s=window.document,l=o.Class,u=o.Observable,c=e.now,d=e.extend,p=a.mobileOS,f=p&&p.android,h=800,m=a.browser.msie?5:0,g="press",v="hold",_="select",w="start",b="move",y="end",k="cancel",x="tap",C="release",T="gesturestart",S="gesturechange",D="gestureend",I="gesturetap",F={api:0,touch:0,mouse:9,pointer:9},M=!a.touch||a.mouseAndTouchPresent,E=l.extend({init:function(e,t){var n=this;n.axis=e,n._updateLocationData(t),n.startLocation=n.location,n.velocity=n.delta=0,n.timeStamp=c()},move:function(e){var t=this,n=e["page"+t.axis],i=c(),r=i-t.timeStamp||1;(n||!f)&&(t.delta=n-t.location,t._updateLocationData(e),t.initialDelta=n-t.startLocation,t.velocity=t.delta/r,t.timeStamp=i)},_updateLocationData:function(e){var t=this,n=t.axis;t.location=e["page"+n],t.client=e["client"+n],t.screen=e["screen"+n]}}),O=l.extend({init:function(e,t,n){d(this,{x:new E("X",n.location),y:new E("Y",n.location),type:n.type,threshold:e.threshold||F[n.type],userEvents:e,target:t,currentTarget:n.currentTarget,initialTouch:n.target,id:n.id,pressEvent:n,_moved:!1,_finished:!1})},press:function(){this._holdTimeout=setTimeout(e.proxy(this,"_hold"),this.userEvents.minHold),this._trigger(g,this.pressEvent)},_hold:function(){this._trigger(v,this.pressEvent)},move:function(e){var t=this;if(!t._finished){if(t.x.move(e.location),t.y.move(e.location),!t._moved){if(t._withinIgnoreThreshold())return;if(A.current&&A.current!==t.userEvents)return t.dispose();t._start(e)}t._finished||t._trigger(b,e)}},end:function(e){var t=this;t.endTime=c(),t._finished||(t._finished=!0,t._trigger(C,e),t._moved?t._trigger(y,e):t._trigger(x,e),clearTimeout(t._holdTimeout),t.dispose())},dispose:function(){var t=this.userEvents,n=t.touches;this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout),n.splice(e.inArray(this,n),1)},skip:function(){this.dispose()},cancel:function(){this.dispose()},isMoved:function(){return this._moved},_start:function(e){clearTimeout(this._holdTimeout),this.startTime=c(),this._moved=!0,this._trigger(w,e)},_trigger:function(e,t){var n=this,i=t.event,r={touch:n,x:n.x,y:n.y,target:n.target,event:i};n.userEvents.notify(e,r)&&i.preventDefault()},_withinIgnoreThreshold:function(){var e=this.x.initialDelta,t=this.y.initialDelta;return Math.sqrt(e*e+t*t)<=this.threshold}}),A=u.extend({init:function(t,n){var i,l=this,c=o.guid();if(n=n||{},i=l.filter=n.filter,l.threshold=n.threshold||m,l.minHold=n.minHold||h,l.touches=[],l._maxTouches=n.multiTouch?2:1,l.allowSelection=n.allowSelection,l.captureUpIfMoved=n.captureUpIfMoved,l.eventNS=c,t=e(t).handler(l),u.fn.init.call(l),d(l,{element:t,surface:e(n.global&&M?s.documentElement:n.surface||t),stopPropagation:n.stopPropagation,pressed:!1}),l.surface.handler(l).on(o.applyEventMap("move",c),"_move").on(o.applyEventMap("up cancel",c),"_end"),t.on(o.applyEventMap("down",c),i,"_start"),(a.pointers||a.msPointers)&&t.css("-ms-touch-action","pinch-zoom double-tap-zoom"),n.preventDragEvent&&t.on(o.applyEventMap("dragstart",c),o.preventDefault),t.on(o.applyEventMap("mousedown",c),i,{root:t},"_select"),l.captureUpIfMoved&&a.eventCapture){var p=l.surface[0],f=e.proxy(l.preventIfMoving,l);r(function(e){p.addEventListener(e,f,!0)})}l.bind([g,v,x,w,b,y,C,k,T,S,D,I,_],n)},preventIfMoving:function(e){this._isMoved()&&e.preventDefault()},destroy:function(){var e=this;if(!e._destroyed){if(e._destroyed=!0,e.captureUpIfMoved&&a.eventCapture){var t=e.surface[0];r(function(n){t.removeEventListener(n,e.preventIfMoving)})}e.element.kendoDestroy(e.eventNS),e.surface.kendoDestroy(e.eventNS),e.element.removeData("handler"),e.surface.removeData("handler"),e._disposeAll(),e.unbind(),delete e.surface,delete e.element,delete e.currentTarget}},capture:function(){A.current=this},cancel:function(){this._disposeAll(),this.trigger(k)},notify:function(e,t){var i=this,r=i.touches;if(this._isMultiTouch()){switch(e){case b:e=S;break;case y:e=D;break;case x:e=I}d(t,{touches:r},n(r[0],r[1]))}return this.trigger(e,d(t,{type:e}))},press:function(e,t,n){this._apiCall("_start",e,t,n)},move:function(e,t){this._apiCall("_move",e,t)},end:function(e,t){this._apiCall("_end",e,t)},_isMultiTouch:function(){return this.touches.length>1},_maxTouchesReached:function(){return this.touches.length>=this._maxTouches},_disposeAll:function(){for(var e=this.touches;e.length>0;)e.pop().dispose()},_isMoved:function(){return e.grep(this.touches,function(e){return e.isMoved()}).length},_select:function(e){(!this.allowSelection||this.trigger(_,{event:e}))&&e.preventDefault()},_start:function(t){var n,r,o=this,a=0,s=o.filter,l=i(t),u=l.length,c=t.which;if(!(c&&c>1||o._maxTouchesReached()))for(A.current=null,o.currentTarget=t.currentTarget,o.stopPropagation&&t.stopPropagation();u>a&&!o._maxTouchesReached();a++)r=l[a],n=s?e(r.currentTarget):o.element,n.length&&(r=new O(o,n,r),o.touches.push(r),r.press(),o._isMultiTouch()&&o.notify("gesturestart",{}))},_move:function(e){this._eachTouch("move",e)},_end:function(e){this._eachTouch("end",e)},_eachTouch:function(e,t){var n,r,o,a,s=this,l={},u=i(t),c=s.touches;for(n=0;n<c.length;n++)r=c[n],l[r.id]=r;for(n=0;n<u.length;n++)o=u[n],a=l[o.id],a&&a[e](o)},_apiCall:function(t,n,i,r){this[t]({api:!0,pageX:n,pageY:i,clientX:n,clientY:i,target:e(r||this.element)[0],stopPropagation:e.noop,preventDefault:e.noop})}});A.defaultThreshold=function(e){m=e},A.minHold=function(e){h=e},o.getTouches=i,o.touchDelta=n,o.UserEvents=A}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.popup"],e)}(function(){return 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(k).addClass(M),t.children("a").addClass(T).children(k).addClass(M),t.filter(":not([disabled])").addClass(q),t.filter(".k-separator:empty").append("&nbsp;"),t.filter("li[disabled]").addClass(G).removeAttr("disabled").attr("aria-disabled",!0),t.filter("[role]").length||t.attr("role","menuitem"),t.children("."+T).length||t.contents().filter(function(){return!(this.nodeName.match(b)||3==this.nodeType&&!e.trim(this.nodeValue))}).wrapAll("<span class='"+T+"'/>"),a(t),s(t)}function a(t){t=e(t),t.find("> .k-link > [class*=k-i-arrow]:not(.k-sprite)").remove(),t.filter(":has(.k-menu-group)").children(".k-link:not(:has([class*=k-i-arrow]:not(.k-sprite)))").each(function(){var t=e(this),n=t.parent().parent();t.append("<span class='k-icon "+(n.hasClass(C+"-horizontal")?"k-i-arrow-s":"k-i-arrow-e")+"'/>")})}function s(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass(F),t.filter(".k-last:not(:last-child)").removeClass(S),t.filter(":first-child").addClass(F),t.filter(":last-child").addClass(S)}var l=window.kendo,u=l.ui,c=l._activeElement,d=l.support.touch&&l.support.mobileOS,p="mousedown",f="click",h=e.extend,m=e.proxy,g=e.each,v=l.template,_=l.keys,w=u.Widget,b=/^(ul|a|div)$/i,y=".kendoMenu",k="img",x="open",C="k-menu",T="k-link",S="k-last",D="close",I="timer",F="k-first",M="k-image",E="select",O="zIndex",A="activate",H="deactivate",z="touchstart"+y+" MSPointerDown"+y+" pointerdown"+y,V=l.support.pointers,P=l.support.msPointers,L=P||V,R=V?"pointerover":P?"MSPointerOver":"mouseenter",B=V?"pointerout":P?"MSPointerOut":"mouseleave",N=d||L,W=e(document.documentElement),U="kendoPopup",q="k-state-default",$="k-state-hover",j="k-state-focused",G="k-state-disabled",Y=".k-menu",K=".k-menu-group",Q=K+",.k-animation-container",J=":not(.k-list) > .k-item",Z=".k-item.k-state-disabled",X=".k-item:not(.k-state-disabled)",ee=".k-item:not(.k-state-disabled) > .k-link",te=":not(.k-item.k-separator)",ne=te+":eq(0)",ie=te+":last",re="> div:not(.k-animation-container,.k-list-container)",oe={2:1,touch:1},ae={content:v("<div class='k-content #= groupCssClass() #' tabindex='-1'>#= content(item) #</div>"),group:v("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) # role='menu' aria-hidden='true'>#= renderItems(data) #</ul>"),itemWrapper:v("<#= tag(item) # class='#= textClass(item) #'#= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:v("<li class='#= wrapperCssClass(group, item) #' role='menuitem' #=item.items ? \"aria-haspopup='true'\": \"\"##=item.enabled === false ? \"aria-disabled='true'\" : ''#>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, menu: menu, group: { expanded: item.expanded } }) ## } else if (item.content || item.contentUrl) { ##= renderContent(data) ## } #</li>"),image:v("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:v("<span class='#= arrowClass(item, group) #'></span>"),sprite:v("<span class='k-sprite #= spriteCssClass #'></span>"),empty:v("")},se={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 T},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 k-menu-group"},content:function(e){return e.content?e.content:"&nbsp;"}},le=w.extend({init:function(t,n){var i=this;w.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=m(i._focusHandler,i),t.on(z,X,i._focusProxy).on(f+y,Z,!1).on(f+y,X,m(i._click,i)).on("keydown"+y,m(i._keydown,i)).on("focus"+y,m(i._focus,i)).on("focus"+y,".k-content",m(i._focus,i)).on(z+" "+p+y,".k-content",m(i._preventClose,i)).on("blur"+y,m(i._removeHoverItem,i)).on("blur"+y,"[tabindex]",m(i._checkActiveElement,i)).on(R+y,X,m(i._mouseenter,i)).on(B+y,X,m(i._mouseleave,i)).on(R+y+" "+B+y+" "+p+y+" "+f+y,ee,m(i._toggleHover,i)),n.openOnClick&&(i.clicked=!1,i._documentClickHandler=m(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:[x,D,A,H,E],options:{name:"Menu",animation:{open:{duration:200},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100,popupCollision:t},_initData:function(e){var t=this;e.dataSource&&(t.angular("cleanup",function(){return{elements:t.element.children()}}),t.element.empty(),t.append(e.dataSource,t.element),t.angular("compile",function(){return{elements:t.element.children()}}))},setOptions:function(e){var t=this.options.animation;this._animations(e),e.animation=h(!0,t,e.animation),"dataSource"in e&&this._initData(e),this._updateClasses(),w.fn.setOptions.call(this,e)},destroy:function(){var t=this;w.fn.destroy.call(t),t.element.off(y),t._documentClickHandler&&e(document).unbind("click",t._documentClickHandler),l.destroy(t.element)},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-menu-group, > .k-animation-container > .k-menu-group"):null);return g(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 g(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 g(n.items,function(){t.after(this),a(this),s(this)}),s(t),this},_insert:function(t,n,i){var r,a,s=this;n&&n.length||(i=s.element);var l=e.isPlainObject(t),u={firstLevel:i.hasClass(C),horizontal:i.hasClass(C+"-horizontal"),expanded:!0,length:i.children().length};return n&&!i.length&&(i=e(le.renderGroup({group:u})).appendTo(n)),l||e.isArray(t)?r=e(e.map(l?[t]:t,function(t,n){return"string"==typeof t?e(t).get():e(le.renderItem({group:u,item:h(t,{index:n})})).get()})):(r="string"==typeof t&&"<"!=t.charAt(0)?s.element.find(t):e(t),a=r.find("> ul").addClass("k-menu-group").attr("role","menu"),r=r.filter("li"),r.add(a.find("> li")).each(function(){o(this)})),{items:r,group:i}},remove:function(e){e=this.element.find(e);var t=this,n=e.parentsUntil(t.element,J),i=e.parent("ul:not(.k-menu)");if(e.remove(),i&&!i.children(J).length){var r=i.parent(".k-animation-container");r.length?r.remove():i.remove()}return n.length&&(n=n.eq(0),a(n),s(n)),t},open:function(r){var o=this,a=o.options,s="horizontal"==a.orientation,u=a.direction,c=l.support.isRtl(o.wrapper);return r=o.element.find(r),/^(top|bottom|default)$/.test(u)&&(u=c?s?(u+" left").replace("default","bottom"):"left":s?(u+" 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(I)),r.data(I,setTimeout(function(){var p,f=r.find(".k-menu-group:first:hidden");if(f[0]&&o._triggerEvent({item:r[0],type:x})===!1){if(!f.find(".k-menu-group")[0]&&f.children(".k-item").length>1){var m=e(window).height(),g=function(){f.css({maxHeight:m-(f.outerHeight()-f.height())-l.getShadows(f).bottom,overflow:"auto"})};l.support.browser.msie&&l.support.browser.version<=7?setTimeout(g,0):g()}else f.css({maxHeight:"",overflow:""});r.data(O,r.css(O)),r.css(O,o.nextItemZIndex++),p=f.data(U);var v=r.parent().hasClass(C),_=v&&s,w=i(u,v,c),b=a.animation.open.effects,y=b!==t?b:"slideIn:"+n(u,v);p?(p=f.data(U),p.options.origin=w.origin,p.options.position=w.position,p.options.animation.open.effects=y):p=f.kendoPopup({activate:function(){o._triggerEvent({item:this.wrapper.parent(),type:A})},deactivate:function(e){e.sender.element.removeData("targetTransform").css({opacity:""}),o._triggerEvent({item:this.wrapper.parent(),type:H})},origin:w.origin,position:w.position,collision:a.popupCollision!==t?a.popupCollision:_?"fit":"fit flip",anchor:r,appendTo:r,animation:{open:h(!0,{effects:y},a.animation.open),close:a.animation.close},close:function(e){var t=e.sender.wrapper.parent();o._triggerEvent({item:t[0],type:D})?e.preventDefault():(t.css(O,t.data(O)),t.removeData(O),d&&(t.removeClass($),o._removeHoverItem()))}}).data(U),f.removeAttr("aria-hidden"),p.open()}},o.options.hoverDelay))}),o},close:function(t,n){var i=this,r=i.element;return t=r.find(t),t.length||(t=r.find(">.k-item")),t.each(function(){var t=e(this);!n&&i._isRootItem(t)&&(i.clicked=!1),clearTimeout(t.data(I)),t.data(I,setTimeout(function(){var e=t.find(".k-menu-group:not(.k-list-container):not(.k-calendar-container):first:visible").data(U);e&&(e.close(),e.element.attr("aria-hidden",!0))},i.options.hoverDelay))}),i},_toggleDisabled:function(t,n){this.element.find(t).each(function(){e(this).toggleClass(q,n).toggleClass(G,!n).attr("aria-disabled",!n)})},_toggleHover:function(t){var n=e(l.eventTarget(t)||t.target).closest(J),i=t.type==R||-1!==p.indexOf(t.type);n.parents("li."+G).length||n.toggleClass($,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(t?t.currentTarget:this._hoverItem()),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(j)&&(e.removeClass(j),this._oldHoverItem=null)},_updateClasses:function(){var e,t=this.element,n=".k-menu-init div ul";t.removeClass("k-menu-horizontal k-menu-vertical"),t.addClass("k-widget k-reset k-header k-menu-init "+C).addClass(C+"-"+this.options.orientation),t.find("li > ul").filter(function(){return!l.support.matchesSelector.call(this,n)}).addClass("k-group k-menu-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-menu-group > li"),t.removeClass("k-menu-init"),e.each(function(){o(this)})},_mouseenter:function(t){var n=this,i=e(t.currentTarget),o=i.children(".k-animation-container").length||i.children(K).length;t.delegateTarget==i.parents(Y)[0]&&(n.options.openOnClick&&!n.clicked||d||(V||P)&&t.originalEvent.pointerType in oe&&n._isRootItem(i.closest(J))||!r(t.currentTarget,t.relatedTarget)&&o&&n.open(i),(n.options.openOnClick&&n.clicked||N)&&i.siblings().each(m(function(e,t){n.close(t,!0)},n)))},_mouseleave:function(t){var n=this,i=e(t.currentTarget),o=i.children(".k-animation-container").length||i.children(K).length;return i.parentsUntil(".k-animation-container",".k-list-container,.k-calendar-container")[0]?void t.stopImmediatePropagation():void(n.options.openOnClick||d||(V||P)&&t.originalEvent.pointerType in oe||r(t.currentTarget,t.relatedTarget||t.target)||!o||r(t.currentTarget,l._activeElement())||n.close(i))},_click:function(t){var n,i,r,o=this,a=o.options,s=e(l.eventTarget(t)),u=s[0]?s[0].nodeName.toUpperCase():"",c="INPUT"==u||"SELECT"==u||"BUTTON"==u||"LABEL"==u,d=s.closest("."+T),p=s.closest(J),f=d.attr("href"),h=s.attr("href"),m=e("<a href='#' />").attr("href"),g=!!f&&f!==m,v=g&&!!f.match(/^#/),_=!!h&&h!==m,w=a.openOnClick&&r&&o._isRootItem(p);if(!s.closest(re,p[0]).length){if(p.hasClass(G))return void t.preventDefault();if(t.handled||!o._triggerEvent({item:p[0],type:E})||c||t.preventDefault(),t.handled=!0,i=p.children(Q),r=i.is(":visible"),a.closeOnClick&&(!g||v)&&(!i.length||w))return p.removeClass($).css("height"),o._oldHoverItem=o._findRootParent(p),o.close(d.parentsUntil(o.element,J)),o.clicked=!1,void(-1!="MSPointerUp".indexOf(t.type)&&t.preventDefault());g&&t.enterKey&&d[0].click(),(o._isRootItem(p)&&a.openOnClick||l.support.touch||(V||P)&&o._isRootItem(p.closest(J)))&&(g||c||_||t.preventDefault(),o.clicked=!0,n=i.is(":visible")?D:x,(a.closeOnClick||n!=D)&&o[n](p))}},_documentClick:function(e){r(this.element[0],e.target)||(this.clicked=!1)},_focus:function(t){var n=this,i=t.target,r=n._hoverItem(),o=c();return i==n.wrapper[0]||e(i).is(":kendoFocusable")?void(o===t.currentTarget&&(r.length?n._moveHover([],r):n._oldHoverItem||n._moveHover([],n.wrapper.children().first()))):(t.stopPropagation(),e(i).closest(".k-content").closest(".k-menu-group").closest(".k-item").addClass(j),void n.wrapper.focus())},_keydown:function(e){var t,n,i,r=this,o=e.keyCode,a=r._oldHoverItem,s=l.support.isRtl(r.wrapper);if(e.target==e.currentTarget||o==_.ESC){if(a||(a=r._oldHoverItem=r._hoverItem()),n=r._itemBelongsToVertival(a),i=r._itemHasChildren(a),o==_.RIGHT)t=r[s?"_itemLeft":"_itemRight"](a,n,i);else if(o==_.LEFT)t=r[s?"_itemRight":"_itemLeft"](a,n,i);else if(o==_.DOWN)t=r._itemDown(a,n,i);else if(o==_.UP)t=r._itemUp(a,n,i);else if(o==_.ESC)t=r._itemEsc(a,n);else if(o==_.ENTER||o==_.SPACEBAR)t=a.children(".k-link"),t.length>0&&(r._click({target:t[0],preventDefault:function(){},enterKey:!0}),r._moveHover(a,r._findRootParent(a)));else if(o==_.TAB)return t=r._findRootParent(a),r._moveHover(a,t),void r._checkActiveElement();t&&t[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-menu-group")||t:t},_itemHasChildren:function(e){return e.length?e.children("ul.k-menu-group, div.k-animation-container").length>0:!1},_moveHover:function(t,n){var i=this,r=i._ariaId;t.length&&n.length&&t.removeClass(j),n.length&&(n[0].id&&(r=n[0].id),n.addClass(j),i._oldHoverItem=n,r&&(i.element.removeAttr("aria-activedescendant"),e("#"+r).removeAttr("id"),n.attr("id",r),i.element.attr("aria-activedescendant",r)))},_findRootParent:function(e){return this._isRootItem(e)?e:e.parentsUntil(Y,"li.k-item").last()},_isRootItem:function(e){return e.parent().hasClass(C)},_itemRight:function(e,t,n){var i,r,o=this;if(!e.hasClass(G))return t?n?(o.open(e),i=e.find(".k-menu-group").children().first()):"horizontal"==o.options.orientation&&(r=o._findRootParent(e),o.close(r),i=r.nextAll(ne)):(i=e.nextAll(ne),i.length||(i=e.prevAll(ie))),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(ne))):(n=e.prevAll(ne),n.length||(n=e.nextAll(ie))),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(ne);else{if(!n||e.hasClass(G))return;r.open(e),i=e.find(".k-menu-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(ne),!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},_triggerEvent:function(e){var t=this;return t.trigger(e.type,{type:e.type,item:e.item})},_focusHandler:function(t){var n=this,i=e(l.eventTarget(t)).closest(J);setTimeout(function(){n._moveHover([],i),i.children(".k-content")[0]&&i.parent().closest(".k-item").removeClass(j)},200)},_animations:function(e){e&&"animation"in e&&!e.animation&&(e.animation={open:{effects:{}},close:{hide:!0,effects:{}}})}});h(le,{renderItem:function(e){e=h({menu:{},group:{}},e);var t=ae.empty,n=e.item;return ae.item(h(e,{image:n.imageUrl?ae.image:t,sprite:n.spriteCssClass?ae.sprite:t,itemWrapper:ae.itemWrapper,renderContent:le.renderContent,arrow:n.items||n.content?ae.arrow:t,subGroup:le.renderGroup},se))},renderGroup:function(e){return ae.group(h({renderItems:function(e){for(var t="",n=0,i=e.items,r=i?i.length:0,o=h({length:r},e.group);r>n;n++)t+=le.renderItem(h(e,{group:o,item:h({index:n},i[n])}));return t}},e,se))},renderContent:function(e){return ae.content(h(e,se))}});var ue=le.extend({init:function(t,n){var i=this;le.fn.init.call(i,t,n),i.target=e(i.options.target),i._popup(),i._wire()},options:{name:"ContextMenu",filter:null,showOn:"contextmenu",orientation:"vertical",alignToAnchor:!1,target:"body"},events:[x,D,A,H,E],setOptions:function(t){var n=this;le.fn.setOptions.call(n,t),n.target.off(n.showOn+y,n._showProxy),n.userEvents&&n.userEvents.destroy(),n.target=e(n.options.target),t.orientation&&n.popup.wrapper[0]&&n.popup.element.unwrap(),n._wire(),le.fn.setOptions.call(this,t)},destroy:function(){var e=this;e.target.off(e.options.showOn+y),W.off(l.support.mousedown+y,e._closeProxy),e.userEvents&&e.userEvents.destroy(),le.fn.destroy.call(e)},open:function(n,i){var o=this;return n=e(n)[0],r(o.element[0],e(n)[0])?le.fn.open.call(o,n):o._triggerEvent({item:o.element,type:x})===!1&&(o.popup.visible()&&o.options.filter&&o.popup.close(!0),i!==t?(o.popup.wrapper.hide(),o.popup.open(n,i)):(o.popup.options.anchor=(n?n:o.popup.anchor)||o.target,o.popup.open()),W.off(o.popup.downEvent,o.popup._mousedownProxy),W.on(l.support.mousedown+y,o._closeProxy)),o},close:function(){var t=this;r(t.element[0],e(arguments[0])[0])?le.fn.close.call(t,arguments[0]):t.popup.visible()&&t._triggerEvent({item:t.element,type:D})===!1&&(t.popup.close(),W.off(l.support.mousedown+y,t._closeProxy),t.unbind(E,t._closeTimeoutProxy))},_showHandler:function(e){var t,n=e,i=this,o=i.options;e.event&&(n=e.event,n.pageX=e.x.location,n.pageY=e.y.location),r(i.element[0],e.relatedTarget||e.target)||(i._eventOrigin=n,n.preventDefault(),n.stopImmediatePropagation(),i.element.find("."+j).removeClass(j),(o.filter&&l.support.matchesSelector.call(n.currentTarget,o.filter)||!o.filter)&&(o.alignToAnchor?i.open(n.currentTarget):(i.popup.options.anchor=n.currentTarget,i._targetChild?(t=i.target.offset(),i.open(n.pageX-t.left,n.pageY-t.top)):i.open(n.pageX,n.pageY))))},_closeHandler:function(t){var n=this,i=(n.options,e(t.relatedTarget||t.target)),o=i.closest(n.target.selector)[0]==n.target[0],a=i.closest(X).children(Q),s=r(n.element[0],i[0]);n._eventOrigin=t;var l=3!==t.which;n.popup.visible()&&(l&&o||!o)&&(n.options.closeOnClick&&!a[0]&&s||!s)&&(s?(this.unbind(E,this._closeTimeoutProxy),n.bind(E,n._closeTimeoutProxy)):n.close());
  
  },_wire:function(){var e=this,t=e.options,n=e.target;e._showProxy=m(e._showHandler,e),e._closeProxy=m(e._closeHandler,e),e._closeTimeoutProxy=m(e.close,e),n[0]&&(l.support.mobileOS&&"contextmenu"==t.showOn?(e.userEvents=new l.UserEvents(n,{filter:t.filter,allowSelection:!1}),n.on(t.showOn+y,!1),e.userEvents.bind("hold",e._showProxy)):t.filter?n.on(t.showOn+y,t.filter,e._showProxy):n.on(t.showOn+y,e._showProxy))},_triggerEvent:function(n){var i=this,r=e(i.popup.options.anchor)[0],o=i._eventOrigin;return i._eventOrigin=t,i.trigger(n.type,h({type:n.type,item:n.item||this.element[0],target:r},o?{event:o}:{}))},_popup:function(){var e=this;e._triggerProxy=m(e._triggerEvent,e),e.popup=e.element.addClass("k-context-menu").kendoPopup({anchor:e.target||"body",copyAnchorStyles:e.options.copyAnchorStyles,collision:e.options.popupCollision||"fit",animation:e.options.animation,activate:e._triggerProxy,deactivate:e._triggerProxy}).data("kendoPopup"),e._targetChild=r(e.target[0],e.popup.element[0])}});u.plugin(le),u.plugin(ue)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core","./kendo.userevents"],e)}(function(){return function(e,t){function n(t,n){try{return e.contains(t,n)||t==n}catch(i){return!1}}function i(e,t){return parseInt(e.css(t),10)||0}function r(e,t){return Math.min(Math.max(e,t.min),t.max)}function o(e,t){var n=C(e),r=n.left+i(e,"borderLeftWidth")+i(e,"paddingLeft"),o=n.top+i(e,"borderTopWidth")+i(e,"paddingTop"),a=r+e.width()-t.outerWidth(!0),s=o+e.height()-t.outerHeight(!0);return{x:{min:r,max:a},y:{min:o,max:s}}}function a(n,i,r){for(var o,a,s=0,l=i&&i.length,u=r&&r.length;n&&n.parentNode;){for(s=0;l>s;s++)if(o=i[s],o.element[0]===n)return{target:o,targetElement:n};for(s=0;u>s;s++)if(a=r[s],e.contains(a.element[0],n)&&m.matchesSelector.call(n,a.options.filter))return{target:a,targetElement:n};n=n.parentNode}return t}function s(e,t){var n,i=t.options.group,r=e[i];if(w.fn.destroy.call(t),r.length>1){for(n=0;n<r.length;n++)if(r[n]==t){r.splice(n,1);break}}else r.length=0,delete e[i]}function l(e){var t,n,i,r=g.body;return e[0]===r?(n=r.scrollTop,i=r.scrollLeft,{top:n,left:i,bottom:n+v.height(),right:i+v.width()}):(t=e.offset(),t.bottom=t.top+e.height(),t.right=t.left+e.width(),t)}function u(e){return e===g.body||e===g.documentElement||e===g}function c(t){if(!t||u(t))return e(g.body);for(var n=e(t)[0];!h.isScrollable(n)&&!u(n);)n=n.parentNode;return e(n)}function d(e,t,n){var i={x:0,y:0},r=50;return e-n.left<r?i.x=-(r-(e-n.left)):n.right-e<r&&(i.x=r-(n.right-e)),t-n.top<r?i.y=-(r-(t-n.top)):n.bottom-t<r&&(i.y=r-(n.bottom-t)),i}var p,f,h=window.kendo,m=h.support,g=window.document,v=e(window),_=h.Class,w=h.ui.Widget,b=h.Observable,y=h.UserEvents,k=e.proxy,x=e.extend,C=h.getOffset,T={},S={},D={},I=h.elementUnderCursor,F="keyup",M="change",E="dragstart",O="hold",A="drag",H="dragend",z="dragcancel",V="hintDestroyed",P="dragenter",L="dragleave",R="drop",B=b.extend({init:function(t,n){var i=this,r=t[0];i.capture=!1,r.addEventListener?(e.each(h.eventMap.down.split(" "),function(){r.addEventListener(this,k(i._press,i),!0)}),e.each(h.eventMap.up.split(" "),function(){r.addEventListener(this,k(i._release,i),!0)})):(e.each(h.eventMap.down.split(" "),function(){r.attachEvent(this,k(i._press,i))}),e.each(h.eventMap.up.split(" "),function(){r.attachEvent(this,k(i._release,i))})),b.fn.init.call(i),i.bind(["press","release"],n||{})},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1},_press:function(e){var t=this;t.trigger("press"),t.capture&&e.preventDefault()},_release:function(e){var t=this;t.trigger("release"),t.capture&&(e.preventDefault(),t.cancelCapture())}}),N=b.extend({init:function(t){var n=this;b.fn.init.call(n),n.forcedEnabled=!1,e.extend(n,t),n.scale=1,n.horizontal?(n.measure="offsetWidth",n.scrollSize="scrollWidth",n.axis="x"):(n.measure="offsetHeight",n.scrollSize="scrollHeight",n.axis="y")},makeVirtual:function(){e.extend(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})},virtualSize:function(e,t){(this._virtualMin!==e||this._virtualMax!==t)&&(this._virtualMin=e,this._virtualMax=t,this.update())},outOfBounds:function(e){return e>this.max||e<this.min},forceEnabled:function(){this.forcedEnabled=!0},getSize:function(){return this.container[0][this.measure]},getTotal:function(){return this.element[0][this.scrollSize]},rescale:function(e){this.scale=e},update:function(e){var t=this,n=t.virtual?t._virtualMax:t.getTotal(),i=n*t.scale,r=t.getSize();(0!==n||t.forcedEnabled)&&(t.max=t.virtual?-t._virtualMin:0,t.size=r,t.total=i,t.min=Math.min(t.max,r-i),t.minScale=r/n,t.centerOffset=(i-r)/2,t.enabled=t.forcedEnabled||i>r,e||t.trigger(M,t))}}),W=b.extend({init:function(e){var t=this;b.fn.init.call(t),t.x=new N(x({horizontal:!0},e)),t.y=new N(x({horizontal:!1},e)),t.container=e.container,t.forcedMinScale=e.minScale,t.maxScale=e.maxScale||100,t.bind(M,e)},rescale:function(e){this.x.rescale(e),this.y.rescale(e),this.refresh()},centerCoordinates:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}},refresh:function(){var e=this;e.x.update(),e.y.update(),e.enabled=e.x.enabled||e.y.enabled,e.minScale=e.forcedMinScale||Math.min(e.x.minScale,e.y.minScale),e.fitScale=Math.max(e.x.minScale,e.y.minScale),e.trigger(M)}}),U=b.extend({init:function(e){var t=this;x(t,e),b.fn.init.call(t)},outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},dragMove:function(e){var t=this,n=t.dimension,i=t.axis,r=t.movable,o=r[i]+e;n.enabled&&((o<n.min&&0>e||o>n.max&&e>0)&&(e*=t.resistance),r.translateAxis(i,e),t.trigger(M,t))}}),q=_.extend({init:function(e){var t,n,i,r,o=this;x(o,{elastic:!0},e),i=o.elastic?.5:0,r=o.movable,o.x=t=new U({axis:"x",dimension:o.dimensions.x,resistance:i,movable:r}),o.y=n=new U({axis:"y",dimension:o.dimensions.y,resistance:i,movable:r}),o.userEvents.bind(["move","end","gesturestart","gesturechange"],{gesturestart:function(e){o.gesture=e,o.offset=o.dimensions.container.offset()},gesturechange:function(e){var i,a=o.gesture,s=a.center,l=e.center,u=e.distance/a.distance,c=o.dimensions.minScale,d=o.dimensions.maxScale;r.scale<=c&&1>u&&(u+=.8*(1-u)),r.scale*u>=d&&(u=d/r.scale);var p=r.x+o.offset.left,f=r.y+o.offset.top;i={x:(p-s.x)*u+l.x-p,y:(f-s.y)*u+l.y-f},r.scaleWith(u),t.dragMove(i.x),n.dragMove(i.y),o.dimensions.rescale(r.scale),o.gesture=e,e.preventDefault()},move:function(e){e.event.target.tagName.match(/textarea|input/i)||(t.dimension.enabled||n.dimension.enabled?(t.dragMove(e.x.delta),n.dragMove(e.y.delta),e.preventDefault()):e.touch.skip())},end:function(e){e.preventDefault()}})}}),$=m.transitions.prefix+"Transform";f=m.hasHW3D?function(e,t,n){return"translate3d("+e+"px,"+t+"px,0) scale("+n+")"}:function(e,t,n){return"translate("+e+"px,"+t+"px) scale("+n+")"};var j=b.extend({init:function(t){var n=this;b.fn.init.call(n),n.element=e(t),n.element[0].style.webkitTransformOrigin="left top",n.x=0,n.y=0,n.scale=1,n._saveCoordinates(f(n.x,n.y,n.scale))},translateAxis:function(e,t){this[e]+=t,this.refresh()},scaleTo:function(e){this.scale=e,this.refresh()},scaleWith:function(e){this.scale*=e,this.refresh()},translate:function(e){this.x+=e.x,this.y+=e.y,this.refresh()},moveAxis:function(e,t){this[e]=t,this.refresh()},moveTo:function(e){x(this,e),this.refresh()},refresh:function(){var e,t=this,n=t.x,i=t.y;t.round&&(n=Math.round(n),i=Math.round(i)),e=f(n,i,t.scale),e!=t.coordinates&&(h.support.browser.msie&&h.support.browser.version<10?(t.element[0].style.position="absolute",t.element[0].style.left=t.x+"px",t.element[0].style.top=t.y+"px"):t.element[0].style[$]=e,t._saveCoordinates(e),t.trigger(M))},_saveCoordinates:function(e){this.coordinates=e}}),G=w.extend({init:function(e,t){var n=this;w.fn.init.call(n,e,t);var i=n.options.group;i in S?S[i].push(n):S[i]=[n]},events:[P,L,R],options:{name:"DropTarget",group:"default"},destroy:function(){s(S,this)},_trigger:function(e,t){var n=this,i=T[n.options.group];return i?n.trigger(e,x({},t.event,{draggable:i,dropTarget:t.dropTarget})):void 0},_over:function(e){this._trigger(P,e)},_out:function(e){this._trigger(L,e)},_drop:function(e){var t=this,n=T[t.options.group];n&&(n.dropped=!t._trigger(R,e))}});G.destroyGroup=function(e){var t,n=S[e]||D[e];if(n){for(t=0;t<n.length;t++)w.fn.destroy.call(n[t]);n.length=0,delete S[e],delete D[e]}},G._cache=S;var Y=G.extend({init:function(e,t){var n=this;w.fn.init.call(n,e,t);var i=n.options.group;i in D?D[i].push(n):D[i]=[n]},destroy:function(){s(D,this)},options:{name:"DropTargetArea",group:"default",filter:null}}),K=w.extend({init:function(e,t){var n=this;w.fn.init.call(n,e,t),n._activated=!1,n.userEvents=new y(n.element,{global:!0,allowSelection:!0,filter:n.options.filter,threshold:n.options.distance,start:k(n._start,n),hold:k(n._hold,n),move:k(n._drag,n),end:k(n._end,n),cancel:k(n._cancel,n),select:k(n._select,n)}),n._afterEndHandler=k(n._afterEnd,n),n._captureEscape=k(n._captureEscape,n)},events:[O,E,A,H,z,V],options:{name:"Draggable",distance:h.support.touch?0:5,group:"default",cursorOffset:null,axis:null,container:null,filter:null,ignore:null,holdToDrag:!1,autoScroll:!1,dropped:!1},cancelHold:function(){this._activated=!1},_captureEscape:function(e){var t=this;e.keyCode===h.keys.ESC&&(t._trigger(z,{event:e}),t.userEvents.cancel())},_updateHint:function(t){var n,i=this,o=i.options,a=i.boundaries,s=o.axis,l=i.options.cursorOffset;l?n={left:t.x.location+l.left,top:t.y.location+l.top}:(i.hintOffset.left+=t.x.delta,i.hintOffset.top+=t.y.delta,n=e.extend({},i.hintOffset)),a&&(n.top=r(n.top,a.y),n.left=r(n.left,a.x)),"x"===s?delete n.top:"y"===s&&delete n.left,i.hint.css(n)},_shouldIgnoreTarget:function(t){var n=this.options.ignore;return n&&e(t).is(n)},_select:function(e){this._shouldIgnoreTarget(e.event.target)||e.preventDefault()},_start:function(t){var n=this,i=n.options,r=i.container,a=i.hint;if(this._shouldIgnoreTarget(t.touch.initialTouch)||i.holdToDrag&&!n._activated)return void n.userEvents.cancel();if(n.currentTarget=t.target,n.currentTargetOffset=C(n.currentTarget),a){n.hint&&n.hint.stop(!0,!0).remove(),n.hint=h.isFunction(a)?e(a.call(n,n.currentTarget)):a;var s=C(n.currentTarget);n.hintOffset=s,n.hint.css({position:"absolute",zIndex:2e4,left:s.left,top:s.top}).appendTo(g.body),n.angular("compile",function(){n.hint.removeAttr("ng-repeat");for(var i=e(t.target);!i.data("$$kendoScope")&&i.length;)i=i.parent();return{elements:n.hint.get(),scopeFrom:i.data("$$kendoScope")}})}T[i.group]=n,n.dropped=!1,r&&(n.boundaries=o(r,n.hint)),e(g).on(F,n._captureEscape),n._trigger(E,t)&&(n.userEvents.cancel(),n._afterEnd()),n.userEvents.capture()},_hold:function(e){this.currentTarget=e.target,this._trigger(O,e)?this.userEvents.cancel():this._activated=!0},_drag:function(t){var n=this;t.preventDefault();var i=this._elementUnderCursor(t);if(n._withDropTarget(i,function(n,i){if(!n)return void(p&&(p._trigger(L,x(t,{dropTarget:e(p.targetElement)})),p=null));if(p){if(i===p.targetElement)return;p._trigger(L,x(t,{dropTarget:e(p.targetElement)}))}n._trigger(P,x(t,{dropTarget:e(i)})),p=x(n,{targetElement:i})}),n._trigger(A,x(t,{dropTarget:p,elementUnderCursor:i})),this.options.autoScroll&&(this._cursorElement!==i&&(this._scrollableParent=c(i),this._cursorElement=i),this._scrollableParent[0])){var r=d(t.x.location,t.y.location,l(this._scrollableParent));this._scrollCompenstation=e.extend({},this.hintOffset),this._scrollVelocity=r,0===r.y&&0===r.x?(clearInterval(this._scrollInterval),this._scrollInterval=null):this._scrollInterval||(this._scrollInterval=setInterval(e.proxy(this,"_autoScroll"),50))}n.hint&&n._updateHint(t)},_autoScroll:function(){var e=this._scrollableParent[0],t=this._scrollVelocity,n=this._scrollCompenstation;if(e){var i,r,o=e===g.body;o?(i=g.body.offsetHeight>v.height(),r=g.body.offsetWidth>v.width()):(i=e.offsetHeight<=e.scrollHeight,r=e.offsetWidth<=e.scrollWidth);var a=e.scrollTop+t.y,s=i&&a>0&&a<e.scrollHeight,l=e.scrollLeft+t.x,u=r&&l>0&&l<e.scrollWidth;s&&(e.scrollTop+=t.y),u&&(e.scrollLeft+=t.x),o&&(u||s)&&(s&&(n.top+=t.y),u&&(n.left+=t.x),this.hint.css(n))}},_end:function(t){this._withDropTarget(this._elementUnderCursor(t),function(n,i){n&&(n._drop(x({},t,{dropTarget:e(i)})),p=null)}),this._trigger(H,t),this._cancel(t.event)},_cancel:function(){var e=this;e._scrollableParent=null,clearInterval(this._scrollInterval),e._activated=!1,e.hint&&!e.dropped?setTimeout(function(){e.hint.stop(!0,!0).animate(e.currentTargetOffset,"fast",e._afterEndHandler)},0):e._afterEnd()},_trigger:function(e,t){var n=this;return n.trigger(e,x({},t.event,{x:t.x,y:t.y,currentTarget:n.currentTarget,initialTarget:t.touch?t.touch.initialTouch:null,dropTarget:t.dropTarget,elementUnderCursor:t.elementUnderCursor}))},_elementUnderCursor:function(e){var t=I(e),i=this.hint;return i&&n(i[0],t)&&(i.hide(),t=I(e),t||(t=I(e)),i.show()),t},_withDropTarget:function(e,t){var n,i=this.options.group,r=S[i],o=D[i];(r&&r.length||o&&o.length)&&(n=a(e,r,o),n?t(n.target,n.targetElement):t())},destroy:function(){var e=this;w.fn.destroy.call(e),e._afterEnd(),e.userEvents.destroy(),this._scrollableParent=null,this._cursorElement=null,clearInterval(this._scrollInterval),e.currentTarget=null},_afterEnd:function(){var t=this;t.hint&&t.hint.remove(),delete T[t.options.group],t.trigger("destroy"),t.trigger(V),e(g).off(F,t._captureEscape)}});h.ui.plugin(G),h.ui.plugin(Y),h.ui.plugin(K),h.TapCapture=B,h.containerBoundaries=o,x(h.ui,{Pane:q,PaneDimensions:W,Movable:j}),h.ui.Draggable.utils={autoScrollVelocity:d,scrollableViewPort:l,findScrollableParent:c}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.draganddrop"],e)}(function(){return function(e,t){function n(e,t,n){var i=n?" k-slider-horizontal":" k-slider-vertical",r=e.style?e.style:t.attr("style"),o=t.attr("class")?" "+t.attr("class"):"",a="";return"bottomRight"==e.tickPlacement?a=" k-slider-bottomright":"topLeft"==e.tickPlacement&&(a=" k-slider-topleft"),r=r?" style='"+r+"'":"","<div class='k-widget k-slider"+i+o+"'"+r+"><div class='k-slider-wrap"+(e.showButtons?" k-slider-buttons":"")+a+"'></div></div>"}function i(e,t,n){var i="";return i="increase"==t?n?"k-i-arrow-e":"k-i-arrow-n":n?"k-i-arrow-w":"k-i-arrow-s","<a class='k-button k-button-"+t+"'><span class='k-icon "+i+"' title='"+e[t+"ButtonTitle"]+"'>"+e[t+"ButtonTitle"]+"</span></a>"}function r(e,t){var n,i="<ul class='k-reset k-slider-items'>",r=y.floor(u(t/e.smallStep))+1;for(n=0;r>n;n++)i+="<li class='k-tick' role='presentation'>&nbsp;</li>";return i+="</ul>"}function o(e,t){var n=t.is("input")?1:2,i=2==n?e.leftDragHandleTitle:e.dragHandleTitle;return"<div class='k-slider-track'><div class='k-slider-selection'><!-- --></div><a href='#' class='k-draghandle' title='"+i+"' role='slider' aria-valuemin='"+e.min+"' aria-valuemax='"+e.max+"' aria-valuenow='"+(n>1?e.selectionStart||e.min:e.value||e.min)+"'>Drag</a>"+(n>1?"<a href='#' class='k-draghandle' title='"+e.rightDragHandleTitle+"'role='slider' aria-valuemin='"+e.min+"' aria-valuemax='"+e.max+"' aria-valuenow='"+(e.selectionEnd||e.max)+"'>Drag</a>":"")+"</div>"}function a(e){return function(t){return t+e}}function s(e){return function(){return e}}function l(e){return(e+"").replace(".",f.cultures.current.numberFormat["."])}function u(e){e=parseFloat(e,10);var t=y.pow(10,$||0);return y.round(e*t)/t}function c(e,n){var i=_(e.getAttribute(n));return null===i&&(i=t),i}function d(e){return typeof e!==G}function p(e){return 1e4*e}var f=window.kendo,h=f.ui.Widget,m=f.ui.Draggable,g=e.extend,v=f.format,_=f.parseFloat,w=e.proxy,b=e.isArray,y=Math,k=f.support,x=k.pointers,C=k.msPointers,T="change",S="slide",D=".slider",I="touchstart"+D+" mousedown"+D,F=x?"pointerdown"+D:C?"MSPointerDown"+D:I,M="touchend"+D+" mouseup"+D,E=x?"pointerup":C?"MSPointerUp"+D:M,O="moveSelection",A="keydown"+D,H="click"+D,z="mouseover"+D,V="focus"+D,P="blur"+D,L=".k-draghandle",R=".k-slider-track",B=".k-tick",N="k-state-selected",W="k-state-focused",U="k-state-default",q="k-state-disabled",$=3,j="disabled",G="undefined",Y="tabindex",K=f.getTouches,Q=h.extend({init:function(e,t){var n=this;if(h.fn.init.call(n,e,t),t=n.options,n._distance=u(t.max-t.min),n._isHorizontal="horizontal"==t.orientation,n._isRtl=n._isHorizontal&&f.support.isRtl(e),n._position=n._isHorizontal?"left":"bottom",n._sizeFn=n._isHorizontal?"width":"height",n._outerSize=n._isHorizontal?"outerWidth":"outerHeight",t.tooltip.format=t.tooltip.enabled?t.tooltip.format||"{0}":"{0}",t.smallStep<=0)throw new Error("Kendo UI Slider smallStep must be a positive number.");n._createHtml(),n.wrapper=n.element.closest(".k-slider"),n._trackDiv=n.wrapper.find(R),n._setTrackDivWidth(),n._maxSelection=n._trackDiv[n._sizeFn](),n._sliderItemsInit(),n._reset(),n._tabindex(n.wrapper.find(L)),n[t.enabled?"enable":"disable"]();var i=f.support.isRtl(n.wrapper)?-1:1;n._keyMap={37:a(-1*i*t.smallStep),40:a(-t.smallStep),39:a(1*i*t.smallStep),38:a(+t.smallStep),35:s(t.max),36:s(t.min),33:a(+t.largeStep),34:a(-t.largeStep)},f.notify(n)},events:[T,S],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:!0,format:"{0}"}},_resize:function(){this._setTrackDivWidth(),this.wrapper.find(".k-slider-items").remove(),this._maxSelection=this._trackDiv[this._sizeFn](),this._sliderItemsInit(),this._refresh()},_sliderItemsInit:function(){var e=this,t=e.options,n=e._maxSelection/((t.max-t.min)/t.smallStep),i=e._calculateItemsWidth(y.floor(e._distance/t.smallStep));"none"!=t.tickPlacement&&n>=2&&(e._trackDiv.before(r(t,e._distance)),e._setItemsWidth(i),e._setItemsTitle()),e._calculateSteps(i),"none"!=t.tickPlacement&&n>=2&&t.largeStep>=t.smallStep&&e._setItemsLargeTick()},getSize:function(){return f.dimensions(this.wrapper)},_setTrackDivWidth:function(){var e=this,t=2*parseFloat(e._trackDiv.css(e._isRtl?"right":e._position),10);e._trackDiv[e._sizeFn](e.wrapper[e._sizeFn]()-2-t)},_setItemsWidth:function(t){var n,i=this,r=i.options,o=0,a=t.length-1,s=i.wrapper.find(B),l=0,u=2,c=s.length,d=0;for(n=0;c-2>n;n++)e(s[n+1])[i._sizeFn](t[n]);if(i._isHorizontal?(e(s[o]).addClass("k-first")[i._sizeFn](t[a-1]),e(s[a]).addClass("k-last")[i._sizeFn](t[a])):(e(s[a]).addClass("k-first")[i._sizeFn](t[a]),e(s[o]).addClass("k-last")[i._sizeFn](t[a-1])),i._distance%r.smallStep!==0&&!i._isHorizontal){for(n=0;n<t.length;n++)d+=t[n];l=i._maxSelection-d,l+=parseFloat(i._trackDiv.css(i._position),10)+u,i.wrapper.find(".k-slider-items").css("padding-top",l)}},_setItemsTitle:function(){for(var t=this,n=t.options,i=t.wrapper.find(B),r=n.min,o=i.length,a=t._isHorizontal&&!t._isRtl?0:o-1,s=t._isHorizontal&&!t._isRtl?o:-1,l=t._isHorizontal&&!t._isRtl?1:-1;a-s!==0;a+=l)e(i[a]).attr("title",v(n.tooltip.format,u(r))),r+=n.smallStep},_setItemsLargeTick:function(){var t,n,i=this,r=i.options,o=i.wrapper.find(B),a=0;if(p(r.largeStep)%p(r.smallStep)===0||i._distance/r.largeStep>=3)for(i._isHorizontal||i._isRtl||(o=e.makeArray(o).reverse()),a=0;a<o.length;a++){t=e(o[a]),n=i._values[a];var s=u(p(n-this.options.min));s%p(r.smallStep)===0&&s%p(r.largeStep)===0&&(t.addClass("k-tick-large").html("<span class='k-label'>"+t.attr("title")+"</span>"),0!==a&&a!==o.length-1&&t.css("line-height",t[i._sizeFn]()+"px"))}},_calculateItemsWidth:function(e){var t,n,i,r=this,o=r.options,a=parseFloat(r._trackDiv.css(r._sizeFn))+1,s=a/r._distance;for(r._distance/o.smallStep-y.floor(r._distance/o.smallStep)>0&&(a-=r._distance%o.smallStep*s),t=a/e,n=[],i=0;e-1>i;i++)n[i]=t;return n[e-1]=n[e]=t/2,r._roundWidths(n)},_roundWidths:function(e){var t,n=0,i=e.length;for(t=0;i>t;t++)n+=e[t]-y.floor(e[t]),e[t]=y.floor(e[t]);return n=y.round(n),this._addAdditionalSize(n,e)},_addAdditionalSize:function(e,t){if(0===e)return t;var n,i=parseFloat(t.length-1)/parseFloat(1==e?e:e-1);for(n=0;e>n;n++)t[parseInt(y.round(i*n),10)]+=1;return t},_calculateSteps:function(e){var t,n=this,i=n.options,r=i.min,o=0,a=y.ceil(n._distance/i.smallStep),s=1;if(a+=n._distance/i.smallStep%1===0?1:0,e.splice(0,0,2*e[a-2]),e.splice(a-1,1,2*e.pop()),n._pixelSteps=[o],n._values=[r],0!==a){for(;a>s;)o+=(e[s-1]+e[s])/2,n._pixelSteps[s]=o,r+=i.smallStep,n._values[s]=u(r),s++;t=n._distance%i.smallStep===0?a-1:a,n._pixelSteps[t]=n._maxSelection,n._values[t]=i.max,n._isRtl&&(n._pixelSteps.reverse(),n._values.reverse())}},_getValueFromPosition:function(e,t){var n,i=this,r=i.options,o=y.max(r.smallStep*(i._maxSelection/i._distance),0),a=0,s=o/2;if(i._isHorizontal?(a=e-t.startPoint,i._isRtl&&(a=i._maxSelection-a)):a=t.startPoint-e,i._maxSelection-(parseInt(i._maxSelection%o,10)-3)/2<a)return r.max;for(n=0;n<i._pixelSteps.length;n++)if(y.abs(i._pixelSteps[n]-a)-1<=s)return u(i._values[n])},_getFormattedValue:function(e,t){var n,i,r,o=this,a="",s=o.options.tooltip;return b(e)?(i=e[0],r=e[1]):t&&t.type&&(i=t.selectionStart,r=t.selectionEnd),t&&(n=t.tooltipTemplate),!n&&s.template&&(n=f.template(s.template)),b(e)||t&&t.type?n?a=n({selectionStart:i,selectionEnd:r}):(i=v(s.format,i),r=v(s.format,r),a=i+" - "+r):(t&&(t.val=e),a=n?n({value:e}):v(s.format,e)),a},_getDraggableArea:function(){var e=this,t=f.getOffset(e._trackDiv);return{startPoint:e._isHorizontal?t.left:t.top+e._maxSelection,endPoint:e._isHorizontal?t.left+e._maxSelection:t.top}},_createHtml:function(){var e=this,t=e.element,r=e.options,a=t.find("input");2==a.length?(a.eq(0).prop("value",l(r.selectionStart)),a.eq(1).prop("value",l(r.selectionEnd))):t.prop("value",l(r.value)),t.wrap(n(r,t,e._isHorizontal)).hide(),r.showButtons&&t.before(i(r,"increase",e._isHorizontal)).before(i(r,"decrease",e._isHorizontal)),t.before(o(r,t))},_focus:function(t){var n=this,i=t.target,r=n.value(),o=n._drag;o||(i==n.wrapper.find(L).eq(0)[0]?(o=n._firstHandleDrag,n._activeHandle=0):(o=n._lastHandleDrag,n._activeHandle=1),r=r[n._activeHandle]),e(i).addClass(W+" "+N),o&&(n._activeHandleDrag=o,o.selectionStart=n.options.selectionStart,o.selectionEnd=n.options.selectionEnd,o._updateTooltip(r))},_focusWithMouse:function(t){t=e(t);var n=this,i=t.is(L)?t.index():0;window.setTimeout(function(){n.wrapper.find(L)[2==i?1:0].focus()},1),n._setTooltipTimeout()},_blur:function(t){var n=this,i=n._activeHandleDrag;e(t.target).removeClass(W+" "+N),i&&(i._removeTooltip(),delete n._activeHandleDrag,delete n._activeHandle)},_setTooltipTimeout:function(){var e=this;e._tooltipTimeout=window.setTimeout(function(){var t=e._drag||e._activeHandleDrag;t&&t._removeTooltip()},300)},_clearTooltipTimeout:function(){var e=this;window.clearTimeout(this._tooltipTimeout);var t=e._drag||e._activeHandleDrag;t&&t.tooltipDiv&&t.tooltipDiv.stop(!0,!1).css("opacity",1)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),r=i?e("#"+i):n.closest("form");r[0]&&(t._form=r.on("reset",w(t._formResetHandler,t)))},destroy:function(){this._form&&this._form.off("reset",this._formResetHandler),h.fn.destroy.call(this)}}),J=Q.extend({init:function(n,i){var r,o=this;n.type="text",i=g({},{value:c(n,"value"),min:c(n,"min"),max:c(n,"max"),smallStep:c(n,"step")},i),n=e(n),i&&i.enabled===t&&(i.enabled=!n.is("[disabled]")),Q.fn.init.call(o,n,i),i=o.options,d(i.value)&&null!==i.value||(i.value=i.min,n.prop("value",l(i.min))),i.value=y.max(y.min(i.value,i.max),i.min),r=o.wrapper.find(L),new J.Selection(r,o,i),o._drag=new J.Drag(r,"",o,i)},options:{name:"Slider",showButtons:!0,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",dragHandleTitle:"drag",tooltip:{format:"{0:#,#.##}"},value:null},enable:function(t){var n,i,r=this,o=r.options;if(r.disable(),t!==!1){if(r.wrapper.removeClass(q).addClass(U),r.wrapper.find("input").removeAttr(j),n=function(t){var n=K(t)[0];if(n){var i=r._isHorizontal?n.location.pageX:n.location.pageY,o=r._getDraggableArea(),a=e(t.target);if(a.hasClass("k-draghandle"))return void a.addClass(W+" "+N);r._update(r._getValueFromPosition(i,o)),r._focusWithMouse(t.target),r._drag.dragstart(t),t.preventDefault()}},r.wrapper.find(B+", "+R).on(F,n).end().on(F,function(){e(document.documentElement).one("selectstart",f.preventDefault)}).on(E,function(){r._drag._end()}),r.wrapper.find(L).attr(Y,0).on(M,function(){r._setTooltipTimeout()}).on(H,function(e){r._focusWithMouse(e.target),e.preventDefault()}).on(V,w(r._focus,r)).on(P,w(r._blur,r)),i=w(function(e){var t=r._nextValueByIndex(r._valueIndex+1*e);r._setValueInRange(t),r._drag._updateTooltip(t)},r),o.showButtons){var a=w(function(e,t){this._clearTooltipTimeout(),(1===e.which||k.touch&&0===e.which)&&(i(t),this.timeout=setTimeout(w(function(){this.timer=setInterval(function(){i(t)},60)},this),200))},r);r.wrapper.find(".k-button").on(M,w(function(e){this._clearTimer(),r._focusWithMouse(e.target)},r)).on(z,function(t){e(t.currentTarget).addClass("k-state-hover")}).on("mouseout"+D,w(function(t){e(t.currentTarget).removeClass("k-state-hover"),this._clearTimer()},r)).eq(0).on(I,w(function(e){a(e,1)},r)).click(!1).end().eq(1).on(I,w(function(e){a(e,-1)},r)).click(f.preventDefault)}r.wrapper.find(L).off(A,!1).on(A,w(this._keydown,r)),o.enabled=!0}},disable:function(){var t=this;t.wrapper.removeClass(U).addClass(q),e(t.element).prop(j,j),t.wrapper.find(".k-button").off(I).on(I,f.preventDefault).off(M).on(M,f.preventDefault).off("mouseleave"+D).on("mouseleave"+D,f.preventDefault).off(z).on(z,f.preventDefault),t.wrapper.find(B+", "+R).off(F).off(E),t.wrapper.find(L).attr(Y,-1).off(M).off(A).off(H).off(V).off(P),t.options.enabled=!1},_update:function(e){var t=this,n=t.value()!=e;t.value(e),n&&t.trigger(T,{value:t.options.value})},value:function(e){var t=this,n=t.options;return e=u(e),isNaN(e)?n.value:void(e>=n.min&&e<=n.max&&n.value!=e&&(t.element.prop("value",l(e)),n.value=e,t._refreshAriaAttr(e),t._refresh()))},_refresh:function(){this.trigger(O,{value:this.options.value})},_refreshAriaAttr:function(e){var t,n=this,i=n._drag;t=i&&i._tooltipDiv?i._tooltipDiv.text():n._getFormattedValue(e,null),this.wrapper.find(L).attr("aria-valuenow",e).attr("aria-valuetext",t)},_clearTimer:function(){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(e){var t=this;e.keyCode in t._keyMap&&(t._clearTooltipTimeout(),t._setValueInRange(t._keyMap[e.keyCode](t.options.value)),t._drag._updateTooltip(t.value()),e.preventDefault())},_setValueInRange:function(e){var t=this,n=t.options;return e=u(e),isNaN(e)?void t._update(n.min):(e=y.max(y.min(e,n.max),n.min),void t._update(e))},_nextValueByIndex:function(e){var t=this._values.length;return this._isRtl&&(e=t-1-e),this._values[y.max(0,y.min(e,t-1))]},_formResetHandler:function(){var e=this,t=e.options.min;setTimeout(function(){var n=e.element[0].value;e.value(""===n||isNaN(n)?t:n)})},destroy:function(){var e=this;Q.fn.destroy.call(e),e.wrapper.off(D).find(".k-button").off(D).end().find(L).off(D).end().find(B+", "+R).off(D).end(),e._drag.draggable.destroy(),e._drag._removeTooltip(!0)}});J.Selection=function(e,t,n){function i(i){var r=i-n.min,o=t._valueIndex=y.ceil(u(r/n.smallStep)),a=parseInt(t._pixelSteps[o],10),s=t._trackDiv.find(".k-slider-selection"),l=parseInt(e[t._outerSize]()/2,10),c=t._isRtl?2:0;s[t._sizeFn](t._isRtl?t._maxSelection-a:a),e.css(t._position,a-l-c)}i(n.value),t.bind([T,S,O],function(e){i(parseFloat(e.value,10))})},J.Drag=function(e,t,n,i){var r=this;r.owner=n,r.options=i,r.element=e,r.type=t,r.draggable=new m(e,{distance:0,dragstart:w(r._dragstart,r),drag:w(r.drag,r),dragend:w(r.dragend,r),dragcancel:w(r.dragcancel,r)}),e.click(!1)},J.Drag.prototype={dragstart:function(e){this.owner._activeDragHandle=this,this.draggable.userEvents.cancel(),this.draggable.userEvents._start(e)},_dragstart:function(t){var n=this,i=n.owner,r=n.options;return r.enabled?(this.owner._activeDragHandle=this,i.element.off(z),i.wrapper.find("."+W).removeClass(W+" "+N),n.element.addClass(W+" "+N),e(document.documentElement).css("cursor","pointer"),n.dragableArea=i._getDraggableArea(),n.step=y.max(r.smallStep*(i._maxSelection/i._distance),0),n.type?(n.selectionStart=r.selectionStart,n.selectionEnd=r.selectionEnd,i._setZIndex(n.type)):n.oldVal=n.val=r.value,n._removeTooltip(!0),void n._createTooltip()):void t.preventDefault()},_createTooltip:function(){var t,n,i=this,r=i.owner,o=i.options.tooltip,a="",s=e(window);o.enabled&&(o.template&&(t=i.tooltipTemplate=f.template(o.template)),e(".k-slider-tooltip").remove(),i.tooltipDiv=e("<div class='k-widget k-tooltip k-slider-tooltip'><!-- --></div>").appendTo(document.body),a=r._getFormattedValue(i.val||r.value(),i),i.type||(n="k-callout-"+(r._isHorizontal?"s":"e"),i.tooltipInnerDiv="<div class='k-callout "+n+"'><!-- --></div>",a+=i.tooltipInnerDiv),i.tooltipDiv.html(a),i._scrollOffset={top:s.scrollTop(),left:s.scrollLeft()},i.moveTooltip())},drag:function(e){var t,n=this,i=n.owner,r=e.x.location,o=e.y.location,a=n.dragableArea.startPoint,s=n.dragableArea.endPoint;e.preventDefault(),n.val=i._isHorizontal?i._isRtl?n.constrainValue(r,a,s,s>r):n.constrainValue(r,a,s,r>=s):n.constrainValue(o,s,a,s>=o),n.oldVal!=n.val&&(n.oldVal=n.val,n.type?("firstHandle"==n.type?n.selectionStart=n.val<n.selectionEnd?n.val:n.selectionEnd=n.val:n.val>n.selectionStart?n.selectionEnd=n.val:n.selectionStart=n.selectionEnd=n.val,t={values:[n.selectionStart,n.selectionEnd],value:[n.selectionStart,n.selectionEnd]}):t={value:n.val},i.trigger(S,t)),n._updateTooltip(n.val)},_updateTooltip:function(e){var t=this,n=t.options,i=n.tooltip,r="";i.enabled&&(t.tooltipDiv||t._createTooltip(),r=t.owner._getFormattedValue(u(e),t),t.type||(r+=t.tooltipInnerDiv),t.tooltipDiv.html(r),t.moveTooltip())},dragcancel:function(){return this.owner._refresh(),e(document.documentElement).css("cursor",""),this._end()},dragend:function(){var t=this,n=t.owner;return e(document.documentElement).css("cursor",""),t.type?n._update(t.selectionStart,t.selectionEnd):(n._update(t.val),t.draggable.userEvents._disposeAll()),t._end()},_end:function(){var e=this,t=e.owner;return t._focusWithMouse(e.element),t.element.on(z),!1},_removeTooltip:function(t){var n=this,i=n.owner;n.tooltipDiv&&i.options.tooltip.enabled&&i.options.enabled&&(t?(n.tooltipDiv.remove(),n.tooltipDiv=null):n.tooltipDiv.fadeOut("slow",function(){e(this).remove(),n.tooltipDiv=null}))},moveTooltip:function(){var t,n,i,r,o=this,a=o.owner,s=0,l=0,u=o.element,c=f.getOffset(u),d=8,p=e(window),h=o.tooltipDiv.find(".k-callout"),m=o.tooltipDiv.outerWidth(),g=o.tooltipDiv.outerHeight();o.type?(t=a.wrapper.find(L),c=f.getOffset(t.eq(0)),n=f.getOffset(t.eq(1)),a._isHorizontal?(s=n.top,l=c.left+(n.left-c.left)/2):(s=c.top+(n.top-c.top)/2,l=n.left),r=t.eq(0).outerWidth()+2*d):(s=c.top,l=c.left,r=u.outerWidth()+2*d),a._isHorizontal?(l-=parseInt((m-u[a._outerSize]())/2,10),s-=g+h.height()+d):(s-=parseInt((g-u[a._outerSize]())/2,10),l-=m+h.width()+d),a._isHorizontal?(i=o._flip(s,g,r,p.outerHeight()+o._scrollOffset.top),s+=i,l+=o._fit(l,m,p.outerWidth()+o._scrollOffset.left)):(i=o._flip(l,m,r,p.outerWidth()+o._scrollOffset.left),s+=o._fit(s,g,p.outerHeight()+o._scrollOffset.top),l+=i),i>0&&h&&(h.removeClass(),h.addClass("k-callout k-callout-"+(a._isHorizontal?"n":"w"))),o.tooltipDiv.css({top:s,left:l})},_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){var r=0;return e+t>i&&(r+=-(n+t)),0>e+r&&(r+=n+t),r},constrainValue:function(e,t,n,i){var r=this,o=0;return o=e>t&&n>e?r.owner._getValueFromPosition(e,r.dragableArea):i?r.options.max:r.options.min}},f.ui.plugin(J);var Z=Q.extend({init:function(n,i){var r=this,o=e(n).find("input"),a=o.eq(0)[0],s=o.eq(1)[0];a.type="text",s.type="text",i&&i.showButtons&&(window.console&&window.console.warn("showbuttons option is not supported for the range slider, ignoring"),i.showButtons=!1),i=g({},{selectionStart:c(a,"value"),min:c(a,"min"),max:c(a,"max"),smallStep:c(a,"step")},{selectionEnd:c(s,"value"),min:c(s,"min"),max:c(s,"max"),smallStep:c(s,"step")},i),i&&i.enabled===t&&(i.enabled=!o.is("[disabled]")),Q.fn.init.call(r,n,i),i=r.options,d(i.selectionStart)&&null!==i.selectionStart||(i.selectionStart=i.min,o.eq(0).prop("value",l(i.min))),
  d(i.selectionEnd)&&null!==i.selectionEnd||(i.selectionEnd=i.max,o.eq(1).prop("value",l(i.max)));var u=r.wrapper.find(L);new Z.Selection(u,r,i),r._firstHandleDrag=new J.Drag(u.eq(0),"firstHandle",r,i),r._lastHandleDrag=new J.Drag(u.eq(1),"lastHandle",r,i)},options:{name:"RangeSlider",leftDragHandleTitle:"drag",rightDragHandleTitle:"drag",tooltip:{format:"{0:#,#.##}"},selectionStart:null,selectionEnd:null},enable:function(t){var n,i=this,r=i.options;i.disable(),t!==!1&&(i.wrapper.removeClass(q).addClass(U),i.wrapper.find("input").removeAttr(j),n=function(t){var n=K(t)[0];if(n){var o,a,s,l=i._isHorizontal?n.location.pageX:n.location.pageY,u=i._getDraggableArea(),c=i._getValueFromPosition(l,u),d=e(t.target);if(d.hasClass("k-draghandle"))return i.wrapper.find("."+W).removeClass(W+" "+N),void d.addClass(W+" "+N);c<r.selectionStart?(o=c,a=r.selectionEnd,s=i._firstHandleDrag):c>i.selectionEnd?(o=r.selectionStart,a=c,s=i._lastHandleDrag):c-r.selectionStart<=r.selectionEnd-c?(o=c,a=r.selectionEnd,s=i._firstHandleDrag):(o=r.selectionStart,a=c,s=i._lastHandleDrag),s.dragstart(t),i._setValueInRange(o,a),i._focusWithMouse(s.element)}},i.wrapper.find(B+", "+R).on(F,n).end().on(F,function(){e(document.documentElement).one("selectstart",f.preventDefault)}).on(E,function(){i._activeDragHandle&&i._activeDragHandle._end()}),i.wrapper.find(L).attr(Y,0).on(M,function(){i._setTooltipTimeout()}).on(H,function(e){i._focusWithMouse(e.target),e.preventDefault()}).on(V,w(i._focus,i)).on(P,w(i._blur,i)),i.wrapper.find(L).off(A,f.preventDefault).eq(0).on(A,w(function(e){this._keydown(e,"firstHandle")},i)).end().eq(1).on(A,w(function(e){this._keydown(e,"lastHandle")},i)),i.options.enabled=!0)},disable:function(){var e=this;e.wrapper.removeClass(U).addClass(q),e.wrapper.find("input").prop(j,j),e.wrapper.find(B+", "+R).off(F).off(E),e.wrapper.find(L).attr(Y,-1).off(M).off(A).off(H).off(V).off(P),e.options.enabled=!1},_keydown:function(e,t){var n,i,r,o=this,a=o.options.selectionStart,s=o.options.selectionEnd;e.keyCode in o._keyMap&&(o._clearTooltipTimeout(),"firstHandle"==t?(r=o._activeHandleDrag=o._firstHandleDrag,a=o._keyMap[e.keyCode](a),a>s&&(s=a)):(r=o._activeHandleDrag=o._lastHandleDrag,s=o._keyMap[e.keyCode](s),a>s&&(a=s)),o._setValueInRange(u(a),u(s)),n=Math.max(a,o.options.selectionStart),i=Math.min(s,o.options.selectionEnd),r.selectionEnd=Math.max(i,o.options.selectionStart),r.selectionStart=Math.min(n,o.options.selectionEnd),r._updateTooltip(o.value()[o._activeHandle]),e.preventDefault())},_update:function(e,t){var n=this,i=n.value(),r=i[0]!=e||i[1]!=t;n.value([e,t]),r&&n.trigger(T,{values:[e,t],value:[e,t]})},value:function(e){return e&&e.length?this._value(e[0],e[1]):this._value()},_value:function(e,t){var n=this,i=n.options,r=i.selectionStart,o=i.selectionEnd;return isNaN(e)&&isNaN(t)?[r,o]:(e=u(e),t=u(t),void(e>=i.min&&e<=i.max&&t>=i.min&&t<=i.max&&t>=e&&(r!=e||o!=t)&&(n.element.find("input").eq(0).prop("value",l(e)).end().eq(1).prop("value",l(t)),i.selectionStart=e,i.selectionEnd=t,n._refresh(),n._refreshAriaAttr(e,t))))},values:function(e,t){return b(e)?this._value(e[0],e[1]):this._value(e,t)},_refresh:function(){var e=this,t=e.options;e.trigger(O,{values:[t.selectionStart,t.selectionEnd],value:[t.selectionStart,t.selectionEnd]}),t.selectionStart==t.max&&t.selectionEnd==t.max&&e._setZIndex("firstHandle")},_refreshAriaAttr:function(e,t){var n,i=this,r=i.wrapper.find(L),o=i._activeHandleDrag;n=i._getFormattedValue([e,t],o),r.eq(0).attr("aria-valuenow",e),r.eq(1).attr("aria-valuenow",t),r.attr("aria-valuetext",n)},_setValueInRange:function(e,t){var n=this.options;e=y.max(y.min(e,n.max),n.min),t=y.max(y.min(t,n.max),n.min),e==n.max&&t==n.max&&this._setZIndex("firstHandle"),this._update(y.min(e,t),y.max(e,t))},_setZIndex:function(t){this.wrapper.find(L).each(function(n){e(this).css("z-index","firstHandle"==t?1-n:n)})},_formResetHandler:function(){var e=this,t=e.options;setTimeout(function(){var n=e.element.find("input"),i=n[0].value,r=n[1].value;e.values(""===i||isNaN(i)?t.min:i,""===r||isNaN(r)?t.max:r)})},destroy:function(){var e=this;Q.fn.destroy.call(e),e.wrapper.off(D).find(B+", "+R).off(D).end().find(L).off(D),e._firstHandleDrag.draggable.destroy(),e._lastHandleDrag.draggable.destroy()}});Z.Selection=function(e,t,n){function i(i){i=i||[];var o=i[0]-n.min,a=i[1]-n.min,s=y.ceil(u(o/n.smallStep)),l=y.ceil(u(a/n.smallStep)),c=t._pixelSteps[s],d=t._pixelSteps[l],p=parseInt(e.eq(0)[t._outerSize]()/2,10),f=t._isRtl?2:0;e.eq(0).css(t._position,c-p-f).end().eq(1).css(t._position,d-p-f),r(c,d)}function r(e,n){var i,r,o=t._trackDiv.find(".k-slider-selection");i=y.abs(e-n),o[t._sizeFn](i),t._isRtl?(r=y.max(e,n),o.css("right",t._maxSelection-r-1)):(r=y.min(e,n),o.css(t._position,r-1))}i(t.value()),t.bind([T,S,O],function(e){i(e.values)})},f.ui.plugin(Z)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.fx","./kendo.draganddrop"],e)}(function(){return function(e,t){var n=window.kendo,i=n.mobile,r=n.effects,o=i.ui,a=e.proxy,s=e.extend,l=o.Widget,u=n.Class,c=n.ui.Movable,d=n.ui.Pane,p=n.ui.PaneDimensions,f=r.Transition,h=r.Animation,m=Math.abs,g=500,v=.7,_=.96,w=10,b=55,y=.5,k=5,x="km-scroller-release",C="km-scroller-refresh",T="pull",S="change",D="resize",I="scroll",F=2,M=h.extend({init:function(e){var t=this;h.fn.init.call(t),s(t,e),t.userEvents.bind("gestureend",a(t.start,t)),t.tapCapture.bind("press",a(t.cancel,t))},enabled:function(){return this.movable.scale<this.dimensions.minScale},done:function(){return this.dimensions.minScale-this.movable.scale<.01},tick:function(){var e=this.movable;e.scaleWith(1.1),this.dimensions.rescale(e.scale)},onEnd:function(){var e=this.movable;e.scaleTo(this.dimensions.minScale),this.dimensions.rescale(e.scale)}}),E=h.extend({init:function(e){var t=this;h.fn.init.call(t),s(t,e,{transition:new f({axis:e.axis,movable:e.movable,onEnd:function(){t._end()}})}),t.tapCapture.bind("press",function(){t.cancel()}),t.userEvents.bind("end",a(t.start,t)),t.userEvents.bind("gestureend",a(t.start,t)),t.userEvents.bind("tap",a(t.onEnd,t))},onCancel:function(){this.transition.cancel()},freeze:function(e){var t=this;t.cancel(),t._moveTo(e)},onEnd:function(){var e=this;e.paneAxis.outOfBounds()?e._snapBack():e._end()},done:function(){return m(this.velocity)<1},start:function(e){var t,n=this;n.dimension.enabled&&(n.paneAxis.outOfBounds()?n._snapBack():(t=e.touch.id===F?0:e.touch[n.axis].velocity,n.velocity=Math.max(Math.min(t*n.velocityMultiplier,b),-b),n.tapCapture.captureNext(),h.fn.start.call(n)))},tick:function(){var e=this,t=e.dimension,n=e.paneAxis.outOfBounds()?y:e.friction,i=e.velocity*=n,r=e.movable[e.axis]+i;!e.elastic&&t.outOfBounds(r)&&(r=Math.max(Math.min(r,t.max),t.min),e.velocity=0),e.movable.moveAxis(e.axis,r)},_end:function(){this.tapCapture.cancelCapture(),this.end()},_snapBack:function(){var e=this,t=e.dimension,n=e.movable[e.axis]>t.max?t.max:t.min;e._moveTo(n)},_moveTo:function(e){this.transition.moveTo({location:e,duration:g,ease:f.easeOutExpo})}}),O=h.extend({init:function(e){var t=this;n.effects.Animation.fn.init.call(this),s(t,e,{origin:{},destination:{},offset:{}})},tick:function(){this._updateCoordinates(),this.moveTo(this.origin)},done:function(){return m(this.offset.y)<k&&m(this.offset.x)<k},onEnd:function(){this.moveTo(this.destination),this.callback&&this.callback.call()},setCoordinates:function(e,t){this.offset={},this.origin=e,this.destination=t},setCallback:function(e){e&&n.isFunction(e)?this.callback=e:e=t},_updateCoordinates:function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}),A=u.extend({init:function(t){var n=this,i="x"===t.axis,r=e('<div class="km-touch-scrollbar km-'+(i?"horizontal":"vertical")+'-scrollbar" />');s(n,t,{element:r,elementSize:0,movable:new c(r),scrollMovable:t.movable,alwaysVisible:t.alwaysVisible,size:i?"width":"height"}),n.scrollMovable.bind(S,a(n.refresh,n)),n.container.append(r),t.alwaysVisible&&n.show()},refresh:function(){var e=this,t=e.axis,n=e.dimension,i=n.size,r=e.scrollMovable,o=i/n.total,a=Math.round(-r[t]*o),s=Math.round(i*o);o>=1?this.element.css("display","none"):this.element.css("display",""),a+s>i?s=i-a:0>a&&(s+=a,a=0),e.elementSize!=s&&(e.element.css(e.size,s+"px"),e.elementSize=s),e.movable.moveAxis(t,a)},show:function(){this.element.css({opacity:v,visibility:"visible"})},hide:function(){this.alwaysVisible||this.element.css({opacity:0})}}),H=l.extend({init:function(t,i){var r=this;if(l.fn.init.call(r,t,i),t=r.element,r._native=r.options.useNative&&n.support.hasNativeScrolling,r._native)return t.addClass("km-native-scroller").prepend('<div class="km-scroll-header"/>'),void s(r,{scrollElement:t,fixedContainer:t.children().first()});t.css("overflow","hidden").addClass("km-scroll-wrapper").wrapInner('<div class="km-scroll-container"/>').prepend('<div class="km-scroll-header"/>');var o=t.children().eq(1),u=new n.TapCapture(t),f=new c(o),h=new p({element:o,container:t,forcedEnabled:r.options.zoom}),g=this.options.avoidScrolling,v=new n.UserEvents(t,{allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:r.options.zoom,start:function(t){h.refresh();var n=m(t.x.velocity),i=m(t.y.velocity),o=2*n>=i,a=e.contains(r.fixedContainer[0],t.event.target),s=2*i>=n;!a&&!g(t)&&r.enabled&&(h.x.enabled&&o||h.y.enabled&&s)?v.capture():v.cancel()}}),_=new d({movable:f,dimensions:h,userEvents:v,elastic:r.options.elastic}),w=new M({movable:f,dimensions:h,userEvents:v,tapCapture:u}),b=new O({moveTo:function(e){r.scrollTo(e.x,e.y)}});f.bind(S,function(){r.scrollTop=-f.y,r.scrollLeft=-f.x,r.trigger(I,{scrollTop:r.scrollTop,scrollLeft:r.scrollLeft})}),r.options.mousewheelScrolling&&t.on("DOMMouseScroll mousewheel",a(this,"_wheelScroll")),s(r,{movable:f,dimensions:h,zoomSnapBack:w,animatedScroller:b,userEvents:v,pane:_,tapCapture:u,pulled:!1,enabled:!0,scrollElement:o,scrollTop:0,scrollLeft:0,fixedContainer:t.children().first()}),r._initAxis("x"),r._initAxis("y"),r._wheelEnd=function(){r._wheel=!1,r.userEvents.end(0,r._wheelY)},h.refresh(),r.options.pullToRefresh&&r._initPullToRefresh()},_wheelScroll:function(e){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var t=n.wheelDeltaY(e);t&&(this._wheelY+=t,this.userEvents.move(0,this._wheelY)),e.preventDefault()},makeVirtual:function(){this.dimensions.y.makeVirtual()},virtualSize:function(e,t){this.dimensions.y.virtualSize(e,t)},height:function(){return this.dimensions.y.size},scrollHeight:function(){return this.scrollElement[0].scrollHeight},scrollWidth:function(){return this.scrollElement[0].scrollWidth},options:{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}},events:[T,I,D],_resize:function(){this._native||this.contentResized()},setOptions:function(e){var t=this;l.fn.setOptions.call(t,e),e.pullToRefresh&&t._initPullToRefresh()},reset:function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))},contentResized:function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)},zoomOut:function(){var e=this.dimensions;e.refresh(),this._scale(e.fitScale),this.movable.moveTo(e.centerCoordinates())},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},scrollTo:function(e,t){this._native?(this.scrollElement.scrollLeft(m(e)),this.scrollElement.scrollTop(m(t))):(this.dimensions.refresh(),this.movable.moveTo({x:e,y:t}))},animatedScrollTo:function(e,t,n){var i,r;this._native?this.scrollTo(e,t):(i={x:this.movable.x,y:this.movable.y},r={x:e,y:t},this.animatedScroller.setCoordinates(i,r),this.animatedScroller.setCallback(n),this.animatedScroller.start())},pullHandled:function(){var e=this;e.refreshHint.removeClass(C),e.hintContainer.html(e.pullTemplate({})),e.yinertia.onEnd(),e.xinertia.onEnd(),e.userEvents.cancel()},destroy:function(){l.fn.destroy.call(this),this.userEvents&&this.userEvents.destroy()},_scale:function(e){this.dimensions.rescale(e),this.movable.scaleTo(e)},_initPullToRefresh:function(){var e=this;e.dimensions.y.forceEnabled(),e.pullTemplate=n.template(e.options.messages.pullTemplate),e.releaseTemplate=n.template(e.options.messages.releaseTemplate),e.refreshTemplate=n.template(e.options.messages.refreshTemplate),e.scrollElement.prepend('<span class="km-scroller-pull"><span class="km-icon"></span><span class="km-loading-left"></span><span class="km-loading-right"></span><span class="km-template">'+e.pullTemplate({})+"</span></span>"),e.refreshHint=e.scrollElement.children().first(),e.hintContainer=e.refreshHint.children(".km-template"),e.pane.y.bind("change",a(e._paneChange,e)),e.userEvents.bind("end",a(e._dragEnd,e))},_dragEnd:function(){var e=this;e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(x).addClass(C),e.hintContainer.html(e.refreshTemplate({})),e.yinertia.freeze(e.options.pullOffset/2),e.trigger("pull"))},_paneChange:function(){var e=this;e.movable.y/y>e.options.pullOffset?e.pulled||(e.pulled=!0,e.refreshHint.removeClass(C).addClass(x),e.hintContainer.html(e.releaseTemplate({}))):e.pulled&&(e.pulled=!1,e.refreshHint.removeClass(x),e.hintContainer.html(e.pullTemplate({})))},_initAxis:function(e){var t=this,n=t.movable,i=t.dimensions[e],r=t.tapCapture,o=t.pane[e],a=new A({axis:e,movable:n,dimension:i,container:t.element,alwaysVisible:t.options.visibleScrollHints});i.bind(S,function(){a.refresh()}),o.bind(S,function(){a.show()}),t[e+"inertia"]=new E({axis:e,paneAxis:o,movable:n,tapCapture:r,userEvents:t.userEvents,dimension:i,elastic:t.options.elastic,friction:t.options.friction||_,velocityMultiplier:t.options.velocityMultiplier||w,end:function(){a.hide(),t.trigger("scrollEnd",{axis:e,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft})}})}});o.plugin(H)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.list","./kendo.mobile.scroller"],e)}(function(){return function(e,t){function n(e,t,n){return n?t.substring(0,e).split(n).length-1:0}function i(e,t,i){return t.split(i)[n(e,t,i)]}function r(e,t,i,r){var o=t.split(r);return o.splice(n(e,t,r),1,i),r&&""!==o[o.length-1]&&o.push(""),o.join(r)}var o=window.kendo,a=o.support,s=o.caret,l=o._activeElement,u=a.placeholder,c=o.ui,d=c.List,p=o.keys,f=o.data.DataSource,h="aria-disabled",m="aria-readonly",g="k-state-default",v="disabled",_="readonly",w="k-state-focused",b="k-state-selected",y="k-state-disabled",k="k-state-hover",x=".kendoAutoComplete",C="mouseenter"+x+" mouseleave"+x,T=e.proxy,S=d.extend({init:function(t,n){var i,r,a=this;a.ns=x,n=e.isArray(n)?{dataSource:n}:n,d.fn.init.call(a,t,n),t=a.element,n=a.options,n.placeholder=n.placeholder||t.attr("placeholder"),u&&t.attr("placeholder",n.placeholder),a._wrapper(),a._loader(),a._dataSource(),a._ignoreCase(),t[0].type="text",i=a.wrapper,a._popup(),t.addClass("k-input").on("keydown"+x,T(a._keydown,a)).on("paste"+x,T(a._search,a)).on("focus"+x,function(){a._prev=a._accessor(),a._placeholder(!1),i.addClass(w)}).on("focusout"+x,function(){a._change(),a._placeholder(),i.removeClass(w)}).attr({autocomplete:"off",role:"textbox","aria-haspopup":!0}),a._enable(),a._old=a._accessor(),t[0].id&&t.attr("aria-owns",a.ul[0].id),a._aria(),a._placeholder(),a._initList(),r=e(a.element).parents("fieldset").is(":disabled"),r&&a.enable(!1),o.notify(a)},options:{name:"AutoComplete",enabled:!0,suggest:!1,template:"",groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",dataTextField:"",minLength:1,delay:200,height:200,filter:"startswith",ignoreCase:!0,highlightFirst:!1,separator:null,placeholder:"",animation:{},value:null},_dataSource:function(){var e=this;e.dataSource&&e._refreshHandler?e._unbindDataSource():e._progressHandler=T(e._showBusy,e),e.dataSource=f.create(e.options.dataSource).bind("progress",e._progressHandler)},setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.listView.setDataSource(this.dataSource)},events:["open","close","change","select","filtering","dataBinding","dataBound"],setOptions:function(e){var t=this._listOptions(e);d.fn.setOptions.call(this,e),t.dataValueField=t.dataTextField,this.listView.setOptions(t),this._accessors(),this._aria()},_editable:function(e){var t=this,n=t.element,i=t.wrapper.off(x),r=e.readonly,o=e.disable;r||o?(i.addClass(o?y:g).removeClass(o?g:y),n.attr(v,o).attr(_,r).attr(h,o).attr(m,r)):(i.addClass(g).removeClass(y).on(C,t._toggleHover),n.removeAttr(v).removeAttr(_).attr(h,!1).attr(m,!1))},close:function(){var e=this,t=e.listView.focus();t&&t.removeClass(b),e.popup.close()},destroy:function(){var e=this;e.element.off(x),e.wrapper.off(x),d.fn.destroy.call(e)},refresh:function(){this.listView.refresh()},select:function(e){this._select(e)},search:function(e){var t,n=this,r=n.options,o=r.ignoreCase,a=r.separator;e=e||n._accessor(),clearTimeout(n._typingTimeout),a&&(e=i(s(n.element)[0],e,a)),t=e.length,(!t||t>=r.minLength)&&(n._open=!0,n.listView.filter(!0),n._filterSource({value:o?e.toLowerCase():e,operator:r.filter,field:r.dataTextField,ignoreCase:o}))},suggest:function(e){var i,r=this,o=r._last,a=r._accessor(),u=r.element[0],c=s(u)[0],f=r.options.separator,h=a.split(f),m=n(c,a,f),g=c;return o==p.BACKSPACE||o==p.DELETE?void(r._last=t):(e=e||"","string"!=typeof e&&(e[0]&&(e=r.dataSource.view()[d.inArray(e[0],r.ul[0])]),e=e?r._text(e):""),0>=c&&(c=a.toLowerCase().indexOf(e.toLowerCase())+1),i=a.substring(0,c).lastIndexOf(f),i=i>-1?c-(i+f.length):c,a=h[m].substring(0,i),e&&(e=e.toString(),i=e.toLowerCase().indexOf(a.toLowerCase()),i>-1&&(e=e.substring(i+a.length),g=c+e.length,a+=e),f&&""!==h[h.length-1]&&h.push("")),h[m]=a,r._accessor(h.join(f||"")),void(u===l()&&s(u,c,g)))},value:function(e){return e===t?this._accessor():(this.listView.value(e),this._accessor(e),this._old=this._accessor(),void 0)},_click:function(e){var t=e.item,n=this.element;return this.trigger("select",{item:t})?void this.close():(this._select(t),this._blur(),void s(n,n.val().length))},_initList:function(){var t=this,n=t.options.virtual,i=!!n,r=T(t._listBound,t),a={autoBind:!1,selectable:!0,dataSource:t.dataSource,click:e.proxy(t._click,this),change:e.proxy(t._listChange,this),activate:T(t._activateItem,t),deactivate:T(t._deactivateItem,t),dataBinding:function(){t.trigger("dataBinding"),t._angularItems("cleanup")},dataBound:r,listBound:r};a=e.extend(t._listOptions(),a,"object"==typeof n?n:{}),a.dataValueField=a.dataTextField,t.listView=i?new o.ui.VirtualList(t.ul,a):new o.ui.StaticList(t.ul,a),t.listView.value(t.options.value)},_listBound:function(){var e,n=this,i=n.popup,r=n.options,o=n.dataSource.flatView(),a=o.length,s=n.element[0]===l();if(n._angularItems("compile"),n.listView.value([]),n.listView.focus(-1),n.listView.filter(!1),n._calculateGroupPadding(n._height(a)),i.position(),a){var u=this.listView.focus();r.highlightFirst&&!u&&n.listView.first(),r.suggest&&s&&n.suggest(o[0])}n._open&&(n._open=!1,e=a?"open":"close",n._typingTimeout&&!s&&(e="close"),i[e](),n._typingTimeout=t),n._touchScroller&&n._touchScroller.reset(),n._hideBusy(),n._makeUnselectable(),n.trigger("dataBound")},_listChange:function(){this.listView.filter()||this._selectValue(this.listView.selectedDataItems()[0])},_selectValue:function(e){var t=this.options.separator,n="";e&&(n=this._text(e)),null===n&&(n=""),t&&(n=r(s(this.element)[0],this._accessor(),n,t)),this._prev=n,this._accessor(n),this._placeholder()},_accessor:function(e){var n=this,i=n.element[0];return e===t?(e=i.value,i.className.indexOf("k-readonly")>-1&&e===n.options.placeholder?"":e):(i.value=null===e?"":e,void n._placeholder())},_keydown:function(e){var t=this,n=e.keyCode,i=t.popup.visible(),r=this.listView.focus();if(t._last=n,n===p.DOWN)i&&this._move(r?"next":"first"),e.preventDefault();else if(n===p.UP)i&&this._move(r?"prev":"last"),e.preventDefault();else if(n===p.ENTER||n===p.TAB){if(n===p.ENTER&&i&&e.preventDefault(),i&&r){if(t.trigger("select",{item:r}))return;this._select(r)}this._blur()}else n===p.ESC?(i&&e.preventDefault(),t.close()):(t._search(),t._typing=!0)},_move:function(e){this.listView[e](),this.options.suggest&&this.suggest(this.listView.focus())},_hideBusy:function(){var e=this;clearTimeout(e._busy),e._loading.hide(),e.element.attr("aria-busy",!1),e._busy=null},_showBusy:function(){var e=this;e._busy||(e._busy=setTimeout(function(){e.element.attr("aria-busy",!0),e._loading.show()},100))},_placeholder:function(e){if(!u){var n,i=this,r=i.element,o=i.options.placeholder;if(o){if(n=r.val(),e===t&&(e=!n),e||(o=n!==o?n:""),n===i._old&&!e)return;r.toggleClass("k-readonly",e).val(o),o||r[0]!==document.activeElement||s(r[0],0,0)}}},_search:function(){var e=this;clearTimeout(e._typingTimeout),e._typingTimeout=setTimeout(function(){e._prev!==e._accessor()&&(e._prev=e._accessor(),e.search())},e.options.delay)},_select:function(e){this.listView.select(e)},_loader:function(){this._loading=e('<span class="k-icon k-loading" style="display:none"></span>').insertAfter(this.element)},_toggleHover:function(t){e(t.currentTarget).toggleClass(k,"mouseenter"===t.type)},_wrapper:function(){var e,t=this,n=t.element,i=n[0];e=n.parent(),e.is("span.k-widget")||(e=n.wrap("<span />").parent()),e.attr("tabindex",-1),e.attr("role","presentation"),e[0].style.cssText=i.style.cssText,n.css({width:"100%",height:i.style.height}),t._focused=t.element,t.wrapper=e.addClass("k-widget k-autocomplete k-header").addClass(i.className)}});c.plugin(S)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.list","./kendo.mobile.scroller"],e)}(function(){return function(e,t){var n=window.kendo,i=n.ui,r=i.List,o=i.Select,a=n.caret,s=n.support,l=s.placeholder,u=n._activeElement,c=n.keys,d=".kendoComboBox",p="click"+d,f="mousedown"+d,h="disabled",m="readonly",g="change",v="k-state-default",_="k-state-focused",w="k-state-disabled",b="aria-disabled",y="aria-readonly",k="filter",x="accept",C="rebind",T="mouseenter"+d+" mouseleave"+d,S=e.proxy,D=o.extend({init:function(t,i){var r,a,s=this;s.ns=d,i=e.isArray(i)?{dataSource:i}:i,o.fn.init.call(s,t,i),i=s.options,t=s.element.on("focus"+d,S(s._focusHandler,s)),i.placeholder=i.placeholder||t.attr("placeholder"),s._reset(),s._wrapper(),s._input(),s._tabindex(s.input),s._popup(),s._dataSource(),s._ignoreCase(),s._enable(),s._oldIndex=s.selectedIndex=-1,s._aria(),s._initialIndex=i.index,s._initList(),s._cascade(),i.autoBind?s._filterSource():(r=i.text,!r&&s._isSelect&&(r=t.children(":selected").text()),r&&(s.input.val(r),s._prev=r)),r||s._placeholder(),a=e(s.element).parents("fieldset").is(":disabled"),a&&s.enable(!1),n.notify(s)},options:{name:"ComboBox",enabled:!0,index:-1,text:null,value:null,autoBind:!0,delay:200,dataTextField:"",dataValueField:"",minLength:0,height:200,highlightFirst:!0,filter:"none",placeholder:"",suggest:!1,cascadeFrom:"",cascadeFromField:"",ignoreCase:!0,animation:{},template:null,groupTemplate:"#:data#",fixedGroupTemplate:"#:data#"},events:["open","close",g,"select","filtering","dataBinding","dataBound","cascade"],setOptions:function(e){o.fn.setOptions.call(this,e),this.listView.setOptions(e),this._accessors(),this._aria()},destroy:function(){var e=this;e.input.off(d),e.element.off(d),e._inputWrapper.off(d),o.fn.destroy.call(e)},_focusHandler:function(){this.input.focus()},_arrowClick:function(){this._toggle()},_inputFocus:function(){this._inputWrapper.addClass(_),this._placeholder(!1)},_inputFocusout:function(){var e=this;e._inputWrapper.removeClass(_),clearTimeout(e._typingTimeout),e._typingTimeout=null,e.options.text!==e.input.val()&&e.text(e.text()),e._placeholder(),e._blur(),e.element.blur()},_editable:function(e){var t=this,n=e.disable,i=e.readonly,r=t._inputWrapper.off(d),o=t.element.add(t.input.off(d)),a=t._arrow.parent().off(p+" "+f);i||n?(r.addClass(n?w:v).removeClass(n?v:w),o.attr(h,n).attr(m,i).attr(b,n).attr(y,i)):(r.addClass(v).removeClass(w).on(T,t._toggleHover),o.removeAttr(h).removeAttr(m).attr(b,!1).attr(y,!1),a.on(p,S(t._arrowClick,t)).on(f,function(e){e.preventDefault()}),t.input.on("keydown"+d,S(t._keydown,t)).on("focus"+d,S(t._inputFocus,t)).on("focusout"+d,S(t._inputFocusout,t)))},open:function(){var e=this,t=e._state;e.popup.visible()||(!e.listView.isBound()&&t!==k||t===x?(e._open=!0,e._state=C,e.listView.filter(!1),e._filterSource()):(e.popup.open(),e._focusItem()))},_listBound:function(){var e,n=this,i=n.options,r=n._initialIndex,o=n._state===k,a=n.input[0]===u(),s=n.listView,l=s.focus(),c=this.dataSource.flatView(),d=this.dataSource.page(),p=c.length;if(n._angularItems("compile"),n._presetValue=!1,i.virtual||n._calculateGroupPadding(n._height(p)),n.popup.position(),n._isSelect){var f=n.element[0].children[0];n._state===C&&(n._state="");var h=!0,m=n._customOption;n._customOption=t,n._options(c,"",n.value()),m&&m[0].selected?n._custom(m.val(),h):f||n._custom("",h)}n._makeUnselectable(),o||n._fetch?o&&l&&l.removeClass("k-state-selected"):(s.value().length||(null!==r&&r>-1?(n.select(r),l=s.focus()):n._accessor()&&s.value(n._accessor())),n._initialIndex=null,e=n.listView.selectedDataItems()[0],e&&n.text()&&n.text()!==n._text(e)&&n._selectValue(e)),!p||d!==t&&1!==d||(i.highlightFirst?l||s.focusIndex()||s.focus(0):s.focus(-1),i.suggest&&a&&n.input.val()&&n.suggest(c[0])),n._open&&(n._open=!1,n._typingTimeout&&!a?n.popup.close():n.toggle(!!p),n._typingTimeout=null),n._touchScroller&&n._touchScroller.reset(),n._hideBusy(),n.trigger("dataBound")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),this._presetValue&&(this._oldIndex=this.selectedIndex)},_get:function(e){var t,n,i;if("function"==typeof e){for(t=this.dataSource.flatView(),i=0;i<t.length;i++)if(e(t[i])){e=i,n=!0;break}n||(e=-1)}return e},_select:function(e,t){e=this._get(e),-1===e&&(this.input[0].value="",this._accessor("")),this.listView.select(e),t||this._state!==k||(this.listView.filter(!1),this._state=x)},_selectValue:function(e){var n=this.listView.select(),i="",r="";n=n[n.length-1],n===t&&(n=-1),this.selectedIndex=n,-1===n?(i=r=this.input[0].value,this.listView.focus(-1)):(e&&(i=this._dataValue(e),r=this._text(e)),null===i&&(i="")),this._prev=this.input[0].value=r,this._accessor(i!==t?i:r,n),this._placeholder(),this._triggerCascade()},refresh:function(){this.listView.refresh()},suggest:function(e){var n,i=this,o=i.input[0],s=i.text(),l=a(o)[0],d=i._last;return d==c.BACKSPACE||d==c.DELETE?void(i._last=t):(e=e||"","string"!=typeof e&&(e[0]&&(e=i.dataSource.view()[r.inArray(e[0],i.ul[0])]),e=e?i._text(e):""),0>=l&&(l=s.toLowerCase().indexOf(e.toLowerCase())+1),e?(e=e.toString(),n=e.toLowerCase().indexOf(s.toLowerCase()),n>-1&&(s+=e.substring(n+s.length))):s=s.substring(0,l),void(s.length===l&&e||(o.value=s,o===u()&&a(o,l,s.length))))},text:function(e){e=null===e?"":e;var n,i,r=this,o=r.input[0],a=r.options.ignoreCase,s=e;if(e===t)return o.value;if(n=r.dataItem(),r.options.autoBind!==!1||r.listView.isBound()){if(n&&r._text(n)===e&&(i=r._value(n),null===i?i="":i+="",i===r._old))return void r._triggerCascade();a&&(s=s.toLowerCase()),r._select(function(e){return e=r._text(e),a&&(e=(e+"").toLowerCase()),e===s}),r.selectedIndex<0&&(r._accessor(e),o.value=e,r._triggerCascade()),r._prev=o.value}},toggle:function(e){this._toggle(e,!0)},value:function(e){var n=this,i=n.options;return e===t?(e=n._accessor()||n.listView.value()[0],e===t||null===e?"":e):void((e!==i.value||n.input.val()!==i.text)&&(n._accessor(e),n.listView.value(e).done(function(){n._selectValue(n.listView.selectedDataItems()[0]),-1===n.selectedIndex&&(n._accessor(e),n.input.val(e),n._placeholder(!0)),n._old=n._accessor(),n._oldIndex=n.selectedIndex,n._prev=n.input.val(),n._state===k&&(n._state=x)}),n._fetchData()))},_click:function(e){var t=e.item;return this.trigger("select",{item:t})?void this.close():(this._userTriggered=!0,this._select(t),void this._blur())},_filter:function(e){var n=this,i=n.options,r=n.dataSource,o=i.ignoreCase,a=function(i){var r=n._text(i);return r!==t?(r+="",""!==r&&""===e?!1:(o&&(r=r.toLowerCase()),0===r.indexOf(e))):void 0};if(o&&(e=e.toLowerCase()),!n.ul[0].firstChild)return void r.one(g,function(){r.view()[0]&&n.search(e)}).fetch();this.listView.focus(this._get(a));var s=this.listView.focus();s&&(i.suggest&&n.suggest(s),this.open()),this.options.highlightFirst&&!e&&this.listView.first()},_input:function(){var t,n=this,i=n.element.removeClass("k-input")[0],r=i.accessKey,o=n.wrapper,a="input.k-input",s=i.name||"";s&&(s='name="'+s+'_input" '),t=o.find(a),t[0]||(o.append('<span tabindex="-1" unselectable="on" class="k-dropdown-wrap k-state-default"><input '+s+'class="k-input" type="text" autocomplete="off"/><span tabindex="-1" unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-arrow-s">select</span></span></span>').append(n.element),t=o.find(a)),t[0].style.cssText=i.style.cssText,t[0].title=i.title,i.maxLength>-1&&(t[0].maxLength=i.maxLength),t.addClass(i.className).val(this.options.text||i.value).css({width:"100%",height:i.style.height}).attr({role:"combobox","aria-expanded":!1}).show(),l&&t.attr("placeholder",n.options.placeholder),r&&(i.accessKey="",t[0].accessKey=r),n._focused=n.input=t,n._inputWrapper=e(o[0].firstChild),n._arrow=o.find(".k-icon").attr({role:"button",tabIndex:-1}),i.id&&n._arrow.attr("aria-controls",n.ul[0].id)},_keydown:function(e){var t=this,n=e.keyCode;t._last=n,clearTimeout(t._typingTimeout),t._typingTimeout=null,n==c.TAB||t._move(e)||t._search()},_placeholder:function(e){if(!l){var n,i=this,r=i.input,o=i.options.placeholder;if(o){if(n=i.value(),e===t&&(e=!n),r.toggleClass("k-readonly",e),!e){if(n)return;o=""}r.val(o),o||r[0]!==u()||a(r[0],0,0)}}},_search:function(){var e=this;e._typingTimeout=setTimeout(function(){var t=e.text();e._prev!==t&&(e._prev=t,e.search(t)),e._typingTimeout=null},e.options.delay)},_wrapper:function(){var e=this,t=e.element,n=t.parent();n.is("span.k-widget")||(n=t.hide().wrap("<span />").parent(),n[0].style.cssText=t[0].style.cssText),e.wrapper=n.addClass("k-widget k-combobox k-header").addClass(t[0].className).css("display","")},_clearSelection:function(e,t){var n=this,i=e.value(),r=i&&-1===e.selectedIndex;(t||!i||r)&&(n.options.value="",n.value(""))},_preselect:function(e,t){this.input.val(t),this._accessor(e),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(e),this._placeholder(),this._initialIndex=null,this._presetValue=!0}});i.plugin(D)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.list","./kendo.mobile.scroller"],e)}(function(){return function(e,t){function n(e,t,n){for(var i,r=0,o=t.length-1;o>r;++r)i=t[r],i in e||(e[i]={}),e=e[i];e[t[o]]=n}var i=window.kendo,r=i.ui,o=r.Select,a=i.support,s=i._activeElement,l=i.data.ObservableObject,u=i.keys,c=".kendoDropDownList",d="disabled",p="readonly",f="change",h="k-state-focused",m="k-state-default",g="k-state-disabled",v="aria-disabled",_="aria-readonly",w="mouseenter"+c+" mouseleave"+c,b="tabindex",y="filter",k="accept",x=e.proxy,C=o.extend({init:function(n,r){var a,s,l,u=this,d=r&&r.index;u.ns=c,r=e.isArray(r)?{dataSource:r}:r,o.fn.init.call(u,n,r),r=u.options,n=u.element.on("focus"+c,x(u._focusHandler,u)),u._focusInputHandler=e.proxy(u._focusInput,u),u._inputTemplate(),u._reset(),u._prev="",u._word="",u.optionLabel=e(),u._wrapper(),u._tabindex(),u.wrapper.data(b,u.wrapper.attr(b)),u._span(),u._popup(),u._mobile(),u._dataSource(),u._ignoreCase(),u._filterHeader(),u._aria(),u._enable(),u._oldIndex=u.selectedIndex=-1,d!==t&&(r.index=d),
  u._initialIndex=r.index,u._optionLabel(),u._initList(),u._cascade(),r.autoBind?u.dataSource.fetch():-1===u.selectedIndex&&(s=r.text||"",s||(a=r.optionLabel,a&&0===r.index?s=a:u._isSelect&&(s=n.children(":selected").text())),u._textAccessor(s)),l=e(u.element).parents("fieldset").is(":disabled"),l&&u.enable(!1),i.notify(u)},options:{name:"DropDownList",enabled:!0,autoBind:!0,index:0,text:null,value:null,delay:500,height:200,dataTextField:"",dataValueField:"",optionLabel:"",cascadeFrom:"",cascadeFromField:"",ignoreCase:!0,animation:{},filter:"none",minLength:1,virtual:!1,template:null,valueTemplate:null,optionLabelTemplate:null,groupTemplate:"#:data#",fixedGroupTemplate:"#:data#"},events:["open","close",f,"select","filtering","dataBinding","dataBound","cascade"],setOptions:function(e){o.fn.setOptions.call(this,e),this.listView.setOptions(this._listOptions(e)),this._optionLabel(),this._inputTemplate(),this._accessors(),this._filterHeader(),this._enable(),this._aria(),!this.value()&&this.optionLabel[0]&&this.select(0)},destroy:function(){var e=this;e.wrapper.off(c),e.element.off(c),e._inputWrapper.off(c),e._arrow.off(),e._arrow=null,e.optionLabel.off(),o.fn.destroy.call(e)},open:function(){var e=this;e.popup.visible()||(e.listView.isBound()&&e._state!==k?e._allowOpening()&&(e.popup.one("activate",e._focusInputHandler),e.popup.open(),e._focusItem()):(e._open=!0,e._state="rebind",e.filterInput&&(e.filterInput.val(""),e._prev=""),e._filterSource()))},_focusInput:function(){this._focusElement(this.filterInput)},_allowOpening:function(e){return this.optionLabel[0]||this.filterInput||this.dataSource.view().length},toggle:function(e){this._toggle(e,!0)},current:function(e){var n;return e===t?(n=this.listView.focus(),!n&&0===this.selectedIndex&&this.optionLabel[0]?this.optionLabel:n):void this._focus(e)},dataItem:function(n){var i=this,r=null,o=!!i.optionLabel[0],a=i.options.optionLabel;return n===t?r=i.listView.selectedDataItems()[0]:("number"!=typeof n?n=n.hasClass("k-list-optionlabel")?-1:e(i.items()).index(n):o&&(n-=1),r=i.dataSource.flatView()[n]),!r&&o&&(r=e.isPlainObject(a)?new l(a):i._assignInstance(i._optionLabelText(),"")),r},refresh:function(){this.listView.refresh()},text:function(e){var n,i,r=this,o=r.options.ignoreCase;return e=null===e?"":e,e===t?r._textAccessor():("string"==typeof e&&(i=o?e.toLowerCase():e,r._select(function(e){return e=r._text(e),o&&(e=(e+"").toLowerCase()),e===i}),n=r.dataItem(),n&&(e=n)),void r._textAccessor(e))},value:function(e){var n=this,i=n.dataSource;return e===t?(e=n._accessor()||n.listView.value()[0],e===t||null===e?"":e):(e&&(n._initialIndex=null),n._request&&n.options.cascadeFrom&&n.listView.isBound()?(n._valueSetter&&i.unbind(f,n._valueSetter),n._valueSetter=x(function(){n.value(e)},n),void i.one(f,n._valueSetter)):(n.listView.value(e).done(function(){-1===n.selectedIndex&&n.text()&&(n.text(""),n._accessor("",-1)),n._old=n._accessor(),n._oldIndex=n.selectedIndex}),void n._fetchData()))},_optionLabel:function(){var t=this,n=t.options,r=n.optionLabel,o=n.optionLabelTemplate;return r?(o||(o="#:",o+="string"==typeof r?"data":i.expr(n.dataTextField,"data"),o+="#"),"function"!=typeof o&&(o=i.template(o)),t.optionLabelTemplate=o,t.optionLabel[0]||(t.optionLabel=e('<div class="k-list-optionlabel"></div>').prependTo(t.list)),t.optionLabel.html(o(r)).off().click(x(t._click,t)).on(w,t._toggleHover),void t.angular("compile",function(){return{elements:t.optionLabel}})):(t.optionLabel.off().remove(),void(t.optionLabel=e()))},_optionLabelText:function(){var e=this.options.optionLabel;return"string"==typeof e?e:this._text(e)},_listBound:function(){var e,t,n,i=this,r=i._initialIndex,o=i.options.optionLabel,a=i._state===y,s=(i.element[0],i.dataSource.flatView()),l=s.length;i._angularItems("compile"),i._presetValue=!1,i.options.virtual||(t=i._height(a?l||1:l),i._calculateGroupPadding(t)),i.popup.position(),i._isSelect&&(n=i.value(),l?o&&(o=i._option("",i._optionLabelText())):n&&(o=i._option(n,i.text())),i._options(s,o,n)),i._makeUnselectable(),a||(i._open&&i.toggle(i._allowOpening()),i._open=!1,i._fetch||(l?(!i.listView.value().length&&r>-1&&null!==r&&i.select(r),i._initialIndex=null,e=i.listView.selectedDataItems()[0],e&&i.text()!==i._text(e)&&i._selectValue(e)):i._textAccessor()!==i._optionLabelText()&&(i.listView.value(""),i._selectValue(null),i._oldIndex=i.selectedIndex))),i._hideBusy(),i.trigger("dataBound")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),(this._presetValue||this._old&&-1===this._oldIndex)&&(this._oldIndex=this.selectedIndex)},_focusHandler:function(){this.wrapper.focus()},_focusinHandler:function(){this._inputWrapper.addClass(h),this._prevent=!1},_focusoutHandler:function(){var e=this,t=e._state===y,n=window.self!==window.top,i=e._focus();e._prevent||(clearTimeout(e._typingTimeout),t&&i&&!e.trigger("select",{item:i})&&e._select(i,!e.dataSource.view().length),a.mobileOS.ios&&n?e._change():e._blur(),e._inputWrapper.removeClass(h),e._prevent=!0,e._open=!1,e.element.blur())},_wrapperMousedown:function(){this._prevent=!!this.filterInput},_wrapperClick:function(e){e.preventDefault(),this.popup.unbind("activate",this._focusInputHandler),this._focused=this.wrapper,this._toggle()},_editable:function(e){var t=this,n=t.element,i=e.disable,r=e.readonly,o=t.wrapper.add(t.filterInput).off(c),a=t._inputWrapper.off(w);r||i?i?(o.removeAttr(b),a.addClass(g).removeClass(m)):(a.addClass(m).removeClass(g),o.on("focusin"+c,x(t._focusinHandler,t)).on("focusout"+c,x(t._focusoutHandler,t))):(n.removeAttr(d).removeAttr(p),a.addClass(m).removeClass(g).on(w,t._toggleHover),o.attr(b,o.data(b)).attr(v,!1).attr(_,!1).on("keydown"+c,x(t._keydown,t)).on("focusin"+c,x(t._focusinHandler,t)).on("focusout"+c,x(t._focusoutHandler,t)).on("mousedown"+c,x(t._wrapperMousedown,t)),t.wrapper.on("click"+c,x(t._wrapperClick,t)),t.filterInput||o.on("keypress"+c,x(t._keypress,t))),n.attr(d,i).attr(p,r),o.attr(v,i).attr(_,r)},_option:function(e,t){return'<option value="'+e+'">'+t+"</option>"},_keydown:function(e){var t,n,i=this,r=e.keyCode,o=e.altKey,a=(i.ul[0],i.popup.visible());if(i.filterInput&&(t=i.filterInput[0]===s()),r===u.LEFT?(r=u.UP,n=!0):r===u.RIGHT&&(r=u.DOWN,n=!0),!n||!t){if(e.keyCode=r,o&&r===u.UP&&i._focusElement(i.wrapper),r===u.ENTER&&i._typingTimeout&&i.filterInput&&a)return void e.preventDefault();n=i._move(e),n||(a&&i.filterInput||(r===u.HOME?(n=!0,i._firstItem()):r===u.END&&(n=!0,i._lastItem()),n&&(i._select(i._focus()),e.preventDefault())),o||n||!i.filterInput||i._search())}},_matchText:function(e,t){var n=this,i=n.options.ignoreCase,r=!1;return e+="",i&&(e=e.toLowerCase()),0===e.indexOf(n._word)&&(n.optionLabel[0]&&(t+=1),n._select(t),n.popup.visible()||n._change(),r=!0),r},_selectNext:function(e){for(var t,n=this,i=e,r=n.dataSource.flatView(),o=r.length;o>e;e++)if(t=n._text(r[e]),t&&n._matchText(t,e)&&(1!==n._word.length||i!==n.selectedIndex))return!0;if(i>0&&o>i)for(e=0;i>=e;e++)if(t=n._text(r[e]),t&&n._matchText(t,e))return!0;return!1},_keypress:function(e){var t=this;if(0!==e.which&&e.keyCode!==i.keys.ENTER){var n=String.fromCharCode(e.charCode||e.keyCode),r=t.selectedIndex,o=t._word.length;t.options.ignoreCase&&(n=n.toLowerCase())," "===n&&e.preventDefault(),o||(t._word=n),t._last===n&&1>=o&&r>-1&&t._selectNext(r)||(o&&(t._word+=n),t._last=n,t._search())}},_popupOpen:function(){var e=this.popup;e.wrapper=i.wrap(e.element),e.element.closest(".km-root")[0]&&(e.wrapper.addClass("km-popup km-widget"),this.wrapper.addClass("km-widget"))},_popup:function(){o.fn._popup.call(this),this.popup.one("open",x(this._popupOpen,this))},_click:function(t){var n=t.item||e(t.currentTarget);return this.trigger("select",{item:n})?void this.close():(this._userTriggered=!0,this._select(n),this._focusElement(this.wrapper),void this._blur())},_focusElement:function(e){var t=s(),n=this.wrapper,i=this.filterInput,r=e===i?n:i,o=a.mobileOS&&(a.touch||a.MSPointers||a.pointers);i&&i[0]===e[0]&&o||i&&r[0]===t&&(this._prevent=!0,this._focused=e.focus())},_filter:function(e){if(e){var n=this,i=n.options.ignoreCase;i&&(e=e.toLowerCase()),n._select(function(r){var o=n._text(r);return o!==t?(o+="",i&&(o=o.toLowerCase()),0===o.indexOf(e)):void 0})}},_search:function(){var e=this,t=e.dataSource,n=e.selectedIndex;if(clearTimeout(e._typingTimeout),"none"!==e.options.filter)e._typingTimeout=setTimeout(function(){var t=e.filterInput.val();e._prev!==t&&(e._prev=t,e.search(t)),e._typingTimeout=null},e.options.delay);else{if(e._typingTimeout=setTimeout(function(){e._word=""},e.options.delay),-1===n&&(n=0),!e.ul[0].firstChild)return void t.fetch().done(function(){t.data()[0]&&n>-1&&e._selectNext(n)});e._selectNext(n)}},_get:function(t){var n,i,r,o="function"==typeof t,a=o?e():e(t);if(this.optionLabel[0]&&("number"==typeof t?t>-1&&(t-=1):a.hasClass("k-list-optionlabel")&&(t=-1)),o){for(n=this.dataSource.flatView(),r=0;r<n.length;r++)if(t(n[r])){t=r,i=!0;break}i||(t=-1)}return t},_firstItem:function(){this.optionLabel[0]?this._focus(this.optionLabel):this.listView.first()},_lastItem:function(){this.optionLabel.removeClass("k-state-focused"),this.listView.last()},_nextItem:function(){this.optionLabel.hasClass("k-state-focused")?(this.optionLabel.removeClass("k-state-focused"),this.listView.first()):this.listView.next()},_prevItem:function(){this.optionLabel.hasClass("k-state-focused")||(this.listView.prev(),this.listView.focus()||this.optionLabel.addClass("k-state-focused"))},_focusItem:function(){var e=this.listView,n=e.focus(),i=e.select();i=i[i.length-1],i===t&&this.options.highlightFirst&&!n&&(i=0),i!==t?e.focus(i):this.options.optionLabel?(this._focus(this.optionLabel),this._select(this.optionLabel)):e.scrollToIndex(0)},_focus:function(e){var n=this.listView,i=this.optionLabel;return e===t?(e=n.focus(),!e&&i.hasClass("k-state-focused")&&(e=i),e):(i.removeClass("k-state-focused"),e=this._get(e),n.focus(e),void(-1===e&&i.addClass("k-state-focused")))},_select:function(e,t){{var n=this;n.optionLabel}e=n._get(e),n.listView.select(e),t||n._state!==y||(n.listView.filter(!1),n._state=k),-1===e&&n._selectValue(null)},_selectValue:function(e){var n=this,i=n.options.optionLabel,r=n.optionLabel,o=n.listView.select(),a="",s="";o=o[o.length-1],o===t&&(o=-1),r.removeClass("k-state-focused k-state-selected"),e?(s=e,a=n._dataValue(e),i&&(o+=1)):i&&(n._focus(r.addClass("k-state-selected")),s=n._optionLabelText(),a="string"==typeof i?"":n._value(i),o=0),n.selectedIndex=o,null===a&&(a=""),n._textAccessor(s),n._accessor(a,o),n._triggerCascade()},_mobile:function(){var e=this,t=e.popup,n=a.mobileOS,i=t.element.parents(".km-root").eq(0);i.length&&n&&(t.options.animation.open.effects=n.android||n.meego?"fadeIn":n.ios||n.wp?"slideIn:up":t.options.animation.open.effects)},_filterHeader:function(){var t,n=this.options,i="none"!==n.filter;this.filterInput&&(this.filterInput.off(c).parent().remove(),this.filterInput=null),i&&(t='<span unselectable="on" class="k-icon k-i-search">select</span>',this.filterInput=e('<input class="k-textbox"/>').attr({role:"listbox","aria-haspopup":!0,"aria-expanded":!1}),this.list.prepend(e('<span class="k-list-filter" />').append(this.filterInput.add(t))))},_span:function(){var t,n=this,i=n.wrapper,r="span.k-input";t=i.find(r),t[0]||(i.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><span unselectable="on" class="k-input">&nbsp;</span><span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-arrow-s">select</span></span></span>').append(n.element),t=i.find(r)),n.span=t,n._inputWrapper=e(i[0].firstChild),n._arrow=i.find(".k-icon")},_wrapper:function(){var e,t=this,n=t.element,i=n[0];e=n.parent(),e.is("span.k-widget")||(e=n.wrap("<span />").parent(),e[0].style.cssText=i.style.cssText,e[0].title=i.title),n.hide(),t._focused=t.wrapper=e.addClass("k-widget k-dropdown k-header").addClass(i.className).css("display","").attr({unselectable:"on",role:"listbox","aria-haspopup":!0,"aria-expanded":!1})},_clearSelection:function(e){this.select(e.value()?0:-1)},_inputTemplate:function(){var t=this,n=t.options.valueTemplate;n=n?i.template(n):e.proxy(i.template("#:this._text(data)#",{useWithBlock:!1}),t),t.valueTemplate=n},_textAccessor:function(n){var i=null,r=this.valueTemplate,o=this.options,a=o.optionLabel,s=this.span;if(n===t)return s.text();e.isPlainObject(n)||n instanceof l?i=n:a&&this._optionLabelText()===n&&(i=a,r=this.optionLabelTemplate),i||(i=this._assignInstance(n,this._accessor()));var u=function(){return{elements:s.get(),data:[{dataItem:i}]}};this.angular("cleanup",u),s.html(r(i)),this.angular("compile",u)},_preselect:function(e,t){e||t||(t=this._optionLabelText()),this._accessor(e),this._textAccessor(t),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(e),this._initialIndex=null,this._presetValue=!0},_assignInstance:function(e,t){var i=this.options.dataTextField,r={};return i?(n(r,i.split("."),e),n(r,this.options.dataValueField.split("."),t),r=new l(r)):r=e,r}});r.plugin(C)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core","./kendo.color","./kendo.popup","./kendo.slider","./kendo.userevents"],e)}(function(){return function(e,t,n){function i(e,t,n){n=c(n),n&&!n.equals(e.color())&&("change"==t&&(e._value=n),n=1!=n.a?n.toCssRgba():n.toCss(),e.trigger(t,{value:n}))}function r(e,t,n){e=Array.prototype.slice.call(e);var i=e.length,r=e.indexOf(t);return 0>r?0>n?e[i-1]:e[0]:(r+=n,0>r?r+=i:r%=i,e[r])}function o(e){e.preventDefault()}function a(e,t){return function(){return e.apply(t,arguments)}}var s=window.kendo,l=s.ui,u=l.Widget,c=s.parseColor,d=s.Color,p=s.keys,f="background-color",h="k-state-selected",m="000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",g="FFFFFF,FFCCFF,FF99FF,FF66FF,FF33FF,FF00FF,CCFFFF,CCCCFF,CC99FF,CC66FF,CC33FF,CC00FF,99FFFF,99CCFF,9999FF,9966FF,9933FF,9900FF,FFFFCC,FFCCCC,FF99CC,FF66CC,FF33CC,FF00CC,CCFFCC,CCCCCC,CC99CC,CC66CC,CC33CC,CC00CC,99FFCC,99CCCC,9999CC,9966CC,9933CC,9900CC,FFFF99,FFCC99,FF9999,FF6699,FF3399,FF0099,CCFF99,CCCC99,CC9999,CC6699,CC3399,CC0099,99FF99,99CC99,999999,996699,993399,990099,FFFF66,FFCC66,FF9966,FF6666,FF3366,FF0066,CCFF66,CCCC66,CC9966,CC6666,CC3366,CC0066,99FF66,99CC66,999966,996666,993366,990066,FFFF33,FFCC33,FF9933,FF6633,FF3333,FF0033,CCFF33,CCCC33,CC9933,CC6633,CC3333,CC0033,99FF33,99CC33,999933,996633,993333,990033,FFFF00,FFCC00,FF9900,FF6600,FF3300,FF0000,CCFF00,CCCC00,CC9900,CC6600,CC3300,CC0000,99FF00,99CC00,999900,996600,993300,990000,66FFFF,66CCFF,6699FF,6666FF,6633FF,6600FF,33FFFF,33CCFF,3399FF,3366FF,3333FF,3300FF,00FFFF,00CCFF,0099FF,0066FF,0033FF,0000FF,66FFCC,66CCCC,6699CC,6666CC,6633CC,6600CC,33FFCC,33CCCC,3399CC,3366CC,3333CC,3300CC,00FFCC,00CCCC,0099CC,0066CC,0033CC,0000CC,66FF99,66CC99,669999,666699,663399,660099,33FF99,33CC99,339999,336699,333399,330099,00FF99,00CC99,009999,006699,003399,000099,66FF66,66CC66,669966,666666,663366,660066,33FF66,33CC66,339966,336666,333366,330066,00FF66,00CC66,009966,006666,003366,000066,66FF33,66CC33,669933,666633,663333,660033,33FF33,33CC33,339933,336633,333333,330033,00FF33,00CC33,009933,006633,003333,000033,66FF00,66CC00,669900,666600,663300,660000,33FF00,33CC00,339900,336600,333300,330000,00FF00,00CC00,009900,006600,003300,000000",v={apply:"Apply",cancel:"Cancel"},_=".kendoColorTools",w="click"+_,b="keydown"+_,y=s.support.browser,k=y.msie&&y.version<9,x=u.extend({init:function(e,t){var n,i=this;u.fn.init.call(i,e,t),e=i.element,t=i.options,i._value=t.value=c(t.value),i._tabIndex=e.attr("tabIndex")||0,n=i._ariaId=t.ariaId,n&&e.attr("aria-labelledby",n),t._standalone&&(i._triggerSelect=i._triggerChange)},options:{name:"ColorSelector",value:null,_standalone:!0},events:["change","select","cancel"],color:function(e){return e!==n&&(this._value=c(e),this._updateUI(this._value)),this._value},value:function(e){return e=this.color(e),e&&(e=this.options.opacity?e.toCssRgba():e.toCss()),e||null},enable:function(t){0===arguments.length&&(t=!0),e(".k-disabled-overlay",this.wrapper).remove(),t||this.wrapper.append("<div class='k-disabled-overlay'></div>"),this._onEnable(t)},_select:function(e,t){var n=this._value;e=this.color(e),t||(this.element.trigger("change"),e.equals(n)?this._standalone||this.trigger("cancel"):this.trigger("change",{value:this.value()}))},_triggerSelect:function(e){i(this,"select",e)},_triggerChange:function(e){i(this,"change",e)},destroy:function(){this.element&&this.element.off(_),this.wrapper&&this.wrapper.off(_).find("*").off(_),this.wrapper=null,u.fn.destroy.call(this)},_updateUI:e.noop,_selectOnHide:function(){return null},_cancel:function(){this.trigger("cancel")}}),C=x.extend({init:function(t,n){var i=this;x.fn.init.call(i,t,n),t=i.wrapper=i.element,n=i.options;var r=n.palette;"websafe"==r?(r=g,n.columns=18):"basic"==r&&(r=m),"string"==typeof r&&(r=r.split(",")),e.isArray(r)&&(r=e.map(r,function(e){return c(e)})),i._selectedID=(n.ariaId||s.guid())+"_selected",t.addClass("k-widget k-colorpalette").attr("role","grid").attr("aria-readonly","true").append(e(i._template({colors:r,columns:n.columns,tileSize:n.tileSize,value:i._value,id:n.ariaId}))).on(w,".k-item",function(t){i._select(e(t.currentTarget).css(f))}).attr("tabIndex",i._tabIndex).on(b,a(i._keydown,i));var o,l,u=n.tileSize;if(u){if(/number|string/.test(typeof u))o=l=parseFloat(u);else{if("object"!=typeof u)throw new Error("Unsupported value for the 'tileSize' argument");o=parseFloat(u.width),l=parseFloat(u.height)}t.find(".k-item").css({width:o,height:l})}},focus:function(){this.wrapper.focus()},options:{name:"ColorPalette",columns:10,tileSize:null,palette:"basic"},_onEnable:function(e){e?this.wrapper.attr("tabIndex",this._tabIndex):this.wrapper.removeAttr("tabIndex")},_keydown:function(t){var n,i=this.wrapper,a=i.find(".k-item"),s=a.filter("."+h).get(0),l=t.keyCode;if(l==p.LEFT?n=r(a,s,-1):l==p.RIGHT?n=r(a,s,1):l==p.DOWN?n=r(a,s,this.options.columns):l==p.UP?n=r(a,s,-this.options.columns):l==p.ENTER?(o(t),s&&this._select(e(s).css(f))):l==p.ESC&&this._cancel(),n){o(t),this._current(n);try{var u=c(n.css(f));this._triggerSelect(u)}catch(d){}}},_current:function(t){this.wrapper.find("."+h).removeClass(h).attr("aria-selected",!1).removeAttr("id"),e(t).addClass(h).attr("aria-selected",!0).attr("id",this._selectedID),this.element.removeAttr("aria-activedescendant").attr("aria-activedescendant",this._selectedID)},_updateUI:function(t){var n=null;this.wrapper.find(".k-item").each(function(){var i=c(e(this).css(f));return i&&i.equals(t)?(n=this,!1):void 0}),this._current(n)},_template:s.template('<table class="k-palette k-reset" role="presentation"><tr role="row"># for (var i = 0; i < colors.length; ++i) { ## var selected = colors[i].equals(value); ## if (i && i % columns == 0) { # </tr><tr role="row"> # } #<td role="gridcell" unselectable="on" style="background-color:#= colors[i].toCss() #"#= selected ? " aria-selected=true" : "" # #=(id && i === 0) ? "id=\\""+id+"\\" " : "" # class="k-item#= selected ? " '+h+'" : "" #" aria-label="#= colors[i].toCss() #"></td># } #</tr></table>')}),T=x.extend({init:function(t,n){var i=this;x.fn.init.call(i,t,n),n=i.options,t=i.element,i.wrapper=t.addClass("k-widget k-flatcolorpicker").append(i._template(n)),i._hueElements=e(".k-hsv-rectangle, .k-transparency-slider .k-slider-track",t),i._selectedColor=e(".k-selected-color-display",t),i._colorAsText=e("input.k-color-value",t),i._sliders(),i._hsvArea(),i._updateUI(i._value||c("#f00")),t.find("input.k-color-value").on(b,function(t){var n=this;if(t.keyCode==p.ENTER)try{var r=c(n.value),o=i.color();i._select(r,r.equals(o))}catch(a){e(n).addClass("k-state-error")}else i.options.autoupdate&&setTimeout(function(){var e=c(n.value,!0);e&&i._updateUI(e,!0)},10)}).end().on(w,".k-controls button.apply",function(){i._select(i._getHSV())}).on(w,".k-controls button.cancel",function(){i._updateUI(i.color()),i._cancel()}),k&&i._applyIEFilter()},destroy:function(){this._hueSlider.destroy(),this._opacitySlider&&this._opacitySlider.destroy(),this._hueSlider=this._opacitySlider=this._hsvRect=this._hsvHandle=this._hueElements=this._selectedColor=this._colorAsText=null,x.fn.destroy.call(this)},options:{name:"FlatColorPicker",opacity:!1,buttons:!1,input:!0,preview:!0,autoupdate:!0,messages:v},_applyIEFilter:function(){var e=this.element.find(".k-hue-slider .k-slider-track")[0],t=e.currentStyle.backgroundImage;t=t.replace(/^url\([\'\"]?|[\'\"]?\)$/g,""),e.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+t+"', sizingMethod='scale')"},_sliders:function(){function e(e){n._updateUI(n._getHSV(e.value,null,null,null))}function t(e){n._updateUI(n._getHSV(null,null,null,e.value/100))}var n=this,i=n.element;n._hueSlider=i.find(".k-hue-slider").kendoSlider({min:0,max:359,tickPlacement:"none",showButtons:!1,slide:e,change:e}).data("kendoSlider"),n._opacitySlider=i.find(".k-transparency-slider").kendoSlider({min:0,max:100,tickPlacement:"none",showButtons:!1,slide:t,change:t}).data("kendoSlider")},_hsvArea:function(){function e(e,n){var i=this.offset,r=e-i.left,o=n-i.top,a=this.width,s=this.height;r=0>r?0:r>a?a:r,o=0>o?0:o>s?s:o,t._svChange(r/a,1-o/s)}var t=this,n=t.element,i=n.find(".k-hsv-rectangle"),r=i.find(".k-draghandle").attr("tabIndex",0).on(b,a(t._keydown,t));t._hsvEvents=new s.UserEvents(i,{global:!0,press:function(t){this.offset=s.getOffset(i),this.width=i.width(),this.height=i.height(),r.focus(),e.call(this,t.x.location,t.y.location)},start:function(){i.addClass("k-dragging"),r.focus()},move:function(t){t.preventDefault(),e.call(this,t.x.location,t.y.location)},end:function(){i.removeClass("k-dragging")}}),t._hsvRect=i,t._hsvHandle=r},_onEnable:function(e){this._hueSlider.enable(e),this._opacitySlider&&this._opacitySlider.enable(e),this.wrapper.find("input").attr("disabled",!e);var t=this._hsvRect.find(".k-draghandle");e?t.attr("tabIndex",this._tabIndex):t.removeAttr("tabIndex")},_keydown:function(e){function t(t,n){var r=i._getHSV();r[t]+=n*(e.shiftKey?.01:.05),r[t]<0&&(r[t]=0),r[t]>1&&(r[t]=1),i._updateUI(r),o(e)}function n(t){var n=i._getHSV();n.h+=t*(e.shiftKey?1:5),n.h<0&&(n.h=0),n.h>359&&(n.h=359),i._updateUI(n),o(e)}var i=this;switch(e.keyCode){case p.LEFT:e.ctrlKey?n(-1):t("s",-1);break;case p.RIGHT:e.ctrlKey?n(1):t("s",1);break;case p.UP:t(e.ctrlKey&&i._opacitySlider?"a":"v",1);break;case p.DOWN:t(e.ctrlKey&&i._opacitySlider?"a":"v",-1);break;case p.ENTER:i._select(i._getHSV());break;case p.F2:i.wrapper.find("input.k-color-value").focus().select();break;case p.ESC:i._cancel()}},focus:function(){this._hsvHandle.focus()},_getHSV:function(e,t,n,i){var r=this._hsvRect,o=r.width(),a=r.height(),s=this._hsvHandle.position();return null==e&&(e=this._hueSlider.value()),null==t&&(t=s.left/o),null==n&&(n=1-s.top/a),null==i&&(i=this._opacitySlider?this._opacitySlider.value()/100:1),d.fromHSV(e,t,n,i)},_svChange:function(e,t){var n=this._getHSV(null,e,t,null);this._updateUI(n)},_updateUI:function(e,t){var n=this,i=n._hsvRect;e&&(this._colorAsText.removeClass("k-state-error"),n._selectedColor.css(f,e.toDisplay()),t||n._colorAsText.val(n._opacitySlider?e.toCssRgba():e.toCss()),n._triggerSelect(e),e=e.toHSV(),n._hsvHandle.css({left:e.s*i.width()+"px",top:(1-e.v)*i.height()+"px"}),n._hueElements.css(f,d.fromHSV(e.h,1,1,1).toCss()),n._hueSlider.value(e.h),n._opacitySlider&&n._opacitySlider.value(100*e.a))},_selectOnHide:function(){return this.options.buttons?null:this._getHSV()},_template:s.template('# if (preview) { #<div class="k-selected-color"><div class="k-selected-color-display"><input class="k-color-value" #= !data.input ? \'style="visibility: hidden;"\' : "" #></div></div># } #<div class="k-hsv-rectangle"><div class="k-hsv-gradient"></div><div class="k-draghandle"></div></div><input class="k-hue-slider" /># if (opacity) { #<input class="k-transparency-slider" /># } ## if (buttons) { #<div unselectable="on" class="k-controls"><button class="k-button k-primary apply">#: messages.apply #</button> <button class="k-button cancel">#: messages.cancel #</button></div># } #')}),S=u.extend({init:function(t,n){var i=this;u.fn.init.call(i,t,n),n=i.options,t=i.element;var r=t.attr("value")||t.val();r=r?c(r,!0):c(n.value,!0),i._value=n.value=r;var o=i.wrapper=e(i._template(n));if(t.hide().after(o),t.is("input")){t.appendTo(o);var a=t.closest("label"),s=t.attr("id");s&&(a=a.add('label[for="'+s+'"]')),a.click(function(e){i.open(),e.preventDefault()})}i._tabIndex=t.attr("tabIndex")||0,i.enable(!t.attr("disabled"));var l=t.attr("accesskey");l&&(t.attr("accesskey",null),o.attr("accesskey",l)),i.bind("activate",function(e){e.isDefaultPrevented()||i.toggle()}),i._updateUI(r)},destroy:function(){this.wrapper.off(_).find("*").off(_),this._popup&&(this._selector.destroy(),this._popup.destroy()),this._selector=this._popup=this.wrapper=null,u.fn.destroy.call(this)},enable:function(e){var t=this,n=t.wrapper,i=n.children(".k-picker-wrap"),r=i.find(".k-select");0===arguments.length&&(e=!0),t.element.attr("disabled",!e),n.attr("aria-disabled",!e),r.off(_).on("mousedown"+_,o),n.addClass("k-state-disabled").removeAttr("tabIndex").add("*",n).off(_),e&&n.removeClass("k-state-disabled").attr("tabIndex",t._tabIndex).on("mouseenter"+_,function(){i.addClass("k-state-hover")}).on("mouseleave"+_,function(){i.removeClass("k-state-hover")}).on("focus"+_,function(){i.addClass("k-state-focused")}).on("blur"+_,function(){i.removeClass("k-state-focused")}).on(b,a(t._keydown,t)).on(w,".k-select",a(t.toggle,t)).on(w,t.options.toolIcon?".k-tool-icon":".k-selected-color",function(){t.trigger("activate")})},_template:s.template('<span role="textbox" aria-haspopup="true" class="k-widget k-colorpicker k-header"><span class="k-picker-wrap k-state-default"># if (toolIcon) { #<span class="k-tool-icon #= toolIcon #"><span class="k-selected-color"></span></span># } else { #<span class="k-selected-color"></span># } #<span class="k-select" unselectable="on"><span class="k-icon k-i-arrow-s" unselectable="on"></span></span></span></span>'),options:{name:"ColorPicker",palette:null,columns:10,toolIcon:null,value:null,messages:v,opacity:!1,buttons:!0,preview:!0,ARIATemplate:'Current selected color is #=data || ""#'},events:["activate","change","select","open","close"],open:function(){this._getPopup().open()},close:function(){this._getPopup().close()},toggle:function(){this._getPopup().toggle()},color:x.fn.color,value:x.fn.value,_select:x.fn._select,_triggerSelect:x.fn._triggerSelect,_isInputTypeColor:function(){var e=this.element[0];return/^input$/i.test(e.tagName)&&/^color$/i.test(e.type)},_updateUI:function(e){var t="";e&&(t=this._isInputTypeColor()||1==e.a?e.toCss():e.toCssRgba(),this.element.val(t)),this._ariaTemplate||(this._ariaTemplate=s.template(this.options.ARIATemplate)),this.wrapper.attr("aria-label",this._ariaTemplate(t)),this._triggerSelect(e),this.wrapper.find(".k-selected-color").css(f,e?e.toDisplay():"transparent")},_keydown:function(e){var t=e.keyCode;this._getPopup().visible()?(t==p.ESC?this._selector._cancel():this._selector._keydown(e),o(e)):(t==p.ENTER||t==p.DOWN)&&(this.open(),o(e))},_getPopup:function(){var t=this,n=t._popup;if(!n){var i,r=t.options;i=r.palette?C:T,r._standalone=!1,delete r.select,delete r.change,delete r.cancel;var o=s.guid(),a=t._selector=new i(e('<div id="'+o+'"/>').appendTo(document.body),r);t.wrapper.attr("aria-owns",o),t._popup=n=a.wrapper.kendoPopup({anchor:t.wrapper,adjustSize:{width:5,height:0}}).data("kendoPopup"),a.bind({select:function(e){t._updateUI(c(e.value))},change:function(){t._select(a.color()),t.close()},cancel:function(){t.close()}}),n.bind({close:function(e){if(t.trigger("close"))return void e.preventDefault();t.wrapper.children(".k-picker-wrap").removeClass("k-state-focused");var n=a._selectOnHide();n?t._select(n):(t.wrapper.focus(),t._updateUI(t.color()))},open:function(e){t.trigger("open")?e.preventDefault():t.wrapper.children(".k-picker-wrap").addClass("k-state-focused")},activate:function(){a._select(t.color(),!0),a.focus(),t.wrapper.children(".k-picker-wrap").addClass("k-state-focused")}})}return n}});l.plugin(C),l.plugin(T),l.plugin(S)}(jQuery,parseInt),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core"],e)}(function(){return function(e,t){var n=window.kendo,i=n.caret,r=n.keys,o=n.ui,a=o.Widget,s=".kendoMaskedTextBox",l=e.proxy,u=(n.support.propertyChangeEvent?"propertychange":"input")+s,c="k-state-disabled",d="disabled",p="readonly",f="change",h=a.extend({init:function(t,r){var o,l=this;a.fn.init.call(l,t,r),l._rules=e.extend({},l.rules,l.options.rules),t=l.element,o=t[0],l.wrapper=t,l._tokenize(),l._form(),l.element.addClass("k-textbox").attr("autocomplete","off").on("focus"+s,function(){var e=o.value;e?l._togglePrompt(!0):o.value=l._old=l._emptyMask,l._oldValue=e,l._timeoutId=setTimeout(function(){i(t,0,e?l._maskLength:0)})}).on("focusout"+s,function(){var e=t.val();clearTimeout(l._timeoutId),o.value=l._old="",e!==l._emptyMask&&(o.value=l._old=e),l._change(),l._togglePrompt()});var u=t.is("[disabled]")||e(l.element).parents("fieldset").is(":disabled");u?l.enable(!1):l.readonly(t.is("[readonly]")),l.value(l.options.value||t.val()),n.notify(l)},options:{name:"MaskedTextBox",clearPromptChar:!1,unmaskOnPost:!1,promptChar:"_",culture:"",rules:{},value:"",mask:""},events:[f],rules:{0:/\d/,9:/\d|\s/,"#":/\d|\s|\+|\-/,L:/[a-zA-Z]/,"?":/[a-zA-Z]|\s/,"&":/\S/,C:/./,A:/[a-zA-Z0-9]/,a:/[a-zA-Z0-9]|\s/},setOptions:function(t){var n=this;a.fn.setOptions.call(n,t),n._rules=e.extend({},n.rules,n.options.rules),n._tokenize(),this._unbindInput(),this._bindInput(),n.value(n.element.val())},destroy:function(){var e=this;e.element.off(s),e._formElement&&(e._formElement.off("reset",e._resetHandler),e._formElement.off("submit",e._submitHandler)),a.fn.destroy.call(e)},raw:function(){var e=this._unmask(this.element.val(),0);return e.replace(new RegExp(this.options.promptChar,"g"),"")},value:function(e){{var i=this.element,r=this._emptyMask;this.options}return e===t?this.element.val():(null===e&&(e=""),r?(e=this._unmask(e+""),i.val(e?r:""),this._mask(0,this._maskLength,e),e=i.val(),this._oldValue=e,void(n._activeElement()!==i&&(e===r?i.val(""):this._togglePrompt()))):void i.val(e))},_togglePrompt:function(e){var t=this.element[0],n=t.value;this.options.clearPromptChar&&(n=e?this._oldValue:n.replace(new RegExp(this.options.promptChar,"g")," "),t.value=this._old=n)},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)})},_bindInput:function(){var e=this;e._maskLength&&e.element.on("keydown"+s,l(e._keydown,e)).on("keypress"+s,l(e._keypress,e)).on("paste"+s,l(e._paste,e)).on(u,l(e._propertyChange,e))},_unbindInput:function(){this.element.off("keydown"+s).off("keypress"+s).off("paste"+s).off(u)},_editable:function(e){var t=this,n=t.element,i=e.disable,r=e.readonly;t._unbindInput(),r||i?n.attr(d,i).attr(p,r).toggleClass(c,i):(n.removeAttr(d).removeAttr(p).removeClass(c),t._bindInput())},_change:function(){var e=this,t=e.value();t!==e._oldValue&&(e._oldValue=t,e.trigger(f),e.element.trigger(f))},_propertyChange:function(){var e,t,r=this,o=r.element[0],a=o.value;n._activeElement()===o&&(a===r._old||r._pasting||(t=i(o)[0],e=r._unmask(a.substring(t),t),o.value=r._old=a.substring(0,t)+r._emptyMask.substring(t),r._mask(t,t,e),i(o,t)))},_paste:function(e){var t=this,n=e.target,r=i(n),o=r[0],a=r[1],s=t._unmask(n.value.substring(a),a);t._pasting=!0,setTimeout(function(){var e=n.value,r=e.substring(o,i(n)[0]);n.value=t._old=e.substring(0,o)+t._emptyMask.substring(o),t._mask(o,o,r),o=i(n)[0],t._mask(o,o,s),i(n,o),t._pasting=!1})},_form:function(){var t=this,n=t.element,i=n.attr("form"),r=i?e("#"+i):n.closest("form");r[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(n[0].value)})},t._submitHandler=function(){t.element[0].value=t._old=t.raw()},t.options.unmaskOnPost&&r.on("submit",t._submitHandler),
  t._formElement=r.on("reset",t._resetHandler))},_keydown:function(e){var n,o=e.keyCode,a=this.element[0],s=i(a),l=s[0],u=s[1],c=o===r.BACKSPACE;c||o===r.DELETE?(l===u&&(c?l-=1:u+=1,n=this._find(l,c)),n!==t&&n!==l?(c&&(n+=1),i(a,n)):l>-1&&this._mask(l,u,"",c),e.preventDefault()):o===r.ENTER&&this._change()},_keypress:function(e){if(0!==e.which&&!e.metaKey&&!e.ctrlKey&&e.keyCode!==r.ENTER){var t=String.fromCharCode(e.which),n=i(this.element);this._mask(n[0],n[1],t),(e.keyCode===r.BACKSPACE||t)&&e.preventDefault()}},_find:function(e,t){var n=this.element.val()||this._emptyMask,i=1;for(t===!0&&(i=-1);e>-1||e<=this._maskLength;){if(n.charAt(e)!==this.tokens[e])return e;e+=i}return-1},_mask:function(e,r,o,a){var s,l,u,c,d=this.element[0],p=d.value||this._emptyMask,f=this.options.promptChar,h=0;for(e=this._find(e,a),e>r&&(r=e),l=this._unmask(p.substring(r),r),o=this._unmask(o,e),s=o.length,o&&(l=l.replace(new RegExp("^_{0,"+s+"}"),"")),o+=l,p=p.split(""),u=o.charAt(h);e<this._maskLength;)p[e]=u||f,u=o.charAt(++h),c===t&&h>s&&(c=e),e=this._find(e+1);d.value=this._old=p.join(""),n._activeElement()===d&&(c===t&&(c=this._maskLength),i(d,c))},_unmask:function(t,n){if(!t)return"";t=(t+"").split("");for(var i,r,o=0,a=n||0,s=this.options.promptChar,l=t.length,u=this.tokens.length,c="";u>a&&(i=t[o],r=this.tokens[a],i===r||i===s?(c+=i===s?s:"",o+=1,a+=1):"string"!=typeof r?((r.test&&r.test(i)||e.isFunction(r)&&r(i))&&(c+=i,a+=1),o+=1):a+=1,!(o>=l)););return c},_tokenize:function(){for(var e,t,i=[],r=0,o=this.options.mask||"",a=o.split(""),s=a.length,l=0,u="",c=this.options.promptChar,d=n.getCulture(this.options.culture).numberFormat,p=this._rules;s>l;l++)if(e=a[l],t=p[e])i[r]=t,u+=c,r+=1;else{"."===e||","===e?e=d[e]:"$"===e?e=d.currency.symbol:"\\"===e&&(l+=1,e=a[l]),e=e.split("");for(var f=0,h=e.length;h>f;f++)i[r]=e[f],u+=e[f],r+=1}this.tokens=i,this._emptyMask=u,this._maskLength=u.length}});o.plugin(h)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.list","./kendo.mobile.scroller"],e)}(function(){return function(e,t){function n(e,t){var n;if(null===e&&null!==t||null!==e&&null===t)return!1;if(n=e.length,n!==t.length)return!1;for(;n--;)if(e[n]!==t[n])return!1;return!0}var i=window.kendo,r=i.ui,o=r.List,a=i.keys,s=i._activeElement,l=i.data.ObservableArray,u=e.proxy,c="id",d="li",p="accept",f="filter",h="rebind",m="open",g="close",v="change",_="progress",w="select",b="aria-disabled",y="aria-readonly",k="k-state-focused",x="k-loading-hidden",C="k-state-hover",T="k-state-disabled",S="disabled",D="readonly",I=".kendoMultiSelect",F="click"+I,M="keydown"+I,E="mouseenter"+I,O="mouseleave"+I,A=E+" "+O,H=/"/g,z=e.isArray,V=["font-family","font-size","font-stretch","font-style","font-weight","letter-spacing","text-transform","line-height"],P=o.extend({init:function(t,n){var r,a,s=this;s.ns=I,o.fn.init.call(s,t,n),s._optionsMap={},s._customOptions={},s._wrapper(),s._tagList(),s._input(),s._textContainer(),s._loader(),s._tabindex(s.input),t=s.element.attr("multiple","multiple").hide(),n=s.options,n.placeholder||(n.placeholder=t.data("placeholder")),r=t.attr(c),r&&(s._tagID=r+"_tag_active",r+="_taglist",s.tagList.attr(c,r)),s._aria(r),s._dataSource(),s._ignoreCase(),s._popup(),s._tagTemplate(),s._initList(),s._reset(),s._enable(),s._placeholder(),n.autoBind?s.dataSource.fetch():n.value&&s._preselect(n.value),a=e(s.element).parents("fieldset").is(":disabled"),a&&s.enable(!1),i.notify(s)},_preselect:function(t,n){var r=this;z(t)||t instanceof i.data.ObservableArray||(t=[t]),(e.isPlainObject(t[0])||t[0]instanceof i.data.ObservableObject||!r.options.dataValueField)&&(r.dataSource.data(t),r.value(n||r._initialValues),r._retrieveData=!0)},options:{name:"MultiSelect",tagMode:"multiple",enabled:!0,autoBind:!0,autoClose:!0,highlightFirst:!0,dataTextField:"",dataValueField:"",filter:"startswith",ignoreCase:!0,minLength:0,delay:100,value:null,maxSelectedItems:null,placeholder:"",height:200,animation:{},itemTemplate:"",tagTemplate:"",groupTemplate:"#:data#",fixedGroupTemplate:"#:data#"},events:[m,g,v,w,"filtering","dataBinding","dataBound"],setDataSource:function(e){this.options.dataSource=e,this._dataSource(),this.listView.setDataSource(this.dataSource),this.options.autoBind&&this.dataSource.fetch()},setOptions:function(e){var t=this._listOptions(e);o.fn.setOptions.call(this,e),this._normalizeOptions(t),this.listView.setOptions(t),this._accessors(),this._aria(this.tagList.attr(c)),this._tagTemplate()},currentTag:function(e){var n=this;return e===t?n._currentTag:(n._currentTag&&(n._currentTag.removeClass(k).removeAttr(c),n.input.removeAttr("aria-activedescendant")),e&&(e.addClass(k).attr(c,n._tagID),n.input.attr("aria-activedescendant",n._tagID)),n._currentTag=e,void 0)},dataItems:function(){return this.listView.selectedDataItems()},destroy:function(){var e=this,t=e.ns;clearTimeout(e._busy),clearTimeout(e._typingTimeout),e.wrapper.off(t),e.tagList.off(t),e.input.off(t),o.fn.destroy.call(e)},_activateItem:function(){o.fn._activateItem.call(this),this.currentTag(null)},_normalizeOptions:function(e){var t=this.options.itemTemplate||this.options.template,n=e.itemTemplate||t||e.template;n||(n="#:"+i.expr(e.dataTextField,"data")+"#"),e.template=n},_initList:function(){var t=this,n=t.options.virtual,r=!!n,o=u(t._listBound,t),a={autoBind:!1,selectable:"multiple",dataSource:t.dataSource,click:u(t._click,t),change:u(t._listChange,t),activate:u(t._activateItem,t),deactivate:u(t._deactivateItem,t),dataBinding:function(){t.trigger("dataBinding"),t._angularItems("cleanup")},dataBound:o,listBound:o,selectedItemChange:u(t._selectedItemChange,t)};a=e.extend(t._listOptions(),a,"object"==typeof n?n:{}),t._normalizeOptions(a),t.listView=r?new i.ui.VirtualList(t.ul,a):new i.ui.StaticList(t.ul,a),t.listView.value(t._initialValues||t.options.value)},_listChange:function(e){this._state===h&&(this._state="",e.added=[]),this._selectValue(e.added,e.removed)},_selectedItemChange:function(e){var t,n,i=e.items;for(n=0;n<i.length;n++)t=i[n],this.tagList.children().eq(t.index).children("span:first").html(this.tagTextTemplate(t.item))},_wrapperMousedown:function(t){var n=this,r="input"!==t.target.nodeName.toLowerCase(),o=e(t.target),a=o.hasClass("k-select")||o.hasClass("k-icon");a&&(a=!o.closest(".k-select").children(".k-i-arrow-s").length),!r||a&&i.support.mobileOS||t.preventDefault(),a||(n.input[0]!==s()&&r&&n.input.focus(),0===n.options.minLength&&n.open())},_inputFocus:function(){this._placeholder(!1),this.wrapper.addClass(k)},_inputFocusout:function(){var e=this;clearTimeout(e._typingTimeout),e.wrapper.removeClass(k),e._placeholder(!e.listView.selectedDataItems()[0],!0),e.close(),e._state===f&&(e._state=p,e.listView.filter(!1),e.listView.skipUpdate(!0)),e.element.blur()},_removeTag:function(e){var n,i=this,r=i._state,o=e.index(),a=i.listView,s=a.value()[o],l=i._customOptions[s];l!==t||r!==p&&r!==f||(l=i._optionsMap[s]),l!==t?(n=i.element[0].children[l],n.removeAttribute("selected"),n.selected=!1,a.removeAt(o),e.remove()):a.select(a.select()[o]),i.currentTag(null),i._change(),i._close()},_tagListClick:function(t){var n=e(t.currentTarget);n.children(".k-i-arrow-s").length||this._removeTag(n.closest(d))},_editable:function(t){var n=this,i=t.disable,r=t.readonly,o=n.wrapper.off(I),a=n.tagList.off(I),s=n.element.add(n.input.off(I));r||i?(i?o.addClass(T):o.removeClass(T),s.attr(S,i).attr(D,r).attr(b,i).attr(y,r)):(o.removeClass(T).on(A,n._toggleHover).on("mousedown"+I+" touchend"+I,u(n._wrapperMousedown,n)),n.input.on(M,u(n._keydown,n)).on("paste"+I,u(n._search,n)).on("focus"+I,u(n._inputFocus,n)).on("focusout"+I,u(n._inputFocusout,n)),s.removeAttr(S).removeAttr(D).attr(b,!1).attr(y,!1),a.on(E,d,function(){e(this).addClass(C)}).on(O,d,function(){e(this).removeClass(C)}).on(F,"li.k-button .k-select",u(n._tagListClick,n)))},_close:function(){var e=this;e.options.autoClose?e.close():e.popup.position()},close:function(){this.popup.close()},open:function(){var e=this;e._request&&(e._retrieveData=!1),e._retrieveData||!e.listView.isBound()||e._state===p?(e._open=!0,e._state=h,e._retrieveData=!1,e.listView.filter(!1),e.listView.skipUpdate(!0),e._filterSource()):e._allowSelection()&&(e.popup.open(),e._focusItem())},toggle:function(e){e=e!==t?e:!this.popup.visible(),this[e?m:g]()},refresh:function(){this.listView.refresh()},_listBound:function(e){var n=this,i=n.dataSource.flatView(),r=n.dataSource.page(),o=i.length;n._angularItems("compile"),n._render(i),n._calculateGroupPadding(n._height(o)),n._open&&(n._open=!1,n.toggle(o)),n.popup.position(),!n.options.highlightFirst||r!==t&&1!==r||n.listView.first(),n._touchScroller&&n._touchScroller.reset(),n._hideBusy(),n._makeUnselectable(),n.trigger("dataBound")},search:function(e){var t,n,i=this,r=i.options,o=r.ignoreCase,a=r.filter,s=r.dataTextField,l=i.input.val();r.placeholder===l&&(l=""),clearTimeout(i._typingTimeout),e="string"==typeof e?e:l,n=e.length,(!n||n>=r.minLength)&&(i.listView.filter(!0),i._state=f,i._open=!0,t={value:o?e.toLowerCase():e,field:s,operator:a,ignoreCase:o},i._filterSource(t,i._retrieveData),i._retrieveData=!1)},value:function(e){var n=this,i=n.listView.value().slice(),r=n.options.maxSelectedItems;return e===t?i:(e=n._normalizeValues(e),null!==r&&e.length>r&&(e=e.slice(0,r)),n.listView.value(e),n._old=e,void n._fetchData())},_setOption:function(e,t){var n=this.element[0].children[this._optionsMap[e]];n&&(t?n.setAttribute("selected","selected"):n.removeAttribute("selected"),n.selected=t)},_fetchData:function(){var e=this,t=!!e.dataSource.view().length,n=0===e.listView.value().length;n||e._request||(e._retrieveData||!e._fetch&&!t)&&(e._fetch=!0,e._retrieveData=!1,e.dataSource.read().done(function(){e._fetch=!1}))},_dataSource:function(){var e=this,t=e.element,n=e.options,r=n.dataSource||{};r=z(r)?{data:r}:r,r.select=t,r.fields=[{field:n.dataTextField},{field:n.dataValueField}],e.dataSource&&e._refreshHandler?e._unbindDataSource():e._progressHandler=u(e._showBusy,e),e.dataSource=i.data.DataSource.create(r).bind(_,e._progressHandler)},_reset:function(){var t=this,n=t.element,i=n.attr("form"),r=i?e("#"+i):n.closest("form");r[0]&&(t._resetHandler=function(){setTimeout(function(){t.value(t._initialValues),t._placeholder()})},t._form=r.on("reset",t._resetHandler))},_initValue:function(){var e=this.options.value||this.element.val();this._old=this._initialValues=this._normalizeValues(e)},_normalizeValues:function(t){var n=this;return null===t?t=[]:t&&e.isPlainObject(t)?t=[n._value(t)]:t&&e.isPlainObject(t[0])?t=e.map(t,function(e){return n._value(e)}):z(t)||t instanceof l||(t=[t]),t},_change:function(){var e=this,t=e.value();n(t,e._old)||(e._old=t.slice(),e.trigger(v),e.element.trigger(v))},_click:function(e){var t=e.item;return this.trigger(w,{item:t})?void this._close():(this._select(t),this._change(),void this._close())},_keydown:function(t){var n=this,r=t.keyCode,o=n._currentTag,s=n.listView.focus(),l=n.input.val(),u=i.support.isRtl(n.wrapper),c=n.popup.visible();if(r===a.DOWN){if(t.preventDefault(),!c)return n.open(),void(s||this.listView.first());s?(this.listView.next(),this.listView.focus()||this.listView.last()):this.listView.first()}else if(r===a.UP)c&&(s&&this.listView.prev(),this.listView.focus()||n.close()),t.preventDefault();else if(r===a.LEFT&&!u||r===a.RIGHT&&u)l||(o=o?o.prev():e(n.tagList[0].lastChild),o[0]&&n.currentTag(o));else if(r===a.RIGHT&&!u||r===a.LEFT&&u)!l&&o&&(o=o.next(),n.currentTag(o[0]?o:null));else if(r===a.ENTER&&c){if(s){if(n.trigger(w,{item:s}))return void n._close();n._select(s)}n._change(),n._close(),t.preventDefault()}else r===a.ESC?(c?t.preventDefault():n.currentTag(null),n.close()):r===a.HOME?c?this.listView.first():l||(o=n.tagList[0].firstChild,o&&n.currentTag(e(o))):r===a.END?c?this.listView.last():l||(o=n.tagList[0].lastChild,o&&n.currentTag(e(o))):r!==a.DELETE&&r!==a.BACKSPACE||l?(clearTimeout(n._typingTimeout),setTimeout(function(){n._scale()}),n._search()):(r!==a.BACKSPACE||o||(o=e(n.tagList[0].lastChild)),o&&o[0]&&n._removeTag(o))},_hideBusy:function(){var e=this;clearTimeout(e._busy),e.input.attr("aria-busy",!1),e._loading.addClass(x),e._request=!1,e._busy=null},_showBusyHandler:function(){this.input.attr("aria-busy",!0),this._loading.removeClass(x)},_showBusy:function(){var e=this;e._request=!0,e._busy||(e._busy=setTimeout(u(e._showBusyHandler,e),100))},_placeholder:function(e,n){var r=this,o=r.input,a=s();e===t&&(e=!1,o[0]!==a&&(e=!r.listView.selectedDataItems()[0])),r._prev="",o.toggleClass("k-readonly",e).val(e?r.options.placeholder:""),o[0]!==a||n||i.caret(o[0],0,0),r._scale()},_scale:function(){var e,t=this,n=t.wrapper,i=n.width(),r=t._span.text(t.input.val());n.is(":visible")?e=r.width()+25:(r.appendTo(document.documentElement),i=e=r.width()+25,r.appendTo(n)),t.input.width(e>i?i:e)},_option:function(e,n,r){var o="<option";return e!==t&&(e+="",-1!==e.indexOf('"')&&(e=e.replace(H,"&quot;")),o+=' value="'+e+'"'),r&&(o+=" selected"),o+=">",n!==t&&(o+=i.htmlEncode(n)),o+="</option>"},_render:function(e){var t,n,i,r,o=this.listView.selectedDataItems(),a=this.listView.value(),s=e.length,l="";a.length!==o.length&&(o=this._buildSelectedItems(a));var u={},c={};for(r=0;s>r;r++)n=e[r],i=this._value(n),t=this._selectedItemIndex(i,o),-1!==t&&o.splice(t,1),c[i]=r,l+=this._option(i,this._text(n),-1!==t);if(o.length)for(r=0;r<o.length;r++)n=o[r],i=this._value(n),u[i]=s,c[i]=s,s+=1,l+=this._option(i,this._text(n),!0);this._customOptions=u,this._optionsMap=c,this.element.html(l)},_buildSelectedItems:function(e){for(var t,n=this.options.dataValueField,i=this.options.dataTextField,r=[],o=0;o<e.length;o++)t={},t[n]=e[o],t[i]=e[o],r.push(t);return r},_selectedItemIndex:function(e,t){for(var n=this._value,i=0;i<t.length;i++)if(e===n(t[i]))return i;return-1},_search:function(){var e=this;e._typingTimeout=setTimeout(function(){var t=e.input.val();e._prev!==t&&(e._prev=t,e.search(t))},e.options.delay)},_allowSelection:function(){var e=this.options.maxSelectedItems;return null===e||e>this.listView.value().length},_angularTagItems:function(t){var n=this;n.angular(t,function(){return{elements:n.tagList[0].children,data:e.map(n.dataItems(),function(e){return{dataItem:e}})}})},_selectValue:function(e,t){var n,i,r,o=this,a=o.value(),s=o.dataSource.total(),l=o.tagList,u=o._value;if(o._angularTagItems("cleanup"),"multiple"===o.options.tagMode){for(r=t.length-1;r>-1;r--)n=t[r],l[0].removeChild(l[0].children[n.position]),o._setOption(u(n.dataItem),!1);for(r=0;r<e.length;r++)i=e[r],l.append(o.tagTemplate(i.dataItem)),o._setOption(u(i.dataItem),!0)}else{for((!o._maxTotal||o._maxTotal<s)&&(o._maxTotal=s),l.html(""),a.length&&l.append(o.tagTemplate({values:a,dataItems:o.dataItems(),maxTotal:o._maxTotal,currentTotal:s})),r=t.length-1;r>-1;r--)o._setOption(u(t[r].dataItem),!1);for(r=0;r<e.length;r++)o._setOption(u(e[r].dataItem),!0)}o._angularTagItems("compile"),o._placeholder()},_select:function(e){var t=this;t._state===h&&(t._state=""),t._allowSelection()&&(this.listView.select(e),t._placeholder(),t._state===f&&(t._state=p,t.listView.filter(!1),t.listView.skipUpdate(!0)))},_input:function(){var t=this,n=t.element[0].accessKey,i=t._innerWrapper.children("input.k-input");i[0]||(i=e('<input class="k-input" style="width: 25px" />').appendTo(t._innerWrapper)),t.element.removeAttr("accesskey"),t._focused=t.input=i.attr({accesskey:n,autocomplete:"off",role:"listbox","aria-expanded":!1})},_tagList:function(){var t=this,n=t._innerWrapper.children("ul");n[0]||(n=e('<ul role="listbox" unselectable="on" class="k-reset"/>').appendTo(t._innerWrapper)),t.tagList=n},_tagTemplate:function(){var e,t=this,n=t.options,r=n.tagTemplate,o=n.dataSource,a="multiple"===n.tagMode;t.element[0].length&&!o&&(n.dataTextField=n.dataTextField||"text",n.dataValueField=n.dataValueField||"value"),e=a?i.template("#:"+i.expr(n.dataTextField,"data")+"#",{useWithBlock:!1}):i.template("#:values.length# item(s) selected"),t.tagTextTemplate=r=r?i.template(r):e,t.tagTemplate=function(e){return'<li class="k-button" unselectable="on"><span unselectable="on">'+r(e)+'</span><span unselectable="on" class="k-select"><span unselectable="on" class="k-icon '+(a?"k-i-close":"k-i-arrow-s")+'">'+(a?"delete":"open")+"</span></span></li>"}},_loader:function(){this._loading=e('<span class="k-icon k-loading '+x+'"></span>').insertAfter(this.input)},_textContainer:function(){var t=i.getComputedStyles(this.input[0],V);t.position="absolute",t.visibility="hidden",t.top=-3333,t.left=-3333,this._span=e("<span/>").css(t).appendTo(this.wrapper)},_wrapper:function(){var t=this,n=t.element,i=n.parent("span.k-multiselect");i[0]||(i=n.wrap('<div class="k-widget k-multiselect k-header" unselectable="on" />').parent(),i[0].style.cssText=n[0].style.cssText,i[0].title=n[0].title,e('<div class="k-multiselect-wrap k-floatwrap" unselectable="on" />').insertBefore(n)),t.wrapper=i.addClass(n[0].className).css("display",""),t._innerWrapper=e(i[0].firstChild)}});r.plugin(P)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core","./kendo.userevents"],e)}(function(){return function(e,t){function n(e,t){return'<span unselectable="on" class="k-link"><span unselectable="on" class="k-icon k-i-arrow-'+e+'" title="'+t+'">'+t+"</span></span>"}var i=window.kendo,r=i.caret,o=i.keys,a=i.ui,s=a.Widget,l=i._activeElement,u=i._extractFormat,c=i.parseFloat,d=i.support.placeholder,p=i.getCulture,f=i._round,h="change",m="disabled",g="readonly",v="k-input",_="spin",w=".kendoNumericTextBox",b="touchend",y="mouseleave"+w,k="mouseenter"+w+" "+y,x="k-state-default",C="k-state-focused",T="k-state-hover",S="focus",D=".",I="k-state-selected",F="k-state-disabled",M="aria-disabled",E="aria-readonly",O=/^(-)?(\d*)$/,A=null,H=e.proxy,z=e.extend,V=s.extend({init:function(n,r){var o,a,l,c,d,p=this,f=r&&r.step!==t;s.fn.init.call(p,n,r),r=p.options,n=p.element.on("focusout"+w,H(p._focusout,p)).attr("role","spinbutton"),r.placeholder=r.placeholder||n.attr("placeholder"),p._initialOptions=z({},r),p._reset(),p._wrapper(),p._arrows(),p._input(),i.support.mobileOS?p._text.on(b+w+" "+S+w,function(e){p._toggleText(!1),n.focus()}):p._text.on(S+w,H(p._click,p)),o=p.min(n.attr("min")),a=p.max(n.attr("max")),l=p._parse(n.attr("step")),r.min===A&&o!==A&&(r.min=o),r.max===A&&a!==A&&(r.max=a),f||l===A||(r.step=l),n.attr("aria-valuemin",r.min).attr("aria-valuemax",r.max),r.format=u(r.format),c=r.value,p.value(c!==A?c:n.val()),d=n.is("[disabled]")||e(p.element).parents("fieldset").is(":disabled"),d?p.enable(!1):p.readonly(n.is("[readonly]")),i.notify(p)},options:{name:"NumericTextBox",decimals:A,min:A,max:A,value:A,step:1,culture:"",format:"n",spinners:!0,placeholder:"",upArrowText:"Increase value",downArrowText:"Decrease value"},events:[h,_],_editable:function(e){var t=this,n=t.element,i=e.disable,r=e.readonly,o=t._text.add(n),a=t._inputWrapper.off(k);t._toggleText(!0),t._upArrowEventHandler.unbind("press"),t._downArrowEventHandler.unbind("press"),n.off("keydown"+w).off("keypress"+w).off("paste"+w),r||i?(a.addClass(i?F:x).removeClass(i?x:F),o.attr(m,i).attr(g,r).attr(M,i).attr(E,r)):(a.addClass(x).removeClass(F).on(k,t._toggleHover),o.removeAttr(m).removeAttr(g).attr(M,!1).attr(E,!1),t._upArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(1),t._upArrow.addClass(I)}),t._downArrowEventHandler.bind("press",function(e){e.preventDefault(),t._spin(-1),t._downArrow.addClass(I)}),t.element.on("keydown"+w,H(t._keydown,t)).on("keypress"+w,H(t._keypress,t)).on("paste"+w,H(t._paste,t)))},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;e.element.add(e._text).add(e._upArrow).add(e._downArrow).add(e._inputWrapper).off(w),e._upArrowEventHandler.destroy(),e._downArrowEventHandler.destroy(),e._form&&e._form.off("reset",e._resetHandler),s.fn.destroy.call(e)},min:function(e){return this._option("min",e)},max:function(e){return this._option("max",e)},step:function(e){return this._option("step",e)},value:function(e){var n,i=this;return e===t?i._value:(e=i._parse(e),n=i._adjust(e),void(e===n&&(i._update(e),i._old=i._value)))},focus:function(){this._focusin()},_adjust:function(e){var t=this,n=t.options,i=n.min,r=n.max;return e===A?e:(i!==A&&i>e?e=i:r!==A&&e>r&&(e=r),e)},_arrows:function(){var t,r=this,o=function(){clearTimeout(r._spinning),t.removeClass(I)},a=r.options,s=a.spinners,l=r.element;t=l.siblings(".k-icon"),t[0]||(t=e(n("n",a.upArrowText)+n("s",a.downArrowText)).insertAfter(l),t.wrapAll('<span class="k-select"/>')),s||(t.parent().toggle(s),r._inputWrapper.addClass("k-expand-padding")),r._upArrow=t.eq(0),r._upArrowEventHandler=new i.UserEvents(r._upArrow,{release:o}),r._downArrow=t.eq(1),r._downArrowEventHandler=new i.UserEvents(r._downArrow,{release:o})},_blur:function(){var e=this;e._toggleText(!0),e._change(e.element.val())},_click:function(e){var t=this;clearTimeout(t._focusing),t._focusing=setTimeout(function(){var n,i,o,a=e.target,s=r(a)[0],l=a.value.substring(0,s),u=t._format(t.options.format),c=u[","],d=0;c&&(i=new RegExp("\\"+c,"g"),o=new RegExp("([\\d\\"+c+"]+)(\\"+u[D]+")?(\\d+)?")),o&&(n=o.exec(l)),n&&(d=n[0].replace(i,"").length,-1!=l.indexOf("(")&&t._value<0&&d++),t._focusin(),r(t.element[0],d)})},_change:function(e){var t=this;t._update(e),e=t._value,t._old!=e&&(t._old=e,t._typing||t.element.trigger(h),t.trigger(h)),t._typing=!1},_culture:function(e){return e||p(this.options.culture)},_focusin:function(){var e=this;e._inputWrapper.addClass(C),e._toggleText(!1),e.element[0].focus()},_focusout:function(){var e=this;clearTimeout(e._focusing),e._inputWrapper.removeClass(C).removeClass(T),e._blur()},_format:function(e,t){var n=this._culture(t).numberFormat;return e=e.toLowerCase(),e.indexOf("c")>-1?n=n.currency:e.indexOf("p")>-1&&(n=n.percent),n},_input:function(){var t,n=this,i="k-formatted-value",r=n.element.addClass(v).show()[0],o=r.accessKey,a=n.wrapper;t=a.find(D+i),t[0]||(t=e('<input type="text"/>').insertBefore(r).addClass(i));try{r.setAttribute("type","text")}catch(s){r.type="text"}t[0].tabIndex=r.tabIndex,t[0].style.cssText=r.style.cssText,t[0].title=r.title,t.prop("placeholder",n.options.placeholder),o&&(t.attr("accesskey",o),r.accessKey=""),n._text=t.addClass(r.className)},_keydown:function(e){var t=this,n=e.keyCode;t._key=n,n==o.DOWN?t._step(-1):n==o.UP?t._step(1):n==o.ENTER?t._change(t.element.val()):t._typing=!0},_keypress:function(e){if(0!==e.which&&!e.metaKey&&!e.ctrlKey&&e.keyCode!==o.BACKSPACE&&e.keyCode!==o.ENTER){var t,n=this,i=n.options.min,a=n.element,s=r(a),l=s[0],u=s[1],c=String.fromCharCode(e.which),d=n._format(n.options.format),p=n._key===o.NUMPAD_DOT,f=a.val();p&&(c=d[D]),f=f.substring(0,l)+c+f.substring(u),t=n._numericRegex(d).test(f),t&&p?(a.val(f),r(a,l+c.length),e.preventDefault()):(null!==i&&i>=0&&"-"===f.charAt(0)||!t)&&e.preventDefault(),n._key=0}},_numericRegex:function(e){var t=this,n=e[D],i=t.options.decimals;return n===D&&(n="\\"+n),i===A&&(i=e.decimals),0===i?O:(t._separator!==n&&(t._separator=n,t._floatRegExp=new RegExp("^(-)?(((\\d+("+n+"\\d*)?)|("+n+"\\d*)))?$")),t._floatRegExp)},_paste:function(e){var t=this,n=e.target,i=n.value;setTimeout(function(){t._parse(n.value)===A&&t._update(i)})},_option:function(e,n){var i=this,r=i.options;return n===t?r[e]:(n=i._parse(n),void((n||"step"!==e)&&(r[e]=n,i.element.attr("aria-value"+e,n).attr(e,n))))},_spin:function(e,t){var n=this;t=t||500,clearTimeout(n._spinning),n._spinning=setTimeout(function(){n._spin(e,50)},t),n._step(e)},_step:function(e){var t=this,n=t.element,i=t._parse(n.val())||0;l()!=n[0]&&t._focusin(),i+=t.options.step*e,t._update(t._adjust(i)),t._typing=!1,t.trigger(_)},_toggleHover:function(t){e(t.currentTarget).toggleClass(T,"mouseenter"===t.type)},_toggleText:function(e){var t=this;t._text.toggle(e),t.element.toggle(!e)},_parse:function(e,t){return c(e,this._culture(t),this.options.format)},_update:function(e){var t,n=this,r=n.options,o=r.format,a=r.decimals,s=n._culture(),l=n._format(o,s);a===A&&(a=l.decimals),e=n._parse(e,s),t=e!==A,t&&(e=parseFloat(f(e,a))),n._value=e=n._adjust(e),n._placeholder(i.toString(e,o,s)),t?(e=e.toString(),-1!==e.indexOf("e")&&(e=f(+e,a)),e=e.replace(D,l[D])):e="",n.element.val(e).attr("aria-valuenow",e)},_placeholder:function(e){this._text.val(e),d||e||this._text.val(this.options.placeholder)},_wrapper:function(){var t,n=this,i=n.element,r=i[0];t=i.parents(".k-numerictextbox"),t.is("span.k-numerictextbox")||(t=i.hide().wrap('<span class="k-numeric-wrap k-state-default" />').parent(),t=t.wrap("<span/>").parent()),t[0].style.cssText=r.style.cssText,r.style.width="",n.wrapper=t.addClass("k-widget k-numerictextbox").addClass(r.className).css("display",""),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(){setTimeout(function(){t.value(n[0].value),t.max(t._initialOptions.max),t.min(t._initialOptions.min)})},t._form=r.on("reset",t._resetHandler))}});a.plugin(V)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core"],e)}(function(){return function(e,t){function n(e){var t,n=this.options.anchor,i=n.outerWidth();a.wrap(this.element).addClass("k-split-wrapper"),t="border-box"!==this.element.css("box-sizing")?i-(this.element.outerWidth()-this.element.width()):i,this.element.css({fontFamily:n.css("font-family"),"min-width":t})}function i(e){e.target.is(".k-toggle-button")||e.target.toggleClass(b,"press"==e.type)}function r(t){return t=e(t),t.hasClass("km-actionsheet")?t.closest(".km-popup-wrapper"):t.addClass("km-widget km-actionsheet").wrap('<div class="km-actionsheet-wrapper km-actionsheet-tablet km-widget km-popup"></div>').parent().wrap('<div class="km-popup-wrapper k-popup"></div>').parent()}function o(e){e.preventDefault()}var a=window.kendo,s=a.Class,l=a.ui.Widget,u=e.proxy,c=a.isFunction,d="k-toolbar",p="k-button",f="k-overflow-button",h="k-toggle-button",m="k-button-group",g="k-split-button",v="k-separator",_="k-popup",w="k-toolbar-resizable",b="k-state-active",y="k-state-disabled",k="k-state-hidden",x="k-group-start",C="k-group-end",T="k-primary",S="k-icon",D="k-i-",I="k-button-icon",F="k-button-icontext",M="k-list-container k-split-container",E="k-split-button-arrow",O="k-overflow-anchor",A="k-overflow-container",H="k-toolbar-first-visible",z="k-toolbar-last-visible",V="click",P="toggle",L="open",R="close",B="overflowOpen",N="overflowClose",W="never",U="auto",q="always",$="k-overflow-hidden",j=a.attr("uid"),G=(a.template,a.Class.extend({addOverflowAttr:function(){this.element.attr(a.attr("overflow"),this.options.overflow||U)},addUidAttr:function(){this.element.attr(j,this.options.uid)},addIdAttr:function(){this.options.id&&this.element.attr("id",this.options.id)},addOverflowIdAttr:function(){this.options.id&&this.element.attr("id",this.options.id+"_overflow")},attributes:function(){this.options.attributes&&this.element.attr(this.options.attributes)},show:function(){this.element.removeClass(k).show(),this.options.hidden=!1},hide:function(){this.element.addClass(k).hide(),this.options.hidden=!0},remove:function(){this.element.remove()},enable:function(e){e===t&&(e=!0),this.element.toggleClass(y,!e),this.options.enable=e},twin:function(){var e=this.element.attr(j);return this.overflow?this.toolbar.element.find("["+j+"='"+e+"']").data(this.options.type):this.toolbar.options.resizable?this.toolbar.popup.element.find("["+j+"='"+e+"']").data(this.options.type):void 0}})),Y=G.extend({init:function(n,i){var r=e(n.useButtonTag?"<button></button>":"<a></a>");this.element=r,this.options=n,this.toolbar=i,this.attributes(),n.primary&&r.addClass(T),n.togglable&&(r.addClass(h),this.toggle(n.selected)),n.url===t||n.useButtonTag||(r.attr("href",n.url),n.mobile&&r.attr(a.attr("role"),"button")),n.group&&(r.attr(a.attr("group"),n.group),(this.overflow&&this.options.overflow===q||!this.overflow)&&(this.group=this.toolbar.addToGroup(this,n.group))),!n.togglable&&n.click&&c(n.click)&&(this.clickHandler=n.click),n.togglable&&n.toggle&&c(n.toggle)&&(this.toggleHandler=n.toggle)},toggle:function(e,t){e=!!e,this.group&&e?this.group.select(this):this.group||this.select(e),t&&this.twin()&&this.twin().toggle(e)},getParentGroup:function(){return this.options.isChild?this.element.closest("."+m).data("buttonGroup"):void 0},_addGraphics:function(){var t,n,i,r=this.element,o=this.options.icon,a=this.options.spriteCssClass,s=this.options.imageUrl;(a||s||o)&&(t=!0,r.contents().not("span.k-sprite,span."+S+",img.k-image").each(function(n,i){(1==i.nodeType||3==i.nodeType&&e.trim(i.nodeValue).length>0)&&(t=!1)}),r.addClass(t?I:F)),o?(n=r.children("span."+S).first(),n[0]||(n=e('<span class="'+S+'"></span>').prependTo(r)),n.addClass(D+o)):a?(n=r.children("span.k-sprite").first(),n[0]||(n=e('<span class="k-sprite"></span>').prependTo(r)),n.addClass(a)):s&&(i=r.children("img.k-image").first(),i[0]||(i=e('<img alt="icon" class="k-image" />').prependTo(r)),i.attr("src",s))}}),K=Y.extend({init:function(e,t){Y.fn.init.call(this,e,t);var n=this.element;n.addClass(p),this.addIdAttr(),e.align&&n.addClass("k-align-"+e.align),"overflow"!=e.showText&&e.text&&n.html(e.mobile?'<span class="km-text">'+e.text+"</span>":e.text),e.hasIcon="overflow"!=e.showIcon&&(e.icon||e.spriteCssClass||e.imageUrl),e.hasIcon&&this._addGraphics(),this.addUidAttr(),this.addOverflowAttr(),this.enable(e.enable),e.hidden&&this.hide(),this.element.data({type:"button",button:this})},select:function(e){e===t&&(e=!1),this.element.toggleClass(b,e),this.options.selected=e}}),Q=Y.extend({init:function(e,t){this.overflow=!0,Y.fn.init.call(this,e,t);var n=this.element;n.addClass(f+" "+p),"toolbar"!=e.showText&&e.text&&n.html(e.mobile?'<span class="km-text">'+e.text+"</span>":e.text),e.hasIcon="toolbar"!=e.showIcon&&(e.icon||e.spriteCssClass||e.imageUrl),e.hasIcon&&this._addGraphics(),e.isChild||this._wrap(),this.addOverflowIdAttr(),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.enable(e.enable),e.hidden&&this.hide(),this.element.data({type:"button",button:this})},_wrap:function(){this.element=this.element.wrap("<li></li>").parent()},overflowHidden:function(){this.element.addClass($)},select:function(e){e===t&&(e=!1),this.options.isChild?this.element.toggleClass(b,e):this.element.find(".k-button").toggleClass(b,e),this.options.selected=e}}),J=G.extend({createButtons:function(t){for(var n,i=this.options,r=i.buttons||[],o=0;o<r.length;o++)r[o].uid||(r[o].uid=a.guid()),n=new t(e.extend({mobile:i.mobile,isChild:!0,type:"button"},r[o]),this.toolbar),n.element.appendTo(this.element)},refresh:function(){this.element.children().filter(":not('."+k+"'):first").addClass(x),this.element.children().filter(":not('."+k+"'):last").addClass(C)}}),Z=J.extend({init:function(t,n){var i=this.element=e("<div></div>");this.options=t,this.toolbar=n,this.addIdAttr(),t.align&&i.addClass("k-align-"+t.align),this.createButtons(K),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.refresh(),i.addClass(m),this.element.data({type:"buttonGroup",buttonGroup:this})}}),X=J.extend({init:function(t,n){var i=this.element=e("<li></li>");this.options=t,this.toolbar=n,this.overflow=!0,this.addOverflowIdAttr(),this.createButtons(Q),this.attributes(),this.addUidAttr(),this.addOverflowAttr(),this.refresh(),i.addClass((t.mobile?"":m)+" k-overflow-group"),this.element.data({type:"buttonGroup",buttonGroup:this})},overflowHidden:function(){this.element.addClass($)}}),ee=G.extend({init:function(t,n){var i=this.element=e('<div class="'+g+'"></div>');this.options=t,this.toolbar=n,this.mainButton=new K(t,n),this.arrowButton=e('<a class="'+p+" "+E+'"><span class="'+(t.mobile?"km-icon km-arrowdown":"k-icon k-i-arrow-s")+'"></span></a>'),this.popupElement=e('<ul class="'+M+'"></ul>'),this.mainButton.element.appendTo(i),this.arrowButton.appendTo(i),
  this.popupElement.appendTo(i),t.align&&i.addClass("k-align-"+t.align),t.id||(t.id=t.uid),i.attr("id",t.id+"_wrapper"),this.addOverflowAttr(),this.addUidAttr(),this.createMenuButtons(),this.createPopup(),this.mainButton.main=!0,i.data({type:"splitButton",splitButton:this,kendoPopup:this.popup})},createMenuButtons:function(){for(var t,n=this.options,i=n.menuButtons,r=0;r<i.length;r++)t=new K(e.extend({mobile:n.mobile,type:"button",click:n.click},i[r]),this.toolbar),t.element.wrap("<li></li>").parent().appendTo(this.popupElement)},createPopup:function(){var t=this.options,i=this.element;this.popupElement.attr("id",t.id+"_optionlist").attr(j,t.rootUid),t.mobile&&(this.popupElement=r(this.popupElement)),this.popup=this.popupElement.kendoPopup({appendTo:t.mobile?e(t.mobile).children(".km-pane"):null,anchor:i,isRtl:this.toolbar._isRtl,copyAnchorStyles:!1,animation:t.animation,open:n}).data("kendoPopup")},remove:function(){this.popup.destroy(),this.element.remove()},toggle:function(){this.popup.toggle()},enable:function(e){e===t&&(e=!0),this.mainButton.enable(e),this.options.enable=e}}),te=G.extend({init:function(t,n){var i,r=this.element=e('<li class="'+g+'"></li>'),o=t.menuButtons;this.options=t,this.toolbar=n,this.overflow=!0,this.mainButton=new Q(e.extend({isChild:!0},t)),this.mainButton.element.appendTo(r);for(var a=0;a<o.length;a++)i=new Q(e.extend({mobile:t.mobile,isChild:!0},o[a]),this.toolbar),i.element.appendTo(r);this.addUidAttr(),this.addOverflowAttr(),this.mainButton.main=!0,r.data({type:"splitButton",splitButton:this})},overflowHidden:function(){this.element.addClass($)}}),ne=G.extend({init:function(t,n){var i=this.element=e("<div>&nbsp;</div>");this.element=i,this.options=t,this.toolbar=n,this.attributes(),this.addIdAttr(),this.addUidAttr(),this.addOverflowAttr(),i.addClass(v),i.data({type:"separator",separator:this})}}),ie=G.extend({init:function(t,n){var i=this.element=e("<li>&nbsp;</li>");this.element=i,this.options=t,this.toolbar=n,this.overflow=!0,this.attributes(),this.addUidAttr(),this.addOverflowIdAttr(),i.addClass(v),i.data({type:"separator",separator:this})},overflowHidden:function(){this.element.addClass($)}}),re=G.extend({init:function(t,n,i){var r=c(t)?t(n):t;r=r instanceof jQuery?r.wrap("<div></div>").parent():e("<div></div>").html(r),this.element=r,this.options=n,this.options.type="template",this.toolbar=i,this.attributes(),this.addUidAttr(),this.addIdAttr(),this.addOverflowAttr(),r.data({type:"template",template:this})}}),oe=G.extend({init:function(t,n,i){var r=e(c(t)?t(n):t);r=r instanceof jQuery?r.wrap("<li></li>").parent():e("<li></li>").html(r),this.element=r,this.options=n,this.options.type="template",this.toolbar=i,this.overflow=!0,this.attributes(),this.addUidAttr(),this.addOverflowIdAttr(),this.addOverflowAttr(),r.data({type:"template",template:this})},overflowHidden:function(){this.element.addClass($)}}),ae={button:{toolbar:K,overflow:Q},buttonGroup:{toolbar:Z,overflow:X},splitButton:{toolbar:ee,overflow:te},separator:{toolbar:ne,overflow:ie},overflowAnchor:'<div class="k-overflow-anchor"></div>',overflowContainer:'<ul class="k-overflow-container k-list-container"></ul>'},se=s.extend({init:function(e){this.name=e,this.buttons=[]},add:function(e){this.buttons[this.buttons.length]=e},remove:function(t){var n=e.inArray(t,this.buttons);this.buttons.splice(n,1)},select:function(e){for(var t=0;t<this.buttons.length;t++)this.buttons[t].select(!1);e.select(!0)}}),le=l.extend({init:function(t,n){var r=this;if(l.fn.init.call(r,t,n),n=r.options,t=r.wrapper=r.element,t.addClass(d+" k-widget"),this.uid=a.guid(),this._isRtl=a.support.isRtl(t),this._groups={},t.attr(j,this.uid),r.isMobile="boolean"==typeof n.mobile?n.mobile:r.element.closest(".km-root")[0],r.animation=r.isMobile?{open:{effects:"fade"}}:{},r.isMobile&&(t.addClass("km-widget"),S="km-icon",D="km-",p="km-button",m="km-buttongroup km-widget",b="km-state-active",y="km-state-disabled"),n.resizable?(r._renderOverflow(),t.addClass(w),r.overflowUserEvents=new a.UserEvents(r.element,{threshold:5,allowSelection:!0,filter:"."+O,tap:u(r._toggleOverflow,r)}),r._resizeHandler=a.onResize(function(){r.resize()})):r.popup={element:e([])},n.items&&n.items.length)for(var s=0;s<n.items.length;s++)r.add(n.items[s]);r.userEvents=new a.UserEvents(document,{threshold:5,allowSelection:!0,filter:"["+j+"="+this.uid+"] ."+p+", ["+j+"="+this.uid+"] ."+f,tap:u(r._buttonClick,r),press:i,release:i}),r.element.on(V,"."+y,o),n.resizable&&r.popup.element.on(V,0/0+y,o),n.resizable&&this._toggleOverflowAnchor(),a.notify(r)},events:[V,P,L,R,B,N],options:{name:"ToolBar",items:[],resizable:!0,mobile:null},addToGroup:function(e,t){var n;return n=this._groups[t]?this._groups[t]:this._groups[t]=new se,n.add(e),n},destroy:function(){var t=this;t.element.find("."+g).each(function(t,n){e(n).data("kendoPopup").destroy()}),t.userEvents.destroy(),t.options.resizable&&(a.unbindResize(t._resizeHandler),t.overflowUserEvents.destroy(),t.popup.destroy()),l.fn.destroy.call(t)},add:function(t){var n,i,r=ae[t.type],o=t.template,s=this,l=s.isMobile?"":"k-item k-state-default",u=t.overflowTemplate;e.extend(t,{uid:a.guid(),animation:s.animation,mobile:s.isMobile,rootUid:s.uid}),o&&!u?t.overflow=W:t.overflow||(t.overflow=U),t.overflow!==W&&s.options.resizable&&(u?i=new oe(u,t,s):r&&(i=new r.overflow(t,s),i.element.addClass(l)),i&&(t.overflow===U&&i.overflowHidden(),i.element.appendTo(s.popup.container),s.angular("compile",function(){return{elements:i.element.get()}}))),t.overflow!==q&&(o?n=new re(o,t,s):r&&(n=new r.toolbar(t,s)),n&&(s.options.resizable?(n.element.appendTo(s.element).css("visibility","hidden"),s._shrink(s.element.innerWidth()),n.element.css("visibility","visible")):n.element.appendTo(s.element),s.angular("compile",function(){return{elements:n.element.get()}})))},_getItem:function(e){var t,n,i,r,o=this.options.resizable;return t=this.element.find(e),r=t.length?t.data("type"):"",n=t.data(r),n&&n.main&&(t=t.parent("."+g),r="splitButton",n=t.data(r)),!t.length&&o&&(t=this.popup.element.find(e),r=t.data("type"),i=t.data(r)),i&&i.main&&(t=t.parent("."+g),r="splitButton",i=t.data(r)),n&&o&&(i=n.twin()),{type:r,toolbar:n,overflow:i}},remove:function(e){var t=this._getItem(e);t.toolbar&&t.toolbar.remove(),t.overflow&&t.overflow.remove(),this.resize(!0)},hide:function(e){var t=this._getItem(e);t.toolbar&&(t.toolbar.hide(),"button"===t.toolbar.options.type&&t.toolbar.options.isChild&&t.toolbar.getParentGroup().refresh()),t.overflow&&(t.overflow.hide(),"button"===t.overflow.options.type&&t.overflow.options.isChild&&t.overflow.getParentGroup().refresh()),this.resize(!0)},show:function(e){var t=this._getItem(e);t.toolbar&&(t.toolbar.show(),"button"===t.toolbar.options.type&&t.toolbar.options.isChild&&t.toolbar.getParentGroup().refresh()),t.overflow&&(t.overflow.show(),"button"===t.overflow.options.type&&t.overflow.options.isChild&&t.overflow.getParentGroup().refresh()),this.resize(!0)},enable:function(e,t){var n=this._getItem(e);"undefined"==typeof t&&(t=!0),n.toolbar&&n.toolbar.enable(t),n.overflow&&n.overflow.enable(t)},getSelectedFromGroup:function(e){return this.element.find("."+h+"[data-group='"+e+"']").filter("."+b)},toggle:function(t,n){var i=e(t),r=i.data("button");r.options.togglable&&r.toggle(n?n:!r.options.selected,!0)},_renderOverflow:function(){var t=this,n=ae.overflowContainer,i=t._isRtl,o=i?"left":"right";t.overflowAnchor=e(ae.overflowAnchor).addClass(p),t.element.append(t.overflowAnchor),t.isMobile?(t.overflowAnchor.append('<span class="km-icon km-more"></span>'),n=r(n)):t.overflowAnchor.append('<span class="k-icon k-i-more"></span>'),t.popup=new a.ui.Popup(n,{origin:"bottom "+o,position:"top "+o,anchor:t.overflowAnchor,isRtl:i,animation:t.animation,appendTo:t.isMobile?e(t.isMobile).children(".km-pane"):null,copyAnchorStyles:!1,open:function(n){var r=a.wrap(t.popup.element).addClass("k-overflow-wrapper");t.isMobile?t.popup.container.css("max-height",parseFloat(e(".km-content:visible").innerHeight())-15+"px"):r.css("margin-left",(i?-1:1)*((r.outerWidth()-r.width())/2+1)),t.trigger(B)&&n.preventDefault()},close:function(e){t.trigger(N)&&e.preventDefault()}}),t.popup.container=t.isMobile?t.popup.element.find("."+A):t.popup.element,t.popup.container.attr(j,this.uid)},_toggleOverflowAnchor:function(){this.overflowAnchor.css(this.popup.element.children(":not(."+$+", ."+_+")").length>0?{visibility:"visible",width:""}:{visibility:"hidden",width:"1px"})},_buttonClick:function(t){var n,i,r,o,a,s,l=this,u=t.target.closest("."+E).length;return t.preventDefault(),u?void l._toggle(t):(i=e(t.target).closest("."+p,l.element),void(i.hasClass(O)||(r=i.data("button"),!r&&l.popup&&(i=e(t.target).closest("."+f,l.popup.container),r=i.parent("li").data("button")),r&&r.options.enable&&(r.options.togglable?(a=c(r.toggleHandler)?r.toggleHandler:null,r.toggle(!r.options.selected,!0),s={target:i,group:r.options.group,checked:r.options.selected,id:r.options.id},a&&a.call(l,s),l.trigger(P,s)):(a=c(r.clickHandler)?r.clickHandler:null,s={target:i,id:r.options.id},a&&a.call(l,s),l.trigger(V,s)),i.hasClass(f)&&l.popup.close(),o=i.closest(".k-split-container"),o[0]&&(n=o.data("kendoPopup"),(n?n:o.parents(".km-popup-wrapper").data("kendoPopup")).close())))))},_toggle:function(t){var n,i=e(t.target).closest("."+g).data("splitButton");t.preventDefault(),i.options.enable&&(n=i.popup.element.is(":visible")?this.trigger(R,{target:i.element}):this.trigger(L,{target:i.element}),n||i.toggle())},_toggleOverflow:function(){this.popup.toggle()},_resize:function(e){var t=e.width;this.options.resizable&&(this.popup.close(),this._shrink(t),this._stretch(t),this._markVisibles(),this._toggleOverflowAnchor())},_childrenWidth:function(){var t=0;return this.element.children(":visible:not('."+k+"')").each(function(){t+=e(this).outerWidth(!0)}),Math.ceil(t)},_shrink:function(e){var t,n;if(e<this._childrenWidth()){n=this.element.children(":visible:not([data-overflow='never'], ."+O+")");for(var i=n.length-1;i>=0&&(t=n.eq(i),!(e>this._childrenWidth()));i--)this._hideItem(t)}},_stretch:function(e){var t,n;if(e>this._childrenWidth()){n=this.element.children(":hidden:not('."+k+"')");for(var i=0;i<n.length&&(t=n.eq(i),!(e<this._childrenWidth())&&this._showItem(t,e));i++);}},_hideItem:function(e){e.hide(),this.popup&&this.popup.container.find(">li[data-uid='"+e.data("uid")+"']").removeClass($)},_showItem:function(e,t){return e.length&&t>this._childrenWidth()+e.outerWidth(!0)?(e.show(),this.popup&&this.popup.container.find(">li[data-uid='"+e.data("uid")+"']").addClass($),!0):!1},_markVisibles:function(){var e=this.popup.container.children(),t=this.element.children(":not(.k-overflow-anchor)"),n=e.filter(":not(.k-overflow-hidden)"),i=t.filter(":visible");e.add(t).removeClass(H+" "+z),n.first().add(i.first()).addClass(H),n.last().add(i.last()).addClass(z)}});a.ui.plugin(le)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core"],e)}(function(){return function(e,t){function n(t){t=e(t),t.children(v).children(".k-icon").remove(),t.filter(":has(.k-panel),:has(.k-content)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var t=e(this),n=t.parent();t.append("<span class='k-icon "+(n.hasClass(O)?"k-i-arrow-n k-panelbar-collapse":"k-i-arrow-s k-panelbar-expand")+"'/>")})}function i(t){t=e(t),t.filter(".k-first:not(:first-child)").removeClass(x),t.filter(".k-last:not(:last-child)").removeClass(m),t.filter(":first-child").addClass(x),t.filter(":last-child").addClass(m)}var r=window.kendo,o=r.ui,a=r.keys,s=e.extend,l=e.each,u=r.template,c=o.Widget,d=/^(ul|a|div)$/i,p=".kendoPanelBar",f="img",h="href",m="k-last",g="k-link",v="."+g,_="error",w=".k-item",b=".k-group",y=b+":visible",k="k-image",x="k-first",C="expand",T="select",S="k-content",D="activate",I="collapse",F="mouseenter",M="mouseleave",E="contentLoad",O="k-state-active",A="> .k-panel",H="> .k-content",z="k-state-focused",V="k-state-disabled",P="k-state-selected",L="."+P,R="k-state-highlight",B=w+":not(.k-state-disabled)",N="> "+B+" > "+v+", .k-panel > "+B+" > "+v,W=w+".k-state-disabled > .k-link",U="> li > "+L+", .k-panel > li > "+L,q="k-state-default",$="aria-disabled",j="aria-expanded",G="aria-hidden",Y="aria-selected",K=":visible",Q=":empty",J="single",Z={content:u("<div role='region' class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),group:u("<ul role='group' aria-hidden='true' class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:u("<#= tag(item) # class='#= textClass(item, group) #' #= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:u("<li role='menuitem' #=aria(item)#class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) ## } else if (item.content || item.contentUrl) { ##= renderContent(data) ## } #</li>"),image:u("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:u("<span class='#= arrowClass(item) #'></span>"),sprite:u("<span class='k-sprite #= spriteCssClass #'></span>"),empty:u("")},X={aria:function(e){var t="";return(e.items||e.content||e.contentUrl)&&(t+=j+"='"+(e.expanded?"true":"false")+"' "),e.enabled===!1&&(t+=$+"='true'"),t},wrapperCssClass:function(e,t){var n="k-item",i=t.index;return n+=t.enabled===!1?" "+V:t.expanded===!0?" "+O:" k-state-default",0===i&&(n+=" k-first"),i==e.length-1&&(n+=" k-last"),t.cssClass&&(n+=" "+t.cssClass),n},textClass:function(e,t){var n=g;return t.firstLevel&&(n+=" k-header"),n},textAttributes:function(e){return e.url?" href='"+e.url+"'":""},arrowClass:function(e){var t="k-icon";return t+=e.expanded?" k-i-arrow-n k-panelbar-collapse":" k-i-arrow-s k-panelbar-expand"},text:function(e){return e.encoded===!1?e.text:r.htmlEncode(e.text)},tag:function(e){return e.url||e.contentUrl?"a":"span"},groupAttributes:function(e){return e.expanded!==!0?" style='display:none'":""},groupCssClass:function(){return"k-group k-panel"},contentAttributes:function(e){return e.item.expanded!==!0?" style='display:none'":""},content:function(e){return e.content?e.content:e.contentUrl?"":"&nbsp;"},contentUrl:function(e){return e.contentUrl?'href="'+e.contentUrl+'"':""}},ee=c.extend({init:function(t,n){var i,o=this;c.fn.init.call(o,t,n),t=o.wrapper=o.element.addClass("k-widget k-reset k-header k-panelbar"),n=o.options,t[0].id&&(o._itemId=t[0].id+"_pb_active"),o._tabindex(),o._initData(n),o._updateClasses(),o._animations(n),t.on("click"+p,N,function(t){o._click(e(t.currentTarget))&&t.preventDefault()}).on(F+p+" "+M+p,N,o._toggleHover).on("click"+p,W,!1).on("keydown"+p,e.proxy(o._keydown,o)).on("focus"+p,function(){var e=o.select();o._current(e[0]?e:o._first())}).on("blur"+p,function(){o._current(null)}).attr("role","menu"),i=t.find("li."+O+" > ."+S),i[0]&&o.expand(i.parent(),!1),r.notify(o)},events:[C,I,T,D,_,E],options:{name:"PanelBar",animation:{expand:{effects:"expand:vertical",duration:200},collapse:{duration:200}},expandMode:"multiple"},destroy:function(){c.fn.destroy.call(this),this.element.off(p),r.destroy(this.element)},_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=s(!0,t,e.animation),"dataSource"in e&&this._initData(e),c.fn.setOptions.call(this,e)},expand:function(t,n){var i=this,r={};return n=n!==!1,t=this.element.find(t),t.each(function(o,a){a=e(a);var s=a.find(A).add(a.find(H));if(!a.hasClass(V)&&s.length>0){if(i.options.expandMode==J&&i._collapseAllExpanded(a))return i;t.find("."+R).removeClass(R),a.addClass(R),n||(r=i.options.animation,i.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),i._triggerEvent(C,a)||i._toggleItem(a,!1),n||(i.options.animation=r)}}),i},collapse:function(t,n){var i=this,r={};return n=n!==!1,t=i.element.find(t),t.each(function(t,o){o=e(o);var a=o.find(A).add(o.find(H));!o.hasClass(V)&&a.is(K)&&(o.removeClass(R),n||(r=i.options.animation,i.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),i._triggerEvent(I,o)||i._toggleItem(o,!0),n||(i.options.animation=r))}),i},_toggleDisabled:function(e,t){e=this.element.find(e),e.toggleClass(q,t).toggleClass(V,!t).attr($,!t)},select:function(n){var i=this;return n===t?i.element.find(U).parent():(n=i.element.find(n),n.length?n.each(function(){var t=e(this),n=t.children(v);return t.hasClass(V)?i:void(i._triggerEvent(T,t)||i._updateSelected(n))}):this._updateSelected(n),i)},clearSelection:function(){this.select(e())},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 r=this._insert(e,t,t.length?t.find(A):null);return l(r.items,function(){r.group.append(this),i(this)}),n(t),i(r.group.find(".k-first, .k-last")),r.group.height("auto"),this},insertBefore:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return l(n.items,function(){t.before(this),i(this)}),i(t),n.group.height("auto"),this},insertAfter:function(e,t){t=this.element.find(t);var n=this._insert(e,t,t.parent());return l(n.items,function(){t.after(this),i(this)}),i(t),n.group.height("auto"),this},remove:function(e){e=this.element.find(e);var t=this,r=e.parentsUntil(t.element,w),o=e.parent("ul");return e.remove(),!o||o.hasClass("k-panelbar")||o.children(w).length||o.remove(),r.length&&(r=r.eq(0),n(r),i(r)),t},reload:function(t){var n=this;t=n.element.find(t),t.each(function(){var t=e(this);n._ajaxRequest(t,t.children("."+S),!t.is(K))})},_first:function(){return this.element.children(B).first()},_last:function(){var e=this.element.children(B).last(),t=e.children(y);return t[0]?t.children(B).last():e},_current:function(n){var i=this,r=i._focused,o=i._itemId;return n===t?r:(i.element.removeAttr("aria-activedescendant"),r&&r.length&&(r[0].id===o&&r.removeAttr("id"),r.children(v).removeClass(z)),e(n).length&&(o=n[0].id||o,n.attr("id",o).children(v).addClass(z),i.element.attr("aria-activedescendant",o)),void(i._focused=n))},_keydown:function(e){var t=this,n=e.keyCode,i=t._current();e.target==e.currentTarget&&(n==a.DOWN||n==a.RIGHT?(t._current(t._nextItem(i)),e.preventDefault()):n==a.UP||n==a.LEFT?(t._current(t._prevItem(i)),e.preventDefault()):n==a.ENTER||n==a.SPACEBAR?(t._click(i.children(v)),e.preventDefault()):n==a.HOME?(t._current(t._first()),e.preventDefault()):n==a.END&&(t._current(t._last()),e.preventDefault()))},_nextItem:function(e){if(!e)return this._first();var t=e.children(y),n=e.nextAll(":visible").first();return t[0]&&(n=t.children("."+x)),n[0]||(n=e.parent(y).parent(w).next()),n[0]||(n=this._first()),n.hasClass(V)&&(n=this._nextItem(n)),n},_prevItem:function(e){if(!e)return this._last();var t,n=e.prevAll(":visible").first();if(n[0])for(t=n;t[0];)t=t.children(y).children("."+m),t[0]&&(n=t);else n=e.parent(y).parent(w),n[0]||(n=this._last());return n.hasClass(V)&&(n=this._prevItem(n)),n},_insert:function(t,n,i){var o,a,l=this,u=e.isPlainObject(t),c=n&&n[0];return c||(i=l.element),a={firstLevel:i.hasClass("k-panelbar"),expanded:i.parent().hasClass(O),length:i.children().length},c&&!i.length&&(i=e(ee.renderGroup({group:a})).appendTo(n)),t instanceof r.Observable&&(t=t.toJSON()),u||e.isArray(t)?(o=e.map(u?[t]:t,function(t,n){return e("string"==typeof t?t:ee.renderItem({group:a,item:s(t,{index:n})}))}),c&&n.attr(j,!1)):(o="string"==typeof t&&"<"!=t.charAt(0)?l.element.find(t):e(t),l._updateItemsClasses(o)),{items:o,group:i}},_toggleHover:function(t){var n=e(t.currentTarget);n.parents("li."+V).length||n.toggleClass("k-state-hover",t.type==F)},_updateClasses:function(){var t,r,o=this;t=o.element.find("li > ul").not(function(){return e(this).parentsUntil(".k-panelbar","div").length}).addClass("k-group k-panel").attr("role","group"),t.parent().attr(j,!1).not("."+O).children("ul").attr(G,!0).hide(),r=o.element.add(t).children(),o._updateItemsClasses(r),n(r),i(r)},_updateItemsClasses:function(e){for(var t=e.length,n=0;t>n;n++)this._updateItemClasses(e[n],n)},_updateItemClasses:function(t,n){var i,o,a=this._selected,s=this.options.contentUrls,l=s&&s[n],u=this.element[0];t=e(t).addClass("k-item").attr("role","menuitem"),r.support.browser.msie&&t.css("list-style-position","inside").css("list-style-position",""),t.children(f).addClass(k),o=t.children("a").addClass(g),o[0]&&(o.attr("href",l),o.children(f).addClass(k)),t.filter(":not([disabled]):not([class*=k-state])").addClass("k-state-default"),t.filter("li[disabled]").addClass("k-state-disabled").attr($,!0).removeAttr("disabled"),t.children("div").addClass(S).attr("role","region").attr(G,!0).hide().parent().attr(j,!1),o=t.children(L),o[0]&&(a&&a.removeAttr(Y).children(L).removeClass(P),o.addClass(P),this._selected=t.attr(Y,!0)),t.children(v)[0]||(i="<span class='"+g+"'/>",s&&s[n]&&t[0].parentNode==u&&(i='<a class="k-link k-header" href="'+s[n]+'"/>'),t.contents().filter(function(){return!(this.nodeName.match(d)||3==this.nodeType&&!e.trim(this.nodeValue))}).wrapAll(i)),t.parent(".k-panelbar")[0]&&t.children(v).addClass("k-header")},_click:function(e){var t,n,i,r,o=this,a=o.element;if(!e.parents("li."+V).length&&e.closest(".k-widget")[0]==a[0]){var s=e.closest(v),l=s.closest(w);if(o._updateSelected(s),n=l.find(A).add(l.find(H)),i=s.attr(h),r=i&&("#"==i.charAt(i.length-1)||-1!=i.indexOf("#"+o.element[0].id+"-")),t=!(!r&&!n.length),n.data("animating"))return t;if(o._triggerEvent(T,l)&&(t=!0),t!==!1){if(o.options.expandMode==J&&o._collapseAllExpanded(l))return t;if(n.length){var u=n.is(K);o._triggerEvent(u?I:C,l)||(t=o._toggleItem(l,u))}return t}}},_toggleItem:function(e,n){var i,r,o=this,a=e.find(A),s=e.find(v),l=s.attr(h);return a.length?(this._toggleGroup(a,n),i=!0):(r=e.children("."+S),r.length&&(i=!0,r.is(Q)&&l!==t?o._ajaxRequest(e,r,n):o._toggleGroup(r,n))),i},_toggleGroup:function(e,t){var n=this,i=n.options.animation,r=i.expand,o=s({},i.collapse),a=o&&"effects"in o;e.is(K)==t&&(e.parent().attr(j,!t).attr(G,t).toggleClass(O,!t).find("> .k-link > .k-icon").toggleClass("k-i-arrow-n",!t).toggleClass("k-panelbar-collapse",!t).toggleClass("k-i-arrow-s",t).toggleClass("k-panelbar-expand",t),r=t?s(a?o:s({reverse:!0},r),{hide:!0}):s({complete:function(e){n._triggerEvent(D,e.closest(w))}},r),e.kendoStop(!0,!0).kendoAnimate(r))},_collapseAllExpanded:function(t){var n,i=this,r=!1,o=t.find(A).add(t.find(H));return o.is(K)&&(r=!0),o.is(K)||0===o.length||(n=t.siblings(),n.find(A).add(n.find(H)).filter(function(){return e(this).is(K)}).each(function(t,n){n=e(n),r=i._triggerEvent(I,n.closest(w)),r||i._toggleGroup(n,!0)})),r},_ajaxRequest:function(t,n,i){var r=this,o=t.find(".k-panelbar-collapse, .k-panelbar-expand"),a=t.find(v),s=setTimeout(function(){o.addClass("k-loading")},100),l={},u=a.attr(h);e.ajax({type:"GET",cache:!1,url:u,dataType:"html",data:l,error:function(e,t){o.removeClass("k-loading"),r.trigger(_,{xhr:e,status:t})&&this.complete()},complete:function(){clearTimeout(s),o.removeClass("k-loading")},success:function(e){function o(){return{elements:n.get()}}try{r.angular("cleanup",o),n.html(e),r.angular("compile",o)}catch(a){var s=window.console;s&&s.error&&s.error(a.name+": "+a.message+" in "+u),this.error(this.xhr,"error")}r._toggleGroup(n,i),r.trigger(E,{item:t[0],contentElement:n[0]})}})},_triggerEvent:function(e,t){var n=this;return n.trigger(e,{item:t[0]})},_updateSelected:function(e){var t=this,n=t.element,i=e.parent(w),r=t._selected;r&&r.removeAttr(Y),t._selected=i.attr(Y,!0),n.find(U).removeClass(P),n.find("> ."+R+", .k-panel > ."+R).removeClass(R),e.addClass(P),e.parentsUntil(n,w).filter(":has(.k-header)").addClass(R),t._current(i[0]?i:null)},_animations:function(e){e&&"animation"in e&&!e.animation&&(e.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}})}});s(ee,{renderItem:function(e){e=s({panelBar:{},group:{}},e);var t=Z.empty,n=e.item;return Z.item(s(e,{image:n.imageUrl?Z.image:t,sprite:n.spriteCssClass?Z.sprite:t,itemWrapper:Z.itemWrapper,renderContent:ee.renderContent,arrow:n.items||n.content||n.contentUrl?Z.arrow:t,subGroup:ee.renderGroup},X))},renderGroup:function(e){return Z.group(s({renderItems:function(e){for(var t="",n=0,i=e.items,r=i?i.length:0,o=s({length:r},e.group);r>n;n++)t+=ee.renderItem(s(e,{group:o,item:s({index:n},i[n])}));return t}},e,X))},renderContent:function(e){return Z.content(s(e,X))}}),r.ui.plugin(ee)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.draganddrop"],e)}(function(){return function(e,t){function n(e){return"undefined"!=typeof e}function i(e,t,n){return Math.max(Math.min(parseInt(e,10),n===1/0?n:parseInt(n,10)),parseInt(t,10))}function r(e,t){return function(){var n=this,i=n.wrapper,r=i[0].style,o=n.options;return o.isMaximized||o.isMinimized?n:(n.restoreOptions={width:r.width,height:r.height},i.children(C).hide().end().children(k).find(j).parent().hide().eq(0).before(l.action({name:"Restore"})),t.call(n),"maximize"==e?n.wrapper.children(k).find(K).parent().hide():n.wrapper.children(k).find(K).parent().show(),n)}}function o(){return!this.type||this.type.toLowerCase().indexOf("script")>=0}function a(e){var t=this;t.owner=e,t._draggable=new d(e.wrapper,{filter:">"+C,group:e.wrapper.id+"-resizing",dragstart:h(t.dragstart,t),drag:h(t.drag,t),dragend:h(t.dragend,t)}),t._draggable.userEvents.bind("press",h(t.addOverlay,t)),t._draggable.userEvents.bind("release",h(t.removeOverlay,t))}function s(e,t){var n=this;n.owner=e,n._draggable=new d(e.wrapper,{filter:t,group:e.wrapper.id+"-moving",dragstart:h(n.dragstart,n),drag:h(n.drag,n),dragend:h(n.dragend,n),dragcancel:h(n.dragcancel,n)}),n._draggable.userEvents.stopPropagation=!1}var l,u=window.kendo,c=u.ui.Widget,d=u.ui.Draggable,p=e.isPlainObject,f=u._activeElement,h=e.proxy,m=e.extend,g=e.each,v=u.template,_="body",w=".kendoWindow",b=".k-window",y=".k-window-title",k=y+"bar",x=".k-window-content",C=".k-resize-handle",T=".k-overlay",S="k-content-frame",D="k-loading",I="k-state-hover",F="k-state-focused",M="k-window-maximized",E=":visible",O="hidden",A="cursor",H="open",z="activate",V="deactivate",P="close",L="refresh",R="resize",B="resizeEnd",N="dragstart",W="dragend",U="error",q="overflow",$="zIndex",j=".k-window-actions .k-i-minimize,.k-window-actions .k-i-maximize",G=".k-i-pin",Y=".k-i-unpin",K=G+","+Y,Q=".k-window-titlebar .k-window-action",J=".k-window-titlebar .k-i-refresh",Z=u.isLocalUrl,X=c.extend({init:function(i,r){var a,s,l,d,f,m,g,v=this,_={},C=!1,T=r&&r.actions&&!r.actions.length;c.fn.init.call(v,i,r),r=v.options,d=r.position,i=v.element,f=r.content,T&&(r.actions=[]),v.appendTo=e(r.appendTo),v._animations(),f&&!p(f)&&(f=r.content={url:f}),i.find("script").filter(o).remove(),i.parent().is(v.appendTo)||d.top!==t&&d.left!==t||(i.is(E)?(_=i.offset(),C=!0):(s=i.css("visibility"),l=i.css("display"),i.css({visibility:O,display:""}),_=i.offset(),i.css({visibility:s,display:l})),d.top===t&&(d.top=_.top),d.left===t&&(d.left=_.left)),n(r.visible)&&null!==r.visible||(r.visible=i.is(E)),a=v.wrapper=i.closest(b),i.is(".k-content")&&a[0]||(i.addClass("k-window-content k-content"),v._createWindow(i,r),a=v.wrapper=i.closest(b),v._dimensions()),v._position(),r.pinned&&v.pin(!0),f&&v.refresh(f),r.visible&&v.toFront(),m=a.children(x),v._tabindex(m),r.visible&&r.modal&&v._overlay(a.is(E)).css({opacity:.5}),a.on("mouseenter"+w,Q,h(v._buttonEnter,v)).on("mouseleave"+w,Q,h(v._buttonLeave,v)).on("click"+w,"> "+Q,h(v._windowActionHandler,v)),m.on("keydown"+w,h(v._keydown,v)).on("focus"+w,h(v._focus,v)).on("blur"+w,h(v._blur,v)),this._resizable(),this._draggable(),g=i.attr("id"),g&&(g+="_wnd_title",a.children(k).children(y).attr("id",g),m.attr({role:"dialog","aria-labelledby":g})),a.add(a.children(".k-resize-handle,"+k)).on("mousedown"+w,h(v.toFront,v)),v.touchScroller=u.touchScroller(i),v._resizeHandler=h(v._onDocumentResize,v),v._marker=u.guid().substring(0,8),e(window).on("resize"+w+v._marker,v._resizeHandler),r.visible&&(v.trigger(H),v.trigger(z)),u.notify(v)},_buttonEnter:function(t){e(t.currentTarget).addClass(I)},_buttonLeave:function(t){e(t.currentTarget).removeClass(I)},_focus:function(){this.wrapper.addClass(F)},_blur:function(){this.wrapper.removeClass(F)},_dimensions:function(){var e=this.wrapper,t=this.options,n=t.width,r=t.height,o=t.maxHeight,a=["minWidth","minHeight","maxWidth","maxHeight"];this.title(t.title);for(var s=0;s<a.length;s++){var l=t[a[s]];l&&l!=1/0&&e.css(a[s],l)}o&&o!=1/0&&this.element.css("maxHeight",o),n&&e.width(n.toString().indexOf("%")>0?n:i(n,t.minWidth,t.maxWidth)),r&&e.height(r.toString().indexOf("%")>0?r:i(r,t.minHeight,t.maxHeight)),t.visible||e.hide()},_position:function(){var e=this.wrapper,t=this.options.position;0===t.top&&(t.top=t.top.toString()),0===t.left&&(t.left=t.left.toString()),e.css({top:t.top||"",left:t.left||""})},_animations:function(){var e=this.options;e.animation===!1&&(e.animation={open:{effects:{}},close:{hide:!0,effects:{}}})},_resize:function(){u.resize(this.element.children())},_resizable:function(){var t=this.options.resizable,n=this.wrapper;this.resizing&&(n.off("dblclick"+w).children(C).remove(),this.resizing.destroy(),this.resizing=null),t&&(n.on("dblclick"+w,k,h(function(t){e(t.target).closest(".k-window-action").length||this.toggleMaximization()},this)),g("n e s w se sw ne nw".split(" "),function(e,t){n.append(l.resizeHandle(t))}),this.resizing=new a(this)),n=null},_draggable:function(){var e=this.options.draggable;this.dragging&&(this.dragging.destroy(),this.dragging=null),e&&(this.dragging=new s(this,e.dragHandle||k))},_actions:function(){var t=this.options.actions,n=this.wrapper.children(k),i=n.find(".k-window-actions");t=e.map(t,function(e){return{name:e}}),i.html(u.render(l.action,t))},setOptions:function(e){c.fn.setOptions.call(this,e),this.restore(),this._animations(),this._dimensions(),this._position(),this._resizable(),this._draggable(),this._actions()},events:[H,z,V,P,L,R,B,N,W,U],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],autoFocus:!0,modal:!1,resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:1/0,maxHeight:1/0,pinned:!1,position:{},content:null,visible:null,height:null,width:null,appendTo:"body"},_closable:function(){return e.inArray("close",e.map(this.options.actions,function(e){return e.toLowerCase()}))>-1},_keydown:function(e){var t,n,r,o,a,s,l=this,c=l.options,d=u.keys,p=e.keyCode,f=l.wrapper,h=10,m=l.options.isMaximized;e.target!=e.currentTarget||l._closing||(p==d.ESC&&l._closable()&&l._close(!1),!c.draggable||e.ctrlKey||m||(t=u.getOffset(f),p==d.UP?n=f.css("top",t.top-h):p==d.DOWN?n=f.css("top",t.top+h):p==d.LEFT?n=f.css("left",t.left-h):p==d.RIGHT&&(n=f.css("left",t.left+h))),c.resizable&&e.ctrlKey&&!m&&(p==d.UP?(n=!0,o=f.height()-h):p==d.DOWN&&(n=!0,o=f.height()+h),p==d.LEFT?(n=!0,r=f.width()-h):p==d.RIGHT&&(n=!0,r=f.width()+h),n&&(a=i(r,c.minWidth,c.maxWidth),s=i(o,c.minHeight,c.maxHeight),isNaN(a)||(f.width(a),l.options.width=a+"px"),isNaN(s)||(f.height(s),l.options.height=s+"px"),l.resize())),n&&e.preventDefault())},_overlay:function(t){var n=this.appendTo.children(T),i=this.wrapper;return n.length||(n=e("<div class='k-overlay' />")),n.insertBefore(i[0]).toggle(t).css($,parseInt(i.css($),10)-1),n},_actionForIcon:function(e){var t=/\bk-i-\w+\b/.exec(e[0].className)[0];return{"k-i-close":"_close","k-i-maximize":"maximize","k-i-minimize":"minimize","k-i-restore":"restore","k-i-refresh":"refresh","k-i-pin":"pin","k-i-unpin":"unpin"}[t]},_windowActionHandler:function(t){if(!this._closing){var n=e(t.target).closest(".k-window-action").find(".k-icon"),i=this._actionForIcon(n);return i?(t.preventDefault(),this[i](),!1):void 0}},_modals:function(){
  var t=this,n=e(b).filter(function(){var n=e(this),i=t._object(n),r=i&&i.options;return r&&r.modal&&r.visible&&n.is(E)}).sort(function(t,n){return+e(t).css("zIndex")-+e(n).css("zIndex")});return t=null,n},_object:function(e){var n=e.children(x),i=u.widgetInstance(n);return i instanceof X?i:t},center:function(){var t,n,i=this,r=i.options.position,o=i.wrapper,a=e(window),s=0,l=0;return i.options.isMaximized?i:(i.options.pinned||(s=a.scrollTop(),l=a.scrollLeft()),n=l+Math.max(0,(a.width()-o.width())/2),t=s+Math.max(0,(a.height()-o.height()-parseInt(o.css("paddingTop"),10))/2),o.css({left:n,top:t}),r.top=t,r.left=n,i)},title:function(e){var t,n=this,i=n.wrapper,r=n.options,o=i.children(k),a=o.children(y);return arguments.length?(e===!1?(i.addClass("k-window-titleless"),o.remove()):(o.length?a.html(e):(i.prepend(l.titlebar(r)),n._actions(),o=i.children(k)),t=o.outerHeight(),i.css("padding-top",t),o.css("margin-top",-t)),n.options.title=e,n):a.text()},content:function(e,t){var i=this.wrapper.children(x),r=i.children(".km-scroll-container");return i=r[0]?r:i,n(e)?(this.angular("cleanup",function(){return{elements:i.children()}}),u.destroy(this.element.children()),i.empty().html(e),this.angular("compile",function(){for(var e=[],n=i.length;--n>=0;)e.push({dataItem:t});return{elements:i.children(),data:e}}),this):i.html()},open:function(){var t,n=this,i=n.wrapper,r=n.options,o=r.animation.open,a=i.children(x),s=e(document);if(!n.trigger(H)){if(n._closing&&i.kendoStop(!0,!0),n._closing=!1,n.toFront(),r.autoFocus&&n.element.focus(),r.visible=!0,r.modal){if(t=n._overlay(!1),t.kendoStop(!0,!0),o.duration&&u.effects.Fade){var l=u.fx(t).fadeIn();l.duration(o.duration||0),l.endValue(.5),l.play()}else t.css("opacity",.5);t.show()}i.is(E)||(a.css(q,O),i.show().kendoStop().kendoAnimate({effects:o.effects,duration:o.duration,complete:h(this._activate,this)}))}return r.isMaximized&&(n._documentScrollTop=s.scrollTop(),n._documentScrollLeft=s.scrollLeft(),e("html, body").css(q,O)),n},_activate:function(){this.options.autoFocus&&this.element.focus(),this.trigger(z),this.wrapper.children(x).css(q,"")},_removeOverlay:function(n){var i=this._modals(),r=this.options,o=r.modal&&!i.length,a=r.modal?this._overlay(!0):e(t),s=r.animation.close;if(o)if(!n&&s.duration&&u.effects.Fade){var l=u.fx(a).fadeOut();l.duration(s.duration||0),l.startValue(.5),l.play()}else this._overlay(!1).remove();else i.length&&this._object(i.last())._overlay(!0)},_close:function(t){var n=this,i=n.wrapper,r=n.options,o=r.animation.open,a=r.animation.close,s=e(document);if(i.is(E)&&!n.trigger(P,{userTriggered:!t})){if(n._closing)return;n._closing=!0,r.visible=!1,e(b).each(function(t,n){var r=e(n).children(x);n!=i&&r.find("> ."+S).length>0&&r.children(T).remove()}),this._removeOverlay(),i.kendoStop().kendoAnimate({effects:a.effects||o.effects,reverse:a.reverse===!0,duration:a.duration,complete:h(this._deactivate,this)})}n.options.isMaximized&&(e("html, body").css(q,""),n._documentScrollTop&&n._documentScrollTop>0&&s.scrollTop(n._documentScrollTop),n._documentScrollLeft&&n._documentScrollLeft>0&&s.scrollLeft(n._documentScrollLeft))},_deactivate:function(){var e=this;if(e.wrapper.hide().css("opacity",""),e.trigger(V),e.options.modal){var t=e._object(e._modals().last());t&&t.toFront()}},close:function(){return this._close(!0),this},_actionable:function(t){return e(t).is(Q+","+Q+" .k-icon,:input,a")},_shouldFocus:function(t){var n=f(),i=this.element;return!(!this.options.autoFocus||e(n).is(i)||this._actionable(t)||i.find(n).length&&i.find(t).length)},toFront:function(t){var n=this,i=n.wrapper,r=i[0],o=+i.css($),a=o,s=t&&t.target||null;if(e(b).each(function(t,n){var i=e(n),a=i.css($),s=i.children(x);isNaN(a)||(o=Math.max(+a,o)),n!=r&&s.find("> ."+S).length>0&&s.append(l.overlay)}),(!i[0].style.zIndex||o>a)&&i.css($,o+2),n.element.find("> .k-overlay").remove(),n._shouldFocus(s)){n.element.focus();var u=e(window).scrollTop(),c=parseInt(i.position().top,10);c>0&&u>c&&(u>0?e(window).scrollTop(c):i.css("top",u))}return i=null,n},toggleMaximization:function(){return this._closing?this:this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var t=this,n=t.options,i=n.minHeight,r=t.restoreOptions,o=e(document);return n.isMaximized||n.isMinimized?(i&&i!=1/0&&t.wrapper.css("min-height",i),t.wrapper.css({position:n.pinned?"fixed":"absolute",left:r.left,top:r.top,width:r.width,height:r.height}).removeClass(M).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-restore").parent().remove().end().end().find(j).parent().show().end().end().find(K).parent().show(),t.options.width=r.width,t.options.height=r.height,e("html, body").css(q,""),this._documentScrollTop&&this._documentScrollTop>0&&o.scrollTop(this._documentScrollTop),this._documentScrollLeft&&this._documentScrollLeft>0&&o.scrollLeft(this._documentScrollLeft),n.isMaximized=n.isMinimized=!1,t.resize(),t):t},maximize:r("maximize",function(){var t=this,n=t.wrapper,i=n.position(),r=e(document);m(t.restoreOptions,{left:i.left,top:i.top}),n.css({left:0,top:0,position:"fixed"}).addClass(M),this._documentScrollTop=r.scrollTop(),this._documentScrollLeft=r.scrollLeft(),e("html, body").css(q,O),t.options.isMaximized=!0,t._onDocumentResize()}),minimize:r("minimize",function(){var e=this;e.wrapper.css({height:"",minHeight:""}),e.element.hide(),e.options.isMinimized=!0}),pin:function(t){var n=this,i=e(window),r=n.wrapper,o=parseInt(r.css("top"),10),a=parseInt(r.css("left"),10);(t||!n.options.pinned&&!n.options.isMaximized)&&(r.css({position:"fixed",top:o-i.scrollTop(),left:a-i.scrollLeft()}),r.children(k).find(G).addClass("k-i-unpin").removeClass("k-i-pin"),n.options.pinned=!0)},unpin:function(){var t=this,n=e(window),i=t.wrapper,r=parseInt(i.css("top"),10),o=parseInt(i.css("left"),10);t.options.pinned&&!t.options.isMaximized&&(i.css({position:"",top:r+n.scrollTop(),left:o+n.scrollLeft()}),i.children(k).find(Y).addClass("k-i-pin").removeClass("k-i-unpin"),t.options.pinned=!1)},_onDocumentResize:function(){var t,n,i=this,r=i.wrapper,o=e(window),a=u.support.zoomLevel();i.options.isMaximized&&(t=o.width()/a,n=o.height()/a-parseInt(r.css("padding-top"),10),r.css({width:t,height:n}),i.options.width=t,i.options.height=n,i.resize())},refresh:function(t){var i,r,o,a=this,s=a.options,u=e(a.element);return p(t)||(t={url:t}),t=m({},s.content,t),r=n(s.iframe)?s.iframe:t.iframe,o=t.url,o?(n(r)||(r=!Z(o)),r?(i=u.find("."+S)[0],i?i.src=o||i.src:u.html(l.contentFrame(m({},s,{content:t}))),u.find("."+S).unbind("load"+w).on("load"+w,h(this._triggerRefresh,this))):a._ajaxRequest(t)):(t.template&&a.content(v(t.template)({})),a.trigger(L)),u.toggleClass("k-window-iframecontent",!!r),a},_triggerRefresh:function(){this.trigger(L)},_ajaxComplete:function(){clearTimeout(this._loadingIconTimeout),this.wrapper.find(J).removeClass(D)},_ajaxError:function(e,t){this.trigger(U,{status:t,xhr:e})},_ajaxSuccess:function(e){return function(t){var n=t;e&&(n=v(e)(t||{})),this.content(n,t),this.element.prop("scrollTop",0),this.trigger(L)}},_showLoading:function(){this.wrapper.find(J).addClass(D)},_ajaxRequest:function(t){this._loadingIconTimeout=setTimeout(h(this._showLoading,this),100),e.ajax(m({type:"GET",dataType:"html",cache:!1,error:h(this._ajaxError,this),complete:h(this._ajaxComplete,this),success:h(this._ajaxSuccess(t.template),this)},t))},_destroy:function(){this.resizing&&this.resizing.destroy(),this.dragging&&this.dragging.destroy(),this.wrapper.off(w).children(x).off(w).end().find(".k-resize-handle,.k-window-titlebar").off(w),e(window).off("resize"+w+this._marker),clearTimeout(this._loadingIconTimeout),c.fn.destroy.call(this),this.unbind(t),u.destroy(this.wrapper),this._removeOverlay(!0)},destroy:function(){this._destroy(),this.wrapper.empty().remove(),this.wrapper=this.appendTo=this.element=e()},_createWindow:function(){var t,n,i=this.element,r=this.options,o=u.support.isRtl(i);r.scrollable===!1&&i.attr("style","overflow:hidden;"),n=e(l.wrapper(r)),t=i.find("iframe:not(.k-content)").map(function(){var e=this.getAttribute("src");return this.src="",e}),n.toggleClass("k-rtl",o).appendTo(this.appendTo).append(i).find("iframe:not(.k-content)").each(function(e){this.src=t[e]}),n.find(".k-window-title").css(o?"left":"right",n.find(".k-window-actions").outerWidth()+10),i.css("visibility","").show(),i.find("[data-role=editor]").each(function(){var t=e(this).data("kendoEditor");t&&t.refresh()}),n=i=null}});l={wrapper:v("<div class='k-widget k-window' />"),action:v("<a role='button' href='\\#' class='k-window-action k-link'><span role='presentation' class='k-icon k-i-#= name.toLowerCase() #'>#= name #</span></a>"),titlebar:v("<div class='k-window-titlebar k-header'>&nbsp;<span class='k-window-title'>#= title #</span><div class='k-window-actions' /></div>"),overlay:"<div class='k-overlay' />",contentFrame:v("<iframe frameborder='0' title='#= title #' class='"+S+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),resizeHandle:v("<div class='k-resize-handle k-resize-#= data #'></div>")},a.prototype={addOverlay:function(){this.owner.wrapper.append(l.overlay)},removeOverlay:function(){this.owner.wrapper.find(T).remove()},dragstart:function(t){var n=this,i=n.owner,r=i.wrapper;n.elementPadding=parseInt(r.css("padding-top"),10),n.initialPosition=u.getOffset(r,"position"),n.resizeDirection=t.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),n.initialSize={width:r.width(),height:r.height()},n.containerOffset=u.getOffset(i.appendTo,"position"),r.children(C).not(t.currentTarget).hide(),e(_).css(A,t.currentTarget.css(A))},drag:function(e){var t,n,r,o,a=this,s=a.owner,l=s.wrapper,u=s.options,c=a.resizeDirection,d=a.containerOffset,p=a.initialPosition,f=a.initialSize,h=Math.max(e.x.location,d.left),m=Math.max(e.y.location,d.top);c.indexOf("e")>=0?(t=h-p.left,l.width(i(t,u.minWidth,u.maxWidth))):c.indexOf("w")>=0&&(o=p.left+f.width,t=i(o-h,u.minWidth,u.maxWidth),l.css({left:o-t-d.left,width:t})),c.indexOf("s")>=0?(n=m-p.top-a.elementPadding,l.height(i(n,u.minHeight,u.maxHeight))):c.indexOf("n")>=0&&(r=p.top+f.height,n=i(r-m,u.minHeight,u.maxHeight),l.css({top:r-n-d.top,height:n})),t&&(s.options.width=t+"px"),n&&(s.options.height=n+"px"),s.resize()},dragend:function(t){var n=this,i=n.owner,r=i.wrapper;return r.children(C).not(t.currentTarget).show(),e(_).css(A,""),i.touchScroller&&i.touchScroller.reset(),27==t.keyCode&&r.css(n.initialPosition).css(n.initialSize),i.trigger(B),!1},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},s.prototype={dragstart:function(t){var n=this.owner,i=n.element,r=i.find(".k-window-actions"),o=u.getOffset(n.appendTo);n.trigger(N),n.initialWindowPosition=u.getOffset(n.wrapper,"position"),n.startPosition={left:t.x.client-n.initialWindowPosition.left,top:t.y.client-n.initialWindowPosition.top},n.minLeftPosition=r.length>0?r.outerWidth()+parseInt(r.css("right"),10)-i.outerWidth():20-i.outerWidth(),n.minLeftPosition-=o.left,n.minTopPosition=-o.top,n.wrapper.append(l.overlay).children(C).hide(),e(_).css(A,t.currentTarget.css(A))},drag:function(t){var n=this.owner,i=n.options.position,r=Math.max(t.y.client-n.startPosition.top,n.minTopPosition),o=Math.max(t.x.client-n.startPosition.left,n.minLeftPosition),a={left:o,top:r};e(n.wrapper).css(a),i.top=r,i.left=o},_finishDrag:function(){var t=this.owner;t.wrapper.children(C).toggle(!t.options.isMinimized).end().find(T).remove(),e(_).css(A,"")},dragcancel:function(e){this._finishDrag(),e.currentTarget.closest(b).css(this.owner.initialWindowPosition)},dragend:function(){return this._finishDrag(),this.owner.trigger(W),!1},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},u.ui.plugin(X)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()}),function(e,t){t(["./kendo.core"],e)}(function(){return function(e,t,n){"use strict";function i(e){var t=S;try{return S=function(e){return e()},e()}finally{S=t}}function r(e,i,r,o){i[r]=t.copy(e.$eval(o)),i[r]===n&&o.match(/^\w*$/)&&D.warn(r+" attribute resolved to undefined. Maybe you meant to use a string literal like: '"+o+"'?")}function o(n,i,o,u,c,g){function v(){var g;o.kRebind&&(g=e(e(i)[0].cloneNode(!0)));var v=u.replace(/^kendo/,""),_=t.extend({},o.defaultOptions,n.$eval(o.kOptions||o.options)),w=e(i)[u];if(!w)return window.console.error("Could not find: "+u),null;var x=w.widget.prototype.options,C=w.widget.prototype.events;e.each(o,function(e,t){if("source"!==e&&"kDataSource"!==e&&"kScopeField"!==e){var i="data"+e.charAt(0).toUpperCase()+e.slice(1);if(0===e.indexOf("on")){var o=e.replace(/^on./,function(e){return e.charAt(2).toLowerCase()});C.indexOf(o)>-1&&(_[o]=t)}if(x.hasOwnProperty(i))r(n,_,i,t);else if(x.hasOwnProperty(e)&&!M[e])r(n,_,e,t);else if(!F[e]){var a=e.match(/^k(On)?([A-Z].*)/);if(a){var s=a[2].charAt(0).toLowerCase()+a[2].slice(1);a[1]&&"kOnLabel"!=e?_[s]=t:("kOnLabel"==e&&(s="onLabel"),r(n,_,s,t))}}}});var T=o.kDataSource||o.source;T&&(_.dataSource=I(n,i,v,T)),_.$angular=[n],i.is("select")&&!function(t){if(t.length>0){var n=e(t[0]);!/\S/.test(n.text())&&/^\?/.test(n.val())&&n.remove()}}(i[0].options);var S=w.call(i,k=_).data(u);l(S,n,o,u,c),n.$emit("kendoWidgetCreated",S);var D=f(n,S);if(o.kRebind&&m(S,n,i,g,o.kRebind,D,o),o.kNgDisabled){var E=o.kNgDisabled,O=n.$eval(E);O&&S.enable(!O),a(S,n,i,E)}if(o.kNgReadonly){var A=o.kNgReadonly,H=n.$eval(A);H&&S.readonly(H),s(S,n,i,A)}return o.kNgModel&&p(S,n,o.kNgModel),b&&d(S,n,i,b,y),S&&h(S,i),S}if(!(i instanceof jQuery))throw new Error("The Kendo UI directives require jQuery to be available before AngularJS. Please include jquery before angular in the document.");var _=o.kNgDelay,w=n.$eval(_);g=g||[];var b=g[0],y=g[1];if(_&&!w){var x=n.$root||n,C=function(){var e=n.$watch(_,function(t,n){t!==n&&(e(),i.removeAttr(o.$attr.kNgDelay),_=null,S(v))})};return void(/^\$(digest|apply)$/.test(x.$$phase)?C():n.$apply(C))}return v()}function a(e,t,n,i){return kendo.ui.PanelBar&&e instanceof kendo.ui.PanelBar||kendo.ui.Menu&&e instanceof kendo.ui.Menu?void D.warn("k-ng-disabled specified on a widget that does not have the enable() method: "+e.options.name):void t.$watch(i,function(t,n){t!=n&&e.enable(!t)})}function s(e,t,n,i){return"function"!=typeof e.readonly?void D.warn("k-ng-readonly specified on a widget that does not have the readonly() method: "+e.options.name):void t.$watch(i,function(t,n){t!=n&&e.readonly(t)})}function l(e,t,n,i,r){if(n[r]){var o=T(n[r]).assign;if(!o)throw new Error(r+" attribute used but expression in it is not assignable: "+n[i]);o(t,e)}}function u(e){return/checkbox|radio/i.test(e.attr("type"))?e.prop("checked"):e.val()}function c(e){return E.test(e[0].tagName)}function d(e,t,i,r,o){if(e.value){var a;a=c(i)?function(){return u(i)}:function(){return e.value()},r.$render=function(){var t=r.$viewValue;t===n&&(t=r.$modelValue),t===n&&(t=null),setTimeout(function(){e&&e.value(t)},0)};var s=!1;c(i)&&i.on("change",function(){s=!0});var l=function(e){return function(){var n;s||(s=!1,e&&o&&(n=o.$pristine),r.$setViewValue(a()),e&&(r.$setPristine(),n&&o.$setPristine()),_(t))}};e.first("change",l(!1)),kendo.ui.AutoComplete&&e instanceof kendo.ui.AutoComplete||e.first("dataBound",l(!0));var d=a();d!=r.$viewValue&&(r.$isEmpty(r.$viewValue)?null!=d&&""!==d&&d!=r.$viewValue&&r.$setViewValue(d):e.value(r.$viewValue)),r.$setPristine()}}function p(t,i,r){if("function"!=typeof t.value)return void D.warn("k-ng-model specified on a widget that does not have the value() method: "+t.options.name);var o=e(t.element).parents("form"),a=i[o.attr("name")],s=T(r),l=s.assign,u=!1;t.$angular_setLogicValue(s(i));var c=function(e,i){e===n&&(e=null),u||e!==i&&t.$angular_setLogicValue(e)};kendo.ui.MultiSelect&&t instanceof kendo.ui.MultiSelect?i.$watchCollection(r,c):i.$watch(r,c),t.first("change",function(){u=!0,a&&a.$pristine&&a.$setDirty(),i.$apply(function(){l(i,t.$angular_getLogicValue())}),u=!1})}function f(e,t){var n=e.$on("$destroy",function(){n(),t&&(t.element&&(t=v(t.element),t&&t.destroy()),t=null)});return n}function h(t,n){function i(){a.disconnect()}function r(){a.observe(e(n)[0],{attributes:!0})}if(window.MutationObserver&&t.wrapper){var o=[].slice.call(e(n)[0].classList),a=new MutationObserver(function(n){i(),t&&(n.forEach(function(n){var i=e(t.wrapper)[0];switch(n.attributeName){case"class":var r=[].slice.call(n.target.classList);r.forEach(function(e){o.indexOf(e)<0&&(i.classList.add(e),kendo.ui.ComboBox&&t instanceof kendo.ui.ComboBox&&t.input[0].classList.add(e))}),o.forEach(function(e){r.indexOf(e)<0&&(i.classList.remove(e),kendo.ui.ComboBox&&t instanceof kendo.ui.ComboBox&&t.input[0].classList.remove(e))}),o=r;break;case"disabled":"function"==typeof t.enable&&t.enable(!e(n.target).attr("disabled"));break;case"readonly":"function"==typeof t.readonly&&t.readonly(!!e(n.target).attr("readonly"))}}),r())});r(),t.first("destroy",i)}}function m(t,n,i,r,o,a,s){var l=n.$watch(o,function(o,u){if(o!==u){l();var c=V[t.options.name];c&&c.forEach(function(t){var i=n.$eval(s["k"+t]);i&&r.append(e(i).attr(kendo.toHyphens("k"+t),""))});var d=e(t.wrapper)[0],p=e(t.element)[0],f=i.injector().get("$compile");t._destroy(),a&&a(),t=null,d&&p&&(d.parentNode.replaceChild(p,d),e(i).replaceWith(r)),f(r)(n)}},!0);_(n)}function g(e,n){function i(e,t){x.directive(e,["directiveFactory",function(n){return n.create(t,e)}])}var r=n?"Mobile":"";r+=e.fn.options.name;var o=r,a="kendo"+r.charAt(0)+r.substr(1).toLowerCase();r="kendo"+r;var s=r.replace(/([A-Z])/g,"-$1");if(-1==A.indexOf(r.replace("kendo",""))){var l=r===a?[r]:[r,a];t.forEach(l,function(e){x.directive(e,function(){return{restrict:"E",replace:!0,template:function(e,t){var n=O[o]||"div",i=t.kScopeField;return"<"+n+" "+s+(i?'="'+i+'"':"")+">"+e.html()+"</"+n+">"}}})})}H.indexOf(r.replace("kendo",""))>-1||(i(r,r),a!=r&&i(a,r))}function v(t){return t=e(t),kendo.widgetInstance(t,kendo.ui)||kendo.widgetInstance(t,kendo.mobile.ui)||kendo.widgetInstance(t,kendo.dataviz.ui)}function _(e,t){var n=e.$root||e,i=/^\$(digest|apply)$/.test(n.$$phase);t?i?t():n.$apply(t):i||n.$digest()}function w(t,n){t.$destroy(),n&&e(n).removeData("$scope").removeData("$$kendoScope").removeData("$isolateScope").removeData("$isolateScopeNoTemplate").removeClass("ng-scope")}function b(n,i,r){if(e.isArray(n))return t.forEach(n,function(e){b(e,i,r)});if("string"==typeof n){for(var o=n.split("."),a=kendo;a&&o.length>0;)a=a[o.shift()];if(!a)return z.push([n,i,r]),!1;n=a.prototype}var s=n[i];return n[i]=function(){var e=this,t=arguments;return r.apply({self:e,next:function(){return s.apply(e,arguments.length>0?arguments:t)}},t)},!0}if(t){var y,k,x=t.module("kendo.directives",[]),C=t.injector(["ng"]),T=C.get("$parse"),S=C.get("$timeout"),D=C.get("$log"),I=function(){var e={TreeList:"TreeListDataSource",TreeView:"HierarchicalDataSource",Scheduler:"SchedulerDataSource",PanelBar:"$PLAIN",Menu:"$PLAIN",ContextMenu:"$PLAIN"},t=function(e,t){return"$PLAIN"==t?e:kendo.data[t].create(e)};return function(n,i,r,o){var a=e[r]||"DataSource",s=t(n.$eval(o),a);return n.$watch(o,function(e,n){if(e!==n){var r=t(e,a),o=v(i);o&&"function"==typeof o.setDataSource&&o.setDataSource(r)}}),s}}(),F={kDataSource:!0,kOptions:!0,kRebind:!0,kNgModel:!0,kNgDelay:!0},M={name:!0,title:!0,style:!0},E=/^(input|select|textarea)$/i;x.factory("directiveFactory",["$compile",function(t){var n,i=!1;y=t;var r=function(t,r){return{restrict:"AC",require:["?ngModel","^?form"],scope:!1,controller:["$scope","$attrs","$element",function(e,t,n){var i=this;i.template=function(e,n){t[e]=kendo.stringify(n)},e.$on("$destroy",function(){i.template=null,i=null})}],link:function(a,s,l,u){var c=e(s),d=t.replace(/([A-Z])/g,"-$1");c.attr(d,c.attr("data-"+d)),c[0].removeAttribute("data-"+d);var p=o(a,s,l,t,r,u);p&&(n&&clearTimeout(n),n=setTimeout(function(){a.$emit("kendoRendered"),i||(i=!0,e("form").each(function(){var t=e(this).controller("form");t&&t.$setPristine()}))}))}}};return{create:r}}]);var O={Editor:"textarea",NumericTextBox:"input",DatePicker:"input",DateTimePicker:"input",TimePicker:"input",AutoComplete:"input",ColorPicker:"input",MaskedTextBox:"input",MultiSelect:"input",Upload:"input",Validator:"form",Button:"button",MobileButton:"a",MobileBackButton:"a",MobileDetailButton:"a",ListView:"ul",MobileListView:"ul",TreeView:"ul",Menu:"ul",ContextMenu:"ul",ActionSheet:"ul"},A=["MobileView","MobileLayout","MobileSplitView","MobilePane","MobileModalView"],H=["MobileApplication","MobileView","MobileModalView","MobileLayout","MobileActionSheet","MobileDrawer","MobileSplitView","MobilePane","MobileScrollView","MobilePopOver"];t.forEach(["MobileNavBar","MobileButton","MobileBackButton","MobileDetailButton","MobileTabStrip","MobileScrollView","MobileScroller"],function(e){H.push(e),e="kendo"+e,x.directive(e,function(){return{restrict:"A",link:function(t,n,i,r){o(t,n,i,e,e)}}})}),function(){function e(e){return function(n){t.forEach(n,function(t){t.fn&&t.fn.options&&t.fn.options.name&&/^[A-Z]/.test(t.fn.options.name)&&g(t,e)})}}t.forEach([kendo.ui,kendo.dataviz&&kendo.dataviz.ui],e(!1)),t.forEach([kendo.mobile&&kendo.mobile.ui],e(!0))}();var z=[];b(kendo.ui,"plugin",function(t,n,i){this.next(),z=e.grep(z,function(e){return!b.apply(null,e)}),g(t,"Mobile"==i)}),b(["ui.Widget","mobile.ui.Widget"],"angular",function(r,o){var a=this.self;if("init"==r)return!o&&k&&(o=k),k=null,void(o&&o.$angular&&(a.$angular_scope=o.$angular[0],a.$angular_init(a.element,o)));var s=a.$angular_scope;s&&i(function(){var i=o(),l=i.elements,u=i.data;if(l.length>0)switch(r){case"cleanup":t.forEach(l,function(t){var n=e(t).data("$$kendoScope");n&&n!==s&&n.$$kendoScope&&w(n,t)});break;case"compile":var c=a.element.injector(),d=c?c.get("$compile"):y;t.forEach(l,function(t,r){var o;if(i.scopeFrom)o=i.scopeFrom;else{var a=u&&u[r];a!==n?(o=e.extend(s.$new(),a),o.$$kendoScope=!0):o=s}e(t).data("$$kendoScope",o),d(t)(o)}),_(s)}})}),b("ui.Widget","$angular_getLogicValue",function(){return this.self.value()}),b("ui.Widget","$angular_setLogicValue",function(e){this.self.value(e)}),b("ui.Select","$angular_getLogicValue",function(){var e=this.self.dataItem(),t=this.self.options.dataValueField;return e?this.self.options.valuePrimitive?t?e[t]:e:e.toJSON():null}),b("ui.Select","$angular_setLogicValue",function(e){var t=this.self,i=t.options,r=i.dataValueField,o=i.text||"";e===n&&(e=""),r&&!i.valuePrimitive&&e&&(o=e[i.dataTextField]||"",e=e[r||i.dataTextField]),t.options.autoBind!==!1||t.listView.isBound()?t.value(e):!o&&e&&i.valuePrimitive?t.value(e):t._preselect(e,o)}),b("ui.MultiSelect","$angular_getLogicValue",function(){var t=this.self.dataItems().slice(0),n=this.self.options.dataValueField;return n&&this.self.options.valuePrimitive&&(t=e.map(t,function(e){return e[n]})),t}),b("ui.MultiSelect","$angular_setLogicValue",function(t){null==t&&(t=[]);var n=this.self,i=n.options,r=i.dataValueField,o=t;r&&!i.valuePrimitive&&(t=e.map(t,function(e){return e[r]})),i.autoBind!==!1||i.valuePrimitive||n.listView.isBound()?n.value(t):n._preselect(o,t)}),b("ui.AutoComplete","$angular_getLogicValue",function(){for(var e=this.self.options,t=this.self.value().split(e.separator),n=e.valuePrimitive,i=this.self.dataSource.data(),r=[],o=0,a=i.length;a>o;o++)for(var s=i[o],l=e.dataTextField?s[e.dataTextField]:s,u=0;u<t.length;u++)if(l===t[u]){r.push(n?l:s.toJSON());break}return r}),b("ui.AutoComplete","$angular_setLogicValue",function(t){null==t&&(t=[]);var n=this.self,i=n.options.dataTextField;i&&!n.options.valuePrimitive&&(t=e.map(t,function(e){return e[i]})),n.value(t)}),b("ui.Widget","$angular_init",function(t,n){var i=this.self;if(n&&!e.isArray(n))for(var r=i.$angular_scope,o=i.events.length;--o>=0;){var a=i.events[o],s=n[a];s&&"string"==typeof s&&(n[a]=i.$angular_makeEventHandler(a,r,s))}}),b("ui.Widget","$angular_makeEventHandler",function(e,t,n){return n=T(n),function(e){_(t,function(){n(t,{kendoEvent:e})})}}),b(["ui.Grid","ui.ListView","ui.TreeView"],"$angular_makeEventHandler",function(e,n,i){return"change"!=e?this.next():(i=T(i),function(e){var r,o,a,s,l,u,c=e.sender,d=c.options,p={kendoEvent:e};t.isString(d.selectable)&&(r=-1!==d.selectable.indexOf("cell"),o=-1!==d.selectable.indexOf("multiple")),a=p.selected=this.select(),s=p.data=[],l=p.columns=[];for(var f=0;f<a.length;f++){var h=r?a[f].parentNode:a[f],m=c.dataItem(h);r?(t.element.inArray(m,s)<0&&s.push(m),u=t.element(a[f]).index(),t.element.inArray(u,l)<0&&l.push(u)):s.push(m)}o||(p.dataItem=p.data=s[0],p.selected=a[0]),_(n,function(){i(n,p)})})}),b("ui.Grid","$angular_init",function(i,r){if(this.next(),r.columns){var o=e.extend({},kendo.Template,r.templateSettings);t.forEach(r.columns,function(e){!e.field||e.template||e.format||e.values||e.encoded!==n&&!e.encoded||(e.template="<span ng-bind='"+kendo.expr(e.field,"dataItem")+"'>#: "+kendo.expr(e.field,o.paramName)+"#</span>")})}}),b("mobile.ui.ButtonGroup","value",function(e){var t=this.self;return null!=e&&(t.select(t.element.children("li.km-button").eq(e)),t.trigger("change"),t.trigger("select",{index:t.selectedIndex})),t.selectedIndex}),b("mobile.ui.ButtonGroup","_select",function(){this.next(),this.self.trigger("change")}),x.directive("kendoMobileApplication",function(){return{terminal:!0,link:function(e,t,n,i){o(e,t,n,"kendoMobileApplication","kendoMobileApplication")}}}).directive("kendoMobileView",function(){return{scope:!0,link:{pre:function(e,t,n,i){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileView","kendoMobileView")},post:function(e,t,n){n._instance._layout(),n._instance._scroller()}}}}).directive("kendoMobileDrawer",function(){return{scope:!0,link:{pre:function(e,t,n,i){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileDrawer","kendoMobileDrawer")},post:function(e,t,n){n._instance._layout(),n._instance._scroller()}}}}).directive("kendoMobileModalView",function(){return{scope:!0,link:{pre:function(e,t,n,i){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileModalView","kendoMobileModalView")},post:function(e,t,n){n._instance._layout(),n._instance._scroller()}}}}).directive("kendoMobileSplitView",function(){return{terminal:!0,link:{pre:function(e,t,n,i){n.defaultOptions=e.viewOptions,n._instance=o(e,t,n,"kendoMobileSplitView","kendoMobileSplitView")},post:function(e,t,n){n._instance._layout()}}}}).directive("kendoMobilePane",function(){return{terminal:!0,link:{pre:function(e,t,n,i){n.defaultOptions=e.viewOptions,o(e,t,n,"kendoMobilePane","kendoMobilePane")}}}}).directive("kendoMobileLayout",function(){return{link:{pre:function(e,t,n,i){o(e,t,n,"kendoMobileLayout","kendoMobileLayout")}}}}).directive("kendoMobileActionSheet",function(){return{restrict:"A",link:function(t,n,i,r){n.find("a[k-action]").each(function(){e(this).attr("data-"+kendo.ns+"action",e(this).attr("k-action"))}),o(t,n,i,"kendoMobileActionSheet","kendoMobileActionSheet")}}}).directive("kendoMobilePopOver",function(){return{terminal:!0,link:{pre:function(e,t,n,i){n.defaultOptions=e.viewOptions,o(e,t,n,"kendoMobilePopOver","kendoMobilePopOver")}}}}).directive("kendoViewTitle",function(){return{restrict:"E",replace:!0,template:function(e,t){return"<span data-"+kendo.ns+"role='view-title'>"+e.html()+"</span>"}}}).directive("kendoMobileHeader",function(){return{restrict:"E",link:function(e,t,n,i){t.addClass("km-header").attr("data-role","header")}}}).directive("kendoMobileFooter",function(){return{restrict:"E",link:function(e,t,n,i){t.addClass("km-footer").attr("data-role","footer")}}}).directive("kendoMobileScrollViewPage",function(){return{restrict:"E",replace:!0,template:function(e,t){return"<div data-"+kendo.ns+"role='page'>"+e.html()+"</div>"}}}),t.forEach(["align","icon","rel","transition","actionsheetContext"],function(e){var t="k"+e.slice(0,1).toUpperCase()+e.slice(1);x.directive(t,function(){return{restrict:"A",priority:2,link:function(n,i,r){i.attr(kendo.attr(kendo.toHyphens(e)),n.$eval(r[t]))}}})});var V={TreeMap:["Template"],MobileListView:["HeaderTemplate","Template"],MobileScrollView:["EmptyTemplate","Template"],Grid:["AltRowTemplate","DetailTemplate","RowTemplate"],ListView:["EditTemplate","Template","AltTemplate"],Pager:["SelectTemplate","LinkTemplate"],PivotGrid:["ColumnHeaderTemplate","DataCellTemplate","RowHeaderTemplate"],Scheduler:["AllDayEventTemplate","DateHeaderTemplate","EventTemplate","MajorTimeHeaderTemplate","MinorTimeHeaderTemplate"],TreeView:["Template"],Validator:["ErrorTemplate"]};!function(){var e={};t.forEach(V,function(n,i){t.forEach(n,function(t){e[t]||(e[t]=[]),e[t].push("?^^kendo"+i)})}),t.forEach(e,function(e,t){var n="k"+t,i=kendo.toHyphens(n);x.directive(n,function(){return{restrict:"A",require:e,terminal:!0,compile:function(t,r){if(""===r[n]){t.removeAttr(i);var o=t[0].outerHTML;return function(r,a,s,l){for(var u;!u&&l.length;)u=l.shift();u?(u.template(n,o),t.remove()):D.warn(i+" without a matching parent widget found. It can be one of the following: "+e.join(", "))}}}}})})}()}}(window.kendo.jQuery,window.angular),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()});