(function(G){Type.registerNamespace("Telerik.Web.UI");
var a=Telerik.Web.UI,f=Telerik.Web.BrowserFeatures,g=Math.ceil,l="scale(0.0001, 0.0001)",j="",k=0.6,B="t-ripple-effect-icon",x="t-ripple-effect-button",z="t-ripple-container",A="t-ripple-effect",y="t-ripple-center",w="t-ripple",C="t-ripple-white",c="t-ripple-animating",H="t-ripple-visible",n="mousedown",p="mouseup",o="mouseleave",s="pointerdown",u="pointerup",t="pointerleave",q="MSPointerDown",r="MSPointerUp",F="touchstart",E="touchend",e="blur",b=Sys.UI.DomElement.addCssClass,v=Sys.UI.DomElement.removeCssClass,h=Sys.UI.DomElement.containsCssClass,D='',i=Function.createDelegate,d=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(I){setTimeout(I,1000/60);
},m=function(I){return I?I.tagName=="BUTTON":false;
};
a.MaterialRippleConstants={RIPPLE_ICON:B,RIPPLE_BUTTON:x,RIPPLE_ELEMENT:A,RIPPLE_CONTAINER:z,VISIBLE:H};
a.MaterialRippleType=function(){throw Error.invalidOperation();
};
a.MaterialRippleType.prototype={Element:0,Icon:1};
a.MaterialRippleType.registerEnum("Telerik.Web.UI.MaterialRippleType",false);
a.MaterialRipple=function(I,J){this._element=I;
this._frameCount=0;
this._rippleSize=0;
this._x=0;
this._y=0;
this._ignoringMouseDown=false;
this._options=J||{};
this.initialize();
};
a.MaterialRipple.prototype={initialize:function(){var I=this._element;
this._applyElementClasses();
if(h(I,B)){this._isIconRipple=true;
b(I,y);
}this._initializeRippleElement();
this._attachEvents();
},_applyElementClasses:function(){var I=this._element;
var J=this._options;
if(J&&J.rippleType==a.MaterialRippleType.Icon){b(I,B);
if(J.hasButtonParent){b(I,x);
}}else{b(I,A);
}},_initializeRippleElement:function(){var J=this._element;
var K;
var I;
var L=J.getElementsByClassName(w);
if(L.length===0){I=document.createElement("span");
b(I,z);
I.innerHTML=D;
J.appendChild(I);
K=I.firstChild;
}else{K=L[0];
}this._rippleElement=K;
},_attachEvents:function(){var I=this._getButton();
var J=I||this._element;
if(I){this._downDelegate=i(this,this._buttonDownHandler);
this._upDelegate=i(this,this._buttonUpHandler);
this._downHandlerDelegate=i(this,this._downHandler);
this._upHandlerDelegate=i(this,this._upHandler);
}else{this._downDelegate=i(this,this._downHandler);
this._upDelegate=i(this,this._upHandler);
}if(J.addEventListener){if(f.pointerEvents){J.addEventListener(s,this._downDelegate);
J.addEventListener(u,this._upDelegate);
J.addEventListener(t,this._upDelegate);
}else{if(f.msPointerEvents){J.addEventListener(q,this._downDelegate);
J.addEventListener(r,this._upDelegate);
J.addEventListener(o,this._upDelegate);
}else{J.addEventListener(n,this._downDelegate);
J.addEventListener(F,this._downDelegate);
J.addEventListener(p,this._upDelegate);
J.addEventListener(E,this._upDelegate);
J.addEventListener(o,this._upDelegate);
}}J.addEventListener(e,this._upDelegate);
}},_getButton:function(){var J=this._element;
var I;
if(($telerik.isIE||$telerik.isFirefox)&&h(J,x)){I=$telerik.getParentBy(J,m);
if(I){this._button=I;
this._buttonIsRightToLeft=$telerik.isRightToLeft(I);
}}return I;
},_detachEvents:function(){var I=this._button||this._element;
if(I.removeEventListener){if(f.pointerEvents){I.removeEventListener(s,this._downDelegate);
I.removeEventListener(u,this._upDelegate);
I.removeEventListener(t,this._upDelegate);
}else{if(f.msPointerEvents){I.removeEventListener(q,this._downDelegate);
I.removeEventListener(r,this._upDelegate);
I.removeEventListener(o,this._upDelegate);
}else{I.removeEventListener(n,this._downDelegate);
I.removeEventListener(F,this._downDelegate);
I.removeEventListener(p,this._upDelegate);
I.removeEventListener(E,this._upDelegate);
I.removeEventListener(o,this._upDelegate);
}}I.removeEventListener(e,this._upDelegate);
}},get_frameCount:function(){return this._frameCount;
},set_frameCount:function(I){this._frameCount=I;
},get_rippleElement:function(){return this._rippleElement;
},set_rippleXY:function(I,J){this._x=I;
this._y=J;
},set_rippleStyles:function(P){var K=this._element;
var N=this._rippleElement;
var M=h(K,y);
if(N!==null){var Q;
var O;
var L="translate("+g(this._x)+"px, "+g(this._y)+"px)";
if(P){O=l;
}else{O=j;
if(M){var I=(this.boundWidth/2);
var J=(this.boundHeight/2);
L="translate("+g(I)+"px, "+g(J)+"px)";
}}Q="translate(-50%, -50%) "+L+" "+O;
N.style.webkitTransform=Q;
N.style.msTransform=Q;
N.style.transform=Q;
if(P){v(N,c);
}else{b(N,c);
}}},animFrameHandler:function(){if(this._frameCount-->0){d(i(this,this.animFrameHandler));
}else{this.set_rippleStyles(false);
}},_downHandler:function(L){var M=this._element;
var T=this._rippleElement;
var U=L.currentTarget||L.target;
var S=this._options;
if(this._isEnabled()){this._setRippleElementBackgroundColor();
var W=M.offsetWidth;
var Q=M.offsetHeight;
this.boundWidth=W;
this.boundHeight=Q;
if(!S.boundToElementSize){this._rippleSize=Math.sqrt(W*W+Q*Q)*2+2;
var R=S.maxRippleSize;
if(R){this._rippleSize=Math.min(this._rippleSize,R);
}if(this._isIconRipple){this._rippleSize*=S.iconRippleSizeFactor||k;
}W=g(this._rippleSize);
Q=W;
}T.style.width=W+"px";
T.style.height=Q+"px";
b(T,H);
if(L.type==="mousedown"&&this._ignoringMouseDown){this._ignoringMouseDown=false;
}else{if(L.type==="touchstart"){this._ignoringMouseDown=true;
}var P=this.get_frameCount();
if(P>0){return;
}this.set_frameCount(1);
var X;
var Y;
var N=L.clientX||0;
var O=L.clientY||0;
if(!L.touches&&N===0&&O===0){X=g(U.offsetWidth/2);
Y=g(U.offsetHeight/2);
}else{var V=L.touches;
var J=N||(V?V[0].clientX:0);
var K=O||(V?V[0].clientY:0);
var I;
if(U.getBoundingClientRect){I=U.getBoundingClientRect();
}else{I={left:U.offsetLeft,top:U.offsetTop};
}X=g(J-I.left);
Y=g(K-I.top);
}this.set_rippleXY(X,Y);
this.set_rippleStyles(true);
d(i(this,this.animFrameHandler));
}if(S.autoHide){window.setTimeout(this._upDelegate,310);
}if(S.cancelBubble){L.cancelBubble=true;
}}},_buttonDownHandler:function(I){var J=this._element;
var O=$telerik.getComputedStyle(this._button,"position");
var L=$telerik.getComputedStyle(this._element,"position");
var N=O=="absolute"||L=="absolute"?I.offsetX:I.offsetX-J.offsetLeft+this._button.offsetLeft;
var K=N>=0&&N<=J.offsetWidth;
if(K){var M=$telerik.cloneJsObject(I);
M.currentTarget=J;
this._downHandlerDelegate(M);
}},_isEnabled:function(){var I=this._element;
var J=this._enabledCheck(I);
var K=I.parentNode;
while(K&&K.tagName!="BODY"&&K.tagName.toLowerCase()!="html"&&J){J=this._enabledCheck(K);
K=K.parentNode;
}return J;
},_enabledCheck:function(J){var K=!J.getAttribute("disabled");
var I=this._options.disabledClass;
if(K&&I){K=!h(J,I);
}return K;
},_setRippleElementBackgroundColor:function(){var I=$telerik.getComputedStyle(this._element,"color");
var J=this._rippleElement;
if(I==="rgb(255, 255, 255)"){b(J,C);
}else{v(J,C);
}J.style.backgroundColor=I;
},_upHandler:function(I){var J=this._rippleElement;
if(I&&I.detail!==2){v(J,H);
}window.setTimeout(function(){v(J,H);
},0);
window.setTimeout(function(){v(J,c);
},300);
},_buttonUpHandler:function(I){this._upHandlerDelegate(I);
},dispose:function(){this._detachEvents();
var I=$telerik.getElementByClassName(this._element,z);
if(I&&I.parentNode){I.parentNode.removeChild(I);
}}};
})();
(function(n){Type.registerNamespace("Telerik.Web.UI");
var a=Telerik.Web.UI,b=Telerik.Web.Browser,e=b.ie&&b.version<10,h=Telerik.Web.Platform,m=h.android||h.iphone,f=!m&&b.opera,d=e||f,g=".Telerik.Web.UI.MaterialRippleManager",c="mousedown"+g,l="touchstart"+g,i=a.MaterialRippleConstants.RIPPLE_ELEMENT,k=a.MaterialRippleConstants.VISIBLE,j=a.MaterialRippleConstants.RIPPLE_ICON;
a.MaterialRippleManager=(function(){var p;
var o=function(){this._ripples=[];
this._rippleDelegatedZones=[];
this._controls=[];
Sys.Application.add_load(Function.createDelegate(this,this._initializeRippleZones));
Sys.Application.add_unload(Function.createDelegate(this,this.dispose));
};
o.prototype={initializeRipple:function(q,r){if(!d&&!this._getRippleByElement(q)){return this._createRipple(q,r);
}return null;
},_getRippleByElement:function(q){var t=this._ripples;
for(var r=0;
r