!function(n,t){t(["./kendo.core.min"],n)}(function(){return function(n,t,i){"use strict";function ft(n){var t=h;try{return h=function(n){return n()},n()}finally{h=t}}function v(n,r,u,f){r[u]=t.copy(n.$eval(f)),r[u]===i&&f.match(/^\w*$/)&&e.warn(u+" attribute resolved to undefined. Maybe you meant to use a string literal like: '"+f+"'?")}function u(r,u,f,e,o,s){function p(){var it,rt,s,h,c,ut,y,i,ft,p,w,k,d;return f.kRebind&&(it=n(n(u)[0].cloneNode(!0))),rt=e.replace(/^kendo/,""),s=t.extend({},f.defaultOptions,r.$eval(f.kOptions||f.options)),(h=n(u)[e])?(c=h.widget.prototype.options,ut=h.widget.prototype.events,n.each(f,function(n,t){var f,e,i,u;"source"!==n&&"kDataSource"!==n&&"kScopeField"!==n&&(f="data"+n.charAt(0).toUpperCase()+n.slice(1),0===n.indexOf("on")&&(e=n.replace(/^on./,function(n){return n.charAt(2).toLowerCase()}),ut.indexOf(e)>-1&&(s[e]=t)),c.hasOwnProperty(f)?v(r,s,f,t):c.hasOwnProperty(n)&&!tt[n]?v(r,s,n,t):nt[n]||(i=n.match(/^k(On)?([A-Z].*)/),i&&(u=i[2].charAt(0).toLowerCase()+i[2].slice(1),i[1]&&"kOnLabel"!=n?s[u]=t:("kOnLabel"==n&&(u="onLabel"),v(r,s,u,t)))))}),y=f.kDataSource||f.source,y&&(s.dataSource=g(r,u,rt,y)),s.$angular=[r],u.is("select")&&!function(t){if(t.length>0){var i=n(t[0]);!/\S/.test(i.text())&&/^\?/.test(i.val())&&i.remove()}}(u[0].options),i=h.call(u,l=s).data(e),st(i,r,f,e,o),r.$emit("kendoWidgetCreated",i),ft=at(r,i),f.kRebind&&yt(i,r,u,it,f.kRebind,ft,f),f.kNgDisabled&&(p=f.kNgDisabled,w=r.$eval(p),w&&i.enable(!w),et(i,r,u,p)),f.kNgReadonly&&(k=f.kNgReadonly,d=r.$eval(k),d&&i.readonly(d),ot(i,r,u,k)),f.kNgModel&&lt(i,r,f.kNgModel),a&&ct(i,r,u,a,b),i&&vt(i,u),i):(window.console.error("Could not find: "+e),null)}var c,w,a,b,k,y;if(!(u instanceof jQuery))throw Error("The Kendo UI directives require jQuery to be available before AngularJS. Please include jquery before angular in the document.");return c=f.kNgDelay,w=r.$eval(c),s=s||[],a=s[0],b=s[1],c&&!w?(k=r.$root||r,y=function(){var n=r.$watch(c,function(t,i){t!==i&&(n(),u.removeAttr(f.$attr.kNgDelay),c=null,h(p))})},/^\$(digest|apply)$/.test(k.$$phase)?y():r.$apply(y),i):p()}function et(n,t,r,u){return kendo.ui.PanelBar&&n instanceof kendo.ui.PanelBar||kendo.ui.Menu&&n instanceof kendo.ui.Menu?(e.warn("k-ng-disabled specified on a widget that does not have the enable() method: "+n.options.name),i):(t.$watch(u,function(t,i){t!=i&&n.enable(!t)}),i)}function ot(n,t,r,u){return"function"!=typeof n.readonly?(e.warn("k-ng-readonly specified on a widget that does not have the readonly() method: "+n.options.name),i):(t.$watch(u,function(t,i){t!=i&&n.readonly(t)}),i)}function st(n,t,i,r,u){if(i[u]){var f=s(i[u]).assign;if(!f)throw Error(u+" attribute used but expression in it is not assignable: "+i[r]);f(t,n)}}function ht(n){return/checkbox|radio/i.test(n.attr("type"))?n.prop("checked"):n.val()}function w(n){return it.test(n[0].tagName)}function ct(n,t,r,u,f){var h,s,c,e;n.value&&(h=w(r)?function(){return ht(r)}:function(){return n.value()},u.$render=function(){var t=u.$viewValue;t===i&&(t=u.$modelValue),t===i&&(t=null),setTimeout(function(){n&&n.value(t)},0)},s=!1,w(r)&&r.on("change",function(){s=!0}),c=function(n){return function(){var i;s||(s=!1,n&&f&&(i=f.$pristine),u.$setViewValue(h()),n&&(u.$setPristine(),i&&f.$setPristine()),o(t))}},n.first("change",c(!1)),kendo.ui.AutoComplete&&n instanceof kendo.ui.AutoComplete||n.first("dataBound",c(!0)),e=h(),isNaN(u.$viewValue)||e==u.$viewValue||(u.$isEmpty(u.$viewValue)?null!=e&&""!==e&&e!=u.$viewValue&&u.$setViewValue(e):n.value(u.$viewValue)),u.$setPristine())}function lt(t,r,u){var l,f,h,a,o,c;return"function"!=typeof t.value?(e.warn("k-ng-model specified on a widget that does not have the value() method: "+t.options.name),i):(l=n(t.element).parents("form"),f=r[l.attr("name")],h=s(u),a=h.assign,o=!1,t.$angular_setLogicValue(h(r)),c=function(n,r){n===i&&(n=null),o||n!==r&&t.$angular_setLogicValue(n)},kendo.ui.MultiSelect&&t instanceof kendo.ui.MultiSelect?r.$watchCollection(u,c):r.$watch(u,c),t.first("change",function(){o=!0,f&&f.$pristine&&f.$setDirty(),r.$apply(function(){a(r,t.$angular_getLogicValue())}),o=!1}),i)}function at(n,t){var i=n.$on("$destroy",function(){i(),t&&(t.element&&(t=k(t.element),t&&t.destroy()),t=null)});return i}function vt(t,i){function f(){u.disconnect()}function e(){u.observe(n(i)[0],{attributes:!0})}var r,u;window.MutationObserver&&t.wrapper&&(r=[].slice.call(n(i)[0].classList),u=new MutationObserver(function(i){f(),t&&(i.forEach(function(i){var u,f=n(t.wrapper)[0];switch(i.attributeName){case"class":u=[].slice.call(i.target.classList),u.forEach(function(n){r.indexOf(n)<0&&(f.classList.add(n),kendo.ui.ComboBox&&t instanceof kendo.ui.ComboBox&&t.input[0].classList.add(n))}),r.forEach(function(n){u.indexOf(n)<0&&(f.classList.remove(n),kendo.ui.ComboBox&&t instanceof kendo.ui.ComboBox&&t.input[0].classList.remove(n))}),r=u;break;case"disabled":"function"==typeof t.enable&&t.enable(!n(i.target).attr("disabled"));break;case"readonly":"function"==typeof t.readonly&&t.readonly(!!n(i.target).attr("readonly"))}}),e())}),e(),t.first("destroy",f))}function yt(t,i,r,u,f,e,s){var h=i.$watch(f,function(f,o){var l,c,a,v;f!==o&&(h(),l=p[t.options.name],l&&l.forEach(function(t){var r=i.$eval(s["k"+t]);r&&u.append(n(r).attr(kendo.toHyphens("k"+t),""))}),c=n(t.wrapper)[0],a=n(t.element)[0],v=r.injector().get("$compile"),t._destroy(),e&&e(),t=null,c&&a&&(c.parentNode.replaceChild(a,c),n(r).replaceWith(u)),v(u)(i))},!0);o(i)}function b(n,i){function e(n,t){f.directive(n,["directiveFactory",function(i){return i.create(t,n)}])}var o,u,s,h,r=i?"Mobile":"";r+=n.fn.options.name,o=r,u="kendo"+r.charAt(0)+r.substr(1).toLowerCase(),r="kendo"+r,s=r.replace(/([A-Z])/g,"-$1"),-1==ut.indexOf(r.replace("kendo",""))&&(h=r===u?[r]:[r,u],t.forEach(h,function(n){f.directive(n,function(){return{restrict:"E",replace:!0,template:function(n,t){var i=rt[o]||"div",r=t.kScopeField;return"<"+i+" "+s+(r?'="'+r+'"':"")+">"+n.html()+"<\/"+i+">"}}})})),y.indexOf(r.replace("kendo",""))>-1||(e(r,r),u!=r&&e(u,r))}function k(t){return t=n(t),kendo.widgetInstance(t,kendo.ui)||kendo.widgetInstance(t,kendo.mobile.ui)||kendo.widgetInstance(t,kendo.dataviz.ui)}function o(n,t){var i=n.$root||n,r=/^\$(digest|apply)$/.test(i.$$phase);t?r?t():i.$apply(t):r||i.$digest()}function pt(t,i){t.$destroy(),i&&n(i).removeData("$scope").removeData("$$kendoScope").removeData("$isolateScope").removeData("$isolateScopeNoTemplate").removeClass("ng-scope")}function r(i,u,f){var o,e,s;if(n.isArray(i))return t.forEach(i,function(n){r(n,u,f)});if("string"==typeof i){for(o=i.split("."),e=kendo;e&&o.length>0;)e=e[o.shift()];if(!e)return a.push([i,u,f]),!1;i=e.prototype}return s=i[u],i[u]=function(){var n=this,t=arguments;return f.apply({self:n,next:function(){return s.apply(n,arguments.length>0?arguments:t)}},t)},!0}var f,c,s,h,d,e,l,g,nt,tt,it,rt,ut,y,a,p;t&&(f=t.module("kendo.directives",[]),c=t.injector(["ng"]),s=c.get("$parse"),h=c.get("$timeout"),e=c.get("$log"),g=function(){var t={TreeList:"TreeListDataSource",TreeView:"HierarchicalDataSource",Scheduler:"SchedulerDataSource",PanelBar:"$PLAIN",Menu:"$PLAIN",ContextMenu:"$PLAIN"},n=function(n,t){return"$PLAIN"==t?n:kendo.data[t].create(n)};return function(i,r,u,f){var e=t[u]||"DataSource",o=n(i.$eval(f),e);return i.$watch(f,function(t,i){var f,u;t!==i&&(f=n(t,e),u=k(r),u&&"function"==typeof u.setDataSource&&u.setDataSource(f))}),o}}(),nt={kDataSource:!0,kOptions:!0,kRebind:!0,kNgModel:!0,kNgDelay:!0},tt={name:!0,title:!0,style:!0},it=/^(input|select|textarea)$/i,f.factory("directiveFactory",["$compile",function(t){var i,r,f=!1;return d=t,r=function(t,r){return{restrict:"AC",require:["?ngModel","^?form"],scope:!1,controller:["$scope","$attrs","$element",function(n,t){var i=this;i.template=function(n,i){t[n]=kendo.stringify(i)},n.$on("$destroy",function(){i.template=null,i=null})}],link:function(e,o,s,h){var a,c=n(o),l=t.replace(/([A-Z])/g,"-$1");c.attr(l,c.attr("data-"+l)),c[0].removeAttribute("data-"+l),a=u(e,o,s,t,r,h),a&&(i&&clearTimeout(i),i=setTimeout(function(){e.$emit("kendoRendered"),f||(f=!0,n("form").each(function(){var t=n(this).controller("form");t&&t.$setPristine()}))}))}}},{create:r}}]),rt={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"},ut=["MobileView","MobileLayout","MobileSplitView","MobilePane","MobileModalView"],y=["MobileApplication","MobileView","MobileModalView","MobileLayout","MobileActionSheet","MobileDrawer","MobileSplitView","MobilePane","MobileScrollView","MobilePopOver"],t.forEach(["MobileNavBar","MobileButton","MobileBackButton","MobileDetailButton","MobileTabStrip","MobileScrollView","MobileScroller"],function(n){y.push(n),n="kendo"+n,f.directive(n,function(){return{restrict:"A",link:function(t,i,r){u(t,i,r,n,n)}}})}),function(){function n(n){return function(i){t.forEach(i,function(t){t.fn&&t.fn.options&&t.fn.options.name&&/^[A-Z]/.test(t.fn.options.name)&&b(t,n)})}}t.forEach([kendo.ui,kendo.dataviz&&kendo.dataviz.ui],n(!1)),t.forEach([kendo.mobile&&kendo.mobile.ui],n(!0))}(),a=[],r(kendo.ui,"plugin",function(t,i,u){this.next(),a=n.grep(a,function(n){return!r.apply(null,n)}),b(t,"Mobile"==u)}),r(["ui.Widget","mobile.ui.Widget"],"angular",function(r,u){var f,e=this.self;return"init"==r?(!u&&l&&(u=l),l=null,u&&u.$angular&&(e.$angular_scope=u.$angular[0],e.$angular_init(e.element,u)),i):(f=e.$angular_scope,f&&ft(function(){var h,l,s=u(),c=s.elements,a=s.data;if(c.length>0)switch(r){case"cleanup":t.forEach(c,function(t){var i=n(t).data("$$kendoScope");i&&i!==f&&i.$$kendoScope&&pt(i,t)});break;case"compile":h=e.element.injector(),l=h?h.get("$compile"):d,t.forEach(c,function(t,r){var u,e;s.scopeFrom?u=s.scopeFrom:(e=a&&a[r],e!==i?(u=n.extend(f.$new(),e),u.$$kendoScope=!0):u=f),n(t).data("$$kendoScope",u),l(t)(u)}),o(f)}}),i)}),r("ui.Widget","$angular_getLogicValue",function(){return this.self.value()}),r("ui.Widget","$angular_setLogicValue",function(n){this.self.value(n)}),r("ui.Select","$angular_getLogicValue",function(){var n=this.self.dataItem(),t=this.self.options.dataValueField;return n?this.self.options.valuePrimitive?t?n[t]:n:n.toJSON():null}),r("ui.Select","$angular_setLogicValue",function(n){var t=this.self,r=t.options,f=r.dataValueField,u=r.text||"";n===i&&(n=""),f&&!r.valuePrimitive&&n&&(u=n[r.dataTextField]||"",n=n[f||r.dataTextField]),t.options.autoBind!==!1||t.listView.isBound()?t.value(n):!u&&n&&r.valuePrimitive?t.value(n):t._preselect(n,u)}),r("ui.MultiSelect","$angular_getLogicValue",function(){var t=this.self.dataItems().slice(0),i=this.self.options.dataValueField;return i&&this.self.options.valuePrimitive&&(t=n.map(t,function(n){return n[i]})),t}),r("ui.MultiSelect","$angular_setLogicValue",function(t){var i,r,u,f;null==t&&(t=[]),i=this.self,r=i.options,u=r.dataValueField,f=t,u&&!r.valuePrimitive&&(t=n.map(t,function(n){return n[u]})),r.autoBind!==!1||r.valuePrimitive||i.listView.isBound()?i.value(t):i._preselect(f,t)}),r("ui.AutoComplete","$angular_getLogicValue",function(){for(var n,u,t,i=this.self.options,f=this.self.value().split(i.separator),h=i.valuePrimitive,e=this.self.dataSource.data(),o=[],r=0,s=e.length;s>r;r++)for(n=e[r],u=i.dataTextField?n[i.dataTextField]:n,t=0;f.length>t;t++)if(u===f[t]){o.push(h?u:n.toJSON());break}return o}),r("ui.AutoComplete","$angular_setLogicValue",function(t){null==t&&(t=[]);var i=this.self,r=i.options.dataTextField;r&&!i.options.valuePrimitive&&(t=n.map(t,function(n){return n[r]})),i.value(t)}),r("ui.Widget","$angular_init",function(t,i){var o,e,r,u,f=this.self;if(i&&!n.isArray(i))for(o=f.$angular_scope,e=f.events.length;--e>=0;)r=f.events[e],u=i[r],u&&"string"==typeof u&&(i[r]=f.$angular_makeEventHandler(r,o,u))}),r("ui.Widget","$angular_makeEventHandler",function(n,t,i){return i=s(i),function(n){o(t,function(){i(t,{kendoEvent:n})})}}),r(["ui.Grid","ui.ListView","ui.TreeView"],"$angular_makeEventHandler",function(n,i,r){return"change"!=n?this.next():(r=s(r),function(n){var c,y,f,s,l,a,e,p,h,w=n.sender,v=w.options,u={kendoEvent:n};for(t.isString(v.selectable)&&(c=-1!==v.selectable.indexOf("cell"),y=-1!==v.selectable.indexOf("multiple")),f=u.selected=this.select(),s=u.data=[],l=u.columns=[],e=0;f.length>e;e++)p=c?f[e].parentNode:f[e],h=w.dataItem(p),c?(t.element.inArray(h,s)<0&&s.push(h),a=t.element(f[e]).index(),t.element.inArray(a,l)<0&&l.push(a)):s.push(h);y||(u.dataItem=u.data=s[0],u.selected=f[0]),o(i,function(){r(i,u)})})}),r("ui.Grid","$angular_init",function(r,u){if(this.next(),u.columns){var f=n.extend({},kendo.Template,u.templateSettings);t.forEach(u.columns,function(n){!n.field||n.template||n.format||n.values||n.encoded!==i&&!n.encoded||(n.template="<span ng-bind='"+kendo.expr(n.field,"dataItem")+"'>#: "+kendo.expr(n.field,f.paramName)+"#<\/span>")})}}),r("mobile.ui.ButtonGroup","value",function(n){var t=this.self;return null!=n&&(t.select(t.element.children("li.km-button").eq(n)),t.trigger("change"),t.trigger("select",{index:t.selectedIndex})),t.selectedIndex}),r("mobile.ui.ButtonGroup","_select",function(){this.next(),this.self.trigger("change")}),f.directive("kendoMobileApplication",function(){return{terminal:!0,link:function(n,t,i){u(n,t,i,"kendoMobileApplication","kendoMobileApplication")}}}).directive("kendoMobileView",function(){return{scope:!0,link:{pre:function(n,t,i){i.defaultOptions=n.viewOptions,i._instance=u(n,t,i,"kendoMobileView","kendoMobileView")},post:function(n,t,i){i._instance._layout(),i._instance._scroller()}}}}).directive("kendoMobileDrawer",function(){return{scope:!0,link:{pre:function(n,t,i){i.defaultOptions=n.viewOptions,i._instance=u(n,t,i,"kendoMobileDrawer","kendoMobileDrawer")},post:function(n,t,i){i._instance._layout(),i._instance._scroller()}}}}).directive("kendoMobileModalView",function(){return{scope:!0,link:{pre:function(n,t,i){i.defaultOptions=n.viewOptions,i._instance=u(n,t,i,"kendoMobileModalView","kendoMobileModalView")},post:function(n,t,i){i._instance._layout(),i._instance._scroller()}}}}).directive("kendoMobileSplitView",function(){return{terminal:!0,link:{pre:function(n,t,i){i.defaultOptions=n.viewOptions,i._instance=u(n,t,i,"kendoMobileSplitView","kendoMobileSplitView")},post:function(n,t,i){i._instance._layout()}}}}).directive("kendoMobilePane",function(){return{terminal:!0,link:{pre:function(n,t,i){i.defaultOptions=n.viewOptions,u(n,t,i,"kendoMobilePane","kendoMobilePane")}}}}).directive("kendoMobileLayout",function(){return{link:{pre:function(n,t,i){u(n,t,i,"kendoMobileLayout","kendoMobileLayout")}}}}).directive("kendoMobileActionSheet",function(){return{restrict:"A",link:function(t,i,r){i.find("a[k-action]").each(function(){n(this).attr("data-"+kendo.ns+"action",n(this).attr("k-action"))}),u(t,i,r,"kendoMobileActionSheet","kendoMobileActionSheet")}}}).directive("kendoMobilePopOver",function(){return{terminal:!0,link:{pre:function(n,t,i){i.defaultOptions=n.viewOptions,u(n,t,i,"kendoMobilePopOver","kendoMobilePopOver")}}}}).directive("kendoViewTitle",function(){return{restrict:"E",replace:!0,template:function(n){return"<span data-"+kendo.ns+"role='view-title'>"+n.html()+"<\/span>"}}}).directive("kendoMobileHeader",function(){return{restrict:"E",link:function(n,t){t.addClass("km-header").attr("data-role","header")}}}).directive("kendoMobileFooter",function(){return{restrict:"E",link:function(n,t){t.addClass("km-footer").attr("data-role","footer")}}}).directive("kendoMobileScrollViewPage",function(){return{restrict:"E",replace:!0,template:function(n){return"<div data-"+kendo.ns+"role='page'>"+n.html()+"<\/div>"}}}),t.forEach(["align","icon","rel","transition","actionsheetContext"],function(n){var t="k"+n.slice(0,1).toUpperCase()+n.slice(1);f.directive(t,function(){return{restrict:"A",priority:2,link:function(i,r,u){r.attr(kendo.attr(kendo.toHyphens(n)),i.$eval(u[t]))}}})}),p={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 n={};t.forEach(p,function(i,r){t.forEach(i,function(t){n[t]||(n[t]=[]),n[t].push("?^^kendo"+r)})}),t.forEach(n,function(n,t){var i="k"+t,r=kendo.toHyphens(i);f.directive(i,function(){return{restrict:"A",require:n,terminal:!0,compile:function(t,u){if(""===u[i]){t.removeAttr(r);var f=t[0].outerHTML;return function(u,o,s,h){for(var c;!c&&h.length;)c=h.shift();c?(c.template(i,f),t.remove()):e.warn(r+" without a matching parent widget found. It can be one of the following: "+n.join(", "))}}}}})})}())}(window.kendo.jQuery,window.angular),window.kendo},"function"==typeof define&&define.amd?define:function(n,t){t()})