!function(n,t){t("kendo.core.min",["jquery"],n)}(function(){return function(n,t,i){function nt(){}function nu(n,t){if(t)return"'"+n.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var i=n.charAt(0),r=n.substring(1);return"="===i?"+("+r+")+":":"===i?"+$kendoHtmlEncode("+r+")+":";"+n+";$kendoOutput+="}function f(n,t,i){return n+="",t=t||2,i=t-n.length,i?vi[t].substring(0,i)+n:n}function tu(n){var u=n.css(r.support.transitions.css+"box-shadow")||n.css("box-shadow"),t=u?u.match(ku)||[0,0,0,0,0]:[0,0,0,0,0],i=l.max(+t[3],+(t[4]||0));return{left:-t[1]+i,right:+t[1]+i,bottom:+t[2]+i}}function iu(i,u){var l,e,o,h,c,a,s=r._outerWidth,v=r._outerHeight,f=i.parent(),y=s(t);return f.removeClass("k-animation-container-sm"),f.hasClass("k-animation-container")?dt(i,u):(e=i[0].style.width,o=i[0].style.height,h=et.test(e),c=et.test(o),a=i.hasClass("k-tooltip")||i.is(".k-menu-horizontal.k-context-menu"),l=h||c,!h&&(!u||u&&e||a)&&(e=u?s(i)+1:s(i)),(!c&&(!u||u&&o)||i.is(".k-menu-horizontal.k-context-menu"))&&(o=v(i)),i.wrap(n("
").addClass("k-animation-container").css({width:e,height:o})),f=i.parent(),l&&i.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})),y-1)return!0;var t=ti(n,["overflow"]).overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1}function ii(t,r){var f,e,o=u.browser.webkit,h=u.browser.mozilla,s=u.browser.version;return t instanceof n&&r!==i?(t.each(function(n,t){ii(t,r)}),i):(f=t instanceof n?t[0]:t)?(e=u.isRtl(t),r===i?e&&o&&(s<85||u.browser.safari)?f.scrollWidth-f.clientWidth-f.scrollLeft:Math.abs(f.scrollLeft):(f.scrollLeft=e&&o&&(s<85||u.browser.safari)?f.scrollWidth-f.clientWidth-r:e&&(h||o)&&r>0?-r:r,i)):i}function fu(n){var t,i=0;for(t in n)n.hasOwnProperty(t)&&"toJSON"!=t&&i++;return i}function eu(n,i,r){var f,e,o;return i||(i="offset"),f=n[i](),e={top:f.top,right:f.right,bottom:f.bottom,left:f.left},u.browser.msie&&(u.pointers||u.msPointers)&&!r&&(o=u.isRtl(n)?1:-1,e.top-=t.pageYOffset-document.documentElement.scrollTop,e.left-=t.pageXOffset+o*document.documentElement.scrollLeft),e}function ou(n){var t={};return rt("string"==typeof n?n.split(" "):n,function(n){t[n]=this}),t}function su(n){return new r.effects.Element(n)}function hu(n,t,i,r){return typeof n===o&&(d(t)&&(r=t,t=400,i=!1),d(i)&&(r=i,i=!1),typeof t===br&&(i=t,t=400),n={effects:n,duration:t,reverse:i,complete:r}),h({effects:{},duration:400,reverse:!1,init:ut,teardown:ut,hide:!1},n,{completeCallback:n.complete,complete:ut})}function ri(t,i,r,u,f){for(var e,o=0,s=t.length;o-1||t.is(":visible")}function pu(n,t){var i=n.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(i)?!n.disabled:"a"===i?n.href||t:t)&&wu(n)}function wu(t){return n.expr.pseudos.visible(t)&&!n(t).parents().addBack().filter(function(){return"hidden"===n.css(this,"visibility")}).length}function s(n,t){return new s.fn.init(n,t)}var v,d,fi,ei,it,oi,si,hi,ci,li,ai,vi,yi,y,pi,wi,bi,ki,di,lt,gi,nr,p,at,tr,ir,rr,ur,vt,yt,pt,fr,e,w,er,wt,g,or,sr,a,hr,cr,lr,ar,vr,yr,pr,r=t.kendo=t.kendo||{cultures:{}},h=n.extend,rt=n.each,wr=Array.isArray,bt=n.proxy,ut=n.noop,l=Math,ft=t.JSON||{},u={},et=/%/,bu=/\{(\d+)(:[^\}]+)?\}/g,ku=/(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+)?/i,du=/^(\+|-?)\d+(\.?)\d*$/,c="function",o="string",b="number",k="object",ot="null",br="boolean",st="undefined",kr={},dr={},kt=[].slice,gr=function(){var u,e,t,r,o,s,n=arguments[0]||{},f=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[f]||{},f++),"object"!=typeof n&&"function"!=typeof n&&(n={}),f===c&&(n=this,f--);f=0;r--)u[r]!==t&&u[r].original!==t||u.splice(r,1);else f._events[n]=[];return f}});oi=/^\w+/;si=/\$\{([^}]*)\}/g;hi=/\\\}/g;ci=/__CURLY__/g;li=/\\#/g;ai=/__SHARP__/g;vi=["","0","00","000","0000"];v={paramName:"data",useWithBlock:!0,render:function(n,t){for(var u="",i=0,r=t.length;i99&&(r=l.floor(r/10)),r=f(r)):"fff"===t?r=f(n.getMilliseconds(),3):"tt"===t?r=n.getHours()<12?u.AM[0]:u.PM[0]:"zzz"===t?(s=n.getTimezoneOffset(),h=s<0,r=(""+l.abs(s/60)).split(".")[0],s=l.abs(s)-60*r,r=(h?"+":"-")+f(r),r+=":"+f(s)):"zz"!==t&&"z"!==t||(r=n.getTimezoneOffset()/60,h=r<0,r=(""+l.abs(r)).split(".")[0],r=(h?"+":"-")+("zz"===t?f(r):r)),r!==i?r:t.slice(1,t.length-1)})}function g(n,r,f){var y,lt,ct,at,vt,yt,et,st,pt,gt,d,ot,p,wt,ei,bt,nt,o,ut,b,ni,ti,g,c,l,kt,ii,ui,ri,oi,ft,ht,fi,dt;if(f=a(f),y=f.numberFormat,lt=y[u],ct=y.decimals,at=y.pattern[0],vt=[],d=n<0,bt=t,nt=t,ft=-1,n===i)return t;if(!isFinite(n))return n;if(!r)return f.name.length?n.toLocaleString():""+n;if(gt=tt.exec(r)){if(r=gt[1].toLowerCase(),et="c"===r,st="p"===r,(et||st)&&(y=et?y.currency:y.percent,lt=y[u],ct=y.decimals,yt=y.symbol,at=y.pattern[d?0:1]),pt=gt[2],pt&&(ct=+pt),"e"===r)return fi=pt?n.toExponential(ct):n.toExponential(),fi.replace(u,y[u]);if(st&&(n*=100),n=e(n,ct),d=n<0,n=n.split(u),ot=n[0],p=n[1],d&&(ot=ot.substring(1)),nt=v(ot,0,ot.length,y),p&&(nt+=lt+p),"n"===r&&!d)return nt;for(n=t,o=0,ut=at.length;o-1||r.indexOf('"')>-1||r.indexOf("\\")>-1)&&(r=r.replace(it,function(n){var t=n.charAt(0).replace("\\",""),i=n.slice(1).replace(t,"");return vt.push(i),k})),r=r.split(";"),d&&r[1])r=r[1],ti=!0;else if(0===n&&r[2]){if(r=r[2],r.indexOf(h)==-1&&r.indexOf(s)==-1)return r}else r=r[0];if(ui=r.indexOf("%"),ri=r.indexOf("$"),st=ui!=-1,et=ri!=-1,st&&(n*=100),et&&"\\"===r[ri-1]&&(r=r.split("\\").join(""),et=!1),(et||st)&&(y=et?y.currency:y.percent,lt=y[u],ct=y.decimals,yt=y.symbol),ni=r.indexOf(w)>-1,ni&&(r=r.replace(rt,t)),g=r.indexOf(u),ut=r.length,g!=-1)if(p=(""+n).split("e"),p=p[1]?e(n,Math.abs(p[1])):p[0],p=p.split(u)[1]||t,l=r.lastIndexOf(s)-g,c=r.lastIndexOf(h)-g,kt=l>-1,ii=c>-1,o=p.length,kt||ii||(r=r.substring(0,g)+r.substring(g+1),ut=r.length,g=-1,o=0),kt&&l>c)o=l;else if(c>l)if(ii&&o>c){for(dt=e(n,c,d);dt.charAt(dt.length-1)===s&&c>0&&c>l;)c--,dt=e(n,c,d);o=c}else kt&&ol?l:c,c=r.lastIndexOf(h),l=r.lastIndexOf(s),ht=c==-1&&l!=-1?l:c!=-1&&l==-1?c:c>l?c:l,ft==ut&&(ht=ft),ft!=-1){for(nt=(""+n).split(u),ot=nt[0],p=nt[1]||t,wt=ot.length,ei=p.length,d&&n*-1>=0&&(d=!1),n=r.substring(0,ft),d&&!ti&&(n+="-"),o=ft;o-1&&(n+=ot,o=g),g===o){n+=(p?lt:t)+p;o+=ht-g+1;continue}b===s?(n+=b,bt=b):b===h&&(n+=bt)}if(ni&&(n=v(n,ft+(d&&!ti?1:0),Math.max(ht,wt+ft),y)),ht>=ft&&(n+=r.substring(ht+1)),et||st){for(nt=t,o=0,ut=n.length;o=s){for(e=c,h=[];e>-1;)if(l=o.substring(e-s,e),l&&h.push(l),e-=s,a=y.shift(),s=a!==i?a:s,0===s){e>0&&h.push(o.substring(0,e));break}o=h.reverse().join(f[w]);n=n.substring(0,t)+o+n.substring(r)}return n};e=function(n,t,i){return t=t||0,n=(""+n).split("e"),n=Math.round(+(n[0]+"e"+(n[1]?+n[1]+t:t))),i&&(n=-n),n=(""+n).split("e"),n=+(n[0]+"e"+(n[1]?+n[1]-t:-t)),n.toFixed(Math.min(t,20))};y=function(n,t,r){if(t){if("[object Date]"===ut.call(n))return d(n,t,r);if(typeof n===b)return g(n,t,r)}return n!==i?n:""};r.format=function(n){var t=arguments;return n.replace(bu,function(n,i,r){var u=t[parseInt(i,10)+1];return y(u,r?r.substring(1):"")})};r._extractFormat=function(n){return"{0:"===n.slice(0,3)&&(n=n.slice(3,n.length-1)),n};r._activeElement=function(){try{return document.activeElement}catch(n){return document.documentElement.activeElement}};r._round=e;r._outerWidth=function(t,i){return n(t).outerWidth(i||!1)||0};r._outerHeight=function(t,i){return n(t).outerHeight(i||!1)||0};r.toString=y}(),function(){function t(n,t,i){return!(n>=t&&n<=i)}function a(n){return n.charAt(0)}function u(t){return n.map(t,a)}function v(n,t){t||23!==n.getHours()||n.setHours(n.getHours()+2)}function y(n){for(var t=0,r=n.length,i=[];t0&&(ot-=1),t},rt=function(t){var r=c[t]||RegExp("^\\d{1,"+t+"}"),i=n.substr(p,t).match(r);return i?(i=i[0],p+=i.length,parseInt(i,10)):null},at=function(t,i){for(var o,r,u,f=0,h=t.length,e=0,s=0;fe&&(e=r,s=f);return e?(p+=e,s+1):null},vt=function(){var t=!1;return n.charAt(p)===e[ot]&&(p++,t=!0),t},w=o.calendars.standard,a=null,ut=null,d=null,l=null,et=null,st=null,it=null,ot=0,p=0,kt=!1,dt=new Date,yt=w.twoDigitYearMax||2029,ht=dt.getFullYear();for(e||(e="d"),pt=w.patterns[e],pt&&(e=pt),e=e.split(""),gt=e.length;ot2)continue;if(d=h<3?rt(2):at(w._lowerDays[3==h?"namesAbbr":"names"],!0),null===d||t(d,1,31))return null}else if("M"===y){if(h=tt("M"),w._lowerMonths||(w._lowerMonths=f(w.months)),ut=h<3?rt(2):at(w._lowerMonths[3==h?"namesAbbr":"names"],!0),null===ut||t(ut,1,12))return null;ut-=1}else if("y"===y){if(h=tt("y"),a=rt(h),null===a)return null;2==h&&("string"==typeof yt&&(yt=ht+parseInt(yt,10)),a=ht-ht%100+a,a>yt&&(a-=100))}else if("h"===y){if(tt("h"),l=rt(2),12==l&&(l=0),null===l||t(l,0,11))return null}else if("H"===y){if(tt("H"),l=rt(2),null===l||t(l,0,23))return null}else if("m"===y){if(tt("m"),et=rt(2),null===et||t(et,0,59))return null}else if("s"===y){if(tt("s"),st=rt(2),null===st||t(st,0,59))return null}else if("f"===y){if(h=tt("f"),ti=n.substr(p,h).match(c[3]),it=rt(h),null!==it&&(it=parseFloat("0."+ti[0],10),it=r._round(it,3),it*=1e3),null===it||t(it,0,999))return null}else if("t"===y){if(h=tt("t"),ct=w.AM,lt=w.PM,1===h&&(ct=u(ct),lt=u(lt)),wt=at(lt),!wt&&!at(ct))return null}else if("z"===y){if(bt=!0,h=tt("z"),"Z"===n.substr(p,1)){vt();continue}if((ft=n.substr(p,6).match(h>2?nt:g),!ft)||(ft=ft[0].split(":"),b=ft[0],k=ft[1],!k&&b.length>3&&(p=b.length-2,k=b.substring(p),b=b.substring(0,p)),b=parseInt(b,10),t(b,-12,13))||h>2&&(k=ft[0][0]+k,k=parseInt(k,10),isNaN(k)||t(k,-59,59)))return null}else if("'"===y)kt=!0,vt();else if(!vt())return null;return s&&!/^\s*$/.test(n.substr(p))?null:(ni=null!==l||null!==et||st||null,null===a&&null===ut&&null===d&&ni?(a=ht,ut=dt.getMonth(),d=dt.getDate()):(null===a&&(a=ht),null===d&&(d=1)),wt&&l<12&&(l+=12),bt?(b&&(l+=-b),k&&(et+=-k),n=new Date(Date.UTC(a,ut,d,l,et,st,it))):(n=new Date(a,ut,d,l,et,st,it),v(n,l)),a<100&&n.setFullYear(a),n.getDate()!==d&&bt===i?null:n)}function w(n){var t="-"===n.substr(0,1)?-1:1;return n=n.substring(1),n=60*parseInt(n.substr(0,2),10)+parseInt(n.substring(2),10),t*n}function k(n){for(var u,i,f=l.max(s.length,h.length),e=n.calendar||n.calendars.standard,o=e.patterns,r=[],t=0;t0?null:(e=e>-1,n.indexOf(s)>-1||i&&i.toLowerCase().indexOf("c")>-1?(u=l,f=u.pattern[0].replace("$",s).split("n"),n.indexOf(f[0])>-1&&n.indexOf(f[1])>-1&&(n=n.replace(f[0],"").replace(f[1],""),e=!0)):n.indexOf(a)>-1&&(h=!0,u=c,s=a),n=n.replace("-","").replace(s,"").replace(o," ").split(u[","].replace(o," ")).join("").replace(u["."],"."),n=parseFloat(n),isNaN(n)?n=null:e&&(n*=-1),n&&h&&(n/=100),n)}}(),function(){var c,s,h,l,e,r,f,a,v,y,p;u._scrollbar=i;u.scrollbar=function(n){if(isNaN(u._scrollbar)||n){var i,t=document.createElement("div");return t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),u._scrollbar=i=t.offsetWidth-t.scrollWidth,document.body.removeChild(t),i}return u._scrollbar};u.isRtl=function(t){return n(t).closest(".k-rtl").length>0};c=document.createElement("table");try{c.innerHTML="<\/td><\/tr>";u.tbodyInnerHtml=!0}catch(w){u.tbodyInnerHtml=!1}u.touch="ontouchstart"in t;s=document.documentElement.style;h=u.transitions=!1;l=u.transforms=!1;e="HTMLElement"in t?HTMLElement.prototype:[];u.hasHW3D="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix||"MozPerspective"in s||"msPerspective"in s;u.cssFlexbox="flexWrap"in s||"WebkitFlexWrap"in s||"msFlexWrap"in s;rt(["Moz","webkit","O","ms"],function(){var n,t=""+this,i=typeof c.style[t+"Transition"]===o;if(i||typeof c.style[t+"Transform"]===o)return n=t.toLowerCase(),l={css:"ms"!=n?"-"+n+"-":"",prefix:t,event:"o"===n||"webkit"===n?n:""},i&&(h=l,h.event=h.event?h.event+"TransitionEnd":"transitionend"),!1});c=null;u.transforms=l;u.transitions=h;u.devicePixelRatio=t.devicePixelRatio===i?1:t.devicePixelRatio;try{u.screenWidth=t.outerWidth||t.screen?t.screen.availWidth:t.innerWidth;u.screenHeight=t.outerHeight||t.screen?t.screen.availHeight:t.innerHeight}catch(w){u.screenWidth=t.screen.availWidth;u.screenHeight=t.screen.availHeight}u.detectOS=function(n){var f,r,i=!1,e=[],s=!/mobile safari/i.test(n),o={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/},h={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/},c={tablet:/playbook|ipad|fire/i},l={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(r in o)if(o.hasOwnProperty(r)&&(e=n.match(o[r]))){if("windows"==r&&"plugins"in navigator)return!1;i={};i.device=r;i.tablet=ht(r,c,!1);i.browser=ht(n,l,"default");i.name=ht(r,h);i[i.name]=!0;i.majorVersion=e[2];i.minorVersion=(e[3]||"0").replace("_",".");f=i.minorVersion.replace(".","").substr(0,2);i.flatVersion=i.majorVersion+f+Array(3-(f.length<3?f.length:2)).join("0");i.cordova=typeof t.PhoneGap!==st||typeof t.cordova!==st;i.appMode=t.navigator.standalone||/file|local|wmapp/.test(t.location.protocol)||i.cordova;i.android&&(u.devicePixelRatio<1.5&&i.flatVersion<400||s)&&(u.screenWidth>800||u.screenHeight>800)&&(i.tablet=r);break}return i};r=u.mobileOS=u.detectOS(navigator.userAgent);u.wpDevicePixelRatio=r.wp?screen.width/320:0;u.hasNativeScrolling=!1;(r.ios||r.android&&r.majorVersion>2||r.wp)&&(u.hasNativeScrolling=r);u.delayedClick=function(){if(u.touch){if(r.ios)return!0;if(r.android)return!u.browser.chrome||!(u.browser.version<32)&&!(n("meta[name=viewport]").attr("content")||"").match(/user-scalable=no/i)}return!1};u.mouseAndTouchPresent=u.touch&&!(u.mobileOS.ios||u.mobileOS.android);u.detectBrowser=function(n){var i,t=!1,r=[],u={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(i in u)if(u.hasOwnProperty(i)&&(r=n.match(u[i]))){t={};t[i]=!0;t[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0;t.version=parseInt(document.documentMode||r[2],10);break}return t};u.browser=u.detectBrowser(navigator.userAgent);u.detectClipboardAccess=function(){var n={copy:!!document.queryCommandSupported&&document.queryCommandSupported("copy"),cut:!!document.queryCommandSupported&&document.queryCommandSupported("cut"),paste:!!document.queryCommandSupported&&document.queryCommandSupported("paste")};return u.browser.chrome&&(n.paste=!1,u.browser.version>=43&&(n.copy=!0,n.cut=!0)),n};u.clipboard=u.detectClipboardAccess();u.zoomLevel=function(){var n,r,i;try{return n=u.browser,r=0,i=document.documentElement,n.msie&&11==n.version&&i.scrollHeight>i.clientHeight&&!u.touch&&(r=u.scrollbar()),u.touch?i.clientWidth/t.innerWidth:n.msie&&n.version>=10?((top||t).document.documentElement.offsetWidth+r)/(top||t).innerWidth:1}catch(f){return 1}},function(t){var i="",r=n(document.documentElement),f=parseInt(t.version,10);t.msie?i="ie":t.mozilla?i="ff":t.safari?i="safari":t.webkit?i="webkit":t.opera?i="opera":t.edge&&(i="edge");i&&(i="k-"+i+" k-"+i+f);u.mobileOS&&(i+=" k-mobile");u.cssFlexbox||(i+=" k-no-flexbox");r.addClass(i)}(u.browser);u.eventCapture=document.documentElement.addEventListener;f=document.createElement("input");u.placeholder="placeholder"in f;u.propertyChangeEvent="onpropertychange"in f;u.input=function(){for(var n,i=["number","date","time","month","week","datetime","datetime-local"],e=i.length,r="test",u={},t=0;tt.field?1:n.field/g;lt=function(n){return n.target};u.touch&&(lt=function(n){var t="originalEvent"in n?n.originalEvent.changedTouches:"changedTouches"in n?n.changedTouches:null;return t?document.elementFromPoint(t[0].clientX,t[0].clientY):n.target},rt(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(t,i){n.fn[i]=function(n){return this.on(i,n)}}));u.touch?u.mobileOS?(u.mousedown="touchstart",u.mouseup="touchend",u.mousemove="touchmove",u.mousecancel="touchcancel",u.click="touchend",u.resize="orientationchange"):(u.mousedown="mousedown touchstart",u.mouseup="mouseup touchend",u.mousemove="mousemove touchmove",u.mousecancel="mouseleave touchcancel",u.click="click",u.resize="resize"):u.pointers?(u.mousemove="pointermove",u.mousedown="pointerdown",u.mouseup="pointerup",u.mousecancel="pointercancel",u.click="pointerup",u.resize="orientationchange resize"):u.msPointers?(u.mousemove="MSPointerMove",u.mousedown="MSPointerDown",u.mouseup="MSPointerUp",u.mousecancel="MSPointerCancel",u.click="MSPointerUp",u.resize="orientationchange resize"):(u.mousemove="mousemove",u.mousedown="mousedown",u.mouseup="mouseup",u.mousecancel="mouseleave",u.click="click",u.resize="resize");gi=function(n,t){for(var r,i,o=t||"d",e=1,u=0,f=n.length;u0||t.height>0)&&(!i||t.width!==i.width||t.height!==i.height))&&(this._size=t,this._resize(t,n),this.trigger("resize",t))},getSize:function(){return r.dimensions(this.element)},size:function(n){return n?(this.setSize(n),i):this.getSize()},setSize:n.noop,_resize:n.noop,destroy:function(){var n=this;n.element.removeData("kendo"+n.options.prefix+n.options.name);n.element.removeData("handler");n.unbind()},_destroy:function(){this.destroy()},angular:function(){},_muteAngularRebind:function(n){this._muteRebind=!0;n.call(this);this._muteRebind=!1}});at=p.extend({dataItems:function(){return this.dataSource.flatView()},_angularItems:function(t){var i=this;i.angular(t,function(){return{elements:i.items(),data:n.map(i.dataItems(),function(n){return{dataItem:n}})}})}});r.dimensions=function(n,t){var i=n[0];return t&&n.css(t),{width:i.offsetWidth,height:i.offsetHeight}};r.notify=ut;tr=/template$/i;ir=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/;rr=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]+\]$/;ur=/([A-Z])/g;r.initWidget=function(u,f,e){var h,p,s,v,d,c,w,l,b,g,y,k,a;if(e?e.roles&&(e=e.roles):e=r.ui.roles,u=u.nodeType?u:u[0],c=u.getAttribute("data-"+r.ns+"role")){b=c.indexOf(".")===-1;s=b?e[c]:r.getter(c)(t);y=n(u).data();k=s?"kendo"+s.fn.options.prefix+s.fn.options.name:"";g=b?RegExp("^kendo.*"+c+"$","i"):RegExp("^"+k+"$","i");for(a in y)if(a.match(g)){if(a!==k)return y[a];h=y[a]}if(s){for(l=ct(u,"dataSource"),f=n.extend({},ui(u,n.extend({},s.fn.options,s.fn.defaults)),f),l&&(f.dataSource=typeof l===o?r.getter(l)(t):l),v=0,d=s.fn.events.length;v{1}<\/span>
<\/div>
<\/div><\/div>",c,r.ui.progress.messages.loading)).width(u.width).height(u.height).css("top",u.top).css(s,Math.abs(o)+h).prependTo(t)):f&&f.remove()},plugin:function(t,u,f){var l,h,s,a,e=t.fn.options.name;for(u=u||r.ui,f=f||"",u[e]=t,u.roles[e.toLowerCase()]=t,l="getKendo"+f+e,e="kendo"+f+e,h={name:e,widget:t,prefix:f||""},r.widgets.push(h),s=0,a=r._widgetRegisteredCallbacks.length;s=0&&(e=[r.getter(u)(t)]),f=0,o=e.length;f-1)}});pt=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"];fr="label, input, [data-rel=external]";e={setupMouseMute:function(){var i,t=0,r=pt.length,f=document.documentElement;if(!e.mouseTrap&&u.eventCapture)for(e.mouseTrap=!0,e.bustClick=!1,e.captureMouse=!1,i=function(t){e.captureMouse&&("click"===t.type?e.bustClick&&!n(t.target).is(fr)&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};t-1&&this[0]!==document.documentElement&&(e.setupMouseMute(),h=2===n.length?null:n[1],c=i.indexOf("click")>-1&&i.indexOf("touchend")>-1,g.call(this,{touchstart:e.muteMouse,touchend:e.unMuteMouse},h,{bustClick:c})),arguments[0].indexOf("keydown")!==-1&&n[1]&&n[1].options?(n[0]=i,l=n[1],a=n[n.length-1],n[n.length-1]=function(n){if(r.keyDownHandler(n,l))return a.apply(this,[n])},g.apply(t,n),t):(typeof f===o&&(s=t.data("handler"),f=s[f],n[n.length-1]=function(n){f.call(s,n)}),n[0]=i,g.apply(t,n),t))},kendoDestroy:function(n){return n=n||this.data("kendoNS"),n&&this.off("."+n),this}});r.jQuery=s;r.eventMap=w;r.timezone=function(){function i(i,r){var u,o,s,c=r[3],e=r[4],f=r[5],h=r[8];return h||(r[8]=h={}),h[i]?h[i]:(isNaN(e)?0===e.indexOf("last")?(u=new Date(Date.UTC(i,n[c]+1,1,f[0]-24,f[1],f[2],0)),o=t[e.substr(4,3)],s=u.getUTCDay(),u.setUTCDate(u.getUTCDate()+o-s-(o>s?7:0))):e.indexOf(">=")>=0?(u=new Date(Date.UTC(i,n[c],e.substr(5),f[0],f[1],f[2],0)),o=t[e.substr(0,3)],s=u.getUTCDay(),u.setUTCDate(u.getUTCDate()+o-s+(o=0&&(u=new Date(Date.UTC(i,n[c],e.substr(5),f[0],f[1],f[2],0)),o=t[e.substr(0,3)],s=u.getUTCDay(),u.setUTCDate(u.getUTCDate()+o-s-(o>s?7:0))):u=new Date(Date.UTC(i,n[c],e,f[0],f[1],f[2],0)),h[i]=u)}function f(n,t,r){var f,e,u,o;return(t=t[r])?(u=new Date(n).getUTCFullYear(),t=jQuery.grep(t,function(n){var i=n[0],t=n[1];return i<=u&&(t>=u||i==u&&"only"==t||"max"==t)}),t.push(n),t.sort(function(n,t){return"number"!=typeof n&&(n=+i(u,n)),"number"!=typeof t&&(t=+i(u,t)),n-t}),o=t[jQuery.inArray(n,t)-1]||t[t.length-1],isNaN(o)?o:null):(f=r.split(":"),e=0,f.length>1&&(e=60*f[0]+ +f[1]),[-1e6,"max","-","Jan",1,[0,0,0],e,"-"])}function e(n,t,i){var u,f,e,r=t[i];if("string"==typeof r&&(r=t[r]),!r)throw Error('Timezone "'+i+'" is either incorrect, or kendo.timezones.min.js is not included.');for(u=r.length-1;u>=0&&(f=r[u][3],!(f&&n>f));u--);if(e=r[u+1],!e)throw Error('Timezone "'+i+'" not found on '+n+".");return e}function u(n,t,i,r){typeof n!=b&&(n=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));var u=e(n,t,r);return{zone:u,rule:f(n,i,u[1])}}function s(n,t){var i,f,e;return"Etc/UTC"==t||"Etc/GMT"==t?0:(i=u(n,this.zones,this.rules,t),f=i.zone,e=i.rule,r.parseFloat(e?f[0]-e[6]:f[0]))}function h(n,t){var f=u(n,this.zones,this.rules,t),e=f.zone,i=f.rule,r=e[2];return r.indexOf("/")>=0?r.split("/")[i&&+i[6]?1:0]:r.indexOf("%s")>=0?r.replace("%s",i&&"-"!=i[7]?i[7]:""):r}function c(n,t,i){var u,f,e,r=i;return typeof t==o&&(t=this.offset(n,t)),typeof i==o&&(i=this.offset(n,i)),f=n.getTimezoneOffset(),n=new Date(n.getTime()+6e4*(t-i)),e=n.getTimezoneOffset(),typeof r==o&&(r=this.offset(n,r)),u=e-f+(i-r),new Date(n.getTime()+6e4*u)}function l(n,t){return this.convert(n,n.getTimezoneOffset(),t)}function a(n,t){return this.convert(n,t,n.getTimezoneOffset())}function v(n){return this.apply(new Date(n),"Etc/UTC")}var n={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},t={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};return{zones:{},rules:{},offset:s,convert:c,apply:l,remove:a,abbr:h,toLocalDate:v}}();r.date=function(){function u(n,t){return 0===t&&23===n.getHours()&&(n.setHours(n.getHours()+2),!0)}function c(n,t,i){var r=n.getHours();i=i||1;t=(t-n.getDay()+7*i)%7;n.setDate(n.getDate()+t);u(n,r)}function l(n,t,i){return n=new Date(n),c(n,t,i),n}function a(n){return new Date(n.getFullYear(),n.getMonth(),1)}function w(n){var t=new Date(n.getFullYear(),n.getMonth()+1,0),i=a(n),r=Math.abs(t.getTimezoneOffset()-i.getTimezoneOffset());return r&&t.setHours(i.getHours()+r/60),t}function b(n){return new Date(n.getFullYear(),0,1)}function k(n){return new Date(n.getFullYear(),11,31)}function d(t,i){return 1!==i?n(l(t,i,-1),4):n(t,4-(t.getDay()||7))}function o(n,i){var r=new Date(n.getFullYear(),0,1,-6),u=d(n,i),f=u.getTime()-r.getTime(),e=Math.floor(f/t);return 1+Math.floor(e/7)}function g(t,u){var e,s,f;return u===i&&(u=r.culture().calendar.firstDay),e=n(t,-7),s=n(t,7),f=o(t,u),0===f?o(e,u)+1:53===f&&o(s,u)>1?1:f}function f(n){return n=new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0),u(n,0),n}function nt(n){return Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function e(n){return s(n).getTime()-f(s(n))}function tt(n,i,r){var u,f=e(i),o=e(r);return!n||f==o||(i>=r&&(r+=t),u=e(n),f>u&&(u+=t),o=f&&u<=o)}function it(n,i,r){var u,e=i.getTime(),f=r.getTime();return e>=f&&(f+=t),u=n.getTime(),u>=e&&u<=f}function n(n,i){var r=n.getHours();return n=new Date(n),v(n,i*t),u(n,r),n}function v(n,t,i){var r,u=n.getTimezoneOffset();n.setTime(n.getTime()+t);i||(r=n.getTimezoneOffset()-u,n.setTime(n.getTime()+r*h))}function rt(n,t){return n=new Date(n.getFullYear(),n.getMonth(),n.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),u(n,t.getHours()),n}function y(){return f(new Date)}function ut(n){return f(n).getTime()==y().getTime()}function s(n){var t=new Date(1980,1,1,0,0,0);return n&&t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t}function p(n,t){var i=new Date(n);return new Date(i.setFullYear(i.getFullYear()+t))}var h=6e4,t=864e5;return{adjustDST:u,dayOfWeek:l,setDayOfWeek:c,getDate:f,isInDateRange:it,isInTimeRange:tt,isToday:ut,nextDay:function(t){return n(t,1)},previousDay:function(t){return n(t,-1)},toUtcTime:nt,MS_PER_DAY:t,MS_PER_HOUR:60*h,MS_PER_MINUTE:h,setTime:v,setHours:rt,addDays:n,today:y,toInvariantTime:s,firstDayOfMonth:a,lastDayOfMonth:w,weekInYear:g,getMilliseconds:e,firstDayOfYear:b,lastDayOfYear:k,nextYear:function(n){return p(n,1)},previousYear:function(n){return p(n,-1)}}}();r.stripWhitespace=function(n){var t,u,i;if(document.createNodeIterator)for(t=document.createNodeIterator(n,NodeFilter.SHOW_TEXT,function(t){return t.parentNode==n?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},!1);t.nextNode();)t.referenceNode&&!t.referenceNode.textContent.trim()&&t.referenceNode.parentNode.removeChild(t.referenceNode);else for(u=0;ut?u():r=setTimeout(u,t-e),i):u()},u.cancel=function(){clearTimeout(r)},u)};r.caret=function(t,r,f){var e,o,s,h,l,c=r!==i;if(f===i&&(f=r),t[0]&&(t=t[0]),!c||!t.disabled){try{t.selectionStart!==i?c?(t.focus(),o=u.mobileOS,o.wp||o.android?setTimeout(function(){t.setSelectionRange(r,f)},0):t.setSelectionRange(r,f)):r=[t.selectionStart,t.selectionEnd]:document.selection&&(n(t).is(":visible")&&t.focus(),e=t.createTextRange(),c?(e.collapse(!0),e.moveStart("character",r),e.moveEnd("character",f-r),e.select()):(s=e.duplicate(),e.moveToBookmark(document.selection.createRange().getBookmark()),s.setEndPoint("EndToStart",e),h=s.text.length,l=h+e.text.length,r=[h,l]))}catch(a){r=[]}return r}};r.compileMobileDirective=function(n,i){var u=t.angular;return n.attr("data-"+r.ns+"role",n[0].tagName.toLowerCase().replace("kendo-mobile-","").replace("-","")),u.element(n).injector().invoke(["$compile",function(t){t(n)(i);/^\$(digest|apply)$/.test(i.$$phase)||i.$digest()}]),r.widgetInstance(n,r.mobile.ui)};r.antiForgeryTokens=function(){var t={},r=n("meta[name=csrf-token],meta[name=_csrf]").attr("content"),u=n("meta[name=csrf-param],meta[name=_csrf_header]").attr("content");return n("input[name^='__RequestVerificationToken']").each(function(){t[this.name]=this.value}),u!==i&&r!==i&&(t[u]=r),t};r.cycleForm=function(n){function t(n){var t=r.widgetInstance(n);t&&t.focus?t.focus():n.trigger("focus")}var i=n.find("input, .k-widget").first(),u=n.find("button, .k-button").last();u.on("keydown",function(n){n.keyCode!=r.keys.TAB||n.shiftKey||(n.preventDefault(),t(i))});i.on("keydown",function(n){n.keyCode==r.keys.TAB&&n.shiftKey&&(n.preventDefault(),t(u))})};r.focusElement=function(i){var u=[],f=i.parentsUntil("body").filter(function(n,t){var i=r.getComputedStyles(t,["overflow"]);return"visible"!==i.overflow}).add(t);f.each(function(t,i){u[t]=n(i).scrollTop()});try{i[0].setActive()}catch(e){i[0].focus()}f.each(function(t,i){n(i).scrollTop(u[t])})};r.focusNextElement=function(){var t,i,r;document.activeElement&&(t=n(":kendoFocusable"),i=t.index(document.activeElement),i>-1&&(r=t[i+1]||t[0],r.focus()))};r.trim=function(n){return n?(""+n).trim():""};r.getWidgetFocusableElement=function(t){var u=t.closest(":kendoFocusable"),i=r.widgetInstance(t);return u.length?u:i?"Editor"===i.options.name?n(i.body):i.wrapper.find(":kendoFocusable").first():t};r.addAttribute=function(n,t,i){var r=n.attr(t)||"";r.indexOf(i)<0&&n.attr(t,(r+" "+i).trim())};r.removeAttribute=function(n,t,i){var r=n.attr(t)||"";n.attr(t,r.replace(i,"").trim())};r.toggleAttribute=function(n,t,i){var u=n.attr(t)||"";u.indexOf(i)<0?r.addAttribute(n,t,i):r.removeAttribute(n,t,i)};r.matchesMedia=function(n){var i=r._bootstrapToMedia(n)||n;return u.matchMedia&&t.matchMedia(i).matches};r._bootstrapToMedia=function(n){return{xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[n]};r.fileGroupMap={audio:[".aif",".iff",".m3u",".m4a",".mid",".mp3",".mpa",".wav",".wma",".ogg",".wav",".wma",".wpl"],video:[".3g2",".3gp",".avi",".asf",".flv",".m4u",".rm",".h264",".m4v",".mkv",".mov",".mp4",".mpg",".rm",".swf",".vob",".wmv"],image:[".ai",".dds",".heic",".jpe","jfif",".jif",".jp2",".jps",".eps",".bmp",".gif",".jpeg",".jpg",".png",".ps",".psd",".svg",".svgz",".tif",".tiff"],txt:[".doc",".docx",".log",".pages",".tex",".wpd",".wps",".odt",".rtf",".text",".txt",".wks"],presentation:[".key",".odp",".pps",".ppt",".pptx"],data:[".xlr",".xls",".xlsx"],programming:[".tmp",".bak",".msi",".cab",".cpl",".cur",".dll",".dmp",".drv",".icns",".ico",".link",".sys",".cfg",".ini",".asp",".aspx",".cer",".csr",".css",".dcr",".htm",".html",".js",".php",".rss",".xhtml"],pdf:[".pdf"],config:[".apk",".app",".bat",".cgi",".com",".exe",".gadget",".jar",".wsf"],zip:[".7z",".cbr",".gz",".sitx",".arj",".deb",".pkg",".rar",".rpm",".tar.gz",".z",".zip",".zipx"],"disc-image":[".dmg",".iso",".toast",".vcd",".bin",".cue",".mdf"]};r.getFileGroup=function(n,t){var u,e,o=r.fileGroupMap,f=Object.keys(o),s="file";if(n===i||!n.length)return s;for(u=0;u-1)return t?"file-"+f[u]:f[u];return s};r.getFileSizeMessage=function(n){var t;return 0===n?"0 Byte":(t=parseInt(Math.floor(Math.log(n)/Math.log(1024)),10),Math.round(n/Math.pow(1024,t),2)+" "+["Bytes","KB","MB","GB","TB"][t])};r.selectorFromClasses=function(n){return"."+n.split(" ").join(".")};hr=["primary","secondary","tertiary","inherit","info","success","warning","error","dark","light","inverse"];cr=["solid","outline","flat"];lr=["edge","outside","inside"];ar=["circle","rectangle","rounded","dot","pill"];vr=[["small","sm"],["medium","md"],["large","lg"]];yr=[["top start","top-start"],["top end","top-end"],["bottom start","bottom-start"],["bottom end","bottom-end"]];pr=["fixed","static","sticky","absolute"];r.propertyToCssClassMap={};r.registerCssClass=function(n,t,i){r.propertyToCssClassMap[n]||(r.propertyToCssClassMap[n]={});r.propertyToCssClassMap[n][t]=i||t};r.registerCssClasses=function(n,t){for(var i=0;i").attr({action:u,method:"POST",target:f}),e=r.antiForgeryTokens();e.fileName=i;s=t.split(";base64,");e.contentType=s[0].replace("data:","");e.base64=s[1];for(o in e)e.hasOwnProperty(o)&&n("").attr({value:e[o],name:o,type:"hidden"}).appendTo(h);h.appendTo("body").submit().remove()}function f(n,t){var u,e,r,f,i,o=n;if("string"==typeof n){for(u=n.split(";base64,"),e=u[0],r=atob(u[1]),f=new Uint8Array(r.length),i=0;i<\/div>
<\/div>
<\/div>
<\/div>
<\/div>
<\/div>'),i=[];return t.appendTo(n("body")),t.each(function(t,r){i.push(n(r).css("background-color"))}),t.remove(),i};r.isElement=function(n){return n instanceof Element||n instanceof HTMLDocument},function(){r.defaults=r.defaults||{};r.setDefaults=function(n,t){var f=n.split("."),u=r.defaults;n=f.pop();f.forEach(function(n){u[n]===i&&(u[n]={});u=u[n]});u[n]=t.constructor===Object?tt({},u[n],t):t}}(),function(){r.class2type={};jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){r.class2type["[object "+t+"]"]=t.toLowerCase()});r.type=function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?r.class2type[Object.prototype.toString.call(n)]||"object":typeof n}}()}(jQuery,window),window.kendo},"function"==typeof define&&define.amd?define:function(n,t,i){(i||t)()}),function(n,t){t("kendo.router.min",["kendo.core.min"],n)}(function(){return function(n,t){function e(n,t){if(!t)return n;n+"/"===t&&(n=t);var i=RegExp("^"+t,"i");return i.test(n)||(n=t+"/"+n),r.protocol+"//"+(r.host+"/"+n).replace(/\/\/+/g,"/")}function c(n){return n?"#!":"#"}function l(n){var t=r.href;return"#!"===n&&t.indexOf("#")>-1&&t.indexOf("#!")<0?null:t.split(n)[1]||""}function o(n,t){return 0===t.indexOf(n)?t.substr(n.length).replace(/\/\//g,"/"):t}function k(n){return n.replace(/^(#)?/,"#")}function d(n){return n.replace(/^(#(!)?)?/,"#!")}var i=window.kendo,f="change",g="back",a="same",v=i.support,r=window.location,u=window.history,nt=50,y=i.support.browser.msie,tt=/^#*/,s=window.document,h=i.Class.extend({back:function(){y?setTimeout(function(){u.back()}):u.back()},forward:function(){y?setTimeout(function(){u.forward()}):u.forward()},length:function(){return u.length},replaceLocation:function(n){r.replace(n)}}),p=h.extend({init:function(n){this.root=n},navigate:function(n){u.pushState({},s.title,e(n,this.root))},replace:function(n){u.replaceState({},s.title,e(n,this.root))},normalize:function(n){return o(this.root,n)},current:function(){var n=r.pathname;return r.search&&(n+=r.search),o(this.root,n)},change:function(t){n(window).bind("popstate.kendo",t)},stop:function(){n(window).unbind("popstate.kendo")},normalizeCurrent:function(n){var t,i=n.root,f=r.pathname,o=l(c(n.hashBang));i===f+"/"&&(t=i);i===f&&o&&(t=e(o.replace(tt,""),i));t&&u.pushState({},s.title,t)}}),w=h.extend({init:function(n){this._id=i.guid();this.prefix=c(n);this.fix=n?d:k},navigate:function(n){r.hash=this.fix(n)},replace:function(n){this.replaceLocation(this.fix(n))},normalize:function(n){return n.indexOf(this.prefix)<0?n:n.split(this.prefix)[1]},change:function(t){v.hashChange?n(window).on("hashchange."+this._id,t):this._interval=setInterval(t,nt)},stop:function(){n(window).off("hashchange."+this._id);clearInterval(this._interval)},current:function(){return l(this.prefix)},normalizeCurrent:function(n){var i=r.pathname,t=n.root;return!(!n.pushState||t===i)&&(this.replaceLocation(t+this.prefix+o(t,i)),!0)}}),b=i.Observable.extend({start:function(t){if(t=t||{},this.bind([f,g,a],t),!this._started){this._started=!0;t.root=t.root||"/";var r,i=this.createAdapter(t);i.normalizeCurrent(t)||(r=i.current(),n.extend(this,{adapter:i,root:t.root,historyLength:i.length(),current:r,locations:[r]}),i.change(n.proxy(this,"_checkUrl")))}},createAdapter:function(n){return v.pushState&&n.pushState?new p(n.root):new w(n.hashBang)},stop:function(){this._started&&(this.adapter.stop(),this.unbind(f),this._started=!1)},change:function(n){this.bind(f,n)},replace:function(n,t){this._navigate(n,t,function(t){t.replace(n);this.locations[this.locations.length-1]=this.current})},navigate:function(n,i){return"#:back"===n?(this.backCalled=!0,this.adapter.back(),t):(this._navigate(n,i,function(t){t.navigate(n);this.locations.push(this.current)}),t)},_navigate:function(n,i,r){var u=this.adapter;return n=u.normalize(n),this.current===n||this.current===decodeURIComponent(n)?(this.trigger(a),t):(!i&&this.trigger(f,{url:n,decode:!1})||(this.current=n,r.call(this,u),this.historyLength=u.length()),t)},_checkUrl:function(){var i=this.adapter,n=i.current(),e=i.length(),o=this.historyLength===e,r=n===this.locations[this.locations.length-2]&&o,s=this.backCalled,u=this.current;return null===n||this.current===n||this.current===decodeURIComponent(n)||(this.historyLength=e,this.backCalled=!1,this.current=n,r&&this.trigger("back",{url:u,to:n})?(i.forward(),this.current=u,t):this.trigger(f,{url:n,backButtonPressed:!s})?(r?i.forward():(i.back(),this.historyLength--),this.current=u,t):(r?this.locations.pop():this.locations.push(n),t))}});i.History=b;i.History.HistoryAdapter=h;i.History.HashAdapter=w;i.History.PushStateAdapter=p;i.absoluteURL=e;i.history=new b}(window.kendo.jQuery),function(){function h(n,t){return t?n:"([^/]+)"}function c(n,t){return RegExp("^"+n.replace(y,"\\$&").replace(l,"(?:$1)?").replace(a,h).replace(v,"(.*?)")+"$",t?"i":"")}function f(n){return n.replace(/(\?.*)|(#.*)/g,"")}var n=window.kendo,t=n.history,e=n.Observable,o="init",s="routeMissing",i="change",r="back",u="same",l=/\((.*?)\)/g,a=/(\(\?)?:\w+/g,v=/\*\w+/g,y=/[\-{}\[\]+?.,\\\^$|#\s]/g,p=n.Class.extend({init:function(n,t,i){n instanceof RegExp||(n=c(n,i));this.route=n;this._callback=t},callback:function(t,i,r){var u,o,e=0,s=n.parseQueryStringParams(t);if(s._back=i,t=f(t),u=this.route.exec(t).slice(1),o=u.length,r)for(;e3?"substringof"!==n?u="{0}({2},"+u+")":(u="{0}("+u+",{2})","doesnotcontain"===e&&(r?(u="{0}({2},'{1}') eq -1",n="indexof"):u+=" eq false")):u="{2} {0} "+u,n=i.format(u,n,o,f))),l.push(n);return n=l.join(" "+w+" "),l.length>1&&(n="("+n+")"),n}function c(n){for(var t in n)0===t.indexOf("@odata")&&delete n[t]}function e(){return Math.floor(65536*(1+Math.random())).toString(16).substr(1)}function f(n){return n+e()+"-"+e()+"-"+e()}function o(n,t){var i=r+"--"+n;return t&&(i+="--"),i}function p(n,t,r,u){var f=n.options[u].url,e=i.format("{0} ",r);return a(f)?e+f(t):e+f}function w(n,t){var i="";return i+=o(n,!1),i+=r+"Content-Type: application/http",i+=r+"Content-Transfer-Encoding: binary",i+(r+"Content-ID: "+t)}function b(n){var t="";return t+=r+"Content-Type: application/json;odata=minimalmetadata",t+=r+"Prefer: return=representation",t+(l+i.stringify(n))}function k(n,t,i,u,f,e){for(var s="",o=0;o=200&&o<=299?(s=e.match(/\{.*\}/gm),s&&t[t.length-1].models.push(JSON.parse(s[0]))):t[t.length-1].passed=!1);return t}var i=window.kendo,u=n.extend,r="\r\n",l="\r\n\r\n",a=i.isFunction,v={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",doesnotcontain:"substringof",endswith:"endswith",startswith:"startswith",isnull:"eq",isnotnull:"ne",isnullorempty:"eq",isnotnullorempty:"ne",isempty:"eq",isnotempty:"ne"},tt=u({},v,{contains:"contains"}),y={pageSize:n.noop,page:n.noop,filter:function(n,t,i){t&&(t=h(t,i),t&&(n.$filter=t))},sort:function(t,i){var r=n.map(i,function(n){var t=n.field.replace(/\./g,"/");return"desc"===n.dir&&(t+=" desc"),t}).join(",");r&&(t.$orderby=r)},skip:function(n,t){t&&(n.$skip=t)},take:function(n,t){t&&(n.$top=t)}},it={read:{dataType:"jsonp"}};u(!0,i.data,{schemas:{odata:{type:"json",data:function(n){return n.d.results||[n.d]},total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonp:"$callback"},update:{cache:!0,dataType:"json",contentType:"application/json",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(n,t,r){var f,o,u,e;if(n=n||{},t=t||"read",e=(this.options||it)[t],e=e?e.dataType:"json","read"===t){f={$inlinecount:"allpages"};"json"!=e&&(f.$format="json");for(u in n)y[u]?y[u](f,n[u],r):f[u]=n[u]}else{if("json"!==e)throw Error("Only json dataType can be used for "+t+" operation.");if("destroy"!==t){for(u in n)o=n[u],"number"==typeof o&&(n[u]=o+"");f=i.stringify(n)}}return f}}}});u(!0,i.data,{schemas:{"odata-v4":{type:"json",data:function(t){if(Array.isArray(t)){for(var i=0;i=0?n.replace(/\.?(@.*)/,t?"$1":'["$1"]'):n.indexOf("text()")>=0?n.replace(/(\.?text\(\))/,t?"#text":'["#text"]'):n):""},getter:function(n){return h(this.xpathToMember(n),!0)}});n.extend(!0,i.data,{XmlDataReader:e,readers:{xml:e}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(n,t,i){(i||t)()}),function(n,t){t("kendo.data.min",["kendo.core.min","kendo.data.odata.min","kendo.data.xml.min"],n)}(function(){return function(n,t){function ti(n,t,i,r){return function(u){var o,e={};for(o in u)e[o]=u[o];e.field=r?i+"."+u.field:i;t==f&&n._notifyChange&&n._notifyChange(e);n.trigger(t,e)}}function bi(n,t){var r,u,i=[];for(n=n||{},r=Object.getOwnPropertyNames(n),u=hu.filter(function(n){return r.indexOf(n)<0});n;)Object.getOwnPropertyNames(n).forEach(function(n){i.indexOf(n)===-1&&(!t||u.indexOf(n)<0)&&i.push(n)}),n=Object.getPrototypeOf(n);return i}function ki(n,t){if(n===t)return!0;var u,r=i.type(n),f=i.type(t);if(r!==f)return!1;if("date"===r)return n.getTime()===t.getTime();if("object"!==r&&"array"!==r)return!1;for(u in n)if(!ki(n[u],t[u]))return!1;return!0}function cu(n,t){var i;for(var r in n)if((i=n[r],g(i)&&i.field&&i.field===t)||i===t)return i;return null}function r(n){this.data=n||[]}function ut(n,i){if(n){var r=typeof n===o?{field:n,dir:i}:n,u=c(r)?r:r!==t?[r]:[];return gu(u,function(n){return!!n.dir})}}function di(n,i){var u,f,r,e={};if(n)for(u=typeof n===o?{field:n,dir:i}:n,f=c(u)?u:u!==t?[u]:[],r=0;rt.field?1:n.field=t.length)););e0&&(i=this[t--]);t>=0;t--)i=n(i,this[t],t,this);return i},filter:function(n,t){for(var r,i=0,u=[],f=this.length,e=t||window;i=0;if(e)for(r=n.split("."),u="";r.length>1;){if(u+=r.shift(),f=i.getter(u,!0)(o),f instanceof s)return f.set(r.join("."),t),e;u+="."}return i.setter(n)(o,t),e},set:function(n,t){var r=this,e=!1,o=n.indexOf(".")>=0,u=i.getter(n,!0)(r);return u!==t&&(u instanceof nt&&this._handlers[n]&&(this._handlers[n].get&&u.unbind(dt,this._handlers[n].get),u.unbind(f,this._handlers[n].change)),e=r.trigger("set",{field:n,value:t}),e||(o||(t=r.wrap(t,n,function(){return r})),(!r._set(n,t)||n.indexOf("(")>=0||n.indexOf("[")>=0)&&r.trigger(f,{field:n}))),e},parent:a,wrap:function(n,t,i){var c,r,e,o,u=this,h=ni.call(n);return null==n||"[object Object]"!==h&&"[object Array]"!==h||(e=n instanceof y,o=n instanceof l,"[object Object]"!==h||o||e?("[object Array]"===h||e||o)&&(e||o||(n=new y(n)),r=ti(u,f,t,!1),n.bind(f,r),u._handlers[t]={change:r}):(n instanceof s||(n=new s(n)),c=ti(u,dt,t,!0),n.bind(dt,c),r=ti(u,f,t,!0),n.bind(f,r),u._handlers[t]={get:c,change:r}),n.parent=i),n}});ei={number:function(n){return typeof n===o&&"null"===n.toLowerCase()?null:i.parseFloat(n)},date:function(n){return typeof n===o&&"null"===n.toLowerCase()?null:i.parseDate(n)},boolean:function(n){return typeof n===o?"null"===n.toLowerCase()?null:"true"===n.toLowerCase():null!=n?!!n:n},string:function(n){return typeof n===o&&"null"===n.toLowerCase()?null:null!=n?n+"":n},"default":function(n){return n}};gr={string:"",number:0,date:new Date,boolean:!1,"default":""};v=s.extend({init:function(i){var u,f,r=this;if((!i||n.isEmptyObject(i))&&(i=n.extend({},r.defaults,i),r._initializers))for(u=0;u0&&(r._initializers=w),s=n.extend(r),s.define=function(n){return v.define(s,n)},r.fields&&(s.fields=r.fields,s.idField=r.idField),s};et={selector:function(n){return h(n)?n:at(n)},compare:function(n){var t=this.selector(n);return function(n,i){return n=t(n),i=t(i),null==n&&null==i?0:null==n?-1:null==i?1:n.localeCompare?n.localeCompare(i):n>i?1:nu?1:-1}},desc:function(n){var t=this.selector(n);return function(n,i){var u=t(n),r=t(i);return u&&u.getTime&&r&&r.getTime&&(u=u.getTime(),r=r.getTime()),u===r?n.__position-i.__position:null==u?1:null==r?-1:r.localeCompare?r.localeCompare(u):u=0?"\\"+t:t}r=!1}return i+"$/"}return{quote:function(n){return n&&n.getTime?"new Date("+n.getTime()+")":i(n)},eq:function(n,i,r,u){return t("==",n,i,r,u)},neq:function(n,i,r,u){return t("!=",n,i,r,u)},gt:function(n,i,r){return t(">",n,i,r)},gte:function(n,i,r){return t(">=",n,i,r)},lt:function(n,i,r){return t("<",n,i,r)},lte:function(n,i,r){return t("<=",n,i,r)},startswith:n(function(n,t){return n+".lastIndexOf("+t+", 0) == 0"}),doesnotstartwith:n(function(n,t){return n+".lastIndexOf("+t+", 0) == -1"}),endswith:n(function(n,t){var i=t?t.length-2:0;return n+".indexOf("+t+", "+n+".length - "+i+") >= 0"}),doesnotendwith:n(function(n,t){var i=t?t.length-2:0;return n+".indexOf("+t+", "+n+".length - "+i+") < 0"}),contains:n(function(n,t){return n+".indexOf("+t+") >= 0"}),doesnotcontain:n(function(n,t){return n+".indexOf("+t+") == -1"}),matches:n(function(n,t){return t=t.substring(1,t.length-1),r(t)+".test("+n+")"}),doesnotmatch:n(function(n,t){return t=t.substring(1,t.length-1),"!"+r(t)+".test("+n+")"}),isempty:function(n){return n+" === ''"},isnotempty:function(n){return n+" !== ''"},isnull:function(n){return"("+n+" == null)"},isnotnull:function(n){return"("+n+" != null)"},isnullorempty:function(n){return"("+n+" === null) || ("+n+" === '')"},isnotnullorempty:function(n){return"("+n+" !== null) && ("+n+" !== '')"}}}();r.filterExpr=function(n){for(var u,f,h,c,a=[],e=[],o=[],v=n.filters,s=0,l=v.length;s":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte",notsubstringof:"doesnotcontain",isnull:"isnull",isempty:"isempty",isnotempty:"isnotempty"};r.normalizeFilter=k;r.compareFilters=ir;r.prototype={toArray:function(){return this.data},range:function(n,t){return new r(this.data.slice(n,n+t))},skip:function(n){return new r(this.data.slice(n))},take:function(n){return new r(this.data.slice(0,n))},select:function(n){return new r(wt(this.data,n))},order:function(n,t,i){var u={dir:t};return n&&(n.compare?u.compare=n.compare:u.field=n),new r(i?this.data.sort(et.create(u)):this.data.slice(0).sort(et.create(u)))},orderBy:function(n,t){return this.order(n,"asc",t)},orderByDescending:function(n,t){return this.order(n,"desc",t)},sort:function(n,t,i,r){var u,e,f=ut(n,t),o=[];if(i=i||et,f.length){for(u=0,e=f.length;u0&&(f=n[0],e=u&&u.groupPaging?new r(t).groupAllData(f,t).select(function(e){var s=new r(t).filter([{field:e.field,operator:"eq",value:e.value,ignoreCase:!1}]),o=n.length>1?new r(e.items).group(n.slice(1),s.toArray(),u).toArray():e.items;return{field:e.field,value:e.value,hasSubgroups:n.length>1,items:o,aggregates:s.aggregate(f.aggregates),uid:i.guid(),itemCount:o.length,subgroupCount:o.length}}):e.groupBy(f).select(function(i){var u=new r(t).filter([{field:i.field,operator:"eq",value:i.value,ignoreCase:!1}]);return{field:i.field,value:i.value,items:n.length>1?new r(i.items).group(n.slice(1),u.toArray()).toArray():i.items,hasSubgroups:n.length>1,aggregates:u.aggregate(f.aggregates)}})),e},groupBy:function(n){var t,o,h,c,u,f,l,s,a,e,v=this;if(w(n)||!this.data.length)return new r([]);for(t=n.field,o=n.skipItemSorting?this.data:this._sortForGrouping(t,n.dir||"asc"),h=i.accessor(t),u=h.get(o[0],t),f={field:t,value:u,items:[]},e=[f],s=0,a=o.length;sr&&(p(r)||vt(r))&&(n=r),n}};r.normalizeGroup=ft;r.normalizeSort=ut;r.process=function(n,i,u){var o,l,f,a,v,s,b,k,y,p,h,c;return i=i||{},o=i.group,l=vu(ft(o||[])),f=new r(n),a=rr(o||[]),v=ut(i.sort||[]),s=l?v:a.concat(v),y=i.filterCallback,p=i.filter,h=i.skip,c=i.take,s&&u&&(f=f.sort(s,t,t,u)),p&&(f=f.filter(p),y&&(f=y(f)),k=f.toArray().length),s&&(u||(f=f.sort(s)),o&&(n=f.toArray())),l?(f=f.group(o,n,i),h===t||c===t||i.groupPaging||(f=new r(sr(f.toArray())).range(h,c),b=wt(a,function(n){return e({},n,{skipItemSorting:!0})}),f=f.group(b,n,i))):(h!==t&&c!==t&&(f=f.range(h,c)),!o||w(o)&&0===o.length||(f=f.group(o,n,i))),{total:k,data:f.toArray()}};hi=kt.extend({init:function(n){this.data=n.data},read:function(n){n.success(this.data)},update:function(n){n.success(n.data)},create:function(n){n.success(n.data)},destroy:function(n){n.success(n.data)}});ci=kt.extend({init:function(n){var i,t=this;n=t.options=e({},t.options,n);bt(tf,function(t,i){typeof n[i]===o&&(n[i]={url:n[i]})});t.cache=n.cache?ot.create(n.cache):{find:a,add:a};i=n.parameterMap;n.submit&&(t.submit=n.submit);h(n.push)&&(t.push=n.push);t.push||(t.push=lt);t.parameterMap=h(i)?i:function(n){var t={};return bt(n,function(n,r){n in i&&(n=i[n],g(n)&&(r=n.value(r),n=n.key));t[n]=r}),t}},options:{parameterMap:lt},create:function(n){return pi(this.setup(n,ru))},read:function(i){var r,o,u,f=this,e=f.cache;i=f.setup(i,uu);r=i.success||a;o=i.error||a;u=e.find(i.data);u!==t?r(u):(i.success=function(n){e.add(i.data,n);r(n)},n.ajax(i))},update:function(n){return pi(this.setup(n,fu))},destroy:function(n){return pi(this.setup(n,eu))},setup:function(n,t){n=n||{};var r,u=this,i=u.options[t],f=h(i.data)?i.data(n.data):i.data;return n=e(!0,{},i,n),r=e(!0,{},f,n.data),n.data=u.parameterMap(r,t),h(n.url)&&(n.url=n.url(r)),n}});ot=kt.extend({init:function(){this._store={}},add:function(n,i){n!==t&&(this._store[gt(n)]=i)},find:function(n){return this._store[gt(n)]},clear:function(){this._store={}},remove:function(n){delete this._store[gt(n)]}});ot.create=function(n){var t={inmemory:function(){return new ot}};return g(n)&&h(n.find)?n:n===!0?new ot:t[n]()};li=kt.extend({init:function(n){var a,s,i,p,h,w,k,u,e,y,f,c,r,l,t=this;n=n||{};for(a in n)s=n[a],t[a]=typeof s===o?at(s):s;p=n.modelBase||v;g(t.model)&&(t.model=i=p.define(t.model));h=b(t.data,t);t._dataAccessFunction=h;t.model&&(w=b(t.groups,t),k=b(t.serialize,t),u={},e={},y={},f={},c=!1,i=t.model,i.fields&&(bt(i.fields,function(n,t){var i;r=n;g(t)&&t.field?r=t.field:typeof t===o&&(r=t);g(t)&&t.from&&(i=t.from);c=c||i&&i!==n||r!==n;l=i||r;e[n]=l.indexOf(".")!==-1?at(l,!0):at(l);y[n]=at(n);u[i||r]=n;f[n]=i||r}),!n.serialize&&c&&(t.serialize=ri(k,i,pu,y,u,f))),t._dataAccessFunction=h,t._wrapDataAccessBase=er(i,ii,e,u,f),t.data=ri(h,i,ii,e,u,f),t.groups=ri(w,i,fr,e,u,f))},errors:function(n){return n?n.errors:null},parse:lt,data:lt,total:function(n){return n.length},groups:lt,aggregates:function(){return{}},serialize:function(n){return n}});l=nt.extend({init:function(n){var s,o,u,r=this;n&&(o=n.data);n=r.options=e({},r.options,n);r._map={};r._prefetch={};r._data=[];r._pristineData=[];r._ranges=[];r._view=[];r._pristineTotal=0;r._destroyed=[];r._pageSize=n.pageSize;r._page=n.page||(n.pageSize?1:t);r._sort=ut(n.sort);r._sortFields=di(n.sort);r._filter=k(n.filter);r._group=ft(n.group);r._aggregate=n.aggregate;r._total=n.total;r._groupPaging=n.groupPaging;r._groupPaging&&(r._groupsState={});r._shouldDetachObservableParents=!0;nt.fn.init.call(r);r.transport=ai.create(n,o,r);h(r.transport.push)&&r.transport.push({pushCreate:b(r._pushCreate,r),pushUpdate:b(r._pushUpdate,r),pushDestroy:b(r._pushDestroy,r)});null!=n.offlineStorage&&("string"==typeof n.offlineStorage?(u=n.offlineStorage,r._storage={getItem:function(){return JSON.parse(localStorage.getItem(u))},setItem:function(n){localStorage.setItem(u,gt(r.reader.serialize(n)))}}):r._storage=n.offlineStorage);r.reader=new i.data.readers[n.schema.type||"json"](n.schema);s=r.reader.model||{};r._detachObservableParents();r._data=r._observe(r._data);r._online=!0;r.bind(["push",it,f,tt,ou,rt,st],n)},options:{data:null,schema:{modelBase:v},offlineStorage:null,serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,batch:!1,inPlaceSort:!1},clone:function(){return this},online:function(i){return i!==t?this._online!=i&&(this._online=i,i)?this.sync():n.Deferred().resolve().promise():this._online},offlineData:function(n){return null==this.options.offlineStorage?null:n!==t?this._storage.setItem(n):this._storage.getItem()||[]},_isServerGrouped:function(){var n=this.group()||[];return this.options.serverGrouping&&n.length},_isServerGroupPaged:function(){return this._isServerGrouped()&&this._groupPaging},_isGroupPaged:function(){var n=this._group||[];return this._groupPaging&&n.length},_pushCreate:function(n){this._push(n,"pushCreate")},_pushUpdate:function(n){this._push(n,"pushUpdate")},_pushDestroy:function(n){this._push(n,"pushDestroy")},_push:function(n,t){var i=this._readData(n);i||(i=n);this[t](i)},_flatData:function(n,t){if(n){if(this._isServerGrouped())return fi(n);if(!t)for(var i=0;i=i?--n:n,0,t.splice(i,1)[0]);n++;break}})}finally{this.options.autoSync=u}return r},remove:function(n){var t,i=this,r=i._isServerGrouped();return this._eachItem(i._data,function(u){if(t=bu(u,n),t&&r)return t.isNew&&t.isNew()||i._destroyed.push(t),!0}),this._removeModelFromRanges(n),n},destroyed:function(){return this._destroyed},created:function(){for(var r=[],t=this._flatData(this._data,this.options.useRanges),n=0,i=t.length;n-1)return t(r,i),!0})},_removePristineForModel:function(n){this._executeOnPristineForModel(n,function(n,t){t.splice(n,1)})},_readData:function(n){var t=this._isServerGrouped()?this.reader.groups:this.reader.data;return t.call(this.reader,n)},_eachPristineItem:function(n){var t=this,i=t.options,r=t._getCurrentRangeSpan();t._eachItem(t._pristineData,n);i.serverPaging&&i.useRanges&&bt(r,function(i,r){t._eachItem(r.pristineData,n)})},_eachItem:function(n,t){n&&n.length&&(this._isServerGrouped()?cr(n,t):t(n))},_pristineForModel:function(n){var i,t,r=function(r){if(t=vr(r,n),t>-1)return i=r[t],!0};return this._eachPristineItem(r),i},_cancelModel:function(n){var i=this,t=this._pristineForModel(n);this._eachItem(this._data,function(r){var u=yr(r,n);u>=0&&(!t||n.isNew()&&!t.__state__?(i._modelCanceled(n),r.splice(u,1),i._removeModelFromRanges(n)):(r[u].accept(t),"update"==t.__state__&&(r[u].dirty=!0)))})},_modelCanceled:a,_submit:function(t,i){var r=this;r.trigger(tt,{type:"submit"});r.trigger(st);r.transport.submit(e({success:function(i,r){var u=n.grep(t,function(n){return n.type==r})[0];u&&u.resolve({response:i,models:u.models,type:r})},error:function(n,i,u){for(var f=0;fi._total&&(i._pageSize=i._total,i.options.pageSize&&i.options.pageSize>i._pageSize&&(i._pageSize=i.options.pageSize));i._aggregate&&p.serverAggregates&&(i._aggregateResult=i._readAggregates(n));n=i._readData(n);i._destroyed=[]}else{for(n=i._readData(n),u=[],c={},l=i.reader.model,a=l?l.idField:"id",r=0;rn.data.length&&(t.skip=n.data.length-t.take),u.view(f.range(t.skip,t.take).toArray())):(u.view(n.data),u._updateOuterRangesLength()):u.view(n.data)},_clearEmptyGroups:function(n){for(var t,i=n.length-1;i>=0;i--)t=n[i],t.hasSubgroups?this._clearEmptyGroups(t.items):t.items&&!t.items.length&&su.apply(t.parent(),[i,1])},_queryProcess:function(n,t){return this.options.inPlaceSort?r.process(n,t,this.options.inPlaceSort):r.process(n,t)},_mergeState:function(i){var r=this;return i!==t&&(r._pageSize=i.pageSize,r._page=i.page,r._sort=i.sort,r._filter=i.filter,r._group=i.group,r._aggregate=i.aggregate,r._skip=r._currentRangeStart=i.skip,r._take=i.take,r._skip===t&&(r._skip=r._currentRangeStart=r.skip(),i.skip=r.skip()),r._take===t&&r._pageSize!==t&&(r._take=r._pageSize,i.take=r._take),i.sort&&(r._sort=i.sort=ut(i.sort),r._sortFields=di(i.sort)),i.filter&&(r._filter=i.filter=r.options.accentFoldingFiltering&&!n.isEmptyObject(i.filter)?n.extend({},k(i.filter),{accentFoldingFiltering:r.options.accentFoldingFiltering}):k(i.filter)),i.group&&(r._group=i.group=ft(i.group)),i.aggregate&&(r._aggregate=i.aggregate=au(i.aggregate))),i},query:function(i){var r,u,e,o=this.options.serverSorting||this.options.serverPaging||this.options.serverFiltering||this.options.serverGrouping||this.options.serverAggregates;return o||(this._data===t||0===this._data.length)&&!this._destroyed.length?(this.options.endless&&(u=i.pageSize-this.pageSize(),u>0?(u=this.pageSize(),i.page=i.pageSize/u,i.pageSize=u):(i.page=1,this.options.endless=!1)),this.read(this._mergeState(i))):(e=this.trigger(tt,{type:"read"}),e||(this.trigger(st),i&&(i.groupPaging=this._groupPaging),r=this._queryProcess(this._data,this._mergeState(i)),this._setFilterTotal(r.total,!0),this._aggregateResult=this._calculateAggregates(r.dataToAggregate||this._data,i),this._setView(r,i),this.trigger(rt,{type:"read"}),this.trigger(f,{items:r.data,action:i?i.action:""})),n.Deferred().resolve(e).promise())},_hasExpandedSubGroups:function(n){var t,i=!1,r=n.items?n.items.length:0;if(!n.hasSubgroups)return!1;for(t=0;t=r.take));h++)if(o._getGroupByUid(e.uid)||o._groupsFlat.push(e),o._groupsState[e.uid]){if(o._isServerGroupPaged()){if(o._fetchGroupItems(e,r,u,f))return o._fetchingGroupItems=!0,t;if(l=(e.subgroupCount||e.itemCount)+1,v=r.skip-r.skipped,!o._hasExpandedSubGroups(e)&&v>l){r.skipped+=l;continue}}if(r.includeParents&&r.skipped0?i.push(e):e.excludeHeader=!1;else{for(s=[],a=e.items.length,c=0;c=r.take)break;s.push(e.items[c]);r.taken++}s.length||r.taken>0?(e.currentItems=s,i.push(e)):e.excludeHeader=!1}}else{if(r.skippede)return u;return u},_fetchGroupItems:function(n,i,r,f){var e,c,l,a,s=this,v=n.hasSubgroups?n.subgroupCount:n.itemCount,y=i.take,h=i.skipped,o=s.take();return i.includeParents&&(h=v)&&(c=n.items[e],l=n.items[Math.min(e+y,v-1)],c.notFetched?(s.getGroupItems(n,i,r,f,u.max(u.floor(e/o),0)*o),!0):l.notFetched?(s.getGroupItems(n,i,r,f,u.max(u.floor((e+o)/o),0)*o),!0):t))},getGroupItems:function(n,t,i,r,f){var s,c,o,h,e=this;n.items||(n.items=[]);s=e.take();c=this._composeItemsFilter(n,i);o={page:u.floor((f||0)/(s||1))||1,pageSize:s,skip:f,take:s,filter:c,aggregate:e._aggregate,sort:e._sort};h=e.findSubgroups(n);h&&h.length&&(o.group=h,o.groupPaging=!0);clearTimeout(e._timeout);e._timeout=setTimeout(function(){e._queueRequest(o,function(){e.trigger(tt,{type:"read"})?e._dequeueRequest():e.transport.read({data:o,success:e._groupItemsSuccessHandler(n,t.skip,e.take(),r,f),error:function(){var n=ht.call(arguments);e.error.apply(e,n)}})})},100)},_groupItemsSuccessHandler:function(n,t,i,r,u){var o,e=this,s=e._timeStamp();return r=h(r)?r:a,o=e.options.schema&&e.options.schema.total?e.options.schema.total:"Total",function(c){var a,y,l,p=v.define(e.options.schema.model);for(e._dequeueRequest(),e.trigger(rt,{response:c,type:"read"}),y=h(o)?o(c):c[o],c=e.reader.parse(c),n.hasSubgroups?(a=e.reader.groups(c),n.subgroupCount=y):(a=e.reader.data(c),a=a.map(function(n){return new p(n)})),n.items.omitChangeEvent=!0,l=0;l=u&&l=e._currentRequestTimeStamp||!e._skipRequestsInProgress)&&e.trigger(f,{})}},findSubgroups:function(n){var t=this._group.map(function(n){return n.field}).indexOf(n.field);return this._group.slice(t+1,this._group.length)},_composeItemsFilter:function(n,t){var i,r=this.filter()||{logic:"and",filters:[]};if(r=e(!0,{},r),r.filters.push({field:n.field,operator:"eq",value:n.value}),t)for(i=0;i1;)c=t.splice(0,1)[0],i=i[c].items;i[t[0]]=o._cloneGroup(n);break}}},_containsSubGroup:function(n,t,i){var r,u,e=this,f=n.items.length;if(n.hasSubgroups&&f)for(u=0;ut.totalPages()))return t._skip=t._currentRangeStart=i*t.take(),i+=1,n.page=i,t._query(n),i},prev:function(n){var t=this,i=t.page();if(n=n||{},i&&1!==i)return t._skip=t._currentRangeStart=t._skip-t.take(),i-=1,n.page=i,t._query(n),i},page:function(n){var r,f,i=this;return n!==t?(n=u.max(u.min(u.max(n,1),i.totalPages()),1),f=i.take(),i._isGroupPaged()?(n-=1,i.range(n*f,f,null,"page"),t):(i._query(i._pageableQueryOptions({page:n})),t)):(r=i.skip(),r!==t?u.round((r||0)/(i.take()||1))+1:t)},pageSize:function(n){var i=this;return n!==t?(i._query(i._pageableQueryOptions({pageSize:n,page:1})),t):i.take()},sort:function(n){var i=this;return n!==t?(i.trigger("sort"),i._query({sort:n}),t):i._sort},filter:function(n){var i=this;return n===t?i._filter:(i.trigger("reset"),i._query({filter:n,page:1}),t)},group:function(n){var i=this,r={group:n};return i._groupPaging&&(n===t||n&&n.length||(i._ranges=[]),r.page=1),n!==t?(i._query(r),t):i._group},getGroupsFlat:function(n){for(var i,r=[],t=0,u=n.length;t=u;r--)i=f[r],t={value:n.get?n.get(i.field):n[i.field],field:i.field,items:t?[t]:[n],hasSubgroups:!!t,aggregates:this._emptyAggregates(i.aggregates)};return t},totalPages:function(){var n=this,t=n.pageSize()||n.total(),i=n._isGroupPaged()?n.groupsTotal(!0):n.total();return u.ceil((i||0)/t)},inRange:function(n,t){var i=this,r=u.min(n+t,i.total());return!i.options.serverPaging&&i._data.length>0||i._findRange(n,r).length>0},lastRange:function(){var n=this._ranges;return n[n.length-1]||{start:0,end:0,data:[]}},firstItemUid:function(){var n=this._ranges;return n.length&&n[0].data.length&&n[0].data[0].uid},enableRequestsInProgress:function(){this._skipRequestsInProgress=!1},_timeStamp:function(){return(new Date).getTime()},range:function(n,i,r,f){var c,e,o,s,l;return this._currentRequestTimeStamp=this._timeStamp(),this._skipRequestsInProgress=!0,c=this._isGroupPaged()?this.groupsTotal(!0):this.total(),"expandGroup"!==f&&"collapseGroup"!==f||this._updateOuterRangesLength(),n=u.min(n||0,c),r=h(r)?r:a,e=this,o=u.max(u.floor(n/i),0)*i,s=u.min(o+i,c),l=e._findRange(n,u.min(n+i,c),r),!l.length&&0!==c||e._fetchingGroupItems?(e._isGroupPaged()&&(e._originalPageSkip=o,e._originalSize=s,o=u.max(u.floor(e._adjustPageSkip(n,i)/i),0)*i,s=u.min(o+i,c)),i===t||e._fetchingGroupItems||(e._isGroupPaged()&&!e._groupRangeExists(o,i)||!e._rangeExists(o,s)?e.prefetch(o,i,function(){n>o&&s=i)return[];if(n>u.outerEnd){s.skipped+=u.outerEnd-(o||0);o=u.outerEnd;continue}if(t!==o&&o!=u.outerStart&&(s.skipped+=u.outerStart-o),s.skipped>s.skip)return[];for(t===o&&n>0&&u.start>0&&(s.skipped=u.outerStart),e=h;;){if(this._findGroupedRange(u.data,a,s,null,r),tt=f._calculateGroupsTotal(a,!0,"currentItems"),tt>=s.take)return a;if(f._fetchingGroupItems)return[];if(e++,!l[e]||l[e].outerStart!==u.outerEnd)break;u=l[e]}}else if(n>=u[ft]&&n<=u[et]){for(c=0,e=h;e=u.start&&(d=u.data,b=u.end,rt||(v.inPlaceSort?y=f._queryProcess(u.data,{filter:f.filter()}):(it=rr(f.group()||[]).concat(ut(f.sort()||[])),y=f._queryProcess(u.data,{sort:it,filter:f.filter()})),k=d=y.data,y.total!==t&&(b=y.total)),p=0,n+c>u.start&&(p=n+c-u.start),w=k.length,b>i&&(w-=b-i),c+=w-p,a=f._mergeGroups(a,d,p,w),i<=u.end&&c==i-n))return a;break}o=u.outerEnd}return[]},_getRangesMismatch:function(n){for(var t,u=this,f=u._ranges,i=0,r=0;;){if(t=f[r],!t||t.outerStart>n)break;t.outerEnd!=t.end&&(i=t.outerEnd-t.end);r++}return i},_mergeGroups:function(n,t,i,r){if(this._isServerGrouped()){var u,f=t.toJSON();return n.length&&(u=n[n.length-1]),ui(u,f,i,r),n.concat(f)}return n.concat(t.slice(i,r))},_processRangeData:function(n,i,r,f,e,o){var h,c,l,a,s=this;s._pending=t;s._skip=i>s.skip()&&!s._omitPrefetch?u.min(e,(s.totalPages()-1)*s.take()):f;s._currentRangeStart=i;s._take=r;h=s.options.serverPaging;c=s.options.serverSorting;l=s.options.serverFiltering;a=s.options.serverAggregates;try{s.options.serverPaging=!0;s._isServerGrouped()||s.group()&&s.group().length||(s.options.serverSorting=!0);s.options.serverFiltering=!0;s.options.serverPaging=!0;s.options.serverAggregates=!0;h&&(s._detachObservableParents(),s._data=n=s._observe(n));s._process(n,o)}finally{s.options.serverPaging=h;s.options.serverSorting=c;s.options.serverFiltering=l;s.options.serverAggregates=a}},skip:function(){var n=this;return n._skip===t?n._page!==t?(n._page-1)*(n.take()||1):t:n._skip},currentRangeStart:function(){return this._currentRangeStart||0},take:function(){return this._take||this._pageSize},_prefetchSuccessHandler:function(n,t,i,r){var u=this,e=u._timeStamp();return function(o){var c,l,s,a=!1,h={start:n,end:t,data:[],timestamp:u._timeStamp()};if(u._dequeueRequest(),u.trigger(rt,{response:o,type:"read"}),o=u.reader.parse(o),s=u._readData(o),s.length){for(c=0,l=u._ranges.length;c=u._currentRequestTimeStamp||!u._skipRequestsInProgress)&&(i&&s.length?i():u.trigger(f,{}))}},prefetch:function(n,i,r){var f=this,e=u.min(n+i,f.total()),o={take:i,skip:n,page:n/i+1,pageSize:i,sort:f._sort,filter:f._filter,group:f._group,aggregate:f._aggregate};return f._isGroupPaged()&&!f._isServerGrouped()&&f._groupRangeExists(n,e)?(r&&r(),t):(f._isServerGroupPaged()&&!f._groupRangeExists(n,e)||!f._rangeExists(n,e)?(clearTimeout(f._timeout),f._timeout=setTimeout(function(){f._queueRequest(o,function(){f.trigger(tt,{type:"read"})?f._dequeueRequest():(f._omitPrefetch&&f.trigger(st),f.transport.read({data:f._params(o),success:f._prefetchSuccessHandler(n,e,r),error:function(){var n=ht.call(arguments);f.error.apply(f,n)}}))})},100)):r&&r(),t)},_multiplePrefetch:function(n,t,i){var r=this,f=u.min(n+t,r.total()),e={take:t,skip:n,page:n/t+1,pageSize:t,sort:r._sort,filter:r._filter,group:r._group,aggregate:r._aggregate};r._rangeExists(n,f)?i&&i():r.trigger(tt,{type:"read"})||r.transport.read({data:r._params(e),success:r._prefetchSuccessHandler(n,f,i,!0)})},_adjustPageSkip:function(n,t){var i,r,f=this,o=f._getPrevRange(n),e=f.total();if(o){if(r=f._getRangesMismatch(n),!r)return n;n-=r}if(i=u.max(u.floor(n/t),0)*t,i>e)for(;;)if(i-=t,i=n)return i[t]},_getPrevRange:function(n){for(var r,u=this,i=u._ranges,f=i.length,t=f-1;t>=0;t--)if(i[t].outerStart<=n){r=i[t];break}return r},_rangeExists:function(n,t){for(var f=this,r=f._ranges,i=0,u=r.length;i=t)return!0;return!1},_groupRangeExists:function(n,t){var r,e,i,u=this,o=u._ranges,f=0,s=u.groupsTotal(!0);for(t>s&&!u._isServerGrouped()&&(t=s),r=0,e=o.length;r=n?f+=i.outerEnd-n:i.outerStart<=t&&i.outerEnd>=t&&(f+=t-i.outerStart);return f>=t-n},_getCurrentRangeSpan:function(){for(var n,r=this,u=r._ranges,i=r.currentRangeStart(),e=i+(r.take()||0),f=[],o=u.length,t=0;t=i||n.start>=i&&n.start<=e)&&f.push(n);return f},_removeModelFromRanges:function(n){for(var i,u=this,t=0,r=this._ranges.length;t=n){r._getByUid(t.uid,i.data)||(r._isServerGrouped()?i.data.splice(n,0,r._wrapInEmptyGroup(t)):i.data.splice(n,0,t));break}r._updateRangesLength()},_updateRangesLength:function(){for(var o,n,r=this,s=r._ranges||[],h=s.length,f=!1,i=0,e=0,t=0;t0?this.filter(this._hierarchicalFilter):(this.options.filter=this._hierarchicalFilter,this._filter=k(this.options.filter),this._hierarchicalFilter=null)),t},remove:function(n){var r,t=n.parentNode(),i=this;return t&&t._initChildren&&(i=t.children),r=l.fn.remove.call(i,n),t&&!i.data().length&&(t.hasChildren=!1),r},success:kr("success"),data:kr("data"),insert:function(n,t){var i=this.parent();return i&&i._initChildren&&(i.hasChildren=!0,i._initChildren()),l.fn.insert.call(this,n,t)},filter:function(n){return n===t?this._filter:(!this.options.serverFiltering&&this._markHierarchicalQuery(n)&&(n={logic:"or",filters:[n,{field:"_matchFilter",operator:"equals",value:!0}]}),this.trigger("reset"),this._query({filter:n,page:1}),t)},_markHierarchicalQuery:function(t){var i,o,u,f,e,s=this.options.accentFoldingFiltering;return t=s?n.extend({},k(t),{accentFoldingFiltering:s}):k(t),t&&0!==t.filters.length?(i=r.filterExpr(t),u=i.fields,f=i.operators,o=e=Function("d, __f, __o","return "+i.expression),(u.length||f.length)&&(e=function(n){return o(n,u,f)}),this._updateHierarchicalFilter(e),!0):(this._updateHierarchicalFilter(function(){return!0}),!1)},_updateHierarchicalFilter:function(n){for(var t,r=this._data,u=!1,i=0;i=this.total()?(this.trigger("endreached",{index:n}),null):this.useRanges?this.useRanges?((n=this.skip+i)&&(r=this.range(Math.floor(n/i)*i)),n===this.prefetchThreshold&&this._prefetch(),n===this.midPageThreshold?this.range(this.nextMidRange,!0):n===this.nextPageThreshold?this.range(this.nextFullRange):n===this.pullBackThreshold&&this.range(this.offset===this.skip?this.previousMidRange:this.previousFullRange),r?this.dataSource.at(n-this.dataOffset):(this.trigger("endreached",{index:n}),null)):t:this.dataSource.view()[n]},indexOf:function(n){return this.dataSource.data().indexOf(n)+this.dataOffset},total:function(){return parseInt(this.dataSource.total(),10)},next:function(){var n=this,t=n.pageSize,i=n.skip-n.viewSize+t,r=u.max(u.floor(i/t),0)*t;this.offset=i;this.dataSource.prefetch(r,t,function(){n._goToRange(i,!0)})},range:function(n,t){if(this.offset===n)return!0;var r=this,i=this.pageSize,f=u.max(u.floor(n/i),0)*i,e=this.dataSource;return t&&(f+=i),e.inRange(n,i)?(this.offset=n,this._recalculate(),this._goToRange(n),!0):!this.prefetch||(e.prefetch(f,i,function(){r.offset=n;r._recalculate();r._goToRange(n,!0)}),!1)},syncDataSource:function(){var n=this.offset;this.offset=null;this.range(n)},destroy:function(){this.unbind()},_prefetch:function(){var i=this,n=this.pageSize,t=this.skip+n,r=this.dataSource;r.inRange(t,n)||this._prefetching||!this.prefetch||(this._prefetching=!0,this.trigger("prefetching",{skip:t,take:n}),r.prefetch(t,n,function(){i._prefetching=!1;i.trigger("prefetched",{skip:t,take:n})}))},_goToRange:function(n,t){this.offset===n&&(this.dataOffset=n,this._expanding=t,this.dataSource.range(n,this.pageSize),this.dataSource.enableRequestsInProgress())},_reset:function(){this._syncPending=!0},_change:function(){var n=this.dataSource;this.length=this.useRanges?n.lastRange().end:n.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 n=this.dataSource;this._firstItemUid=n.firstItemUid();this.dataOffset=this.offset=n.skip()||0;this.pageSize=n.pageSize();this.useRanges=n.options.serverPaging},_recalculate:function(){var t=this.pageSize,r=this.offset,i=this.viewSize,n=Math.ceil(r/t)*t;this.skip=n;this.midPageThreshold=n+t-1;this.nextPageThreshold=n+i-1;this.prefetchThreshold=n+Math.floor(t/3*2);this.pullBackThreshold=this.offset-1;this.nextMidRange=n+t-i;this.nextFullRange=n;this.previousMidRange=r-i;this.previousFullRange=n-t}});iu=i.Observable.extend({init:function(n,t){var r=this;i.Observable.fn.init.call(r);this.dataSource=n;this.batchSize=t;this._total=0;this.buffer=new yi(n,3*t);this.buffer.bind({endreached:function(n){r.trigger("endreached",{index:n.index})},prefetching:function(n){r.trigger("prefetching",{skip:n.skip,take:n.take})},prefetched:function(n){r.trigger("prefetched",{skip:n.skip,take:n.take})},reset:function(){r._total=0;r.trigger("reset")},resize:function(){r._total=Math.ceil(this.length/r.batchSize);r.trigger("resize",{total:r.total(),offset:this.offset})}})},syncDataSource:function(){this.buffer.syncDataSource()},at:function(n){var r,t,i=this.buffer,u=n*this.batchSize,e=this.batchSize,f=[];for(i.offset>u&&i.at(i.offset-1),t=0;t0&&(n=n.get(f.substring(0,e))),i.start(n),r=n!==i.source?r.call(n,i.source):r.call(n),i.stop(n)),n&&n!==i.source&&(i.currentSource=n,n.unbind(u,i._change).bind(u,i._change)),i.stop(i.source),r},set:function(n){var t=this.currentSource||this.source,r=i.getter(this.path)(t);"function"==typeof r?t!==this.source?r.call(t,this.source,n):r.call(t,n):t.set(this.path,n)},destroy:function(){this.observable&&(this.source.unbind(u,this._change),this.currentSource&&this.currentSource.unbind(u,this._change));this.unbind()}});ft=h.extend({get:function(){for(var n=this.source,i=this.path,r=0,t=n.get(i);!t&&n;)n=this.parents[++r],n instanceof o&&(t=n.get(i));return c(t,n)}});et=h.extend({init:function(n,t,i){var r=this;h.fn.init.call(r,n,t);r.template=i},render:function(n){var t;return this.start(this.source),t=i.render(this.template,n),this.stop(this.source),t}});r=ct.extend({init:function(n,t,i){this.element=n;this.bindings=t;this.options=i},bind:function(n,t){var i=this;n=t?n[t]:n;n.bind(u,function(n){i.refresh(t||n)});i.refresh(t)},destroy:function(){}});v=r.extend({dataType:function(){var n=this.element.getAttribute("data-"+i.ns+"type")||this.element.type||"text";return n.toLowerCase()},parsedValue:function(){return this._parseValue(this.element.value,this.dataType())},_parseValue:function(n,t){return"date"==t?n=i.parseDate(n,"yyyy-MM-dd"):"datetime-local"==t?n=i.parseDate(n,["yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm"]):"number"==t?n=i.parseFloat(n):"boolean"==t&&(n=n.toLowerCase(),n=null!==i.parseFloat(n)?!!i.parseFloat(n):"true"===n.toLowerCase()),n}});f.attr=r.extend({refresh:function(n){this.element.setAttribute(n,this.bindings.attr[n].get())}});f.css=r.extend({init:function(n,t,i){r.fn.init.call(this,n,t,i);this.classes={}},refresh:function(t){var i=n(this.element),r=this.bindings.css[t],u=this.classes[t]=r.get();u?i.addClass(t):i.removeClass(t)}});f.style=r.extend({refresh:function(n){this.element.style[n]=this.bindings.style[n].get()||""}});f.enabled=r.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}});f.readonly=r.extend({refresh:function(){this.bindings.readonly.get()?this.element.setAttribute("readonly","readonly"):this.element.removeAttribute("readonly")}});f.disabled=r.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}});f.events=r.extend({init:function(n,t,i){r.fn.init.call(this,n,t,i);this.handlers={}},refresh:function(t){var r=n(this.element),u=this.bindings.events[t],i=this.handlers[t];i&&r.off(t,i);i=this.handlers[t]=u.get();r.on(t,u.source,i)},destroy:function(){var t,i=n(this.element);for(t in this.handlers)i.off(t,this.handlers[t])}});f.text=r.extend({refresh:function(){var t=this.bindings.text.get(),r=this.element.getAttribute("data-"+i.ns+"format")||"";null==t&&(t="");n(this.element).text(i.toString(t,r))}});f.visible=r.extend({refresh:function(){this.element.style.display=this.bindings.visible.get()?"":"none"}});f.invisible=r.extend({refresh:function(){this.element.style.display=this.bindings.invisible.get()?"none":""}});f.html=r.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}});f.value=v.extend({init:function(t,i,r){v.fn.init.call(this,t,i,r);this._change=c(this.change,this);this.eventName=r.valueUpdate||u;n(this.element).on(this.eventName,this._change);this._initChange=!1},change:function(){this._initChange=this.eventName!=u;this.bindings[s].set(this.parsedValue());this._initChange=!1},refresh:function(){var n,t;this._initChange||(n=this.bindings[s].get(),null==n&&(n=""),t=this.dataType(),"date"==t?n=i.toString(n,"yyyy-MM-dd"):"datetime-local"==t&&(n=i.toString(n,"yyyy-MM-ddTHH:mm:ss")),this.element.value=n);this._initChange=!1},destroy:function(){n(this.element).off(this.eventName,this._change)}});f.source=r.extend({init:function(n,t,u){r.fn.init.call(this,n,t,u);var f=this.bindings.source.get();f instanceof i.data.DataSource&&u.autoBind!==!1&&f.fetch()},refresh:function(n){var t=this,r=t.bindings.source.get();r instanceof e||r instanceof i.data.DataSource?(n=n||{},"add"==n.action?t.add(n.index,n.items):"remove"==n.action?t.remove(n.index,n.items):"itemchange"!=n.action&&t.render()):t.render()},container:function(){var n=this.element;return"table"==n.nodeName.toLowerCase()&&(n.tBodies[0]||n.appendChild(document.createElement("tbody")),n=n.tBodies[0]),n},template:function(){var n=this.options,t=n.template,r=this.container().nodeName.toLowerCase();return t||(t="select"==r?n.valueField||n.textField?i.format('