/* * Kendo UI Beta v2013.2.716 (http://kendoui.com) * Copyright 2013 Telerik AD. All rights reserved. * * Kendo UI Beta license terms available at * http://www.kendoui.com/purchase/license-agreement/kendo-ui-beta.aspx */ ("function"==typeof define&&define.amd?define:function(e,t){return t()})(["./kendo.core.min"],function(){!function(e,t){function i(e){return parseInt(e,10)}function n(e,t){return i(e.css(t))}function r(e){var t=e.effects;return"zoom"===t&&(t="zoom:in fade:in"),"fade"===t&&(t="fade:in"),"slide"===t&&(t="tile:left"),/^slide:(.+)$/.test(t)&&(t="tile:"+RegExp.$1),"overlay"===t&&(t="slideIn:left"),/^overlay:(.+)$/.test(t)&&(t="slideIn:"+RegExp.$1),e.effects=T.parseEffects(t),e}function s(e){var t,i=[];for(t in e)i.push(t);return i}function o(e){for(var t in e)-1!=M.indexOf(t)&&-1==W.indexOf(t)&&delete e[t];return e}function a(e,t){var i,n,r,s,o=[],a={};for(n in t)i=n.toLowerCase(),s=H&&-1!=M.indexOf(i),!P.hasHW3D&&s&&-1==W.indexOf(i)?delete t[n]:(r=t[n],s?o.push(n+"("+r+")"):a[n]=r);return o.length&&(a[ot]=o.join(" ")),a}function c(e,t){var n,r,s;return H?(n=e.css(ot),n==J?"scale"==t?1:0:(r=n.match(RegExp(t+"\\s*\\(([\\d\\w\\.]+)")),s=0,r?s=i(r[1]):(r=n.match(A)||[0,0,0,0,0],t=t.toLowerCase(),$.test(t)?s=parseFloat(r[3]/r[2]):"translatey"==t?s=parseFloat(r[4]/r[2]):"scale"==t?s=parseFloat(r[2]):"rotate"==t&&(s=parseFloat(Math.atan2(r[2],r[1])))),s)):parseFloat(e.css(t))}function l(e){return e.charAt(0).toUpperCase()+e.substring(1)}function u(e,t){var i=m.extend(t),n=i.prototype.directions;C[l(e)]=i,C.Element.prototype[e]=function(e,t,n,r){return new i(this.element,e,t,n,r)},z(n,function(t,n){C.Element.prototype[e+l(n)]=function(e,t,r){return new i(this.element,n,e,t,r)}})}function d(e,t,i){u(e,{directions:y,restore:[t],startValue:function(e){return this._startValue=e,this},endValue:function(e){return this._endValue=e,this},shouldHide:function(){return"out"===this._direction?!this._reverse:this._reverse},_end:function(){return this._endValue||i},_start:function(){return this._startValue||1},prepare:function(e,i){var n=this,r=n.element.data(t),s=n.shouldHide(),o=isNaN(r)||""===r?n._start():r;e[t]=i[t]=n._end(),s?e[t]=o:i[t]=o}})}function f(e,t){var i=T.directions[t].vertical,n=e[i?Y:X]()/2+"px";return g[t].replace("$size",n)}var p,h,m,v,y,x,g,_,w,k,b,T=window.kendo,C=T.effects,z=e.each,R=e.extend,E=e.proxy,P=T.support,N=P.browser,H=P.transforms,F=P.transitions,I={scale:0,scalex:0,scaley:0,scale3d:0},O={translate:0,translatex:0,translatey:0,translate3d:0},q=t!==document.documentElement.style.zoom&&!H,A=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,D=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,$=/translatex?$/i,S=/(zoom|fade|expand)(\w+)/,L=/(zoom|fade|expand)/,V=/[xy]$/i,M=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],W=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],Q={rotate:"deg",scale:"",skew:"px",translate:"px"},j=H.css,B=Math.round,U="",G="px",J="none",K="auto",X="width",Y="height",Z="hidden",et="origin",tt="abortId",it="overflow",nt="translate",rt="completeCallback",st=j+"transition",ot=j+"transform",at=j+"backface-visibility",ct=j+"perspective",lt="1500px",ut="perspective("+lt+")",dt={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"}};T.directions=dt,R(e.fn,{kendoStop:function(e,t){return F?C.stopQueue(this,e||!1,t||!1):this.stop(e,t)}}),H&&!F&&(z(W,function(i,n){e.fn[n]=function(i){if(t===i)return c(this,n);var r=e(this)[0],s=n+"("+i+Q[n.replace(V,"")]+")";return-1==r.style.cssText.indexOf(ot)?e(this).css(ot,s):r.style.cssText=r.style.cssText.replace(RegExp(n+"\\(.*?\\)","i"),s),this},e.fx.step[n]=function(t){e(t.elem)[n](t.now)}}),p=e.fx.prototype.cur,e.fx.prototype.cur=function(){return-1!=W.indexOf(this.prop)?parseFloat(e(this.elem)[this.prop]()):p.apply(this,arguments)}),T.toggleClass=function(e,t,i,n){return t&&(t=t.split(" "),F&&(i=R({exclusive:"all",duration:400,ease:"ease-out"},i),e.css(st,i.exclusive+" "+i.duration+"ms "+i.ease),setTimeout(function(){e.css(st,"").css(Y)},i.duration)),z(t,function(t,i){e.toggleClass(i,n)})),e},T.parseEffects=function(e,t){var i={};return"string"==typeof e?z(e.split(" "),function(e,n){var r=!L.test(n),s=n.replace(S,function(e,t,i){return t+":"+i.toLowerCase()}),o=s.split(":"),a=o[1],c={};o.length>1&&(c.direction=t&&r?dt[a].reverse:a),i[o[0]]=c}):z(e,function(e){var n=this.direction;n&&t&&!L.test(e)&&(this.direction=dt[n].reverse),i[e]=this}),i},F&&R(C,{transition:function(t,i,n){var r,o,c,l,u=0,d=t.data("keys")||[];n=R({duration:200,ease:"ease-out",complete:null,exclusive:"all"},n),c=!1,l=function(){c||(c=!0,o&&(clearTimeout(o),o=null),t.removeData(tt).dequeue().css(st,"").css(st),n.complete.call(t))},n.duration=e.fx?e.fx.speeds[n.duration]||n.duration:n.duration,r=a(t,i),e.merge(d,s(r)),t.data("keys",e.unique(d)).height(),t.css(st,n.exclusive+" "+n.duration+"ms "+n.ease).css(st),t.css(r).css(ot),F.event&&(t.one(F.event,l),0!==n.duration&&(u=500)),o=setTimeout(l,n.duration+u),t.data(tt,o),t.data(rt,l)},stopQueue:function(e,t,i){var n,r=e.data("keys"),s=!i&&r,o=e.data(rt);return s&&(n=T.getComputedStyles(e[0],r)),o&&o(),s&&e.css(n),e.removeData("keys").stop(t)}}),h=T.Class.extend({init:function(e,t){var i=this;i.element=e,i.effects=[],i.options=t,i.restore=[]},run:function(t){var i,n,r,s,c,l,u,d=this,f=t.length,p=d.element,h=d.options,m=e.Deferred(),v={},y={};for(d.effects=t,m.then(e.proxy(d,"complete")),p.data("animating",!0),n=0;f>n;n++)for(i=t[n],i.setReverse(h.reverse),i.setOptions(h),d.addRestoreProperties(i.restore),i.prepare(v,y),c=i.children(),r=0,l=c.length;l>r;r++)c[r].duration(h.duration).run();for(u in h.effects)R(y,h.effects[u].properties);for(p.is(":visible")||R(v,{display:p.data("olddisplay")||"block"}),H&&!h.reset&&(s=p.data("targetTransform"),s&&(v=R(s,v))),v=a(p,v),H&&!F&&(v=o(v)),p.css(v).css(ot),n=0;f>n;n++)t[n].setup();return h.init&&h.init(),p.data("targetTransform",y),C.animate(p,y,R({},h,{complete:m.resolve})),m.promise()},stop:function(){e(this.element).kendoStop(!0,!0)},addRestoreProperties:function(e){for(var t,i=this.element,n=0,r=e.length;r>n;n++)t=e[n],this.restore.push(t),i.data(t)||i.data(t,i.css(t))},restoreCallback:function(){var e,t,i,n=this.element;for(e=0,t=this.restore.length;t>e;e++)i=this.restore[e],n.css(i,n.data(i))},complete:function(){var t=this,i=0,n=t.element,r=t.options,s=t.effects,o=s.length;for(n.removeData("animating").dequeue(),r.hide&&n.data("olddisplay",n.css("display")).hide(),this.restoreCallback(),q&&!H&&setTimeout(e.proxy(this,"restoreCallback"),0);o>i;i++)s[i].teardown();r.completeCallback&&r.completeCallback(n)}}),C.promise=function(e,t){var i,n,r,s=[],o=new h(e,t),a=T.parseEffects(t.effects);t.effects=a;for(r in a)i=C[l(r)],i&&(n=new i(e,a[r].direction),s.push(n));s[0]?o.run(s):(e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.init&&t.init(),e.dequeue(),o.complete())},C.transitionPromise=function(e,t,i){return C.animateTo(e,t,i),e},R(C,{animate:function(i,r,s){var a=s.transition!==!1;delete s.transition,F&&"transition"in C&&a?C.transition(i,r,s):H?i.animate(o(r),{queue:!1,show:!1,hide:!1,duration:s.duration,complete:s.complete}):i.each(function(){var i=e(this),o={};z(M,function(e,s){var a,c,l,u,d,f,p,h=r?r[s]+" ":null;h&&(c=r,s in I&&r[s]!==t?(a=h.match(D),H&&R(c,{scale:+a[0]})):s in O&&r[s]!==t&&(l=i.css("position"),u="absolute"==l||"fixed"==l,i.data(nt)||(u?i.data(nt,{top:n(i,"top")||0,left:n(i,"left")||0,bottom:n(i,"bottom"),right:n(i,"right")}):i.data(nt,{top:n(i,"marginTop")||0,left:n(i,"marginLeft")||0})),d=i.data(nt),a=h.match(D),a&&(f=s==nt+"y"?0:+a[1],p=s==nt+"y"?+a[1]:+a[2],u?(isNaN(d.right)?isNaN(f)||R(c,{left:d.left+f}):isNaN(f)||R(c,{right:d.right-f}),isNaN(d.bottom)?isNaN(p)||R(c,{top:d.top+p}):isNaN(p)||R(c,{bottom:d.bottom-p})):(isNaN(f)||R(c,{marginLeft:d.left+f}),isNaN(p)||R(c,{marginTop:d.top+p})))),!H&&"scale"!=s&&s in c&&delete c[s],c&&R(o,c))}),N.msie&&delete o.scale,i.animate(o,{queue:!1,show:!1,hide:!1,duration:s.duration,complete:s.complete})})},animateTo:function(t,i,n){function s(e){i[0].style.cssText="",t[0].style.cssText="",P.mobileOS.android||c.css(it,a),n.completeCallback&&n.completeCallback.call(t,e)}var o,a,c=t.parents().filter(i.parents()).first();n=r(n),P.mobileOS.android||(a=c.css(it),c.css(it,"hidden")),e.each(n.effects,function(e,t){o=o||t.direction}),n.complete=N.msie?function(){setTimeout(s,0)}:s,n.previous=n.reverse?i:t,n.reset=!0,(n.reverse?t:i).each(function(){e(this).kendoAnimate(R(!0,{},n)),n.complete=null,n.previous=null})}}),m=T.Class.extend({init:function(e,t){var i=this;i.element=e,i._direction=t,i.options={},i._additionalEffects=[],i.restore||(i.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 h(e.element,{reverse:e._reverse,duration:e._duration}),i=e._additionalEffects.concat([e]);return t.run(i)},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var t,i,n=this,r=n.element,s=0,c=n.restore,l=c.length,u=e.Deferred(),d={},f={},p=n.children(),h=p.length;for(u.then(e.proxy(n,"_complete")),r.data("animating",!0),s=0;l>s;s++)t=c[s],r.data(t)||r.data(t,r.css(t));for(s=0;h>s;s++)p[s].duration(n._duration).run();return n.prepare(d,f),r.is(":visible")||R(d,{display:r.data("olddisplay")||"block"}),H&&(i=r.data("targetTransform"),i&&(d=R(i,d))),d=a(r,d),H&&!F&&(d=o(d)),r.css(d).css(ot),n.setup(),r.data("targetTransform",f),C.animate(r,f,{duration:n._duration,complete:u.resolve}),u.promise()},stop:function(){var t=0,i=this.children(),n=i.length;for(t=0;n>t;t++)i[t].stop();return e(this.element).kendoStop(!0,!0),this},restoreCallback:function(){var e,t,i,n=this.element;for(e=0,t=this.restore.length;t>e;e++)i=this.restore[e],n.css(i,n.data(i))},_complete:function(){var t=this,i=t.element;i.removeData("animating").dequeue(),t.restoreCallback(),t.shouldHide()&&i.data("olddisplay",i.css("display")).hide(),q&&!H&&setTimeout(e.proxy(t,"restoreCallback"),0),t.teardown()},setOptions:function(e){R(!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}}),v=["left","right","up","down"],y=["in","out"],u("slideIn",{directions:v,prepare:function(e,t){var i,n=this,r=n.element,s=dt[n._direction],o=-s.modifier*(s.vertical?r.outerHeight():r.outerWidth()),a=o/(n.options&&n.options.divisor||1)+G,c="0px";n._reverse&&(i=e,e=t,t=i),H?(e[s.transition]=a,t[s.transition]=c):(e[s.property]=a,t[s.property]=c)}}),u("tile",{directions:v,init:function(e,t,i){m.prototype.init.call(this,e,t),this.options={previous:i}},children:function(){var e=this,t=e._reverse,i=e.options.previous,n=e._direction,r=[T.fx(e.element).slideIn(n).setReverse(t)];return i&&r.push(T.fx(i).slideIn(dt[n].reverse).setReverse(!t)),r}}),d("fade","opacity",0),d("zoom","scale",.01),u("slideMargin",{prepare:function(e,t){var i,n=this,r=n.element,s=n.options,o=r.data(et),a=s.offset,c=n._reverse;c||null!==o||r.data(et,parseFloat(r.css("margin-"+s.axis))),i=r.data(et)||0,t["margin-"+s.axis]=c?i:i+a}}),u("slideTo",{prepare:function(e,t){var i=this,n=i.element,r=i.options,s=r.offset.split(","),o=i._reverse;H?(t.translatex=o?0:s[0],t.translatey=o?0:s[1]):(t.left=o?0:s[0],t.top=o?0:s[1]),n.css("left")}}),u("expand",{directions:["horizontal","vertical"],restore:[it],prepare:function(e,i){var n=this,r=n.element,s=n.options,o=n._reverse,a="vertical"===n._direction?Y:X,c=r[0].style[a],l=r.data(a),u=parseFloat(l||c),d=B(r.css(a,K)[a]());e.overflow=Z,u=s&&s.reset?d||u:u||d,i[a]=(o?0:u)+G,e[a]=(o?u:0)+G,l===t&&r.data(a,c)},shouldHide:function(){return this._reverse},teardown:function(){var e=this,t=e.element,i="vertical"===e._direction?Y:X,n=t.data(i);(n==K||n===U)&&setTimeout(function(){t.css(i,K).css(i)},0)}}),x={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 i,n,r,s,o,a,l,u,d,f,p,h,m,v=this,y=v.element,g=v.options,_=v._reverse,w=g.target,k=c(y,"scale"),b=w.offset(),T=w.outerHeight()/y.outerHeight();R(e,x),t.scale=1,y.css(ot,"scale(1)").css(ot),i=y.offset(),y.css(ot,"scale("+k+")"),n=0,r=0,s=b.left-i.left,o=b.top-i.top,a=n+y.outerWidth(),l=r,u=s+w.outerWidth(),d=o,f=(o-r)/(s-n),p=(d-l)/(u-a),h=(r-l-f*n+p*a)/(p-f),m=r+f*(h-n),e.top=i.top,e.left=i.left,e.transformOrigin=h+G+" "+m+G,_?e.scale=T:t.scale=T}}),g={top:"rect(auto auto $size auto)",bottom:"rect($size auto auto auto)",left:"rect(auto $size auto auto)",right:"rect(auto auto auto $size)"},_={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:v,init:function(e,t,i){m.prototype.init.call(this,e,t),this._container=i},prepare:function(e,t){var i=this,n=i._reverse,r=n?dt[i._direction].reverse:i._direction,s=_[r];e.zIndex=1,i._clipInHalf&&(e.clip=f(i._container,T.directions[r].reverse)),e[at]=Z,t[ot]=ut+(n?s.start:s.end),e[ot]=ut+(n?s.end:s.start)},setup:function(){this._container.append(this.element)},face:function(e){return this._face=e,this},shouldHide:function(){var e=this,t=e._reverse,i=e._face;return t&&!i||!t&&i},clipInHalf:function(e){return this._clipInHalf=e,this},temporary:function(){return this.element.addClass("temp-page"),this}}),u("staticPage",{directions:v,init:function(e,t,i){m.prototype.init.call(this,e,t),this._container=i},restore:["clip"],prepare:function(e,t){var i=this,n=i._reverse?dt[i._direction].reverse:i._direction;e.clip=f(i._container,n),e.opacity=.999,t.opacity=1},shouldHide:function(){var e=this,t=e._reverse,i=e._face;return t&&!i||!t&&i},face:function(e){return this._face=e,this}}),u("pageturn",{directions:["horizontal","vertical"],init:function(e,t,i,n){m.prototype.init.call(this,e,t),this.options={},this.options.face=i,this.options.back=n},children:function(){var e,t=this,i=t.options,n="horizontal"===t._direction?"left":"top",r=T.directions[n].reverse,s=t._reverse,o=i.face.clone(!0).removeAttr("id"),a=i.back.clone(!0).removeAttr("id"),c=t.element;return s&&(e=n,n=r,r=e),[T.fx(i.face).staticPage(n,c).face(!0).setReverse(s),T.fx(i.back).staticPage(r,c).setReverse(s),T.fx(o).turningPage(n,c).face(!0).clipInHalf(!0).temporary().setReverse(s),T.fx(a).turningPage(r,c).clipInHalf(!0).temporary().setReverse(s)]},prepare:function(e,t){e[ct]=lt,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,i,n){m.prototype.init.call(this,e,t),this.options={},this.options.face=i,this.options.back=n},children:function(){var e,t=this,i=t.options,n="horizontal"===t._direction?"left":"top",r=T.directions[n].reverse,s=t._reverse,o=t.element;return s&&(e=n,n=r,r=e),[T.fx(i.face).turningPage(n,o).face(!0).setReverse(s),T.fx(i.back).turningPage(r,o).setReverse(s)]},prepare:function(e){e[ct]=lt,e.transformStyle="preserve-3d"}}),w=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},k=T.Class.extend({init:function(){var e=this;e._tickProxy=E(e._tick,e),e._started=!1},tick:e.noop,done:e.noop,onEnd:e.noop,onCancel:e.noop,start:function(){this.done()||(this._started=!0,w(this._tickProxy))},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var e=this;e._started&&(e.tick(),e.done()?(e._started=!1,e.onEnd()):w(e._tickProxy))}}),b=k.extend({init:function(e){var t=this;R(t,e),k.fn.init.call(t)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,Date.now()-this.startDate)},moveTo:function(e){var t=this,i=t.movable;t.initial=i[t.axis],t.delta=e.location-t.initial,t.duration=e.duration||300,t.tick=t._easeProxy(e.ease),t.startDate=Date.now(),t.start()},_easeProxy:function(e){var t=this;return function(){t.movable.moveAxis(t.axis,e(t.timePassed(),t.initial,t.delta,t.duration))}}}),R(b,{easeOutExpo:function(e,t,i,n){return e==n?t+i:i*(-Math.pow(2,-10*e/n)+1)+t},easeOutBack:function(e,t,i,n,r){return r=1.70158,i*((e=e/n-1)*e*((r+1)*e+r)+1)+t}}),C.animationFrame=function(e){w.call(window,e)},C.Animation=k,C.Transition=b,C.createEffect=u}(window.kendo.jQuery)});